1 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
3 * config/rs6000/rs6000.md: Disallow CCEQ compare with crnor/crnot
6 2002-07-30 Gabriel Dos Reis <gdr@nerim.net>
8 * c-pretty-print.h (pp_c_statement): Declare.
9 * c-pretty-print.c (pp_c_postfix_expression): #if 0 support for SRCLOC.
10 (pp_c_statement): Define.
12 2002-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14 * alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h,
15 darwin.h, dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i960.h,
16 ip2k.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mips.h,
17 mn10200.h, mn10300.h, ns32k.h, pa/pa-linux.h, pdp11.h, romp.h,
18 rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h,
19 v850.h, vax.h, xtensa.h (ASM_OUTPUT_LABEL): Delete definition.
21 * defaults.h (ASM_OUTPUT_LABEL): Provide a default.
22 * doc/tm.texi (ASM_OUTPUT_LABEL): Update docs.
24 2002-07-30 Gabriel Dos Reis <gdr@nerim.net>
26 * c-pretty-print.c (pp_c_primary_expression): Handle STMT_EXPR.
27 (pp_c_postfix_expression): Handle ARROW_EXPR, FFS_EXPR,
28 COMPOUND_LITERAL_EXPR, VA_ARG_EXPR.
29 (pp_c_expression): Update.
31 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
33 * alpha/vms-cc.c (preprocess_args, main): Use xstrdup and/or
34 concat in lieu of xmalloc/strcpy/memcpy/sprintf.
35 * alpha/vms-ld.c (main): Likewise.
36 * dsp16xx.c (double_reg_to_memory): Likewise.
37 * mcore.c (mcore_expand_prolog): Likewise.
38 * cppfiles.c (read_name_map): Likewise.
39 * gensupport.c (process_rtx, identify_predicable_attribute,
40 alter_test_for_insn): Likewise.
41 * vmsdbgout.c (write_rtnbeg, vmsdbgout_init): Likewise.
43 2002-07-29 Roger Sayle <roger@eyesopen.com>
45 * builtins.c (expand_builtin): Change the default behavior to
46 only issue an error if the builtin function doesn't have a
47 fallback library call. Remove several cases handled by the
50 2002-07-29 John David Anglin <dave@hiauly1.hia.nrc>
52 * real.c (ieee_24, ieee_53, ieee_64, ieee_113): Define only if the
53 floating point format of the target is IEEE.
54 * (dec_f, dec_d, dec_g, dec_h): Define only if the floating point
55 format of the target is DEC.
57 2002-07-29 Richard Henderson <rth@redhat.com>
59 * unroll.c (verify_addresses): Remove.
60 (find_splittable_givs): Never split DEST_ADDR givs.
62 2002-07-29 Geoffrey Keating <geoffk@redhat.com>
64 * doc/gty.texi (GGC Roots): Clarify that the list of syntaxes
66 (Files): Improve documentation on generated source files.
68 * doc/extend.texi (Translation implementation): Document what
69 diagnostics look like.
70 (Identifiers implementation): Document that there's normally no
71 limit on identifier names.
72 (Integers implementation): Document two's complement.
73 (Hints implementation): Document that GCC honours 'inline', mostly.
74 (Preprocessing directives implementation): Document that GCC
75 requires the current time.
77 2002-07-30 Gabriel Dos Reis <gdr@nerim.net>
79 * c-pretty-print.h (struct c_pretty_print_info): Add new member.
80 (pp_initializer): New macro.
81 (pp_c_initializer): Declare.
82 * c-pretty-print.c (pp_c_primary_expression): HAndle TARGET_EXPR.
83 (pp_c_initializer): Define.
84 (pp_c_initializer_list): New function.
85 (pp_c_postfix_expression): Handle ABS_EXPR, COMPLEX_CST,
86 VECTOR_CST, CONSTRUCTOR.
87 (pp_c_unary_expression): Handle CONJ_EXPR, REALPART_EXPR,
89 (pp_c_cast_expression): Handle FLOAT_EXPR.
90 (pp_c_assignment_expression): Handle INIT_EXPR.
91 (pp_c_expression): Update.
93 2002-07-30 Neil Booth <neil@daikokuya.co.uk>
95 * objc/objc-act.c (objc_init): Return immediately if filename
98 2002-07-29 Eric Christopher <echristo@redhat.com>
100 * config/mips/elf.h: Remove ecoff.h and gofast includes.
101 (DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Define unconditionally.
102 (SDB_DEBUGGING_INFO): Undefine.
103 (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
104 (PUT_SDB_SIZE): Remove.
105 (SUBTARGET_ASM_DEBUGGING_SPEC): Redefine.
106 (STARTFILE_SPEC): Add isa3264 define.
107 * config/mips/elf64.h: Ditto. Move TARGET_MEM_FUNCTIONS from here...
108 * config/mips/ecoff.h: Remove. and here...
109 * config/mips/iris3.h: and here...
110 * config/mips/sni-svr4.h: and here...
111 * config/mips/mips.h: To here. Remove OBJECT_FORMAT_ROSE ifdefs.
112 Add assembler -mmdebug options for non-dwarf debugging.
113 * config/mips/r3900.h: Remove debug info defines.
114 * config/mips/isa32-linux.h: Remove, move functionality to config.gcc.
115 * config/mips/isa3264.h: Ditto.
116 * config/mips/t-isa3264: Fix up for file removal and gofast configure
118 * config/mips/t-elf: Ditto.
119 * config/mips/t-ecoff: Ditto.
120 * config/mips/t-r3900: Ditto.
121 * config/mips/t-iris5-6: Ditto.
122 * config/mips/t-isa3264: Ditto.
123 * config/mips/t-linux: Remove.
124 * config/mips/t-netbsd: Remove.
125 * config/mips/t-mips: New file.
126 * config/mips/t-gofast: Ditto.
127 * config/mips/netbsd.h: Remove unnecessary undefines.
128 * config/mips/linux.h: Remove #include of mips.h.
129 * config.gcc: Add mips.h include for elf targets. Remove tm_file
130 for ecoff. Add gofast configure option for mips.
132 2002-07-29 Chris Demetriou <cgd@broadcom.com>
134 * configure.in (mips*-*-*): Add a test to see if MIPS libgloss
135 linker scripts use STARTUP directives consistently.
136 * configure: Regenerate.
137 * config.in: Regenerate.
138 * config/mips/elf.h (STARTFILE_SPEC): Define conditionally, based
139 on whether HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is defined.
140 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
141 * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine if
142 HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is set; the result
145 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
147 * config/rs6000/rs6000.md ("cpu"): Add ppc8540 to attribute.
149 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
151 * config/rs6000/rs6000.h (RTX_COSTS): Add MULT case for 8540.
153 2002-07-29 Aldy Hernandez <aldy@quesejoda.com>
155 * config/rs6000/rs6000.md: Move altivec patterns from here...
157 * config/rs6000/altivec.md: ...to here.
159 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
161 * config/rs6000/spe.md ("spe_evmra"): Change to unspec.
163 2002-07-29 Richard Henderson <rth@redhat.com>
165 * emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from
166 set_mem_attributes and add BITPOS argument. Subtract it from
167 OFFSET when same is adjusted.
168 (set_mem_attributes): New wrapper function.
169 * expr.c (expand_assignment): Use set_mem_attributes_minus_bitpos;
170 remove offset adjustment hack.
171 * expr.h (set_mem_attributes_minus_bitpos): Declare.
173 2002-07-29 Gabriel Dos Reis <gdr@nerim.net>
175 * Makefile.in (C_OBJS): Include c-pretty-print.o
176 (c-pretty-print.o): Add depency rule.
177 * pretty-print.h: Add more macros.
178 * c-pretty-print.c: New file.
179 * c-pretty-print.h: Likewise.
181 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
183 * config/rs6000/spe.h (__internal_ev_mwhgumian): Cast vector
184 constants to __ev64_s32__.
185 (__internal_ev_mwhgsmian): Same.
186 (__internal_ev_mwhgsmfan): Same.
187 (__internal_ev_mwhgssfan): Same.
188 (__internal_ev_mwhgumiaa): Same.
189 (__internal_ev_mwhgsmiaa): Same.
190 (__internal_ev_mwhgsmfaa): Same.
191 (__internal_ev_mwhgssfaa): Same.
193 2002-07-29 David Edelsohn <edelsohn@gnu.org>
195 * varasm.c (assemble_variable): Narrow test for uninitialized
196 without BSS target support.
198 2002-07-29 Nathan Sidwell <nathan@codesourcery.com>
200 * profile.c: Add file comment describing the overall algorithm and
202 (struct edge_info): Add comments.
203 (struct bb_info): Add comments.
204 * basic-block.h (EDGE_*): Add comments.
205 * doc/gcov.texi (Gcov Data Files): Document bit flags.
207 2002-07-29 Bob Wilson <bob.wilson@acm.org>
209 * config/xtensa/elf.h, config/xtensa/linux.h
210 (TARGET_OS_CPP_BUILTINS): Define.
211 (CPP_PREDEFINES): Remove.
212 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define.
215 2002-07-29 Zack Weinberg <zack@codesourcery.com>
217 * gensupport.c: Include hashtab.h.
218 (insn_elision, condition_table, hash_c_test, cmp_c_test,
219 maybe_eval_c_test): New routines and data structures to
220 support insn elision.
221 (init_md_reader): Read and initialize the condition_table.
222 (read_md_rtx): Discard insn patterns whose C test is provably
224 * gensupport.h: Declare new functions and data structures.
226 * genconditions.c, dummy-conditions.c: New files.
227 * Makefile.in: Build genconditions; run it to construct
228 insn-conditions.c; build that and link it into most gen*
230 (HOST_SUPPORT, HOST_EARLY_SUPPORT): New variables.
231 (GEN): Delete, unused.
232 (STAGESTUFF): Update.
234 * gencodes.c: (gen_insn): #define CODE_FOR_xxx equal to
235 CODE_FOR_nothing for all elided patterns.
236 (main): Tweaked to support this.
237 * genflags.c (gen_proto): Emit a static inline generator
238 function here for all elided patterns, which simply returns
240 (gen_insn): Do not define HAVE_xxx for elided patterns.
241 (main): Tweaked to support this. No need to forward-declare
243 * genrecog.c: Do not bother emitting the C test if it's known
244 to be true at compile time.
246 2002-07-29 Mike Stump <mrs@apple.com>
248 * config.gcc (target_gtfiles): Initialize, as otherwise cross
249 compilers hosted on powerpc-apple-darwin6.0 won't even build.
251 2002-07-29 Richard Earnshaw <rearnsha@arm.com>
253 * arm.md (sibcall, sibcall_value): Add RETURN as part of the pattern,
254 remove clobber of LR.
255 (sibcall_insn, sibcall_value_insn): Update accordingly.
256 (sibcall_epilogue): Remove debugging comment from assembler stream.
258 2002-07-29 Gabriel Dos Reis <gdr@nerim.net>
260 * pretty-print.h: Define more macros.
261 * diagnostic.h (output_formatted_integer): Moved from...
262 * diagnostic.c: ... here.
264 2002-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
266 * stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use ASM_OUTPUT_LABEL_REF.
268 2002-07-28 Zack Weinberg <zack@codesourcery.com>
270 * defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two
271 arguments. Always use ".-symbol" as expression argument.
272 * doc/tm.texi: Update to match. Document requirement for
273 ".size symbol, .-symbol" to be acceptable to assembler.
275 * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
276 config/arm/elf.h, config/avr/avr.h, config/cris/aout.h,
277 config/i386/freebsd-aout.h, config/i386/sco5.h,
278 config/ip2k/ip2k.h, config/m88k/m88k.h, config/xtensa/elf.h,
279 config/xtensa/linux.h: Update uses of ASM_OUTPUT_MEASURED_SIZE.
281 2002-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
283 * Makefile.in (gengtype-lex.c): Fix error in last change.
285 * alpha/freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing
288 * Makefile.in (vmsdbgout.o): Depend on function.h.
290 * vmsdbgout.c: Include function.h.
292 2002-07-28 Alan Modra <amodra@bigpond.net.au>
294 * prefix.c (update_path): Don't strip single `.' path components
295 unless stripping a later `..' component. Exit loop as soon as
296 a valid path is found.
298 2002-07-27 Roger Sayle <roger@eyesopen.com>
300 * builtins.def [DEF_GCC_BUILTIN]: Require an explicit ATTRS
301 argument. Mark BUILT_IN_RETURN, BUILT_IN_EH_RETURN,
302 BUILT_IN_LONGJMP and BUILT_IN_TRAP as noreturn, the ISO C99
303 floating point unordered comparisons (e.g. __builtin_isgreater)
304 as const, and leave the remaining GCC_BUILTINs unchanged.
306 * c-decl.c (builtin_function): No need to explicitly mark
307 BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.
309 2002-07-27 Roger Sayle <roger@eyesopen.com>
311 * Makefile.in: rtlanal.o now depends upon real.h.
313 * flags.h [flag_signaling_nans]: New flag.
314 [HONOR_SNANS]: New macro.
316 * toplev.c [flag_signaling_nans]: Initialize to false.
317 (f_options): Add processing for "-fsignaling-nans".
318 (set_fast_math_flags): Clear flag_signaling_nans with -ffast-math.
319 (process_options): flag_signaling_nans implies flag_trapping_math.
321 * c-common.c (cb_register_builtins): Define __SUPPORT_SNAN__
322 when -fsignaling-nans. First step to implementing WG14's N965.
324 * fold-const.c (fold) [MULT_EXPR]: Conditionalize transforming
325 1.0 * x into x, and -1.0 * x into -x on !HONOR_SNANS.
326 [RDIV_EXPR]: Conditionalize x/1.0 into x on !HONOR_SNANS.
328 * simplify-rtx.c (simplify_relational_operation): Conditionalize
329 transforming abs(x) < 0.0 into false on !HONOR_SNANS.
331 * rtlanal.c: #include real.c for TARGET_FLOAT_FORMAT definitions
332 required by HONOR_SNANS. (may_trap_p): Floating point DIV, MOD,
333 UDIV, UMOD, GE, GT, LE, LT and COMPARE may always trap with
334 -fsignaling_nans. EQ and NE only trap for flag_signaling_nans
335 not flag_trapping_math (i.e. HONOR_SNANS but not HONOR_NANS).
337 * doc/invoke.texi: Document new -fsignaling-nans compiler option.
339 2002-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
341 * Makefile.in (gengtype-lex.c): Work around a bug in flex.
342 * gengtype-lex.l (YY_USE_PROTOS): Undef.
345 2002-07-27 Roger Sayle <roger@eyesopen.com>
347 * doc/invoke.texi: Document that both -fno-builtin-foo and
348 -fno-builtin are supported by the g++ front-end.
350 2002-07-27 Stan Shebs <shebs@apple.com>
352 * configure.in: Rename config_gtfiles to target_gtfiles.
353 * configure: Regenerate.
354 * doc/gty.texi: Update reference.
355 * config.gcc (powerpc-*-darwin*): Set target_gtfiles
356 instead of appending to it.
358 2002-07-25 Aldy Hernandez <aldyh@redhat.com>
360 * config/rs6000/rs6000.c (function_arg_advance): SPE vararg
361 vectors are split into two registers.
362 (function_arg): Same.
364 Thu Jul 26 23:00:13 2002 J"orn Rennecke <joern.rennecke@superh.com>
366 * pa.md (extv): Check predicates before emitting extv_32.
368 2002-07-27 Alan Modra <amodra@bigpond.net.au>
370 * config/rs6000/rs6000.c (rs6000_traceback_name): New var.
371 (rs6000_traceback): New var.
372 (rs6000_override_options): Set rs6000_traceback.
373 (rs6000_output_function_epilogue): Implement traceback options.
374 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add "traceback=".
375 (rs6000_traceback_name): Declare.
377 * config/rs6000/rs6000.c (output_profile_hook): Don't generate profile
378 label reference when NO_PROFILE_COUNTERS.
380 2002-07-26 Jason Merrill <jason@redhat.com>
382 * function.c (assign_parms): Handle frontend-directed pass by
385 2002-07-26 Neil Booth <neil@daikokuya.co.uk>
387 * doc/cppopts.texi: Update.
389 2002-07-26 Neil Booth <neil@daikokuya.co.uk>
391 * cppmacro.c (_cpp_create_definition): Don't attempt redefinition
392 warnings on assertions.
394 2002-07-26 Neil Booth <neil@daikokuya.co.uk>
396 * c-common.h (RID_AND, RID_AND_EQ, RID_NOT, RID_NOT_EQ,
397 RID_OR, RID_OR_EQ, RID_XOR, RID_XOR_EQ, RID_BITAND, RID_BITOR,
399 * c-parse.in (rid_to_yy): Similarly.
401 2002-07-26 Jason Merrill <jason@redhat.com>
403 * c-dump.c: Resurrect.
404 * tree-dump.c: Move C-specific stuff to c-dump.c.
405 * c-common.h: Declare c_dump_tree.
406 * c-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN): Define.
407 * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
408 (c-dump.o): New rule.
410 2002-07-26 Alan Modra <amodra@bigpond.net.au>
412 * config/rs6000/rs6000.md: Enable patterns using rlwinm for
413 PowerPC64. Replace "T" and "S" constraints with "n" when the
414 predicate will do. Formatting fixes.
415 (extzvsi_internal2): Use "andi.", "andis." and attr type of "compare"
416 as for extzvsi_internal1.
418 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
420 * dwarfout.c (VERSION_ASM_OP, DERIV_BEGIN_LABEL_FMT,
421 DERIV_END_LABEL_FMT): Remove.
422 (SL_BEGIN_LABEL_FMT, SL_END_LABEL_FMT): Move.
424 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
426 * objc/objc-act.c (UTAG_STATICS, UTAG_PROTOCOL_LIST, USERTYPE):
429 2002-07-25 Stan Shebs <shebs@apple.com>
431 * config/rs6000/rs6000.c (rs6000_emit_prologue): Remove unused
433 (output_compiler_stub): Remove unused locals.
434 (output_call): Always initialize line number.
436 Thu Jul 25 20:34:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
438 * sh.h (LOAD_EXTEND_OP): QImode zero-extends on SHmedia.
439 * sh.md (truncdiqi2, movqi_media): Likewise.
441 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
443 * gcse.c (obstack_chunk_alloc): Remove.
444 (gcse_alloc): Fix to count allocated bytes.
445 * collect2.c (SYMBOL__MAIN): Remove.
447 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
449 * gcc.c (TARGET_EXECUTABLE_SUFFIX): Only used if
450 HAVE_TARGET_EXECUTABLE_SUFFIX.
452 Thu Jul 25 18:57:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
454 * rtl.h (mem_attrs): Spell out more clearly the roles of ALIGN,
455 SIZE, EXPR and OFFSET.
457 2002-07-25 Richard Henderson <rth@redhat.com>
459 * emit-rtl.c (set_mem_attributes): Fix size and alignment thinkos
460 in ARRAY_REF of DECL_P case.
462 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
464 * doc/invoke.texi: Document -mabi=meabi, and expand on the EABI
465 description. Document -mips32, -mips64, and the associated -march
466 values. Describe the "mipsN" arguments to -march. Say that the
467 -mipsN options are equivalent to -march. Reword the description
468 of default type sizes.
469 * toplev.h (target_flags_explicit): Declare.
470 * toplev.c (target_flags_explicit): New var.
471 (set_target_switch): Update target_flags_explicit.
472 * config/mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Undefine.
473 * config/mips/elf64.h (MIPS_ISA_DEFAULT): Undefine.
474 * config/mips/iris6.h (SUBTARGET_ASM_SPEC): -mabi=64 implies -mips3.
475 * config/mips/isa3264.h (MIPS_ENABLE_EMBEDDED_O32): Undefine.
476 * config/mips/mips.h (mips_cpu_info): New struct.
477 (mips_cpu_string, mips_explicit_type_size_string): Remove.
478 (mips_cpu_info_table, mips_arch_info, mips_tune_info): Declare.
479 (MIPS_CPP_SET_PROCESSOR): New macro.
480 (TARGET_CPP_BUILTINS): Declare a macro for each supported processor.
481 Define _MIPS_ARCH and _MIPS_TUNE.
482 (MIPS_ISA_DEFAULT): Don't provide a default value. Instead...
483 (MIPS_CPU_STRING_DEFAULT): Set to "from-abi" if neither it nor
484 MIPS_ISA_DEFAULT were already defined.
485 (MULTILIB_DEFAULTS): Add MULTILIB_ABI_DEFAULT.
486 (TARGET_OPTIONS): Remove -mcpu and -mexplicit-type-size.
487 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New.
488 (GAS_ASM_SPEC): Remove -march, -mcpu, -mgp* and -mabi rules.
489 (ABI_GAS_ASM_SPEC): Remove.
490 (MULTILIB_ABI_DEFAULT, ASM_ABI_DEFAULT_SPEC): New macros.
491 (ASM_SPEC): Add -mgp32, -mgp64, -march, -mabi=eabi and -mabi=o64.
492 Invoke %(asm_abi_default_spec) if no ABI was specified.
493 (CC1_SPEC): Remove ISA -> register-size rules.
494 (EXTRA_SPECS): Remove abi_gas_asm_spec. Add asm_abi_default_spec.
495 * config/mips/mips.c (mips_arch_info, mips_tune_info): New vars.
496 (mips_cpu_string, mips_explicit_type_size_string): Remove.
497 (mips_cpu_info_table): New array.
498 (mips_set_architecture, mips_set_tune): New fns.
499 (override_options): Rework to make -mipsN equivalent to -march.
500 Detect more erroneous cases, including those removed from CC1_SPEC.
501 Don't change the ABI based on architecture, or vice versa.
502 Unify logic with GAS.
503 (mips_asm_file_start): Get architecture name from mips_arch_info.
504 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
505 (mips_parse_cpu): Take the name of the option as argument. Handle
506 'from-abi'. Raise an error if the option is wrong.
507 (mips_cpu_info_from_isa): New fn.
509 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
511 * config/mips/mips.md (tablejump_mips161): Use gen_rtx_LABEL_REF.
512 (tablejump_mips162): Likewise.
514 Thu Jul 25 10:23:41 2002 J"orn Rennecke <joern.rennecke@superh.com>
516 * simpify-rtx.c (simplify_subreg): Don't pass MODE_CC mode to
519 2002-07-25 Gabriel Dos Reis <gdr@nerim.net>
521 * c-common.c (c_sizeof_or_alignof_type): Take a third argument for
523 * c-common.h (c_sizeof): Adjust definition.
524 (c_alignof): Likewise.
525 * c-tree.h (c_sizeof_nowarn): Now macro.
526 * c-typeck.c (c_sizeof_nowarn): Remove definition.
528 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
530 * c-decl.c (c_decode_option): No need to handle switches
533 2002-07-24 Zack Weinberg <zack@codesourcery.com>
535 * defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
536 ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
537 * doc/tm.texi: Document them. Also document SIZE_ASM_OP,
538 TYPE_ASM_OP, and TYPE_OPERAND_FMT.
540 * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
541 config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
542 config/cris/aout.h, config/i386/freebsd-aout.h,
543 config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
544 config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
545 config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
546 config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
547 config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
548 config/xtensa/elf.h, config/xtensa/linux.h:
550 Where possible, remove redundant definitions of SIZE_ASM_OP,
551 TYPE_ASM_OP, and TYPE_OPERAND_FMT.
553 2002-07-24 Aldy Hernandez <aldyh@redhat.com>
555 * config/rs6000/eabi.h: Define TARGET_SPE_ABI, TARGET_SPE,
556 TARGET_ISEL, and TARGET_FPRS.
558 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
559 -mabi=spe, -mabi=no-spe, and -misel=.
561 * config/rs6000/rs6000-protos.h: Add output_isel.
562 Move vrsave_operation prototype here.
564 * config/rs6000/rs6000.md (sminsi3): Allow pattern for TARGET_ISEL.
568 (abssi2_nopower): Disallow when TARGET_ISEL.
570 (negsf2): Change to expand and rename old pattern to *negsf2.
571 (abssf2): Change to expand and rename old pattern to *abssf2.
573 New expanders: fix_truncsfsi2, floatunssisf2, floatsisf2,
576 Change patterns that check for TARGET_HARD_FLOAT or
577 TARGET_SOFT_FLOAT to also check TARGET_FPRS.
579 * config/rs6000/rs6000.c: New globals: rs6000_spe_abi,
580 rs6000_isel, rs6000_fprs, rs6000_isel_string.
581 (rs6000_override_options): Add 8540 case to
582 processor_target_table.
583 Set rs6000_isel for the 8540.
584 Call rs6000_parse_isel_option.
585 (enable_mask_for_builtins): New.
586 (rs6000_parse_isel_option): New.
587 (rs6000_parse_abi_options): Add spe and no-spe.
588 (easy_fp_constant): Treat !TARGET_FPRS as soft-float.
589 (rs6000_legitimize_address): Check for TARGET_FPRS when checking
590 for TARGET_HARD_FLOAT.
591 Add case for SPE_VECTOR_MODE.
592 (rs6000_legitimize_reload_address): Handle SPE vector modes.
593 (rs6000_legitimate_address): Disallow PRE_INC/PRE_DEC for SPE
595 Check for TARGET_FPRS when checking for TARGET_HARD_FLOAT.
596 (rs6000_emit_move): Check for TARGET_FPRS.
597 Add cases for SPE vector modes.
598 (function_arg_boundary): Return 64 for SPE vector modes.
599 (function_arg_advance): Check for TARGET_FPRS and
601 (function_arg): Same.
602 (setup_incoming_varargs): Check for TARGET_FPRS.
603 (rs6000_va_arg): Same.
604 (struct builtin_description): Un-constify mask field. Move up in
606 (bdesc_2arg): Un-constify and add SPE builtins.
608 (bdesc_spe_predicates): New.
609 (bdesc_spe_evsel): New.
610 (rs6000_expand_unop_builtin): Add SPE 5-bit literal builtins.
611 (rs6000_expand_binop_builtin): Same.
612 (bdesc_2arg_spe): New.
613 (spe_expand_builtin): New.
614 (spe_expand_predicate_builtin): New.
615 (spe_expand_evsel_builtin): New.
616 (rs6000_expand_builtin): Call spe_expand_builtin for SPE.
617 (rs6000_init_builtins): Initialize SPE builtins. Call
618 rs6000_common_init_builtins.
619 (altivec_init_builtins): Move all non-altivec builtin code to...
620 (rs6000_common_init_builtins): ...here. New function.
621 (branch_positive_comparison_operator): Allow NE code for SPE.
622 (ccr_bit): Return correct ccr bit for SPE fp.
623 (print_operand): Emit crnor in 'D' case for SPE.
625 Add SPE code for 'y' case.
626 (rs6000_generate_compare): Generate rtl for SPE fp.
627 (output_cbranch): Handle SPE hard floats.
628 (rs6000_emit_cmove): Handle isel.
629 (rs6000_emit_int_cmove): New.
631 (rs6000_stack_info): Adjust stack frame so GPRs are saved in
633 (debug_stack_info): Add SPE info.
634 (gen_frame_mem_offset): New.
635 (rs6000_emit_prologue): Save GPRs in 64-bits for SPE abi.
636 Change mode of frame pointer, when saving it, to Pmode.
637 (rs6000_emit_epilogue): Restore GPRs in 64-bits for SPE abi.
638 Misc cleanups and use gen_frame_mem_offset when appropriate.
640 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_PPC8540.
641 (TARGET_SPE_ABI): New.
645 (FIXED_SCRATCH): New.
646 (RTX_COSTS): Add PROCESSOR_PPC8540.
647 (ASM_CPU_SPEC): Add case for 8540.
648 (TARGET_OPTIONS): Add isel= case.
649 (rs6000_spe_abi): New.
652 (rs6000_isel_string): New.
653 (UNITS_PER_SPE_WORD): New.
654 (LOCAL_ALIGNMENT): Adjust for SPE.
655 (HARD_REGNO_MODE_OK): Same.
656 (DATA_ALIGNMENT): Same.
657 (MEMBER_TYPE_FORCES_BLK): New.
658 (FIRST_PSEUDO_REGISTER): Set to 113.
659 (FIXED_REGISTERS): Add SPE registers.
661 (REG_CLASS_NAMES): Same.
662 (REG_CLASS_CONTENTS): Same.
663 (REGNO_REG_CLASS): Same.
664 (REGISTER_NAMES): Same.
665 (DEBUG_REGISTER_NAMES): Same.
666 (ADDITIONAL_REGISTER_NAMES): Same.
667 (CALL_USED_REGISTERS): Same.
668 (CALL_REALLY_USED_REGISTERS): Same.
669 (SPE_ACC_REGNO): New.
670 (SPEFSCR_REGNO): New.
671 (SPE_SIMD_REGNO_P): New.
672 (HARD_REGNO_NREGS): Adjust for SPE.
673 (VECTOR_MODE_SUPPORTED_P): Same.
674 (REGNO_REG_CLASS): Same.
675 (FUNCTION_VALUE): Same.
676 (LIBCALL_VALUE): Same.
677 (LEGITIMATE_OFFSET_ADDRESS_P): Same.
678 (SPE_VECTOR_MODE): New.
679 (CONDITIONAL_REGISTER_USAGE): Disable FPRs when target does FP on
680 the GPRs. Set FIXED_SCRATCH fixed in SPE case.
681 (rs6000_stack): Add spe_gp_size, spe_padding_size,
683 (USE_FP_FOR_ARG_P): Check for TARGET_FPRS.
684 (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
685 (SPE_CONST_OFFSET_OK): New.
686 (rs6000_builtins): Add SPE builtins.
688 * testsuite/gcc.dg/ppc-spe.c: New.
690 * config/rs6000/eabispe.h: New.
692 * config/rs6000/spe.h: New.
694 * config/rs600/spe.md: New.
696 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
697 __SIMD__ for TARGET_SPE.
699 * config.gcc: Add powerpc-*-eabispe* case.
700 Add spe.h to user headers for powerpc.
702 2002-07-24 Chris Demetriou <cgd@broadcom.com>
704 * config/mips/elf.h (STARTFILE_SPEC): Undo previous change.
705 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
706 * config/mips/isa3264.h (STARTFILE_SPEC): Likewise.
708 2002-07-24 Richard Henderson <rth@redhat.com>
710 * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Use GOTO_SUBROUTINE_EXPR
711 form when not optimizing.
713 2002-07-24 David Mosberger <davidm@hpl.hp.com>
715 * config/ia64/ia64.c (gen_thread_pointer): Fix typo in marking
716 thread_pointer_rtx as unchanging.
718 2002-07-24 Michael Matz <matz@suse.de>
720 * ra-colorize.c (INV_REG_ALLOC_ORDER): New macro.
723 2002-07-24 Richard Earnshaw <rearnsha@arm.com>
725 * arm.md (arm_buneq, arm_bltgt): put '\' before ';' in output
727 (arm_buneq_reversed, arm_bltgt_reversed): Likewise.
728 (movsicc, movsfcc, movdfcc): FAIL if UNEQ or LTGT.
730 2002-07-24 Chris Demetriou <cgd@broadcom.com>
732 * config/mips/elf.h (STARTFILE_SPEC): Never include crt0.o.
733 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
734 * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine.
736 Wed Jul 24 17:59:12 CEST 2002 Jan Hubicka <jh@suse.cz>
738 * toplev.c (rest_of_compilation): Dump loops before clobbering
741 Wed Jul 24 17:23:16 CEST 2002 Jan Hubicka <jh@suse.cz>
743 * rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.
745 2002-07-24 Frank van der Linden <fvdl@wasabisystems.com>
748 * config/i386/i386.c (ix86_expand_clrstr): Fix bzero alignment
751 2002-07-24 Gabriel Dos Reis <gdr@nerim.net>
753 * pretty-print.h: Add macros from cp/error.c
755 2002-07-24 Alan Modra <amodra@bigpond.net.au>
757 * config/rs6000/rs6000-protos.h (mask_operand_wrap): Declare.
758 (mask64_2_operand): Declare.
759 (build_mask64_2_operands): Declare.
760 (and64_2_operand): Declare.
761 (extract_MB): Declare.
762 (extract_ME): Declare.
763 * config/rs6000/rs6000.c (mask64_operand): Allow all ones. Remove
765 (mask_operand_wrap): New insn predicate.
766 (mask64_2_operand): Likewise.
767 (and64_2_operand): Likewise.
768 (build_mask64_2_operands): New function.
769 (extract_MB): New function.
770 (extract_ME): New function.
771 (print_operand <case m,M>): Use extract_MB and extract_ME.
772 (print_operand <case S>): Allow all ones. Remove CONST_DOUBLE support.
773 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 't'.
774 (PREDICATE_CODES): Add and64_2_operand, mask_operand_wrap and
775 mask64_2_operand. Remove CONST_DOUBLE from mask64_operand.
776 * config/rs6000/rs6000.md (andsi3_internal3): New
777 (andsi3_internal3+1): Enable split for powerpc64.
778 (andsi3_internal3+2): New split.
779 (andsi3_internal4): Renamed old andsi3_internal3.
780 (andsi3_internal5): New.
781 (andsi3_internal5+1): Enable split for powerpc64.
782 (andsi3_internal5+2): New split.
783 (andsi3_internal6, andsi3_internal7, andsi3_internal8): New.
784 (anddi3): Handle 't' constraint.
785 (anddi3+1): New split.
786 (anddi3_internal2): Handle 't' constraint.
787 (anddi3_internal2+1): New split.
788 (anddi3_internal3): Handle 't' constraint.
789 (anddi3_internal3+1): New split.
791 2002-07-24 Alan Modra <amodra@bigpond.net.au>
793 * config/rs6000/rs6000.md: Remove scratch reg on insns using
794 addze and similar (plus (comparison r1 r2) r3) insns. Add
795 missing scratch reg in one case. Formatting fixes.
797 2002-07-24 Neil Booth <neil@daikokuya.co.uk>
799 * cppexp.c (parse_defined): Mark macro used.
800 * cpphash.h (struct cpp_macro): New member "used".
801 (_cpp_mark_macro_used, _cpp_warn_if_unused_macro): New.
802 (struct cpp_reader): New member.
803 * cppinit.c (cpp_finish_options): Set first_unused_line.
804 (cpp_finish): Warn of unused macros if requested.
805 (OPT_TABLE): New switches.
806 (cpp_handle_option): Handle them.
807 * cpplib.c (do_undef): Warn if macro unused.
808 (do_ifdef, do_ifndef): Mark macro used.
809 * cpplib.h (struct cpp_options): New member.
810 * cppmacro.c (_cpp_warn_if_unused_macro): New.
811 (enter_macro_context): Mark macro used.
812 (_cpp_create_definition): Mark macro unused; warn if unused
814 * cpptrad.c (scan_out_logcial_line, push_replacement_text):
816 * doc/cppopts.texi: Update.
818 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
820 * dwarf2out.c (SECTION_ASM_OP,
821 ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
822 * system.h (SECTION_ASM_OP): Poison.
823 * tree.c (FILE_FUNCTION_PREFIX_LEN): Remove.
824 * config/alpha/alpha-interix.h, config/mips/linux.h
825 (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
826 * config/mmix/mmix-protos.h, config/mmix/mmix.c
827 (mmix_asm_output_define_label_difference_symbol): Remove.
829 (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
830 * doc/tm.texi: Remove documentation.
832 Tue Jul 23 21:49:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
834 * recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
835 (constrain_operands): Likewise.
836 * regclass.c (record_reg_classes): Likewise.
837 * reload.c (find_reloads): Likewise.
838 * doc/md.texi: Likewise.
840 * reload.c (find_reloads_toplev): Use simplify_gen_subreg.
841 * simplify-rtx.c (simplify_subreg): When converting to a non-int
842 mode, try to convert to an integer mode of matching size first.
844 * simplify-rtx.x (simplify_subreg): When constructing a CONST_VECTOR
845 from individual subregs, check that each subreg has been generated
848 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
850 * genautomata.c (VLA_HWINT_SHORTEN, VLA_HWINT_LAST): Remove.
851 * df.c (HANDLE_SUBREG, FOR_EACH_BB_IN_BITMAP_REV,
852 FOR_EACH_BB_IN_SBITMAP): Remove.
853 * gcse.c (NEVER_SET, FOLLOW_BACK_EDGES): Remove.
854 * haifa-sched.c (DONE_PRIORITY, MAX_PRIORITY, TAIL_PRIORITY,
855 LAUNCH_PRIORITY, DONE_PRIORITY_P, LOW_PRIORITY_P): Remove.
856 * loop.c (PREFETCH_BLOACK_IN_LOOP_MIN,
857 PREFETCH_LIMIT_TO_SIMULTANEOUS): Remove.
858 * regrename.c (REGNO_MODE_OK_FOR_BASE_P): Remove.
860 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
862 * pretty-print.h: New file.
864 2002-07-23 Paul Koning <pkoning@equallogic.com>
866 * real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
867 (LARGEST_EXPONENT_IS_NORMAL): Ditto.
868 (VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
869 (TARGET_G_FLOAT): Default to 0 if not defined.
870 (ieeetoe): New, common routine to convert target format floats
872 (e24toe, e53toe): Change to use ieeetoe, distinguish DEC
874 (e113toe): Change to use ieeetoe.
876 2002-07-23 Roman Lechtchinsky <rl@cs.tu-berlin.de>
878 * real.c (REAL_WORDS_BIG_ENDIAN): Make sure it is 0 for DEC and 1 for
880 (e53toe): Assume IEEE if non of DEC, IBM and C4X is defined.
881 (e64toe): Remove special cases for DEC and IBM. Remove support for
882 ARM_EXTENDED_IEEE_FORMAT.
883 (e24toe): Remove special cases for DEC.
884 (significand_size): Simplify. Indent.
885 (ieee_format, ieee_24, ieee_53, ieee_64, ieee_113): New.
886 (etoieee, toieee): New.
887 (etoe113, toe113, etoe64, toe64, etoe53, toe53, etoe24, toe24): Use
888 etoieee and toieee for IEEE arithmetic.
890 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
892 * doc/extend.texi: Say ISO C90, not ISO C89.
893 * doc/invoke.texi: Likewise.
894 * doc/standards.texi: Likewise.
896 2002-07-23 Steve Ellcey <sje@cup.hp.com>
898 * gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
899 Fix permutation of conversion and plus/mult.
900 * gcc/builtins.c (expand_builtin_memcpy) Ensure return pointer is
901 ptr_mode and not Pmode when POINTERS_EXTEND_UNSIGNED is defined.
902 (expand_builtin_strncpy) Ditto.
903 (expand_builtin_memset) Ditto.
905 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
908 * c-common.c (c_sizeof_or_alignof_type): New function.
909 (c_alignof): Remove definition.
910 * c-common.h (c_sizeof, c_alignof): Define as macros.
911 (c_sizeof_or_alignof_type): Declare.
912 (my_friendly_assert): Moved from cp/cp-tree.h
913 * c-typeck.c (c_sizeof): Remove definition.
915 2002-07-23 Jan Hubicka <jh@suse.cz>
917 * gcse.c (try_replace_reg): Use num_changes_pending.
918 * recog.c (num_changes_pending): New function.
919 (validate_replace_src): Use validate_repalce_src_group.
920 (validate_replace_src_group): New.
921 * recog.h (validate_repalce_src_group): New.
922 (num_changes_pending): Likewise.
924 Tue Jul 23 12:16:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
926 * calls.c (emit_library_call_value_1): If
927 FUNCTION_ARG_PASS_BY_REFERENCE is true, pretend this is neither
928 libcall, const call nor pure call.
930 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
932 * config/m88k/m88k.h (SECTION_ASM_OP): Remove.
934 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
936 * vmsdbgout.c (SECTION_ASM_OP): Remove.
938 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
940 * config/i386/i386.c (AT_BP): Remove.
942 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
944 * defaults.h (obstack_chunk_alloc, obstack_chunk_free):
946 * gcse.c: Don't define obstack_chunk_free.
947 * collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
948 flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
949 integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
950 reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
951 Don't define obstack macros.
953 2002-07-22 Stephane Carrez <stcarrez@nerim.fr>
956 * config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace
957 ASM_OPERANDS instructions.
959 2002-07-22 Stephane Carrez <stcarrez@nerim.fr>
962 * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
963 constant addresses only on 68HC12.
965 2002-07-22 Neil Booth <neil@daikokuya.co.uk>
967 * cppfiles.c (stack_include_file): Correct test of whether
968 a dependency should be output.
970 2002-07-22 David Edelsohn <edelsohn@gnu.org>
972 * collect2.c (is_ctor_dtor): Add other possible JOINER values.
974 2002-07-22 Richard Earnshaw <rearnsha@arm.com>
976 * arm.md (movqi): If optimizing and we can create pseudos, use
977 a ZERO_EXTEND to load from memory, then copy the result into the
979 (movhi): Likewise, but only for ARMv4.
981 2002-07-22 Neil Booth <neil@daikokuya.co.uk>
983 * ssa-ccp.c (PHI_PARMS): Remove.
985 2002-07-22 Richard Sandiford <rsandifo@redhat.com>
987 * config/mips/mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS
988 on big-endian targets.
990 2002-07-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
992 * hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
993 HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
994 HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
995 New formatting macros.
997 * ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
999 Mon Jul 22 15:27:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
1001 * rtlanal.c (subreg_regno_offset): Return correct offset for
1002 big endian paradoxical subregs.
1004 * optabs.c (expand_vector_unop): Don't expand using sub_optab
1005 if we got the wrong mode.
1007 * hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
1008 * genrecog.c (write_switch, write_cond): Use it.
1009 * genemit.c (gen_exp): Likewise.
1011 2002-07-22 Jakub Jelinek <jakub@redhat.com>
1013 * c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
1015 2002-07-22 Jakub Jelinek <jakub@redhat.com>
1017 * c-decl.c (build_compound_literal): Defer compound literal decls
1018 until until file end to emit them only if they are actually used.
1020 2002-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1022 * ra-build.c (check_conflict_numbers): Hide unused function.
1023 (livethrough_conflicts_bb): Avoid automatic aggregate
1025 (parts_to_webs_1): Avoid `U' integer constant modifier.
1026 (conflicts_between_webs): Wrap a variable in the macro controlling
1028 * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
1029 (dump_igraph, dump_graph_cost): Avoid string concatenation
1030 (dump_static_insn_cost): Avoid automatic aggregate
1032 * ra-rewrite.c (insert_stores): Avoid automatic aggregate
1034 (dump_cost): Avoid string concatenation
1036 2002-07-21 Richard Henderson <rth@redhat.com>
1038 * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
1039 GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
1041 2002-07-21 Richard Henderson <rth@redhat.com>
1043 * unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
1044 that are not unrolled completely.
1046 2002-07-21 Richard Henderson <rth@redhat.com>
1048 * loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
1049 * loop.c (strength_reduce): Update.
1050 * toplev.c (rest_of_compilation): Do unrolling in the first
1051 loop pass, not the second.
1053 2002-07-21 Richard Henderson <rth@redhat.com>
1055 * emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
1056 when flag_argument_noalias == 2.
1057 * alias.c (nonoverlapping_memrefs_p): Handle that.
1058 * print-rtl.c (print_mem_expr): Likewise.
1060 2002-07-21 Hartmut Schirmer <hartmut.schirmer@arcor.de>
1062 * libgcc2.c (__divdi3, __moddi3): Use unary minus operator
1063 instead of __negdi2 directly.
1065 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
1067 * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
1068 * function.c (SYMBOL__MAIN): Remove definition.
1069 * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
1070 * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
1071 * profile.c (GCOV_INDEX_TO_BB): Remove.
1072 * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
1073 * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
1075 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
1077 * c-lex.c (GET_ENVIRONMENT): Remove.
1078 * collect2.c (GET_ENV_PATH_LIST): Remove.
1079 (prefix_from_env): Use GET_ENVIRONMENT.
1080 * cppinit.c (GET_ENV_PATH_LIST): Remove.
1081 (init_standard_includes): Use GET_ENVIRONMENT.
1082 * defaults.h (GET_ENVIRONMENT): Define here if not already.
1083 * gcc.c (GET_ENV_PATH_LIST): Remove.
1084 (make_relative_prefix, process_command): Update.
1085 * protoize.c (GET_ENV_PATH_LIST): Remove.
1086 (do_processing): Update.
1088 2002-07-21 Gabriel Dos Reis <gdr@nerim.net>
1090 * c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
1091 (grokdeclarator): Likewise.
1092 * c-format.c (C_STD_NAME): Likewise.
1093 * c-lex.c (interpret_integer): Likewise.
1094 * c-typeck.c (build_array_ref): Likewise.
1095 * cpplex.c (_cpp_lex_direct): Likewise.
1096 * toplev.c (documented_lang_options): Likewise.
1098 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
1100 * c-format.c (T99_I, T99_UI): Remove.
1102 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
1104 * c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
1106 Sun Jul 21 21:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
1108 * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
1111 2002-07-21 Andreas Jaeger <aj@suse.de>
1113 * reload1.c (fixup_abnormal_edges): Remove unused variable.
1115 2002-07-21 Bernd Schmidt <bernds@redhat.com>
1117 Improvements for the ifcvt pass from Michael Meissner, with patches
1118 by Richard Sandiford <rsandifo@redhat.com>
1119 * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
1120 * ifcvt.c (cond_exec_changed_p): New static variable.
1121 (last_active_insn): New function, renamed from last_active_insn_p
1122 and changed to return the last active insn in a basic block. All
1124 (block_fallthru): New function.
1125 (cond_exec_process_insns): New argument CE_INFO. Pass it to
1126 IFCVT_MODIFY_INSN. All callers updated.
1127 Return false if START or END are NULL.
1128 Handle case where we're processing an insn that is already
1131 (noce_process_if_block): CE_INFO argument rather than
1132 multiple args containing the involved basic blocks. All callers
1134 (process_if_block, merge_if_block, find_if_block,
1135 cond_exec_process_if_block): Likewise.
1137 (cond_exec_process_if_block): New arg DO_MULTIPLE_P. All callers
1139 Use new function last_active_insn to simplify some code.
1140 New code to handle multiple tests.
1141 Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
1142 cond_exec_changed_p to TRUE.
1144 (process_if_block): New code to handle multiple tests.
1145 (merge_if_block): Likewise.
1146 (find_if_header): New arg PASS. Changed to return the currently
1147 processed basic block or NULL instead of true/false. All callers
1149 Call IFCVT_INIT_EXTRA_FIELDS.
1150 (block_jumps_and_fallthru_p): New function.
1151 (find_if_block): Discover opportunities to convert multiple tests.
1152 Add additional debugging output.
1153 Update the ce_info structure before returning.
1155 (if_convert): Run multiple passes of if-conversion.
1156 * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
1157 IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
1158 IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
1161 Sun Jul 21 00:54:54 CEST 2002 Jan Hubicka <jh@suse.cz>
1163 * gcse.c: Include cselib.h
1164 (constptop_register): Break out from ...
1165 (cprop_insn): ... here; kill basic_block argument.
1166 (do_local_cprop, local_cprop_pass): New functions.
1167 (one_cprop_pass): Call local_cprop_pass.
1169 2002-07-20 Roger Sayle <roger@eyesopen.com>
1171 * simplify-rtx.c (simplify_relational_operation): Optimize
1172 abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
1174 2002-07-20 Michae Matz <matz@suse.de>
1176 * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
1178 2002-07-20 Neil Booth <neil@daikokuya.co.uk>
1180 * cppexp.c (struct op): Add token pointer.
1181 (check_promotion, CHECK_PROMOTION): New.
1183 (_cpp_parse_expr): Update, use token pointer of struct op.
1184 (reduce): Warn about change of sign owing to promotion.
1185 * cppinit.c (cpp_handle_option): New warning if -Wall.
1186 * cpplib.h (struct cpp_options): New member.
1188 2002-07-19 David Edelsohn <edelsohn@gnu.org>
1190 * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
1191 fpu list. Separate Power4 compare and delayed_compare. Correct
1193 (fix_truncdfsi2_internal): Restore FPR preference.
1194 * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
1195 mcpu?power4, mcpu?604e. Remove mpower, mpower2, mpowerpc.
1197 2002-07-19 Momchil Velikov <velco@fadata.bg>
1199 * reload1.c (reload_as_needed): Duplicate oldpat.
1201 2002-07-20 Alan Modra <amodra@bigpond.net.au>
1203 PR optimization/7130
1204 * loop.h (struct loop_info): Add "preconditioned".
1205 * unroll.c (unroll_loop): Set it.
1206 * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
1208 2002-07-19 Zack Weinberg <zack@codesourcery.com>
1210 * rtl.def (CODE_LABEL): Remove slot 8.
1211 * rtl.h (struct rtx_def): Document new uses of jump and call fields.
1212 (LABEL_ALTERNATE_NAME): Delete.
1213 (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
1214 * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
1216 * final.c (output_alternate_entry_point): New.
1217 (final_scan_insn): Use it instead of
1218 ASM_OUTPUT_ALTERNATE_LABEL_NAME. Do not consider possibility
1219 of a case label being an alternate entry point.
1221 * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
1222 * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
1223 Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
1225 * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
1227 * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
1228 LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
1229 * doc/tm.texi: Delete documentation of
1230 ASM_OUTPUT_ALTERNATE_LABEL_NAME.
1232 2002-07-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1234 * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
1235 (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
1236 (LINK_SPEC): Define.
1237 (STARTFILE_SPEC): Define.
1238 (ENDFILE_SPEC): Define.
1240 * config/mips/iris6-o32.h (LINK_SPEC): Move ...
1241 * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
1243 * config/mips/iris6-o32-gas.h: New file.
1244 * config.gcc (mips-sgi-irix6*o32): Use it.
1246 * config/mips/t-iris5-gas: New file.
1247 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
1249 2002-07-19 Neil Booth <neil@daikokuya.co.uk>
1251 * cppexp.c (ALWAYS_EVAL): Remove.
1252 (optab, reduce): Always evaluate.
1253 (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
1254 only if not skipping evaluation.
1256 2002-07-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
1258 * config/avr/avr.c (debug_hard_reg_set): Remove.
1260 2002-07-19 Chris Demetriou <cgd@broadcom.com>
1262 * gcc.c (cpp_options): Include "%1" (cc1_spec).
1264 2002-07-19 Richard Henderson <rth@redhat.com>
1266 * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
1268 2002-07-19 Alan Modra <amodra@bigpond.net.au>
1270 * prefix.c (update_path): Don't zap single `.' path components
1271 unless followed by another `.' and fix typo last patch.
1273 2002-07-18 Neil Booth <neil@daikokuya.co.uk>
1275 * cppexp.c (cpp_num_mul): Remove unused parameter.
1276 (UNARY, BINARY, OTHER, binary_handler): Remove.
1279 (reduce): Refactor to a large switch, don't use a function
1282 2002-07-18 Bo Thorsen <bo@berlioz.suse.de>
1284 * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
1286 Thu Jul 18 19:39:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
1288 * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
1289 (sh_expand_binop_v2sf): Likewise.
1290 * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
1291 (int_gpr_dest, trunc_hi_operand): New functions.
1292 * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
1294 (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
1295 * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
1296 (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
1297 (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
1298 (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
1299 (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
1300 (extendhisi2_media+1, extendqisi2_media+1): Likewise.
1301 (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
1302 (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
1303 (movsf_ie+1): Likewise.
1304 (loaddi_trunc): Use int_gpr_dest predicate.
1305 (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
1306 (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
1307 (casesi_worker_0+[12], casesi_worker): Likewise.
1308 (shcompact_preserve_incoming_args): Likewise.
1309 (mov_nop): Use any_register_operand predicate.
1310 (mperm_w0): Use trunc_hi_operand predicate.
1312 2002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
1314 * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
1315 * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
1318 2002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
1320 * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
1322 2002-07-18 Richard Henderson <rth@redhat.com>
1324 PR optimization/7147
1325 * ifcvt.c (noce_get_condition): Make certain that the condition
1328 Thu Jul 18 13:44:51 2002 J"orn Rennecke <joern.rennecke@superh.com>
1330 * sh.c (barrier_align, push): Shut up compiler warnings.
1331 (initial_elimination_offset,sh_media_init_builtins): Likewise.
1332 (reg_no_subreg_operand): Delete.
1334 2002-07-17 Bo Thorsen <bo@suse.de>
1336 * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
1337 (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
1338 (STARTFILE_SPEC): Remove hardcoded library paths.
1339 (ENDFILE_SPEC): Likewise.
1341 Thu Jul 18 09:38:59 CEST 2002 Jan Hubicka <jh@suse.cz>
1343 * gcse.c (hoist_expr_reaches_here_p): Stop once expr_bb is reached.
1345 * gcse.c (try_replace_reg): Do not return false positives.
1347 2002-07-18 Alan Modra <amodra@bigpond.net.au>
1349 * prefix.c: (update_path): Strip ".." components when prior dir
1350 doesn't exist. Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
1352 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
1353 (ASM_OUTPUT_REG_POP): Likewise.
1355 2002-07-18 Alan Modra <amodra@bigpond.net.au>
1357 * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
1358 adjustments to first_reg for profiling case.
1359 (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
1360 Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
1361 Save static chain reg to sp + 12 on ABI_AIX_NODESC.
1362 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
1363 (ASM_OUTPUT_REG_POP): Define.
1364 * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
1365 (ASM_OUTPUT_REG_POP): Undef.
1367 2002-07-17 Neil Booth <neil@daikokuya.co.uk>
1369 * cpplib.c (do_sccs): Handle #sccs on all systems.
1370 * system.h (SCCS_DIRECTIVE): Poison.
1371 * config/darwin.h, config/freebsd.h, config/netbsd.h,
1372 config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
1373 config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
1374 config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
1375 config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
1376 config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
1377 config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
1378 config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
1379 Remove all references to SCCS_DIRECTIVE.
1380 * doc/cpp.texi, doc/tm.texi: Update.
1382 Wed Jul 17 19:23:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
1384 * regrename.c (maybe_mode_change): New function.
1385 (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
1387 2002-07-17 Rodney Brown <rbrown64@csc.com.au>
1389 * config/i386/i386.c (ix86_expand_int_movcc): In the general case
1390 suppress addition when either ct or cf are zero.
1392 2002-06-17 Eric Botcazou <ebotcazou@multimania.com>
1393 Glen Nakamura <glen@imodulo.com>
1395 PR optimization/6713
1396 * loop.c (loop_givs_rescan): Explicitly delete the insn that
1397 sets a non-replaceable giv after issuing the new one.
1399 2002-07-17 Neil Booth <neil@daikokuya.co.uk>
1401 * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
1402 eval_token): Clarify and correct use of "bool" variables.
1403 * cpplib.h (struct cpp_options): Similarly.
1404 * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
1405 * cpptrad.c (recursive_macro): Similarly.
1407 Wed Jul 17 17:08:06 2002 J"orn Rennecke <joern.rennecke@superh.com>
1409 * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
1412 * sh.md (cmpgtudi_media): Remove spurious @.
1414 * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
1415 * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
1417 * config/sh/lib1funcs.asm (init_trampoline): New entry point.
1418 * sh-protos.h (sh_initialize_trampoline): Declare.
1419 * sh.c (sh_initialize_trampoline): New function.
1420 * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
1421 (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
1422 (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
1423 (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
1424 * sh.md (initialize_trampoline, double_shori): New patterns.
1425 (initialize_trampoline_compact): Likewise.
1426 (shmedia32_initialize_trampoline_big): Remove.
1427 (shmedia32_initialize_trampoline_little): Likewise.
1429 * sh-protos.h (binary_float_operator): Remove declaration.
1430 (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
1431 * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
1432 (unary_float_operator, sh_expand_unop_v2sf): New functions.
1433 (sh_expand_binop_v2sf): Likewise.
1434 (zero_vec_operand): Delete.
1435 (SH_BLTIN_UDI): New builtin shared signature define. Renumbered
1436 all non-shared ones.
1437 (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
1438 Enable nsb and byterev.
1439 * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
1440 (HARD_REGNO_MODE_OK): Allow TImode in fp regs. Allow V2SFmode
1442 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
1443 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise. Remove clause for
1445 (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
1447 (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
1448 lowpart fp regs - only for big endian for now.
1449 (LEGITIMATE_CONSTANT_P): Don't allow non-zero float vectors
1451 (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
1452 (LOAD_EXTEND_OP): NIL for SImode.
1453 (REGISTER_MOVE_COST): Add DF_HI_REGS. Const for moves between
1454 general and fp registers is 4.
1455 PREDICATE_CODES: Amend binary_float_operator entry.
1456 Remove zero_vec_operand. Add unary_float_operator.
1457 * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
1459 (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
1460 (truncdiqi2): Do sign extension.
1461 (movsi_media, movdi_media): Allow to use r63 to an fp register.
1462 (movdf_media, movsf_media): Likewise.
1463 (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
1464 Collapse to one define_insn_and_split. Allow immediate sources.
1465 (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
1466 (movv4sf_i): Allow immediate sources. Use simplify_gen_subreg.
1467 (movv4sf): Allow immediate sources.
1468 (movsf_media_nofpu+1): Don't split moves to FP registers.
1469 (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
1470 (movv8qi_i+3): Check against CONST0_RTX.
1471 (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
1472 for input and output operands. Fix argument 3 to gen_mextr_rl.
1473 (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
1474 (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
1475 (mshf0_w, fipr, ftrv): Likewise.
1476 (mshfhi_l_di): Now insn_and_split. Can handle FP regs.
1478 2002-07-17 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
1480 * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
1481 NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively. All uses changed.
1484 2002-07-17 Richard Sandiford <rsandifo@redhat.com>
1486 * config/mips/mips-protos.h (mips_sign_extend): Declare.
1487 * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
1488 (TARGET_SWITCHES): Remove debugh.
1489 (ISA_HAS_TRUNC_W): New macro.
1490 (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
1491 (PREDICATE_CODES): Remove se_nonimmediate_operand.
1492 * config/mips/mips.c (movdi_operand): Allow sign-extensions of
1493 any SImode move_operand.
1494 (se_nonimmediate_operand): Remove.
1495 (mips_sign_extend): New.
1496 (mips_move_2words): Use it for sign-extended source operands.
1497 (override_options): Allow integers to be put into single FPRs.
1498 (mips_secondary_reload_class): Handle integers in float registers.
1499 * config/mips/mips.md (extendsidi2): Turn into a define_expand.
1500 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
1501 (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
1502 (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
1503 (fix_truncdfdi2): Provide only a single alternative, in which the
1504 integer is in a float register. Depend on TARGET_FLOAT64 rather
1506 (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
1507 (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
1508 (movdi_internal2): Don't allow the source operand to be sign-extended.
1509 Add alternatives for float registers.
1510 (*movdi_internal2_extend): New. Version of movdi_internal2 that
1511 allows sign-extension.
1512 (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
1513 (movsi_internal2): Rename to movsi_internal. Add alternatives for
1514 float registers. Remove TARGET_DEBUG_H_MODE test.
1515 (movhi_internal1): Rename to movhi_internal. Don't check
1516 TARGET_DEBUG_H_MODE. Fix transposed *d and *f source constraints.
1517 (movqi_internal1): Rename to movqi_internal and remove
1518 TARGET_DEBUG_H_MODE dependency.
1519 (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
1521 2002-07-16 Jim Wilson <wilson@redhat.com>
1523 * toplev.c (lang_dependent_init): Create function context for
1526 2002-07-16 Hans-Peter Nilsson <hp@axis.com>
1528 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
1529 --gc-sections if -r.
1530 * config/cris/cris.h: Ditto.
1532 2002-07-16 Rodney Brown <rbrown64@csc.com.au>
1534 * config/i386/i386.c (ix86_expand_int_movcc): In the case where
1535 the comparison directly gives a mask suppress addition when cf is
1536 zero by complementing the mask.
1538 2002-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
1540 * Makefile.in: Delete references to enquire.
1541 * enquire.c: Move to contrib.
1543 2002-07-16 Stan Shebs <shebs@apple.com>
1545 * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
1546 config/rs6000/darwin.h.
1547 (ASM_OUTPUT_SKIP): Ditto.
1548 (TEXT_SECTION_ASM_OP): Ditto.
1549 (DATA_SECTION_ASM_OP): Ditto.
1550 (ASM_APP_ON): Define.
1551 (ASM_APP_OFF): Define.
1552 * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
1553 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
1555 * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
1556 (machopic_function_base_name): Declare result to be const.
1557 (machopic_non_lazy_ptr_name): Ditto.
1558 (machopic_stub_name): Ditto.
1559 * config/darwin-protos.h: Ditto for the prototypes.
1561 Wed Jul 17 00:22:39 CEST 2002 Jan Hubicka <jh@suse.cz>
1563 * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
1565 Wed Jul 17 00:20:48 CEST 2002 Jan Hubicka <jh@suse.cz>
1567 * i386.md (prefetch): Fix for 64bit mode.
1568 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
1570 Wed Jul 17 00:19:20 CEST 2002 Jan Hubicka <jh@suse.cz>
1572 * i386.h (MACHINE_DEPENDENT_REORG): New macro.
1573 * i386.c (x86_machine_dependent_reorg): New function.
1574 * i386-protos.h (x86_machine_dependent_reorg): Declare.
1576 2002-07-16 Zack Weinberg <zack@codesourcery.com>
1578 * builtins.c (std_expand_builtin_va_start): Remove unused
1580 (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
1581 std_expand_builtin_va_start with just two arguments.
1582 * expr.h: Update prototypes.
1584 * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
1585 arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
1586 i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
1587 m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
1588 mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
1589 rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
1590 s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
1591 sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
1592 xtensa-protos.h, xtensa.h, xtensa.c: Remove unused first
1593 argument from all implementations of EXPAND_BUILTIN_VA_START
1594 and all uses of std_expand_builtin_va_start.
1596 Tue Jul 16 19:32:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
1598 * regrename.c (copy_value): Don't record high part copies.
1600 2002-07-16 Steve Ellcey <sje@cup.hp.com>
1602 * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
1603 (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
1604 * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
1606 2002-07-16 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1608 * doc/invoke.texi (NS32K Options): Document -mieee-compare option
1610 * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
1611 into addsi3 using register class "x" and "y".
1613 * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
1614 "earlyclobber" constraint modifier for some alternative.
1616 * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
1617 (*ble, *blt): Flag to indicate bCOND and sCOND should check for
1619 config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
1621 * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
1622 (TARGET_SWITCHES): Add -mieee-compare option.
1623 (OVERRIDE_OPTIONS): 32332 is a subset of
1624 32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
1625 (TARGET_SWITCHES): Fix description of bitfield option.
1626 * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
1627 -mieee-compare option. Remove 32332 flag.
1629 2002-07-16 Steve Ellcey <sje@cup.hp.com>
1631 * explow.c (convert_memory_address): Remove special handling
1632 when POINTERS_EXTEND_UNSIGNED < 0.
1633 * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
1634 (movedi_symbolic): Fix typo.
1635 (load_fptr): Remove mode restriction so it works for SI and DI.
1636 (load_fptr_internal1): Ditto.
1637 (load_gprel): Ditto.
1638 (load_symptr_internal1): Ditto.
1640 * config/ia64.c (call_operand): Modify mode check.
1641 (ia64_expand_load_address): Handle DI and SI addresses and symbols.
1642 (ia64_expand_move): Ditto.
1643 (ia64_assemble_integer): Handle SImode function pointers.
1644 (ia64_expand_fetch_and_op): Handle SImode mem addresses.
1645 (ia64_expand_op_and_fetch): Ditto.
1646 (ia64_expand_compare_and_swap): Ditto.
1647 (ia64_expand_lock_test_and_set): Ditto.
1648 (ia64_expand_lock_release): Ditto.
1650 2002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
1652 * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
1654 2002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
1655 Richard Earnshaw <rearnsha@arm.com>
1657 * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
1658 CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF. Simplify logic.
1660 2002-07-16 Richard Earnshaw <rearnsha@arm.com>
1662 * arm.md (stack_tie): New insn. Use an idiom that the alias code
1663 understands to be a memory clobber.
1664 * arm.c (arm_expand_prologue): Use it.
1666 2002-07-16 Daniel Berlin <dberlin@dberlin.org>
1668 * ra-rewrite.c: #include reload.h, insn-config.h
1669 * ra-build.c: #include reload.h
1670 * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
1671 depend on reload.h, insn-config.h.
1673 Tue Jul 16 11:57:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
1675 * expr.c (emit_move_insn_1): Handle arbitrary moves that are
1676 the same size as a word.
1678 * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
1679 BYTES_BIG_ENDIAN into account.
1681 Tue Jul 16 12:22:44 CEST 2002 Jan Hubicka <jh@suse.cz>
1683 * i386.md (prefetch): Fix for 64bit mode.
1684 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
1686 * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
1688 2002-07-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1690 * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
1692 2002-07-15 Zack Weinberg <zack@codesourcery.com>
1694 * ginclude/varargs.h: Replace with stub which issues #error.
1695 * ginclude/stdarg.h: __builtin_stdarg_start is renamed
1698 * builtins.def (BUILT_IN_VARARGS_START): Delete.
1699 (BUILT_IN_VA_START): New.
1700 * builtins.c (expand_builtin_va_start): Eliminate first
1701 argument and code to implement pre-ISO varargs.
1702 (std_expand_builtin_va_start): Ignore first argument; it is
1704 (expand_builtin): Handle BUILT_IN_VA_START and
1705 BUILT_IN_STDARG_START identically. Delete
1706 BUILT_IN_VARARGS_START case.
1708 * function.c (assign_parms): Delete hide_last_arg and all
1710 (mark_varargs): Delete function.
1711 * function.h (struct function): Delete 'varargs' bit.
1712 (current_function_varargs): Delete macro.
1713 * tree.h: Don't declare mark_varargs.
1715 * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
1716 (c_expand_body): Don't call mark_varargs.
1717 * c-objc-common.c: Handle BUILT_IN_VA_START and
1718 BUILT_IN_STDARG_START identically. Delete
1719 BUILT_IN_VARARGS_START case.
1720 * c-tree.h: Don't declare c_mark_varargs.
1721 * c-parse.in: Remove grammar rules for '&...' (which has been
1722 commented out since before 2.7.2) and for '...' in K+R
1723 argument declarations.
1725 * builtins.c, function.c, integrate.c, sibcall.c,
1726 config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
1727 config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
1728 config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
1729 config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
1730 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
1731 config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
1732 config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
1733 config/stormy16/stormy16.c: Delete all references to
1734 current_function_varargs, and code predicated on that flag.
1736 * config/alpha/alpha.c (alpha_va_start),
1737 config/arc/arc.c (arc_va_start),
1738 config/i386/i386.c (ix86_va_start),
1739 config/mips/mips.c (mips_va_start),
1740 config/mn10300/mn10300.c (mn10300_va_start),
1741 config/rs6000/rs6000.c (rs6000_va_start),
1742 config/s390/s390.c (s390_va_start),
1743 config/sh/sh.c (sh_va_start),
1744 Ignore first argument; it is always 1.
1746 * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
1747 * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
1748 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
1749 Delete m68hc11_va_start.
1750 * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
1751 No need to define EXPAND_BUILTIN_VA_START.
1753 * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
1754 doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
1756 2002-07-15 Eric Botcazou <ebotcazou@multimania.com>
1758 PR optimization/7153
1759 * regmove.c (optimize_reg_copy_3): Don't optimize if the register
1760 dies in more than one insn.
1762 2002-07-15 Jason Thorpe <thorpej@wasabisystems.com>
1764 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
1766 2002-07-15 Michael Matz <matz@suse.de>,
1767 Daniel Berlin <dberlin@dberlin.org>,
1768 Denis Chertykov <denisc@overta.ru>
1770 Add a new register allocator.
1774 * ra-build.c: New file.
1775 * ra-colorize.c: New file.
1776 * ra-debug.c: New file.
1777 * ra-rewrite.c: New file.
1779 * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
1780 (ra-rewrite.o): New .o files for libbackend.a.
1781 (GTFILES): Add basic-block.h.
1783 * toplev.c (flag_new_regalloc): New.
1784 (f_options): New option "new-ra".
1785 (rest_of_compilation): Call initialize_uninitialized_subregs()
1786 only for the old allocator. If flag_new_regalloc is set, call
1787 new allocator, instead of local_alloc(), global_alloc() and
1790 * doc/invoke.texi: Document -fnew-ra.
1791 * basic-block.h (FOR_ALL_BB): New.
1792 * config/rs6000/rs6000.c (print_operand): Write small constants
1795 * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
1796 (df_reg_table_realloc): Make size at least as large as max_reg_num().
1797 (df_insn_table_realloc): Size argument now is absolute, not relative.
1798 Changed all callers.
1800 * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
1801 * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
1803 2002-06-20 Michael Matz <matz@suse.de>
1805 * df.h (struct ref.id): Make unsigned.
1806 * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
1808 2002-06-13 Michael Matz <matz@suse.de>
1810 * df.h (DF_REF_MODE_CHANGE): New flag.
1811 * df.c (df_def_record_1, df_uses_record): Set this flag for refs
1812 involving subregs with invalid mode changes, when
1813 CLASS_CANNOT_CHANGE_MODE is defined.
1815 2002-05-07 Michael Matz <matz@suse.de>
1817 * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
1819 2002-05-03 Michael Matz <matz@suse.de>
1821 * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
1823 Sat Feb 2 18:58:07 2002 Denis Chertykov <denisc@overta.ru>
1825 * regclass.c (regclass): Work with all regs which have sets or
1827 (reg_scan_mark_refs): Count regs inside (clobber ...).
1829 2002-01-04 Michael Matz <matzmich@cs.tu-berlin.de>
1831 * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
1832 (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
1834 (df_bb_refs_update): Don't clear insns_modified here, ...
1835 (df_analyse): ... but here.
1837 * sbitmap.c (dump_sbitmap_file): New.
1838 (debug_sbitmap): Use it.
1840 * sbitmap.h (dump_sbitmap_file): Add prototype.
1842 2001-08-07 Daniel Berlin <dan@cgsoftware.com>
1844 * df.c (df_insn_modify): Grow the UID table if necessary, rather
1845 than assume all emits go through df_insns_modify.
1847 2001-07-26 Daniel Berlin <dan@cgsoftware.com>
1849 * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
1850 increase REG_N_REFS (like flow does), so that regclass doesn't
1851 think a reg is useless, and thus, not calculate a class, when it
1854 2001-01-28 Daniel Berlin <dberlin@redhat.com>
1856 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
1859 2002-07-15 Jakub Jelinek <jakub@redhat.com>
1862 * config/i386/i386.c (const_int_1_31_operand): New.
1863 * config/i386/i386.h (PREDICATE_CODES): Add it.
1864 * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
1865 ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
1866 lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
1868 2002-07-14 Alan Modra <amodra@bigpond.net.au>
1871 * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
1872 (floatunssidf2): Likewise.
1873 (floatsidf_ppc64): New insn_and_split.
1874 (floatunssidf_ppc64): Likewise.
1876 2002-07-14 Andreas Jaeger <aj@suse.de>
1878 * config.gcc (sh64): Remove unused
1879 target_requires_64bit_host_wide_int.
1881 2002-07-12 Roger Sayle <roger@eyesopen.com>
1883 * expr.c [CLEAR_RATIO]: New macro defining the maximum number
1884 of move instructions to use when clearing memory, c.f. MOVE_RATIO.
1885 [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
1886 whether clear_by_pieces should be used to clear storage.
1887 (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
1889 * doc/tm.texi: Document these two new target macros.
1891 2002-07-12 Stephane Carrez <stcarrez@nerim.fr>
1893 * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
1894 the scratch register.
1895 ("*movhi2_push"): Accept Z_REG because a split pattern can make use
1896 of it, forbid reload to use it.
1898 2002-07-12 Marek Michalkiewicz <marekm@amelek.gda.pl>
1900 * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
1901 usage on 64-bit hosts, return value was truncated to 32 bits.
1903 Fri Jul 12 00:49:36 2002 J"orn Rennecke <joern.rennecke@superh.com>
1905 * simplify-rtx.c (simplify_subreg): Handle floating point
1906 CONST_DOUBLEs. When an integer subreg of a smaller mode than
1907 the element mode is requested, compute a subreg with an
1908 integer mode of the same size as the element mode first.
1910 Thu Jul 11 22:02:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
1912 * combine.c (try_combine): When converting a paradoxical subreg
1913 to an extension, take LOAD_EXTEND_OP into account.
1915 2002-07-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1917 * config.gcc (mips-sgi-irix6*o32): New configuration.
1919 * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
1921 * configure: Regenerate.
1923 * config/mips/iris6-o32-as.h: New file.
1924 * config/mips/iris6-o32.h: New file.
1926 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
1928 (HAVE_AS_SHF_MERGE): Undefine.
1930 * config/mips/t-iris5-as: New file.
1931 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
1933 * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
1934 SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
1935 SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
1936 dp-bit.c, fp-bit.c): Move ...
1937 * config/mips/t-iris5-6: ... here.
1938 New file, shared by IRIX 5 and IRIX 6.
1939 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
1940 mips-sgi-irix5*): Use it.
1942 * config/mips/iris6.h: Remove duplicate comment.
1944 * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
1945 !TARGET_IRIX6]: Define.
1946 (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
1948 * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
1950 2002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1952 * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
1953 and delete code to force constant to register.
1954 * pa-protos.h (adddi3_operand): Add prototype.
1955 * pa.c (adddi3_operand): New function.
1957 2002-07-11 Roger Sayle <roger@eyesopen.com>
1959 * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
1960 non-ANSI builtin functions.
1962 Thu Jul 11 11:31:12 2002 J"orn Rennecke <joern.rennecke@superh.com>
1964 * rtl.h (gen_rtx_CONST_VECTOR): Declare.
1965 * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
1966 * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
1967 (gen_const_vector_0): Use it.
1969 2002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1971 * pa.md (adddi3): For 32-bit targets, force constants to a register
1972 if they don't fit in an 11-bit immediate. Change insn predicate to
1973 arith11_operand. Remove comment.
1974 * pa.c (cint_ok_for_move): Fix comment.
1975 (emit_move_sequence): Don't directly split DImode constants on 32-bit
1978 2002-07-11 Tim Josling <tej@melbpc.org.au>
1980 Remove front end hard coding from gengtype.c.
1983 (STAGESTUFF): add gtyp-gen.h
1984 (GTFILES): Remove front end specific files.
1985 (GTFILES_FILES_LANGS): New, from configure..
1986 (GTFILES_FILES_FILES): Likewise.
1987 (GTFILES_LANG_DIR_NAMES): Likewise.
1988 (GTFILES_SRCDIR): Likewise.
1989 (gtyp-gen.h): Build from configure information.
1990 (s-gtype): Remove command line parameters from gengtype.
1991 (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
1992 (mostlyclean): Delete files generated by and for gengtype.
1994 * c-config-lang.in: New file.
1996 * configure.in (all_gtfiles_files_langs): New. Accumulate files
1998 (all_gtfiles_files_files): New. Accumulate language for each file
2000 (gtfiles): Pick up value for C.
2001 (srcdir): AC-SUBST this variable.
2002 (all_gtfiles_files_langs): AC-SUBST this variable.
2003 (all_gtfiles_files_files): AC-SUBST this variable.
2005 * configure: Regenerate.
2007 * gengtype-lex.l (parse_file): Make parameter const.
2009 * gengtype.c (toplevel): include gtyp-gen.h.
2010 (BASE_FILE_<language> unnamed enum): Delete.
2011 (lang_names): Delete (replaced by gtyp-gen.h)
2012 (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
2014 (NUM_GT_FILES): New.
2015 (NUM_LANG_FILES): New.
2017 (NUM_BASE_FILES): Change calculation.
2018 (open_base_files): Change prototype to avoid warning.
2019 (startswith): Delete.
2020 (get_file_basename): Iterate through generated language list not
2022 (get_base_file_bitmap): Use generated list of files and languages.
2023 (close_output_files): Add prototype to rmove warning.
2024 (main): Iterate through list of generated files from gtyp-gen.h
2025 rather than command line paramaters. Ignore duplicated file
2028 * gengtype.h (parse_file): Amend prototype for const parameter.
2030 * doc/sourcebuild.texi: Document gtfiles variable.
2032 * doc/gty.texi: Document changes to gtfiles variable for front
2035 * objc/config-lang.in (gtfiles): Add files needed for objc front
2038 2002-07-10 Roger Sayle <roger@eyesopen.com>
2041 * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
2042 to SUBREGs of MEMs. (num_sign_bit_copies): Likewise.
2044 2002-07-10 Roger Sayle <roger@eyesopen.com>
2045 Zack Weinberg <zack@codesourcery.com>
2047 * builtins.def: Make the argument types of abort and exit
2048 independent of the front-end.
2050 2002-07-11 Alan Modra <amodra@bigpond.net.au>
2052 * config/rs6000/linux64.h (ASM_SPEC): Define.
2054 2002-07-10 Aldy Hernandez <aldyh@redhat.com>
2056 * config/rs6000/rs6000.c (emit_frame_save): New.
2057 (rs6000_frame_related): Replace reg2 before reg.
2058 (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
2059 and eh_return registers.
2061 2002-07-10 Toon Moene <toon@moene.indiv.nluug.nl>
2063 Revert all patches for optimization of Complex .op. Real.
2064 * complex_part_zero_p: Remove
2065 * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
2067 * expand_cmplxdiv_wide: Ditto.
2068 * expand_binop: Ditto.
2070 2002-07-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
2072 * config/avr/avr.md: Fix two 0x80000000 constants to make them
2073 negative also on 64-bit hosts.
2075 Default to -fno-reorder-blocks when optimizing for size.
2076 * config/avr/avr-protos.h (avr_optimization_options): Declare.
2077 * config/avr/avr.c (avr_optimization_options): New function.
2078 * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
2080 Optimize returning from simple functions.
2081 * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
2082 * config/avr/avr.c (avr_simple_epilogue): New function.
2083 * config/avr/avr.md (return): New insn.
2085 2002-07-10 Douglas B Rupp <rupp@gnat.com>
2087 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Add
2088 HAS_INIT_SECTION to protection.
2090 2002-07-10 Mark Mitchell <mark@codesourcery.com>
2092 * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
2095 Wed Jul 10 19:50:03 2002 J"orn Rennecke <joern.rennecke@superh.com>
2097 * combine.c (gen_lowpart_for_combine): Handle vector modes.
2098 Supply non-VOID mode to simplify_gen_subreg.
2100 Wed Jul 10 18:48:55 CEST 2002 Jan Hubicka <jh@suse.cz>
2102 * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
2104 2002-07-10 Jeffrey A Law <law@redhat.com>
2106 * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
2109 * mn10200.c (expand_epilogue): Fix test to determine which scratch
2112 Wed Jul 10 16:06:00 2002 J"orn Rennecke <joern.rennecke@superh.com>
2114 * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
2116 If simplify_gen_subreg fails, try next equivalent.
2118 2002-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
2120 * diagnostic.h: #include location.h
2121 (location_t): Move definition to..
2122 * location.h: ... here. New file.
2123 * tree.h: #include location.h
2124 (DECL_SOURCE_LOCATION): New macro.
2125 (DECL_SOURCE_FILE): Use.
2126 (DECL_SOURCE_LINE): Likewise.
2127 (struct tree_decl): REplace filename and linenum with locus.
2128 * Makefile.in (TREE_H): add location.h
2129 (diagnostic.o): Depends on gt-location.h
2130 (gt-location.h): Depends on s-gtype
2132 2002-07-09 Matt Kraai <kraai@alumni.cmu.edu>
2134 * config/rs6000/aix.h: Convert CPP_PREDEFINES to
2135 TARGET_OS_CPP_BUILTINS.
2136 * config/rs6000/aix31.h: Likewise.
2137 * config/rs6000/aix41.h: Likewise.
2138 * config/rs6000/aix43.h: Likewise.
2139 * config/rs6000/aix51.h: Likewise.
2140 * config/rs6000/beos.h: Likewise.
2141 * config/rs6000/darwin.h: Likewise.
2142 * config/rs6000/eabi.h: Likewise.
2143 * config/rs6000/eabisim.h: Likewise.
2144 * config/rs6000/linux.h: Likewise.
2145 * config/rs6000/linux64.h: Likewise.
2146 * config/rs6000/lynx.h: Likewise.
2147 * config/rs6000/mach.h: Likewise.
2148 * config/rs6000/rtems.h: Likewise.
2149 * config/rs6000/sysv4.h: Likewise.
2150 * config/rs6000/vxppc.h: Likewise.
2152 2002-07-09 Devang Patel <dpatel@apple.com>
2153 * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
2154 Do not allow ObjC objects as a parameter type for Objective-C methods.
2155 My previous patch restricted 'struct' also.
2157 2002-07-09 Neil Booth <neil@daikokuya.co.uk>
2159 * cpperror.c (cpp_error): Default to directive_line within
2161 * cppexp.c (cpp_interpret_integer): Only use traditional
2162 number semantics in directives.
2163 * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
2164 (do_include_common): Similarly.
2165 * cpptrad.c (scan_out_logical_line): Implement accurate
2166 quoting of <> in #include.
2167 * doc/cpp.texi: Update.
2169 Tue Jul 9 22:37:44 2002 Stephen Clarke <stephen.clarke@superh.com>
2170 J"orn Rennecke <joern.rennecke@superh.com>
2172 * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
2173 * sh.md (attribute issues): Replace with:
2174 (attribute pipe_model). All users changed.
2175 (attribute type): Change pt / ptabs to pt_media / ptabs_media.
2177 (function units sh5issue, sh5fds): New.
2178 (attribute is_mac_media): New.
2179 (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
2180 (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
2181 (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
2182 (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
2183 (call_media, call_value_media, sibcall_media): Likewise.
2184 (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
2185 (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
2186 (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
2187 (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
2188 (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
2189 (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
2190 (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
2191 (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
2192 (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
2193 (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
2194 (truncdfsf2_media): Likewise.
2195 (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
2196 (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
2198 Tue Jul 9 21:39:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
2200 * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
2201 * sh.c (general_extend_operand, inqhi_operand): New functions.
2202 * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
2203 alternatives using 'N' modifier. Add type.
2204 (adddi3z_media): Likewise. Enable generator function generation.
2205 (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
2206 exact predicates / constraints. Add type.
2207 (subsi3): Allow 0 for SHMEDIA.
2208 (udivsi3_i4_media): Use match_operand for input values
2209 rather than hard registers.
2210 (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
2211 unnecessarily through hard registers. Keep copies of pseudo
2212 registers outside of the libcall sequence.
2213 (mulsidi3_media, umulsidi3_media): Use more exact predicates. Add type.
2214 (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
2215 (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
2216 (extendhidi2, extendqidi2): Likewise.
2217 (andsi3_compact): Name.
2218 (andcdi3): Enable generator function generation.
2219 (zero_extendhisi2, zero_extendqisi2): Rename to
2220 (zero_extendhisi2_compact, zero_extendqisi2_compact).
2221 (extendhisi2, extendqisi2): Rename to
2222 (extendhisi2_compact, extendqisi2_compact).
2223 (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
2224 (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
2225 (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
2226 (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
2227 (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
2228 (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
2229 (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
2230 (shmedia32_initialize_trampoline_big): Likewise.
2231 (shmedia32_initialize_trampoline_little): Likewise.
2232 (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
2233 (negdi2): Remove spurious T clobber.
2234 (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
2235 (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
2236 (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
2237 (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
2238 (ic_invalidate_line_media): Write back data cache before invalidating
2239 instruction cache. Add type.
2240 (movsf_media): Sign-extend when the destination is a general
2241 purpose register. Add type.
2242 (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
2243 (casesi_worker_0+1): Only increment ref count for proper label.
2244 (casesi_worker_0+2): Likewise.
2246 2002-07-09 Mark Mitchell <mark@codesourcery.com>
2248 * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
2250 2002-07-09 Steve Ellcey <sje@cup.hp.com>
2252 * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
2253 from Pmode to ptr_mode.
2254 (get_exception_pointer): Ditto.
2255 (connect_post_landing_pads): Ditto.
2256 (dw2_build_landing_pads): Ditto.
2258 2002-07-08 Steve Ellcey <sje@cup.hp.com>
2259 * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
2260 * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
2261 (handle_pragma_redefine_extname): Change to use new function.
2263 2002-07-08 Roger Sayle <roger@eyesopen.com>
2265 * combine.c (combine_simplify_rtx): Add an explicit cast
2266 to avoid signed/unsigned comparison warning.
2267 (simplify_if_then_else): Likewise.
2268 (extended_count): Likewise.
2269 (simplify_shift_const): Likewise.
2270 (simplify_comparison): Likewise.
2272 2002-07-08 Richard Sandiford <rsandifo@redhat.com>
2274 * config/mips/mips.md: Add imadd type. Update scheduler description
2275 to use imadd as well as imul.
2276 (*mul_acc_si, *madsi): Change imul alternatives to imadd.
2277 (*mul_acc_di, *mul_acc_64bit_di): Likewise.
2278 (*mul_sub_si): Likewise for first alternative. Change second
2279 alternative from imul to multi.
2281 2002-07-07 Neil Booth <neil@daikokuya.co.uk>
2283 * c-common.c (c_common_post_options): Update prototype;
2284 don't init backends if preprocessing only.
2285 * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
2286 * langhooks.h (struct lang_hooks): Update post_options to
2288 * toplev.c (parse_options_and_default_flags, do_compile,
2289 lang_independent_init): Update prototypes. Allow the
2290 front end to specify that there is no need to initialize
2292 (general_init): Move call to hex_init here...
2293 (toplev_main): ...from here. Pass flag for back end init
2296 Sun Jul 7 20:38:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
2298 * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
2299 (PREDICATE_CODES): Add entries for equality_comparison_operator,
2300 greater_comparison_operator and less_comparison_operator.
2301 * sh.c (print_operand): Add '\'' code. Make 'o' handle
2303 (equality_comparison_operator): New function.
2304 (greater_comparison_operator, less_comparison_operator): Likewise.
2305 * sh.md (beq_media_i): Disable generator function generation.
2306 Use match_operator to handle a whole class of comparisons. Add
2307 modifier in output template to provide branch prediction. Add type.
2308 (bgt_media_i, ble_media_i): Likewise. Allow zero operands.
2309 (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
2310 (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
2311 (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
2313 2002-07-07 Hans-Peter Nilsson <hp@bitrange.com>
2315 Emit MMIX function prologue and epilogue as rtl.
2316 * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
2317 not unprototyped get_hard_reg_initial_val.
2318 ("call_value", "nonlocal_goto_receiver"): Ditto.
2319 ("return"): Make define_expand. Move real insn to...
2320 ("*expanded_return"): New pattern.
2321 ("prologue", "epilogue"): New define_expands.
2322 * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
2323 (struct machine_function): New member in_prologue.
2324 (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
2325 (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
2326 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
2327 (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
2328 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
2329 (LOCAL_REGNO): Define. Adjust comment.
2330 * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
2331 Consider regs_ever_live[MMIX_rJ_REGNUM], not just
2333 (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
2335 (mmix_target_asm_function_prologue): Make static. Just mark that
2336 the prologue is being emitted. Move guts to...
2337 (mmix_expand_prologue): New function. Adjust for emitting
2338 prologue as rtl. For sizes, use HOST_WIDE_INT only.
2339 (mmix_target_asm_function_epilogue): Make static. Simply emit a
2341 (mmix_expand_epilogue): New function. Adjust for emitting
2342 epilogue as rtl. For sizes, use HOST_WIDE_INT only.
2343 (mmix_target_asm_function_end_prologue): Mark that the prologue
2345 (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
2346 (mmix_conditional_register_usage): Improve comments.
2347 (mmix_local_regno): New function.
2348 (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
2349 * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
2350 (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
2351 (mmix_get_hard_reg_initial_val): Ditto.
2353 2002-07-06 Andreas Jaeger <aj@suse.de>
2355 * toplev.c (set_fast_math_flags): Don't use ISO C style function
2357 * gengtype.c (open_base_files): Likewise.
2358 (close_output_files): Likewise.
2359 * tracer.c (find_best_predecessor): Likewise.
2360 (find_best_successor): Likewise.
2361 (ignore_bb_p): Likewise.
2363 2002-07-05 Roger Sayle <roger@eyesopen.com>
2366 * builtin-attrs.def: Define new attribute lists for use in
2368 * builtins.def [DEF_BUILTIN]: Modify to take an additional
2369 ATTRS argument, an enumerated value defined in builtin-attrs.def
2370 that represents the attribute list for the builtins. Modify
2371 all builtin functions to pass an appropriate attribute list.
2372 Specify "abort", "exit", "_exit" and "_Exit" builtins here with
2373 their required noreturn attributes.
2374 * tree.h (enum_builtin_function): Ignore the additional parameter
2376 * builtins.c (built_in_names): Likewise.
2377 * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
2378 argument with a tree representing the functions attribute list.
2379 Pass this "attrs" argument to builtin_function. No longer handle
2380 the noreturn_p processing manually.
2381 (built_in_attributes): Move the definitions from builtin-attrs.def
2382 before c_common_nodes_and_builtins.
2383 (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
2384 DEF_BUILTIN, passing it to both builtin_function and the changed
2387 * doc/extend.texi: Document __builtin_abort, __builtin_exit,
2388 __builtin__exit and __builtin__Exit.
2390 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
2392 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
2393 QI mode registers in soft registers.
2394 ("zero_extendqihi2"): Do not take into account soft registers
2395 for register allocation (use '*' constraint).
2397 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
2399 * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
2401 ("*ashrsi3"): Likewise.
2402 ("*lshrsi3"): Likewise.
2404 2002-07-05 Vladimir Makarov <vmakarov@redhat.com>
2406 * genautomata.c (output_max_insn_queue_index_def): Take latencies
2409 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
2411 * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
2412 address computation and memory moves.
2414 2002-07-03 Mark Mitchell <mark@codesourcery.com>
2417 * dwarfout.c (output_reg_number): Fix warning message.
2418 (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
2421 2002-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2423 * gcc/gcc.c (asm_debug): Move initialization ...
2424 (init_spec): ... here.
2426 2002-07-05 Nathan Sidwell <nathan@codesourcery.com>
2428 * c-parse.in (extdef): Append ';'.
2429 (old_style_parm_decls): Append ';'.
2431 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
2433 * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
2434 gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
2435 to gcc_cv_as_gstabs_flag.
2436 * configure: Rebuilt.
2438 2002-07-04 Geoffrey Keating <geoffk@redhat.com>
2440 * ggc.h (ggc_add_root): Document as obsolete.
2442 Thu Jul 4 07:58:01 2002 J"orn Rennecke <joern.rennecke@superh.com>
2444 * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
2445 (mshflo_w): Likewise.
2447 Thu Jul 4 07:36:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
2449 * simplify-rtx.c (simplify_subreg): Reduce problem of finding
2450 vector mode subregs of constants to finding integer mode
2451 subregs of constants.
2452 * cse.c (cse_insn): Use simplify_gen_subreg.
2453 * convert.c (convert_to_integer): Don't strip a NOP_EXPR
2454 From a vector mode expression of different size than the
2457 2002-07-03 Eric Christopher <echristo@redhat.com>
2459 * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
2460 * config/mips/mips.h: Remove deprecated -m<processor> options
2461 and cc1_cpu_spec associated.
2462 (CONSTANT_ADDRESS_P): Fix last patch.
2463 (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
2464 * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
2467 2002-07-03 Stan Shebs <shebs@apple.com>
2469 * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
2470 (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
2471 (CPP_SPEC): Remove insertion of APPLE_CC definition.
2473 2002-07-03 Roger Sayle <roger@eyesopen.com>
2475 * combine.c (struct_undo): Change types of recorded substitutions
2476 to be either "int" or "rtx", instead of "unsigned int" and "rtx".
2477 (do_SUBST_INT): Change types of the substitution from unsigned int
2478 to int, to avoid compilation warning from SUBST_INT's only caller.
2480 (make_extraction): Add cast to avoid compilation warning.
2481 (force_to_mode): Remove cast to avoid compilation warning.
2483 2002-07-03 Eric Botcazou <ebotcazou@multimania.com>
2484 Jeff Law <law@redhat.com>
2486 * i386.md (length_immediate attribute): Fix typo.
2487 (length_address attribute): Likewise.
2488 (modrm attribute): Set it to 0 for immediate call instructions.
2489 (jcc_1 pattern): Set modrm attribute to 0.
2490 (jcc_2 pattern ): Likewise.
2491 (jump pattern): Likewise.
2492 (doloop_end_internal pattern): Explicitly set length.
2493 (leave pattern): Fix typo.
2494 (leave_rex64 pattern): Likewise.
2496 2002-07-03 David Edelsohn <edelsohn@gnu.org>
2498 * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
2499 in FPR as preference.
2501 (floatdidf2, fix_truncdfdi2): Same.
2502 (floatdisf2, floatditf2, fix_trunctfdi2): Same.
2504 (floatsitf2, fix_trunctfsi2): SImode in GPR.
2505 (ctrdi): Remove FPR alternative and splitter.
2507 2002-07-03 Will Cohen <wcohen@redhat.com>
2509 * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
2511 Wed Jul 3 10:24:16 2002 J"orn Rennecke <joern.rennecke@superh.com>
2513 * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
2514 than UNITS_PER_WORD, unless this is little endian and the first unit
2515 in this word. Let extract_bit_field decide how to load an element.
2516 Force arguments to matching mode.
2517 (expand_vector_unop): Likewise.
2519 * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
2520 consist of word_mode elements.
2521 * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
2522 BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
2523 (build_unary_op): Allow vector types for BIT_NOT_EPR.
2524 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
2526 * optabs.c (expand_vector_binop): Try to perform operation in
2527 smaller vector modes with same inner size. Add handling of AND, IOR
2528 and XOR. Reject expansion to inner-mode sized scalars when using
2529 OPTAB_DIRECT. Use simplify_gen_subreg on constants.
2530 (expand_vector_unop): Try to perform operation in smaller vector
2531 modes with same inner size. Add handling of one's complement.
2532 When there is no vector negate operation, try a vector subtract
2533 operation. Use simplify_gen_subreg on constants.
2534 * simplify-rtx.c (simplify_subreg): Add capability to convert vector
2535 constants into smaller vectors with same inner mode, and to
2536 integer CONST_DOUBLEs.
2538 2002-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2540 * c-parse.in (parsing_iso_function_signature): New variable.
2541 (extdef_1): New, copied from...
2542 (extdef): ... here. Reset parsing_iso_function_signature.
2543 (old_style_parm_decls): Reset parsing_iso_function_signature.
2544 (old_style_parm_decls_1): New, copied from old_style_parm_decls.
2545 Warn about ISO C style function definitions.
2546 (nested_function, notype_nested_function): Reset
2547 parsing_iso_function_signature.
2548 (parmlist_2): Set parsing_iso_function_signature.
2550 * doc/invoke.texi (-Wtraditional): Document new behavior.
2552 2002-07-02 Chris Demetriou <cgd@broadcom.com>
2554 * config.gcc (mips*el-*-*): Use tm_defines to set
2555 TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
2556 * config/mips/little.h: Remove.
2558 2002-07-02 Devang Patel <dpatel@apple.com>
2560 * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
2561 object as parameter. Prevent something like 'NSObject' to be
2562 used as the type for a method argument.
2564 2002-07-03 Neil Booth <neil@daikokuya.co.uk>
2566 * cpptrad.c: Update comment.
2568 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
2570 * doc/cpp.texi: Update for traditional preprocessing changes.
2571 * goc/cppopts.texi: Similarly.
2573 2002-07-02 Ziemowit Laski <zlaski@apple.com>
2575 * c-parse.in (designator): Enable designated initializers if ObjC.
2576 (objcmessageexpr): Remove references to objc_receiver_context.
2577 * objc/objc-act.h (objc_receiver_context): Remove decl.
2578 * objc/objc-act.c (objc_receiver_context): Remove.
2579 (lookup_objc_ivar): Test objc_method_context instead of
2580 objc_receiver_context.
2582 Tue Jul 2 18:45:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
2584 * sh.c (print_operand, case 'N'): Allow zero vector.
2585 (arith_reg_or_0_operand): Likewise.
2586 (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
2587 * sh.h (CONST_COSTS): 0 has 0 cost. Check OUTER_CODE for
2588 IOR, XOR, PLUS and SET and take their respective constant
2589 ranges into account.
2590 (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
2591 * sh.md (subdi3, subdi3_media): Allow zero operand.
2592 (movv8qi_i+3): Only vector that is not split is the zero vector.
2593 Fix operand 3 to simplify_subreg.
2594 (movv2si_i): Split alternative 1.
2595 (mshfhi_l_di_rev+1): New splitter.
2597 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
2599 PR preprocessor/7029
2600 * cppinit.c (cpp_handle_option): Suppress warnings with an
2601 implicit "-w" for "-M" and "-MM".
2602 * doc/cppopts.texi: Update.
2604 2002-07-01 Roger Sayle <roger@eyesopen.com>
2606 * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
2607 identifier "bzero" to "memset". Pass extra NULL_TREE argument to
2610 2002-07-02 Alan Modra <amodra@bigpond.net.au>
2612 * README.Portability: Fix typos.
2614 2002-07-01 Hans-Peter Nilsson <hp@axis.com>
2617 * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
2618 of indirections for register inside sign-extended mem part.
2620 2002-07-01 Roger Sayle <roger@eyesopen.com>
2622 * tree.h: Modify builtin_function interface to take an extra
2623 argument ATTRS, which is a tree representing an attribute list.
2625 * c-decl.c (builtin_function): Accept additional parameter.
2626 * objc/objc-act.c (builtin_function): Likewise.
2627 * f/com.c (builtin_function): Likewise.
2628 * java/decl.c (builtin_function): Likewise.
2629 * ada/utils.c (builtin_function): Likewise.
2630 * cp/decl.c (builtin_function): Likewise.
2631 (builtin_function_1): Likewise.
2633 * c-common.c (c_common_nodes_and_builtins): Pass an additional
2634 NULL_TREE argument to builtin_function. (builtin_function_2):
2636 * cp/call.c (build_java_interface_fn_ref): Likewise.
2637 * objc/objc-act.c (synth_module_prologue): Likewise.
2638 * java/decl.c (java_init_decl_processing): Likewise.
2639 * f/com.c (ffe_com_init_0): Likewise.
2641 * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
2642 NULL_TREE argument to builtin_function.
2643 * config/arm/arm.c (def_builtin): Likewise.
2644 * config/c4x/c4x.c (c4x_init_builtins): Likewise.
2645 * config/i386/i386.c (def_builtin): Likewise.
2646 * config/ia64/ia64.c (def_builtin): Likewise.
2647 * config/rs6000/rs6000.c (def_builtin): Likewise.
2649 2002-07-01 Zack Weinberg <zack@codesourcery.com>
2651 * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
2652 * config/mips/t-isa3264: Likewise.
2653 * config/mmix/t-mmix: Likewise.
2655 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
2657 * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
2659 2002-07-01 Roger Sayle <roger@eyesopen.com>
2662 * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
2663 A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
2666 2002-07-01 Nathanael Nerode <neroden@gcc.gnu.org>
2668 * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
2670 2002-07-01 Matt Kraai <kraai@alumni.cmu.edu>
2672 * README.Portability (Function prototypes): Give an example of
2673 declaring and defining a function with no arguments.
2675 * README.Portability (Function prototypes): Document new
2676 variable-argument function macros.
2678 Mon Jul 1 19:55:17 2002 J"orn Rennecke <joern.rennecke@superh.com>
2680 * sh.c (langhooks.h): Include.
2681 (sh_init_builtins, sh_media_init_builtins): New functions.
2682 (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
2683 (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
2684 (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
2685 (builtin_description): New struct tag.
2686 (signature_args, bdesc): New arrays.
2687 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
2688 (print_operand): Add 'N' modifier.
2689 * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
2690 (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
2691 (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
2692 (CONST_COSTS): Add special case for SHmedia AND.
2693 (PREDICATE_CODES): Add and_operand, arith_reg_dest,
2694 extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
2695 sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
2696 target_operand can also be const or unspec.
2697 * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
2698 (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
2699 (attribute type): Add new types.
2700 (anddi3): Add splitter.
2701 (movdi_const_16bit+1): Add code to handle vector constants and
2702 bitmasks efficiently.
2703 (shori_media): Have generator function made.
2704 (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
2705 (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
2706 (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
2707 (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
2708 (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
2709 (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
2710 (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
2711 (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
2712 (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
2713 (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
2714 (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
2715 (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
2716 (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
2717 (mshflo_b, mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
2718 (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
2719 (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
2720 (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
2721 (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
2722 (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
2725 (fpu_switch+1, fpu_switch+2): Remove constraint.
2727 2002-07-01 Aldy Hernandez <aldyh@redhat.com>
2729 * tree.c (build_function_type_list): Update function comment.
2730 Rename first argument to return_type.
2732 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
2734 * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
2735 tradcif.y and related files.
2737 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
2739 * cpptrad.c (skip_whitespace): Pass pointer to prior char.
2741 2002-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2743 * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
2745 2002-06-30 Devang Patel <dpatel@apple.com>
2747 * objc/objc-act.c (finish_file): Avoid finish_objc() if
2750 Fri Jun 28 17:22:37 2002 Denis Chertykov <denisc@overta.ru>
2751 Frank Ch. Eigler <fche@redhat.com>
2752 Matthew Green <mrg@redhat.com>
2753 Richard Henderson <rtl@redhat.com>
2754 Dave Hudson <dave.hudson@ubicom.com>
2755 Jeff Johnston <jjohnstn@redhat.com>
2756 Alan Lehotsky <apl@alum.mit.edu>
2757 Bernd Schmidt <bernds@redhat.com>
2758 Graham Stott <grahams@redhat.com>
2760 * doc/extend.texi: Add ip2k port to description of attribute
2762 * doc/install.texi (Specific): Add ip2k description.
2763 * doc/install-old.texi (Configurations): Add ip2k to possible
2765 * doc/md.texi: Document ip2k constraints.
2766 * config/ip2k/crt0.S: New file.
2767 * config/ip2k/ip2k-protos.h: New file.
2768 * config/ip2k/ip2k.c: New file.
2769 * config/ip2k/ip2k.h: New file.
2770 * config/ip2k/ip2k.md: New file.
2771 * config/ip2k/libgcc.S: New file.
2772 * config/ip2k/t-ip2k: New file.
2774 2002-06-30 Hans-Peter Nilsson <hp@bitrange.com>
2776 * config/mmix/mmix.md ("return"): New pattern.
2777 * config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
2778 (TARGET_USE_RETURN_INSN): New macros.
2779 (TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
2780 (TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
2781 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
2782 (MMIX_POP_ARGUMENT): New macro.
2783 (mmix_target_asm_function_prologue): When no epilogue is executed,
2784 just emit a blank line. Use MMIX_POP_ARGUMENT with final POP insn.
2785 (mmix_print_operand) <case '.'>: New case.
2786 (mmix_print_operand_punct_valid_p): Match '.'.
2787 (mmix_use_simple_return): New function.
2788 * config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
2789 * doc/invoke.texi (Option Summary) <MMIX Summary>: Add
2790 -msingle-exit, -mno-single-exit.
2791 (MMIX Options): Ditto.
2793 2002-06-30 Aldy Hernandez <aldyh@redhat.com>
2795 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
2797 2002-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2799 * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
2801 2002-06-30 Alan Modra <amodra@bigpond.net.au>
2803 * unroll.c (loop_iterations): Handle EQ loops.
2805 2002-06-29 David Edelsohn <edelsohn@gnu.org>
2807 * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
2808 constraint in define_expand, not splitter.
2811 2002-06-29 Aldy Hernandez <aldyh@redhat.com>
2813 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
2814 build_function_type_list instead of build_function_type.
2816 * config/ia64/ia64.c (ia64_init_builtins): Same.
2818 * config/alpha/alpha.c (alpha_init_builtins): Same.
2820 * config/rs6000/rs6000.c (altivec_init_builtins): Same.
2822 * config/arm/arm.c (arm_init_builtins): Same.
2824 * tree.h: Add build_function_type_list prototype.
2826 * tree.c (build_function_type_list): New.
2828 2002-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2830 * collect2.c (scan_prog_file): Fix typo in message.
2832 2002-06-28 Aaron Lehmann <aaronl@vitelus.com>
2834 * fold-cont.c: Remove unused CHARMASK.
2836 2002-06-29 Neil Booth <neil@daikokuya.co.uk>
2838 PR preprocessor/7150
2839 * cppmain.c (scan_translation_unit_trad): Simplify.
2840 * cppmacro.c (cpp_scan_nooutput): Handle traditional case.
2842 2002-06-29 Neil Booth <neil@daikokuya.demon.co.uk>
2844 * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
2845 Don't use CPP_PREDEFINES.
2846 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
2847 Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
2848 * config/i386/djgpp.h, config/i386/i386-coff.h,
2849 config/i386/i386-interix.h, config/i386/i386-interix3.h,
2850 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
2851 config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
2852 config/i386/uwin.h: Similarly.
2854 2002-06-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2856 * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
2857 flag_inline_trees to enable inlining.
2859 2002-06-28 Phil Edwards <pme@gcc.gnu.org>
2861 * configure.in (gcc_gxx_include_dir): Change to match versioned
2862 C++ headers if --enable-version-specific-runtime-libs is used.
2863 * configure: Regenerate.
2865 2002-06-28 Jan Hubicka <jh@suse.cz>
2867 * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
2869 2002-06-28 Stephen Clarke <stephen.clarke@superh.com>
2871 * combine.c (combine_simplify_rtx): Pass the mode of the
2872 shift count, not the shift operation when trying to simplify
2873 a shift on a SHIFT_COUNT_TRUNCATED target.
2875 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
2877 * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
2878 avoid the auto increment addressing modes.
2879 ("*subsi3"): Likewise.
2880 (split for add/sub on address): For 68HC12 push the value on
2881 the stack and do the operation with a pop.
2883 2002-06-28 Neil Booth <neil@daikokuya.co.uk>
2885 * cpplib.c (_cpp_handle_directive): Move #define-specific
2886 code to the #define handler...
2887 (do_define): ...here.
2888 (lex_macro_node): No longer a need to check for comments here.
2890 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
2892 * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
2893 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
2895 * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
2896 do not reorder basic blocks at the end when optimizing for size.
2898 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
2900 * config/m68hc11/m68hc11.c (autoinc_mode): New function.
2901 (m68hc11_make_autoinc_notes): New function.
2902 (m68hc11_split_move): Be very cautious when spliting a move with
2903 auto increment/decrement modes because this may result in incompatible
2904 directions; add REG_INC notes to the resulting insn for CSE reg.
2906 2002-06-28 Stephane Carrez <Stephane.Carrez@nerim.fr>
2908 * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
2909 can be a valid address.
2911 2002-06-28 Aldy Hernandez <aldyh@redhat.com>
2913 * config/rs6000/rs6000.c: Remove unusued variables from last
2916 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
2919 * config/rs6000/rs6000.c (rs6000_override_options): Move
2920 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
2922 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
2924 * config/rs6000/rs6000.c (altivec_expand_builtin): Move
2925 lvx/stv/dst builtins...
2926 (altivec_expand_ld_builtin): ...to here.
2927 (altivec_expand_st_builtin): ...here.
2928 (altivec_expand_dst_builtin): ...and here (respectively).
2930 2002-06-28 Bob Wilson <bob.wilson@acm.org>
2932 * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
2934 2001-06-08 Bernd Schmidt <bernds@redhat.com>
2936 * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
2938 * recog.c (general_operand, register_operand): Disallow them.
2940 2002-06-28 Neil Booth <neil@daikokuya.co.uk>
2942 PR preprocessor/7138
2943 * cpplib.c (_cpp_handle_directive): Do traditional
2944 preparation after setting state.angled_headers.
2945 * cpptrad.c (scan_out_logical_line): Fix potential
2948 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
2950 * config/rs6000/rs6000.c (rs6000_override_options): Move
2951 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
2953 2002-06-27 Bob Wilson <bob.wilson@acm.org>
2955 * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
2956 (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
2957 zero_cost_loop_end): Remove unnecessary "parallel" from insns.
2959 2002-06-27 Roger Sayle <roger@eyesopen.com>
2961 * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
2962 * config/stormy16/stormy16.h: Likewise.
2964 * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
2967 2002-06-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2969 * doc/install.texi (Binaries): Add Sinix/Reliant Unix. Move
2970 Hitachi entry. Make punctuation more consistent.
2972 2002-06-27 Matt Kraai <kraai@alumni.cmu.edu>
2974 * doc/install.texi: Change ` bit' to `-bit'.
2975 * doc/md.texi: Change `-bits' to `-bit'.
2976 * doc/tm.texi: Change `-bits' to ` bits'.
2978 2002-06-27 Daniel Berlin <dberlin@dberlin.org>
2980 * gcse.c (hoist_code): Rewrite to only get list of dominated
2981 blocks once per BB. Also fix reversed test (by removing need for
2984 2002-06-27 Neil Booth <neil@daikokuya.co.uk>
2986 * cpphash.h (_cpp_set_trad_context): Remove.
2987 * cpplib.c (prepare_directive_trad): Do nothing for #define.
2988 (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
2989 * cpptrad.c: Update comments.
2990 (_cpp_read_logical_line_trad): Let scan_logical_line handle
2991 updating the current context.
2992 (scan_logical_line): Update the current context.
2993 (_cpp_create_trad_definition): Similarly.
2994 (_cpp_set_trad_context): Remove.
2996 2002-06-27 Neil Booth <neil@daikokuya.co.uk>
2998 PR preprocessor/7070
2999 * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
3001 2002-06-26 Bob Wilson <bob.wilson@acm.org>
3003 * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
3004 config/xtensa/xtensa.c (xtensa_return_addr): New function.
3005 config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
3006 config/xtensa/xtensa.md (fix_return_addr): New pattern.
3008 2002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3010 * mips.c (coprocessor_operand, coprocessor2_operand,
3011 symbolic_operand): Move prototypes from here...
3012 * mips-protos.h (coprocessor_operand, coprocessor2_operand,
3013 symbolic_operand): ...to here.
3015 Wed Jun 26 16:32:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
3017 * config/sh/crt1.asm: remove _stack label definition
3020 2002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3022 * varasm.c: Include real.h before output.h.
3024 2002-06-26 Aldy Hernandez <aldyh@redhat.com>
3026 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
3027 check for TARGET_ALTIVEC.
3029 2002-06-26 Nathanael Nerode <neroden@gcc.gnu.org>
3031 * config.gcc (vax-*-vms*): Make obselete.
3033 2002-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3035 * gcc.c (warn_std): Delete.
3037 2002-06-25 Loren J. Rittle <ljrittle@acm.org>
3039 * doc/extend.texi: Fix formatting of last checkin.
3041 2002-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3043 * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
3044 underscore from __IEEE_FP and __IEEE_FP_INEXACT.
3046 2002-06-25 Aldy Hernandez <aldyh@redhat.com>
3048 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
3049 discrepancies from motorola's documentation.
3051 Tue Jun 25 21:51:13 2002 J"orn Rennecke <joern.rennecke@superh.com>
3053 * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
3054 GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
3056 * config/sh/lib1funcs.asm (udivdi3): Make first divide step
3057 produce a 32 bit result before normalization, then normalize with a
3058 left shift. Compute approximative error of 2nd reciprocal
3059 approximation in 2's complement. Fix mask generation from upper
3060 longword of second divide stage result.
3061 For large divisor, fix shift count used to truncate first stage
3062 divide result; make decision if to adjust upwards based on comparison
3063 of higher parts of normalized values.
3064 (udivdi): Likewise. Undo normalization of result for large divisor
3067 2002-06-25 David S. Miller <davem@redhat.com>
3069 * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
3071 2002-06-25 Neil Booth <neil@daikokuya.co.uk>
3073 * cpplib.c (do_include_common): Revert to correct line number
3075 * cpptrad.c (scan_out_logical_line): Treat null directive as
3076 white space. Invlidate MI optimization for non-whitespace
3077 text outside a directive.
3079 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3081 * Makefile.in (SHELL): Set to @SHELL@.
3082 * fixinc/Makefile.in (SHELL): Likewise.
3084 * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
3085 fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
3088 2002-06-24 Jeff Law <law@redhat.com>
3090 * flow.c (propagate_one_insn): When removing an insn
3091 with a REG_LIBCALL note but not the entire libcall sequence,
3092 delete the associated REG_RETVAL note.
3094 Mon Jun 24 21:05:09 2002 J"orn Rennecke <joern.rennecke@superh.com>
3096 * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
3097 (udivsi3): Likewise. Rewrite SH1 implementation.
3098 (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
3099 * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
3100 (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
3101 * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
3102 (_moddi3): Likewise.
3104 * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
3106 * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
3107 arguments into account for stack_regs.
3109 2002-06-24 Matt Kraai <kraai@alumni.cmu.edu>
3111 * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
3114 2002-06-24 Art Haas <ahaas@neosoft.com>
3116 * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
3117 * doc/tm.texi (Frame Layout): Likewise.
3119 2002-06-20 Steve Ellcey <sje@cup.hp.com>
3121 * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
3122 Set float_format to i128.
3124 2002-06-24 David S. Miller <davem@redhat.com>
3126 * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
3127 32-bit ABI libfuncs to NULL.
3129 * config/sparc/sparc.md: Use define_insn_and_split. Use braced
3130 strings instead of quoted strings for code blocks.
3132 * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
3133 optabs if op1 is const0_rtx.
3135 * Makefile.in (GTFILES): Add basic-block.h
3136 * basic-block.h (label_value_list, tail_recursion_label_list):
3139 2002-06-24 Neil Booth <neil@daikokuya.co.uk>
3141 * cpptrad.c (scan_out_logical_line): Check recursing only when
3142 we know we have a macro invocation in the function-like case.
3143 Only call _cpp_handle_directive if we know we have a good
3144 directive, or we want to reject a bad directive.
3146 2002-06-24 Alan Modra <amodra@bigpond.net.au>
3148 * doloop.c (doloop_valid_p): Correct comment.
3149 (doloop_modify_runtime <abs_inc != 1>): Simplify.
3150 (doloop_modify_runtime <do-while>): Don't emit code when NE.
3152 Thu Jun 20 00:26:53 2002 Denis Chertykov <denisc@overta.ru>
3154 * config.gcc: Add support for ip2k.
3156 2002-06-23 Jan Hubicka <jh@suse.cz>
3157 Jeff Law <law@redhat.com>
3159 * function.h (struct emit_status): Clarify potential contents
3160 of regno_reg_rtx array.
3161 * integrate.c (copy_rtx_and_substitute): Update comments. Make
3162 sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
3164 * reg-stack.c (convert_regs_exit): Push the registers to stack in
3167 2002-06-22 Ulrich Weigand <uweigand@de.ibm.com>
3170 * function.c (assign_stack_temp_for_type): Do not return
3171 the same MEM rtx for multiple uses of a stack slot.
3173 2002-06-22 David S. Miller <davem@redhat.com>
3175 PR target/6841 target/6770 target/6719
3176 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
3177 NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
3178 GENERAL_OR_EXTRA_FP_REGS.
3180 2002-06-22 Neil Booth <neil@daikokuya.co.uk>
3182 * cpptrad.c (struct fun_macro): Add line number.
3183 (scan_out_logical_line): Set it, and use it to report unterminated
3186 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3188 * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
3189 VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
3190 DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
3191 DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
3192 REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
3193 REGEXP_ONEOF, check_name): Const-ify.
3195 2002-06-21 Matt Thomas <matt@3am-software.com>
3197 * config/vax/vax.c (vax_output_function_prologue): Use
3198 REGISTER_PREFIX. Fix some indentation.
3199 * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
3200 (VAX_ISTREAM_SYNC): Define.
3201 (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC. Move the
3202 i-stream sync to the end.
3203 (REGISTER_PREFIX): Define as "".
3204 (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
3206 2002-06-21 Jason Thorpe <thorpej@wasabisystems.com>
3208 * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
3211 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3213 * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
3214 tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
3216 2002-06-21 Matt Thomas <matt@3am-software.com>
3218 * config/vax/netbsd.h: Adjust a comment.
3219 (TARGET_DEFAULT): Redefine as 0.
3221 2002-06-21 Richard Henderson <rth@redhat.com>
3223 * bb-reorder.c (make_reorder_chain_1): Search harder for the
3224 vax casesi fallthru edge.
3225 * cfglayout.c (cleanup_unconditional_jumps): Use
3226 redirect_edge_succ_nodup. Do not delete ADDR_VEC insns as dead.
3227 * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
3228 block after ADDR_VEC.
3230 2002-06-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3232 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
3234 2002-06-21 Neil Booth <neil@daikokuya.co.uk>
3236 * cpperror.c (cpp_error): For traditional CPP, default to
3237 diagnostics on pfile->line.
3238 * cpplib.c (prepare_directive_trad): Set line number for
3239 diagnostics for #define too.
3240 * cpptrad.c (skip_whitespace): Skip comments properly.
3241 (_cpp_expansions_different_trad): Initialize quote2.
3243 2002-06-21 Hans-Peter Nilsson <hp@bitrange.com>
3245 * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
3246 * config/mmix/mmix.h: Ditto.
3247 * config/mmix/mmix-protos.h: Ditto.
3248 * config/mmix/mmix.c: Ditto. Fix typo in comment.
3249 * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
3250 comment. Comment extra CC modes.
3252 2002-06-20 Jan Hubicka <jh@suse.cz>
3254 * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
3255 (scope_to_insns_finalize): Do not call set_block_levels; handle
3257 (choose_inner_scope): New.
3258 * rtl.h (choose_inner_scope): Declare.
3260 2002-06-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
3262 * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
3264 * pa.c (pa_asm_output_mi_thunk): Likewise.
3265 (n_deferred_plabels): Change type to size_t.
3266 (output_deferred_plabels, output_call): Use size_t instead of int.
3268 2002-06-20 Richard Henderson <rth@redhat.com>
3271 * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
3272 pattern and adjust constraints for coldfire.
3274 2002-06-20 Richard Henderson <rth@redhat.com>
3276 * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
3278 2002-06-20 Chris Demetriou <cgd@broadcom.com>
3280 * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
3282 2002-06-20 Chris Demetriou <cgd@broadcom.com>
3284 * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
3286 2002-06-20 Stan Shebs <shebs@apple.com>
3288 * dominance.c: Include errors.h instead of error.h.
3290 2002-06-20 Neil Booth <neil@daikokuya.co.uk>
3292 * cppexp.c (cpp_interpret_integer): Don't force traditional
3293 numbers to be unsigned.
3294 * cpplib.c (prepare_directive_trad): Set line number for
3296 * cpptrad.c (scan_out_logical_line): Continue scanning out
3298 * gcc.c (trad_capable_cpp): Use cc1 always.
3300 2002-06-20 Jeffrey Law <law@redhat.com>
3302 * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
3303 elimination in leaf functions by default yet.
3305 2002-06-20 Richard Sandiford <rsandifo@redhat.com>
3307 * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
3309 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3311 * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
3313 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
3314 Fixes PR other/6836.
3316 Thu Jun 20 19:42:21 CEST 2002 Jan Hubicka <jh@suse.cz>
3317 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
3319 Mon Jun 10 20:42:34 CEST 2002 Jan Hubicka <jh@suse.cz>
3321 * basic-block.h: Do not include et-forest.h
3322 (dominance_info): Declare as struct dominance-info.
3323 * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
3325 * dominance.c (struct dominance_info): Define.
3326 (BB_NODE, SET_BB_NODE): New macros.
3327 (bb_hash_func, bb_eq_func): Kill.
3328 (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
3329 nearest_common_dominator, dominated_by_p, recount_dominator,
3330 add_to_dominance_info, delete_from_dominance_info): update for new
3332 (get_dominated_by, redirect_immediate_dominators): Rewrite using
3334 * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
3335 find_if_case_1, find_if_case_2): Remove killed blocks from dominance
3338 * et-forest.h: Update copyright; revamp all function to operate on
3340 (et_forest_value): Kill.
3341 (et_forest_enumerate_sons, et_forest_node_value): New.
3342 * et-forest.c: Update copyright.
3343 * et-forest.h: Update copyright; revamp all function to operate on
3345 (et_forest_value): Kill.
3346 (et_forest_enumerate_sons, et_forest_node_value): New.
3348 Thu Jun 6 22:43:43 CEST 2002 Jan Hubicka <jh@suse.cz>
3350 * basic-block.h: Inlude et-forest.h
3351 (basic_block_def): Kill dominator.
3352 (dominance_info): New type.
3353 (loops): Use dominace_info.
3354 (dominace handling functions): Take dominace_info as argument
3356 (create_preheader): Likewise.
3357 * cfg.c (entry_exit_blocks): Kill dominator.
3358 (dump_flow_info): Do not dump dominators.
3359 * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
3361 * cfgloop.c (flow_pre_header_find): Use dominacne_info.
3362 (flow_loops_pre_header_scan, make_forwarder_block,
3363 canonicale_loop_headers, flow_loops_find): Likewise.
3364 * dominance.c: Include error.h
3365 (idoms_to_doms): Kill.
3366 (bb_hash_func, bb_eq_func): New static functions.
3367 (debug_dominace_info): New global function.
3368 (calculate_dominance_info): Use new et forest structure.
3369 (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
3370 get_dominated_by, redirect_immediate_dominators,
3371 nearest_common_dominator, dominated_by_p, verify_dominators,
3372 recount_dominator, iterate_fix_dominators, add_to_dominace_info,
3373 delete_from_dominance_info): New global functions.
3374 * gcse.c (domnators): CHange to dominance_info.
3375 (alloc_hoist_mem): Do not alloc dominators
3376 (free_code_hoist_mem): Use free_dominance_info.
3377 (compute_code_hoist_data): Use dominance_info.
3378 (hoist_code): Likewise.
3379 * ifcvt.c (post_dominators): Likewise.
3380 (find_if_case_2, if_convert): Likewise.
3381 * predict.c (process_note_predictions, process_note_prediction,
3382 estimate-probability): Likewise.
3383 * sched-rgn.c (find_rgns, init_regions): Likewise.
3384 * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
3385 find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
3386 * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
3387 find_evaluations, convert_to_ssa): Likewise.
3388 * ssa.h (compute_dominance_frontiers): Likewise.
3390 Thu Jun 6 22:57:34 CEST 2002 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
3392 * Makefile.in (et-forest.c): Add.
3393 * et-forest.c: New file.
3394 * at-forest.h: New file.
3396 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3398 * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
3399 array size calculation.
3400 * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
3403 * diagnostic.c (diagnostic_kind_text): Const-ify.
3404 * gengtype.c (lang_names): Likewise.
3406 Thu Jun 20 17:25:29 CEST 2002 JAn HUbicka <jh@suse.cz>
3408 * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
3410 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3412 * config/sol2.h: New file.
3413 * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
3414 (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
3415 (sparc-*-chorusos*): Likewise.
3416 (sparc-*-elf*): Likewise.
3417 (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
3418 (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
3419 (sparc-hal-solaris2*): Likewise.
3420 (sparc-*-solaris2*): Likewise.
3421 (sparclite-*-elf*): Likewise.
3422 (sparc86x-*-elf*): Likewise.
3423 (sparc64-*-elf*): Likewise.
3425 * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
3427 (ASM_SPEC): Override config/sol2.h version for now.
3428 Removed obsolete GAS_REJECTS_MINUS_S variant.
3429 (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
3430 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
3431 (TARGET_OS_CPP_BUILTINS): Likewise.
3433 (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
3434 (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
3436 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
3437 (ASM_CPU_SPEC): Define.
3438 (SUBTARGET_EXTRA_SPECS): Define.
3440 * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
3441 in config/sparc/sol2.h.
3442 (ASM_SPEC): Moved to config/sol2.h.
3443 (CPP_CPU_SPEC): Simplified.
3444 (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
3446 (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
3447 (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
3448 STARTFILE_ARCH64_SPEC.
3449 (STARTFILE_SPEC): Moved to config/sol2.h
3450 (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
3451 (LINK_ARCH32_SPEC): Moved to config/sol2.h.
3452 (LINK_ARCH64_SPEC): Simplified.
3453 (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
3454 (LINK_SPEC): Moved to config/sol2.h
3456 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
3458 Use BITS_PER_WORD for size.
3459 (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
3460 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
3461 (CPP_PREDEFINES): Removed OS-specific part handled by
3462 TARGET_OS_CPP_BUILTINS.
3463 (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
3464 (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
3465 (ASM_SPEC): Moved to config/sol2.h.
3466 (PREFERRED_DEBUGGING_TYPE): Likewise.
3467 (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
3468 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
3469 (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
3470 (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
3472 * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
3473 * config/i386/sol2gas.h: Removed.
3475 Thu Jun 20 12:14:01 CEST 2002 Jan Hubicka <jh@suse.cz>
3477 * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
3479 2002-06-16 Aldy Hernandez <aldyh@redhat.com>
3481 * gcc.c-torture/execute/simd-1.c: New.
3483 * gcc.dg/simd-1.c: New.
3485 * doc/extend.texi (Vector Extensions): Document that we can
3486 specify simd types not specifically supported by the hardware.
3487 Document that simd types can be used as function arguments.
3488 Document that signness does make a difference in SIMD types.
3489 Misc cleanups and revisions to the vector extensions section.
3491 * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
3494 * expr.c (vector_mode_valid_p): New.
3496 * expr.h: Add vector_mode_valid_p.
3498 * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
3500 * c-common.c (type_for_mode): Always build vector nodes regardless
3501 of VECTOR_MODE_SUPPORTED_P.
3502 (handle_mode_attribute): Error if we can't emulate a nonexisting
3504 (handle_vector_size_attribute): Same.
3506 * optabs.c (expand_binop): Open-code vector operations.
3507 (expand_unop): Open-code vector unops.
3508 (expand_vector_binop): New.
3509 (expand_vector_unop): New.
3511 * c-typeck.c (build_binary_op): Allow vectors in binops.
3512 Allow vectors in conditional operatiors.
3513 (build_unary_op): Allow vectors in unary minus.
3515 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
3518 2002-05-20 Richard Henderson <rth@redhat.com>
3520 * c-common.c (c_common_get_alias_set): Correctly handle characters.
3521 Rearrange order of expressions; don't handle vectors here.
3522 * alias.c (get_alias_set): Let vectors match their components.
3524 2002-06-19 Chris Demetriou <cgd@broadcom.com>
3526 * config/mips/mips.c (mips_emit_prefetch): Use hints which
3527 match desired locality.
3529 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
3531 * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
3532 (h8300_insert_attributes): New.
3534 2002-06-19 Akim Demaille <akim@epita.fr>
3536 * c-parse.in (initelt: identifier ':' initval): Add an empty
3537 action to fix a type clash.
3538 (aliasdecl, classdef): Add the missing closing `;'.
3540 * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
3541 $$ = $1 type clashes.
3543 2002-06-19 Eric Christopher <echristo@redhat.com>
3545 * config/mips/mips.c (symbol_operand): New function.
3546 (mips_emit_prefetch): Ditto.
3547 * config/mips/mips-protos.h: Define.
3548 * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
3549 (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
3550 (LEGITIMIZE_ADDRESS): Ditto.
3551 * config/mips/mips.md (prefetch, prefetch_si_address,
3552 prefetch_si, prefetch_di_address, prefetch_di): New patterns.
3554 2002-06-19 Eric Christopher <echristo@redhat.com>
3556 * config/fp-bit.h: Add unordered defines for gofast.
3558 2002-06-19 Vladimir Makarov <vmakarov@redhat.com>
3560 * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
3561 DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
3562 DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
3563 REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
3564 checking and without it.
3565 (decl_name, decl_mode_check_failed, regexp_name,
3566 regexp_mode_check_failed): New functions.
3567 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
3568 gen_presence_set, gen_absence_set, gen_automaton,
3569 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
3570 gen_regexp_sequence, gen_reserv, gen_insn_reserv,
3571 automaton_decl_hash, automaton_decl_eq_p): Use the macros.
3572 (find_automaton_decl): Ditto. Set up mode of work_automaton_decl.
3573 (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
3574 (find_insn_decl): Ditto. Set up mode of work_insn_decl.
3575 (decl_hash, decl_eq_p): Use the macros.
3576 (find_decl): Ditto. Set up mode of work_decl.
3577 (process_excls, process_presence_absence, process_decls,
3578 check_automaton_usage, process_regexp, process_regexp_decls,
3579 check_usage, loop_in_regexp, check_loops_in_regexps,
3580 process_regexp_cycles, add_advance_cycle_insn_decl,
3581 initiate_states, initiate_excl_sets,
3582 initiate_presence_absence_sets, copy_insn_regexp, transform_1,
3583 transform_2): Use the macros.
3584 (transform_3): Ditto. Check mode before making transformations of
3586 (regexp_transform_func, transform_insn_regexps,
3587 process_unit_to_form_the_same_automaton_unit_lists,
3588 form_the_same_automaton_unit_lists_from_regexp,
3589 form_the_same_automaton_unit_lists,
3590 process_seq_for_forming_states, process_alts_for_forming_states,
3591 create_alt_states, form_ainsn_with_same_reservs, make_automaton,
3592 form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
3593 estimate_one_automaton_bound, compare_max_occ_cycle_nums,
3594 units_to_automata_heuristic_distr, create_ainsns,
3595 units_to_automata_distr, create_automata): Use the macros.
3596 (form_regexp): Ditto. Fix typo in access to fields of ALLOF.
3597 (longest_path_length, min_issue_delay_pass_states,
3598 output_dead_lock_vect, output_tables, output_insn_code_cases,
3599 output_internal_insn_latency_func, output_print_reservation_func,
3600 output_description, output_automaton_units, generate): Use the
3602 (make_insn_alts_attr): Ditto. Check case when there are not
3603 alternatives in the reservation.
3604 (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
3605 make_bypass_attr, form_important_insn_automata_lists,
3606 expand_automata): Use the macros.
3608 2002-06-20 Tim Josling <tej@melbpc.org.au>
3610 * Makefile.in: Clean up code to check for misspecified languages
3611 in enable-languages.
3613 2002-06-19 Andrew Pinski <pinskia@physics.uc.edu>
3615 * cpptrad.c (_cpp_replacement_text_len): initialize len.
3617 2002-06-19 Jason Merrill <jason@redhat.com>
3619 * Makefile.in (unstrap, restrap): New targets.
3620 (bootstrap): Mention restrap.
3622 2002-06-19 Matt Kraai <kraai@alumni.cmu.edu>
3624 * except.c (ehl_free): Remove.
3626 * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
3627 builtin_define and builtin_define_std.
3629 2002-06-19 Ian Dall <ian@sibyl.beware.dropbear.id.au>
3631 * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
3632 (sCOND): Restrict operand class so that gcc knows how to reload them.
3633 (bitfield_set): Merge two unnamed insn's using alternatives.
3634 (call_value): Remove constraint on unused uperand.
3635 (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
3636 (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
3638 * longlong.h (count_trailing_zeros): Escape newline and beautify.
3640 2002-06-19 Mark Mitchell <mark@codesourcery.com>
3642 * Makefile.in (QMTEST_DIR): Simplify definition.
3644 2002-06-19 Nick Clifton <nickc@cambridge.redhat.com>
3646 * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
3649 2002-06-19 Neil Booth <neil@daikokuya.co.uk>
3651 * cpphash.h (struct cpp_reader): Make date and time strings.
3652 (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
3653 _cpp_replacement_text_len): New.
3654 * cppinit.c (cpp_create_reader): Update.
3655 (init_builtins): Register appropriate builtins for -traditional-cpp.
3656 * cppmacro.c (new_number_token): Remove.
3657 (_cpp_builtin_macro_text): New.
3658 (builtin_macro): Use it.
3659 (cpp_macro_definition): Update to handle traditional macros.
3660 * cppmain.c (cb_line_change): Don't do column positioning for
3662 * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open. New
3664 (skip_whitespace): Fix.
3665 (maybe_start_funlike): Don't set state.parsing_args.
3666 (scan_out_logical_line): Remove duplicate error. Use lex_state
3667 rather than state.parsing_args.
3668 (push_replacement_text): Handle builtins.
3669 (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
3671 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
3672 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3674 * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
3675 attribute __always_inline__.
3677 2002-06-18 Bob Wilson <bob.wilson@acm.org>
3679 * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
3680 when generating the call to _mcount.
3681 (NO_PROFILE_COUNTERS): Define.
3683 2002-06-18 Richard Henderson <rth@redhat.com>
3685 * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
3688 Tue Jun 18 20:53:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
3690 * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
3691 config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
3692 * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
3693 * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
3695 * sh-protos.h (sh_pr_interrupt): Declare.
3696 * sh.c (sh_pr_interrupt): New function.
3697 (print_operand, calc_live_regs, sh_expand_prologue): Use it.
3698 (sh_hard_regno_rename_ok): Likewise.
3699 * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
3701 2002-06-18 Vladimir Makarov <vmakarov@redhat.com>
3703 * rtl.def (DEFINE_AUTOMATON): Add description of new options
3704 `time' and `v'. Fix incorrect description of option `w'.
3706 * doc/md.texi: Ditto.
3708 * genautomata.c (TIME_OPTION, V_OPTION): New macros.
3709 (gen_automata_option): Process the new options.
3710 (transform_2, transform_3): Initialize some variables.
3711 (initiate_automaton_gen): Use the new macros.
3713 2002-06-18 Richard Sandiford <rsandifo@redhat.com>
3715 * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
3716 (mips_set_return_address, mips_restore_gp): Declare.
3717 * config/mips/mips.h (struct mips_frame_info): Move to mips.c
3718 (current_frame_info): Remove.
3719 (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
3720 * config/mips/mips.c: Remove uses of current_frame_info.
3721 (struct mips_frame_info): Moved from mips.h. Remove 'insns_len'.
3722 (struct machine_function): Add 'frame' and 'insns_len'.
3723 (current_frame_info, zero_frame_info): Remove.
3724 (mips_restore_gp, mips_set_return_address): New.
3725 (mips_initial_elimination_offset): New.
3726 * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
3727 (eh_return define_split): Use mips_set_return_address.
3729 2002-06-18 Neil Booth <neil@daikokuya.demon.co.uk>
3731 * cpplib.c (dtable): Update.
3732 (end_directive): Decrement expansion prevention count.
3733 Clear state.in_expression.
3734 (prepare_directive_trad): Set state.in_expression.
3735 Increment expansion prevention count.
3736 * cpptrad.c (enum ls): New.
3737 (_cpp_overlay_buffer): Set overlaid_buffer.
3738 (_cpp_remove_overlay): Use overlaid_buffer.
3739 (_cpp_read_logcial_line_trad): Update buffer when it might
3741 (scan_out_logical_line): Handle state transitions for assertions
3742 and defined() in #if, and for funlike invocations including the
3743 directive case. Handle '<' and '>' as a quote mechanism in
3744 #include. Warn about unterminated macro invocations.
3745 * cpphash.h (struct lexer_state): New member in_expression.
3746 (struct cpp_reader): New member overlaid buffer.
3748 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
3750 * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
3753 2002-06-18 Alan Modra <amodra@bigpond.net.au>
3755 * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
3757 * doloop.c (doloop_optimize): Extract pattern from insn.
3759 2002-06-17 Matt Kraai <kraai@alumni.cmu.edu>
3761 * doc/extend.texi (Function Attributes): Remove `,...' from @var.
3763 2002-06-17 Jeff Law <law@redhat.com>
3765 * libgcc2.c: Do not include symcat.h or machmode.h.
3767 2002-06-17 Richard Henderson <rth@redhat.com>
3770 * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
3772 2002-06-17 Tom Tromey <tromey@redhat.com>
3774 * dwarfout.c: Include function.h.
3776 2002-06-17 Andreas Schwab <schwab@suse.de>
3778 * print-rtl.c (print_rtx): Print space before vector, not after.
3779 (debug_rtx): Clear sawclose before printing.
3780 (debug_rtx_list): Print newline after each list element.
3781 (debug_rtx_range): Likewise.
3783 2002-06-17 Richard Henderson <rth@redhat.com>
3785 * function.h (struct function) [funcdef_no]: Rename profile_label_no.
3786 (current_function_funcdef_no): Similarly.
3787 * function.c (funcdef_no): Similarly.
3788 (prepare_function_start): Set current_function_funcdef_no.
3789 (expand_function_start): Don't set current_function_profile_label_no.
3790 * dwarf2out.h (current_funcdef_number): Remove.
3791 * dwarf2out.c (current_funcdef_number): Remove. Replace with
3792 current_function_funcdef_no throughout.
3793 * dwarfout.c, vmsdbgout.c: Similarly.
3794 * except.c (sjlj_funcdef_number): Remove.
3795 (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
3796 (output_function_exception_table): Likewise.
3797 * final.c (profile_function): Use current_function_funcdef_no
3798 instead of current_function_profile_label_no.
3800 2002-06-17 Vladimir Makarov <vmakarov@redhat.com>
3802 * sched-ebb.c (init_ready_list): Check INSN_P first.
3804 Mon Jun 17 17:26:15 2002 J"orn Rennecke <joern.rennecke@superh.com>
3806 * sh.md (divsi3): Update way how to find insns in a sequence.
3808 * reload1.c (merge_assigned_reloads): Don't change reloads
3809 other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
3810 to RELOAD_OTHER when there are conflicting input reloads.
3812 2002-06-17 Richard Earnshaw (rearnsha@arm.com)
3814 * function.c (epilogue_done): Correctly build a sequence of insns for
3817 2002-06-17 Nick Clifton <nickc@cambridge.redhat.com>
3819 * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
3822 * config/m32r/m32r.md: Replace gen_sequence with get_insns.
3824 2002-06-16 Richard Henderson <rth@redhat.com>
3826 * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
3827 of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
3829 2002-06-16 Richard Henderson <rth@redhat.com>
3832 * regclass.c (globalize_reg): Update regs_invalidated_by_call.
3834 2002-06-16 Neil Booth <neil@daikokuya.demon.co.uk>
3836 * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
3837 * config/i386/i386-aout.h, config/i386/i386elf.h,
3838 config/i386/sysv4.h: Remove CPP_PREDEFINES.
3839 * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
3840 config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
3841 config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
3842 config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
3843 CPP_PREDEFINES and part of CPP_SPEC.
3844 * config/i386/sysv4-cpp.h: New.
3846 2002-06-16 Richard Henderson <rth@redhat.com>
3849 * dwarf2out.c (modified_type_die): Don't assign the qualified die
3850 to the unqualified type.
3852 Sun Jun 16 22:16:10 CEST 2002 Jan Hubicka <jh@suse.cz>
3854 * i386-protos.h (x86_field_alignment): Declare.
3855 * i386.c (x86_field_alignment): Define.
3856 * i386.h (ADJUST_FIELD_ALIGNMENT): New.
3857 (BIGGEST_FIELD_ALIGNMENT): Kill.
3859 2002-06-16 Richard Henderson <rth@redhat.com>
3861 * vax.md (casesi): Use emit_jump_insn. Tidy expander pattern.
3863 2002-06-16 Richard Henderson <rth@redhat.com>
3865 * c-common.c (flag_ms_extensions): Move from c++ front end.
3866 * c-common.h (flag_ms_extensions): Declare.
3867 * c-decl.c (c_decode_option): Add -fms-extensions.
3868 (grokfield): Don't accept anonymous structures in ISO C mode;
3869 accept only unnamed anonymous structures in GNU C mode; accept
3870 Plan 9 extensions in MS mode.
3871 * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
3872 SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
3873 (extension): Clear flag_iso.
3874 * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
3876 2002-06-16 Hans-Peter Nilsson <hp@axis.com>
3879 * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
3880 early if current_function_epilogue_delay_list is non-empty.
3881 * config/cris/cris.md ("return"): Add sanity check asserting that
3882 current_function_epilogue_delay_list is empty.
3884 2002-06-16 Jeff Law <law@redhat.com>
3886 * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
3887 sharing of hard registers.
3889 * toplev.c (rest_of_compilation): Remove redundant conditional.
3891 * toplev.c (rest_of_compilation): Perform a simpler, less costly
3892 cleanup of the CFG when not optimizing.
3894 2002-06-16 Alan Modra <amodra@bigpond.net.au>
3896 * gcc.c (main): Correct startfile_prefix_spec check.
3898 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
3900 * config.gcc: Revert rth's patch of 2002-05-18. Instead,
3901 include both darwin.o and rs6000-c.o.
3903 2002-06-15 Roger Sayle <roger@eyesopen.com>
3905 * expr.c (compare_from_rtx): Call simplify_relational_operation
3906 on all comparisons, not just those between integer constants,
3907 with the correct (possibly unsigned) comparison code.
3908 (do_compare_rtx_and_jump): Likewise.
3910 2002-06-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
3912 * Makefile.in (tm_defines): New configuration variable.
3913 (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
3914 Pass tm_defines in TM_DEFINES.
3915 (cs-tm_p.h): Rename DEFINES to XM_DEFINES. Pass TM_DEFINES.
3916 * config.gcc (tm_defines): New configuration variable.
3917 (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
3918 pa-7100.h headers. Change hppa1* scheduling default to 7100LC.
3919 * configure.in: Substitute tm_defines.
3920 * configure: Rebuilt.
3921 * mkconfig.sh: Rename DEFINES to XM_DEFINES. Output TM_DEFINES.
3922 * doc/install.texi: Update.
3923 * pa/pa-700.h: Delete file.
3924 * pa/pa-7100.h: Delete file.
3926 2002-06-15 Roger Sayle <roger@eyesopen.com>
3928 * fold-const.c (comparison_to_compcode): New function to convert
3929 an comparison TREE CODE into a bit-based representation.
3930 (compcode_to_comparison): New function to convert from this bit
3931 based representation back to a comparison TREE CODE.
3932 (fold_truthop): Simplify (x<y) && (x==y) and related composite
3935 2002-06-15 Aldy Hernandez <aldyh@redhat.com>
3937 * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
3939 * stor-layout.c (compute_record_mode): Remove check for
3940 FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
3941 MEMBER_TYPE_FORCES_BLK. Pass new mode field to
3942 MEMBER_TYPE_FORCES_BLK.
3944 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
3946 * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
3948 2002-06-14 Jeff Sturm <jsturm@one-point.com>
3950 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
3952 2002-06-14 Steve Ellcey <sje@cup.hp.com>
3954 * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
3955 USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
3956 * configure, config.in: Regenerate.
3958 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
3960 * loop.c (check_final_value): Use v->always_executed
3961 instead of v->always_computable.
3962 * unroll.c (final_giv_value): Don't calculate the final
3963 value as a function of the biv if the giv is not computed
3964 for every loop iteration.
3966 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
3968 * loop.c (for_each_insn_in_loop): Fix formatting and comments.
3970 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
3973 * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
3974 the truncation down when the target type is signed.
3975 [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
3976 * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
3977 the conversion if the target type is a smaller type.
3979 2002-06-14 Richard Henderson <rth@redhat.com>
3981 * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
3982 earlier. Re-factor comparisons vs extrema.
3984 2002-06-14 Richard Henderson <rth@redhat.com>
3986 * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
3988 2002-06-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3990 * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
3991 * sched-deps.c (add_dependence): Likewise.
3992 (group_leader): Likewise.
3993 * sched-rgn.c (init_ready_list): Likewise.
3994 * doc/rtl.texi: Adjust accordingly.
3996 2002-06-13 Jeffrey Law <law@redhat.com>
3998 * gcse.c (delete_null_pointer_checks_1): Inform caller if any
3999 null pointer checks were eliminated. Update prototype.
4000 (delete_null_pointer_checks): Similarly.
4001 * rtl.h (delete_null_pointer_checks): Update prototype.
4002 * toplev.c (rest_of_compilation): Only run cleanup_cfg if
4003 delete_null_pointer_checks deletes one or more null
4004 pointer checks. Do not run cleanup_cfg before gcse, the
4005 CFG is accurate and optimized at that point..
4007 * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
4010 2002-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4012 * Makefile.in (libgcc.mk): Depend on specs.
4014 Fri Jun 14 12:15:11 2002 J"orn Rennecke <joern.rennecke@superh.com>
4016 * sh.md (mulsi3): Update way how to find insns in a sequence.
4018 Fri Jun 14 12:04:02 2002 Dhananjay R. Deshpande <dhananjayd@kpit.com>
4020 * sh.h: Define HARD_REGNO_RENAME_OK
4021 * sh.c: sh_hard_regno_rename_ok: New. If current function has
4022 interrupt_handler attribute, only registers saved on stack are OK.
4023 * sh-protos.h: Declare sh_hard_regno_rename_ok.
4025 2002-06-14 Kaz Kojima <kkojima@gcc.gnu.org>
4027 * config/sh/sh.md (jump): Emit jump insn.
4028 (call_pcrel): Get pattern of the result of gen_call_site.
4029 (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
4031 2002-06-14 Neil Booth <neil@daikokuya.demon.co.uk>
4033 * cpphash.h (struct cpp_buffer): Remove saved_line_base.
4034 * cpptrad.c: Update comments.
4035 (skip_whitespace, copy_comment): Take a new parameter.
4036 (skip_escaped_newlines): Don't duplicate escaped newline test.
4037 (copy_comment): Different location for CUR, decide here how
4038 to copy / replace the comment.
4039 (skip_whitespace): Copy whitespace.
4040 (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
4041 (scan_out_logical_line): Let copy comment handle keeping or
4043 (scan_parameters, _cpp_create_trad_definition): Update.
4045 2002-06-13 Alan Lehotsky <apl@alum.mit.edu>
4047 * reload.c (get_secondary_mem,find_reloads_address,
4048 find_reloads_address_1): Pass reference to MEM to find_reloads_address
4049 so that LEGITIMIZE_RELOAD_ADDRESS will be called.
4051 2002-06-13 Jessica Han <jessica@cup.hp.com>
4053 * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
4054 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
4055 * doc/tm.texi: Document them.
4056 * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
4057 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
4058 (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
4059 (ASM_OUTPUT_FDESC): Likewise.
4061 2002-06-13 Eric Christopher <echristo@redhat.com>
4063 * diagnostic.c (output_format): Fix thinko.
4065 Thu Jun 13 22:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
4067 * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
4068 (DWARF2_UNWIND_INFO): Define to 0.
4070 * config/sh/sh.c (calc_live_regs): Don't use initial_value
4071 optimization for PR_MEDIA_REG.
4073 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
4075 * cpphash.h (_cpp_lex_identifier_trad): Remove.
4076 * cpplib.c (end_directive): Don't skip, always remove overlay
4078 (prepare_directive_trad): Handle NULL pfile->directive.
4079 (_cpp_handle_directive): Always call prepare_directive_trad
4081 * cppmain.c (check_multiline_token): Rename account_for_newlines,
4083 (scan_translation_unit_trad): Use it.
4084 * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
4085 output, get escaped newline in comment close correct.
4086 (check_output_buffer, skip_whitespace): Update.
4087 (_cpp_lex_identifier_trad): Remove.
4088 (scan_out_logical_line): Handle -C and comments in directives
4091 Thu Jun 13 20:18:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
4093 * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
4094 * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
4095 * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
4096 (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
4097 (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
4098 (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
4099 (SELECT_SH5_COMPACT_NOFPU): Likewise.
4100 (TARGET_SWITCHES): Use them.
4101 (TARGET_CPU_DEFAULT): Define if not already defined.
4102 (TARGET_DEFAULT): Use it.
4103 (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
4104 * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
4105 * config/sh/t-monolib: New file.
4107 2002-06-13 Roger Sayle <roger@eyesopen.com>
4109 * toplev.c (rest_of_compilation): Simplify (and correct) the
4110 logic of the first delete-null-pointer-checks pass.
4112 Thu Jun 13 18:24:17 CEST 2002 Jan Hubicka <jh@suse.cz>
4114 * i386.c (ix86_expand_movstr): Fix pasto.
4116 Thu Jun 13 18:18:17 CEST 2002 Jan Hubicka <jh@suse.cz>
4118 * reload.c (find_valid_class): Fix thinko in my previous patch.
4120 2002-06-13 Ulrich Weigand <uweigand@de.ibm.com>
4122 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
4123 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
4124 (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
4125 (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
4127 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
4129 * tree-inline.c (expand_call_inline): Don' mess with _DECL
4132 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
4134 * diagnostic.c (output_format): Recognize "%H" as a format
4135 specifier for a location_t.
4136 (text_specifies_location): New function.
4137 (diagnostic_set_info): Use it.
4139 2002-06-13 Jeffrey Law <law@redhat.com>
4141 * emit-rtl.c (static_regno_reg_rtx): Define.
4142 (init_emit_once): Initialize static_regno_reg_rtx.
4143 (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
4144 of building new hard reg objects once per function.
4145 (gen_rtx_REG): Try to share hard regs.
4146 * regclass.c (init_fake_stack_mems): New function broken out from
4148 * rtl.h (init_fake_stack_mems): Declare.
4149 * toplev.c (lang_independent_init): Call init_regs before
4150 init_emit_once. Call init_fake_stack_mems after init_emit_once.
4152 * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
4154 * alias.c (argument_registers): Remove.
4155 (init_alias_once): Initialize static_reg_base_value here. Remove
4156 initialization of argument_registers.
4157 (init_alias_once_per_function): Remove.
4158 (init_alias_analysis): Copy all the entries from static_reg_base_value
4159 into new_reg_base_value all at once.
4160 * rtl.h (init_alias_once_per_function): Remove declaration.
4161 * function.c (prepare_function_start): Do not call
4162 init_alias_once_per_function.
4164 * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
4165 starting a sequence and emitting an INSN.
4167 2002-06-13 Richard Sandiford <rsandifo@redhat.com>
4169 * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
4171 2002-06-13 David S. Miller <davem@redhat.com>
4173 * expmed.c (init_expmed): Remove duplicate init of 'reg'.
4175 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
4177 * cpplib.c (end_directive): Handle line skipping. Only remove
4178 the rest of the line if the directive was valid.
4179 * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
4180 expanding a traditional macro.
4181 * cpptrad.c (recursive_macro): New.
4182 (read_logical_line_trad): Handle skipping.
4183 (scan_out_logical_line): Continue after a successful directive.
4184 Don't expand macros whilst skipping, or if recursing.
4185 (_cpp_create_trad_definition): scan_out_logical_line now sets
4186 the output current position.
4188 2002-06-12 Eric Christopher <echristo@redhat.com>
4190 From Chris Demetriou <cgd@broadcom.com>
4191 * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
4193 (ISA_HAS_MADD_MSUB): Ditto.
4194 (ISA_HAS_NMADD_NMSUB): Ditto.
4196 2002-06-12 Eric Christopher <echristo@redhat.com>
4198 * config.gcc: Consolidate little endian handling and
4199 little/big endian targets.
4200 * config/mips/elfl.h: Remove file.
4201 * config/mips/elfl64.h: Ditto.
4202 * config/mips/ecoffl.h: Ditto.
4203 * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
4205 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
4207 * gengtype.h (xvasprintf): New prototype.
4208 (xasprintf): New prototype.
4210 (get_output_file): Return an outf_p.
4211 (header_file): Is now an outf_p.
4212 (base_files): Now are outf_p.
4214 * gengtype.c: Replace all output FILE * with outf_p; use oprintf
4215 rather than stdio operations. Use xasprintf in a few places,
4219 (struct filemap): Delete.
4221 (output_files): New.
4223 (create_file): Create an outf_p. Add parameter to indicate output
4224 file name, change all callers.
4225 (open_base_files): Create gtype-desc.c here.
4226 (get_output_file_with_visibility): Rewrite.
4227 (get_output_file_name): Just look at 'name' field in struct outf.
4228 (close_output_files): Rewrite.
4230 2002-06-12 Jason Thorpe <thorpej@wasabisystems.com>
4232 * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
4233 (MASK_G_FLOAT): Define.
4234 (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
4235 (TARGET_SWITCHES): Likewise.
4236 (TARGET_DEFAULT): Likewise.
4238 2002-06-12 Daniel Jacobowitz <drow@mvista.com>
4240 * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
4241 * config/mips/mips.c (mips_output_filename): Don't print a
4242 ".file" directive if we are using DWARF-2.
4243 (mips_output_function_prologue): Do not emit source file
4244 name for TARGET_GAS.
4246 Wed Jun 12 16:45:13 CEST 2002 Jan Hubicka <jh@suse.cz>
4248 * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
4249 decide whether emit the short opcode.
4250 * i386.h (x86_shift1): Declare.
4251 (TARGET_SHIFT1): New macro.
4252 * i386.c (x86_shift1): New global variable.
4254 * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
4255 unconditionally; make loop to rebuild CFG; kill unnecesary
4256 find_basic_block calls; kill compute_bb_for_insn call.
4257 * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
4258 * haifa-sched.c (sched_init): Likewise.
4259 * ssa-ccp.c (ssa_const_prop): Likewise.
4260 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
4262 2002-06-11 David S. Miller <davem@redhat.com>
4264 * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
4267 2002-06-11 Richard Henderson <rth@redhat.com>
4269 * c-common.c (builtin_define_type_max): New.
4270 (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
4271 __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
4273 From Joseph S. Myers:
4274 * glimits.h: Rewrite to expect the double underscore definitions
4277 * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
4278 config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
4279 config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
4280 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
4281 config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
4282 config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
4283 config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
4284 __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
4286 2002-06-11 Richard Henderson <rth@redhat.com>
4288 * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
4289 (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
4290 (code_for_builtns): Update.
4291 (alpha_init_builtins): Add __builtin_thread_pointer and
4292 __builtin_set_thread_pointer.
4293 (alpha_expand_builtin): Handle void builtins.
4294 * doc/extend.texi (Alpha Built-in Functions): Update.
4296 2002-06-11 Hans-Peter Nilsson <hp@axis.com>
4299 * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
4301 2002-06-11 Zack Weinberg <zack@codesourcery.com>
4303 * config.gcc: Make the name of the extra-modes file adjustable
4305 (s390x, strongarm, xscale stanzas): Use this facility.
4306 * configure.in: Update to match.
4307 * configure: Regenerate.
4309 2002-06-11 Aldy Hernandez <aldyh@redhat.com>
4311 * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
4312 max/mins as unsigned GE compares.
4314 2002-06-11 Jason Thorpe <thorpej@wasabisystems.com>
4316 * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
4317 * config/vax/bsd.h: New file.
4318 * config/vax/netbsd.h: Add missing notice.
4319 (CPP_PREDEFINES): Remove.
4320 (TARGET_OS_CPP_BUILTINS): Define.
4321 (CPP_SPEC): Use NETBSD_CPP_SPEC.
4322 * config/vax/openbsd.h: Update copyright years.
4323 (CPP_PREDEFINES): Remove.
4324 (TARGET_OS_CPP_BUILTINS): Define.
4325 * config/vax/ultrix.h: Likewise.
4326 * config/vax/vaxv.h: Likewise.
4327 * config/vax/vms.h: Likewise.
4328 * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
4329 (CPP_PREDEFINES, CPP_SPEC): Remove.
4331 Wed Jun 12 01:50:28 CEST 2002 Jan Hubicka <jh@suse.cz>
4333 * i386.md (addqi_1_slp, subqi_1_slp
4334 (andqi_ext0, testqi_ext0): Remove unnecesary check.
4335 (addhi*, addqi*): Simplify "dec" condition.
4336 (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
4337 (and, or, xor to QImode splitters): New.
4340 (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
4341 (andqi_ext_1_rex64): New.
4345 (rotrqi3*_slp): New.
4346 (rotlqi3*_slp): New.
4348 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
4350 * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
4352 * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
4353 (CPP_ENDIAN_LITTLE_SPEC): Delete.
4354 * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
4355 * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
4356 __LONG_DOUBLE_128__ setting, _CALL_* setting.
4357 (CPP_DEFAULT_SPEC): Delete.
4358 (CPP_FLOAT_DEFAULT_SPEC): Delete.
4359 (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
4360 (CPP_SYSV_DEFAULT_SPEC): Delete.
4361 (CPP_ENDIAN_BIG_SPEC): Delete.
4362 (CPP_ENDIAN_LITTLE_SPEC): Delete.
4363 (CPP_ENDIAN_SPEC): Delete.
4364 (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
4365 (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
4366 cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
4367 cpp_longdouble_default.
4368 * config/rs6000/softfloat.h: Delete.
4369 * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
4370 (EXTRA_SPECS): Delete cpp_cpu.
4371 (TARGET_CPU_CPP_BUILTINS): New.
4372 * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
4374 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
4375 * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
4376 (CPP_DEFAULT_SPEC): Delete.
4377 * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
4378 * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
4379 * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
4380 (CPP_DEFAULT_SPEC): Delete.
4381 * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
4382 (CPLUSPLUS_CPP_SPEC): Likewise.
4383 (CPP_CPU_SPEC): Delete.
4384 (CPP_DEFAULT_SPEC): Delete.
4385 * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
4386 (CPLUSPLUS_CPP_SPEC): Likewise.
4387 (CPP_CPU_SPEC): Delete.
4388 (CPP_DEFAULT_SPEC): Delete.
4389 * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
4390 (CPP_DEFAULT_SPEC): Delete.
4391 * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
4392 (CPP_DEFAULT_SPEC): Delete.
4394 * doc/gty.texi: Small updates.
4396 2002-06-12 Gabriel Dos Reis <gdr@codesourcery.com>
4398 * objc/objc-act.c (warn_with_ivar): Adjust calls to
4399 diagnostic_count_error.
4400 (warn_with_method): Likewise.
4402 * diagnostic.h (warnings_are_errors_message): New field of
4404 (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
4406 * diagnostic.c: Adjust calls to diagnostic_count_error through out.
4407 (diagnostic_count_diagnostic): Make aware of other kinds of
4409 (diagnostic_initialize): Initialize warnings_are_errors_message field.
4411 2002-06-11 Tom Tromey <tromey@redhat.com>
4414 * fold-const.c (fold_convert): Don't modify existing tree's type.
4416 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
4418 * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
4420 2002-06-11 Richard Henderson <rth@redhat.com>
4422 * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
4424 2002-06-11 Richard Henderson <rth@redhat.com>
4426 * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
4427 DWARF2_UNWIND_INFO is false.
4429 2002-06-11 Bob Wilson <bob.wilson@acm.org>
4431 * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
4433 * config/s390/s390.c (emit_prologue): gen_store_multiple
4434 returns an insn now, not a pattern.
4436 2002-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4438 * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
4441 Tue Jun 11 21:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
4443 * i386.c (x86_promote_QImode): Set for Athlon
4444 (x86_fast_prefix): New global variable.
4445 (x86_arch_always_fancy_math_387): Fix formating.
4446 * i386.h (x86_fast_prefix): Declare
4447 (TARGET_FAST_PREFIX): define.
4448 * i386.md (and to strict_low_part, HI to SI
4449 promoting splitter): Use new macro.
4451 * i386.h (RTX_COSTS): float_extend is not for free for SSE.
4453 2002-06-11 Zack Weinberg <zack@codesourcery.com>
4455 * Makefile.in (distclean): Delete junk left in testsuite
4458 2002-06-11 Jeffrey Law <law@redhat.com>
4460 * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
4461 last insn created by the splitter.
4463 * caller-save.c (init_caller_save): Move creation of SAVEINSN
4464 and RESTINSN into into the scope of the sequence.
4466 * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
4469 * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
4471 * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
4472 not the pattern. So extract the pattern from the insn.
4474 * mips.c (embedded_pic_fnaddr_reg): Fix typo.
4476 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
4478 * config/s390/s390.md (movsi): Only use floating point
4479 register alternatives when operands are already fprs.
4480 (movdi_31, movdi_64): Likewise.
4482 2002-06-11 David S. Miller <davem@redhat.com>
4484 * emit-rtl.c (try_split): Do not abort on non-INSN_P.
4485 Only run RTX equality checks on INSN_P rtl.
4487 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
4489 * config/s390/s390.md (reload_base, ltorg): Remove.
4490 * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
4491 s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
4492 * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
4493 s390_asm_output_pool_prologue): Likewise.
4494 * s390.h (s390_pool_start_insn): Likewise.
4496 * s390.c (s390_output_symbolic_const): Remove support for
4497 old-style pool chunks.
4498 (s390_function_epilogue): Likewise.
4499 (s390_output_constant_pool): Likewise. Also, fix incorrect
4500 alignment for 64-bit literal pools.
4501 (print_operand_address): Remove 'y' and 'Y' format flags.
4502 * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
4503 old-style pool chunks.
4504 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
4505 (ASM_OUTPUT_POOL_EPILOGUE): Remove.
4506 (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
4508 * s390.c (consttable_operand): New function.
4509 * s390-protos.h (consttable_operand): Declare it.
4510 * s390.h (PREDICATE_CODES): Add consttable_operand.
4511 * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
4512 consttable_sf, consttable_df, pool_start_31, pool_end_31,
4513 pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
4514 * s390.c (struct constant, struct constant_pool): New data types.
4515 (constant_modes, gen_consttable): New variables.
4516 (s390_start_pool, s390_end_pool, s390_add_pool,
4517 s390_dump_pool, s390_free_pool): New functions.
4518 (s390_chunkify_pool): Completely reimplement literal pool
4521 * s390.c (s390_pool_overflow): New variable.
4522 * s390.h (s390_pool_overflow): Declare it.
4523 * s390.md (cjump, icjump): Use it to adapt length for out-of-range
4524 jumps in literal pool overflow situations.
4526 * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
4527 (s390_frame_info): Account for possible use of RETURN_REGNUM
4528 by new literal pool overflow code.
4529 (s390_emit_prologue): Likewise.
4531 2002-06-05 David S. Miller <davem@redhat.com>
4533 Delete SEQUENCE rtl usage outside of reorg and ssa passes.
4534 * rtl.h (gen_sequence, emit_insns, emit_insns_before,
4535 emit_insns_before_scope, emit_insns_after,
4536 emit_insns_after_scope): Delete declaration.
4537 * ada/misc.c (insert_code_for): Use emit_insn* instead of
4539 * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
4540 (alpha_set_memflags): Fix comment.
4541 (set_frame_related_p): Use get_insns instead of gen_sequence.
4542 * config/alpha/alpha.md (setjmp receiver splitter): Avoid
4544 * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
4546 (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
4547 * config/fr30/fr30.c (fr30_move_double): Likewise.
4548 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
4550 * config/ia64/ia64.c (spill_restore_mem): Likewise.
4551 * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
4553 * config/m32r/m32r.c (gen_split_move_double): Use get_insns
4554 instead of gen_sequence.
4555 * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
4556 (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
4557 * config/sh/sh.c (sh_need_epilogue): Likewise.
4558 * config/sparc/sparc.md (current_function_calls_alloca, flat): New
4560 (setjmp pattern and split): Use them to avoid splitter which emits
4562 * genattrtab.c (main): Emit include of function.h
4563 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
4564 get_insns instead of gen_sequence.
4565 * config/cris/cris.c (cris_split_movdx): Likewise.
4566 * emit-rtl.c (emit_insns*): Kill.
4567 (try_split): Expect insn list instead of SEQUENCE.
4568 (make_jump_insn_raw, make_call_insn_raw): Fix comments.
4569 (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
4570 Make them abort if a SEQUENCE is given and RTL checking is
4572 (emit_*_scope): Don't forget to set scope on final insn.
4573 (gen_sequence): Move from here...
4574 * ssa.c (gen_sequence): To here as private function.
4575 * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
4577 (expand_builtin_return, expand_builtin_mathfn): Likewise.
4578 (expand_builtin_strlen): Use get_insns instead of gen_sequence.
4579 (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
4580 (expand_builtin_expect_jump): Use get_insns and fix comments.
4581 * calls.c (try_to_integrate): Use emit_insn_foo.
4582 (expand_call, emit_library_call_value_1): Likewise.
4583 * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
4584 (emit_move_insn_1): Use get_insns instead of gen_sequence.
4585 (expand_expr): Use emit_insn_foo.
4586 * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
4587 * except.c (build_post_landing_pads): Likewise.
4588 * flow.c (attempt_auto_inc): Likewise.
4589 * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
4590 expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
4591 * function.c (fixup_var_refs_insn): Use get_insns instead of
4593 (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
4594 (fixup_memory_subreg): Use get_insns instead of gen_sequence.
4595 (fixup_stack_1, purge_addressof_1, expand_main_function,
4596 get_arg_pointer_save_area): Likewise.
4597 (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
4598 expand_function_end): Use emit_insn_foo.
4599 (record_insns, keep_stack_depressed): Work with insn list instead
4600 of SEQUENCE, fix comments.
4601 * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
4602 noce_try_store_flag_constants, noce_try_store_flag_inc,
4603 noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
4604 noce_try_minmax, noce_try_abs): Use emit_insn_foo.
4605 (noce_process_if_block): Use get_insns instead of gen_sequence.
4606 * optabs.c (add_equal_note): Work with insn list, fix comments.
4607 (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
4608 (expand_unop, expand_complex_abs, expand_unop_insn,
4609 expand_no_conflict_block): Likewise.
4610 (gen_move_insn): Use get_insns instead of gen_sequence.
4611 (gen_cond_trap): Likewise.
4612 * integrate.c (copy_rtx_and_substitute): Likewise.
4613 (emit_initial_value_sets): Use emit_insn_foo.
4614 * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
4615 (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
4616 now that RTL generators give insn lists.
4617 * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
4618 * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
4619 instead of gen_sequence.
4620 (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
4621 * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
4622 instead of gen_sequence.
4623 * loop.c (move_movables, emit_prefetch_instructions,
4624 gen_add_mult, check_dbra_loop, gen_load_of_final_value):
4626 (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
4627 (product_cheap_p): Likewise, and add commentary about RTL wastage
4629 * lcm.c (optimize_mode_switching): Use get_insns instead of
4631 * profile.c (gen_edge_profiler): Likewise.
4632 * regmove.c (copy_src_to_dest): Likewise.
4633 * reg-stack.c (compensate_edge): Likewise and fix comment.
4634 * gcse.c (process_insert_insn): Likewise.
4635 (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
4636 * jump.c (delete_prior_computation): Update comment.
4637 * genemit.c (gen_expand, gen_split, main): Use get_insns instead
4638 of gen_sequence, update comments to match.
4639 * recog.c (peephole2_optimize): Work with insn lists instead of
4641 * sched-vis.c (print_pattern): Abort on SEQUENCE.
4642 * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
4643 Use get_insns instead of gen_sequence.
4644 (copy_loop_body): Likewise and don't emit dummy NOTE.
4645 * genrecog.c: Don't mention SEQUENCE rtl in comments.
4646 * combine.c (try_combine): Expect insn lists from split generator.
4647 * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
4650 2002-06-11 Roger Sayle <roger@eyesopen.com>
4651 Andreas Jaeger <aj@suse.de>
4653 * cfgbuild.c: Update copyright years.
4655 2002-06-11 Andreas Schwab <schwab@suse.de>
4657 * config/m68k/m68k.h (PREDICATE_CODES): Define.
4659 2002-06-11 Eric Christopher <echristo@redhat.com>
4661 * doc/tm.texi (Run-time Target): Add comment about flag_iso
4663 * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
4664 * config/mips/ecoffl.h: Ditto.
4665 * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
4666 (CPP_PREDEFINES): Ditto.
4667 * config/mips/elfl64.h: Ditto.
4668 * config/mips/elfl.h: Ditto.
4669 * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
4670 out until irix header consolidation.
4671 * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
4672 with SUBTARGET_OS_CPP_BUILTINS.
4673 * config/mips/iris6.h: Ditto.
4674 (CPLUSPLUS_CPP_SPEC): Remove.
4675 * config/mips/linux.h: Ditto.
4676 * config/mips/netbsd.h: Ditto.
4677 * config/mips/openbsd.h: Ditto.
4678 * config/mips/rtems.h: Ditto.
4679 * config/mips/rtems64.h: Ditto.
4680 * config/mips/sni-svr4.h: Ditto.
4681 * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
4682 ISA_MIPS32, ISA_MIPS64): New defines.
4683 (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
4684 ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
4685 ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
4686 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
4687 (TARGET_CPU_CPP_BUILTINS): Define.
4688 (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
4689 * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
4690 (movdicc): Remove check for ISA_MIPS32.
4691 (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
4692 sunordered_df, sunordered_sf, sordered_df, sordered_sf,
4693 sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
4694 sunge_sf, sunle_df, sunle_sf): New patterns.
4696 2002-06-11 Neil Booth <neil@daikokuya.demon.co.uk>
4698 * Makefile.in: Update cppmain.o.
4699 * cpphash.h (struct cpp_reader): Move some members to a
4701 (trad_line): Rename saved_line.
4702 (_cpp_read_logical_line_trad): Update.
4703 (_cpp_remove_overlay): New.
4704 * cppinit.c (cpp_create_reader): No need to set saved_line.
4705 (cpp_destroy): Update.
4706 (cpp_read_main_file): Only overlay if compiling.
4707 * cpplex.c (continue_after_nul): Return false if in directive.
4708 * cpplib.c (EXPAND): New.
4709 (directive_table, SEEN_EOL): Update.
4710 (end_directive): Remove overlay if traditional; don't skip
4711 line in traditional #define.
4712 (prepare_directive_trad): New.
4713 (_cpp_handle_directive, run_directive): Update for traditional
4715 (lex_macro_node): Simplify, don't use lex_identifier_trad.
4716 * cpplib.h (struct options): Add preprocess_only.
4717 * cppmain.c: Don't include intl.h.
4718 (cpp_preprocess_file): Set options->preprocess_only.
4719 (scan_translation_unit_trad): Fix, and print line numbers.
4720 * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
4721 maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
4722 save_replacement_text, _cpp_create_trad_definition): Update for
4724 (_cpp_overlay_buffer): Save line number.
4725 (_cpp_remove_overlay): Rename from restore_buff, restore line.
4726 (_cpp_read_logical_line_trad): Don't handle overlays here.
4727 (scan_out_logical_line): Process directives.
4729 2002-06-11 Danny Smith <dannysmith@users.sourforge.net>
4731 * gthr-win32.h: Wrap functions in extern "C".
4732 (__gthread_key_t): Typedef as unsigned long,
4734 (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
4735 (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
4736 (__gthr_win32_once, __gthr_win32_key_create,
4737 __gthr_win32_key_delete, __gthr_win32_getspecific,
4738 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
4739 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
4740 __gthr_win32_mutex_unlock): Declare.
4741 (__gthread_once,__gthread_key_create,
4742 __gthread_key_delete, __gthread_getspecific,
4743 __gthread_setspecific, __gthread_mutex_init_function,
4744 __gthread_mutex_lock,__gthread_mutex_trylock,
4745 __gthread_mutex_unlock): Call corresponding
4746 __gthr_win32_* extern implementations if #defined
4747 __GTHREAD_HIDE_WIN32API.
4748 * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
4749 $(srcdir)/config/i386/gthr-win32.c
4750 * config/i386/gthr-win32.c: New implementation file.
4751 (__gthr_win32_once, __gthr_win32_key_create,
4752 __gthr_win32_key_delete, __gthr_win32_getspecific,
4753 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
4754 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
4755 __gthr_win32_mutex_unlock): New functions, based on
4756 static inlines in gthr-win32.h.
4758 2002-06-10 Bob Wilson <bob.wilson@acm.org>
4760 * config/xtensa/xtensa.c (override_options): Don't warn about
4761 using -fpic or -fPIC when PIC is enabled by default.
4763 2002-06-10 Roger Sayle <roger@eyesopen.com>
4765 * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
4767 2002-06-10 Zack Weinberg <zack@codesourcery.com>
4769 * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
4770 * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
4771 exists, substitute its pathname as @extra_modes_file@, define
4772 EXTRA_MODES_FILE to be an appropriate string to #include it
4773 with, and define EXTRA_CC_MODES to 1.
4775 * machmode.def: Update comments. Include EXTRA_MODES_FILE if
4776 it's defined. Get rid of redundancy in calling sequence for
4777 CC; don't use it to define CCmode, to avoid a warning.
4778 * libgcc2.c: Include symcat.h for the sake of machmode.def.
4780 * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
4781 i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
4782 pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
4784 * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
4785 pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
4787 * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
4788 defining extra CC modes.
4790 2002-06-10 Roger Sayle <roger@eyesopen.com>
4791 Andreas Jaeger <aj@suse.de>
4793 * cfgrtl.c (create_basic_block_structure): Remove index argument
4794 and use last_basic_block++ instead. (create_basic_block): Update.
4795 * cfgbuild.c (find_basic_blocks_1): Likewise.
4797 * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
4798 * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
4799 * sched-ebb.c (schedule_ebbs): Likewise.
4800 * sched-rgn.c (schedule_insns): Likewise.
4801 * ssa-ccp.c (ssa_const_prop): Likewise.
4802 * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
4803 * toplev.c (rest_of_compilation): Likewise.
4804 * config/ia64/ia64.c (ia64_reorg): Likewise.
4806 2002-06-10 Roger Sayle <roger@eyesopen.com>
4808 * simplify-rtx.c (simplify_replace_rtx): Allow replacement
4809 of matching registers.
4811 2002-06-10 Roger Sayle <roger@eyesopen.com>
4813 * toplev.c (rest_of_compilation): Disable early if-conversion pass.
4814 * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
4816 2002-06-10 Hans-Peter Nilsson <hp@bitrange.com>
4818 * config/mmix/mmix.h: Improve comments.
4819 (CPP_SPEC, CPP_PREDEFINES): Don't define.
4820 (TARGET_CPU_CPP_BUILTINS): Define.
4821 (CANONICALIZE_COMPARISON): Don't define, replace with comment.
4822 (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
4824 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
4826 (mmix_constant_address_p): Remove another
4827 redundant test before case.
4828 (mmix_canonicalize_comparison): Remove unused function.
4829 (mmix_print_operand_address): Don't test and adjust for operand in
4830 non-canonical format.
4831 (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
4832 (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
4834 2002-06-10 Zack Weinberg <zack@codesourcery.com>
4836 * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
4837 * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
4838 * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
4839 (gen_compare): Use CCmode unconditionally.
4841 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4843 PR optimization/6759
4844 * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
4847 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4850 * c-decl.c (grokfield): Allow user defined types if they declare
4851 structs or unions for unnamed fields.
4853 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4856 * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
4858 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4860 PR optimization/6842
4861 * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
4862 operand subreg cannot be simplified.
4864 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4866 * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
4867 (compare_constant): Likewise.
4868 (output_addressed_constants): Likewise.
4870 2002-06-10 Jakub Jelinek <jakub@redhat.com>
4872 * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
4873 merge bb with itself.
4875 2002-06-10 Richard Henderson <rth@redhat.com>
4877 * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
4878 (builtin_zapnot): Likewise.
4880 * config/alpha/ev5.md: Don't combine shift and mvi insns in one
4883 2002-06-10 Eric Christopher <echristo@redhat.com>
4885 * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
4886 prototype and function.
4887 (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
4888 (call_insn_operand): Remove half pic references.
4889 (legitimate_address_p): Ditto.
4890 * config/i386/i386.h: Remove half pic defines.
4892 2002-06-10 Eric Christopher <echristo@redhat.com>
4894 * doc/extend.texi (Return Address): Add note explaining the side-
4895 effects of inlining on __builtin_return_address.
4897 2002-06-10 Tom Tromey <tromey@redhat.com>
4899 * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
4900 (c-common.o): Depend on langhooks.h.
4902 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
4904 * cpphash.h (_cpp_read_logical_line_trad,
4905 _cpp_expansions_different_trad): Update prototypes.
4906 * cpplex.c (continue_after_nul): New.
4907 * cppmain.c: Include cpphash.h.
4908 (scan_translation_unit_trad): New.
4909 (cpp_preprocess_file): Call it.
4910 * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
4912 (_cpp_expansions_different_trad): Update prototype.
4914 Mon Jun 10 18:02:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
4916 Fix cfi generation for SH[1-4]:
4918 * sh.c (frame_insn): New function.
4919 (output_stack_adjust): Add parameter emit_fn. All callers changed.
4920 (push): Now returns rtx. Use frame_insn.
4921 (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
4923 * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
4925 2002-06-10 Zack Weinberg <zack@codesourcery.com>
4927 * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
4929 (mostlyclean): Delete specs.h, options.h, gencheck.h here...
4930 (distclean): ... not here. But do delete all testsuite/*.log,
4931 testsuite/*.sum files here. Delete mkheaders. Delete
4932 po/*.gmo and the testsuite directory in a split tree build.
4934 2002-06-10 Jeffrey Law <law@redhat.com>
4936 * alias.c (static_reg_base_value): New to hold RTL for
4937 items allocated once per function for the aliasing code.
4938 (init_alias_once_per_function): Initialize static_reg_base_value.
4939 (init_alias_analysis): Avoid throw-away allocations of RTL by
4940 using pre-computed values in static_reg_base_value.
4941 * function.c (prepare_function_start): Call
4942 init_alias_once_per_function appropriately.
4943 * rtl.h (init_alias_once_per_function): Declare.
4944 * caller-save (init_caller_save): Restructure slightly to
4945 avoid lots of silly RTL generation.
4946 * expr.c (init_expr_once): Likewise.
4947 * reload1.c (reload_cse_regs_1): Allocate throw-away register
4948 RTL object here. Pass it into children.
4949 (reload_cse_simplify_operands): Use passed-in register RTL
4951 (reload_cse_simplify): Pass through throw-away register
4954 2002-06-10 Daniel Berlin <dberlin@dberlin.org>
4956 * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
4958 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
4960 * gcc.c (process_command): Avoid assignment to read-only location.
4961 Fix sizeof calculation.
4963 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
4965 * cpphash.h (struct cpp_macro): Put comments on their own lines.
4966 (_cpp_expansions_different_trad): New.
4967 * cppmacro.c (warn_of_redefinition): Fix for traditional case.
4968 * cpptrad.c (canonicalize_text): New.
4969 (scan_out_logical_line): Handle no arguments correctly.
4970 (save_replacement_text): Commit memory when finished.
4971 (_cpp_expansions_different_trad): New.
4973 2002-06-10 Tim Josling <tej@melbpc.org.au>
4975 * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
4977 (lang_names): Add treelang and cobol.
4978 (get_file_basename): Add code to support treelang and cobol as
4979 4th and 5th users of c-common.c.
4981 2002-06-09 Geoffrey Keating <geoffk@redhat.com>
4983 * Makefile.in (install-driver): Install driver as
4984 $(target_alias)-gcc-$(version).
4985 * gcc.c (spec_version): Make const.
4986 (process_command): Handle -V and -b by using exec.
4987 * doc/invoke.texi (Target Options): Restore -V option,
4988 update docs for -b option.
4990 2002-06-10 Tim Josling <tej@melbpc.org.au>
4992 * configure.in (remaining_languages_check):
4993 Added check that all languages specified were found.
4994 Exit if not found. Previous behaviour was silent failure.
4995 * configure: Regenerated.
4997 2002-06-10 Tim Josling <tej@melbpc.org.au>
4999 First steps to making treelang documentation compliant, based on
5000 instructions in sourcebuild.texi. Also add to gcc.c list of
5003 * doc/contrib.texi: Add self as contributor of treelang.
5005 * doc/frontends.texi: Add mention of treelang.
5007 * doc/invoke.texi (Overall Options): Add mention of treelang.
5009 * doc/standards.texi: Add mention of treelang.
5011 2002-06-09 Hans-Peter Nilsson <hp@axis.com>
5013 * config/cris/cris.c: Include ggc.h
5015 2002-06-09 Neil Booth <neil@daikokuya.demon.co.uk>
5017 * cpphash.h (_cpp_push_text_context): Update.
5018 (_cpp_arguments_ok): New.
5019 * cppmacro.c (_cpp_arguments_ok): New, split out from...
5020 (collect_args): ...here.
5021 (_cpp_push_text_context): Change inputs.
5022 * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
5023 replace_args_and_push): New.
5024 (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
5025 Don't use IS macros directly.
5026 (scan_out_logical_line): Handle function-like macro argument
5028 (push_replacement_text): Update.
5029 (replacement_length): Remove.
5030 (_cpp_create_trad_definition): Don't skip whitespace before
5033 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
5035 * config/avr/avr.c (avr_mcu_types): Update for new devices.
5036 * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
5037 (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
5038 * config/avr/avr.md ("type" and "length" attributes): New type
5039 "xcall", length 1 or 2 if AVR_MEGA. Use in all patterns that
5040 output a single "call" or "rcall" insn depending on device size.
5041 * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
5043 2002-06-09 David Edelsohn <edelsohn@gnu.org>
5045 * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
5046 synonym for 630. Add power4. Remove embedded processors. Use -m604
5048 (CPP_CPU_SPEC): Add power3 and power4.
5049 (PROCESSOR_DEFAULT): Change to 604e.
5050 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
5051 (CPP_CPU_SPEC): Similar additions.
5052 (enum process_type): Add POWER4.
5053 (RTX_COSTS): Add POWER4.
5054 (CPP_CPU_SPEC): Similar additions.
5055 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
5056 (PROCESSOR_DEFAULT64): Define.
5057 * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
5058 (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
5060 (rs6000_issue_rate): Add Power4.
5061 * config/rs6000/rs6000.md (cpu attr): Add power4.
5062 (iu compare): Remove 604, 604e, 620, 630.
5063 Add basic Power4 scheduling information.
5064 (mfcr/mtcrf): Change type attribute to cr_logical.
5066 2002-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5068 * gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add
5070 * gengtype-lex.l: Fix format specifier warning.
5072 * genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE,
5074 * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
5075 lieu of isspace/IDchar.
5076 * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
5077 * read-rtl.c: Likewise for ctype.h. Don't define ISDIGIT or
5080 2002-06-08 Zack Weinberg <zack@codesourcery.com>
5082 * Makefile.in (LIBCPP_OBJS): Take out version.o.
5083 * cpphash.h (cpp_reader): Take out print_version member.
5084 * cppinit.c: (cpp_handle_option): Don't do anything with
5085 -version. Just set help_only for --version, --target-help.
5086 Just set verbose option for -v.
5087 (cpp_post_options): Don't print a version string.
5089 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
5091 * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
5092 (avr_section_type_flags): New, handle .noinit* sections.
5094 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
5096 * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
5097 and include netbsd_entry_point.
5098 (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
5099 (NETBSD_ENTRY_POINT): Define.
5101 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
5103 * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
5104 if not already defined.
5105 (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
5107 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
5109 * config/avr/avr.c (avr_regs_to_save): No need to save any registers
5110 in a noreturn function.
5111 (avr_output_function_prologue, avr_output_function_epilogue):
5112 Correct function size calculation. Do not crash on empty function.
5113 (avr_output_function_epilogue): No need for epilogue after a BARRIER.
5115 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
5117 * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
5118 netbsd_link_spec and netbsd_entry_point.
5119 (LINK_SPEC): Use %(netbsd_link_spec).
5120 (NETBSD_ENTRY_POINT): Define.
5122 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
5124 * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
5126 (LINK_ARCH64_SPEC): Likewise.
5127 (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
5128 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
5130 2002-06-08 Marc Espie <espie@openbsd.org>
5132 * lists.c (free_list): Fix typo in comment.
5134 2002-06-08 Andreas Jaeger <aj@suse.de>
5136 * lcm.c (optimize_mode_switching): Add unused attribute for
5139 * sched-deps.c (sched_analyze): Remove unused variable.
5141 2002-06-08 Gabriel Dos Reis <gdr@codesourcery.com>
5143 * diagnostic.def: Don't capitalize diagnostict descriptors.
5145 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
5147 * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
5148 (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
5149 (NETBSD_ENTRY_POINT): Define.
5151 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
5153 * config/i386/netbsd-elf.h (LINK_SPEC): Define as
5154 NETBSD_LINK_SPEC_ELF.
5155 (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
5156 (NETBSD_ENTRY_POINT): Define.
5157 * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
5158 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
5160 (NETBSD_ENTRY_POINT): Define.
5162 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
5164 * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
5165 netbsd_link_spec and netbsd_entry_point.
5166 (LINK_SPEC): Use %(netbsd_link_spec).
5167 (NETBSD_ENTRY_POINT): Define.
5169 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
5171 * config/netbsd-elf.h (LINK_SPEC): Rename to...
5172 (NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point)
5173 to specify program entry point.
5175 2002-06-07 Jeff Law <law@redhat.com
5177 * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
5178 * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
5179 than creating a new register.
5180 (distribute_notes): Likewise.
5181 * df.c (df_reg_use_gen): Likewise.
5182 (df_reg_clobber_gen): Likewise.
5183 (df_ref_record): Likewise.
5184 * expr.c (use_regs): Likewise.
5185 * flow.c (propagate_one_insn): Likewise.
5186 (mark_set_1): Likewise.
5187 (mark_used_reg): Likewise.
5188 * reload.c (emit_reload_insns): Likewise.
5190 2002-06-07 Roger Sayle <roger@eyesopen.com>
5192 * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
5193 (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
5194 Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
5195 comparison code comp can be reversed.
5197 2002-06-07 Roger Sayle <roger@eyesopen.com>
5199 * fold-const.c (fold) [EQ_EXPR]: Place both integer and real
5200 constants last in comparisons. Optimize (x+1.0)>0.0 into the
5201 equivalent x > -1.0 when -ffast-math.
5203 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
5205 * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
5206 * config/mips/t-netbsd: New file.
5208 2002-06-07 Zack Weinberg <zack@codesourcery.com>
5210 * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
5211 options their own entries.
5212 (parse_option): Clarify comment.
5213 (cpp_handle_option): Remove 'ignore' parameter and OPT_W
5214 special case. Replace if/strcmp chain for -W options with
5215 use of new OPT_* entries for them.
5216 (cpp_handle_options): Update to match.
5217 * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
5218 * c-decl.c: Update call to cpp_handle_option.
5220 2002-06-07 Akim Demaille <akim@epita.fr>
5222 * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
5225 2002-06-07 Jeffrey Law <law@redhat.com>
5227 * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
5230 2002-06-07 H.J. Lu (hjl@gnu.org)
5232 * configure.in: Add --enable-__cxa_atexit.
5233 * configure: Regenerated.
5234 * config.in: Likewise.
5236 * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
5239 2002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net>
5241 * diagnostic.c (diagnostic_build_prefix): Fix initialization.
5243 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
5245 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
5247 2002-06-07 Jason Merrill <jason@redhat.com>
5249 * cppexp.c (num_equality_op): Use a temporary variable to work
5250 around gcc 3.0.4 bug.
5252 2002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
5254 * diagnostic.c (diagnostic_build_prefix): Tidy.
5256 2002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
5258 * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
5259 scan_parameters, save_replacement_text, replacement_length): New.
5260 (scan_out_logical_line): Take a macro and save parameters if
5262 (_cpp_logical_line_trad): Update.
5263 (_cpp_create_trad_definition): Update to handle function-like
5265 * cpplex.c (new_buff): Update.
5266 (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
5267 * cpphash.h: ...here.
5268 (CPP_ALIGN2, _cpp_save_parameter): New.
5269 * cppmacro.c (save_parameter): Rename, export.
5270 (parse_params): Update.
5272 2002-06-07 Andreas Jaeger <aj@suse.de>
5274 * config/mmix/mmix.c: Remove extra broken prototype for
5275 mmix_init_machine_status.
5277 2002-06-06 Geoffrey Keating <geoffk@redhat.com>
5279 * gengtype.c: Add comments before all the routines.
5281 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
5283 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
5284 from and add t-sh64 to ${tmake_file}.
5285 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
5286 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
5287 * config/sh/t-netbsd-sh5-32: Remove.
5288 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
5290 (MULTILIB_DIRNAMES): Define.
5292 Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
5294 * i386.md (and promoting splitters): Disable QI to SImode promoting
5295 when doing so changes immediate to be 32bit.
5297 * rtl.h (emit_*_scope): Declare.
5298 * emit-rtl.c (emit_*_scope): New global functions.
5299 (try_split): Copy scope.
5300 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
5301 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
5302 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
5303 noce_process_if_block, find_cond_trap): Copy scopes.
5304 * recog.c (peephole2_optimize): likewise.
5306 2002-06-06 Jeffrey Law <law@redhat.com>
5308 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
5310 Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
5312 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
5314 2002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5316 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
5317 ($(docdir)/gccinstall.info): New target.
5318 (info): Depend on it.
5319 (gccinstall.dvi): New target.
5320 (dvi): Depend on it.
5321 * doc/.cvsignore: Ignore new info files.
5322 * doc/install.texi (@setfilename): Reflect new info filename.
5324 Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
5326 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
5329 Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
5332 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
5333 c_common_get_alias_set.
5334 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
5336 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
5338 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
5340 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
5341 * avr/avr.c (avr_output_function_epilogue): Use above to determine
5343 * pa/pa.c (pa_output_function_prologue): Likewise.
5345 2002-06-05 David S. Miller <davem@redhat.com>
5347 * integrate.c (subst_constants): Handle 'B' RTL format.
5349 2002-06-05 Eric Christopher <echristo@redhat.com>
5351 * varasm.c (make_decl_rtl): Fix comment for removed
5354 2002-06-05 Eric Christopher <echristo@redhat.com>
5356 * Makefile.in: Remove missed halfpic bits.
5358 2002-06-05 Eric Christopher <echristo@redhat.com>
5360 * toplev.c: Remove half-pic.
5361 * config/mips/mips.c: Ditto.
5362 * config/mips/mips.h: Ditto. Remove unused defines.
5363 * config/mips/openbsd.h: Update comment to reflect above.
5364 * config/mips/mips.md: Remove half-pic constraints.
5365 * halfpic.h: Delete.
5368 2002-06-05 Jeffrey Law <law@redhat.com>
5370 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
5371 rejects (mem (lo_sum (reg) (unspec))), but will allow
5372 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
5374 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
5376 * cpphash.h (_cpp_create_definition): Update prototype.
5377 (_cpp_push_text_context, _cpp_create_trad_definition): New.
5378 ( cpp_lex_identifier_trad): New.
5379 (_cpp_set_trad_context): New.
5380 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
5381 * cpplib.c (SEEN_EOL): Update.
5382 (lex_macro_node): Update for -traditional.
5383 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
5384 * cppmacro.c (_cpp_create_definition): Split into
5385 create_iso_definition() and _cpp_create_trad_definition().
5386 (warn_of_redefinition): Update prototype; handle traditional
5388 (_cpp_push_text_context): New.
5389 * cpptrad.c (skip_whitespace, push_replacement_text): New.
5390 (lex_identifier): Call ht_lookup with correct start.
5391 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
5392 _cpp_set_trad_context): New.
5393 (scan_out_logical_line): Update to handle changing contexts.
5395 Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
5397 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
5399 * config/sh/t-be (MULTILIB_ENDIAN): Set.
5400 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
5401 * t-sh (MULTILIB_ENDIAN): Set.
5402 (MULTILIB_OPTIONS): Use it.
5403 * t-sh64 (MULTILIB_OPTIONS): Likewise.
5404 (MULTILIB_DIRNAMES): Likewise.
5406 2002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
5408 * toplev.h (report_error_function): Remove.
5410 * diagnostic.h (location_t): New datatype.
5411 (text_info): Likewise.
5412 (diagnostic_info): Likewise.
5413 (output_prefix): New macro.
5414 (diagnostic_last_function_changed): Likewise.
5415 (diagnostic_set_last_function): Likewise.
5416 (diagnostic_last_module_changed): Likewise.
5417 (diagnostic_set_last_module): Likewise.
5418 (report_diagnostic): Now macro.
5419 (diagnostic_set_info): Declare.
5421 * diagnostic.c (report_problematic_module): Rename to
5422 diagnostic_repor_current_module.
5423 (set_diagnostic_context): Remove.
5424 (count_error): Rename to diagnostic_error_count.
5425 (error_function_changed): Remove.
5426 (record_last_error_function): Likewise.
5427 (error_module_changed): Likewise.
5428 (record_last_error_module): Likewise.
5429 (context_as_prefix): Rename to diagnostic_build_prefix.
5430 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
5431 (diagnostic_set_info): New function.
5433 * objc/objc-act.c: #include diagnostic.h
5434 (error_with_ivar): Adjust call to count_error.
5435 (warn_with_method): Likewise.
5436 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
5438 2002-06-05 Bob Wilson <bob.wilson@acm.org>
5440 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
5441 lang_hooks.types.make_type instead of make_node; set up
5442 __va_list_tag type decl.
5443 (xtensa_builtin_saveregs): Remove broken use of
5444 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
5445 for saved registers; add varargs alias set.
5447 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
5450 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
5451 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
5452 CPP_PREDEFINES and part of CPP_SPEC.
5453 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
5454 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
5456 Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
5458 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
5460 2002-06-05 Alan Modra <amodra@bigpond.net.au>
5462 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
5464 2002-06-04 Zack Weinberg <zack@codesourcery.com>
5466 * gengtype-yacc.y: Make sure all rules end with a semicolon.
5468 2002-06-04 Bob Wilson <bob.wilson@acm.org>
5470 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
5471 typo in function prototype and include "ggc.h" header.
5473 2002-06-04 Richard Henderson <rth@redhat.com>
5475 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
5476 (print_operand) ['U']: Likewise.
5477 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
5478 (alpha_expand_unaligned_store_words): Likewise.
5479 (alpha_expand_builtin_vector_binop): Fix typo.
5480 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
5481 umulh, and cix insns.
5482 (one_arg_builtins): Add cix builtins.
5483 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
5484 (alpha_expand_builtin): Fix typo in arity.
5485 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
5486 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
5487 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
5488 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
5489 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
5490 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
5491 builtin_ctlz, builtin_ctpop): New.
5492 * doc/extend.texi (Alpha Built-in Functions): Update.
5494 2002-06-04 Geoffrey Keating <geoffk@redhat.com>
5496 * gengtype.c (write_gc_root): Don't unnecessarily prevent
5497 global variable-length arrays being roots.
5499 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
5500 * configure.in (config_gtfiles): New variable.
5501 (all_gtfiles): Initialise from config_gtfiles.
5502 * configure: Regenerate.
5504 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
5507 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
5508 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
5509 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
5510 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
5511 win32.h (CPP_SPEC): Remove cpp_cpu.
5512 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
5513 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
5515 2002-06-04 Janis Johnson <janis187@us.ibm.com>
5517 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
5519 2002-06-04 Jeff Law <law@redhat.com.
5520 David Edelsohn <edelsohn@gnu.org>
5521 Michael Matz <matz@kde.org>
5523 * sched-int.h (struct deps): New field libcall_block_tail_insn.
5524 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
5525 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
5526 is set, then mark the current insn as being part of a libcall
5528 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
5530 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
5531 insns against the issue rate.
5533 Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
5535 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
5536 * final.c (final_scan_insn): Likewise.
5537 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
5538 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
5539 * haifa-sched.c (unlink_other_notes): Likeewise.
5540 (reemit_notes): Likewise.
5541 * print-rtl.c (print_rtx): Likewise.
5542 * sched-deps (sched-analyze): Likewise.
5543 * rtl.c (note_insn_name): Likewise.
5544 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
5545 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
5548 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
5550 * varasm.c (mark_constants): Handle RTX format 'B'.
5552 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
5554 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
5555 (struct cpp_context): Add traditional fields.
5556 * cppmacro.c (paste_all_tokens, push_ptoken_context,
5557 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
5558 * cpptrad.c (skip_comment, lex_identifier,
5559 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
5561 2002-06-04 Kazu Hirata <kazu@cs.umass.edu>
5563 * gbl-ctors.h: Fix formatting.
5565 * gccspec.c: Likewise.
5567 * gcov-io.h: Likewise.
5569 * ggc-common.c: Likewise.
5571 * ggc-page.c: Likewise.
5572 * ggc-simple.c: Likewise.
5573 * global.c: Likewise.
5574 * graph.h: Likewise.
5575 * gthr-dce.h: Likewise.
5577 * gthr-posix.h: Likewise.
5578 * gthr-rtems.h: Likewise.
5579 * gthr-solaris.h: Likewise.
5580 * gthr-win32.h: Likewise.
5582 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
5584 Merge from pch-branch:
5586 * gengtype.h (UNION_OR_STRUCT_P): New macro.
5587 * gengtype.c (write_gc_structure_fields): Use it.
5588 (write_gc_root): Use it here too.
5590 * gengtype.c (write_gc_structure_fields): Assume that lengths
5591 of typenames fit into an 'int'; don't pass a size_t to "%d" in
5593 (write_gc_marker_routine_for_structure): Likewise.
5594 (write_gc_types): Likewise.
5595 (write_gc_root): Likewise.
5597 * varray.h (VARRAY_CLEAR): New.
5598 (varray_clear): Prototype.
5599 * varray.c (varray_clear): New.
5600 * cselib.c (reg_values_old): New.
5601 (used_regs_old): New.
5602 (cselib_init): Use cached varrays if available to avoid
5603 generating large amounts of garbage.
5604 (cselib_finish): Don't throw away old varrays.
5606 * final.c (insn_addresses_): Move out of ifdef.
5608 * varray.c (uses_ggc): Make more varray kinds GCable.
5609 * varray.h (union varray_data_tag): Let gengtype see
5610 fields 'generic' and 'te'.
5611 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
5612 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
5613 (reg_to_stack): Don't call VARRAY_FREE.
5614 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
5615 (insn_addresses_): Use gengtype to mark.
5616 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
5617 pointers; handle generic pointers in unused union fields.
5618 (get_output_file_with_visibility): Include cselib.h,
5619 insn-addr.h in gtype-desc.c.
5620 * function.c (prologue): Use gengtype to mark.
5621 (epilogue): Likewise.
5622 (sibcall_epilogue): Likewise.
5623 * dependence.c: Include gt-dependence.h, ggc.h.
5624 (struct def_use): Use gengtype to mark.
5625 (struct loop): Likewise.
5626 (struct induction): Likewise.
5627 (struct dependence): Likewise.
5628 (def_use_chain): Likewise.
5629 (dep_chain): Likewise.
5630 (loop_chain): Likewise.
5631 (induction_chain): Likewise.
5632 (init_dependence_analysis): Don't free anything, just clear pointers.
5633 (build_def_use): Use GGC to allocate def_use.
5634 (add_loop): Use GGC to allocate loop.
5635 (find_induction_variable): Use GGC to allocate induction.
5636 (check_node_dependence): Use GGC to allocate induction, dependence.
5637 (dump_node_dependence): Don't free varrays.
5638 (end_dependence_analysis): Likewise.
5639 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
5640 (struct elt_loc_list): Likewise.
5641 (struct elt_list): Likewise.
5642 * cselib.c: Don't include obstack.h.
5643 (hash_table): Use gengtype to mark.
5644 (reg_values): Use gengtype to mark.
5645 (used_regs): Use gengtype to mark.
5646 (cselib_obstack): Delete.
5647 (cselib_startobj): Delete.
5648 (empty_vals): Mark as deletable.
5649 (empty_elt_lists): Mark as deletable.
5650 (empty_elt_loc_lists): Mark as deletable.
5651 (new_elt_list): Use GGC to allocate struct elt_list.
5652 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
5653 (clear_table): Don't delete obstack; don't unnecessarily clear
5654 deletable variables.
5655 (new_cselib_val): Use GGC to allocate struct cselib_val.
5656 (cselib_init): Don't set up obstacks. Use GGC to allocate
5658 (cselib_finish): Just clear variables, don't free anything.
5659 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
5660 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
5661 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
5662 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
5663 (gt-reg-stack.h): New rule.
5664 (gt-dependence.h): New rule.
5665 (gtype-desc.o): Add cselib.h, insn-addr.h.
5667 * varray.c: Use only necessary headers.
5668 (element_size): New.
5670 (varray_init): Take type, not size. Use GGC if appropriate.
5671 (varray_grow): Update for change to struct varray_head_tag.
5672 Use GGC if appropriate.
5673 * varray.h (struct const_equiv_data): Use gengtype.
5674 (enum varray_data_enum): New.
5675 (union varray_data_tag): Use gengtype.
5676 (struct varray_head_tag): Use gengtype. Replace size field with
5677 enum varray_data_enum.
5678 (varray_init): Update prototype.
5679 (VARRAY_SCHED_INIT): Delete.
5680 (VARRAY_*_INIT): Update for change to varray_init.
5681 (VARRAY_SCHED): Delete.
5682 (VARRAY_PUSH_SCHED): Delete.
5683 (VARRAY_TOP_SCHED): Delete.
5684 * tree.h: Update for change to length specifier.
5685 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
5686 (clone_body): Likewise.
5687 * ssa.h (ssa_definition): Use gengtype to mark.
5688 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
5689 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
5690 * rtl.h (struct rtvec_def): Update for change to length specifier.
5691 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
5692 (struct initial_value_struct): Update for change to length specifier.
5693 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
5694 (ggc_add_tree_varray_root): Delete prototype.
5695 (ggc_mark_rtx_varray): Delete prototype.
5696 (ggc_mark_tree_varray): Delete prototype.
5697 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
5698 (ggc_add_tree_varray_root): Delete.
5699 (ggc_mark_rtx_varray): Delete.
5700 (ggc_mark_tree_varray): Delete.
5701 (ggc_mark_rtx_varray_ptr): Delete.
5702 (ggc_mark_tree_varray_ptr): Delete.
5703 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
5704 (create_varray): Delete prototype.
5705 * gengtype.c (varrays): Delete.
5706 (create_varray): Delete.
5707 (adjust_field_type): Detect array of string pointers.
5708 (process_gc_options): Remove code to handle varray_type option.
5709 (set_gc_used_type): Remove TYPE_VARRAY case.
5710 (output_escaped_param): New.
5711 (write_gc_structure_fields): Use output_escaped_param on all
5712 parameters. Handle 'skip' with 'use_param' option. Handle
5713 arrays of strings. Remove TYPE_VARRAY handling.
5714 (write_gc_roots): Use boolean to detect 'length' option.
5715 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
5716 (struct_fields): Call adjust_field_type on array fields.
5717 (type): Remove VARRAY_TYPE case.
5718 (type_option): Likewise.
5719 * gengtype-lex.l: Don't consider varray_type a keyword.
5720 * function.h: Update for change to length specifier.
5721 (free_eh_status): Delete prototype.
5722 * function.c (free_after_compilation): Don't call free_eh_status.
5723 (reorder_blocks): Don't use VARRAY_FREE.
5724 * except.c (struct eh_status): Update for change to length specifier.
5725 remove varray_type specifier.
5726 (free_eh_status): Delete.
5727 * dwarf2out.c: Include gt-dwarf2out.h.
5728 (used_rtx_varray): Use gengtype to mark, move
5730 (incomplete_types): Likewise.
5731 (decl_scope_table): Likewise.
5732 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
5733 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
5734 * c-tree.h (struct lang_type): Update for change to length specifier.
5735 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
5736 * c-objc-common.c: Include gt-c-objc-common.h.
5737 (deferred_fns): Mark for gengtype.
5738 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
5739 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
5740 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
5741 (gtype-desc.o): Update dependencies.
5742 (dwarf2out.o): Add gt-dwarf2out.h.
5743 (varray.o): Update dependencies.
5744 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
5745 (gt-c-objc-common.h): New rule.
5746 (gt-dwarf2out.h): New rule.
5747 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
5749 * doc/gty.texi (GTY Options): Correct spelling.
5750 (GGC Roots): Likewise.
5751 * Makefile.in (TEXI_CPP_FILES): New.
5752 (TEXI_GCC_FILES): New.
5753 (TEXI_GCCINT_FILES): New.
5754 (TEXI_CPPINT_FILES): New.
5755 ($(docdir)/cpp.info): Use new macros.
5756 ($(docdir)/gcc.info): Likewise.
5757 ($(docdir)/gccint.info): Likewise.
5758 ($(docdir)/cppinternals.info): Likewise.
5759 (cpp.dvi): Likewise.
5760 (gcc.dvi): Likewise.
5761 (gccint.dvi): Likewise.
5762 (cppinternals.dvi): Likewise.
5764 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
5765 * doc/gccint.texi (Top): Include gty.texi.
5766 * doc/gty.texi: New file.
5768 * bitmap.c: Include ggc.h, gt-bitmap.h.
5769 (bitmap_ggc_free): New.
5770 (bitmap_elem_to_freelist): New.
5771 (bitmap_element_free): Use bitmap_elem_to_freelist.
5772 (bitmap_element_allocate): Allow use of GGC.
5773 (bitmap_clear): Use bitmap_elem_to_freelist.
5774 (bitmap_copy): Update for change to bitmap_element_allocate.
5775 (bitmap_set_bit): Likewise.
5776 (bitmap_operation): Update for changes elsewhere.
5777 (bitmap_initialize): Allow to create bitmaps that will use GGC.
5778 * bitmap.h (struct bitmap_element_def): Use gengtype.
5779 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
5780 (bitmap_initialize): Add extra parameter.
5781 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
5782 (BITMAP_ALLOCA): Delete.
5783 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
5784 (BITMAP_GGC_ALLOC): New.
5785 * Makefile.in (gtype-desc.o): Add bitmap.h.
5786 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
5787 (GTFILES): Add bitmap.c.
5788 (gt-bitmap.h): New rule.
5789 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
5790 * basic-block.h: Update for changes to bitmap_initialize.
5791 * except.c (exception_handler_label_map): Move into...
5792 (struct eh_status): Here.
5793 (struct eh_region): Make 'aka' GCable.
5794 (free_eh_status): Don't need to specially handle
5795 exception_handler_label_map.
5796 (add_ehl_entry): Update for changes to exception_handler_label_map.
5797 (find_exception_handler_labels): Likewise.
5798 (remove_exception_handler_label): Likewise.
5799 (maybe_remove_eh_handler): Likewise.
5800 (for_each_eh_label): Likewise.
5801 (remove_eh_handler): Allocate 'aka' using GGC.
5802 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
5803 to list of includes.
5805 * gengtype.c (write_gc_marker_routine_for_structure): Name
5806 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
5807 (write_gc_types): Arrange for the tests with NULL to be inlined.
5808 (write_gc_roots): Update uses of procedure pointers.
5809 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
5811 * Makefile.in (explow.o): Add dependency on gt-explow.h.
5812 (sdbout.o): Add dependency on gt-sdbout.h.
5814 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
5815 (mem_attrs_htab): Likewise.
5816 (init_emit_once): Don't call ggc_add_deletable_htab.
5817 * fold-const.c (size_htab): Use gengtype to clear unused entries.
5818 (size_int_type_wide): Don't call ggc_add_deletable_htab.
5819 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
5820 parameters, use them, change callers.
5821 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
5822 (write_gc_roots): Handle 'if_marked' option.
5823 (main): Don't need to call set_gc_used_type any more.
5824 * ggc.h (ggc_htab_marked_p): Delete.
5825 (ggc_htab_mark): Delete.
5826 (struct ggc_cache_tab): New.
5827 (gt_ggc_cache_rtab): New declaration.
5828 * ggc-common.c (struct d_htab_root): Delete.
5829 (d_htab_roots): Delete.
5830 (ggc_add_deletable_htab): Delete.
5831 (ggc_htab_delete): Handle new htab-deleting mechanism.
5832 (ggc_mark_roots): Use new htab-deleting mechanism.
5833 * tree.c (type_hash_table): Use gengtype to clear unused entries.
5835 (init_obstacks): Don't call ggc_add_deletable_htab.
5837 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
5838 (struct hashed_entry): Likewise.
5839 (nst_method_hash_list): Likewise.
5840 (cls_method_hash_list): Likewise.
5841 (HASH_ALLOC_LIST_SIZE): Delete.
5842 (ATTR_ALLOC_LIST_SIZE): Delete.
5843 * objc/objc-act.c (hash_init): Use ggc to allocate
5844 nst_method_hash_list, cls_method_hash_list.
5845 (hash_enter): Use ggc to allocate; allocate one entry at a time.
5846 (hash_add_attr): Likewise.
5847 (ggc_mark_hash_table): Delete.
5848 (objc_act_parse_init): Delete.
5849 (objc_init): Delete reference to objc_act_parse_init.
5850 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
5851 obstack.h. Replace references to 'struct hash_table' with htab_t.
5852 (struct symbol_hash_entry): Replace hash header with key field.
5853 (struct file_hash_entry): Replace hash header with key field.
5854 (struct demangled_hash_entry): Replace hash header with key field.
5855 (hash_string_eq): New.
5856 (hash_string_hash): New.
5857 (symbol_hash_newfunc): Delete.
5858 (symbol_hash_lookup): Modify to use htab_t.
5859 (file_hash_newfunc): Delete.
5860 (file_hash_lookup): Modify to use htab_t.
5861 (demangled_hash_newfunc): Delete.
5862 (demangled_hash_lookup): Modify to use htab_t.
5863 (tlink_init): Modify to use htab_t.
5866 * ggc.h: Delete forward structure declarations.
5867 Delete prototypes for deleted functions.
5868 * ggc-common.c: Don't include hash.h.
5869 (ggc_add_tree_hash_table_root): Delete.
5870 (ggc_mark_tree_hash_table_entry): Delete.
5871 (ggc_mark_tree_hash_table): Delete.
5872 (ggc_mark_tree_hash_table_ptr): Delete.
5873 * gengtype.c (write_gc_structure_fields): Allow param_is option.
5874 (write_gc_marker_routine_for_structure): Use visibility of
5875 the parameter if there is one.
5876 * function.c: Replace hash.h with hashtab.h. Replace references
5877 to 'struct hash_table *' with htab_t.
5878 (struct insns_for_mem_entry): Include a plain key.
5879 (fixup_var_refs_insns_with_hash): Update to use htab_t.
5880 (insns_for_mem_newfunc): Delete.
5881 (insns_for_mem_hash): Update to use htab_t.
5882 (insns_for_mem_comp): Likewise.
5883 (insns_for_mem_walk): Likewise.
5884 * c-lang.c: Include ggc.h.
5885 * Makefile.in (OBJS): Remove hash.o.
5886 (c-lang.o): Add GGC_H.
5887 (COLLECT2_OBJS): Remove hash.o.
5888 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
5889 (ggc-common.o): Remove hash.h.
5890 (function.o): Remove hash.h, add HASHTAB_H.
5891 (genautomata.o): Remove hash.h, add HASHTAB_H.
5893 * varasm.c (mark_const_str_htab_1): Delete.
5894 (mark_const_str_htab): Delete.
5895 (const_str_htab_del): Delete.
5896 (const_str_htab): Use gengtype to mark.
5897 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
5899 * tree.c (mark_tree_hashtable_entry): Delete.
5900 (mark_tree_hashtable): Delete.
5901 * tree.h (mark_tree_hashtable): Delete prototype.
5902 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
5903 (ggc_mark): Likewise.
5905 (htab_create_ggc): New.
5906 * ggc-common.c (ggc_calloc): New.
5907 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
5908 (struct type): Add param_struct structure.
5909 * gengtype.c (param_structs): New.
5910 (adjust_field_type): Handle param_is option.
5911 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
5912 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
5913 (write_gc_structure_fields): Add new PARAM parameter. Update
5914 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
5915 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
5916 Use it to generate function name. Update callers.
5917 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
5919 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
5921 (main): Define PTR as pointer-to-scalar. Don't specially
5922 mark deferred_string or ehl_map_entry.
5923 * gengtype-yacc.y (PARAM_IS): Add new token.
5924 (externstatic): Use adjust_field_type.
5925 (type_option): Add PARAM_IS.
5926 * gengtype-lex.l: Add rule for typedef of function pointers.
5927 Add rule for PARAM_IS.
5928 (IWORD): Add size_t.
5929 * except.c (exception_handler_label_map): Use gengtype to mark.
5930 (type_to_runtime_map): Likewise.
5931 (mark_ehl_map_entry): Delete.
5932 (mark_ehl_map): Delete.
5933 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
5934 (t2r_mark_1): Delete.
5936 * Makefile.in (gtype-desc.o): Correct dependencies.
5937 (GTFILES): Add hashtab.h.
5938 (genautomata.o): Actually uses hashtab.h.
5940 * Makefile.in (stringpool.o): Add $(GGC_H).
5941 (dwarf2asm.o): Likewise.
5942 (GTFILES): Add hashtable.h.
5943 * c-common.h (struct c_common_identifier): Use gengtype.
5944 * c-decl.h (c_mark_tree): Delete.
5945 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
5946 * c-tree.h (struct lang_identifier): Use gengtype.
5947 (union lang_tree_node): New.
5948 (c_mark_tree): Delete prototype.
5949 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
5951 * gengtype-lex.l (IWORD): Allow 'bool'.
5953 * gengtype-yacc.y (ALIAS): New token.
5954 (type_option): New rule.
5955 (option): Use type_option.
5956 * gengtype.c (process_gc_options): New.
5957 (set_gc_used_type): Use it.
5958 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
5959 Add new variable 't' to hold the type of the field being processed.
5960 Add more error checking. Use UNION_P when looking at 'desc' option.
5961 Handle language-specific structures containing other
5962 language-specific structures.
5963 (write_gc_types): Handle 'ptr_alias' option.
5964 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
5965 * ggc-common.c (ggc_pending_trees): Delete.
5966 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
5967 (ggc_mark_trees): Delete.
5968 (gt_ggc_m_tree_node): Delete.
5969 * ggc.h (ggc_pending_trees): Delete.
5970 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
5971 * hashtable.h (ht_identifier): Use gengtype.
5972 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
5973 * langhooks.h (struct lang_hooks): Delete mark_tree.
5974 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
5976 * system.h: Poison LANG_HOOKS_MARK_TREE.
5977 * tree.c (tree_node_structure): New.
5978 * tree.h (struct tree_common): Use gengtype.
5979 (struct tree_int_cst): Likewise.
5980 (struct tree_real_cst): Likewise.
5981 (struct tree_string): Likewise.
5982 (struct tree_complex): Likewise.
5983 (struct tree_vector): Likewise.
5984 (struct tree_identifier): Likewise.
5985 (struct tree_list): Likewise.
5986 (struct tree_vec): Likewise.
5987 (struct tree_exp): Likewise.
5988 (struct tree_block): Likewise.
5989 (struct tree_type): Likewise.
5990 (struct tree_decl): Likewise.
5991 (enum tree_structure_enum): New.
5992 (union tree_node): Use gengtype, with an alias.
5993 (tree_node_structure): Prototype.
5994 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
5996 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
5997 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
5998 to LANG_HOOKS_FUNCTION_FINAL.
5999 * Makefile.in (GTFILES): Add bitmap.h.
6000 * except.c (struct eh_region): Mark field 'aka' to be skipped.
6002 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
6003 (alpha_init_machine_status): Give proper type.
6004 * Makefile.in (c-lang.o): Depend on gtype-c.h.
6005 (optabs.o): Depend on gt-optabs.h.
6006 (GTFILES): Add optabs.o.
6007 (gt-optabs.h): Add rule.
6008 * optabs.c: Include gt-optabs.h.
6010 * gengtype.c (set_gc_used_type): Correct some errors in last change.
6011 (write_gc_structure_fields): If a field which should be NULL is
6013 * c-pragma.c: Move struct align_stack and variable alignment_stack
6016 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
6017 * config/xtensa/xtensa.c: Include gt-cris.h.
6018 (struct machine_function): Use gengtype to mark.
6019 * config/mmix/mmix.h (struct machine_function): Use gengtype
6021 * config/cris/t-cris: Add dependencies for gt-cris.h.
6022 * config/cris/cris.c: Include gt-cris.h.
6023 (struct machine_function): Use gengtype to mark.
6024 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
6026 * doc/tm.texi (Per-Function Data): Delete references to
6027 mark_machine_status.
6028 * config/ia64/ia64.c (ia64_override_options): Don't set
6029 mark_machine_status.
6030 * config/i386/i386.c (override_options): Likewise.
6031 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
6032 * config/arm/arm.c (arm_init_expanders): Likewise.
6033 * config/alpha/alpha.c (override_options): Likewise.
6034 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
6035 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
6036 (write_gc_structure_fields): Don't handle 'really' option.
6037 Handle 'maybe_null' option.
6038 (write_gc_types): Handle 'maybe_null' option.
6039 * function.h (struct function): Don't use "really".
6040 (mark_machine_status): Delete declaration.
6041 (mark_lang_status): Delete declaration.
6042 (gt_ggc_mr_machine_function): Delete prototype.
6043 (gt_ggc_mr_language_function): Delete prototype.
6044 * function.c (mark_machine_status): Delete.
6045 (mark_lang_status): Delete.
6046 (gt_ggc_mr_machine_function): Delete.
6047 (gt_ggc_mr_language_function): Delete.
6048 * c-tree.h (mark_c_function_context): Delete prototype.
6049 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
6050 * c-decl.c (struct language_function): Rename from struct
6051 c_language_function. Update uses. Use gengtype to mark.
6052 (mark_c_function_context): Delete.
6053 * c-common.h (struct c_language_function): Rename from struct
6055 (mark_stmt_tree): Delete prototype.
6056 (c_mark_lang_decl): Delete prototype.
6057 (mark_c_language_function): Delete prototype.
6058 * c-common.c (mark_stmt_tree): Delete.
6059 (c_mark_lang_decl): Delete.
6060 (mark_c_language_function): Delete.
6062 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
6063 (lang_bitmap): New typedef. Use where appropriate.
6064 (struct type): Add gc_used field, lang_struct field.
6065 (UNION_P): New macro.
6066 (new_structure): New prototype.
6067 (find_structure): Remove 'pos' parameter. Change all callers.
6068 * gengtype-lex.l: Update for changes to find_structure.
6069 * gengtype-yacc.y (typedef_struct): Use new_structure.
6070 (yacc_ids): Suppress warning.
6071 (type): Use new_structure.
6072 * gengtype.c (string_type): Update for changes to struct type.
6073 (find_structure): Just find a structure, don't worry about
6075 (new_structure): New.
6076 (note_yacc_type): Use new_structure.
6077 (set_gc_used_type): New.
6079 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
6080 (write_gc_types): Handle TYPE_LANG_STRUCT.
6081 (write_gc_marker_routine_for_structure): New.
6082 (main): Call set_gc_used. Add some calls to set_gc_used_type
6083 for places where GCC doesn't use gengtype properly yet.
6084 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
6085 (gt_ggc_m_tree_node): Likewise.
6087 * varasm.c (copy_constant): Call expand_constant if we hit
6088 something we can't recognise.
6090 * ggc-common.c (ggc_mark_rtvec_children): Delete.
6091 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
6092 (lang_mark_false_label_stack): Delete.
6093 * rtl.h (struct rtvec_def): Use gengtype to mark.
6094 * ggc.h (ggc_mark_rtvec): Delete.
6095 (gt_ggc_m_rtvec_def): Delete.
6096 (ggc_mark_nonnull_tree): Delete.
6097 (ggc_mark_rtvec_children): Delete prototype.
6098 (lang_mark_false_label_stack): Delete declaration.
6100 * gengtype.h (note_yacc_type): Add prototype.
6101 * gengtype.c (note_yacc_type): New function.
6102 * gengtype-lex.l: Add lexer support for yacc files.
6103 * gengtype-yacc.y (start): Extract union from yacc files.
6104 (yacc_union): New rule.
6105 (yacc_typematch): New rule.
6106 (yacc_ids): New rule.
6107 (enum_items): Tweak for efficiency.
6108 (optionseq): Likewise.
6110 * c-common.h (struct language_function): Use gengtype.
6111 (struct c_lang_decl): Likewise.
6112 * c-tree.h (struct lang_decl): Likewise.
6113 (struct lang_type): Likewise.
6114 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
6115 tree language substructures.
6117 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
6119 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
6121 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
6123 * stmt.c (struct nesting): Add discriminator. Use gengtype to
6124 mark. Remove 'data.block.cleanup_ptr' field.
6125 (struct stmt_status): Use usual technique to mark struct nesting.
6126 (gt_ggc_mr_nesting_cond): Delete.
6127 (gt_ggc_mr_nesting_loop): Delete.
6128 (gt_ggc_mr_nesting_block): Delete.
6129 (gt_ggc_mr_nesting_case_stmt): Delete.
6130 (expand_start_cond): Set discriminator.
6131 (expand_start_loop): Likewise.
6132 (expand_start_null_loop): Likewise.
6133 (expand_start_bindings_and_block): Set discriminator. Don't set
6135 (expand_decl_cleanup): Replace 'cleanup_ptr' with
6136 &thisblock->data.block.cleanups.
6137 (expand_start_case): Set discriminator.
6138 (expand_start_case_dummy): Set discriminator.
6140 * ggc-callbacks.c: Remove.
6142 * gengtype.h (struct type): Add 'u.s.bitmap' field.
6143 (find_structure): Add 'pos' parameter.
6144 * gengtype-lex.l: Update callers to find_structure.
6145 * gengtype-yacc.y: Likewise.
6146 * gengtype.c (find_structure): Allow for structures to be defined
6147 in multiple language backends.
6148 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
6149 (counter): Rename to gc_counter.
6150 (write_gc_structure_fields): Fail when writing out fields for
6151 an incomplete structure. Ignore arrays of scalars. Handle
6153 (write_gc_types): Reset counter for each procedure written.
6155 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
6156 (free_case_nodes): Delete.
6157 (expand_end_case_type): Delete call to free_case_nodes.
6159 * Makefile.in (cselib.o): Include gt-<filename>.h.
6161 (profile.o): Likewise.
6162 (alias.o): Likewise.
6163 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
6164 alphabetize backend files.
6165 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
6166 * alias.c: Use gengtype for roots.
6167 * c-common.h (struct stmt_tree_s): Use gengtype.
6168 * c-decl.c: Use gengtype for roots.
6169 * cselib.c: Use gengtype for roots.
6170 * expr.c: Use gengtype for roots.
6171 * fold-const.c: Use gengtype for roots.
6172 * gcse.c: Use gengtype for roots.
6173 * gengtype-lex.l: Handle typedefs of function types.
6174 Allow for empty array bounds.
6175 Allow processing to stop on initialisers.
6176 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
6177 (semiequal): New rule.
6178 * gengtype.c (create_file): Tidy output files.
6179 (get_output_file_with_visibility): Fix paren warning. Fix bug
6180 involving multiple input files mapping to one output file.
6181 (write_gc_structure_fields): Skip arrays of scalars.
6182 (write_gc_types): Tidy output files.
6183 (write_gc_root): New function.
6184 (write_gc_roots): Fix bugs, add support for roots that are
6186 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
6187 (ggc_mark_tree_ptr): Delete.
6188 (ggc_add_rtx_root): Delete.
6189 (ggc_add_tree_root): Delete.
6190 (ggc_del_root): Delete.
6191 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
6192 allocate struct initial_value_struct.
6193 * profile.c: Use gengtype for roots.
6194 * sdbout.c: Use gengtype for roots.
6195 * varasm.c (mark_weak_decls): Delete unused prototype.
6196 (mark_const_hash_entry): Delete unused function.
6197 * config/darwin-protos.h: Use gengtype for roots.
6198 (machopic_add_gc_roots): Delete.
6199 * config/arm/arm.c: Use gengtype for roots.
6200 * config/arm/arm.h: Use gengtype for roots.
6201 * config/c4x/c4x-protos.h: Use gengtype for roots.
6202 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
6203 * config/d30v/d30v-protos.h: Use gengtype for roots.
6204 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
6205 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
6206 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
6207 * config/ia64/ia64-protos.h: Use gengtype for roots.
6208 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
6209 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
6210 * config/m68hc11/m68hc11.c (z_reg): Make global.
6211 (z_reg_qi): Make global.
6212 (m68hc11_add_gc_roots): Delete.
6213 * config/mcore/mcore-protos.h: Use gengtype for roots.
6214 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
6215 * config/mips/mips.c (mips_add_gc_roots): Delete.
6216 * config/mips/mips.h: Use gengtype for roots.
6217 * config/mmix/mmix.c (override_options): Use gengtype for roots.
6218 * config/mmix/mmix.h: Use gengtype for roots.
6219 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
6220 * config/mn10200/mn10200.h: Use gengtype for roots.
6221 * config/pa/pa.c: Use gengtype for roots, marking.
6222 (struct deferred_plabel): Use GGC, gengtype.
6223 (pa_add_gc_roots): Delete.
6224 (mark_deferred_plabels): Delete.
6225 * config/pj/pj-protos.h: Use gengtype for roots.
6226 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
6227 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
6228 machopic_add_gc_roots.
6229 * config/rs6000/rs6000.h: Use gengtype for roots.
6230 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
6231 (gt-darwin.h): Add rule.
6232 * config/sh/sh.c: Use gengtype for roots.
6233 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
6234 (gt-sh.h): Add rule.
6235 * config/sparc/sparc.c: Use gengtype for roots.
6236 (sparc_add_gc_roots): Delete.
6237 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
6238 (mark_ultrasparc_pipeline_state): Delete.
6239 * config/sparc/sparc.h: Use gengtype for roots.
6241 * Makefile.in (c-parse.o): Update dependencies.
6242 (c-common.o): Likewise.
6243 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
6244 Add dependencies for the files they generate.
6245 * c-common.c: Replace ggc_add_* uses with GTY annotations.
6246 * c-common.h: Likewise.
6247 * c-decl.c: Likewise.
6248 (gt_ggc_mp_binding_level): Delete.
6249 * c-lang.c: Include gtype-c.h.
6250 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
6252 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
6253 (gt_ggc_mp_align_stack): Delete.
6254 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
6255 * function.c: Replace ggc_add_* uses with GTY annotations.
6256 (gt_ggc_mp_function): Delete.
6257 * function.h: Replace ggc_add_* uses with GTY annotations.
6258 * gengtype.c (lang_names): New.
6259 (NUM_BASE_FILES): New.
6260 (open_base_files): Create language base files.
6262 (get_file_basename): New.
6263 (get_base_file_bitmap): New.
6264 (get_output_file_with_visibility): Rename from get_output_file.
6265 Add more mappings for various C/Objc filenames.
6266 (finish_root_table): New.
6267 (write_gc_roots): Handle dependencies and scoping properly.
6268 * gengtype.h: Add prototypes for new functions.
6269 * ggc-common.c (struct deletable_root): Delete.
6270 (deletables): Delete.
6271 (ggc_add_deletable_root): Delete.
6272 (ggc_mark_roots): No need to deal with deleted functionality.
6273 * ggc.h (ggc_add_deletable_root): Delete prototype.
6274 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
6275 (gtype-objc.h): Add rule to create.
6276 * objc/config-lang.in (gtfiles): New.
6277 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
6278 ggc_add_* with GTY markers. Include gtype-objc.h.
6279 (ggc_mark_imp_list): Delete.
6280 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
6281 * objc/objc-lang.c: Random Whitespace Change.
6283 * except.h (exception_handler_labels): Delete.
6284 (get_exception_handler_labels): New.
6285 * except.c (exception_handler_labels): Delete.
6286 (struct eh_status): Add exception_handler_labels field.
6287 (doing_eh): Don't add exception_handler_labels as root.
6288 (free_eh_status): Don't need to free exception_handler_labels.
6289 (get_exception_handler_labels): New.
6290 (find_exception_handler_labels): Update for move of
6291 exception_handler_labels.
6292 (remove_exception_handler_label): Likewise.
6293 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
6294 * jump.c (rebuild_jump_labels): Likewise.
6295 * loop.c (find_and_verify_loops): Likewise.
6296 * sched-rgn.c (is_cfg_nonregular): Likewise.
6298 * gengtype.c (write_gc_structure_fields): Handle variable-length
6301 * varasm.c (struct weak_syms): Use GGC, gengtype.
6302 (mark_weak_decls): Delete.
6303 (weak_decls): Likewise.
6304 (add_weak): Likewise.
6305 (remove_from_pending_weak_list): Likewise.
6306 (init_varasm_once): Likewise.
6308 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
6309 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
6310 stor-layout.c, regclass.c, and lists.c.
6311 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
6312 gt-regclass.h and gt-lists.h on s-gtype.
6313 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
6314 * except.c: Use gengtype for roots.
6315 * explow.c: Use gengtype for roots. Include gt-explow.h.
6316 * expr.h (init_stor_layout_once): Delete prototype.
6317 * function.c: Use gengtype for roots.
6318 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
6319 * gengtype-yacc.y (start): Can also be an externstatic.
6320 (externstatic): New production.
6321 (struct_fields): Correct array bounds inversion for 2-d arrays.
6322 * gengtype.c (variables): New variable.
6323 (note_variable): New function.
6324 (get_output_file): Include libfuncs.h into gtype-desc.c.
6325 (get_output_file_name): New function.
6326 (write_gc_structure_fields): Suppress warnings.
6327 (write_gc_types): Make static.
6328 (put_mangled_filename): New function.
6329 (write_gc_roots): New function.
6330 (main): Call write_gc_roots.
6331 * gengtype.h (note_variable): Prototype.
6332 (get_output_file_name): Prototype.
6333 (write_gc_types): Delete prototype.
6334 * ggc.h: Clean up unnecessary structure predefinitions.
6335 (struct ggc_root_tab): Define.
6336 (gt_ggc_m_rtx_def): Make function, not macro.
6337 (gt_ggc_m_tree_node): Likewise.
6338 * libfuncs.h: Use gengtype for roots.
6339 * lists.c: Use gengtype for roots. Include gt-lists.h.
6340 (init_EXPR_INSN_LIST_cache): Delete.
6341 * optabs.c: Use gengtype for roots.
6342 (gt_ggc_mp_optab): Delete.
6343 * optabs.h: Use gengtype for roots.
6344 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
6345 * rtl.h: Use gengtype for roots.
6346 (init_EXPR_INSN_LIST_cache): Delete prototype.
6347 * stor-layout.c: Use gengtype for roots.
6348 Include gt-stor-layout.h.
6349 (init_stor_layout_once): Delete.
6350 * toplev.c: Use gengtype for roots. Delete calls to deleted
6352 * tree.c: Use gengtype for roots.
6353 * tree.h: Use gengtype for roots.
6354 * varasm.c: Use gengtype for roots.
6356 * Makefile.in (GTFILES): Add @all_gtfiles@.
6357 * configure: Regenerate.
6358 * configure.in: Construct all_gtfiles from the gtfiles definitions
6360 * gengtype-yacc.y (type): Warn about duplicate structure names.
6361 * gengtype.c (get_output_file): Handle .c files in language
6364 * Makefile.in (GTFILES): Run gengtype on all the config files
6365 and on the target .c file.
6366 * except.c (mark_eh_region): Delete.
6367 (init_eh_for_function): Use GGC on struct eh_status.
6368 (mark_eh_status): Delete.
6369 (free_eh_status): Use GGC.
6370 (expand_eh_region_start): Use GGC to
6371 (collect_eh_region_array): Allocate last_region_number using GGC.
6372 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
6373 (remove_eh_handler): Let GGC free struct eh_region.
6374 (add_call_site): Use GGC to reallocate call_site_record array.
6375 * function.c (init_machine_status): Update calling sequence.
6376 (mark_machine_status): Likewise.
6377 (mark_lang_status): Likewise.
6378 (prepare_function_start): Update init_machine_status call.
6379 (mark_function_status): Delete.
6380 (maybe_mark_struct_function): Delete.
6381 (ggc_mark_struct_function): Delete.
6382 (gt_ggc_mp_function): New.
6383 (gt_ggc_mr_machine_function): New.
6384 (gt_ggc_mr_language_function): New.
6385 (init_function_once): Use canonical names.
6386 * function.h (struct function): Use gengtype.
6387 (init_machine_status): Return the structure.
6388 (mark_machine_status): Take a 'void *'.
6389 (mark_lang_status): Likewise.
6390 * ggc-common.c (ggc_mark_trees): Use canonical name for
6391 ggc_mark_struct_function.
6392 * tree.h (ggc_mark_struct_function): Delete prototype.
6393 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
6394 (alpha_init_machine_status): Likewise.
6395 (override_options): Use canonical name for alpha_mark_machine_status.
6396 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
6397 * config/arm/arm.h (struct machine_function): Use gengtype.
6398 * config/arm/arm.c (arm_mark_machine_status): Delete.
6399 (arm_init_machine_status): Update calling sequence.
6400 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
6401 * config/cris/cris.c (cris_init_machine_status): Update
6403 * config/d30v/d30v.h (struct machine_function): Use gengtype.
6404 * config/d30v/d30v.c (d30v_init_machine_status): Update
6406 (d30v_mark_machine_status): Delete.
6407 * config/i386/i386.c: Include gt-i386.h.
6408 (struct machine_function): Use gengtype.
6409 (ix86_init_machine_status): Update calling sequence.
6410 (ix86_mark_machine_status): Delete.
6411 (override_options): Use canonical namke for ix86_mark_machine_status.
6412 * config/ia64/ia64.h (struct machine_function): Use gengtype.
6413 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
6415 (ia64_mark_machine_status): Delete.
6416 (ia64_override_options): Use canonical name for
6417 ia64_mark_machine_status.
6418 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
6420 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
6421 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
6422 * gengtype.c (get_output_file): Fix warning.
6423 (main): Add prototype to suppress warning.
6424 * tree.c: Remove tree_hash_mark prototype.
6426 * tree.h (init_stmt): Delete prototype.
6427 * toplev.c (lang_independent_init): Don't call init_stmt.
6428 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
6429 (stmt_obstack): Delete.
6430 (POPSTACK): No need to free 'struct nesting'.
6431 (gt_ggc_mr_nesting_cond): Use canonical names.
6432 (gt_ggc_mr_nesting_loop): Use canonical names.
6433 (gt_ggc_mr_nesting_block): Use canonical names.
6434 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
6435 (mark_stmt_status): Delete.
6436 (init_stmt): Delete.
6437 (clear_last_expr): Clear both last_expr_type and last_expr_value.
6438 Use it everywhere that last_expr_type was cleared.
6439 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
6440 (zap_lists): Delete.
6441 * ggc.h (ggc_add_deletable_root): Prototype.
6442 (mark_stmt_status): Remove prototype.
6443 * ggc-common.c (ggc_add_deletable_root): New.
6444 (ggc_mark_roots): Handle deletable roots.
6445 * function.c (ggc_mark_struct_function): Use canonical name
6446 for mark_stmt_status.
6447 * emit-rtl.c (free_sequence_stack): New.
6448 (start_sequence): Use a freelist for sequences.
6449 (end_sequence): Likewise.
6450 (init_emit_once): Add free_sequence_stack as a deleteable root.
6451 * c-pragma.c Include gt-c-pragma.h.
6452 (struct align_stack): Use gengtype.
6453 (push_alignment): Use GGC for struct align_stack.
6454 (mark_align_stack): Delete.
6455 (gt_ggc_mp_align_stack): New.
6456 (init_pragma): Use canonical name for mark_align_stack.
6457 * c-decl.c: Include gt-c-decl.h.
6458 (struct binding_level): Use gengtype.
6459 (make_binding_level): Use GGC; handle the freelist here.
6460 (pop_binding_level): New.
6461 (pushlevel): Move code into make_binding_level.
6462 (push_label_level): Likewise.
6463 (poplevel): Move code into pop_binding_level.
6464 (pop_label_level): Likewise.
6465 (mark_binding_level): Delete.
6466 (gt_ggc_mp_binding_level): New.
6467 (c_init_decl_processing): Use canonical name for mark_binding_level.
6468 Add free_binding_level as deletable root.
6469 (mark_c_function_context): Use canonical name for mark_binding_level.
6470 * Makefile.in (c-decl.o): Add gt-c-decl.h.
6471 (c-pragma.o): Add gt-c-pragma.h.
6472 (GTFILES): Add c-decl.c and c-pragma.c.
6473 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
6475 * tree.c (struct type_hash): Use gengtype.
6476 (init_obstacks): Use canonical name for type_hash_mark.
6477 (type_hash_mark): Delete.
6479 * rtl.h (struct mem_attrs): Use gengtype.
6480 * optabs.h (struct optab): Use gengtype.
6481 * optabs.c (expand_binop): Squish signed/unsigned warning.
6482 (mark_optab): Make local, use canonical name, use autogenerated
6484 (init_optabs): Use canonical name for mark_optab.
6485 (new_optab): Use GGC to allocate optabs.
6486 * ggc.h: Delete mark_optab prototype.
6487 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
6488 mem_attrs marker procedure.
6489 * gengtype.c (get_output_file): Include headers in gtype-desc.c
6490 explicitly rather than deducing them from file names.
6491 (write_gc_structure_fields): Handle arrays of structures.
6492 (main): Return non-zero exit code if errors occur during output.
6493 * emit-rtl.c (mem_attrs_mark): Delete.
6494 (init_emit_once): Use canonical name for mem_attrs marker procedure.
6495 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
6496 (tree.o): Depend on gt-tree.h.
6497 (GTFILES): Add rtl.h, optabs.h, tree.c.
6498 (gt-tree.h): Add it to s-gtype rule.
6500 * .cvsignore: Ignore gengtype flex/bison generated files.
6501 * Makefile.in (GGC_H): Add gtype-desc.h.
6502 (OBJS): Add gtype-desc.o.
6503 (GEN): Add gengtype.
6504 (STAGESTUFF): Add gengtype.
6505 (varasm.o): Add gt-varasm.h.
6506 (stmt.o): Add gt-stmt.h.
6507 (except.o): Add gt-except.h.
6508 (integrate.o): Add gt-integrate.h.
6510 Add new rules for new files.
6511 * configure: Regenerate.
6512 * configure.in: Correct defaults.h paths.
6513 * emit-rtl.c (mark_sequence_stack): Delete.
6514 (mark_emit_status): Delete.
6515 (start_sequence): Allocate sequence structures using GGC.
6516 (end_sequence): Allocate sequence structures using GGC.
6517 * except.c: Use gengtype for various structures. Include
6519 * expr.c (mark_expr_status): Delete.
6520 * function.c: Use gengtype for various structures. Include
6522 (mark_function_status): Use standard gt_ggc names for marker functions.
6523 (ggc_mark_struct_function): Likewise.
6524 * function.h: Use gengtype for various structures.
6525 * gengtype-lex.l: New file.
6526 * gengtype-yacc.y: New file.
6527 * gengtype.c: New file.
6528 * gengtype.h: New file.
6529 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
6530 the standard names. Remove some now-unnecessary prototypes.
6531 * integrate.c: Use gengtype for various structures. Include
6533 (mark_hard_reg_initial_vals): Delete.
6534 * integrate.h (mark_hard_reg_initial_vals): Delete.
6535 * stmt.c: Use gengtype for various structures. Include
6537 (mark_case_node): Delete.
6538 (mark_goto_fixup): Delete.
6539 (mark_stmt_status): Use standard gt_ggc names for marker functions.
6540 * system.h: Define GTY to empty. In flex/bison files,
6541 don't poison malloc or realloc, instead just define them to
6542 xmalloc and xrealloc.
6543 * varasm.c: Use gengtype for various structures. Include
6544 gt-varasm.h. Use standard gt_ggc names for marker functions.
6545 (mark_pool_constant): Delete.
6546 (mark_varasm_status): Delete.
6547 (decode_rtx_const): #if 0 out non-typesafe hack.
6549 * function.h (free_lang_status): Mark as obsolete.
6550 * function.c (free_lang_status): Mark as obsolete.
6551 * c-decl.c (push_c_function_context): Use GC to allocate and free
6552 struct language_function.
6553 (pop_c_function_context): Likewise.
6554 * c-common.c (mark_c_language_function): Mark struct
6557 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
6558 Document that the machine_function structures must be allocated
6559 using GC. Update mark_machine_status documentation.
6560 * function.h: Don't declare free_machine_status.
6561 * function.c (free_machine_status): Don't define.
6562 (free_after_compilation): Don't call free_machine_status.
6563 (ggc_mark_struct_function): Mark f->machine. Call
6564 mark_machine_status only on non-NULL pointers.
6565 * system.h: Poison free_machine_status.
6566 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
6567 struct machine_function.
6568 (xtensa_free_machine_status): Delete.
6569 (override_options): Don't set free_machine_status.
6570 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
6571 free_machine_status.
6572 (rs6000_init_machine_status): Use GC on struct machine_function.
6573 (rs6000_free_machine_status): Delete.
6574 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
6576 (ia64_mark_machine_status): Likewise.
6577 (ia64_free_machine_status): Delete.
6578 (ia64_override_options): Don't set free_machine_status.
6579 * config/i386/i386.c (override_options): Don't set
6580 free_machine_status.
6581 (ix86_init_machine_status): Use GC on struct machine_function.
6582 (ix86_mark_machine_status): Likewise.
6583 (ix86_free_machine_status): Delete.
6584 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
6586 (d30v_mark_machine_status): Likewise.
6587 (d30v_free_machine_status): Delete.
6588 (d30v_init_expanders): Don't set free_machine_status.
6589 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
6591 (arm_init_machine_status): Likewise.
6592 (arm_free_machine_status): Delete.
6593 (arm_init_expanders): Don't set free_machine_status.
6594 * config/alpha/alpha.c (override_options): Don't set
6595 free_machine_status.
6596 (alpha_init_machine_status): Use GC on struct machine_function.
6597 (alpha_mark_machine_status): Likewise.
6598 (alpha_free_machine_status): Delete.
6600 * varasm.c (compare_constant): Fix typo.
6602 * varasm.c: Don't include obstack.h.
6603 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
6604 (struct rtx_const): Give substructures names, improve formatting.
6605 (struct constant_descriptor): Delete.
6606 (struct constant_descriptor_tree): New, based on constant_descriptor.
6607 (const_hash_table): Is a hash table of trees.
6608 (mark_const_hash_entry): Is used for hashes of trees. Mark
6609 constant_descriptor_tree structure.
6610 (mark_const_str_htab_1): Mark deferred_string structure.
6611 (compare_constant): Rewrite to compare trees.
6612 (compare_constant_1): Delete.
6613 (record_constant): Delete.
6614 (record_constant_1): Delete.
6615 (output_constant_def): Use struct constant_descriptor_tree.
6616 Don't duplicate trees twice.
6617 (struct constant_descriptor_rtx): New.
6618 (struct pool_constant): Used for rtx constants.
6619 (init_varasm_status): Update for change to struct varasm_status.
6620 (mark_varasm_status): Likewise.
6621 (free_varasm_status): Delete.
6622 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
6623 (record_constant_rtx): Likewise.
6624 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
6625 (force_const_mem): Likewise.
6626 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
6627 * function.c (free_after_compilation): Don't use free_varasm_status.
6628 * function.h: Don't prototype free_varasm_status.
6630 * ggc-common.c (ggc_realloc): Handle X being NULL.
6632 * ggc-common.c (ggc_realloc): New function.
6633 * ggc.h: Prototype it.
6634 * emit-rtl.c (free_emit_status): Delete.
6635 (init_emit): Allocate emit subarrays using GC.
6636 (gen_reg_rtx): Reallocate subarrays using GC.
6637 (init_emit): Use GC to allocate 'struct emit_status' and its
6639 (mark_emit_status): Mark structure and its subarrays.
6640 * stmt.c (free_stmt_status): Delete.
6641 * expr.c (free_expr_status): Delete.
6642 * function.h: Remove prototypes for deleted functions.
6643 * function.c (free_after_compilation): Don't use deleted functions.
6644 Don't call free() on x_parm_reg_stack_loc.
6645 (free_after_parsing): Don't use free_stmt_status.
6646 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
6647 (mark_function_status): Mark x_parm_reg_stack_loc.
6649 * varasm.c (init_varasm_status): Use GC to allocate
6650 'struct varasm_status' and its fields x_const_rtx_hash_table
6651 and x_const_rtx_sym_hash_table.
6652 (mark_varasm_status): Mark them.
6653 (free_varasm_status): Use GC to free them.
6654 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
6655 (mark_expr_status): Mark the structure itself.
6656 (free_expr_status): Use GC to free the structure.
6657 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
6658 (mark_stmt_status): Mark the 'struct stmt_status' itself.
6659 (init_stmt_for_function): Allocate the structure for GC.
6661 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
6662 (equate_type_number_to_die): Likewise.
6663 * tree.h (TYPE_SYMTAB_DIE): New macro.
6664 (struct die_struct): Predeclare.
6665 (struct tree_type): Add field symtab.die. Add a tag
6666 to the union type of field symtab.
6668 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
6669 'struct rtvec_def *', not 'struct rtvec_def'.
6671 * function.h (original_arg_vector): Make a real rtvec.
6672 * function.c (ggc_mark_struct_function): Adjust.
6673 * integrate.c (expand_inline_function): Adjust.
6675 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
6677 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
6678 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
6679 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
6680 (TARGET_VERSION_CPU): Define according to the
6682 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
6684 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
6685 if TARGET_SHMEDIA64.
6686 (LINK_DEFAULT_CPU_EMUL): Define according to the
6688 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
6689 (SUBTARGET_LINK_SPEC): Define.
6690 (LINK_SPEC): Use SH_LINK_SPEC.
6692 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
6693 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
6694 and TARGET_SHMEDIA64 which abort, for now.
6695 * config/sh/t-netbsd-sh5: New file.
6696 * config/sh/t-netbsd-sh5-32: New file.
6697 * config/sh/t-netbsd-sh5-64: New file.
6699 2002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
6700 Richard Henderson <rth@redhat.com>
6702 * config/alpha/alpha.c (reg_or_const_int_operand): New.
6703 (some_operand, input_operand): Accept CONST_VECTOR.
6704 (alpha_extra_constraint): Add 'W'.
6705 (alpha_expand_zap_mask): New.
6706 (alpha_expand_builtin_vector_binop): New.
6707 (enum alpha_builtin): New.
6708 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
6709 (alpha_init_builtins, alpha_expand_builtin): New.
6710 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
6711 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
6712 (PREDICATE_CODES): Update.
6713 * config/alpha/alpha-protos.h: Update.
6714 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
6715 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
6716 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
6717 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
6718 (movv2si, movv2si_fix, movv2si_nofix): New.
6719 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
6720 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
6721 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
6722 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
6723 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
6724 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
6725 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
6726 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
6727 builtin_unpkbw, unpkbw): New.
6728 * doc/extend.texi (Alpha Built-in Functions): New.
6730 2002-06-03 Richard Henderson <rth@redhat.com>
6732 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
6733 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
6735 2002-06-03 Richard Henderson <rth@redhat.com>
6737 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
6739 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
6740 (const0_operand): New.
6741 (reg_or_fp0_operand, fp0_operand): Remove.
6742 * config/alpha/alpha.h (PREDICATE_CODES): Update.
6743 * config/alpha/alpha-protos.h: Update.
6744 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
6745 and fp0_operand with reg_or_0_operand and const0_operand.
6747 2002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
6749 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
6751 2002-06-03 Roger Sayle <roger@eyesopen.com>
6753 * gcse.c (cprop_jump): Use single_set to get the pattern
6754 from the setcc argument.
6756 2002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
6758 * diagnostic.h (diagnostic_count): Move from output_buffer to
6760 (diagnostic_kind_count): Adjust definition.
6762 Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
6764 * except.c (except.c): Do not rebuild CFG.
6765 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
6768 Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
6770 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
6771 * toplev.c: Include cfglahout.h
6772 * Makefile.in (toplev.c): Add dependnecy.
6774 2002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
6776 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
6777 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
6778 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
6780 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
6782 * config/ns32k/netbsd.h: Update copyright years.
6783 (TARGET_OS_CPP_BUILTINS): Define.
6784 (CPP_PREDEFINES): Remove.
6785 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
6786 (TARGET_CPU_CPP_BUILTINS): Define.
6788 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
6790 * emit-rtl.c: Fix formatting.
6791 * errors.h: Likewise.
6792 * except.c: Likewise.
6793 * explow.c: Likewise.
6794 * expmed.c: Likewise.
6798 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
6800 * config/h8300/elf.h: Fix formatting.
6801 * config/h8300/rtems.h: Likewise.
6803 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
6805 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
6807 2002-06-02 Tom Tromey <tromey@redhat.com>
6809 * fixinc/fixincl.x: Rebuilt.
6810 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
6812 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6815 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
6816 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
6820 Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
6822 * final.c (final): Allow notes to not have computed addresses;
6823 kill no longer needed STACK_REGS ifdef.
6825 2002-06-02 Richard Henderson <rth@redhat.com>
6827 * gcse.c (bypass_conditional_jumps): Fix typo last change.
6829 Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
6831 * loop.c (emit_prefetch_instructions): Properly place the address
6834 Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
6836 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
6837 (set_block_for_insn): Turn into macro.
6838 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
6839 * cfglayout.c (insn_scopes): Kill.
6840 (scope_to_insns_initialize): Do not use insn_scopes.
6841 (scope_to_insns_finalize): Likewise.
6842 (duplicate_insn_chain): Likewise.
6843 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
6844 * cfgrtl.c (basic_block_for_insn): Kill.
6845 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
6846 (create_basic_block_structure): Use reorder_insns.
6847 (compute_bb_for_insn): Do not use basic_block_for_insn.
6848 (merge_blocks_nomove): Likewise.
6849 (update_bb_for_insn): Likewise.
6850 (verify_flow_info): Likewise.
6851 (set_block_for_insn): Kill.
6852 * combine.c (try_combine): Update gen_rtx_INSN call.
6853 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
6854 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
6856 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
6857 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
6859 (emit_insns_after): Simplify.
6860 (emit_copy_of_insn_after): Copy scope.
6861 * final.c (final_start_function): Lower scopes.
6862 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
6863 * integrate.c (copy_insn_list): Cope scopes.
6864 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
6865 * loop.c (loop_optimize): Do not care block notes.
6866 * print-rtl.c (print_rtx): Print BB.
6867 * recog.c (apply_change_group): Simplify.
6868 * rtl.c (copy_rtx): Handle 'B'.
6869 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
6870 * rtl.h (Field accessors): Update indexes.
6871 * sched-ebb.c (schedule_ebbs): Do not lower notes.
6872 * sched-rgn.c (schedule_insns): Likewise.
6873 * toplev.c (rest_of_compilation): Lower notes.
6874 * unroll.c (unroll_loop): Do not care scoping notes.
6875 (copy_loop_body): Copy scopes.
6877 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6880 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
6882 * rtems.h: Similarly.
6883 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
6884 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
6885 (TARGET_CPU_CPP_BUILTINS): Use.
6887 2002-06-02 Richard Henderson <rth@redhat.com>
6889 * alias.c: Include target.h.
6890 (mark_constant_function): Use targetm.binds_local_p instead
6891 of checking TREE_PUBLIC ourselves.
6892 * Makefile.in (alias.o): Add TARGET_H.
6894 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6896 * c-lex.c: Update copyright and file description.
6898 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6900 * config/fr30/fr30.h: Update to new CPP macros.
6902 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6904 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
6906 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6907 Zack Weinberg <zack@codesourcery.com>
6909 * c-common.c (c_common_init): Override cpplib's default
6910 warn_long_long setting.
6911 * c-lex.c (lex_number): Replace with interpret_integer,
6912 interpret_float, narrowest_unsigned_type and
6913 narrowest_signed_type, taking advantage of the new
6914 cpplib functionality.
6915 * cpperror.c (_cpp_begin_message): If a warning is turned
6916 into an error, avoid printing "warning:".
6917 * cppexp.c (cpp_num_sign_extend): New.
6918 * cppinit.c: Update comment.
6919 * cpplib.h (cpp_num_sign_extend): New.
6920 * tree.h: Update comment.
6922 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
6924 * diagnostic.h (struct diagnostic_context): Add new member
6926 (internal_error_function): Remove declaration.
6927 * diagnostic.c (internal_error_function): Remove definition..
6928 (internal_error): Adjust use.
6930 2002-06-02 Richard Henderson <rth@redhat.com>
6932 * rtl.h (CC0_P): New.
6933 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
6934 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
6935 (bypass_block): Save old dest block for dump text.
6936 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
6937 Allow only true SET insns, not single_set.
6939 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
6941 * diagnostic.c (diagnostic_finish): Rename to output_flush.
6942 (clear_disgnostic_info): Rename to output_clear_data. Use false
6943 instead of 0 for boolean value.
6944 Adjust function call throughout.
6946 Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
6948 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
6949 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
6951 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6953 * d30v.h (CPP_PREDEFINES): Replace with
6954 (TARGET_CPU_CPP_BUILTINS): New.
6956 2002-06-02 Roger Sayle <roger@eyesopen.com>
6958 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
6960 Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
6962 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
6964 2002-06-02 Richard Henderson <rth@redhat.com>
6966 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
6968 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
6970 Support for C++ constructors/destructors.
6971 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
6972 instead of looping if main() returns.
6973 (asm_file_start): Output global symbols that cause .data and .bss
6974 initialization code to be linked in, unconditionally for now.
6975 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
6976 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
6977 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
6979 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
6980 (__tablejump__): New.
6981 (__do_copy_data, __do_clear_bss): New.
6982 (__do_global_ctors, __do_global_dtors): New.
6983 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
6986 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
6988 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
6989 (CPP_SPEC, CPP_PREDEFINES): Kill.
6990 * c4x/rtems.h (CPP_PREDEFINES): Kill.
6991 (TARGET_OS_CPP_BUILTINS): New.
6993 Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
6995 * Makefile.in (tracer.o): New.
6996 * params.def (TRACER_*): New options.
6997 * rtl.h (tracer): Declare.
6998 * timevar.def (TV_TRACER): New.
6999 * toplev.c (dump_file_index): Add DFI_tracer.
7000 (dump_file_info): Add tracer.
7002 (lang_indepdenent_options): Add tracer.
7003 (rest_of_compilation): Call tracer.
7004 * tracer.c: New file.
7005 * invoke.texi (-ftracer): Document.
7006 (--param tracer-*): Document.
7008 2002-06-01 Daniel Berlin <dberlin@dberlin.org>
7010 * tree-inline.c (expand_call_inline): Make the statement
7011 expression we generate have a COMPOUND_STMT.
7013 2002-06-01 Roger Sayle <roger@eyesopen.com>
7015 * gcse.c (cprop_cc0_jump): Function deleted.
7016 (cprop_jump): Take an additional argument which is the possibly
7017 NULL cc setting insn immediately before the conditional jump.
7018 When a MODE_CC set is present, substitute it into the JUMP_INSN
7019 before attempting the constant propagation.
7020 (cprop_insn): Recognize cc setters followed by conditional jumps
7021 as a special case. Use cprop_jump instead of cprop_cc0_jump.
7022 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
7023 (find_bypass_set): New function based upon find_avail_set used by
7024 cprop, but finds constant expressions available at the end of
7026 (bypass_block): New function. Given a basic block that begins
7027 with a conditional jump and multiple incoming edges, perform
7028 the jump bypass optimization.
7029 (bypass_conditional_jumps): New function. Call bypass_block with
7030 each suitable basic block in the CFG using a simple single pass.
7032 2002-06-01 Roger Sayle <roger@eyesopen.com>
7034 * tree.c (real_minus_onep): New function to test for -1.0.
7035 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
7037 2002-06-01 Roger Sayle <roger@eyesopen.com>
7039 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
7040 and "!p && !q" into "(p|q) == 0" under suitable conditions.
7042 2002-06-01 Andreas Jaeger <aj@suse.de>
7044 * cppexp.c (cpp_classify_number): Cast precission to int for
7045 correct printf format.
7047 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
7049 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
7050 expected, but don't really exist: atmega83, atmega85, attiny10.
7051 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
7052 emulations for all devices.
7053 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
7054 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
7056 2002-06-01 Kazu Hirata <kazu@cs.umass.edu>
7058 * config/h8300/h8300-protos.h: Add a prototype for
7059 h8300_shift_needs_scratch_p.
7060 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
7061 * config/h8300/h8300.h (OK_FOR_R): New.
7062 (OK_FOR_S): Likewise.
7063 (OK_FOR_T): Likewise.
7064 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
7065 * config/h8300/h8300.md (anonymous shift patterns): Use
7066 constraints R, S, and T.
7068 Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7070 * basic-block.h (struct basic_block_def): New field loop_father.
7071 (BB_VISITED): New flag.
7072 (struct loop): New field pred, removed field shared.
7073 (struct loops): New field parray.
7074 (LOOP_EXITS_DOMS): Removed.
7075 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
7076 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
7077 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
7078 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
7079 verify_loop_structure): Declare.
7080 * cfg.c (entry_exit_blocks): Initialize loop_father field.
7081 * cfganal.c (dfs_enumerate_from): New function.
7082 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
7083 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
7084 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
7085 flow_loop_dump, flow_loops_dump, flow_loops_free,
7086 flow_loop_tree_node_add, flow_loop_level_compute,
7087 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
7088 flow_loop_outside_edge_p): Modified for new infrastructure.
7089 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
7090 redirect_edge_with_latch_update, flow_loop_free): New static functions.
7091 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
7092 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
7093 find_common_loop, verify_loop_structure, loop_latch_edge,
7094 loop_preheader_edge): New functions.
7095 (flow_loops_cfg_dump): Do not show dominators, as this information
7096 does not remain up to date long.
7097 (flow_loops_find): Store results in new format.
7098 * predict.c (propagate_freq, estimate_probability,
7099 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
7102 2002-06-01 Alan Lehotsky <apl@alum.mit.edu>
7104 * except.c (nothrow_function_p): Walk epilogue delay list
7105 checking the insn, not the chain for potential throws.
7107 2002-05-31 Zack Weinberg <zack@codesourcery.com>
7109 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
7110 (install): Refer to install-cpp directly.
7111 (uninstall-cpp): Folded into uninstall rule.
7112 * configure.in: Delete all code relating to --disable-cpp.
7113 * configure: Regenerate.
7114 * config/t-install-cpp: Delete.
7116 2002-05-31 Richard Henderson <rth@redhat.com>
7118 * configure.in (HAVE_AS_TLS): Add alpha tests.
7119 * configure: Rebuild.
7120 * config/alpha/alpha.c (TARGET_AS_TLS): New.
7121 (alpha_tls_size, alpha_tls_size_string): New.
7122 (overide_options): Set it. Always install machine_status hooks.
7123 (input_operand): Accept got tls predicates.
7124 (local_symbol_p): Merge into ...
7125 (local_symbolic_operand): ... here. Reject tls symbols.
7126 (global_symbolic_operand): Likewise.
7127 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
7128 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
7129 (tp16_symbolic_operand, tp32_symbolic_operand): New.
7130 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
7131 (alpha_encode_section_info): Handle TLS symbols.
7132 (alpha_strip_name_encoding): Likewise.
7133 (alpha_legitimate_address_p): Likewise.
7134 (alpha_legitimize_address): Likewise.
7135 (alpha_expand_mov): Early exit to avoid nop moves.
7136 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
7137 (alpha_init_machine_status, alpha_mark_machine_status,
7138 alpha_free_machine_status): Always define.
7139 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
7140 (print_operand, print_operand_address): Add TLS relocs.
7141 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
7142 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
7143 (TARGET_SWITCHES): Add -mtls-kernel.
7144 (alpha_tls_size, alpha_tls_size_string): New.
7145 (TARGET_OPTIONS): Add -mtls-size=.
7146 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
7147 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
7148 (ASM_OUTPUT_LABELREF): Skip %.
7149 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
7150 (PREDICATE_CODES): Update.
7151 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
7152 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
7153 UNSPEC_TP, UNSPECV_SET_TP): New.
7154 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
7155 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
7156 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
7157 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
7158 (call_value_osf_2_er): Accept anything as op4.
7159 * config/alpha/alpha-protos.h: Update.
7160 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
7162 2002-05-31 Zack Weinberg <zack@codesourcery.com>
7164 * cppinit.c (append_include_chain): Always pay attention to
7165 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
7168 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
7170 * target.h: Fix formatting.
7171 * timevar.h: Likewise.
7172 * tlink.c: Likewise.
7173 * toplev.c: Likewise.
7174 * toplev.h: Likewise.
7176 * tree-dump.h: Likewise.
7178 * tree-inline.h: Likewise.
7179 * unroll.c: Likewise.
7180 * unwind-dw2.c: Likewise.
7181 * unwind-dw2-fde.c: Likewise.
7182 * unwind-dw2-fde-glibc.c: Likewise.
7183 * unwind-dw2-fde.h: Likewise.
7184 * unwind.h: Likewise.
7185 * unwind-sjlj.c: Likewise.
7186 * varasm.c: Likewise.
7187 * varray.h: Likewise.
7188 * vmsdbg.h: Likewise.
7189 * vmsdbgout.c: Likewise.
7190 * xcoffout.h: Likewise.
7192 2002-05-31 Igor Shevlyakov <igor@microunity.com>
7194 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
7195 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
7197 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
7199 * gcc.c (cpp_unique_options): Remove "-d" options.
7200 (cpp_debug_options): New spec string.
7201 (default_compilers): Use it.
7202 * objc/lang-specs.h: Likewise.
7204 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
7206 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
7207 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
7208 * gcc/mklibgcc.in: Likewise.
7209 * gcc/config/arc/t-arc: Likewise.
7210 * gcc/configure.in: Likewise.
7211 * gcc/configure: Regenerate.
7213 2002-05-31 Stan Shebs <shebs@apple.com>
7214 Turly O'Connor <turly@apple.com>
7216 * c-decl.c (struct binding_level): Change int field n_incomplete
7217 to tree list incomplete_list.
7218 (clear_binding_level): Init field with NULL.
7219 (pushdecl): Add incomplete type to list.
7220 (mark_binding_level): Mark the incomplete list.
7221 (finish_struct): Scan the incomplete list for types instead
7222 of all decls in the current binding level.
7224 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
7226 * pa.c (output_millicode_call): Add missing '%' characters.
7227 (output_call): Likewise.
7229 2002-05-31 David Edelsohn <edelsohn@gnu.org>
7231 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
7232 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
7234 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
7236 * varasm.c (mark_constant_pool): Walk epilogue delay list
7237 checking the insn, not the chain for potential constants.
7239 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
7241 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
7243 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
7245 * i386.c (classify_argument): Properly handle base types.
7247 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
7248 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
7251 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
7253 * gcse.c (gcse_emit_move_after): New.
7254 (pre_delete, hoist_store): Use it.
7256 * reload1.c (emit_input_reload_insns): Use constrain_operands
7257 instead of constraint_accepts_reg_p to verify optimization.
7258 (constraint_accepts_reg_p): Kill
7260 * reload1.c (reload_cse_delete_noop_set): Kill.
7261 (reload_cse_simplify): use delte_insn_and_edges.
7263 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7265 * cfgloop.c (flow_loops_find): Initialize first and last fields
7268 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
7270 * c-common.c (builtin_define_std): Correct logic.
7272 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
7274 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
7275 (output_call): Likewise.
7277 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
7279 * pa.c: Move output.h include after tree.h include.
7280 (pa_asm_output_mi_thunk): Constify identifier lab.
7282 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
7284 * config/ns32k/ns32k.h: Define named constants for the
7285 bits in target_flags and use them.
7286 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
7288 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
7290 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
7291 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
7292 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
7293 default scheduling model.
7294 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
7295 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
7296 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
7297 * doc/install.texi (hppa*-*-*): Document default scheduling.
7299 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
7301 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
7303 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
7305 * config.gcc (ns32k-*-netbsd*): Set tm_file to
7306 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
7307 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
7308 netbsd.h, or netbsd-aout.h.
7310 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
7312 * longlong.h (count_trailing_zeros): Add missing \, and clean up
7313 whitespace in __ns32000__ case.
7315 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
7317 * expr.c (expand_expr): Output partially zeroed out vectors with
7318 output_constant_def.
7320 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7322 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
7324 (shl*-*-netbsdelf*): New targets.
7325 * config/sh/netbsd-elf.h: New file.
7326 * config/sh/t-netbsd: New file.
7328 2002-05-30 Richard Henderson <rth@redhat.com>
7329 Eric Botcazou <ebotcazou@multimania.com>
7331 PR optimization/6822
7332 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
7333 to unsigned int for op1 comparisons. Use gen_int_mode.
7335 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
7337 * expmed.c (const_mult_add_overflow_p): New.
7338 * expr.h: Declare it.
7339 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
7340 Don't eliminate the biv if the giv has a constant multiplier and
7341 the rhs argument of the comparison does satisfy the predicate.
7342 Use expand_mult_add to compute the replacement constant.
7344 2002-05-30 Osku Salerma <osku@iki.fi>
7346 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
7347 (c_common_get_alias_set): Handle it.
7348 * doc/extend.texi: Document it.
7350 2002-05-30 Richard Henderson <rth@redhat.com>
7352 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
7353 * toplev.c (process_options): Don't check it.
7354 * doc/tm.texi: Don't document it.
7355 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
7356 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
7357 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
7358 frame pointer optimization if current_function_profile.
7360 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
7362 * langhooks.c: Fix formatting.
7363 * langhooks.h: Likewise.
7365 * libgcc2.c: Likewise.
7366 * lists.c: Likewise.
7367 * local-alloc.c: Likewise.
7371 2002-05-30 Marc Espie <espie@openbsd.org>
7373 * config.gcc (sparc64-*-openbsd*): New.
7374 * config/sparc/openbsd1-64.h: New.
7375 * config/sparc/openbsd64.h: New.
7377 2002-05-30 Jeff Law <law@redhat.com>
7379 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
7380 a dead insn with a REG_RETVAL note when the entire libcall is not
7381 dead and remove the associated REG_LIBCALL note at the same time.
7383 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
7385 * lcm.c (output.h): #include.
7386 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
7387 as an ordinary block.
7388 (optimize_mode_switching): Don't pretend that the exit block is
7389 an ordinary block, or handle sucessors of entry block specially.
7390 Instead, split edges from entry block and to exit block, and
7391 put a computing definition on the thus gained post-entry-block,
7392 and a need on the pre-exit-block.
7394 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
7396 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
7397 * rtl.texi: Document 'B'
7399 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7401 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
7403 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
7405 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
7407 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
7408 const0_rtx instead of NULL_RTX when in error.
7409 (altivec_expand_abs_builtin): Same.
7410 (rs6000_expand_binop_builtin): Same.
7411 (altivec_expand_predicate_builtin): Same.
7412 (altivec_expand_stv_builtin): Same.
7413 (rs6000_expand_ternop_builtin): Same.
7414 (altivec_expand_builtin): Same.
7416 2002-05-29 David S. Miller <davem@redhat.com>
7418 * rtl.h (clear_emit_caches): Delete.
7419 * integrate.c (output_inline_function): Don't call it.
7420 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
7421 (clear_emit_caches): Delete definition.
7422 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
7424 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
7426 * config/mmix/mmix.c: Include real.h.
7427 (mmix_constant_address_p): Remove redundant test before switch.
7429 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
7431 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
7432 only if not already defined.
7434 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
7436 * config/h8300/h8300-protos.h: Remove prototypes for
7437 ok_for_bclr and small_power_of_two.
7438 * config/h8300/h8300.c (small_power_of_two): Remove.
7439 (ok_for_blcr): Likewise.
7440 (fix_bit_operand): Make WHAT deal with an integer instead of a
7441 constraint character.
7442 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
7443 (CONST_OK_FOR_P): Likewise.
7444 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
7445 CONST_OK_FOR_P any more.
7446 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
7451 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
7453 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
7454 (CPP_PREDEFINES): Make sure this is undefined.
7455 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
7456 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
7457 or -U__MIPSEB__ before defining one or the other. Instead,
7458 use %(subtarget_endian_default) if neither -EB nor -EL are
7460 (SUBTARGET_EXTRA_SPECS): Define.
7461 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
7464 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
7466 * doc/md.texi (Patterns): Note pattern condition pitfall
7469 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
7471 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
7472 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
7473 ternary operations from here...
7474 (rs6000_expand_builtin): ...to here.
7475 New argument expandedp.
7476 Change all instances of altivec_expand_binop_builtin to
7477 rs6000_expand_binop_builtin.
7478 (altivec_expand_unop_builtin): Rename to
7479 rs6000_expand_unop_builtin.
7480 (altivec_expand_binop_builtin): Rename to
7481 rs6000_expand_binop_builtin.
7482 (altivec_expand_ternop_builtin): Rename to
7483 rs6000_expand_ternop_builtin.
7485 2002-05-29 Richard Henderson <rth@redhat.com>
7487 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
7488 (TARGET_BI_ARCH): Likewise.
7489 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
7490 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
7491 (TARGET_64BIT_DEFAULT): Default to 0.
7492 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
7494 2002-05-29 Richard Henderson <rth@redhat.com>
7496 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
7497 (get_pc_thunk_name): New.
7498 (output_set_got): Use it.
7499 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
7500 into linkonce sections.
7502 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
7504 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
7505 (CPP_PREDEFINES): Make sure this is undefined.
7506 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
7507 (CPP_SUBTARGET_SPEC): Don't provide different versions for
7508 default-32 and default-64. Just always use %(netbsd_cpp_spec).
7509 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
7510 cpp_subtarget_spec64. Add netbsd_cpp_spec.
7511 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
7512 (CPP_PREDEFINES): Make sure this is undefined.
7513 (SUBTARGET_EXTRA_SPECS): Define.
7514 (CPP_SPEC): Use %(netbsd_cpp_spec).
7516 2002-05-29 Jeff Law <law@redhat.com>
7518 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
7520 * flow.c (propagate_one_insn): Do not remove a dead insn if it
7521 contains a REG_RETVAL note.
7523 * haifa-sched (sched_analyze): Remove another useless clearing
7524 of SCHED_GROUP_P I missed yesterday.
7526 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
7527 * pa.c (pa_asm_output_mi_thunk): New function.
7528 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
7530 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
7531 Marek Michalkiewicz <marekm@amelek.gda.pl>
7533 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
7534 (avr_asm_only_p): Make non-static.
7535 (enum avr_arch): Remove.
7536 (avr_arch_types): New.
7537 (avr_mcu_types): Update.
7538 (avr_override_options): Use avr_arch_types table instead of switch.
7539 * avr.h (CPP_PREDEFINES): Die.
7540 (avr_base_arch_macro, avr_extra_arch_macro): New.
7541 (TARGET_CPU_CPP_BUILTINS): New.
7542 (CPP_SPEC, EXTRA_SPECS): Simplify.
7543 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
7544 CPP_AVR5_SPEC): Die.
7546 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
7548 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
7549 NETBSD_OS_CPP_BUILTINS_AOUT.
7550 (SUBTARGET_EXTRA_SPECS): Define.
7551 (CPP_SPEC): Use %(netbsd_cpp_spec).
7553 2002-05-29 Richard Henderson <rth@redhat.com>
7555 * config/i386/i386.c (ix86_output_function_epilogue): New.
7556 (TARGET_ASM_FUNCTION_EPILOGUE): New.
7557 (pic_label_name): Remove.
7558 (pic_labels_used): New.
7559 (ix86_asm_file_end): Emit one pc load stub for each register used.
7560 (output_set_got): Generate deep pc load to any register.
7561 (ix86_select_alt_pic_regnum): New.
7562 (ix86_save_reg): Don't save pic register if we can find a valid
7563 call-clobbered replacement.
7564 (ix86_expand_prologue): If we found a valid replacement, renumber
7565 pic_offset_table_rtx.
7566 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
7567 pic_offset_table_rtx after reload.
7568 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
7569 * config/i386/i386.md (set_got): Make insn, not expander.
7570 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
7572 2002-05-29 Richard Henderson <rth@redhat.com>
7574 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
7575 alignment for alloca.
7577 2002-05-29 Richard Henderson <rth@redhat.com>
7579 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
7580 (print_operand_address): Only add rip for symbolic addresses
7581 for which we do not have another relocation type.
7583 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
7585 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
7586 (EXTRA_SPECS): Add netbsd_cpp_spec.
7587 (CPP_SPEC): Use %(netbsd_cpp_spec).
7588 (CPP_PREDEFINES): Remove.
7589 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
7590 (EXTRA_SPECS): Define.
7591 (CPP_SPEC): Use %(netbsd_cpp_spec).
7592 (CPP_PREDEFINES): Remove.
7594 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
7596 PR preprocessor/6844
7597 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
7600 2002-05-29 Eric Christopher <echristo@redhat.com>
7602 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
7603 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
7605 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
7607 * config/fr30/fr30.md: Remove previous restriction on splits.
7608 Enforce conformance through gen_lowpart and cont_int_operand.
7609 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
7610 as the assembler does not support ".bss".
7612 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
7614 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
7615 (CPP_PREDEFINES): Remove.
7616 (SUBTARGET_EXTRA_SPECS): Define.
7617 (CPP_SPEC): Use %(netbsd_cpp_spec).
7618 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
7619 (CPP_PREDEFINES): Remove.
7620 (SUBTARGET_EXTRA_SPECS): Define.
7621 (CPP_SPEC): Use %(netbsd_cpp_spec).
7622 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
7623 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
7624 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
7625 Add netbsd_cpp_spec.
7626 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
7628 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
7629 Zack Weinberg <zack@codesourcery.com>
7631 * cppexp.c (cpp_num): Move to cpplib.h.
7632 (CPP_ERROR): Remove.
7633 (interpret_float_suffix, interpret_int_suffix): New.
7634 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
7635 (cpp_classify_number, cpp_interpret_integer): New.
7636 (interpret_number): Remove.
7637 (eval_token): Update to use new routines.
7638 * cpphash.h (cpp_num_part): Move to cpplib.h.
7639 * cppinit.c (cpp_post_options): Set warn_long_long.
7640 * cpplib.h (struct cpp_options): Add warn_long_long.
7641 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
7642 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
7643 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
7644 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
7645 cpp_interpret_integer): New.
7647 2002-05-29 Joel Sherrill <joel@OARcorp.com>
7649 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
7651 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
7653 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
7654 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
7655 (CPP_SUBTARGET_SPEC): Define.
7656 (SUBTARGET_EXTRA_SPECS): Define.
7659 2002-05-29 Chris Lattner <sabre@nondot.org>
7661 * ssa.c (rename_insn_1): Rename uses of undefined registers to
7662 prevent confusion if/when the register is defined.
7664 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
7667 * config/cris/cris.md: Fix typos and thinkos in comments.
7668 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
7670 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
7671 ("*mov_sideqi_mem"): Similar, but for operand 3.
7672 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
7673 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
7674 Remove spurious mode specifier on operand 2.
7676 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
7678 * config/h8300/h8300-protos.h: Remove the prototype for
7680 Add prototypes for single_one_operand and single_zero_operand.
7681 * config/h8300/h8300.c (o_operand): Remove.
7682 (single_one_operand): New.
7683 (single_zero_operand): Likewise.
7684 (print_operand): For 'V' operand, and the operand with 0xff.
7685 For 'V' and 'W' operands, do not and the bit position with 7.
7686 * config/h8300/h8300.md (various anonymous patterns): Replace
7687 use of exact_log2 with single_one_operand/single_zero_operand.
7689 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
7691 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
7693 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
7695 * config/s390/s390.c (legitimate_pic_operand_p): Do not
7696 accept symbolic LARL operands.
7697 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
7700 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
7702 * config/s390/s390.md (cmpstr_64/31): Mark whole
7703 input registers as used.
7705 2002-05-28 Richard Henderson <rth@redhat.com>
7707 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
7708 not current_function_uses_pic_offset_table and
7709 current_function_uses_const_pool; examine current_function_profile.
7710 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
7711 input to blockage if needed.
7712 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
7713 (legitimize_pic_address): Likewise. Set regs_ever_live for
7714 pic_offset_table_rtx when invoked during reload.
7715 * config/i386/i386.h (FINALIZE_PIC): Remove.
7716 * config/i386/i386.md (tablejump): Reformat. Do not set
7717 current_function_uses_pic_offset_table.
7718 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
7719 (blockage): Accept anything as operand 0.
7721 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7723 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
7724 common CPP built-ins for all NetBSD a.out targets.
7725 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
7726 common CPP built-ins for all NetBSD ELF targets.
7727 * config/netbsd.h: Add missing notice.
7728 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
7729 for all NetBSD targets.
7730 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
7731 for all NetBSD targets using an LP64 code model.
7732 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
7735 2002-05-28 Richard Henderson <rth@redhat.com>
7737 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
7738 update if UPDATE_LIFE_LOCAL.
7740 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
7742 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
7744 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
7745 Jason R. Thorpe <thorpej@wasabisystems.com>
7747 config/sh reorganization to factor out endianness and coff:
7749 * config/sh/little.h: New file.
7750 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
7751 defined, define to 0 to select big-endian.
7752 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
7753 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
7754 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
7755 * config/sh/t-be: New file.
7756 * config/sh/t-le: New file.
7758 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
7759 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
7760 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
7761 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
7762 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
7763 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
7764 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
7765 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
7766 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
7767 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
7768 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
7769 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
7770 (LINK_SPEC): Define to SH_LINK_SPEC.
7771 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
7772 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
7773 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
7774 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
7775 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
7776 * config/sh/coff.h: New file.
7777 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
7778 (TARGET_OBJFMT_CPP_BUILTINS): Define.
7779 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
7780 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
7781 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
7782 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
7783 (PTRDIFF_TYPE): Likewise.
7784 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
7785 (CPP_PREDEFINES): Don't define.
7786 (TARGET_OBJFMT_CPP_BUILTINS): Define.
7787 (LINK_SPEC): Define to SH_LINK_SPEC.
7788 (LINK_EMUL_PREFIX): Redefine.
7789 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
7790 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
7791 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
7792 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
7793 (TARGET_OS_CPP_BUILTINS): Define.
7794 (TARGET_DEFAULT): Redefine.
7795 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
7796 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
7797 (LINK_SPEC): Don't redefine.
7798 (LINK_DEFAULT_CPU_EMUL): Redefine.
7799 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
7800 * sh.c (sh_asm_named_section): Don't declare / define.
7801 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
7802 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
7803 (sh64-*-elf* tm_file): Likewise.
7804 (sh-*-rtemself* tm_file): Likewise.
7805 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
7806 (sh-*-linux* tmake_file): Add sh/t-le.
7807 (sh-*-rtems* tm_file): Add sh/coff.h
7808 (sh-*-* tm_file): Likewise.
7810 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
7812 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
7813 CONSTANT_POOL_ADDRESS_P.
7815 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
7817 2002-05-28 David Edelsohn <edelsohn@gnu.org>
7818 Jeff Law <law@redhat.com>
7820 * optabs.c (expand_binop): Fix nwords sign warnings.
7821 generate pseudo for add_optab.
7823 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
7824 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
7826 2002-05-28 Marc Espie <espie@openbsd.org>
7828 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
7829 inherited from gas.h.
7830 (ASM_QUAD): Undef. OpenBSD does not support it.
7832 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
7834 * doc/install.texi (binaries): Change mingw binaries
7835 link to www.mingw.org.
7837 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7839 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
7841 2002-05-28 Richard Henderson <rth@redhat.com>
7843 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
7844 bottom alignment for leaf functions.
7846 2002-05-28 Zack Weinberg <zack@codesourcery.com>
7848 * config/pa/milli32.S, config/pa/lib1funcs.asm,
7849 config/sparc/sol2-g1.asm: Delete unused files.
7851 2002-05-28 Richard Henderson <rth@redhat.com>
7853 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
7855 * flow.c (calculate_global_regs_live): Rename call_used to
7856 invalidated_by_call. Initialize from regs_invalidated_by_call
7857 instead of call_used_regs.
7859 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
7862 2002-05-28 Zack Weinberg <zack@codesourcery.com>
7864 * tree.h: Don't include real.h.
7865 Forward-declare struct realvaluetype.
7866 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
7868 (TREE_REAL_CST_PTR): New accessor.
7869 (TREE_REAL_CST): Update.
7870 * real.h: Include machmode.h.
7871 (realvaluetype): Make it struct realvaluetype, not a typedef.
7872 (build_real): Prototype here.
7874 * tree.c: Include real.h.
7875 (build_real): Allocate the REAL_VALUE_TYPE as a separate
7876 object in GC memory, set TREE_REAL_CST_PTR to point to it.
7877 (build_real_from_int_cst): Use build_real.
7878 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
7881 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
7882 fold-const.c, print-tree.c, real.c: Include real.h.
7883 * Makefile.in: Update dependency lists.
7885 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7887 * basic-block.h (last_basic_block): Declare.
7888 (expunge_block_nocompact): Declaration removed.
7889 (compact_blocks): Declare.
7890 * cfg.c (last_basic_block): New variable.
7891 (expunge_block_nocompact): Removed.
7892 (expunge_block): Do not compact basic blocks.
7893 (compact_blocks): New.
7894 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
7896 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
7898 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
7899 real positions of blocks.
7900 (delete_unreachable_blocks): Simplified -- quadratic behavior now
7902 (cleanup_cfg): Compact blocks.
7903 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
7904 basic_block_info varray.
7905 (flow_delete_block): Comment update.
7906 (back_edge_of_syntactic_loop_p): Modify position check code.
7907 (verify_flow_info): Update checking.
7908 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
7909 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
7910 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
7911 indices no longer change.
7912 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
7914 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
7915 * profile.c (branch_prob): Compact blocks.
7916 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
7919 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
7921 * config/h8300/h8300.md (two anonymous patterns): New.
7923 2002-05-28 David S. Miller <davem@redhat.com>
7925 * config/sparc/sparc.md (cpu): Tidy.
7926 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
7928 (in_call_delay): Delete reference to 'return' type.
7929 (eligible_for_return_delay, in_return_delay, define_delay
7930 referencing those): Delete.
7931 (rest of file): Use new type attributes as appropriate.
7932 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
7933 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
7934 * config/sparc/ultra1_2.md (us1_single): New reservation.
7935 (us1_ialuX): Likewise.
7936 * config/sparc/ultra3.md (us3_single): Likewise.
7937 (us3_ialuX): Likewise.
7938 (us3_imul, us3_idiv): Tweak.
7940 2002-05-28 Richard Henderson <rth@redhat.com>
7942 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
7945 2002-05-28 Richard Henderson <rth@redhat.com>
7947 * config.gcc: Obsolete mn10200.
7949 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
7951 * cppexp.c (interpret_number): Optimize for single-digit
7952 and less-than-half-precision cases.
7953 (num_trim, num_positive, num_div_op): Cast constants.
7955 2002-05-27 Bo Thorsen <bo@suse.de>
7957 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
7958 3.1 branch. The file was made by Jakub Jelinek.
7959 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
7960 support so multilib doesn't break. And don't define this at all
7961 when -Dinhibit_libc is used.
7962 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
7963 * config/i386/t-linux64: Implement full multilib support. Patch
7964 originally done by Andreas Jaeger and Jakub Jelinek.
7966 2002-05-27 Roger Sayle <roger@eyesopen.com>
7968 * c-common.c: Add support for __attribute__((nothrow)) to specify
7969 that a function cannot throw an exception (using TREE_NOTHROW).
7970 (handle_nothrow_attribute): New function to process this attribute.
7972 * doc/extend.texi: Document the new nothrow function attribute.
7974 2002-05-27 H.J. Lu (hjl@gnu.org)
7976 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
7977 (num_positive): Likewise.
7978 (num_div_op): Likewise.
7980 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
7982 * c-common.c (c_common_init): Always use intmax_t.
7984 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
7986 * c-common.c (c_common_init): Use intmax_t for now.
7988 2002-05-24 Andrew Haley <aph@redhat.com>
7990 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
7991 if T is a boolean type.
7993 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7995 * basic-block.h (last_basic_block): Defined as synonym for
7997 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
7998 flow_depth_first_order_compute, flow_preorder_transversal_compute,
7999 flow_dfs_compute_reverse_init): Replaced relevant occurences of
8000 n_basic_blocks with last_basic_block.
8001 * cfgbuild.c (make_edges): Likewise.
8002 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
8003 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
8004 * combine.c (combine_instructions): Likewise.
8005 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
8006 iterative_dataflow_bitmap): Likewise.
8007 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
8008 calc_idoms, idoms_to_doms): Likewise.
8009 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
8011 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
8012 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
8013 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
8014 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
8015 delete_null_pointer_checks, compute_code_hoist_vbeinout,
8016 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
8017 compute_store_table, build_store_vectors): Likewise.
8018 * haifa-sched.c (sched_init): Likewise.
8019 * ifcvt.c (if_convert): Likewise.
8020 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
8021 pre_edge_lcm, compute_available, compute_nearerout,
8022 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
8024 * predict.c (estimate_probability, process_note_prediction,
8025 note_prediction_to_br_prob): Likewise.
8026 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
8027 * recog.c (split_all_insns, peephole2_optimize): Likewise.
8028 * regrename.c (copyprop_hardreg_forward): Likewise.
8029 * resource.c (init_resource_info): Likewise.
8030 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
8031 init_regions, schedule_insns): Likewise.
8032 * ssa-ccp.c (ssa_const_prop): Likewise.
8033 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
8034 * ssa.c (compute_dominance_frontiers,
8035 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
8037 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
8038 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
8041 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
8043 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
8045 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
8046 hoist_insn_after, hoist_insn_to_edge): New.
8048 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
8050 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
8051 (PROP_FINAL): Include.
8052 * flow.c (life_analysis, update_life_info,
8053 init_propagate_block_info, mark_set_1, mark_used_rgs):
8054 Support SCAN_DEAD_STORE.
8056 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
8058 * c-common.c (c_common_init): Set CPP arithmetic precision.
8059 * cppexp.c (cpp_num_part): Move typedef ...
8060 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
8061 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
8062 (sanity_checks): Update.
8064 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
8066 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
8067 (mkheaders): New rule.
8068 (install-mkheaders): New rule.
8069 * configure.in (all_outputs): Add mkheaders.
8070 * configure: Regenerate.
8071 * mkheaders.in: New file.
8073 2002-05-26 Jakub Jelinek <jakub@redhat.com>
8075 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
8077 2002-05-26 Andreas Jaeger <aj@suse.de>
8079 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
8081 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
8083 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
8084 right_shift): Remove.
8085 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
8087 (struct op): Use cpp_num.
8088 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
8089 num_part_mul, num_unary_op, num_binary_op, num_negate,
8090 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
8091 num_div_op, num_lshift, num_rshift, append_digit): New.
8092 (interpret_number, parse_defined, eval_token, reduce): Update
8093 for two-integer arithmetic.
8094 (binary_handler): New typedef.
8096 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
8097 (_cpp_parse_expr, reduce): Update to handle two-integers.
8098 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
8100 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
8102 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
8103 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
8104 branch insn into account, do not assume 1.
8105 (avr_out_sbxx_branch): New function. Optimize cases of skipping
8106 over single word insn. Handle upper half of I/O space too.
8107 * config/avr/avr.md (*sbrx_branch): Use it.
8108 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
8109 (*sbix_branch, *sbix_branch_bit7): Likewise.
8110 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
8111 Use RTL peepholes to optimize register operand sign tests.
8113 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
8115 * config/avr/avr.c (avr_asm_only_p): New variable.
8116 (avr_override_options): Set it here if AVR1.
8117 (asm_file_start): Test it here, report an error if set.
8119 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
8121 * alias.c: Fix formatting.
8122 * attribs.c: Likewise.
8123 * bb-reorder.c: Likewise.
8124 * bitmap.c: Likewise.
8125 * bitmap.h: Likewise.
8126 * builtins.c: Likewise.
8128 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
8130 * reload.c (find_valid_class): Accept new argument DEST,
8131 choose class accordingly.
8132 (push_reload): Update callers.
8134 2002-05-26 Andreas Jaeger <aj@suse.de>
8136 * combine.c (combine_instructions): Do not indent #if for
8139 2002-05-25 Richard Henderson <rth@redhat.com>
8141 * c-pragma.c (apply_pragma_weak): Convert value identifier to
8142 string for decl_attributes.
8143 (handle_pragma_weak): Call assemble_alias if we're modifying
8146 2002-05-25 Richard Henderson <rth@redhat.com>
8149 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
8150 using rtl instead of fprintf.
8151 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
8152 * config/sparc/sparc-protos.h: Update.
8154 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
8156 * Makefile.in (C_COMMON_H): Fix.
8157 Update other targets.
8158 * c-common.c: Don't include c-lex.h.
8159 (builtin_define_with_value): Make static and prototype.
8160 (builtin_define_std): Move from c-lex.h.
8161 * c-common.h (init_c_lex): Move from c-lex.h.
8162 * c-decl.c: Don't include c-lex.h.
8163 (make_pointer_declarator): Move from c-parse.in.
8164 * c-lex.c: Don't include c-lex.h.
8166 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
8167 (make_pointer_declarator): Move to c-decl.c.
8168 * c-pragma.c: Don't include c-lex.h.
8169 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
8170 * c-tree.h (make_pointer_declarator): New.
8172 * passes.texi, tm.texi: Update.
8174 * Make-lang.in: Update and correct.
8175 * objc-act.c: Don't include c-lex.h or cpplib.h.
8177 * treetree.c: Don't include c-lex.h.
8179 * darwin-c.c: Don't include c-lex.h.
8180 * c4x/c4x-c.c: Don't include c-lex.h.
8181 * c4x/t-c4x: Update.
8182 * i370/i370-c.c: Don't include c-lex.h.
8183 * i370/t-i370: Update.
8184 * i960/i960-c.c: Don't include c-lex.h.
8185 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
8186 * i960/t-960bare: Update.
8187 * i960/t-vxworks: Update.
8188 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
8189 * rs6000/t-darwin: Update.
8190 * rs6000/t-rs6000-c-rule: Update.
8191 * v850/v850-c.c: Don't include c-lex.h.
8192 * v850/v850.c: Don't include c-lex.h or cpplib.h.
8195 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
8197 * tree.def: Fix typos.
8198 * doc/install.texi: Likewise.
8200 2002-05-25 Richard Henderson <rth@redhat.com>
8202 * configure.in (HAVE_AS_TLS): Add ia64 test.
8203 * configure: Rebuild.
8204 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
8205 (override_options): Set it.
8206 (TARGET_HAVE_TLS): New.
8207 (sdata_symbolic_operand): Look for 's'.
8208 (tls_symbolic_operand): New.
8209 (ia64_expand_load_address): Abort for tls symbols.
8210 (gen_tls_get_addr): New.
8211 (gen_thread_pointer): New.
8212 (ia64_expand_move): Split out from movdi. Handle tls symbols.
8213 (rtx_needs_barrier): Add new unspecs.
8214 (ia64_encode_section_info): Handle tls symbols.
8215 (ia64_strip_name_encoding): Strip two encoding chars.
8216 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
8217 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
8218 (TARGET_OPTIONS): Add tls-size.
8219 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
8220 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
8221 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
8222 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
8223 (movsf, movdf): Likewise.
8224 (movdi_symbolic): Use match_scratch. Don't split if we won't
8225 have a scratch availiable.
8226 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
8227 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
8228 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
8229 * config/ia64/ia64-protos.h: Update.
8230 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
8231 sdata_symbolic_operand.
8232 (ASM_OUTPUT_LABELREF): Strip two characters.
8234 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
8236 * combine.c (simplify_set): Remove an unnecessary subreg.
8238 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
8240 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
8242 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
8244 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
8246 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
8248 2002-05-25 Roger Sayle <roger@eyesopen.com>
8250 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
8251 (cond (compare x y) 0) into the equivalent (cond x y).
8253 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
8255 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
8257 2002-05-24 Zack Weinberg <zack@codesourcery.com>
8259 * config.gcc: Remove all stanzas for previously obsoleted
8260 systems. Where necessary, add explicit error stanzas to
8261 prevent removed systems from being misidentified as something
8262 else. Begin a fresh obsoletions list, with the systems that
8263 were reprieved last round.
8264 * doc/install.texi: Remove all mention of dead targets.
8265 * fixinc/mkfixinc.sh: Likewise.
8267 * config/arm/arm.h: Bit 31 of target_flags is no longer
8270 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
8271 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
8272 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
8273 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
8274 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
8275 config/alpha/osf12.h, config/alpha/osf2or3.h,
8276 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
8277 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
8278 config/clipper/clipper-protos.h, config/clipper/clipper.c,
8279 config/clipper/clipper.h, config/clipper/clipper.md,
8280 config/clipper/clix.h, config/convex/convex-protos.h,
8281 config/convex/convex.c, config/convex/convex.h,
8282 config/convex/convex.md, config/convex/fixinc.convex,
8283 config/convex/proto.h, config/elxsi/elxsi-protos.h,
8284 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
8285 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
8286 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
8287 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
8288 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
8289 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
8290 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
8291 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
8292 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
8293 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
8294 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
8295 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
8296 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
8297 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
8298 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
8299 config/m68k/altos3068.h, config/m68k/apollo68.h,
8300 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
8301 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
8302 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
8303 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
8304 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
8305 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
8306 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
8307 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
8308 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
8309 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
8310 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
8311 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
8312 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
8313 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
8314 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
8315 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
8316 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
8317 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
8318 config/mips/dec-osf1.h, config/mips/elflorion.h,
8319 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
8320 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
8321 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
8322 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
8323 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
8324 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
8325 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
8326 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
8327 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
8328 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
8329 config/ns32k/sequent.h, config/ns32k/tek6000.h,
8330 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
8331 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
8332 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
8333 config/sparc/rtems.h, config/we32k/we32k-protos.h,
8334 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
8337 2002-05-24 Richard Henderson <rth@redhat.com>
8339 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
8340 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
8341 * config/i386/i386.c (tls_model_chars): Add leading space.
8342 (tls_symbolic_operand): Don't bias by 1.
8343 (legitimize_address): Don't unbias by 1.
8345 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
8347 * lcm.c (optimize_mode_switching): Change bb used as indices
8350 2002-05-24 Richard Henderson <rth@redhat.com>
8352 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
8353 of update_life_info_in_dirty_blocks.
8355 2002-05-24 Jakub Jelinek <jakub@redhat.com>
8358 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
8360 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
8362 PR preprocessor/6780
8363 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
8365 2002-05-24 Jim Blandy <jimb@redhat.com>
8367 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
8368 entry with a type code of zero, marking the end of the compilation
8371 2002-05-24 Richard Henderson <rth@redhat.com>
8373 * varasm.c (asm_output_bss): Always output one byte.
8374 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
8376 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
8378 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
8381 2002-05-24 Andreas Jaeger <aj@suse.de>
8383 * ggc-page.c (alloc_page): Cast variables of type size_t to
8384 unsigned long, adjust printf format string.
8385 (ggc_alloc): Likewise.
8386 (ggc_print_statistics): Likewise.
8387 (ggc_print_statistics): Correct printf format string for SCALE to
8390 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
8392 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
8394 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
8395 Zack Weinberg <zack@codesourcery.com>
8397 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
8399 * dwarf2out.c (lookup_filename): Properly quote filename in .file
8400 directive in assembly file.
8401 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
8402 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
8403 * config/pj/pj.h (ASM_FILE_START): Likewise.
8404 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
8405 * config/avr/avr.c (asm_file_end): Likewise.
8406 * toplev.c (output_quoted_string): Handle possibly signed plain
8408 * toplev.h (output_clean_symbol_name): Declare
8409 * toplev.c (output_clean_symbol_name): Define.
8410 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
8411 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
8413 2002-05-24 Alan Modra <amodra@bigpond.net.au>
8415 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
8417 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
8419 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
8420 of size of unsigned.
8422 2002-05-23 Richard Henderson <rth@redhat.com>
8424 * configure.in (HAVE_AS_TLS): New test.
8425 * config.in, configure: Rebuild.
8426 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
8427 (ix86_tls_dialect_string, ix86_tls_dialect): New.
8428 (override_options): Set it.
8429 (tls_model_chars, tls_symbolic_operand): New.
8430 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
8431 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
8432 (local_exec_symbolic_operand): New.
8433 (get_pic_label_name): Merge into output_set_got.
8434 (ix86_asm_file_end): Emit pic_label_name if defined.
8435 (legitimate_constant_p, constant_address_p): New.
8436 (legitimate_pic_operand_p): New.
8437 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
8438 (legitimate_address_p): Likewise.
8439 (ix86_encode_section_info): Rename from i386_; handle tls decls.
8440 (ix86_strip_name_encoding): New.
8441 (get_thread_pointer): New.
8442 (legitimize_address): Handle tls symbols.
8443 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
8445 (struct machine_function): Add some_ld_name.
8446 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
8447 (print_operand) [&]: Use it. Handle UNSPEC_TP.
8448 (output_addr_const_extra): New.
8449 (maybe_get_pool_constant): New.
8450 (ix86_split_to_parts): Use it.
8451 (ix86_expand_move): Handle tls symbols.
8452 (ix86_tls_get_addr): New.
8453 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
8454 (TARGET_OPTIONS): Add tls-dialect.
8455 (CONSTANT_ADDRESS_P): Use new out-of-line function.
8456 (LEGITIMATE_CONSTANT_P): Likewise.
8457 (LEGITIMATE_PIC_OPERAND_P): Likewise.
8458 (TARGET_STRIP_NAME_ENCODING): New.
8459 (ASM_OUTPUT_LABELREF): New.
8460 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
8461 (OUTPUT_ADDR_CONST_EXTRA): New.
8462 (PREDICATE_CODES): Update.
8463 (ix86_tls_dialect, ix86_tls_dialect_string): New.
8464 * config/i386/i386.md: Regroup and renumber unspec constants.
8465 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
8466 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
8467 (tls_global_dynamic, tls_local_dynamic_base): New.
8468 (tls_local_dynamic_once): New.
8469 * config/i386/i386-protos.h: Update.
8471 2002-05-23 Richard Henderson <rth@redhat.com>
8473 * genemit.c (gen_insn): Print file:lineno comment before function.
8475 * gensupport.c (struct queue_elem): Add filename member.
8476 (queue_pattern): Initialize it; update all callers.
8477 (process_include): Don't free filename.
8478 (read_md_rtx): Set read_rtx_filename.
8480 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
8482 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
8484 2002-05-23 Richard Henderson <rth@redhat.com>
8486 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
8488 2002-05-23 Richard Henderson <rth@redhat.com>
8490 * doc/extend.texi (C++98 Thread-Local Edits): Update with
8491 commentary from Mark.
8493 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8495 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
8496 Use FOR_EACH_BB macros to iterate over basic block chain.
8497 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
8498 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
8500 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
8501 find_unreachable_blocks, create_edge_list, verify_edge_list,
8502 remove_fake_edges, add_noreturn_fake_exit_edges,
8503 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
8505 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
8506 find_sub_basic_blocks): Likewise.
8507 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
8509 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
8511 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
8513 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
8514 commit_edge_insertions, commit_edge_insertions_watch_calls,
8515 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
8516 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
8517 * conflict.c (conflict_graph_compute): Likewise.
8518 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
8519 df_modified_p, df_refs_unlink, df_dump): Likewise.
8520 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
8521 * final.c (compute_alignments): Likewise.
8522 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
8523 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
8524 count_or_remove_death_notes): Likewise.
8525 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
8526 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
8527 classic_gcse, compute_transp, cprop, compute_pre_data,
8528 compute_transpout, invalidate_nonnull_info,
8529 delete_null_pointer_checks_1, delete_null_pointer_checks,
8530 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
8531 compute_store_table, build_store_vectors, store_motion): Likewise.
8532 * global.c (global_conflicts, mark_elimination): Likewise.
8533 * graph.c (print_rtl_graph_with_bb): Likewise.
8534 * haifa-sched.c (sched_init): Likewise.
8535 * ifcvt.c (if_convert): Likewise.
8536 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
8537 compute_available, compute_nearerout, compute_rev_insert_delete,
8538 optimize_mode_switching): Likewise.
8539 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
8540 * predict.c (estimate_probability, note_prediction_to_br_prob,
8541 propagate_freq, counts_to_freqs, expensive_function_p,
8542 estimate_bb_frequencies): Likewise.
8543 * profile.c (instrument_edges, get_exec_counts,
8544 compute_branch_probabilities, compute_checksum, branch_prob,
8545 find_spanning_tree): Likewise.
8546 * recog.c (split_all_insns, peephole2_optimize): Likewise.
8547 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
8549 * regclass.c (scan_one_insn, regclass): Likewise.
8550 * regmove.c (mark_flags_life_zones, regmove_optimize,
8551 record_stack_memrefs): Likewise.
8552 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
8553 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
8554 * resource.c (find_basic_block): Likewise.
8555 * sched-ebb.c (schedule_ebbs): Likewise.
8556 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
8557 find_single_block_region, find_rgns, schedule_insns)
8558 * sibcall.c (optimize_sibling_and_tail_recursive_call)
8559 * ssa-ccp.c (optimize_unexecutable_edges,
8560 ssa_ccp_df_delete_unreachable_insns): Likewise.
8561 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
8562 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
8563 rename_block, convert_to_ssa, compute_conservative_reg_partition,
8564 compute_coalesced_reg_partition, rename_equivalent_regs,
8565 convert_from_ssa): Likewise.
8566 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
8567 process_for_unwind_directive): Likewise.
8569 * df.c (FOR_ALL_BBS): Removed.
8570 * gcse.c (struct null_pointer_info): Type of current_block field
8572 (struct reg_avail_info): Type of last_bb field changed.
8573 * config/ia64/ia64.c (block_num): Removed.
8574 (need_copy_state): Type changed.
8577 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
8579 * cppinit.c (mark_named_operators): Split out from init_builtins.
8580 (cpp_finish_options): Call it from here instead.
8582 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
8584 * builtin-attrs.def: Update copyright years.
8585 (ATTR_NONNULL): New attribute identifier.
8586 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
8587 attribute tree lists.
8588 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
8590 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
8591 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
8592 attribute lists. Chain the appropriate nonnull attribute.
8593 * c-format.c (check_format_arg): Remove null format string
8595 * testsuite/gcc.dg/format/null-1.c: New test.
8597 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8599 * Makefile.in (ADAC): Define.
8601 (.SUFFIXES): Move before language makefile fragments.
8602 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
8604 2002-05-23 Mark Mitchell <mark@codesourcery.com>
8606 * varasm.c (make_decl_rtl): Don't allow weak variables to be
8609 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
8611 * cfg.c (dump_flow_info): Print results of
8612 maybe_hot/probably_never_executed predicates.
8613 * toplev.c (open_dump_file): Print function frequency.
8615 2002-05-23 David S. Miller <davem@redhat.com>
8617 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
8620 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
8622 * c-common.c (warn_nonnull): Declare.
8623 (c_common_attribute_table): Add "nonnull" attribute.
8624 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
8625 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
8626 check_function_arguments_recurse): New functions.
8627 * c-common.h (warn_nonnull): Declare extern.
8628 (check_function_arguments, check_function_arguments_recurse): New
8630 * c-decl.c (c_decode_option): Add -Wnonnull option.
8631 * c-format.c (set_Wformat): Set warn_nonnull if enabling
8633 (format_check_context): New structure.
8634 (check_format_info_recurse): Remove recursion and rename to...
8635 (check_format_arg): ...this. Update comment.
8636 (check_format_info): Use check_function_arguments_recurse.
8637 * c-typeck.c (build_function_call): Call check_function_arguments
8638 instead of check_function_format.
8639 * doc/extend.texi: Document "nonnull" attribute.
8640 * doc/invoke.texi: Docuemnt -Wnonnull option.
8641 * testsuite/gcc.dg/nonnull-1.c: New test.
8642 * testsuite/gcc.dg/nonnull-2.c: New test.
8644 2002-05-23 David S. Miller <davem@redhat.com>
8646 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
8647 * cfgcleanup.c (cleanup_cfg): If it is set do not
8648 attempt to delete trivially dead insns.
8649 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
8650 * toplev.c (rest_of_compilation): Document non-trivial aspect
8651 the RTL before optimize_save_area_alloca is run.
8653 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
8655 * c-lex.c (indent_level): Remove.
8656 (cb_file_change, c_lex): Remove indent level handling.
8657 * c-lex.h (indent_level): Remove.
8658 * input.h (struct file_stack): Remove indent_level.
8659 * toplev.c (push_srcloc): Remove indent_level handling.
8661 2002-05-23 Jakub Jelinek <jakub@redhat.com>
8664 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
8665 of x in constraints for clarity.
8666 (sse_mov?fcc split): abort if op2 == op3.
8667 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
8668 sse_movsfcc_const0_4): Add earlyclobber.
8669 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
8670 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
8671 Use Y instead of x in constraints.
8673 2002-05-23 Richard Henderson <rth@redhat.com>
8675 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
8676 (C++98 Thread-Local Edits): New subsection.
8678 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
8679 (ix86_arch): Set type to enum processor_type.
8681 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
8682 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
8684 2002-05-23 Jakub Jelinek <jakub@redhat.com>
8686 * configure.in: Fix as version test for binutils 2.12.1 releases
8688 * configure: Rebuilt.
8690 2002-05-23 Richard Henderson <rth@redhat.com>
8692 * config/i386/i386.c (get_pic_label_name): New.
8693 (load_pic_register): Remove.
8694 (output_set_got): New.
8695 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
8696 * config/i386/i386.md (UNSPEC_SET_GOT): New.
8697 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
8698 (prologue_set_got, prologue_get_pc): Remove.
8699 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
8700 (builtin_setjmp_receiver): Use gen_set_got.
8701 * config/i386/i386-protos.h: Update.
8703 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
8705 * gcse.c (hash_expr): Do not use alias set for hashing.
8707 2002-05-22 Kevin Buettner <kevinb@redhat.com>
8709 * dbxout.c (dbxout_class_name_qualifiers): New function.
8710 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
8712 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
8714 * cpperror.c (_cpp_begin_message): No special casing
8716 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
8717 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
8718 * cpplib.c (do_include_common): Use DL_ERROR.
8719 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
8721 * fix-header.c (read_scan_file): Update.
8723 2002-05-22 Richard Henderson <rth@redhat.com>
8725 * config/i386/i386.c (ix86_expand_call): New function, extracted
8726 from md call patterns. Add pic_offset_table_rtx to
8727 CALL_INSN_FUNCTION_USAGE when needed.
8728 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
8729 (call_value_pop, call_value, untyped_call): Likewise.
8730 (call_exp, call_value_exp): Remove.
8731 * config/i386/i386-protos.h: Update.
8733 2002-05-22 Richard Henderson <rth@redhat.com>
8735 * varasm.c (default_section_type_flags): Check for VAR_DECL
8736 before using DECL_THREAD_LOCAL.
8738 2002-05-22 David Edelsohn <edelsohn@gnu.org>
8740 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
8741 (STARTFILE_SPEC): Delete PE crt0.o.
8742 * config/rs6000/aix51.h: Same.
8743 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
8744 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
8745 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
8746 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
8747 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
8749 2002-05-22 Richard Henderson <rth@redhat.com>
8751 * varasm.c (default_section_type_flags): Handle tls data and
8753 (default_unique_section): Handle tls sections.
8755 2002-05-23 Alan Modra <amodra@bigpond.net.au>
8757 * configure.in (CROSS): Define NATIVE_CROSS.
8758 * configure: Regenerate.
8759 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
8760 (startfile_prefix_spec): New var.
8761 (static_specs): Add startfile_prefix_spec.
8762 (do_spec_2): Split out from..
8764 (main): Process startfile_prefix_spec.
8765 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
8767 (STARTFILE_PREFIX_SPEC): Define.
8768 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
8771 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
8773 * cpperror.c: Fix formatting.
8774 * cppexp.c: Likewise.
8775 * cppfiles.c: Likewise.
8776 * cpphash.c: Likewise.
8777 * cpphash.h: Likewise.
8778 * cppinit.c: Likewise.
8779 * cpplex.c: Likewise.
8780 * cpplib.c: Likewise.
8781 * cppmacro.c: Likewise.
8782 * cppmain.c: Likewise.
8783 * cppspec.c: Likewise.
8785 2002-05-22 Jakub Jelinek <jakub@redhat.com>
8787 * combine.c (force_to_mode): Use gen_int_mode.
8788 Don't clear CONST_INT bits outside of mode.
8790 2002-05-22 Richard Henderson <rth@redhat.com>
8792 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
8793 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
8795 2002-05-22 Jakub Jelinek <jakub@redhat.com>
8798 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
8799 if DECL_SIZE_UNIT is INTEGER_CST.
8801 2002-05-22 Richard Henderson <rth@redhat.com>
8803 * flow.c (life_analysis): Delete broken reg_label check.
8805 2002-05-22 Richard Henderson <rth@redhat.com>
8807 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
8808 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
8810 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
8812 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
8813 (embed-bb.c): New rule.
8814 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
8815 * config/sh/embed_bb.c: Delete.
8817 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
8819 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
8821 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
8823 * config/h8300/h8300.md (*andorqi3): New.
8825 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
8827 PR preprocessor/6517
8828 * Makefile.in: Update.
8829 * c-common.c (c_common_post_options): Add preprocessor
8830 errors to the error count.
8831 * c-lang.c (c_post_options): Kill.
8832 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
8833 * hooks.h: Add header guards.
8834 * langhooks-def.h: Include hooks.h.
8835 (LANG_HOOKS_POST_OPTIONS): Update.
8836 * langhooks.h (struct lang_hooks): Update post_options.
8837 * toplev.c (parse_options_and_default_flags): Update.
8839 * objc-lang.c (objc_post_options): Kill.
8840 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
8842 2002-05-21 Bruce Korb <bkorb@gnu.org>
8844 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
8845 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
8846 * fixinc/fixincl.x: regen.
8848 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
8850 * cfgbuild.c: Fix formatting.
8852 * cfgcleanup.c: Likewise.
8853 * cfglayout.c: Likewise.
8854 * cfgloop.c: Likewise.
8855 * cfgrtl.c: Likewise.
8857 2002-05-21 Richard Henderson <rth@redhat.com>
8859 * c-common.h (enum rid): Add RID_THREAD.
8860 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
8861 (grokdeclarator): Grok __thread.
8862 * c-parse.in (reswords): Add __thread.
8863 (rid_to_yy): Add RID_THREAD.
8865 * tree.h (DECL_THREAD_LOCAL): New.
8866 (struct tree_decl): Add thread_local_flag.
8867 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
8868 * tree.c (staticp): TLS variables are not static.
8870 * target-def.h (TARGET_HAVE_TLS): New.
8871 * target.h (have_tls): New.
8872 * output.h (SECTION_TLS): New.
8873 * varasm.c (assemble_variable): TLS variables can't be common for now.
8874 (default_section_type_flags): Handle .tdata and .tbss.
8875 (default_elf_asm_named_section): Handle SECTION_TLS.
8876 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
8878 * flags.h (flag_tls_default): Declare.
8879 * toplev.c (flag_tls_default): Define.
8880 (display_help): Display help for it.
8881 (decode_f_option): Set it.
8883 * doc/extend.texi (Thread-Local): New node describing language-level
8884 thread-local storage.
8885 * doc/invoke.texi (-ftls-model): Document.
8887 * fixinc/inclhack.def (thread_keyword): New.
8888 * fixinc/fixincl.x: Rebuild.
8890 2002-05-21 Jeffrey A Law <law@redhat.com>
8892 * optabs.c (expand_binop): For double-word integer multiplies,
8893 do not compute intermediate results into something that is
8894 not a register (such as a SUBREG or MEM).
8896 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
8897 (ix86_sched_reorder): Make sure to initialize scheduling
8898 data even when there's only one insn in the ready queue.
8900 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
8902 * genautomata.c (reserv_sets_hash_value): Fix a typo.
8904 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
8906 * genautomata.c (reserv_sets_hash_value): Define hash_value as
8907 set_el_t. Transform the hash value into unsigned.
8908 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
8909 (transform_3): Add code to process `(A,B)+(D,E)'.
8911 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
8913 * reload1.c (do_output_reload): Run delete_output_reload
8916 2002-05-21 Roger Sayle <roger@eyesopen.com>
8919 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
8920 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
8921 (can_store_by_pieces): ... and here to limit the largest mode used.
8922 Add a comment to document this function.
8924 2002-05-21 Richard Henderson <rth@redhat.com>
8926 * flow.c (life_analysis): Fix test for deleted label.
8928 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
8930 * doc/tm.texi: Fix typo.
8932 2002-05-21 Zack Weinberg <zack@codesourcery.com>
8934 * c-common.c (c_common_init): Set options->unsigned_char from
8936 (cb_register_builtins): Define __STRICT_ANSI__ and
8937 __CHAR_UNSIGNED__ here...
8938 * cppinit.c (init_builtins): Not here.
8939 (cpp_create_reader): unsigned_char option defaults to 0, not
8940 !DEFAULT_SIGNED_CHAR.
8941 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
8942 and -funsigned-char.
8944 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
8945 * cpphash.c (_cpp_init_hashtable): Don't set it.
8946 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
8947 directly. Clarify comment.
8949 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8951 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
8952 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
8953 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
8954 BASIC_BLOCK (n_basic_blocks - 1).
8955 * cfganal.c (can_fallthru, flow_call_edges_add,
8956 flow_preorder_transversal_compute): Too.
8957 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
8958 find_sub_basic_blocks): Too.
8959 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
8960 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
8961 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
8962 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
8963 * combine.c (this_basic_block): Type changed to basic_block.
8964 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
8965 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
8966 get_last_value, distribute_notes, distribute_links): Too.
8967 * final.c (compute_alignments): Too.
8968 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
8969 * function.c (thread_prologue_and_epilogue_insns): Too.
8970 * gcse.c (compute_code_hoist_vbeinout): Too.
8971 * global.c (build_insn_chain): Too.
8972 * ifcvt.c (find_if_block, find_cond_trap): Too.
8973 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
8974 * regmove.c (regmove_optimize): Too.
8975 * resource.c (find_basic_block): Too.
8976 * sched-ebb.c (schedule_ebbs): Too.
8977 * ssa-dce.c (find_control_dependence, find_pdom): Too.
8979 2002-05-21 Andreas Jaeger <aj@suse.de>
8981 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
8983 2002-05-21 Richard Henderson <rth@redhat.com>
8985 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
8986 unspec names, not numbers.
8988 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
8990 * doc/sourcebuild.texi: Mention snapshot-README and
8991 snapshot-index.html as needing updating for new front ends.
8993 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8995 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
8996 disabling checking, and avoid multiple evaluation of RTX.
8998 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
9000 * bitmap.c (bitmap_find_bit): Return early if we have the correct
9003 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
9005 * profile.c (gen_edge_profiler): Set alias set before the memory is
9008 2002-05-20 David S. Miller <davem@redhat.com>
9010 * cselib.c (max_value_regs): New.
9011 (cselib_lookup, cselib_invalidate_regno): Initialize it when
9012 adding new entries to the REG_VALUES table and we are dealing with
9014 (clear_table): Initialize it.
9015 (cselib_invalidate_regno): Use it to determine which hard
9016 registers to scan when mode is not VOIDmode.
9018 2002-05-20 Duraid Madina <duraid@fl.net.au>
9020 * tradcpp.c (fixup_newlines): Use old-style function header.
9022 2002-05-20 Krister Walfridsson <cato@df.lth.se>
9024 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
9026 2002-05-20 H.J. Lu (hjl@gnu.org)
9028 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
9030 * config/mips/mips.h (DFMODE_NAN): Defined.
9031 (SFMODE_NAN): Likewise.
9033 2002-05-20 Dale Johannesen <dalej@apple.com>
9035 * combine.c (cant_combine_insn_p): Back out my
9038 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9040 * params.c: Fix formatting.
9041 * params.h: Likewise.
9042 * predict.c: Likewise.
9043 * prefix.c: Likewise.
9044 * print-rtl.c: Likewise.
9045 * print-tree.c: Likewise.
9046 * profile.c: Likewise.
9048 2002-05-20 H.J. Lu (hjl@gnu.org)
9050 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
9052 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
9054 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
9055 switches straight on to the assembler, do not abbreviate them.
9056 * config/arm/elf.h (ASM_SPEC): As above.
9057 * config/arm/semi.h (ASM_SPEC): As above.
9058 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
9059 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
9060 -mcpu=xscale on to the assembler by default.
9061 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
9063 2002-05-20 Richard Henderson <rth@redhat.com>
9065 * cse.c (canon_hash): Reorder do_not_record test. Always
9066 allow pic_offset_table_rtx.
9068 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
9070 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
9071 (expand_binop): Ditto (3 times).
9073 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
9075 * Makefile.in (distclean): Remove QMTest stuff.
9076 (QMTEST_PATH): New variable.
9077 (QMTESTFLAGS): Likewise.
9078 (QMTESTRUNFLAGS): Likewise.
9080 (QMTEST_GPP_TESTS): Likewise.
9081 (QMTEST_DIR): Likewise.
9082 (QMTEST_DIR/context): New target.
9083 (qmtest-g++): Likeise.
9084 (qmtest-gui): Likewise.
9085 (QMTEST_DIR/gpp-expected.qmr): Likewise.
9087 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
9089 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
9090 an altivec register if TARGET_ALTIVEC.
9092 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
9093 to ALTIVEC_VECTOR_MODE.
9094 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
9095 (rs6000_va_arg): Vectors may go in registers if they are not
9098 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
9100 * protoize.c: Fix formatting.
9102 2002-05-19 Richard Henderson <rth@redhat.com>
9104 * gensupport.c (init_include_reader): Merge into ...
9105 (process_include): ... here. Simplify composite path creation.
9106 Plug memory leaks. Fix file/line number tracking. Do not
9107 process_define_cond_exec. Return void.
9108 (process_rtx): Don't check process_include return value.
9110 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9112 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
9114 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
9115 traversing basic block chain.
9116 (create_basic_block_structure, create_basic_block): Declaration changed.
9117 (link_block, unlink_block): Declare.
9118 * cfg.c (entry_exit_blocks): Initialize new fields.
9119 (link_block, unlink_block): New.
9120 (expunge_block_nocompact): Unlink basic block.
9121 (dump_flow_info): Print prev_bb/next_bb fields.
9122 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
9123 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
9124 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
9125 * cfgrtl.c (create_basic_block_structure, create_basic_block,
9126 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
9127 (verify_flow_info): Check that list agrees with numbering.
9129 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
9131 * c-common.c (preprocessing_asm): New macro.
9132 * c-lex.h (builtin_define, builtin_assert): Use pfile.
9136 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
9137 (CPP_SPEC): Simplify.
9138 (TARGET_CPU_CPP_BUILTINS): Update.
9139 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
9140 (CPP_SPEC): Simplify.
9141 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
9142 (TARGET_OS_CPP_BUILTINS): Update.
9143 * osf.h (CPP_XFLOAT_SPEC): Kill.
9144 (TARGET_OS_CPP_BUILTINS): Update.
9145 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
9146 * osf5.h (CPP_XFLOAT_SPEC): Kill.
9147 * vms.h (CPP_SUBTARGET_SPEC): Kill.
9148 (TARGET_OS_CPP_BUILTINS): Update.
9150 2002-05-19 Richard Henderson <rth@redhat.com>
9152 * varasm.c (default_binds_local_p): Fix typo.
9154 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
9156 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
9157 CONST_INT operand to the correct mode after adding 1 to it.
9159 2002-05-19 Mark Mitchell <mark@codesourcery.com>
9161 * config.gcc (powerpc-wrs-windiss*): New target.
9163 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9165 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
9168 2002-05-18 Mark Mitchell <mark@codesourcery.com>
9170 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
9172 * config.in: Regenerated.
9173 * configure: Regenerated.
9175 2002-05-19 Richard Henderson <rth@redhat.com>
9177 * target-def.h (TARGET_BINDS_LOCAL_P): New.
9178 * target.h (struct gcc_target): Move boolean fields to the end.
9180 * varasm.c (default_binds_local_p): New.
9181 * output.h: Declare it.
9183 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
9184 * config/cris/cris.c (cris_encode_section_info): Likewise.
9185 * config/i386/i386.c (i386_encode_section_info): Likewise.
9186 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
9187 * config/sh/sh.c (sh_encode_section_info): Likewise.
9189 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
9190 (TARGET_BINDS_LOCAL_P): New.
9192 2002-05-19 Richard Henderson <rth@redhat.com>
9194 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
9195 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
9196 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
9198 * toplev.c (display_help): Kill -a -ax help.
9200 * config/1750a/1750a.h, config/alpha/alpha.h,
9201 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
9202 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
9203 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
9204 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
9206 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
9207 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
9209 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
9210 (ix86_output_function_block_profiler): Kill.
9211 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
9212 (m68hc11_function_block_profiler): Kill.
9213 * config/m68hc11/m68hc11-protos.h: Update.
9214 * config/m88k/m88k.c (output_block_profiler): Kill.
9215 (output_function_block_profiler): Kill.
9216 * config/m88k/m88k-protos.h: Update.
9218 2002-05-19 Richard Henderson <rth@redhat.com>
9220 * system.h (STRIP_NAME_ENCODING): Poison it.
9221 * output.h (STRIP_NAME_ENCODING): Remove.
9222 (default_strip_name_encoding): Declare.
9223 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
9224 * target.h (strip_name_encoding): New.
9225 * varasm.c (default_strip_name_encoding): New.
9227 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
9228 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
9229 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
9230 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
9231 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
9232 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
9233 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
9234 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
9235 config/v850/v850.h: Use the hook, not the macro.
9237 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
9238 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
9239 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
9240 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
9241 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
9242 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
9243 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
9244 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
9245 config/v850/v850.c, config/v850/v850.h:
9246 Move STRIP_NAME_ENCODING to out-of-line function and add
9247 TARGET_STRIP_NAME_ENCODING.
9249 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
9250 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
9251 with TARGET_STRIP_NAME_ENCODING referencing existing function;
9252 make function static.
9254 * xcoffout.c: Include target.h
9255 * Makefile.in (xcoffout.o): Update.
9257 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
9258 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
9259 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
9260 reloc argument unused.
9261 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
9263 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
9264 STRIP_NAME_ENCODING docs.
9266 2002-05-19 Andreas Jaeger <aj@suse.de>
9268 * gengenrtl.c: Add prototype for excluded_rtx.
9270 * real.h: Add prototype for exact_real_truncate.
9272 2002-05-18 Richard Henderson <rth@redhat.com>
9274 * system.h (ENCODE_SECTION_INFO): Poison it.
9275 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
9276 * target.h (encode_section_info): New.
9277 * varasm.c (make_decl_rtl, output_constant_def): Use it.
9278 * hooks.c (hook_tree_int_void): New.
9279 * hooks.h: Declare it.
9281 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
9282 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
9283 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
9284 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
9285 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
9286 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
9287 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
9288 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
9289 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
9290 config/mcore/mcore-protos.h, config/mcore/mcore.c,
9291 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
9292 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
9293 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
9294 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
9295 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
9296 referencing existing function. Make function static.
9298 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
9299 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
9300 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
9301 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
9302 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
9303 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
9304 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
9305 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
9306 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
9307 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
9308 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
9309 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
9310 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
9311 Move ENCODE_SECTION_INFO to out-of-line function and add
9312 TARGET_ENCODE_SECTION_INFO.
9314 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
9315 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
9317 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
9319 (switch_to_section): Replace in_rdata case with in_readonly_data.
9321 * config/h8300/h8300.c (h8300_encode_label): Make static.
9322 * config/h8300/h8300-protos.h: Update.
9324 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
9325 from rs6000_encode_section_info; make static.
9326 (rs6000_xcoff_encode_section_info): New.
9328 * config/v850/v850.c (v850_encode_data_area): Make static.
9329 * config/v850/v850-protos.h: Update.
9331 * config/vax/vax.c: Include flags.h.
9332 (vms_select_section): Fix typo.
9334 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
9335 ENCODE_SECTION_INFO docs.
9337 2002-05-18 Richard Henderson <rth@redhat.com>
9339 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
9340 REGISTER_TARGET_PRAGMAS.
9341 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
9343 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
9345 2002-05-18 Richard Henderson <rth@redhat.com>
9347 * system.h (SELECT_RTX_SECTION): Poison.
9348 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
9349 * target.h (select_rtx_section): New.
9350 * varasm.c (output_constant_pool): Use it.
9351 (default_select_rtx_section, default_elf_select_rtx_section): New.
9352 * output.h: Declare them.
9354 * config/darwin.h (SELECT_RTX_SECTION): Move ...
9355 * config/darwin.c (machopic_select_rtx_section): ... here.
9356 * config/darwin-protos.h: Update.
9358 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
9359 * config/nextstep.c (machopic_select_rtx_section): ... here.
9360 (nextstep_select_section): Rename variable to avoid macro clash.
9361 * config/nextstep-protos.h: Update.
9363 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
9364 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
9365 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
9366 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
9367 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
9368 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
9369 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
9370 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
9371 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
9372 (SELECT_RTX_SECTION): Remove.
9374 * config/darwin.h, config/elfos.h, config/nextstep.h,
9375 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
9376 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
9377 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
9378 config/sparc/lynx.h, config/xtensa/xtensa.c
9379 (TARGET_ASM_SELECT_RTX_SECTION): New.
9381 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
9382 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
9383 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
9384 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
9385 (ia64_aix_select_rtx_section): New.
9386 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
9388 * config/mips/mips.c (mips_select_rtx_section): Make static.
9389 Support ELF SHF_MERGE features.
9390 * config/mips/mips-protos.h: Update.
9391 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
9392 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
9393 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
9394 make static, fall back to default_elf_select_rtx_section.
9395 * config/rs6000/rs6000-protos.h: Update.
9396 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
9397 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
9398 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
9399 * config/romp/romp.c (romp_select_rtx_section): New.
9400 * config/s390/s390.c (s390_select_rtx_section): New.
9401 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
9402 declarations before target macro definition.
9403 (xtensa_emit_call): Use static buffer.
9404 (xtensa_select_rtx_section): New.
9405 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
9406 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
9407 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
9409 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
9410 SELECT_RTX_SECTION docs.
9412 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
9414 * i386.md (movsi/movdi): Fix template.
9415 (sse2 patterns): Set attributes consistently.
9417 * i386.md (pushqi2, ashrqi_*): Fix constraint.
9419 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
9421 * optabs.c (complex_part_zero_p): New.
9422 * (expand_cmplxdiv_straight): Use it.
9423 * (expand_cmplxdiv_wide): Ditto.
9424 * (expand_binop): Ditto.
9426 2002-05-18 Richard Henderson <rth@redhat.com>
9428 * final.c (HAVE_READONLY_DATA_SECTION): New.
9429 (shorten_branches): Use it instead of ifdefs.
9430 * varasm.c (enum in_section): Add in_readonly_data.
9431 (text_section, data_section): Tidy.
9432 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
9434 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
9435 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
9436 (READONLY_DATA_SECTION): Don't undef.
9438 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
9439 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
9440 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
9442 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
9443 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
9444 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
9445 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
9447 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
9448 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
9449 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
9450 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
9451 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
9452 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
9453 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
9454 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
9455 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
9457 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
9458 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
9459 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
9460 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
9461 config/pa/pa64-hpux.h, config/sparc/litecoff.h
9462 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
9464 * config/elfos.h, config/netware.h, config/svr3.h,
9465 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
9466 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
9467 config/h8300/h8300.h, config/i386/i386-interix.h,
9468 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
9469 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
9471 * config/elfos.h, config/netware.h, config/svr3.h,
9472 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
9473 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
9474 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
9475 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
9477 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
9478 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
9479 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
9480 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
9481 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
9482 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
9483 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
9484 config/rs6000/sysv4.h, config/v850/v850.h
9485 (EXTRA_SECTIONS): Remove in_const/in_rdata.
9486 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
9488 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
9489 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
9490 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
9491 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
9492 * config/alpha/alpha.c (alpha_start_function): Likewise.
9493 (alpha_write_linkage): Likewise.
9494 * config/m32r/m32r.c (m32r_select_section): Likewise.
9495 * config/m88k/m88k.c (m88k_select_section): Likewise.
9496 * config/mips/mips.c (mips_select_rtx_section): Likewise.
9497 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
9498 (rs6000_elf_select_section): Likewise.
9499 * config/v850/v850.c (v850_select_section): Likewise.
9501 * config/1750a/1750a.h, config/i860/sysv3.h
9502 (READONLY_DATA_SECTION_ASM_OP): New.
9503 READONLY_DATA_SECTION_ASM_OP.
9504 * config/i386/interix.c, config/i386/winnt.c
9505 (i386_pe_unique_section): Always use .rdata prefix.
9506 * config/pa/som.h (readonly_data): Always switch to read-only section.
9507 (READONLY_DATA_SECTION): Predicate on flag_pic.
9508 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
9509 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
9510 (READONLY_DATA_SECTION): Update.
9512 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
9514 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
9515 is used without -Wformat.
9516 * c-common.h (warn_format_zero_length): Declare extern.
9517 * c-decl.c (warn_options): Add "format-zero-length".
9518 * c-format.c (warn_format_zero_length): Declare.
9519 (set_Wformat): Set warn_format_zero_length for -Wformat.
9520 (check_format_info): Only warn about zero-length formats if
9521 warn_format_zero_length is true. Include the format type
9522 name in the warning message.
9523 * doc/invoke.texi: Document -Wformat-zero-length.
9524 * testsuite/gcc.dg/format/zero-length-1.c: New test.
9526 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
9528 * timevar.c: Fix formatting.
9529 * tlink.c: Likewise.
9530 * toplev.c: Likewise.
9531 * tree-dump.c: Likewise.
9532 * tree-inline.c: Likewise.
9534 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
9536 * cppinit.c (cpp_post_options): If preprocessed, turn off
9537 traditional. If traditional, turn off column numbers.
9538 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
9539 * cpptrad.c (handle_newline): Update line_base.
9540 (skip_comment): Handle -Wcomment.
9542 2002-05-17 Zack Weinberg <zack@codesourcery.com>
9544 * cppinit.c (struct builtin): Remove unused fields.
9545 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
9546 (operator_array): New - was second half of builtin_array.
9547 (init_builtins): Simplify loop over builtin_array/operator_array.
9549 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
9551 * defaults.h (UNIQUE_SECTION): Remove.
9552 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
9554 2002-05-17 Richard Henderson <rth@redhat.com>
9556 * expr.c (init_expr_once): Don't use start/end_sequence.
9557 Use rtx_alloc instead of emit_insn.
9558 * toplev.c (lang_dependent_init): Run init_expr_once here ...
9559 (lang_independent_init): ... not here.
9561 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9563 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
9565 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
9567 * config/avr/avr.c (avr_regs_to_save): New function. Also check
9568 for fixed registers, possibly used for global register variables.
9569 (initial_elimination_offset, avr_output_function_prologue,
9570 avr_output_function_epilogue): Move common code to avr_regs_to_save.
9572 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
9574 * Makefile.in: Update for cpptrad.c.
9575 * cpphash.h (struct cpp_buffer): New members for buffer
9577 (struct cpp_reader): New members for traditional output.
9578 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
9579 * cppinit.c (cpp_create_reader): Set trad_line.
9580 (cpp_destroy): Free trad_out_base if used.
9581 (cpp_read_main_file): Overlay an empty buffer if traditional.
9582 (cpp_finish_options): Don't do builtins.
9583 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
9584 (cpp_handle_option): Handle it.
9585 * cpplex.c (continue_after_nul): New.
9586 (_cpp_lex_direct): Use handle_nul.
9587 * cpplib.h (struct cpp_options): New traditional option.
9588 * cpptrad.c: New file.
9590 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
9592 * c-common.c (c_common_init_options): Use C89 for Objective-C,
9593 and set the options flag.
9594 * cppinit.c (lang_flags): Remove objc.
9595 (lang_defaults): Remove OBJC and OBJCXX.
9597 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
9598 (cpp_handle_option): Remove -+ and -lang-objc++.
9599 For ObjC, just set a flag.
9600 (print_help): Update.
9601 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
9603 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9605 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
9606 bootstrap with -mips3.
9608 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
9610 * final.c: Fix formatting.
9611 * fix-header.c: Likewise.
9613 * fold-const.c: Likewise.
9614 * function.c: Likewise.
9616 2002-05-17 David S. Miller <davem@redhat.com>
9618 PR c/6689, PR optimization/6615
9619 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
9620 and make it a pointer to rtx. Update comments.
9621 (update_equiv_regs): When scanning for equivalences, record
9622 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
9623 it while making the equiv replacements.
9625 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9627 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
9629 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
9631 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
9632 when encoding visibility into SYMBOL_REF_FLAG.
9634 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
9636 * expr.c (force_operand): Fix reversed move.
9638 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
9640 * doc/install.texi (Testing): Mention two common DejaGnu warnings
9641 that can be ignored.
9643 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9645 * doc/install.texi (Final install): Recommend to install into a
9646 "clean" target directory.
9648 2002-05-17 Richard Henderson <rth@redhat.com>
9650 * config/ia64/ia64.md: Use braced strings instead of quoted strings
9651 for code blocks. Tidy whitespace.
9653 2002-05-17 Richard Henderson <rth@redhat.com>
9655 * hooks.c (hook_tree_bool_false): New.
9656 * hooks.h: Declare it.
9657 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
9658 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
9659 * target.h (select_section, unique_section): New.
9660 (in_small_data_p): New.
9661 * varasm.c (resolve_unique_section): Use hooks instead of macros.
9662 (variable_section, output_constant_def_contents): Likewise.
9663 (default_select_section, default_unique_section): New.
9664 (categorize_decl_for_section, default_elf_select_section): New.
9665 * output.h: Declare them.
9667 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
9668 (TARGET_ASM_SELECT_SECTION): New.
9669 (SELECT_SECTION): Move ...
9670 * config/darwin.c (machopic_select_section): ... here.
9671 * config/darwin-protos.h: Update.
9673 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
9674 (SELECT_SECTION): Move ...
9675 * config/nextstep.c (nextstep_select_section): ... here.
9676 * config/nextstep-protos.h: Update.
9678 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
9679 (TARGET_ASM_SELECT_SECTION): New.
9680 * config/svr3.h (SELECT_SECTION): Remove.
9682 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
9683 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
9684 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
9685 (alpha_encode_section_info): Use it.
9686 * config/alpha/alpha-protos.h: Update.
9687 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
9688 (SELECT_SECTION, UNIQUE_SECTION): Remove.
9689 (TARGET_ASM_SELECT_SECTION): New.
9690 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
9692 * config/arm/pe.h (UNIQUE_SECTION): Remove.
9693 (TARGET_ASM_UNIQUE_SECTION): New.
9695 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
9696 (avr_unique_section): Rename from unique_section; make static.
9697 * config/avr/avr-protos.h: Update.
9698 * config/avr/avr.h (UNIQUE_SECTION): Remove.
9700 * config/c4x/c4x.h (SELECT_SECTION): Remove.
9702 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
9703 (TARGET_ASM_UNIQUE_SECTION): New.
9704 * config/i386/i386-interix.h: Likewise.
9705 * config/i386/win32.h: Likewise.
9706 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
9707 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
9708 * config/i386/sco5.h (SELECT_SECTION): Remove.
9709 (TARGET_ASM_SELECT_SECTION): New.
9710 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
9712 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
9713 instead of SELECT_SECTION.
9714 * config/m68k/dpx2.h: Likewise.
9715 * config/rs6000/lynx.h: Likewise.
9717 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
9718 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
9719 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
9720 (ia64_in_small_data_p): New.
9721 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
9722 (ia64_aix_select_section, ia64_aix_unique_section): New.
9723 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
9724 (SELECT_SECTION, UNIQUE_SECTION): Remove.
9726 * config/m32r/m32r.h (SELECT_SECTION): Remove.
9727 (TARGET_ASM_SELECT_SECTION): New.
9728 * config/m32r/m32r.c (m32r_select_section): Take align argument.
9729 * config/m32r/m32r-protos.h: Update.
9731 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
9732 (SELECT_SECTION): Move ...
9733 * config/m88k/m88k.c (m88k_select_section): ... here.
9735 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
9736 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
9737 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
9738 (mcore_unique_section): Make static.
9739 * config/mcore/mcore-protos.h: Update.
9741 * config/mips/elf.h (UNIQUE_SECTION): Remove.
9742 (TARGET_ASM_UNIQUE_SECTION): New.
9743 * config/mips/elf64.h: Likewise.
9744 * config/mips/iris6gld.h: Likewise.
9745 * config/mips/linux.h: Likewise.
9746 * config/mips/mips-protos.h: Update.
9747 * config/mips/mips.c (mips_select_section): Add align argument.
9748 * config/mips/mips.h (SELECT_SECTION): Remove.
9749 (TARGET_ASM_SELECT_SECTION): New.
9751 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
9752 * config/mmix/mmix.c (mmix_select_section): Remove.
9753 (mmix_unique_section): Remove.
9754 * config/mmix/mmix-protos.h: Update.
9756 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
9757 (SELECT_SECTION): Move ...
9758 * config/pa/pa.c (pa_select_section): ... here.
9759 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
9761 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
9762 from rs6000_select_section and make static.
9763 (rs6000_elf_unique_section): Similarly.
9764 (rs6000_xcoff_select_section): From xcoff.h.
9765 (rs6000_xcoff_unique_section): Likewise.
9766 * config/rs6000/rs6000-protos.h: Update.
9767 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
9768 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
9769 * config/rs6000/xcoff.h: Likewise.
9771 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
9772 (SELECT_SECTION): Move ...
9773 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
9775 * config/v850/v850.h (SELECT_SECTION): Move ...
9776 * config/v850/v850.c (v850_select_section): ... here.
9777 (TARGET_ASM_SELECT_SECTION): New.
9779 * config/vax/vms.h (SELECT_SECTION): Move ...
9780 * config/vax/vax.c (vms_select_section): ... here.
9781 (TARGET_ASM_SELECT_SECTION): New.
9783 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
9784 for the target hooks.
9786 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
9788 * config/arm/arm.c (emit_multi_reg_push): Do not set
9789 RTX_FRAME_RELATED_P on the SEQUENCE.
9791 2002-05-16 Richard Henderson <rth@redhat.com>
9793 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
9794 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
9796 2002-05-16 Richard Henderson <rth@redhat.com>
9798 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
9800 * config/ia64/ia64.c (saveable_obstack): Do not declare.
9802 2002-05-16 Richard Henderson <rth@redhat.com>
9804 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
9805 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
9806 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
9807 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
9808 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
9809 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
9810 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
9811 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
9812 Revert "Basic block renumbering removal", and two followup patches.
9814 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
9816 * lcm.c (optimize_mode_switching): Revert previous change.
9818 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9820 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
9821 with only extant block numbers.
9823 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
9825 * lcm.c (optimize_mode_switching): Fix typo.
9827 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9829 * flow.c (calculate_global_regs_live): Queue blocks in program order.
9831 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9833 * doc/install.texi (Configuration): Document PWDCMD.
9835 2002-05-16 Dale Johannesen <dalej@apple.com>
9837 * combine.c (cant_combine_insn_p): Reenable combinations
9838 involving hard regs unless CLASS_LIKELY_SPILLED_P.
9840 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
9842 * c-common.c (cb_register_builtins): Handle more built-ins
9843 here rather than in gcc.c specs.
9844 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
9845 (cpp_options): Pass -O flags even when only preprocessing.
9846 * toplev.c (set_fast_math_flags): New prototype.
9847 (fast_math_flags_set_p): New.
9848 (set_no_fast_math_flags): Remove.
9849 (decode_f_option): Update.
9850 * toplev.h (set_fast_math_flags): Update.
9851 (fast_math_flags_set_p): New.
9852 (set_no_fast_math_flags): Remove.
9854 * c4x/c4x.c (c4x_override_options): Update.
9856 2002-05-16 Zack Weinberg <zack@codesourcery.com>
9858 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
9859 Default-define here.
9860 (builtin_define_with_value): Can now wrap the expansion in
9861 quotation marks if such is wanted.
9862 (cb_register_builtins): Update calls to builtin_define_with_value.
9863 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
9865 (c_common_init): Set options->stdc_0_in_system_headers.
9866 * c-lex.h: Update prototype of builtin_define_with_value.
9867 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
9868 and REGISTER_PREFIX.
9870 * cppinit.c (VERS, ULP, C, X): Kill.
9871 (builtin_array): Remove entries for __VERSION__,
9872 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
9873 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
9875 (init_builtins): Kill off a bunch of now-dead code.
9876 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
9877 -fno-leading-underscore.
9878 (cpp_handle_option): Remove code to set user_label_prefix.
9879 (cpp_post_options): Likewise.
9881 * cpplib.h (struct cpp_options): Remove user_label_prefix.
9882 (stdc_0_in_system_headers): New.
9883 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
9884 stdc_0_in_system_headers) too to decide the value of __STDC__.
9886 * tradcpp.c (user_label_prefix): Kill.
9887 (main): Remove code handling -f(no-)leading-underscore.
9888 (initialize_builtins): Don't define __REGISTER_PREFIX__
9889 or __USER_LABEL_PREFIX__.
9890 (install_value): Wrap compound statement in dummy loop so the
9891 macro works properly in an if statement.
9894 2002-05-16 Janis Johnson <janis187@us.ibm.com>
9896 * loop.h (struct loop_info): Add member has_prefetch.
9897 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
9898 (prescan_loop): Initialize has_prefetch.
9899 (struct prefetch_info): Change prefetch_in_loop and
9900 prefetch_before_loop from bit fields to ints.
9901 (emit_prefetch_instructions): Several small fixes.
9902 (check_dbra_loop): Don't reverse loop that uses prefetch.
9904 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9906 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
9907 * configure.in: Likewise.
9908 * fixinc/check.tpl: Likewise.
9909 * fixinc/fixinc.dgux: Likewise.
9910 * fixinc/fixinc.svr4: Likewise.
9911 * fixinc/fixinc.winnt: Likewise.
9912 * fixinc/fixincl.sh: Likewise.
9913 * fixproto: Likewise.
9914 * configure: Regenerate.
9916 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9918 Basic block renumbering removal:
9919 * basic_block.h (struct basic_block_def): Renamed index to sindex,
9920 added prev_bb and next_bb fields.
9921 (n_basic_blocks): Renamed to num_basic_blocks.
9922 (last_basic_block): New, index of last basic block.
9923 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
9924 traversing basic block chain.
9925 (BLOCK_NUM): index -> sindex.
9926 (create_basic_block_structure, create_basic_block): Declaration changed.
9927 (debug_num2bb): Declare.
9928 (expunge_block_nocompact): Declaration removed.
9929 (link_block, unlink_block, compact_blocks): Declare.
9930 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
9931 * cfg.c (entry_exit_blocks): Initialize new fields.
9932 (clear_edges, alloc_block, expunge_block, cached_make_edge,
9933 redirect_edge_pred, dump_flow_info, dump_edge_info,
9934 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
9935 free_aux_for_edges): Modified.
9936 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
9937 (expunge_block_nocompact): Removed.
9938 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
9939 find_unreachable_blocks, create_edge_list, print_edge_list,
9940 verify_edge_list, flow_edge_list_print, remove_fake_successors,
9941 remove_fake_edges, flow_reverse_top_sort_order_compute,
9942 flow_depth_first_order_compute, flow_preorder_transversal_compute,
9943 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
9944 flow_dfs_compute_reverse_execute): Modified.
9945 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
9946 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
9948 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
9949 merge_blocks_move_predecessor_nojumps,
9950 merge_blocks_move_successor_nojumps, merge_blocks,
9951 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
9952 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
9953 * cfglayout.c (skip_insns_after_block, label_for_bb,
9954 record_effective_endpoints, scope_to_insns_finalize,
9955 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
9956 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
9957 cfg_layout_duplicate_bb): Modified.
9958 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
9959 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
9960 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
9961 flow_loops_find, flow_loop_outside_edge_p): Modified.
9962 * cfgrtl.c (create_basic_block_structure, create_basic_block,
9963 flow_delete_block, compute_bb_for_insn, split_block,
9964 try_redirect_by_replacing_jump, redirect_edge_and_branch,
9965 force_nonfallthru_and_redirect, tidy_fallthru_edge,
9966 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
9967 commit_edge_insertions, commit_edge_insertions_watch_calls,
9968 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
9969 purge_all_dead_edges): Modified.
9970 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
9971 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
9972 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
9974 * conflict.c (conflict_graph_compute): Modified.
9975 * df.c (FOR_ALL_BBS): Removed.
9976 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
9977 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
9978 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
9979 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
9980 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
9981 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
9982 * final.c (compute_alignments, final_scan_insn): Modified.
9983 * flow.c (verify_local_live_at_start, update_life_info,
9984 update_life_info_in_dirty_blocks, free_basic_block_vars,
9985 delete_noop_moves, calculate_global_regs_live,
9986 initialize_uninitialized_subregs, allocate_bb_life_data,
9987 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
9988 mark_used_reg, count_or_remove_death_notes): Modified.
9989 * function.c (thread_prologue_and_epilogue_insns): Modified.
9990 * gcse.c (struct null_pointer_info): Change typo of current_block
9992 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
9993 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
9994 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
9995 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
9996 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
9997 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
9998 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
9999 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
10000 pre_delete, one_pre_gcse_pass, compute_transpout,
10001 invalidate_nonnull_info, delete_null_pointer_checks_1,
10002 free_code_hoist_mem, compute_code_hoist_vbeinout,
10003 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
10004 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
10005 compute_store_table, build_store_vectors, insert_insn_start_bb,
10006 insert_store, replace_store_insn, free_store_memory, store_motion):
10008 * global.c (global_alloc, global_conflicts, mark_elimination,
10009 build_insn_chain): Modified.
10010 * graph.c (print_rtl_graph_with_bb): Modified.
10011 * haifa-sched.c (sched_init): Modified.
10012 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
10013 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
10014 if_convert): Modified.
10015 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
10016 compute_insert_delete, pre_edge_lcm, compute_available,
10017 compute_farthest, compute_nearerout, compute_rev_insert_delete,
10018 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
10020 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
10021 * loop.c (loop_dump_aux): Modified.
10022 * predict.c (combine_predictions_for_insn, estimate_probability,
10023 last_basic_block_p, process_note_prediction, process_note_predictions,
10024 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
10025 expensive_function_p, estimate_bb_frequencies,
10026 compute_function_frequency): Modified.
10027 * print-rtl.c (print_rtx): Modified.
10028 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
10029 get_exec_counts, compute_branch_probabilities, compute_checksum,
10030 branch_prob, find_spanning_tree): Modified.
10031 * recog.c (split_all_insns, peephole2_optimize): Modified.
10032 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
10033 convert_regs_1, convert_regs_2, convert_regs): Modified.
10034 * regclass.c (scan_one_insn, regclass): Modified.
10035 * regmove.c (mark_flags_life_zones, regmove_optimize,
10036 combine_stack_adjustments): Modified.
10037 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
10038 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
10039 * reorg.c (dbr_schedule): Modified.
10040 * resource.c (find_basic_block, init_resource_info): Modified.
10041 * sbitmap.c (sbitmap_intersection_of_succs,
10042 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
10043 sbitmap_union_of_preds): Modified.
10044 * sched-deps.c (init_dependency_caches): Modified.
10045 * sched-ebb.c (schedule_ebbs): Modified.
10046 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
10047 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
10048 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
10049 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
10050 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
10051 ssa_const_prop): Modified.
10052 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
10053 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
10054 * ssa.c (remove_phi_alternative, find_evaluations,
10055 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
10056 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
10057 make_regs_equivalent_over_bad_edges,
10058 make_equivalent_phi_alternatives_equival,
10059 compute_conservative_reg_partition,
10060 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
10061 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
10064 2002-05-16 Mark Mitchell <mark@codesourcery.com>
10066 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
10068 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
10070 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
10071 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
10072 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
10073 calling CONSTANT_POOL_ADDRESS_P.
10074 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
10075 to decide whether to define __arm__ or __thumb.
10076 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
10077 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
10079 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
10081 * config/arc/arc.h (CPP_PREDEFINES): Remove.
10082 (CPP_SPEC): Update.
10083 (TARGET_CPU_CPP_BUILTINS): New.
10085 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
10087 * cpphash.h (cpp_macro): Move here, and make expansion a union.
10088 * cppmacro.c (cpp_macro): Remove.
10089 (enter_macro_context, replace_args, warn_of_redefinition,
10090 _cpp_create_definition, cpp_macro_definition): Update.
10092 2002-05-16 Jason Merrill <jason@redhat.com>
10094 * config/mips/mips.c (mips_output_external): Don't do sdata
10095 optimization for a variable with DECL_COMDAT set.
10097 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
10099 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
10100 Cleanups for accepting modifiers on pointers.
10101 Fix predicate typos.
10102 Allow long pointers as well as int pointers.
10104 2002-05-15 Richard Henderson <rth@redhat.com>
10106 * varasm.c (merge_weak): Remove special case for extern and common.
10108 2002-05-15 Matt Hiller <hiller@redhat.com>
10110 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
10112 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
10113 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
10114 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
10115 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
10116 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
10117 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
10119 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
10121 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
10123 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
10125 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
10126 ("altivec_mfvscr"): Read from VSCR.
10128 Add vscr sets for the following insns: altivec_vctuxs,
10129 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
10130 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
10131 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
10132 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
10133 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
10134 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
10135 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
10136 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
10137 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
10138 altivec_vsum2sws, altivec_vsumsws.
10140 * config/rs6000/rs6000.h: Add VSCR fixed register.
10141 (CALL_REALLY_USED_REGISTERS): Add vscr.
10142 (CALL_USED_REGISTERS): Same.
10143 (FIXED_REGISTERS): Same.
10144 (REG_ALLOC_ORDER): Same.
10145 (reg_class): Add VSCR_REGS.
10146 (REG_CLASS_NAMES): Same.
10147 (REG_CLASS_CONTENTS): Same.
10149 (REGISTER_NAMES): Add vscr.
10150 (DEBUG_REGISTER_NAMES): Same.
10151 (ADDITIONAL_REGISTER_NAMES): Same.
10152 (FIRST_PSEUDO_REGISTER): Increment.
10153 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
10155 2002-05-15 Jakub Jelinek <jakub@redhat.com>
10157 * fold-const.c (fold): Fix a typo.
10159 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
10161 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
10162 comparison against the highest or lowest integer value before
10163 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
10164 transformation and that of an unsigned comparison against 0
10167 2002-05-15 Richard Henderson <rth@redhat.com>
10169 * varasm.c (merge_weak): Error for any weakening after definition.
10170 Adjust weakening after use warning to catch more cases.
10171 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
10172 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
10174 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
10176 * invoke.texi (-malign-double): Re-add lost warning.
10178 * i386-protos.h (x86_output_mi_thunk): Declare.
10179 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
10180 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
10182 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
10183 when flag_asynchronous_unwind_tables is set.
10185 * flags.h (flag_reorder_functions): Declare.
10186 * function.c (prepare_function_start): Initialize frequnecy.
10187 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
10188 * Makefile.in (predict.o): Add dependency on target.h and params.h
10189 * defaults.h (HOT_TEXT_SECTION_NAME,
10190 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
10191 * predict.c (choose_function_section): New function.
10192 (estimate_bb_frequencies): Use it.
10193 * toplev.c (flag_reorder_functions): New global variable.
10194 (lang_independent_options): New.
10195 (parse_options_and_default_flags): Set.
10196 * varasm.c (assemble_start_function): Bypass functdion alignment
10197 for never executed functions.
10198 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
10199 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
10200 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
10203 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
10205 * predict.c: Inlude profile.h
10206 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
10207 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
10208 Use the information about maximal counter in the program.
10210 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
10212 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
10213 probably_never_executed_bb_p): New functions.
10214 * cfgcleanup.c (outgoing_edges_match): Use them.
10215 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
10216 (maybe_hot_bb_p, probably_cold_bb_p,
10217 probably_never_executed_bb_p): New functions.
10219 * function.h (function): Add new field function_frequency.
10220 * predict.c (compute_function_frequency): New function.
10221 (estimate_probability): Call it.
10223 2002-03-09 Jakub Jelinek <jakub@redhat.com>
10225 PR optimization/5172, optimization/5200
10226 * gcse.c (gcse_main): Disable store_motion.
10228 2002-05-14 Zack Weinberg <zack@codesourcery.com>
10230 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
10231 (c_common_nodes_and_builtins): Use it.
10232 (builtin_define_with_value): New function.
10233 (cb_register_builtins): Define __SIZE_TYPE__,
10234 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
10235 using builtin_define_with_value. Use consistent notation when
10236 defining __GXX_WEAK__.
10237 (WCHAR_TYPE_SIZE): Don't redefine.
10238 (combine_strings): Don't use WCHAR_TYPE_SIZE.
10240 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
10241 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
10242 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
10243 * tradcpp.c (initialize_builtins): Likewise.
10244 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
10246 * c-lex.h (builtin_define_with_value): Prototype.
10247 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
10248 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
10249 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
10251 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
10252 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
10253 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
10254 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
10255 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
10256 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
10257 config/sparc/sol2-bi.h, config/sparc/sparc.h:
10258 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
10259 to __SIZE_TYPE__ etc from all spec strings. When this makes
10260 extra specs empty, delete them.
10262 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
10264 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
10265 for PA8000 or generating dwarf2 call frame information.
10266 (output_call): Remove DO_FRAME_NOTES check from return pointer
10268 (following_call): Return 0 when scheduling for PA8000 or generating
10269 dwarf2 call frame information. Revise comment.
10271 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
10274 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
10275 and __IEEE_FP_INEXACT as appropriate.
10276 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
10277 (CPP_SPEC): Remove ieee defines.
10278 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
10280 2002-05-14 Richard Henderson <rth@redhat.com>
10282 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
10283 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
10285 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
10287 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
10288 (CPP_SPEC): Update.
10289 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
10290 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
10291 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
10292 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
10293 (EXTRA_SPECS): Update.
10294 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
10295 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
10296 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
10297 define TARGET_OS_CPP_BUILTINS if necessary.
10299 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
10301 * gcc.c (cpp_options): Must pass -m* and -f* options
10302 to the front end even when only preprocessing.
10303 (cc1_options): Remove redundant -lang-c.
10304 * tradcpp.c (main): Ignore -m options.
10306 * lang-specs.h: Similarly.
10308 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
10310 * genautomata.c (transform_3): Add code for transformation
10311 `(A,B,...)+C -> A+C,B,...'.
10313 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
10315 * final.c (end_final): Do not output profile_arcs constructor, when
10316 no functions are instrumented.
10318 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
10320 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
10322 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10324 * doc/install.texi: Remove special markup originally required for
10325 HTML generation with texi2html.
10327 2002-05-14 Andreas Schwab <schwab@suse.de>
10329 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
10331 (UNIQUE_SECTION): Define to get small data correctly.
10333 * varasm.c (resolve_unique_section): Add third parameter
10334 flag_function_or_data_sections and use it instead of
10335 flag_function_sections.
10336 (assemble_start_function): Pass flag_function_sections.
10337 (asm_emit_uninitialised): Pass flag_data_sections.
10338 (assemble_variable): Likewise.
10340 2002-05-14 Richard Henderson <rth@redhat.com>
10342 * config/i386/i386.md: Use define_constants for unspec numbers.
10343 * config/i386/i386.c: Likewise.
10345 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
10347 * doc/contrib.texi: Update my entry.
10349 2002-05-13 Mark Mitchell <mark@codesourcery.com>
10351 * fixinc/inclhack.def (winidss_valist): Limit applicability.
10352 * fixinc/fixincl.x: Regenerated.
10353 * fixinc/tests/base/math.h: Update.
10354 * fixinc/tests/base/testing.h: Likewise.
10356 2002-05-13 Zack Weinberg <zack@codesourcery.com>
10358 * genattr.c (gen_attr): Don't emit a comma after the last
10361 2002-05-13 Richard Henderson <rth@redhat.com>
10363 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
10364 by non-local gotos.
10365 * recog.c (peephole2_optimize): Likewise.
10367 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
10369 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
10372 2002-05-13 Jeffrey A Law (law@redhat.com)
10374 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
10375 Update prototype and callers.
10376 (propagate_one_insn): Stack pointer adjustments kill MEMs on
10377 the mem_set_list which reference the stack pointer, as do
10378 calls to constant functions as they may clobber outgoing
10381 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
10383 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
10384 (ia32_multipass_dfa_lookahead): New function.
10386 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
10388 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
10389 (translate_options): Remove 'V'.
10390 (process_command): Similarly.
10392 * invoke.texi: Remove documentation of 'V'.
10394 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
10396 * config/s390/linux.h: Revert 2002-04-22 changes.
10398 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
10400 * config/fr30/fr30.md: Only allow splits of immediate loads
10401 if the destination is a register.
10403 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
10405 * Makefile.in (c-common.o, cppinit.o): Update.
10406 * c-common.c: Include except.h.
10407 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
10408 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
10409 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
10410 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
10411 CPP_PREDEFINES): Handle here.
10413 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
10414 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
10415 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
10416 TARGET_OS_CPP_BUILTINS.
10417 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
10418 (CPP_SPEC, EXTRA_SPECS): Update.
10419 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
10420 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
10421 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
10422 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
10423 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
10425 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
10426 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
10428 2002-05-12 Zack Weinberg <zack@codesourcery.com>
10430 * emit-rtl.c (global_rtl): Update comment.
10431 (const_double_htab, const_double_htab_hash,
10432 const_double_htab_hash, lookup_const_double): New.
10433 (const_int_htab_hash, const_int_htab_eq): Remove const
10434 qualifiers, which cause tons of warnings with RTL checking on.
10435 (gen_rtx_CONST_DOUBLE): Deleted.
10436 (const_double_from_real_value): New function - bears some
10437 resemblance to the former immed_real_const_1.
10438 (immed_double_const): Moved here from varasm.c and
10440 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
10441 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
10442 (gen_rtx): Use immed_double_const.
10443 (init_emit_once): Initialize the const_double_htab. Use
10444 REAL_VALUE_FROM_INT where possible. Can now use
10445 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
10446 * varasm.c (struct varasm_status): Remove x_const_double_chain.
10447 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
10448 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
10449 (init_varasm_status, mark_varasm_status): Don't touch
10450 x_const_double_chain.
10452 * output.h: Delete prototype for clear_const_double_mem.
10453 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
10454 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
10455 const_double_from_real_value, not immed_real_const_1, and use
10456 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
10458 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
10459 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
10460 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
10461 (gen_rtx_REG): Second arg is unsigned.
10463 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
10464 (excluded_rtx): New, return true for CONST_DOUBLE.
10465 (genmacro): Write nothing for excluded codes.
10466 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
10467 * expr.c (expand_expr): Likewise.
10468 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
10469 CONST_DOUBLE_CHAIN.
10470 * toplev.c (rest_of_compilation): Don't call
10471 clear_const_double_mem.
10473 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
10474 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
10475 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
10476 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
10477 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
10478 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
10479 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
10480 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
10482 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10484 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
10486 2002-05-12 Tom Tromey <tromey@redhat.com>
10488 * tree.h (copy_node): Don't mention TREE_PERMANENT.
10490 2002-05-12 Zack Weinberg <zack@codesourcery.com>
10492 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
10493 (scan_comma_elt): New function. Accepts whitespace in comma lists.
10494 * gensupport.h: Prototype new routines.
10495 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
10497 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
10498 (next_comma_elt): Use scan_comma_elt.
10500 * config/i386/i386.md: Use new attribute notation to break up
10501 long lines in define_attr forms.
10503 2002-05-12 Richard Henderson <rth@redhat.com>
10505 * expr.c (compress_float_constant): New.
10506 (emit_move_insn): Use it.
10507 (float_extend_from_mem): New.
10508 (init_expr_once): Initialize it.
10509 * real.c (exact_real_truncate): New.
10511 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
10512 dropped into memory; penalize for size.
10513 (RTX_COSTS): FLOAT_EXTEND is free.
10514 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
10515 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
10517 2002-05-12 Richard Henderson <rth@redhat.com>
10519 * profile.h (profile_info): Add missing extern to declaration.
10520 * profile.c (profile_info): Define it.
10522 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
10524 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
10525 used for DImode and TImode.
10527 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
10529 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
10532 2002-05-11 Zack Weinberg <zack@codesourcery.com>
10534 * config/rs6000/rs6000.c (rs6000_default_long_calls,
10535 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
10536 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
10537 (rs6000_override_options): Handle -m(no-)longcall.
10538 (init_cumulative_args, output_mi_thunk): Check for both
10539 longcall and shortcall attributes on the function.
10540 (rs6000_attribute_table): Add "shortcall".
10541 (rs6000_handle_longcall_attribute): Update comment.
10542 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
10543 altivec_expand_ternop_builtin): Add default clauses to switches
10544 to silence warnings.
10546 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
10547 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
10548 (TARGET_OPTIONS): Add longcall and no-longcall.
10550 * config/rs6000/rs6000.md (call_nonlocal_sysv,
10551 call_value_nonlocal_sysv): Split by alternatives. One pair
10552 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
10553 the call cookie. The other pair accepts only LR/CTR and has
10556 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
10557 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
10559 * config/rs6000/rs6000-c.c: New file.
10560 * config/rs6000/t-rs6000-c-rule: New file.
10561 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
10562 Prototype rs6000_pragma_longcall.
10564 * doc/extend.texi: Document shortcall attribute.
10565 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
10567 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
10569 * reorg.c (dbr_schedule): Remove unnecessary test.
10571 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
10573 * i386.md (testsi to testqi spliters): New.
10575 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
10577 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
10579 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
10581 * basic-block.h: New flag EDGE_CAN_FALLTHRU
10582 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
10583 that can be made fallthru.
10585 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
10587 * cfglayout.c (cleanup_unconditional_jumps): New static function.
10588 (cfg_layout_initialize): Use it.
10590 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
10592 * config/avr/avr.c (avr_mcu_types): Update supported devices.
10593 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10594 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10596 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
10598 * dbxout.c: Fix formatting.
10599 * dependence.c: Likewise.
10601 * diagnostic.c: Likewise.
10602 * doloop.c: Likewise.
10603 * dominance.c: Likewise.
10604 * doschk.c: Likewise.
10605 * dwarf2asm.c: Likewise.
10606 * dwarf2out.c: Likewise.
10607 * dwarfout.c: Likewise.
10609 2002-05-10 Richard Henderson <rth@redhat.com>
10611 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
10612 Convert integers constants as needed. Replace "nwords" field with
10614 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
10615 * function.h: Fix typo in comment.
10616 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
10618 2002-05-10 Roger Sayle <roger@eyesopen.com>
10620 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
10621 into the equivalent (signed char)c > 0.
10623 2002-05-10 Janis Johnson <janis187@us.ibm.com>
10625 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
10626 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
10627 (struct prefetch_info): Fix spelling of member bytes_accessed.
10628 (emit_prefetch_instructions): Make dump messages more regular;
10629 restructure code to add more dump messages; use new macros for
10630 heuristics. (There are no code generation changes in any of this).
10632 2002-05-10 David S. Miller <davem@redhat.com>
10634 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
10635 (struct rtx_def): Update unchanging flag comment.
10636 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
10637 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
10638 to be handled to INSN too.
10639 (dbr_schedule): Likewise.
10640 * resource.c (next_insn_no_annul): Likewise.
10642 * cse.c (rtx_cost): Remove multiplication by power of 2 special
10645 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10647 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
10648 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
10649 (possibly) work around broken /bin/sh.
10651 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10653 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
10654 . as N64/N32 libgcc_s.so subdirs.
10656 2002-05-10 David S. Miller <davem@redhat.com>
10658 * config/sparc/sparc.md: Use define_constants for unspec numbers.
10660 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
10662 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
10664 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
10665 * doc/rtl.texi: Document these macros more accurately.
10666 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
10667 JUMP_INSNs and CALL_INSNs.
10668 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
10669 or INSN_FROM_TARGET_P if the code is appropriate.
10671 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
10673 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
10674 before using SYMBOL_REF_FLAG (addr).
10676 * config/avr/avr-protos.h (avr_io_address_p): Declare.
10677 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
10678 Make non-static. Update all callers.
10679 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
10680 New insns to clear/set/test a single bit in I/O address space.
10682 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10684 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
10686 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
10688 * Makefile.in: Update.
10689 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
10690 builtin_define_std): New.
10691 (c_common_init): Register CPP builtins callback.
10692 * c-common.h (flag_iso, flag_undef): New.
10693 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
10694 * c-lex.c: Don't include target.h.
10695 (cb_register_builtins): Move to c-common.c.
10696 (init_c_lex): Don't register hook here.
10697 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
10698 (cpp_define, cpp_assert): Remove.
10699 * gcc.c (cc1_options): Pass -undef to front end.
10700 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
10701 (TARGET_INITIALIZER): Update.
10702 * target.h (struct cpp_reader): Don't predeclare.
10703 (struct gcc_target): Remove cpp builtin hook.
10704 * tree.c (default_register_cpp_builtins): Remove.
10708 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
10710 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
10712 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10714 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
10715 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
10717 2002-05-09 Jakub Jelinek <jakub@redhat.com>
10719 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
10720 * config/sparc/libgcc-sparc-glibc.ver: New file.
10721 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
10722 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
10724 2002-05-09 Jakub Jelinek <jakub@redhat.com>
10727 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
10728 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
10729 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
10731 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
10732 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
10733 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
10734 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
10736 2002-05-09 Richard Henderson <rth@redhat.com>
10738 * config/ia64/ia64.md: Use define_constants for unspec numbers.
10739 * config/ia64/ia64.c: Likewise.
10741 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
10743 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
10744 (save_restore_insns): Likewise.
10745 (mips_expand_prologue, mips_expand_epilogue): Update callers.
10746 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
10748 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
10750 * athlon.md, k6.md, pentium.md, ppro.md): New files.
10751 * i386.md: Move scheduling information into new files.
10753 * i386.md (type attribute): Add "rotate" for rotate insns.
10754 (rotate insns): Set type to "rotate".
10755 (various attributes and function units): Treat rotate like shift.
10756 (pent_pair attribute): Only rotates by one bit position are
10758 (sbb insns): Explicitly set pent_pair attribute on a couple
10759 that were missing it.
10761 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
10763 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
10764 make sure that buffer starts on odd word address.
10765 (sh_va_arg): Skip odd fp registers when reading a double precision
10768 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
10770 * tree.h (preserve_data, object_permanent_p, type_precision):
10773 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
10775 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
10776 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
10778 * cpp.texi: Update for removal of obsolete features.
10780 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
10781 Jeffrey A Law (law@redhat.com)
10783 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
10784 the DFA interface for Pentium processors.
10785 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
10786 (attr_pent_pair, ix86_pent_find_pair): Remove.
10787 (ix86_sched_reorder_pentium): Remove.
10788 (ix86_sched_reorder): Remove reordering for Pentium.
10789 * i386.md (Pentium scheduling): Rewrite using DFA description.
10791 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
10793 * cfganal.c (can_fallthru): Fix fast path.
10794 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
10795 with edges to the next block.
10797 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
10798 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
10800 * final.c (end_final): Use C trees to output data structures for profiling.
10802 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
10803 (profile.o): New dependency profile.h
10804 (final.o): New dependency profile.h
10805 * profile.h: New file. New global structure profile_info.
10806 * final.h (count_edges_instrumented_now): Declare.
10807 (current_function_cfg_checksum): Declare.
10808 (function_list): New structure.
10809 (functions_head, functions_tail): New static variables.
10810 (end_final): Emits more data, removed some -ax stuff.
10811 (final): Stores function names and chcksums.
10812 * gcov-io.h (__write_gcov_string): New function.
10813 (__read_gcov_string): New function.
10814 * gcov.c (read_profile): New function.
10815 (create_program_flow_graph): Uses read_profile instead of reading
10817 (read_files): Removed da_file checking, it's done by read_profile now.
10818 * libgcc2.c (bb_function_info): New structure.
10819 (bb): New field in structure, removed some -ax stuff.
10820 (__bb_exit_func): Changed structure of da_file.
10821 * profile.c (count_edges_instrumented_now): New global variable.
10822 (current_function_cfg_checksum): New global variable.
10823 (max_counter_in_program): New global variable.
10824 (get_exec_counts): New function.
10825 (compute_checksum): New function.
10826 (instrument_edges): Sets count_edges_instrumented_now.
10827 (compute_branch_probabilities): Uses get_exec_counts instead of
10829 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
10830 (init_branch_prob): Removed da_file checking, done in get_exec_counts
10832 (end_branch_prob): Removed da_file checking, done in get_exec_counts
10834 * gcov.texi: Updated information about gcov file format.
10836 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
10838 * sbitmap.c: Fix formatting.
10839 * scan.c: Likewise.
10840 * scan-decls.c: Likewise.
10841 * sched-deps.c: Likewise.
10842 * sched-ebb.c: Likewise.
10843 * sched-rgn.c: Likewise.
10844 * sched-vis.c: Likewise.
10845 * sdbout.c: Likewise.
10846 * sibcall.c: Likewise.
10847 * simplify-rtx.c: Likewise.
10849 * ssa-ccp.c: Likewise.
10850 * ssa-dce.c: Likewise.
10851 * stmt.c: Likewise.
10852 * stor-layout.c: Likewise.
10853 * stringpool.c: Likewise.
10855 2002-05-09 David S. Miller <davem@redhat.com>
10857 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
10859 2002-05-07 David S. Miller <davem@redhat.com>
10861 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
10862 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
10863 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
10864 library implementation clobbers the output before the inputs
10865 are fully consumed, use stack temporary for the output.
10867 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
10869 * config/netbsd.h (CPP_SPEC): Remove.
10870 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
10871 * config/i386/netbsd.h (CPP_SPEC): Define.
10872 * config/ns32k/netbsd.h (CPP_SPEC): Define.
10873 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
10874 * config/sparc/netbsd.h (CPP_SPEC): Define.
10875 * config/vax/netbsd.h (CPP_SPEC): Define.
10877 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
10879 * read-rtl.c: Fix formatting.
10880 * real.c: Likewise.
10881 * recog.c: Likewise.
10882 * regclass.c: Likewise.
10883 * regmove.c: Likewise.
10884 * reg-stack.c: Likewise.
10885 * reload1.c: Likewise.
10886 * reload.c: Likewise.
10887 * resource.c: Likewise.
10888 * rtlanal.c: Likewise.
10890 * rtl-error.c: Likewise.
10892 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
10894 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
10895 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
10897 2002-05-08 Bernd Schmidt <bernds@redhat.com>
10899 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
10900 use __SSE2__ macro instead.
10901 * config/i386/xmmintrin.h: Likewise.
10903 2002-05-08 Janis Johnson <janis187@us.ibm.com>
10905 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
10906 and use it in all invocations of these macros. Clean up comments.
10907 * rtl.c (rtl_check_failed_flag): Add an argument for the name
10908 of the flag access macro whose check failed.
10909 * doc/rtl.texi (Flags): Document additional flag uses.
10911 2002-05-08 Robert Spier <rspier@pobox.com>
10912 Neil Booth <neil@daikokuya.demon.co.uk>
10914 PR preprocessor/6521
10915 * cppfiles.c (handle_missing_header): Don't do anything
10916 different for <> includes.
10918 * cppopts.texi: Update documentation for -MG.
10920 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
10922 * cpplex.c (cpp_interpret_charconst): Truncate as well as
10925 * cpp.texi: Clarify multichar charconst valuation.
10927 2002-05-08 Mark Mitchell <mark@codesourcery.com>
10929 * doc/invoke.texi: Document -mwindiss option.
10931 2002-05-08 Jason Merrill <jason@redhat.com>
10933 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
10935 * dwarf2out.c (gen_type_die): Abort on broken recursion.
10938 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
10941 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
10943 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
10944 little-endian multilibs to override arm/thumb multilibs.
10945 Do not build hardware floating point multilibs, nor apcs-26
10946 multilibs for the Thumb.
10948 2002-05-08 Mark Mitchell <mark@codesourcery.com>
10951 * varasm.c (mark_weak): New function.
10952 (merge_weak): Use it. Do not call declare_weak.
10953 (declare_weak): Use merge_weak.
10955 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
10957 * cse.c (dead_libcall_p): Update counts.
10958 (delete_trivially_dead_insns): Update call of dead_libcall_p.
10960 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
10962 * cfglayout.c (function_tail_eff_head): Rename to ...
10963 (function_footer): ... this one.
10964 (unlink_insn_chain): New functions.
10965 (label_for_bb): Only call block_label and emit debug message.
10966 (record_effective_endpoints): Actually unlink the headers and footers.
10967 (fixup_reorder_cahin): Re-insert the unlinked sequences.
10968 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
10969 * cfglayout.h (struct reorder_block_def): New fields footer/header;
10970 remove eff_head/eff_end.
10971 * rtl.h (set_first_insn): Declare.
10972 * emit-rtl.c (set_first_insn): New function.
10974 * cfglayout.c (fixup_reorder_chain): Dump duplicated
10975 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
10976 cfg_layout_duplicate_bb): New global function.
10977 (duplicate_insn_chain): New static function.
10978 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
10979 cfg_layout_duplicate_bb): Declare.
10980 (struct reorder_block_def): Add "original" field.
10981 * emit-rtl.c (emit_copy_of_insn_after): New function.
10982 * rtl.h (emit_copy_of_insn_after): Declare.
10984 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
10985 (fixup_reorder_chain): properly handle edges to exit block.
10987 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10988 Jan Hubicka <jh@suse.cz>
10990 * basic-block.h (note_prediction_to_br_prob): declare.
10991 * c-semantics.c: Inlucde predit.h
10992 (expand_stmt): predict GOTO_STMT as not taken.
10993 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
10994 (cleanup_cfg): Do not free tail_recursion_list.
10995 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
10996 (flow_delete_block): Kill predictions past end of basic block.
10997 * output.h (delete_unreachable_blocks): Declare.
10998 * predict.c (predicted_by_p, process_note_predictions,
10999 process_note_prediction, last_block_p): New function.
11000 (estimate_probability): Bypass loop on PRED_CONTINUE;
11001 do not handle noreturn heuristics; kill PRED_RETURN; add
11003 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
11004 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
11005 * predict.h (IS_TAKEN): New constant.
11006 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
11007 * rtl.c (NOTE_INSN_PREDICTION): New.
11008 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
11010 (insn_note): add NOTE_INSN_PREDICTION.
11011 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
11012 CFG; free tail_recursion_label_list.
11013 * stmt.c: Include predict.h;
11014 (return_prediction): New.
11015 (expand_value_return): Use it.
11016 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
11018 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
11020 * config/mips/mips.md: Name the unspecs with define_constant.
11021 (*HILO_delay): Rename to 'hilo_delay' (no star).
11022 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
11023 (reload_outdi, reload_outsi): Likewise.
11025 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
11027 * toplev.c: Fix formatting.
11029 2002-05-07 Janis Johnson <janis187@us.ibm.com>
11031 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
11032 * configure.in (ac_rtlflag_checking): New.
11033 * doc/install.texi (--enable-checking): Document RTL flag checking.
11035 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
11037 * c-common.c (c_common_init): Set options->unsigned_wchar.
11038 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
11039 group target dependencies.
11040 (init_builtins, cpp_handle_option): Update.
11041 * cpplex.c (cpp_interpret_charconst): Update.
11042 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
11043 signed_char to unsigned_char, group target dependencies.
11044 * defaults.h (WCHAR_UNSIGNED): Remove.
11045 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
11047 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
11048 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
11049 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
11050 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
11051 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
11053 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
11055 2002-05-07 Mark Mitchell <mark@codesourcery.com>
11057 * fixinc/inclhack.def (windiss_math1): New fix.
11058 (windiss_math2): Likewise.
11059 (windiss_valist): Likewise.
11060 * fixinc/fixincl.x: Regenerated.
11062 2002-05-07 Andreas Jaeger <aj@suse.de>
11064 * genautomata.c (output_internal_min_issue_delay_func): Add
11065 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
11066 (output_internal_trans_func): Likewise.
11068 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
11070 * pa.c (hppa_profile_hook): Use force_reg to get the address
11071 of the profile hook into an appropriate pseudo register.
11073 2002-05-07 Mark Mitchell <mark@codesourcery.com>
11075 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
11076 (LINK_START_SPEC): Handle it.
11077 (LINK_OS_SPEC): Likewise.
11078 (CPP_SPEC): Likewise.
11079 (STARTFILE_SPEC): Likewise.
11080 (LIB_SPEC): Likewise.
11081 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
11083 (CRTSAVRES_DEFAULT_SPEC): New macro.
11084 (LIB_WINDISS_SPEC): New macro.
11085 (CPP_OS_WINDISS_SPEC): Likewise.
11086 (STARTFILE_WINDISS_SPEC): Likewise.
11087 (ENDFILE_WINDISS_SPEC): Likewise.
11088 (LINK_START_WINDISS_SPEC): Likewise.
11089 (LINK_OS_WINDISS_SPEC): Likewise.
11090 * config/rs6000/windiss.h: New file.
11092 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
11094 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
11096 2002-05-06 David S. Miller <davem@redhat.com>
11098 * config/sparc/sparc.md (shift insns): Do not mask off
11099 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
11102 2002-05-06 Richard Henderson <rth@redhat.com>
11105 * expr.c (highest_pow2_factor_for_type): New.
11106 (expand_assignment): Use it.
11108 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
11110 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
11112 ("altivec_mfvscr"): Same.
11114 2002-05-06 Janis Johnson <janis187@us.ibm.com>
11116 * rtl.h (struct rtx_def): Update comments.
11117 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
11118 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
11119 RTL_FLAG_CHECK macros with list of expected RTL codes.
11120 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
11121 (rtl_check_failed_flag): New.
11122 * reload1.c (reload): Use REG macro before changing rtx to MEM.
11123 (reload_cse_noop_set_p): Check rtx code before using access macro.
11124 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
11125 before using access macro.
11127 2002-05-06 Janis Johnson <janis187@us.ibm.com>
11129 * doc/rtl.texi (Flags): Update to reflect current usage.
11131 2002-05-06 Roger Sayle <roger@eyesopen.com>
11134 * fold-const.c (sign_bit_p): New function.
11135 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
11136 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
11137 Reapply fold when converting (A & C) == C into (A & C) != 0.
11138 (fold_binary_op_with_conditional_arg): Fix typo in comment.
11140 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
11142 * c-common.c (warn_multichar): New.
11143 (c_common_init): Set CPP's warn_multichar.
11144 * c-common.h (warn_multichar): New.
11145 * c-decl.c (warn_multichar): Remove.
11146 * c-lex.c (lex_charconst): Update.
11147 * c-tree.h (warn_multichar): Remove.
11148 * cppexp.c (eval_token): Sign-extend charconst value.
11149 * cppinit.c (cpp_create_reader): Set warn_multichar.
11150 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
11151 each character. Update prototype. Sign-extend the result.
11152 * cpplib.h: Fix conditions.
11153 (struct cpp_options): Add new warning flag.
11154 (cpp_interpret_charconst): Update prototype.
11156 * cpp.texi: Update documentation.
11158 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
11160 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
11161 Fix typo in usage of allof instead of unit.
11163 2002-05-06 Richard Henderson <rth@redhat.com>
11165 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
11166 and any jump or call for IN.
11168 2002-05-06 Bernd Schmidt <bernds@redhat.com>
11170 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
11172 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
11174 2002-05-06 Roger Sayle <roger@eyesopen.com>
11176 * fold-const.c (lshift-double): Cast the high word to an unsigned
11177 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
11178 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
11179 avoid compiler warning. (fold): Remove redundant code from
11180 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
11182 2002-05-06 Jeff Law <law@redhat.com>
11184 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
11185 * pa.c (pa_adjust_cost): Remove all true dependency cost
11186 adjustments. Also remove support for non-DFA scheduling.
11187 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
11188 to adjust true dependency costs. Update various comments.
11189 (7100lc, 7200, 7300 scheduling): Simplify by combining the
11190 FP ALU & MPY units into a single unit.
11192 2002-05-06 Catherine Moore <clm@redhat.com>
11194 * config/v850/v850.c (compute_register_save_size): Make sure
11195 to count all of the registers that will be saved.
11197 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
11199 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
11201 2002-05-06 David S. Miller <davem@redhat.com>
11203 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
11204 allow result to overlap input operands in memory.
11206 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
11209 * cpp.texi: Update multichar charconst docs.
11211 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
11213 * cpplex.c (cpp_interpret_charconst): Sign-extend each
11214 character. Don't ignore excess characters. Treat
11215 multicharacter character constants as signed.
11216 (cpp_parse_escape): Clarify diagnostic.
11218 2002-05-05 Jakub Jelinek <jakub@redhat.com>
11220 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
11221 use add instead of shift.
11222 (ashldi3_sp64): Likewise.
11223 (ashlsi3_const1, ashldi3_const1): Remove.
11224 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
11225 * config/sparc/sparc.c (const1_operand): New.
11227 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
11229 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
11231 2002-05-05 Jakub Jelinek <jakub@redhat.com>
11234 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
11236 2002-05-05 Richard Henderson <rth@redhat.com>
11238 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
11239 memory latency adjustments.
11240 (alpha_variable_issue): Remove.
11241 (alpha_use_dfa_pipeline_interface): New.
11242 (alpha_multipass_dfa_lookahead): New.
11243 * config/alpha/alpha.md: Remove define_function_unit scheduling;
11244 include new dfa scheduling.
11245 (attr type): Add none.
11246 (blockage): Use it.
11247 * config/alpha/ev4.md: New.
11248 * config/alpha/ev5.md: New.
11249 * config/alpha/ev6.md: New.
11251 2002-05-05 David S. Miller <davem@redhat.com>
11253 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
11255 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
11257 * cse.c: Fix formatting.
11258 * emit-rtl.c: Likewise.
11260 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
11262 * genautomata.c (initiate_states): Add additional guard to
11263 initialize `units_array'.
11265 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
11267 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
11268 process_unit_to_form_the_same_automaton_unit_lists,
11269 form_the_same_automaton_unit_lists
11270 check_unit_distributions_to_automata): New prototypes and
11272 (check_automata): Rename it into `check_automata_insn_issues'.
11273 (unit_decl): New fields `the_same_automaton_unit' and
11274 `the_same_automaton_message_reported_p'.
11275 (unit_decl_t): New typedef.
11276 (the_same_automaton_lists): New gloval variable.
11277 (unit_regexp, unit_set_el, units_array, units_cmp,
11278 output_get_cpu_unit_code_func): Use the typedef.
11279 (evaluate_max_reserv_cycles): Increment
11280 `description->max_insn_reserv_cycles'.
11281 (initiate_states): Don't increment `max_cycles_num'.
11282 (transform_insn_regexps): Move code around transformation of
11283 regexps from `generate'.
11284 (generate): Remove call of `transform_insn_regexps'.
11285 (expand_automata): Call `transform_insn_regexps' and
11286 `check_unit_distributions_to_automata'. Check errors before
11289 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
11290 automaton `ultrasparc3_1'.
11292 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
11294 * c-common.c (c_common_init): Set up CPP arithmetic.
11295 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
11296 something reasonable for the host.
11297 (sanity_checks): Add checks.
11298 (cpp_read_main_file): Call sanity_checks() from here...
11299 (cpp_post_options): ... not here.
11300 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
11301 * cpplib.h (struct cpp_options): New member int_precision.
11303 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11305 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
11307 2002-05-04 David S. Miller <davem@redhat.com>
11309 * config/sparc/linux.h, config/sparc/linux64.h
11310 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
11312 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
11314 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
11316 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
11319 2002-05-05 Tim Josling <tej@melbpc.org.au>
11321 * treelang; New directory for new sample language treelang.
11323 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
11325 * Makefile.in (c-lex.o): Update.
11326 * c-lex.c: Include target.h.
11327 (cb_register_builtins): New.
11328 (init_c_lex): Set builtins callback.
11329 * c-lex.h (cpp_define, cpp_assert): New prototypes.
11330 * cppinit.c (init_builtins): Use callback, including for
11332 * cpplib.h (struct cpp_callbacks): New member.
11333 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
11334 (TARGET_INITIALIZER): Update.
11335 * target.h (struct gcc_target): New hook.
11336 * tree.c (default_register_cpp_builtins): New.
11337 * tree.h (default_register_cpp_builtins): New.
11339 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
11341 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
11343 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
11344 (cpp_post_options): Move sanity checks to...
11345 (sanity_checks): New.
11346 * cpplex.c (maybe_read_ucs): Fix prototype.
11347 (parse_string, cpp_parse_escape): Cast for %c format specifier.
11348 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
11351 2002-05-04 Bernd Schmidt <bernds@redhat.com>
11353 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
11354 builtins. Use V2DI patterns instead of TI for logical operations.
11355 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
11356 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
11357 (ix86_expand_builtins): Change the pattern used for movntdq.
11358 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
11359 sse2_nandv2di3): New patterns.
11360 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
11362 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
11363 (cvtdq2pd): Correct mode on operand 1.
11364 (sse2_umulsidi3): Describe without unspec.
11365 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
11367 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
11368 (ashlv2di3): Likewise, from sse2_ashlv2di3.
11369 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
11370 ashlv4si3, ashlv2di3): Use SImode for shift count.
11371 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
11372 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
11374 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
11376 (__m128i, __m128d): New macros.
11377 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
11378 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
11379 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
11380 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
11381 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
11382 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
11383 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
11384 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
11385 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
11386 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
11387 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
11388 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
11389 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
11390 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
11391 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
11392 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
11393 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
11394 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
11395 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
11396 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
11397 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
11398 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
11399 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
11400 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
11401 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
11402 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
11403 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
11404 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
11405 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
11406 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
11407 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
11408 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
11409 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
11410 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
11411 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
11412 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
11413 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
11415 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
11416 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
11418 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
11420 * dwarf2out.c: Fix formatting.
11421 * varasm.c: Likewise.
11423 2002-05-04 David Edelsohn <edelsohn@gnu.org>
11426 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
11427 clobber and use result as temporary value.
11429 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
11431 * expr.c (force_operand): Use expand_simple_* to handle more
11434 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
11436 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
11437 and sign-extension.
11438 (lex_charconst): Update for change in prototype of
11439 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
11441 * cpphash.h (BITS_PER_CPPCHAR_T): New.
11442 * cppinit.c (cpp_create_reader): Initialize them for no
11443 change in semantics.
11444 (cpp_post_options): Add sanity checks.
11445 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
11446 and truncation issues. Calculate in type cppchar_t.
11447 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
11448 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
11449 run-time dependent precision correctly. Return whether the
11450 result is signed or not.
11451 * cpplib.c (dequote_string): Use cppchar_t; update.
11452 * cpplib.h (cppchar_signed_t): New.
11453 struct cpp_options): New precision members.
11454 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
11455 * cppexp.c (eval_token): Update.
11457 2002-05-03 David S. Miller <davem@redhat.com>
11459 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
11460 * config/sparc/sparc.c (sparc_rtx_costs): New function
11461 implementing RTX_COSTS and CONST_COSTS.
11462 * config/sparc/sparc.h (CONST_COSTS): Delete.
11463 (RTX_COSTS_CASES): Define.
11464 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
11467 * config/sparc/sparc.md (DFA schedulers): Split out...
11468 * config/sparc/cypress.md, config/sparc/hypersparc.md,
11469 config/sparc/sparclet.md, config/sparc/supersparc.md,
11470 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
11472 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
11473 checks on it, always defined for Sparc.
11475 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
11476 Tweak, and add more detailed comments.
11478 2002-05-03 Zack Weinberg <zack@codesourcery.com>
11480 * Re-apply patch accidentally reverted with
11481 DFA scheduler merge: remove all rules and variables to slurp
11482 source files out of libiberty and rebuild them with HOST_CC.
11483 ($(HOST_PREFIX_1)varray.o): New rule.
11484 (genattrtab rule): Word wrap.
11486 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
11488 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
11489 (CPP_SUBTARGET_SPEC): Define.
11490 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
11491 cpp_subtarget specs.
11492 (CPP_SPEC): Redefine to include %(cpp_subtarget).
11494 2002-05-03 David S. Miller <davem@redhat.com>
11496 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
11497 * target.h (struct gcc_target): Delete cycle_display member.
11499 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
11500 (rtx_needs_barrier): Delete reference to cycle_display unspec.
11501 (ia64_sched_reorder2): Mention need for cycle display handling
11502 once such notes exist.
11504 2002-05-03 Richard Henderson <rth@redhat.com>
11506 * real.c (etoasc): Strip most trailing zeros for clarity.
11507 * sched-vis.c: Include real.h.
11508 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
11509 * Makefile.in (sched-vis.o): Add real.h.
11511 2002-05-03 David S. Miller <davem@redhat.com>
11513 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
11516 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
11518 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
11519 when we get an out of range literal.
11520 (altivec_expand_ternop_builtin): Same.
11521 (altivec_expand_unop_builtin): Same.
11522 (altivec_expand_builtin): Same, for dss.
11523 (altivec_expand_builtin): Use trees instead of rtl when
11524 determining literal argument validity.
11526 2002-05-03 David S. Miller <davem@redhat.com>
11528 Delete cycle display scheduling hook.
11529 * config/ia64/ia64.c (ia64_cycle_display,
11530 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
11531 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
11532 and use emit_insn_before instead of ia64_emit_insn_before.
11533 * config/ia64/ia64.md (unspec usage): Delete cycle display.
11534 (cycle_display): Delete insn pattern.
11535 * config/sparc/sparc.md (unspec usage): Delete cycle display.
11536 (cycle_display): Delete insn pattern.
11537 * config/sparc/sparc.c (sparc_cycle_display,
11538 TARGET_SCHED_CYCLE_DISPLAY): Delete.
11539 * doc/md.texi (cycle_display): Don't mention.
11540 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
11542 2002-05-03 Richard Henderson <rth@redhat.com>
11544 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
11545 * recog.h: Declare them.
11547 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
11548 * config/sparc/sparc.md: Use store_data_bypass_p instead.
11549 * config/sparc/sparc-protos.h: Update.
11551 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
11553 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
11554 -D__arch64__. Add -D_LP64.
11555 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
11557 (CPP_ARCH64_SPEC): Likewise.
11558 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
11559 (NO_BUILTIN_SIZE_TYPE): Undef.
11561 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
11563 * genautomata.c (min_issue_delay_pass_states): Change return type
11565 (min_issue_delay_pass_states): Change the algorithm.
11566 (min_issue_delay): Set up min_insn_issue_delay for the state.
11567 (output_min_issue_delay_table): Interchange the nested loops and
11568 and initiate min_insn_issue_delay for states.
11570 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
11572 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
11573 jump is simplejump.
11575 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
11577 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
11580 2002-05-03 Richard Henderson <rth@redhat.com>
11583 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
11584 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
11585 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
11586 code before JUMP, not EARLIEST.
11588 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
11590 * c-format.c (check_format_info_main): Don't check for presence of
11591 parameter for * width until after operand number has been read,
11592 and only check for it if format parameters are available.
11595 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
11597 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
11598 (LINK_SPEC): Undef before defining.
11600 2002-05-03 Jakub Jelinek <jakub@redhat.com>
11602 PR preprocessor/6489
11603 * tradcpp.c (fixup_newlines): New.
11604 (main, finclude): Use it.
11606 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
11608 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
11609 * config/mips/mips.c (mips_unique_section): Strip encoding from
11612 2002-05-03 Jakub Jelinek <jakub@redhat.com>
11614 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
11617 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11619 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
11620 (Specific): Removed buildstats references.
11621 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
11622 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
11623 Accomodate Solaris versions beyond 8.
11624 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
11625 (Specific, *-*-solaris2.8): Removed, obsolete.
11627 2002-05-03 Jakub Jelinek <jakub@redhat.com>
11630 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
11631 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
11632 fill leaf_reg_remap with identity.
11633 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
11635 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
11637 * config/h8300/crti.asm: Remove trailing spaces.
11638 * config/h8300/h8300.c: Likewise.
11639 * config/h8300/lib1funcs.asm: Likewise.
11641 2002-05-02 Jason Merrill <jason@redhat.com>
11643 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
11644 * c-decl.c (c_init_decl_processing): Use it.
11645 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
11646 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
11647 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
11649 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
11651 * regrename.c: Fix formatting.
11652 * tree.c: Likewise.
11654 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
11656 * i386.md (attribute memory): Handle compares properly.
11658 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
11660 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
11663 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
11665 * function.c: Fix formatting.
11667 2002-05-02 Jan Hubicka <jh@suse.cz>
11669 * haifa-sched.c (schedule_insn): Print table of instructions and
11671 (sched_block): Do not print ready list at verbosity level 1.
11672 * sched-vis.c (print_insn): Make global.
11673 * sched-ebb.c (ebb_print_insn): Rename from...
11674 (print_insn): ... this one.
11675 * sched-int.h (print_insn): Declare
11677 2002-05-02 Richard Henderson <rth@redhat.com>
11679 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
11680 emitted by cycle_display.
11682 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
11684 * doc/install.texi (*-*-freebsd*): Update to latest status.
11686 2002-05-02 Jakub Jelinek <jakub@redhat.com>
11689 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
11690 * config/float-sparc.h: Assume 128-bit long double if
11691 __LONG_DOUBLE_128__ is defined.
11693 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
11695 * genattrtab.c (write_function_unit_info): Add a dummy element
11696 when num_units == 0.
11698 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11700 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
11701 TYPE_MODE (double_type_node) instead of DFmode.
11703 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
11705 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
11707 * toplev.c (rest_of_compilation): Revert Richard's patch.
11709 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
11711 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
11713 2002-05-02 Catherine Moore <clm@redhat.com>
11715 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
11717 2002-05-02 Kazu Hirata <kazu@hxi.com>
11719 * combine.c: Fix comment typos.
11720 * expr.c: Likewise.
11721 * genautomata.c: Likewise.
11722 * stmt.c: Likewise.
11723 * tree.h: Likewise.
11725 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
11727 * doc/install.texi: State GNAT version requirements.
11729 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
11731 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
11732 of the frame pointer or arg pointer register which strict register
11733 checking is not enabled.
11735 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
11737 * gcc.dg/altivec-8.c: New.
11739 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
11740 PRE_INC and PRE_DEC for altivec modes.
11742 2002-05-01 Bruce Korb <bkorb@gnu.org>
11744 * fixinc/check.tpl(set-writable): make sure the function exists first
11745 * fixinc/inclhack.def(alpha_assert): fix test_text
11746 * fixinc/tests/base/assert.h: add in missing result
11748 2002-05-01 Jeff Law <law@redhat.com>
11750 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
11753 2002-05-01 Joel Brobecker <brobecker@gnat.com>
11755 * dbxout.c (dbxout_type): Emit size information for range types,
11756 as well, but only when using GDB extensions.
11758 2002-05-01 Richard Henderson <rth@redhat.com>
11760 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
11761 target-independent gnu binutils date test.
11763 2002-05-01 Richard Henderson <rth@redhat.com>
11765 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
11766 info before expunging the block.
11768 2002-05-01 Jakub Jelinek <jakub@redhat.com>
11770 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
11771 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
11772 -M -or -MM is in effect.
11774 2002-05-01 Zack Weinberg <zack@codesourcery.com>
11776 * config.gcc: Correct test of --enable-obsolete. Obsolete all
11777 A29k configurations.
11778 * doc/install.texi: Update to match.
11780 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11783 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
11784 for duplicates. Always loop over whole list.
11786 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11788 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
11790 2002-05-01 Joel Sherrill <joel@OARcorp.com>
11792 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
11795 2002-05-01 Joel Sherrill <joel@OARcorp.com>
11797 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
11799 2002-05-01 David Edelsohn <edelsohn@gnu.org>
11801 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
11802 (nabs_nopower): Same.
11803 (floatdisf2): New pattern.
11804 (absdi2): Convert to define_insn_and_split.
11806 (trunctfsf2): Same.
11807 (floatditf2): Same.
11808 (floatsitf2): Same.
11809 (fix_trunctfdi2): Same.
11810 (fix_trunctfsi2): Same.
11812 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
11814 * doc/install.texi: Update Texinfo version requirement
11817 2002-05-01 Jakub Jelinek <jakub@redhat.com>
11819 PR target/6512, PR target/5628
11820 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
11821 when memory is not aligned.
11822 (movdf_insn_v9only_vis): Likewise.
11823 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
11824 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
11825 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
11827 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
11829 * gcc.dg/altivec-7.c: New.
11831 * config/rs6000/altivec.h: Cleanup.
11833 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
11835 * doc/invoke.texi (Option Summary): Add -mvrsave=.
11836 (RS/6000 and PowerPC Options): Document -mvrsave=.
11838 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
11839 (rs6000_altivec_vrsave_string): Same.
11840 (rs6000_override_options): Call rs6000_parse_vrsave_option.
11841 (rs6000_parse_vrsave_option): New.
11842 (rs6000_stack_info): Only generate vrsave instructions when
11843 TARGET_ALTIVEC_VRSAVE.
11845 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
11846 (rs6000_altivec_vrsave_string): Define extern.
11847 (rs6000_altivec_vrsave): Same.
11848 (TARGET_ALTIVEC_VRSAVE): New.
11850 2002-04-30 Richard Henderson <rth@redhat.com>
11853 * toplev.c (rest_of_compilation): Don't run cross-jump before
11856 2002-04-30 Tom Rix <trix@redhat.com>
11858 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
11859 check which_alternative.
11861 2002-04-30 Kazu Hirata <kazu@hxi.com>
11863 * cpplex.c: Fix comment formatting.
11864 * function.c: Likewise.
11865 * integrate.c: Likewise.
11866 * regrename.c: Likewise.
11867 * sibcall.c: Likewise.
11868 * simplify-rtx.c: Likewise.
11869 * tree-inline.c: Likewise.
11871 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
11873 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
11874 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
11875 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
11876 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
11877 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
11878 * pa/x-ada: New file. Define ADA_CFLAGS.
11880 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
11882 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
11883 from MMIX_LAST_REGISTER_FILE_REGNUM.
11884 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
11885 (struct machine_function): New member highest_saved_stack_register
11886 previously static variable in mmix.c.
11887 (MACHINE_DEPENDENT_REORG): Define.
11888 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
11889 (MMIX_OUTPUT_REGNO): New.
11890 (mmix_target_asm_function_prologue): Move calculation of last used
11891 saved-stack-register into...
11892 (mmix_machine_dependent_reorg): New function. Update to also handle
11894 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
11895 register names, simplify somewhat by new variable regno.
11896 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
11898 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
11899 emitting register names.
11900 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
11901 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
11902 Remove fixed FIXME.
11903 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
11906 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
11908 2002-04-30 Richard Henderson <rth@redhat.com>
11910 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
11911 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
11912 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
11913 emit_tfmode_cvt): New.
11914 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
11915 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
11916 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
11917 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
11918 * config/sparc/sparc-protos.h: Update.
11920 2002-04-30 Janis Johnson <janis187@us.ibm.com>
11922 * install.texi (Final install): Add to the list of info to include
11923 in a report of a successful bootstrap, and add link to 3.1 list.
11925 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
11927 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
11928 (mode): Add vector modes
11929 (i387): Kill attribute.
11930 (unit): New attribute.
11931 (length_immediate): Grok new types.
11932 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
11933 (modrm): Use "unit".
11934 (memory): Handle MMX/SSE properly.
11935 (scheduling descriptions): Kill uses of fop1.
11936 (sse, mmx, fp patterns): Set type and mode properly.
11938 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
11940 * pa.c (override_options): Default to PA8000 scheduling.
11941 * doc/invoke.texi (HP-PA options): Mention newly added 7300
11942 scheduling parameter.
11944 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
11945 handling of double precision multiplies.
11947 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
11948 fpdiv and fpsqrt instructions.
11949 (7200 & 7300 scheduling): Fix typo in handling of
11950 store-load and store-store penalties.
11952 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11954 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
11955 mips. Add two missing commas.
11957 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
11959 * doc/contrib.texi (Contributors): Update Paolo Carlini's
11960 and Benjamin Kosnik's entries.
11962 2002-04-29 David S. Miller <davem@redhat.com>
11964 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
11965 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
11966 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
11967 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11969 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11971 * combine.c (find_split_point): Use gen_int_mode.
11973 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
11975 Merging code from dfa-branch:
11977 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
11979 * genautomata.c (output_reserv_sets): Fix typo.
11981 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
11983 * genautomata.c (output_reserv_sets): Remove
11984 next_cycle_output_flag.
11986 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
11988 * sched-rgn.c (init_ready_list): Make the DFA code handle
11989 USE/CLOBBER insns in the same way as the traditional
11991 (new_ready): Similarly..
11993 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
11995 * haifa-sched.c (schedule_block): Change the DFA state only after
11998 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
12000 * pa.c (hppa_use_dfa_pipeline_interface): New function.
12001 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
12002 (override_options): Add PA7300 scheduling support.
12003 (pa_adjust_cost): Update various comments. Properly
12004 handle anti and output dependencies when using the
12006 (pa_issue_rate): Add PA7300 scheduling support.
12007 (pa_can_combine_p): Call extract_insn before calling
12008 constrain_operands (taken from mainline tree).
12009 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
12010 * pa.md (cpu attr): Add 7300. Rewrite pipeline
12011 descriptions using DFA descriptions. Add PA7300
12012 scheduling support.
12014 2002-03-30 David S. Miller <davem@redhat.com>
12016 Add UltraSPARC-III DFA scheduling support.
12017 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
12018 Update FP conditional move on register insn patterns to use it, as
12020 (define_attr cpu): Add ultrasparc3.
12021 (define_attr us3load_type): New, update integer load patterns to
12022 set it, as appropriate.
12023 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
12024 (rest): Add UltraSPARC3 scheduling description.
12025 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
12026 (PROCESSOR_ULTRASPARC3): New.
12027 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
12028 ({ASM,CPP}_CPU_SPEC): Likewise.
12029 (REGISTER_MOVE_COST): Likewise.
12030 (RTX_COSTS): Likewise.
12031 * config/sparc/sparc.c (sparc_override_options,
12032 sparc_initialize_trampoline, sparc64_initialize_trampoline,
12033 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
12034 sparc_issue_rate): Likewise.
12035 * config/sparc/sol2.h: Likewise.
12036 * config/sparc/sol2-sld-64.h: Likewise.
12037 * config/sparc/linux64.h: Likewise.
12039 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
12041 * doc/md.texi: Add comments about usage the latency time for the
12042 different dependencies and about case when two or more conditions
12043 in different define_insn_reservations returns TRUE for an insn.
12045 * doc/md.texi: Add reference for automaton based pipeline
12048 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
12050 * doc/passes.texi: Add missed information about genattrtab.
12052 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
12054 * genautomata.c (output_automata_list_transition_code): Check
12055 automata_list on NULL.
12057 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
12059 * genautomata.c (output_insn_code_cases,
12060 output_automata_list_min_issue_delay_code,
12061 output_automata_list_transition_code,
12062 output_automata_list_state_alts_code): Comment the functions.
12064 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
12066 * genautomata.c (automata_list_el_t): New typedef.
12067 (get_free_automata_list_el,free_automata_list_el,
12068 free_automata_list, automata_list_hash, automata_list_eq_p,
12069 initiate_automata_lists, automata_list_start, automata_list_add,
12070 automata_list_finish, finish_automata_lists,
12071 output_insn_code_cases, output_automata_list_min_issue_delay_code,
12072 output_automata_list_transition_code,
12073 output_automata_list_state_alts_code, add_automaton_state,
12074 form_important_insn_automata_lists): New functions and prototypes.
12075 (insn_reserv_decl): Add members important_automata_list and
12077 (ainsn): Add members important_p.
12078 (automata_list_el): New structure.
12079 (first_free_automata_list_el, current_automata_list,
12080 automata_list_table): New global variables.
12081 (create_ainsns): Initiate member important_p.
12082 (output_internal_min_issue_delay_func): Generate the switch and
12083 call output_insn_code_cases.
12084 (output_internal_trans_func, output_internal_state_alts_func):
12086 (generate): Call initiate_automata_lists.
12087 (automaton_states): New global variable.
12088 (expand_automata): Call form_important_insn_automata_lists.
12089 (write_automata): Call finish_automata_lists.
12091 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
12093 * genautomata.c (add_excls, add_presence_absence): Check that
12094 cpu units in the sets belong the same automaton.
12096 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
12097 about that cpu units in the sets belong the same automaton.
12099 * doc/md.texi: Ditto.
12101 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
12102 Nitin Gupta <niting@noida.hcltech.com>
12104 * config/sh/sh.c (sh_use_dfa_interface): New function.
12106 (sh_issue_rate): New Function.
12107 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
12108 TARGET_SCHED_ISSUE_RATE: define.
12110 * config/sh/sh.md: Add DFA based pipeline description for SH4.
12112 (define_attr insn_class): New attribute used for DFA
12114 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
12115 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
12116 cmpeqdi_t): Likewise.
12118 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
12119 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
12121 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
12123 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
12125 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
12128 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
12130 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
12131 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
12133 (output_dfa_start_func): Initiate new variable insn_codes_length,
12134 (write_automata): Output definition of the new variable.
12136 2001-10-02 David S. Miller <davem@redhat.com>
12138 * haifa-sched.c (advance_one_cycle): New function.
12139 (schedule_block): Use it.
12140 (queue_to_ready): Use it, and also make sure to advance the DFA
12141 state on all stall cycles, not just those where insn_queue links
12144 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
12146 * haifa-sched.c (max_issue): Remove last_p argument. Only return
12147 non-zero if the highest-priority instruction could be scheduled.
12148 (choose_ready): Remove last argument from max_issue call.
12150 2001-09-28 David S. Miller <davem@redhat.com>
12152 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
12153 ultrasparc and 3 for other multi-issue sparcs.
12155 2001-09-27 David S. Miller <davem@redhat.com>
12157 * config/sparc/sparc.md (cycle_display): New pattern.
12158 * config/sparc/sparc.c (sparc_cycle_display): New.
12159 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
12161 2001-09-25 David S. Miller <davem@redhat.com>
12163 Convert all of Sparc scheduling to DFA
12164 * config/sparc/sparc.md: Kill all define_function_unit
12165 directives and replace with DFA equivalent.
12166 * config/sparc/sparc.c (ultrasparc_adjust_cost,
12167 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
12168 ultra_fpmode_conflict_exists, ultra_find_type,
12169 ultra_build_types_avail, ultra_flush_pipeline,
12170 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
12171 ultrasparc_variable_issue, ultrasparc_sched_init,
12172 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
12173 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
12174 ultra_cur_hist, ultra_cycles_elapsed): Kill.
12175 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
12176 ultrasparc_store_bypass_p): New.
12177 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
12180 2001-09-24 David S. Miller <davem@redhat.com>
12182 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
12183 ready->vec[foo] not ready[foo].
12185 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
12187 * doc/md.texi: Correct examples for define_insn_reservations
12190 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
12192 * genautomata.c (create_automata): Print message about creation of
12194 (generate): Remove printing meease about creation of
12197 2001-09-05 David S. Miller <davem@redhat.com>
12199 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
12200 * config/sparc/linux64.h: Likewise.
12202 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
12204 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
12205 schedule_block, sched_init, sched_finish): Add missed calls of
12206 use_dfa_pipeline_interface.
12208 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
12211 * sched-vis.c (get_visual_tbl_length): Ditto.
12213 2001-08-27 Richard Henderson <rth@redhat.com>
12215 * genattr.c (main): Emit state_t even when not doing scheduling.
12217 2001-08-27 Richard Henderson <rth@redhat.com>
12219 * genautomata.c (expand_automata): Always create a description.
12221 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
12223 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
12224 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
12225 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
12228 * genattr.c (main): New variable num_insn_reservations. Increase
12229 it if there is DEFINE_INSN_RESERVATION. Output automaton based
12230 pipeline hazard recognizer interface.
12232 * genattrtab.h: New file.
12234 * genattrtab.c: Include genattrtab.h.
12235 (attr_printf, check_attr_test, make_internal_attr,
12236 make_numeric_value): Move protypes into genattrtab.h. Define them
12238 (num_dfa_decls): New global variable.
12239 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
12240 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
12241 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
12242 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
12244 * genautomata.c: New file.
12246 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
12248 * sched-int.h: (curr_state): Add the external definition for
12249 automaton pipeline interface.
12250 (haifa_insn_data): Add comments for members blockage and units.
12252 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
12253 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
12254 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
12255 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
12256 TARGET_SCHED_DFA_POST_CYCLE_INSN,
12257 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
12258 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
12260 (TARGET_SCHED): Use the new macros.
12262 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
12263 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
12264 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
12265 dfa_bubble): New members in gcc_target.sched.
12267 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
12268 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
12269 (insn_queue): Redefine it as pointer to array.
12270 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
12272 (max_insn_queue_index_macro_value): New variable.
12273 (curr_state, dfa_state_size, ready_try): New varaibles for
12274 automaton interface.
12275 (ready_element, ready_remove, max_issue): New function prototypes
12276 for automaton interface.
12277 (choose_ready): New function prototype.
12278 (insn_unit, blockage_range): Add comments.
12279 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
12280 FUNCTION_UNITS_SIZE == 0.
12281 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
12282 actual_hazard, potential_hazard): Add comments.
12283 (insn_cost): Use cost -1 as undefined value. Remove
12284 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
12285 pipeline interface.
12286 (ready_element, ready_remove): New functions for automaton
12288 (schedule_insn): Add new code for automaton pipeline interface.
12289 (queue_to_ready): Add new code for automaton pipeline interface.
12290 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
12291 (debug_ready_list): Print newline when the queue is empty.
12292 (max_issue): New function for automaton pipeline interface.
12293 (choose_ready): New function.
12294 (schedule_block): Add new code for automaton pipeline interface.
12295 Print ready list before scheduling each insn.
12296 (sched_init): Add new code for automaton pipeline interface.
12297 Initiate insn cost by -1.
12298 (sched_finish): Free the current automaton state and finalize
12299 automaton pipeline interface.
12301 * sched-rgn.c: Include target.h.
12302 (init_ready_list, new_ready, debug_dependencies): Add new code for
12303 automaton pipeline interface.
12305 * sched-vis.c: Include target.h.
12306 (get_visual_tbl_length): Add code for automaton interface.
12307 (target_units, print_block_visualization): Add comments.
12309 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
12310 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
12311 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
12312 (getruntime.o, genautomata.o): New entries.
12313 (genattrtab.o): Add new dependency file genattrtab.h.
12314 (genattrtab): Add new dependencies. Link it with `libm.a'.
12315 (getruntime.o, hashtab.o): New entries for canadian cross.
12317 * doc/md.texi: Description of automaton based model.
12319 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
12321 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
12322 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
12323 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
12324 TARGET_SCHED_DFA_POST_CYCLE_INSN,
12325 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
12326 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
12327 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
12329 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
12330 MAX_DFA_ISSUE_RATE): New macro descriptions.
12332 * doc/contrib.texi: Add dfa based scheduler contribution.
12334 * doc/gcc.texi: Add more information about genattrtab.
12336 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12338 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
12339 adjust_address_nv call.
12341 2002-04-29 Janis Johnson <janis187@us.ibm.com>
12343 * doc/install.texi (Testing): Provide additional information, and
12344 a stronger encouragement, for running the testsuites.
12346 2002-04-29 DJ Delorie <dj@redhat.com>
12348 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
12349 given in upper case.
12351 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12353 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
12354 Solaris 2 <widec.h> if missing.
12355 * fixinc/fixincl.x: Regenerate.
12356 * fixinc/tests/base/widec.h: New file.
12358 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
12360 * toplev.c (f_options): Add "profile" switch so that
12361 -fno-profile can be used to disable -p.
12363 2002-04-29 Bernd Schmidt <bernds@redhat.com>
12365 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
12367 * tree.c (build_common_tree_nodes_2): Likewise.
12368 * tree.h (enum tree_index): Likewise.
12369 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
12371 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
12373 (init_mmx_sse_builtins): Initialize SSE2 builtins.
12374 (ix86_expand_builtin): Add support for SSE2 builtins.
12375 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
12376 (VALID_SSE_REG_MODE): Use it.
12377 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
12378 (enum ix86_builtins): Add SSE2 builtins.
12379 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
12380 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
12381 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
12382 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
12383 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
12384 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
12385 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
12386 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
12387 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
12388 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
12389 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
12390 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
12391 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
12392 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
12393 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
12394 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
12395 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
12396 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
12397 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
12398 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
12399 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
12400 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
12401 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
12402 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
12403 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
12404 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
12405 lfence_insn): New patterns.
12406 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
12407 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
12409 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
12411 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
12413 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12415 * doc/contrib.texi (Contributors): Add Paolo Carlini and
12417 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
12418 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
12419 and CPU instead of cpu.
12421 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
12423 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
12425 (lang_independent_options): Add -fif-conversion, -fif-conversion2
12426 (rest_of_compilation): Do if conversion only when asked for.
12427 (parse_options_and_default_flags): Set new variables to 1 for -O1
12428 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
12430 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
12432 * i386.c (dbx64_register_map): Fix typo.
12434 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
12436 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
12437 real_one_half, real_bb_freq_max): New static variables.
12438 (debug_profile_bbauxs): Kill.
12439 (process_note_predictions): Kill unused variable.
12440 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
12442 (propagate_freq): Use REAL_ARITHMETICS.
12443 (estimate_bb_frequencies): Likevise; init new static variables.
12444 * Makefile.in (predict.o): Add dependency on real.h
12446 2002-04-28 David S. Miller <davem@redhat.com>
12449 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
12450 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
12451 several {reads,writes} instead.
12452 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
12455 2002-04-27 David S. Miller <davem@redhat.com>
12458 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
12461 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
12462 including signal.h and sys/ucontext.h, not needed.
12464 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
12466 * varasm.c (output_constant_def): Correct test for not calling
12467 ENCODE_SECTION_INFO for INTEGER_CST.
12469 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
12471 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
12472 keep most cases as function eval_token.
12473 (eval_token): New function.
12474 (_cpp_parse_expr): Read token here for improved diagnostics.
12475 Don't use op_as_text. Detect bad ':' here.
12476 (reduce): Don't detect bad ':' here.
12477 (op_as_text): Remove.
12478 * cpphash.h (_cpp_test_assertion): Change prototype.
12479 * cpplib.c (_cpp_test_assertion): Change prototype.
12481 2002-04-28 Richard Henderson <rth@redhat.com>
12484 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
12485 (ggc_mark_rtx_children): New.
12487 2002-04-28 Jakub Jelinek <jakub@redhat.com>
12490 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
12491 after call peepholes for UltraSPARC.
12492 (call + jump 64-bit peepholes): Remove.
12494 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12497 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
12498 result as temporary value.
12500 2002-04-28 Jakub Jelinek <jakub@redhat.com>
12503 * toplev.c (rest_of_compilation): Only run regrename and copy
12504 propagation if optimizing.
12506 2002-04-28 Jakub Jelinek <jakub@redhat.com>
12508 PR optimization/6475
12509 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
12510 register of REGNO_DECL (i).
12511 * Makefile.in (reload1.o): Add $(TREE_H).
12513 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
12515 * cppexp.c (lex): Update to use state.skip_eval.
12516 (struct op): Remove prio and flags members.
12517 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
12518 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
12519 (LEFT_ASSOC): New macro.
12520 (optab): New table of operator priorities and flags.
12522 (_cpp_parse_expr): Clean up logic. Return bool. Use a
12523 malloc-ed parser stack.
12524 (reduce): New; reduce the operator stack.
12525 (_cpp_expand_op_stack): Expand the operator stack as necessary.
12526 * cpphash.h (struct op): Predeclare.
12527 (struct cpp_reader): New members op_stack, op_limit.
12528 (struct lexer_state): New member skip_eval.
12529 (_cpp_parse_expr): Update.
12530 (_cpp_expand_op_stack): New.
12531 * cpplib.c (do_if): Update.
12532 * cppinit.c (cpp_create_reader): Create op stack.
12533 (cpp_destroy): And destroy it.
12534 * cpplib.h (CPP_LAST_CPP_OP): Correct.
12535 (TTYPE_TABLE): Correct.
12537 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12540 * c-decl.c (duplicate_decls): Call merge_weak.
12541 * c-pragma.c (apply_pragma_weak): Warn about misuse.
12542 * output.h (merge_weak): Prototype merge_weak.
12543 * varasm.c (merge_weak): New function.
12544 (declare_weak): Make sure we don't give an error on VAR_DECLs.
12545 Mark RTL with SYMBOL_REF_WEAK.
12547 2002-04-27 Kurt Garloff <garloff@suse.de>
12549 * tree-inline.c (inlinable_function_p): Improve heuristics
12550 by using a smoother function to cut down allowable inlinable size.
12551 * param.def: Add parameters max-inline-insns-single,
12552 max-inline-slope, min-inline-insns that determine the exact
12553 shape of the above function.
12554 * param.h: Likewise.
12556 2002-04-26 Richard Henderson <rth@redhat.com>
12558 * c-parse.in (malloced_yyss, malloced_yyvs): New.
12559 (yyoverflow): Re-add. Set them.
12560 (free_parser_stacks): New.
12561 * c-common.h: Declare it.
12562 * c-lex.c (c_common_parse_file): Call it.
12564 2002-04-26 Richard Henderson <rth@redhat.com>
12566 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
12567 for fallthru search.
12569 2002-04-26 Eric Christopher <echristo@redhat.com>
12571 PR optimization/3700
12572 * config/mips/mips.c (mips_issue_rate): Define. New function.
12573 (TARGET_SCHED_ISSUE_RATE): Use.
12575 2002-04-25 David S. Miller <davem@redhat.com>
12578 * reorg.c (optimize_skip): Do not allow exception causing
12579 instructions to be considered for delay slots.
12580 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
12581 (relax_delay_slots): Do not try to consider exception causing
12582 instructions as redundant.
12584 2002-04-26 Richard Henderson <rth@redhat.com>
12587 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
12589 2002-04-26 Mark Mitchell <mark@codesourcery.com>
12592 * config/i386/i386.md (untyped_call): Return the value in a float
12593 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
12596 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
12598 * tree.c (tree_int_cst_lt): Compare constants whose types differ
12599 in unsigned-ness correctly.
12601 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
12603 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
12604 portable runtime model.
12606 2002-04-26 Richard Henderson <rth@redhat.com>
12608 * c-parse.in (yyoverflow): Revert.
12610 2002-04-26 David Edelsohn <edelsohn@gnu.org>
12611 Richard Henderson <rth@redhat.com>
12613 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
12614 result as temporary value.
12616 2002-04-26 Richard Henderson <rth@redhat.com>
12619 * c-common.c (fix_string_type): Split out of ...
12620 (combine_strings): ... here. Take a varray, not a tree list.
12621 (c_expand_builtin_printf): Use fix_string_type.
12622 * c-common.h: Update decls.
12623 * c-parse.in (string): Remove. Update all uses to use STRING
12624 instead, and not call combine_strings.
12625 (yylexstring): New.
12627 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
12628 (build_asm_stmt): Likewise.
12629 * objc/objc-act.c (my_build_string): Use fix_string_type.
12630 (build_objc_string_object): Build varray for combine_strings.
12632 2002-04-26 Bo Thorsen <bo@suse.co.uk>
12634 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
12637 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
12639 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
12640 (HAVE_NO_R_OPERAND): Remove.
12641 (HAVE_VALUE): Remove.
12642 (op_to_prio): Update.
12643 (UNARY): Don't alter flags.
12644 (_cpp_parse_expr): want_value used to indicate whether
12645 a number or unary operator is expected next. Distinguish
12646 unary and binary +/-.
12647 (op_as_text): Update for unary operators.
12649 2002-04-25 Richard Henderson <rth@redhat.com>
12652 * c-parse.in (yyoverflow): New.
12654 2002-04-25 Richard Henderson <rth@redhat.com>
12657 * c-common.c (shorten_compare): Simplfy conditions leading to
12658 the generation of a warning.
12660 2002-04-25 Richard Henderson <rth@redhat.com>
12663 * expmed.c (extract_bit_field): Fall through to generic code rather
12664 than aborting on subreg special case.
12666 2002-04-25 David S. Miller <davem@redhat.com>
12668 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
12669 for DECL being NULL.
12671 2002-04-25 Steve Christiansen <smc@us.ibm.com>
12673 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
12675 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
12677 * c-decl.c (grokdeclarator): Remove outdated ??? note
12678 on invalid declaration of flexible array members.
12680 2002-04-25 Richard Henderson <rth@redhat.com>
12682 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
12684 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
12686 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
12687 needed by the compiler, even if they are used as global regs.
12689 2002-04-25 Matt Hiller <hiller@redhat.com>
12691 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
12693 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
12694 of the corresponding functions.
12695 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
12698 2002-04-25 Matt Hiller <hiller@redhat.com>
12700 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
12702 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
12703 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
12704 registers, adjust comment accordingly.
12705 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
12706 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
12707 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
12708 for coprocessor registers.
12709 (ADDITIONAL_REGISTER_NAMES): Include
12710 ALL_COP_ADDITIONAL_REGISTER_NAMES.
12712 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
12713 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
12714 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
12715 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
12716 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
12718 (mips_char_to_class): Adjust comment to include coprocessor
12719 constraint letters.
12721 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
12723 (mips_reg_names, mips_regno_to_class): Include coprocessor
12725 (mips_sw_reg_names): Ditto, make non-static.
12726 (mips_move_1word): Handle moves to and from coprocessor registers.
12727 (mips_move_2words): Handle moves to and from coprocessor
12729 (mips_class_max_nregs, mips_register_move_cost): Handle
12730 coprocessor register classes.
12731 (override_options): Initialize mips_char_to_class and
12732 mips_hard_regno_mode_ok properly for coprocessor registers.
12734 * config/mips/mips.md (movdi_internal, movdi_internal2,
12735 movsi_internal1, movsi_internal2): Add constraint-sets for
12736 coprocessor registers.
12737 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
12738 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
12740 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
12741 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
12743 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
12744 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
12746 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
12747 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
12750 * doc/tm.texi: Document feature.
12752 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
12754 * integrate.c (function_attribute_inlinable_p): Simplify.
12755 Check the table pointer is not NULL.
12757 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
12759 * doc/c-tree.texi: Fix typo in introduction.
12761 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
12763 * c-common.h (c_common_parse_file): Update.
12764 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
12765 * c-lex.c (YYDEBUG): Get from c-lex.h.
12766 (c_common_parse_file): Update.
12767 * c-lex.h (YYDEBUG, yydebug): New.
12768 * c-parse.in (YYDEBUG): Get from c-lex.h.
12769 (c_set_yydebug): Remove.
12770 * c-tree.h (c_set_yydebug): Remove.
12771 * langhooks-def.h (lhd_do_nothing_i): New.
12772 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
12773 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
12774 * langhooks.c (lhd_do_nothing_i): New.
12775 (lhd_set_yydebug): Remove.
12776 * langhooks.h (struct lang_hooks): Update.
12777 * toplev.c (set_yydebug): New.
12778 (compile_file): Update call to parse_file hook.
12779 (decode_d_option): Update.
12781 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
12783 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
12785 * loop.c (load_mems): Don't change the interface of called functions.
12787 * calls.c (expand_call): Take current_function_pretend_args_size
12788 into account when setting argblock for sibcalls.
12790 2002-04-24 Matt Hiller <hiller@redhat.com>
12792 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
12795 * cpplex.c (skip_line_comment): Process comment one multibyte
12796 character at a time rather than one char at a time, if
12798 (parse_string): Process string one multibyte character at a time
12799 rather than one char at a time, if appropriate.
12800 * c-lex.c (lex_string): Lex and copy multibyte strings
12802 * cpplib.h (cppchar_t): Change to unsigned.
12804 2002-04-24 Richard Henderson <rth@redhat.com>
12807 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
12810 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
12812 * sh.c (sh_va_arg): If argument was passed by reference,
12813 dereference the pointer.
12815 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
12817 * sh.md (divsi3_i4_media): Use match_operand for input values
12818 rather than hard registers.
12819 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
12820 unnecessarily through hard registers. Keep copies of pseudo
12821 registers outside of the libcall sequence.
12823 * sh.md (casesi_shift_media): Add modes.
12825 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
12828 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
12830 * attribs.c (c_common_attribute_table): Move table and handlers
12832 (format_attribute_table, lang_attribute_table,
12833 lang_attribute_common): Remove.
12834 (init_attributes): Replace NULL pointers with pointers to the
12836 (handle_packed_attribute, handle_nocommon_attribute,
12837 handle_common_attribute, handle_noreturn_attribute,
12838 handle_noinline_attribute, handle_always_inline_attribute,
12839 handle_used_attribute, handle_unused_attribute,
12840 handle_const_attribute, handle_transparent_union_attribute,
12841 handle_constructor_attribute, handle_destructor_attribute,
12842 handle_mode_attribute, handle_section_attribute,
12843 handle_aligned_attribute, handle_weak_attribute,
12844 handle_alias_attribute, handle_visibility_attribute,
12845 handle_no_instrument_function_attribute, handle_malloc_attribute,
12846 handle_no_limit_stack_attribute, handle_pure_attribute,
12847 handle_deprecated_attribute, handle_vector_size_attribute,
12848 vector_size_helper): Move to c-common.c.
12849 * c-common.c (c_common_attribute_table,
12850 handle_packed_attribute, handle_nocommon_attribute,
12851 handle_common_attribute, handle_noreturn_attribute,
12852 handle_noinline_attribute, handle_always_inline_attribute,
12853 handle_used_attribute, handle_unused_attribute,
12854 handle_const_attribute, handle_transparent_union_attribute,
12855 handle_constructor_attribute, handle_destructor_attribute,
12856 handle_mode_attribute, handle_section_attribute,
12857 handle_aligned_attribute, handle_weak_attribute,
12858 handle_alias_attribute, handle_visibility_attribute,
12859 handle_no_instrument_function_attribute, handle_malloc_attribute,
12860 handle_no_limit_stack_attribute, handle_pure_attribute,
12861 handle_deprecated_attribute, handle_vector_size_attribute,
12862 vector_size_helper): Move from attribs.c.
12863 * c-common.h (c_common_attribute_table,
12864 c_common_format_attribute_table): New.
12865 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
12866 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
12867 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
12868 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
12869 (LANG_HOOKS_INITIALIZER): Update.
12870 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
12871 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
12872 * target.h: Update comment.
12873 * tree.c (default_target_attribute_table): Remove.
12874 * tree.h (default_target_attribute_table, format_attribute_table,
12875 lang_attribute_table, lang_attribute_common): Remove.
12877 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
12878 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
12880 2002-04-24 Jason Merrill <jason@redhat.com>
12882 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
12883 * dwarf2out.c (dwarf_attr_name): Support it.
12884 (gen_array_type_die): Emit it.
12885 (lookup_type_die): No special handling for VECTOR_TYPE.
12886 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
12888 2002-04-24 Richard Henderson <rth@redhat.com>
12890 * config/mips/mips.md (movdi_usd): Renumber.
12892 2002-04-24 David S. Miller <davem@redhat.com>
12895 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
12896 32-bit Sparc and current_function_returns_struct is true.
12898 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
12900 * loop.c (canonicalize_condition): Use gen_int_mode.
12902 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
12904 * config/rs6000/altivec.h: Cleanup file. Add non individual
12906 (vec_vaddubm): New.
12907 (vec_vadduhm): New.
12908 (vec_vadduwm): New.
12910 (vec_vaddcuw): New.
12911 (vec_vaddubs): New.
12912 (vec_vaddsbs): New.
12913 (vec_vadduhs): New.
12914 (vec_vadduws): New.
12915 (vec_vaddsws): New.
12925 (vec_vcmpbfp): New.
12926 (vec_vcmpequb): New.
12927 (vec_vcmpequh): New.
12928 (vec_vcmpequw): New.
12929 (vec_vcmpeqfp): New.
12930 (vec_vcmpgefp): New.
12931 (vec_vcmpgtub): New.
12932 (vec_vcmpgtsb): New.
12933 (vec_vcmpgtuh): New.
12934 (vec_vcmpgtsh): New.
12935 (vec_vcmpgtuw): New.
12936 (vec_vcmpgtsw): New.
12937 (vec_vcmpgtfp): New.
12938 (vec_vcmpgefp): New.
12943 (vec_vexptefp): New.
12948 (vec_lde): Add vector float variant.
12951 (vec_vlogefp): New.
12952 (vec_vmaddfp): New.
12953 (vec_vmhaddshs): New.
12975 (vec_vmladduhm): New.
12976 (vec_vmhraddshs): New.
12977 (vec_msumubm): New.
12978 (vec_vmsummbm): New.
12979 (vec_vmsumuhm): New.
12980 (vec_vmsumshm): New.
12981 (vec_vmsumuhs): New.
12982 (vec_vmsumshs): New.
12983 (vec_vmuleub): New.
12984 (vec_vmulesb): New.
12985 (vec_vmuleuh): New.
12986 (vec_vmulesh): New.
12987 (vec_vmuloub): New.
12989 (vec_vmulouh): New.
12990 (vec_vmulosh): New.
12991 (vec_vnmsubfp): New.
12994 (vec_vpkuhum): New.
12995 (vec_vpkuwum): New.
12997 (vec_vpkuhus): New.
12998 (vec_vpkshss): New.
12999 (vec_vpkuwus): New.
13000 (vec_vpkswss): New.
13001 (vec_vpkshus): New.
13002 (vec_vpkswus): New.
13009 (vec_vrsqrtefp): New.
13020 (vec_vspltisb): New.
13021 (vec_vspltish): New.
13022 (vec_vspltisw): New.
13036 (vec_vsububm): New.
13037 (vec_vsubuhm): New.
13038 (vec_vsubuwm): New.
13040 (vec_vsubcuw): New.
13041 (vec_vsububs): New.
13042 (vec_vsubsbs): New.
13043 (vec_vsubuhs): New.
13044 (vec_vsubshs): New.
13045 (vec_vsubuws): New.
13046 (vec_vsubsws): New.
13047 (vec_vsum4ubs): New.
13048 (vec_vsum4sbs): New.
13049 (vec_vsum4shs): New.
13050 (vec_vsum2sws): New.
13051 (vec_vsumsws): New.
13053 (vec_vupkhsb): New.
13054 (vec_vupkhpx): New.
13055 (vec_vupkhsh): New.
13056 (vec_vupklsb): New.
13057 (vec_vupklpx): New.
13058 (vec_vupklsh): New.
13061 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
13064 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
13065 added literals from substracted literals.
13066 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
13067 (fold) [associate]: Preserve MINUS_EXPR if needed.
13069 2002-04-23 Zack Weinberg <zack@codesourcery.com>
13071 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
13074 2002-04-23 Tom Tromey <tromey@redhat.com>
13076 * gcc.c: Added --resource. For PR java/6314.
13078 2002-04-23 David O'Brien <obrien@FreeBSD.org>
13080 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
13081 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
13084 2002-04-23 David O'Brien <obrien@FreeBSD.org>
13086 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
13088 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
13090 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
13092 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
13093 (ix86_expand_clrstr): Fix typo.
13094 * loop.c (gen_load_of_final_value): New.
13095 (loop_givs_rescan, strength_reduce, check_dbra_loop):
13098 2002-04-23 Roger Sayle <roger@eyesopen.com>
13100 * builtins.c (builtin_memset_gen_str): New function.
13101 (expand_builtin_memset): Optimize the case of constant length, but
13104 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
13106 * config/rs6000/altivec.h (vec_step): Remove extraneous
13108 (vec_ctu): Cast return.
13110 2002-04-23 Alan Modra <amodra@bigpond.net.au>
13113 * function.h: (struct function): Add profile_label_no field.
13114 (current_function_profile_label_no): Define.
13115 * function.c: (profile_label_no): New static var.
13116 (expand_function_start): Increment it, and copy to
13117 current_function_profile_label_no.
13118 * output.h (profile_label_no): Delete.
13119 * final.c (profile_label_no): Delete.
13120 (profile_function): Use current_function_profile_label_no.
13121 (final_end_function): Don't increment profile_label_no here.
13122 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
13123 profile_label_no with current_function_profile_label_no.
13124 * config/pa/pa.c (current_function_number): Delete.
13125 (pa_output_function_prologue): Don't output profile label here.
13126 (hppa_profile_hook): Use label_no param rather than
13127 current_function_number.
13128 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
13129 * config/pa/pa.h: .. here.
13130 (FUNCTION_PROFILER): Output profile label here.
13132 2002-04-22 Eric Christopher <echristo@redhat.com>
13134 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
13135 patch of 2002-04-09 due to binutils issues.
13136 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
13138 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
13140 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
13141 constraint to 'o' for m=r and r=m alternatives.
13142 ("*movv8hi_internal1"): Same.
13143 ("*movv16qi_internal1"): Same.
13144 ("*movv4sf_internal1"): Same.
13146 2002-04-22 Janis Johnson <janis187@us.ibm.com>
13148 * rtl.h (RTX_FLAG): New macro.
13149 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
13150 * final.c (alter_subreg): Use macro to access rtx flag.
13151 * integrate.c (copy_rtx_and_substitute): Use new access macro.
13152 * print-rtl.c (print_rtx): Use new access macro.
13154 * cse.c (insert): Check rtx code before accessing flag.
13156 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
13157 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
13158 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
13159 convert_const_symbol_ref, make_canonical, make_alternative_compare,
13160 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
13161 simplify_test_exp, optimize_attrs, simplify_by_exploding,
13162 find_and_mark_used_attributes, unmark_used_attributes,
13163 add_values_to_cover, simplify_with_current_value,
13164 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
13165 copy_rtx_unchanging, main): Use new access macros.
13167 2002-04-22 Tom Rix <trix@redhat.com>
13169 * expmed.c (init_expmed): Generate shifted constant once.
13171 2002-04-22 Zack Weinberg <zack@codesourcery.com>
13173 * c-lex.c (lex_charconst): Call convert to get constant in
13174 proper type; don't just smash the type field.
13177 * config.gcc: Add list of obsolete configurations. Disallow
13178 building these without --enable-obsolete.
13179 * doc/install.texi: Document --enable-obsolete and obsoletion
13180 policy. Mention obsoletion of individual targets in
13181 appropriate places.
13183 2002-04-22 Richard Henderson <rth@redhat.com>
13185 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
13187 2002-04-22 Mark Mitchell <mark@codesourcery.com>
13190 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
13191 (walk_fixup_memory_subreg): Likewise.
13192 (fixup_var_refs_insn): Adjust accordingly.
13193 (fixup_var_refs_1): Likewise.
13195 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
13197 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
13198 LIBPATH_ARCH64_SPEC): Define.
13199 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
13200 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
13201 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
13202 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
13204 2002-04-22 Joel Sherrill <joel@OARcorp.com>
13206 * gthr-rtems.h: Correct prototypes to remove warnings.
13208 2002-04-22 Richard Henderson <rth@redhat.com>
13211 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
13213 * gcse.c (free_insn_expr_list_list): New.
13214 (clear_modify_mem_tables): Use it. Fix bit set usage.
13215 (canon_list_insert): Use EXPR_LISTs for expressions.
13216 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
13218 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
13220 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
13221 file change and include code to _cpp_pop_buffer.
13222 * cpphash.h (struct pending_option): Predeclare.
13223 (struct cpp_reader): New member next_include_file.
13224 (_cpp_pop_file_buffer): Update.
13225 (_cpp_push_next_buffer): Update, rename.
13226 * cppinit.c (cpp_destroy): Free include chain and pending here.
13227 (cpp_finish_options): Simplify.
13228 (_cpp_push_next_buffer): Rename and clean up.
13229 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
13231 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
13233 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
13235 * config/rs6000/altivec.h (vec_xor): Add variant for both args
13236 being vector signed int.
13238 (vec_xor): Add variant for both args being vector signed char.
13239 Remove redundant variant.
13242 2002-04-21 David S. Miller <davem@redhat.com>
13244 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
13245 compare mode in output RTL.
13247 2002-04-22 David Edelsohn <edelsohn@gnu.org>
13249 * config/rs6000/rs6000.c (rs6000_override_options): Correct
13250 style and formatting of previous patch.
13252 2002-04-22 Alan Modra <amodra@bigpond.net.au>
13254 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
13255 flag_pic for ABI_AIX.
13257 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
13259 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
13260 * cppfiles.c (read_include_file): Similarly.
13261 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
13262 uxstrdup ustrchr, ufputs): Similarly.
13263 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
13264 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
13265 cpp_ideq, parse_identifier, parse_number): Similarly.
13266 * cpplib.c (struct directive, dequote_string, D, run_directive,
13267 cpp_push_buffer): Similarly.
13268 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
13269 _cpp_create_definition, check_trad_stringification,
13270 cpp_macro_definition): Similarly.
13272 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
13274 * cppmacro.c (funlike_invocation_p): Don't step back
13277 2002-04-21 David Edelsohn <edelsohn@gnu.org>
13279 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
13282 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
13284 * doc/invoke.texi: Remove Chill references.
13285 * doc/gcc.texi: Update last modified date.
13287 2002-04-20 Kazu Hirata <kazu@hxi.com>
13289 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
13290 push and pop. Replace add.l with add.w.
13292 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
13294 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
13295 multiply instructions for H8/300H case.
13297 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
13299 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
13300 Bum three instructions from each routine.
13302 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
13304 * Makefile.in: Update.
13305 * decl.c (push_c_function_context, pop_c_function_context,
13306 mark_c_function_context): Rename for consistency.
13307 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
13308 * c-tree.h (push_c_function_context, pop_c_function_context,
13309 mark_c_function_context): Rename for consistency.
13310 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
13311 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
13312 * function.c (init_lang_status, save_lang_status,
13313 restore_lang_status, mark_lang_status, free_lang_status):
13314 Move to langhooks.h.
13315 (push_function_context_to, pop_function_context_from,
13316 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
13318 * function.h (init_lang_status, save_lang_status,
13319 restore_lang_status, mark_lang_status, free_lang_status):
13320 Move to langhooks.h.
13321 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
13322 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
13323 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
13324 LANG_HOOKS_FUNCTION_INITIALIZER): New.
13325 (LANG_HOOKS_INITIALIZER): Update.
13326 (lhd_do_nothing_f): New.
13327 * langhooks.h (struct lang_hooks_for_functions): New.
13328 (struct lang_hooks): New hooks.
13329 * langhooks.c (lhd_do_nothing_f): New.
13331 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
13332 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
13334 2002-04-19 David S. Miller <davem@redhat.com>
13336 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
13337 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
13339 2002-04-19 Jakub Jelinek <jakub@redhat.com>
13341 PR optimization/3756
13342 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
13343 x = ((int) y < 0) ? cst1 : cst2.
13345 2002-04-19 Jakub Jelinek <jakub@redhat.com>
13348 * function.c: Reapply patch for c/6358.
13349 (expand_function_end): Copy decl_rtl's mode, not
13350 current_function_return_rtx mode.
13352 2002-04-19 Joel Sherrill <joel@OARcorp.com>
13354 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
13357 2002-04-19 Tom Tromey <tromey@redhat.com>
13359 * doc/install.texi (Specific): Update status of Solaris 2.8.
13360 For PR libgcj/6158.
13362 2002-04-19 Andreas Schwab <schwab@suse.de>
13364 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
13365 (PUT_REAL): Restore old definition.
13367 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
13368 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13370 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
13371 binutils 2.11.2 and higher generate smaller binaries than Sun's
13374 2002-04-19 Mark Mitchell <mark@codesourcery.com>
13377 * toplev.c (rest_of_compilation): Do not defer functions for which
13378 TREE_SYMBOL_REFERENCED has already been set.
13380 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
13382 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
13385 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
13387 * builtins.c: Include langhooks.h.
13388 (lang_type_promotes_to): Remove.
13389 (expand_builtin_va_arg): Use new hook.
13390 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
13391 (simple_type_promotes_to): Move to c-typeck.c.
13392 * c-common.h (simple_type_promotes_to): Remove.
13393 * c-decl.c (duplicate_decls, grokdeclarator): Update.
13394 * c-format.c: Include langhooks.h.
13395 (check_format_types): Update.
13396 * c-tree.h (c_type_promotes_to): New.
13397 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
13398 (type_lists_compatible_p): Update.
13399 * langhooks-def.h (lhd_type_promotes_to): New.
13400 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
13401 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
13402 * langhooks.c (lhd_type_promotes_to): New.
13403 * langhooks.h (struct lang_hooks_for_types): New hook.
13404 * tree.h (lang_type_promotes_to): Remove.
13406 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
13408 2002-04-18 Richard Henderson <rth@redhat.com>
13410 * function.c: Revert patch for c/6358.
13412 2002-04-18 Richard Henderson <rth@redhat.com>
13414 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
13415 blocks. Handle multiple references to the TRAP block. Handle
13416 non-adjacent THEN and OTHER blocks.
13418 2002-04-18 Richard Henderson <rth@redhat.com>
13420 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
13421 crash with no type for by-mode libcalls.
13423 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
13425 2002-04-18 Bob Wilson <bob.wilson@acm.org>
13427 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
13428 __xtensa_nonlocal_goto): Use a syscall instructions to flush
13429 the register windows.
13431 2002-04-18 Zack Weinberg <zack@codesourcery.com>
13433 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
13434 appropriate. Document need for extended precision even when
13435 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
13436 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
13437 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
13438 instead of relying on later syntax error when REAL_WIDTH > 5.
13439 * real.c: Define NE based only on whether or not we have a
13440 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
13441 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
13442 define GET_REAL and PUT_REAL as simple memcpy operations; no
13443 need to byteswap or round.
13444 Use #error instead of #ifdef-ing out the entire file, for
13445 prompt error detection.
13447 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
13449 2002-04-18 David S. Miller <davem@redhat.com>
13451 * config/sparc/sparc.h (BRANCH_COST): Define.
13453 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
13456 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
13458 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
13459 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
13460 propagate_block calls after relaxation loop using new variable
13461 stabilized_prop_flags.
13463 2002-04-18 Richard Henderson <rth@redhat.com>
13465 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
13466 (ia64_va_arg): Expect variable sized types by reference.
13467 * config/ia64/ia64-protos.h: Update.
13468 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
13469 ia64_function_arg_pass_by_reference.
13471 2002-04-18 Richard Henderson <rth@redhat.com>
13473 * ifcvt.c: Include except.h.
13474 (block_has_only_trap): Break out from find_cond_trap.
13475 (find_cond_trap): Use it. Always delete the trap block.
13476 (merge_if_block): Allow then block null. Be less simplistic about
13477 what insns can end a block.
13478 * Makefile.in (ifcvt.o): Depend on except.h.
13480 * config/ia64/ia64.md (trap, conditional_trap): New.
13482 2002-04-18 Jakub Jelinek <jakub@redhat.com>
13485 * function.c (assign_parms): Assign hard current_function_return_rtx
13487 (expand_function_end): ...not here.
13489 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
13491 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
13492 * c-tree.h (c_incomplete_type_error): New.
13493 * c-typeck.c (require_complete_type, build_component_ref): Update.
13494 (incomplete_type_error): Rename.
13495 * langhooks-def.h (lhd_incomplete_type_error): New.
13496 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
13497 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
13498 * langhooks.c (lhd_incomplete_type_error): New.
13499 * langhooks.h (struct lang_hooks_for_types): New hook.
13500 * tree.c (size_in_bytes): Use new hook.
13501 * tree.h (incomplete_type_error): Remove.
13503 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
13505 2002-04-18 Zack Weinberg <zack@codesourcery.com>
13507 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
13508 TARGET_FLOAT_FORMAT blocks.
13510 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13512 * doc/install.texi (Downloading the source): Do not mention Chill
13513 any longer, but mention Ada.
13514 (Configuration): Do not mention Chill any longer.
13516 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
13518 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
13520 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
13522 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
13525 2002-04-18 Jakub Jelinek <jakub@redhat.com>
13527 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
13528 instead of unsigned_type.
13530 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
13532 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
13533 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
13536 2002-04-18 Bernd Schmidt <bernds@redhat.com>
13538 * attribs.c (vector_type_node_list): New static variable.
13539 (handle_vector_size_attribute): Use it to avoid generating a
13540 new type node each time we are called.
13542 * combine.c (subst): Avoid trying to make a vector mode subreg of
13543 an integer constant.
13544 (gen_lowpart_for_combine): Likewise.
13546 2002-04-18 Roger Sayle <roger@eyesopen.com>
13547 Jakub Jelinek <jakub@redhat.com>
13549 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
13550 for integer constant c (if x has unsigned type or sign bit is not
13551 set in c). This folds the zero/sign extension into the bit-wise and
13554 2002-04-18 Jakub Jelinek <jakub@redhat.com>
13557 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
13560 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
13562 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
13564 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
13566 * gcc.c (read_specs): Detect and fail if an attempt is made to
13567 rename a spec string to an already existing string.
13569 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
13571 * config/s390/s390.c (legitimize_pic_address): Do not generate
13572 illegal address constant without CONST.
13574 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13576 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
13577 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13579 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
13581 PR optimization/6305
13582 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
13583 to make sure previous reloads are taken into account. Generate
13584 better code if one operand is an in-range immediate constant.
13586 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
13588 * doc/install.texi (Building): libgcj requires GNU make.
13590 2002-04-17 Jakub Jelinek <jakub@redhat.com>
13593 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
13594 even if hard quad and register is not floating.
13595 (movtf reg<-mem split): Disallow splitting if hard quad and
13596 register is floating.
13597 (movtf mem<-reg split): Likewise.
13598 * config/sparc/sparc.c (fp_register_operand): New predicate.
13599 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
13601 2002-04-17 Zack Weinberg <zack@codesourcery.com>
13603 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
13604 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
13605 (unprotoize.o): Ditto. Build from protoize.c. Define
13606 UNPROTOIZE on command line.
13607 * protoize.c: Include cppdefault.h. Delete include_defaults.
13608 (in_system_include_dir): Use cpp_include_defaults (defined in
13610 * unprotoize.c: Delete file.
13612 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
13614 * config/rs6000/altivec.h (vec_ld): Add array variants.
13618 2002-04-17 Alan Matsuoka <alanm@redhat.com>
13619 Aldy Hernandez <aldyh@redhat.com>
13621 * config/rs6000/altivec.h: Define __ALTIVEC__.
13626 (vec_vmaddfp): New.
13628 Add parentheses to all macro arguments.
13630 2002-04-16 Richard Henderson <rth@redhat.com>
13633 * except.c (remove_eh_handler): Insert inner regions at beginning
13634 of sibling chain. Refactor expressions.
13636 2002-04-16 Richard Henderson <rth@redhat.com>
13638 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
13639 * config/sparc/sol2-gas-bi.h: New file.
13640 * config.gcc (sparc*-solaris): Add it as needed.
13641 * configure.in (AS_SPARC64_FLAG): Remove check.
13642 * config.in, configure: Regenerate.
13644 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
13646 2002-04-16 Richard Henderson <rth@redhat.com>
13648 * config/mips/mips.c (override_options): Don't override N32 for
13652 * config/mips/mips.md (can_delay): Split out of existing define_delays.
13653 (HILO_delay): Set can_delay false.
13655 2002-04-16 Dale Johannesen <dalej@apple.com>
13657 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
13658 instruction addresses.
13659 (rs6000_output_function_epilogue): Likewise.
13661 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
13663 * c-parse.in (poplevel, compstmt_start,
13664 compstmt_primary_start): Add ending ';', in accordance
13667 2002-04-16 Richard Henderson <rth@redhat.com>
13669 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
13670 Adjust tm_file order to get TARGET_DEFAULT set properly.
13671 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
13672 * doc/install.texi (sparc-solaris): Update.
13674 2002-04-16 Dale Johannesen <dalej@apple.com>
13676 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
13677 comparison operands do not match each other or if modes of
13678 conditions do not match result.
13680 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
13683 * config/s390/s390.md (mulsidi3): Set both subregs of the
13684 multiword register.
13686 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
13688 * config/rs6000/altivec.h (vec_addc): Type check.
13690 2002-04-16 Jakub Jelinek <jakub@redhat.com>
13693 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
13695 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
13697 2002-04-15 Richard Henderson <rth@redhat.com>
13699 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
13700 call_really_used_regs too.
13702 2002-04-15 Richard Henderson <rth@redhat.com>
13704 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
13706 2002-04-15 David S. Miller <davem@redhat.com>
13708 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
13709 as being CLOBBERed.
13711 2002-04-16 Jakub Jelinek <jakub@redhat.com>
13714 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
13715 CONST_VECTOR is { 0, ... 0 }.
13717 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
13719 * doc/install.texi (Installing GCC: Configuration): Clarify
13720 the only supported ways to configure gcc.
13722 2002-04-15 Roland McGrath <roland@frob.com>
13724 * config.gcc (alpha*-*-gnu*): New target configuration.
13725 * config/alpha/gnu.h: New file for it.
13726 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
13728 2002-04-16 Mark Mitchell <mark@codesourcery.com>
13730 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
13731 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
13732 * tree.h (expand_start_stmt_expr): Update prototype.
13733 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
13734 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
13735 on the STMT_EXPR created for the inline function.
13737 2002-04-15 Richard Henderson <rth@redhat.com>
13739 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
13740 config/i386/linux-aout.h, config/i386/linux-oldld.h,
13741 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
13742 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
13743 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
13744 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
13745 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
13746 Define __gnu_linux__, not gnu_linux.
13747 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
13749 2002-04-15 Mark Mitchell <mark@codesourcery.com>
13751 Remove Chill front end.
13752 * gcc.c (default_compilers): Remove Chill entries.
13753 * ch: Remove directory.
13754 * doc/frontends.texi: Remove information about Chill.
13755 * doc/sourcebuild.texi: Likewise.
13756 * doc/standards.texi: Likewise.
13758 2002-04-15 Douglas B Rupp <rupp@gnat.com>
13760 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
13761 (LONGLONG_STANDALONE): Define.
13763 2002-04-15 David S. Miller <davem@redhat.com>
13765 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
13766 Call emit_library_call with LCT_NORMAL.
13767 (sparc_initialize_trampoline): Use LCT_foo instead of
13768 magic constant in emit_library_call invocations.
13769 (sparc64_initialize_trampoline): Likewise.
13770 (sparc_profile_hook): Likewise.
13771 * config/sparc/sparc.md: Likewise.
13773 * config/sparc/sparc.c (sparc_extra_constraint_check):
13774 Fix type of argument 'c'.
13775 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
13778 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
13780 * diagnostic.h (output_buffer_state): Redefine.
13781 (output_format_decoder): New macro.
13782 (output_prefixing_rule): Likewise.
13783 (output_line_cutoff): Likewise.
13784 (diagnostic_format_decoder): Adjust.
13785 (diagnostic_prefixing_rule): Likewise.
13786 (diagnostic_line_cutoff): Likewise.
13787 (diagnostic_state): Likewise.
13788 (diagnostic_kind_count): Likewise.
13789 (diagnostic_buffer): Now a macro.
13791 * diagnostic.c (diagnostic_buffer): Remove definition.
13792 (output_is_line_wrapping): Adjust.
13793 (set_real_maximum_length): Likewise.
13794 (output_set_maximum_length): Likewise.
13795 (init_output_buffer): Likewise.
13796 (lhd_print_error_function): Likewise.
13797 (output_do_verbatim): Likewise.
13799 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
13801 * cpperror.c (print_location): Don't print include chain
13803 (cpp_begin_message): Update to use DL_ macros.
13804 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
13805 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
13806 cpp_notice, cpp_notice_from_errno): Remove.
13807 (cpp_error, cpp_error_with_line): Update to take a diagnostic
13810 * cppexp.c (CPP_ICE): Remove.
13811 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
13812 lex, integer_overflow, _cpp_parse_expr): Update.
13813 * cppfiles.c (read_include_file, find_include_file,
13814 handle_missing_header, _cpp_read_file, remap_filename): Update.
13815 * cpphash.h (enum error_type): Remove.
13816 (_cpp_begin_message): Update.
13817 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
13818 cpp_handle_option, cpp_post_options): Update.
13819 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
13820 skip_whitespace, parse_identifier, parse_slow, parse_string,
13821 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
13822 cpp_interpret_charconst): Update.
13823 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
13824 lex_macro_node, do_undef, glue_header_name, parse_include,
13825 do_include_common, read_flag, do_line, do_linemarker, do_ident,
13826 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
13827 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
13828 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
13829 _cpp_pop_buffer, do_diagnostic): Update.
13830 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
13831 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
13832 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
13833 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
13834 cpp_notice, cpp_notice_from_errno): Remove.
13835 (cpp_error, cpp_error_with_line): Update to take a diagnostic
13838 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
13839 collect_args, enter_macro_context, save_parameter, parse_params,
13840 _cpp_create_definition, check_trad_stringification,
13841 cpp_macro_definition): Update.
13842 * cppmain.c (cpp_preprocess_file): Update.
13843 * fix-header.c (read_scan_file): Update.
13845 2002-04-14 Andreas Schwab <schwab@suse.de>
13847 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
13849 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
13851 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
13853 2002-04-13 Mark Mitchell <mark@codesourcery.com>
13855 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
13858 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
13860 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
13862 2002-04-13 Joel Sherrill <joel@OARcorp.com>
13864 * config/sparc/t-elf: Enable v8 multilibs. Impacts
13865 sparc-elf and sparc-rtems targets.
13867 2002-04-13 Mark Mitchell <mark@codesourcery.com>
13869 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
13870 defined, and __gnu_hurd__ wherever __GNU__ is defined.
13871 * arm/linux-elf.h: Likewise.
13872 * cris/aout.h: Likewise.
13873 * cris/linux.h: Likewise.
13874 * i370/linux.h: Likewise.
13875 * i386/gnu.h: Likewise.
13876 * i386/linux-aout.h: Likewise.
13877 * i386/linux-oldld.h: Likewise.
13878 * i386/linux.h: Likewise.
13879 * i386/linux64.h: Likewise.
13880 * ia64/linux.h: Likewise.
13881 * m68k/linux-aout.h: Likewise.
13882 * m68k/linux.h: Likewise.
13883 * mips/linux.h: Likewise.
13884 * pa/pa-linux.h: Likewise.
13885 * pj/linux.h: Likewise.
13886 * rs6000/sysv4.h: Likewise.
13887 * s390/linux.h: Likewise.
13888 * sh/linux.h: Likewise.
13889 * sparc/linux-aout.h: Likewise.
13890 * sparc/linux.h: Likewise.
13891 * sparc/linux64.h: Likewise.
13892 * xtensa/linux.h: Likewise.
13894 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
13896 * stmt.c (check_unique_operand_names): Expect operand names to
13897 be strings rather than identifiers. Use simple_cst_equal to
13899 (resolve_operand_name_1): Make same identifier to string change here.
13900 * c-parse.in (asm_operand): Convert a named operand into a string.
13901 * cp/parse.y (asm_operand): Likewise.
13903 2002-04-13 Andreas Schwab <schwab@suse.de>
13905 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
13907 2002-04-12 Mark Mitchell <mark@codesourcery.com>
13909 Revert these changes:
13911 2002-04-06 Mark Mitchell <mark@codesourcery.com>
13914 * stor-layout.c (layout_decl): Reset the RTL for the decl.
13916 2002-04-12 Richard Henderson <rth@redhat.com>
13918 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
13919 (sparc*-*-solaris): Clean up header files.
13920 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
13921 and plan on generating 64-bit code.
13922 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
13923 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
13924 * config/sparc/sol2-sld-64.h: Rename ...
13925 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
13926 for AS_SPARC64_FLAG not defined.
13927 * config/sparc/sol2-gld-bi.h: New.
13928 * config/sparc/sol2-sld.h: Remove.
13929 * config/sparc/sol26-sld.h: New.
13930 * config/sparc/sol2.h: Tidy comments.
13931 * doc/install.texi: Document sparc-solaris configury changes.
13933 2002-04-12 Richard Henderson <rth@redhat.com>
13935 * recog.c (offsettable_address_p): Match the logic in adjust_address.
13937 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
13938 in 64-bit mode only. Use only for 32-bit or MEDLOW.
13940 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13942 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
13944 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
13946 * pa.c (pa_can_combine_p): Call extract_insn before calling
13947 constrain_operands.
13949 2002-04-12 Douglas B Rupp <rupp@gnat.com>
13951 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
13952 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
13953 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
13954 (CPP_PREDEFINES): Handle __declspec.
13955 * config/i386/t-interix (USER_H): Remove.
13957 2002-04-12 DJ Delorie <dj@redhat.com>
13959 * integrate.c (compare_blocks): Make comparisons safe for when
13960 sizeof(int) < sizeof(char *).
13961 (find_block): Likewise.
13963 2002-04-12 Jan Hubicka <jh@suse.cz>
13964 David Edelsohn <edelsohn@gnu.org>
13966 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
13968 (symbol_ref_operand): New.
13969 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
13970 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
13972 2002-04-12 Andreas Schwab <schwab@suse.de>
13974 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
13975 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
13976 overrides the definition in config/svr4.h.
13978 2002-04-12 Eric Norum <eric.norum@usask.ca>
13980 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
13981 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
13982 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
13983 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
13984 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
13985 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
13986 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
13987 definitions to config/rtems.h and make the targets more similar.
13989 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13991 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
13992 POINTERS_EXTEND_UNSIGNED.
13993 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
13994 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
13996 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
13999 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
14001 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
14002 depends on TARGET_SHMEDIA, not TARGET_SH5.
14004 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
14006 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
14007 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
14009 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
14011 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
14014 2002-04-12 Andreas Schwab <schwab@suse.de>
14016 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
14018 2002-04-12 Richard Henderson <rth@redhat.com>
14021 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
14023 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
14024 modes spanning multiple hard regs.
14026 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
14028 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
14030 * pa.c (pa_output_function_prologue): Don't accumulate the total
14031 number of code bytes when using TARGET_64BIT, or gas, SOM and not
14032 the portable runtime.
14033 (output_deferred_plabels): Handle 64bit plabels.
14034 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
14035 generating pic code using the GAS assembler for object formats that
14036 are not SOM (ie., ELF32 and ELF64).
14037 (output_millicode_call): Check attribute type if attribute length is 28.
14038 Likewise use $PIC_pcrel$0. Only call get_attr_length and
14039 dbr_sequence_length once.
14040 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
14041 dbr_sequence_length once.
14042 * pa.h (TARGET_SOM): Define if not defined.
14043 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
14044 with GAS and not SOM.
14045 (jump, call_internal_reg, call_value_internal_reg): Likewise.
14046 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
14048 2002-04-11 David O'Brien <obrien@FreeBSD.org>
14050 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
14051 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
14052 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
14053 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
14054 elfos.h and dbxelf.h values are fine now.
14055 * config/i386/freebsd.h, config/alpha/freebsd.h
14056 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
14058 2002-04-11 David O'Brien <obrien@FreeBSD.org>
14060 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
14061 or set Acpu or Amachine. Reformat.
14062 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
14064 (LINK_SPEC): Do not need to undef.
14065 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
14066 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
14067 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
14069 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
14070 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
14071 (LINK_SPEC): Do not need to undef.
14072 (DONT_USE_BUILTIN_SETJMP): Do not define.
14073 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
14074 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
14075 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
14076 Remove trailing spaces.
14077 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
14078 __ELF__, or set Acpu or Amachine. Reformat.
14079 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
14082 2002-04-11 David O'Brien <obrien@FreeBSD.org>
14084 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
14085 all other *-*-freebsd* targets.
14087 2002-04-11 Richard Henderson <rth@redhat.com>
14089 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
14091 2002-04-11 David O'Brien <obrien@FreeBSD.org>
14093 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
14094 Include {cpu}/{cpu}.h thru tm_file.
14095 (alpha*-*-linux*ecoff): Remove target.
14096 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
14097 (LINK_SPEC): Remove, is not OS independent.
14098 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
14099 (LINK_SPEC): Do not need to #undef any longer.
14100 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
14102 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
14104 (LINK_SPEC): Moved here from alpha/elf.h.
14105 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
14106 SUB_CPP_PREDEFINES.
14107 * config/alpha/linux-ecoff.h: Remove.
14108 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
14109 (CPP_SPEC): Define _POSIX_SOURCE as needed.
14110 (CPP_SUBTARGET_SPEC): Do not define.
14111 (LINK_SPEC): Do not need to #undef any longer.
14112 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
14113 * config/alpha/vms.h: Likewise.
14115 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
14117 * doc/extend.texi: Remove old claim that typedefs cannot have
14118 an alignment attribute.
14120 2002-04-11 Jakub Jelinek <jakub@redhat.com>
14122 PR optimization/6177
14123 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
14124 bitpos is 0 and bitsize CONCAT size.
14126 2002-04-11 Jakub Jelinek <jakub@redhat.com>
14129 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
14131 2002-04-10 David O'Brien <obrien@FreeBSD.org>
14133 * config/alpha/freebsd.h: Minor reformatting.
14134 (CPP_SPEC): Define ELF and add cpp_subtarget.
14135 (ASM_SPEC): No longer needed.
14137 2002-04-11 Richard Henderson <rth@redhat.com>
14139 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
14140 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
14141 (dimode mem/zero splitter): New.
14143 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
14145 * config/cris/cris.c (cris_override_options): Tweak error message
14146 for PIC not implemented.
14148 * config/cris/cris.h: Tweak comments related to parameter-passing.
14150 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
14152 2002-04-10 Richard Henderson <rth@redhat.com>
14154 * except.c (add_ehl_entry): Allow duplicates after landing pad
14157 2002-04-10 David Edelsohn <edelsohn@gnu.org>
14159 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
14161 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
14163 * c-decl.c (c_init_decl_processing): Move generation of
14164 decls for g77_integer_type_node and friends from here ...
14165 * c-common.c (c_common_nodes_and_builtins): ... to here.
14167 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
14169 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
14170 is only used as frame pointer when frame_pointer_needed is true.
14172 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
14175 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
14176 for the fact that the pool entry uses two words.
14177 (movdf_hard_insn): Similarly. Also, ADR instruction can span
14179 (movdf_soft_insn): Similarly.
14180 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
14181 for the fact that the pool entry uses three words.
14183 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
14185 * config/mips/mips.c (mips_va_arg): When using the struct version
14186 of the EABI va_list, allow arguments in the register save area to
14187 take up less room than a stack argument.
14189 2002-04-10 Richard Henderson <rth@redhat.com>
14191 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
14192 if EXPAND_INITIALIZER.
14194 2002-04-09 Richard Henderson <rth@redhat.com>
14196 * config/alpha/alpha.md (movdi_er_maybe_g): New.
14197 * config/alpha/alpha.c (alpha_expand_mov): Use it.
14199 2002-04-10 Alan Modra <amodra@bigpond.net.au>
14201 PR optimization/6233
14202 * rtlanal.c (pure_call_p): New function.
14203 * rtl.h (pure_call_p): Declare.
14204 * loop.c (prescan_loop): Use it to set has_nonconst_call.
14205 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
14207 2002-04-09 Eric Christopher <echristo@redhat.com>
14209 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
14210 information to .comm directive.
14212 2002-04-09 Richard Henderson <rth@redhat.com>
14215 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
14217 2002-04-09 Richard Henderson <rth@redhat.com>
14219 * basic-block.h (flow_delete_block_noexpunge): Declare.
14220 (expunge_block_nocompact): Declare.
14221 * cfg.c (expunge_block_nocompact): Split out from ...
14222 (expunge_block): ... here.
14223 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
14224 (flow_delete_block_noexpunge): Split out from ...
14225 (flow_delete_block): ... here.
14226 * cfgcleanup.c (delete_unreachable_blocks): Compact while
14227 removing dead blocks.
14228 * except.c (exception_handler_labels): Remove.
14229 (exception_handler_label_map): New.
14230 (struct eh_region): Add aka member.
14231 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
14232 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
14233 (for_each_eh_label, for_each_eh_label_1): New.
14234 (init_eh): Register exception_handler_label_map.
14235 (free_eh_status): Use free_region.
14236 (find_exception_handler_labels): Use the map, not the list.
14237 (remove_exception_handler_label): Likewise.
14238 (maybe_remove_eh_handler): Likewise.
14239 (remove_eh_handler): Use the region aka bitmap.
14240 * except.h (exception_handler_labels): Remove.
14241 (for_each_eh_label): Declare.
14242 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
14243 * loop.c (invalidate_loops_containing_label): New.
14244 (find_and_verify_loops): Use it. Use for_each_eh_label.
14245 * sched-rgn.c (is_cfg_nonregular): Use
14246 current_function_has_exception_handlers.
14248 2002-04-09 Richard Henderson <rth@redhat.com>
14250 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
14251 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
14252 Do not return changed status.
14253 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
14254 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
14255 New functions that do return changed status.
14256 * sbitmap.h: Update decls.
14257 * gcse.c, lcm.c: Use _cg functions as needed.
14259 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
14261 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
14262 (sh64-*-elf*, sh-*-rtemself*): Likewise.
14263 * config/sh/embed_bb.c: New file.
14264 * config/sh/embed-elf.h: New file.
14265 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
14266 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
14267 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
14269 (SUBTARGET_CPP_PTR_SPEC): Don't define.
14270 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
14271 Add subtarget_asm_endian_spec.
14272 (ASM_SPEC): Use subtarget_asm_endian_spec.
14273 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
14274 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
14275 (WCHAR_UNSIGNED): Define.
14276 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
14277 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
14278 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
14280 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
14281 (sh_adjust_cost): Likewise.
14282 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
14284 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
14285 (WCHAR_TYPE_SIZE): Likewise.
14286 (ASM_SPEC): Use subtarget_asm_endian_spec.
14287 (SH_ELF_WCHAR_TYPE): #undef/ #define.
14288 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
14289 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
14290 (MAX_WCHAR_TYPE_SIZE): Don't #define .
14291 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
14292 (USER_LABEL_PREFIX): Don't #undef /#define .
14293 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
14294 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
14295 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
14296 (ASM_SPEC): Likewise.
14297 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
14298 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
14299 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
14300 (LIB2FUNCS_EXTRA): Define.
14301 * t-sh64 (LIB2FUNCS_EXTRA): Define.
14302 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
14303 (LIB1ASMFUNCS_CACHE): Define.
14304 (LIB2FUNCS_EXTRA): Redefine empty.
14306 2002-04-08 Richard Henderson <rth@redhat.com>
14308 * reorg.c (get_branch_condition): Use reversed_comparison_code.
14310 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14312 * config/m68hc11/larith.asm (__map_data_section): Fix condition
14313 and optimize for size.
14314 (__do_global_ctors): Fix pointer comparison.
14315 (__do_global_dtors): Likewise.
14317 2002-04-09 David S. Miller <davem@redhat.com>
14319 * config/sparc/sparc.c (sparc_extra_constraint_check): New
14320 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
14321 allow reloading pseudos.
14322 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
14323 * config/sparc/sparc-protos.h: Declare it.
14325 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
14326 unsigned comparison warning.
14327 (output_restore_regs): Mark leaf_function as unused.
14329 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14331 * expr.c (is_aligning_offset): New function.
14332 (expand_expr, case COMPONENT_EXPR): Call it.
14334 2002-04-08 David S. Miller <davem@redhat.com>
14337 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
14339 Make init_priority work on Sparc when using GNU ld.
14340 * config/sparc/linux.h, config/sparc/linux64.h,
14341 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
14342 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
14343 * config/sparc/sol2-gld.h: New file to do the same.
14344 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
14345 sparc/sol2-gld.h to tm_file.
14347 PR optimization/4328
14348 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
14349 * doc/md.texi: Document it.
14350 * config/sparc/sparc.md (movdi_insn_sp64_novis,
14351 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
14352 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
14353 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
14354 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
14356 2002-04-08 Andreas Jaeger <aj@suse.de>
14358 * stmt.c (expand_asm_operands): Revert last patch from Richard
14361 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14363 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
14364 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
14366 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14368 * doc/contrib.texi (Contributors): Add David O'Brien.
14370 2002-04-08 Alan Modra <amodra@bigpond.net.au>
14372 * configure.in (auto-build.h): Use target_alias and build_alias
14373 when running configure.
14374 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
14375 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
14376 * configure: Regenerate.
14378 2002-04-07 David S. Miller <davem@redhat.com>
14380 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
14382 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
14385 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
14386 generating 32-bit pic code.
14388 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
14390 * cppinit.c (cpp_create_reader): Initialize
14391 discard_comments_in_macro_exp.
14392 (COMMAND_LINE_OPTIONS): Add "-CC" option.
14393 (cpp_handle_option): Handle "-CC" option.
14394 * cpplex.c (save_comment): If saving a C++ comment in
14395 a directive, convert it to a C comment.
14396 (_cpp_lex_direct): Pass second comment start character to
14397 save_comment to indicate comment type.
14398 * cpplib.c (_cpp_handle_directive): If processing
14399 a "#define" directive and discard_comments_in_macro_exp
14400 is false, re-enable saving of comments.
14401 (lex_macro_node): If discard_comments_in_macro_exp is false,
14402 discard any comments before the macro identifier.
14403 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
14405 * cppmacro.c (cpp_get_token): If expanding a macro while
14406 processing a directive, discard any comments we might encounter.
14407 (parse_params): If discard_comments_in_macro_exp is false,
14408 ignore comments in the macro parameter list.
14409 * gcc.c (cpp_unique_options): Add "-CC" option.
14410 (option_map): Map "--comments-in-macros" to "-CC".
14411 * doc/cppopts.texi: Document "-CC" option.
14412 * f/lang-specs.h: Add "-CC" option.
14413 * testsuite/gcc.dg/cpp/maccom1.c: New test.
14414 * testsuite/gcc.dg/cpp/maccom2.c: New test.
14415 * testsuite/gcc.dg/cpp/maccom3.c: New test.
14416 * testsuite/gcc.dg/cpp/maccom4.c: New test.
14417 * testsuite/gcc.dg/cpp/maccom5.c: New test.
14418 * testsuite/gcc.dg/cpp/maccom6.c: New test.
14420 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
14423 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
14425 2002-04-06 Mark Mitchell <mark@codesourcery.com>
14428 * stor-layout.c (layout_decl): Reset the RTL for the decl.
14431 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
14432 RTX_UNCHANGING_P for the functions arguments when a tail call
14435 2002-04-06 Jason Merrill <jason@redhat.com>
14437 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
14438 (parse_options_and_default_flags): Set them appropriately.
14439 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
14441 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
14443 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
14446 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
14449 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
14450 types come in by-reference. Fix typo in comment.
14452 2002-04-05 David S. Miller <davem@redhat.com>
14454 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
14455 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
14456 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
14457 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
14459 2002-04-05 David S. Miller <davem@redhat.com>
14461 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
14462 are not going to emit return instructions, emit at least a nop
14463 for the sake of sane backtraces.
14465 2002-04-05 Richard Henderson <rth@redhat.com>
14467 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
14469 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
14471 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
14473 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
14475 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
14476 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
14477 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
14479 2002-04-05 Andreas Schwab <schwab@suse.de>
14481 * c-convert.c: Include c-common.h.
14482 * Makefile.in (c-convert.o): Updated.
14484 2002-04-05 Jakub Jelinek <jakub@redhat.com>
14486 * mklibgcc.in: Use separate libgcc.map for each multilib.
14487 * Makefile.in (distclean): Don't remove libgcc.map here.
14489 2002-04-05 Jakub Jelinek <jakub@redhat.com>
14491 * Makefile.in (s-mlib): Handle --disable-multilib by separate
14492 genmultilib invocation.
14494 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
14496 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
14497 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
14498 to num_gprs for symmetry.
14499 * config/mips/mips.c: Adjust accordingly.
14501 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
14503 * c-common.c (truthvalue_conversion): Rename, update.
14504 * c-common.h (c_common_truthvalue_conversion): New.
14505 * c-convert.c (convert): Update.
14506 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
14507 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
14508 * c-typeck.c (build_binary_op, build_unary_op,
14509 build_conditional_expr): Update.
14510 * fold-const.c (constant_boolean_node, fold): Use langhook.
14511 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
14512 * langhooks.h (struct lang_hooks): New hook.
14513 * stmt.c (expand_decl_cleanup): Use langhook.
14514 * tree.h (truthvalue_conversion): Remove.
14516 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
14518 2002-04-05 Alan Modra <amodra@bigpond.net.au>
14520 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
14521 Add rules to make null object file.
14523 2002-04-04 Jim Blandy <jimb@redhat.com>
14525 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
14526 macro formal parameter names.
14528 2002-04-04 David S. Miller <davem@redhat.com>
14530 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
14532 2002-04-04 Richard Henderson <rth@redhat.com>
14535 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
14536 Support copies into and out of memory. Don't accept allows_reg
14537 and allows_mem as gospel.
14539 2002-04-04 Richard Henderson <rth@redhat.com>
14542 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
14543 (write_dependence_p): Likewise.
14545 2002-04-04 Richard Henderson <rth@redhat.com>
14547 * predict.c (estimate_bb_frequencies): Do frequency calculation
14548 with a volatile temporary.
14550 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
14552 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
14554 2002-04-04 Jakub Jelinek <jakub@redhat.com>
14557 * final.c (final_start_function): Don't bump profile_label_no here...
14558 (final_end_function): ...but here.
14560 2002-04-04 Jakub Jelinek <jakub@redhat.com>
14562 * config/sparc/sparc.md (pic): New attribute.
14563 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
14565 (split after do_builtin_setjmp_setup): New.
14567 2002-04-04 Jakub Jelinek <jakub@redhat.com>
14570 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
14573 2002-04-04 Jakub Jelinek <jakub@redhat.com>
14575 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
14576 UNITS_PER_WORD for zero sized aggregates.
14578 2002-04-03 David S. Miller <davem@redhat.com>
14580 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
14581 one-character spec for this, just use %(link_gcc_c_sequence).
14583 2002-04-03 David S. Miller <davem@redhat.com>
14585 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
14588 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
14590 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
14591 (DWARF_FRAME_RETURN_COLUMN): Move.
14592 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14593 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
14594 * pa.c (except.h, predict.h): Include.
14596 (store_reg_modify, set_reg_plus_d): Revise prototypes.
14597 (output_ascii): Add cast.
14598 (store_reg_modify): Revise to add frame notes.
14599 (set_reg_plus_d): Likewise.
14600 (compute_frame_size): Include space for eh data registers in frame if
14601 the current function calls eh_return.
14602 (hppa_expand_prologue): Ensure register %r2 is saved if the current
14603 function calls eh_return. Save eh data registers if the current
14604 function calls eh_return. Fix code to add frame notes. Emit
14605 blockage to prevent insns with frame notes being scheduled in the
14606 delay slot of calls.
14607 (hppa_expand_epilogue): Restore eh data registers and do final stack
14608 adjustment if the current function calls eh_return. Don't add frame
14610 (output_call): Revise for change in length of call insn. Don't do
14611 return pointer adjustment for an unconditional jump in the delay slot
14612 of a call when using frame notes.
14613 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
14614 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
14615 (ARG_POINTER_CFA_OFFSET): Define.
14616 * pa.md (return_external_pic): New pattern.
14617 (prologue): Correct formatting. Use return_external_pic if current
14618 function calls eh_return.
14619 (call_internal_symref, call_value_internal_symref,
14620 sibcall_internal_symref, sibcall_value_internal_symref): Change default
14621 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
14623 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
14625 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
14626 list of targets to check using "nop" insn.
14627 * configure: Rebuilt.
14629 2002-04-04 Alan Modra <amodra@bigpond.net.au>
14631 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
14633 2002-04-03 David S. Miller <davem@redhat.com>
14635 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
14636 library sequence passed to the linker.
14637 (LINK_COMMAND_SPEC): Use it.
14638 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
14639 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
14640 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
14642 2002-04-03 Jason Merrill <jason@redhat.com>
14644 * except.c (struct eh_status): Remove protect_list.
14645 (begin_protect_partials, end_protect_partials): Remove.
14646 (add_partial_entry): Remove.
14647 * except.h: Remove prototypes.
14649 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
14650 expand_decl_cleanup_eh.
14653 * tree.h (CLEANUP_EH_ONLY): New macro.
14654 * stmt.c (expand_decl_cleanup_eh): New fn.
14655 (expand_cleanups): Check CLEANUP_EH_ONLY.
14656 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
14657 Use expand_decl_cleanup_eh.
14658 (expand_stmt): Adjust.
14659 * c-common.h: Adjust prototype.
14661 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
14663 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
14664 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
14665 (cris_target_asm_function_epilogue): Ditto.
14666 (cris_initial_frame_pointer_offset): Ditto.
14667 (cris_simple_epilogue): Ditto.
14668 (cris_expand_builtin_va_arg): Variable-size types come in
14671 2002-04-03 David S. Miller <davem@redhat.com>
14673 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
14675 (set_fast_math): Correct 'fsr' type.
14677 2002-04-03 Richard Henderson <rth@redhat.com>
14680 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
14681 * toplev.c (check_global_declarations): Use it.
14682 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
14683 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
14684 (LANG_HOOKS_DECLS): Add it.
14685 * langhooks.c (lhd_warn_unused_global_decl): New.
14686 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
14687 * c-objc-common.c (c_warn_unused_global_decl): New.
14688 * c-tree.h (c_warn_unused_global_decl): Declare.
14689 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
14691 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
14693 * langhooks-def.h (lhd_set_decl_assembler_name,
14694 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
14695 (LANG_HOOKS_INITIALIZER): Update.
14696 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
14697 * langhooks.h (struct lang_hooks): New hook.
14698 * tree.c (set_decl_assembler_name): Move to langhooks.c.
14699 (lang_set_decl_assembler_name): Remove.
14700 (init_obstacks): Don't set hook.
14701 (decl_assembler_name): New function.
14702 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
14703 (decl_assembler_name): New.
14704 (lang_set_decl_assembler_name): Remove.
14706 2002-04-03 Jakub Jelinek <jakub@redhat.com>
14708 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
14709 works properly with .hidden symbols.
14710 * configure: Rebuilt.
14711 * config.in: Rebuilt.
14712 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
14713 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
14714 properly with .hidden symbols.
14716 2002-04-03 Jakub Jelinek <jakub@redhat.com>
14719 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
14722 2002-04-03 Richard Henderson <rth@redhat.com>
14725 * sched-rgn.c (sets_likely_spilled): New.
14726 (sets_likely_spilled_1): New.
14727 (add_branch_dependences): Use it.
14729 2002-04-02 Richard Henderson <rth@redhat.com>
14732 * loop.h (LOOP_FIRST_PASS): New.
14733 * loop.c (strength_reduce): Mind it when deciding to unroll.
14734 * toplev.c (rest_of_compilation): Set it.
14736 2002-04-02 David S. Miller <davem@redhat.com>
14738 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
14739 mems_ok_for_ldd_peep when the order of the loads being examined
14741 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
14742 existing comment to increase comprehension of this situation.
14744 2002-04-02 Zack Weinberg <zack@codesourcery.com>
14746 * config/sh/sh.md: Don't use union real_extract.
14748 2002-04-02 Richard Henderson <rth@redhat.com>
14750 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
14752 2002-04-02 David O'Brien <obrien@FreeBSD.org>
14754 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
14755 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
14756 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
14757 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
14758 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
14759 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
14760 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
14761 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
14762 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
14763 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
14764 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
14765 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
14766 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
14767 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
14768 Include as many configury headers via tm_file as possible. This
14769 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
14770 * config/openbsd-oldgas.h: New file.
14771 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
14772 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
14773 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
14774 config/i386/i386-coff.h, config/i386/i386-interix.h,
14775 config/i386/iscdbx.h, config/i386/linux-aout.h,
14776 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
14777 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
14778 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
14779 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
14780 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
14781 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
14782 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
14783 config/i386/vxi386.h: Do not directly include configury headers.
14784 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
14785 Directly include configury headers that are no longer automatically
14786 included by the above headers.
14787 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
14788 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
14789 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
14790 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
14791 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
14792 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
14793 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
14794 (TARGET_VERSION): Define.
14795 * config/i386/beos-elf.h, config/i386/freebsd.h,
14796 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
14797 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
14798 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
14799 config/i386/sco5.h, config/i386/sysv4.h
14800 (TARGET_VERSION): Do not need to protect.
14801 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
14802 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
14803 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
14804 config/i386/i386-interix.h, config/i386/linux-aout.h,
14805 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
14806 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
14807 (YES_UNDERSCORES): Do not define - not needed.
14808 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
14809 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
14810 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
14811 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
14812 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
14813 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
14814 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
14815 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
14817 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
14818 Richard Henderson <rth@redhat.com>
14821 * function.c (assign_temp): Accept either type or decl argument.
14822 Detect variables whose size is too large to fit into an integer.
14823 * stmt.c (expand_decl): Pass the decl, not the type.
14825 2002-04-02 David O'Brien <obrien@FreeBSD.org>
14827 * protoize.c: Match include directory usage with cppdefault.c.
14829 2002-04-03 Jeffrey A Law (law@redhat.com)
14830 Hans-Peter Nilsson <hp@bitrange.com>
14832 * combine.c (simplify_comparison): Avoid narrowing a comparison
14833 with a paradoxical subreg when doing so would drop signficant bits.
14835 2002-04-02 Steve Ellcey <sje@cup.hp.com>
14837 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
14838 if POINTERS_EXTEND_UNSIGNED is defined.
14840 2002-04-02 Richard Henderson <rth@redhat.com>
14843 * local-alloc.c (contains_replace_regs): LO_SUM may contain
14846 2002-04-02 Richard Henderson <rth@redhat.com>
14848 * doc/standards.texi: Document required freestanding libc entry points.
14850 2002-04-02 Alan Modra <amodra@bigpond.net.au>
14852 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
14853 associated splitter. Remove MQ constraint.
14854 (ctrdi_internal4): Correct CCmode clobber.
14856 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
14858 * milli64.S ($$dyncall): New function.
14859 * t-linux (LIB1ASMFUNCS): Revise module list.
14860 (LIB1ASMSRC): Use pa/milli64.S.
14862 2002-04-02 Richard Henderson <rth@redhat.com>
14864 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
14865 rename solaris_sys_varargs_h.
14867 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14869 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
14870 the same mode as its component.
14872 2002-04-02 Richard Henderson <rth@redhat.com>
14875 * final.c (this_is_asm_operands): Export.
14876 * output.h (this_is_asm_operands): Declare.
14877 * config/i386/i386.c (print_operand): Error odd asm operands.
14879 2002-04-02 Richard Henderson <rth@redhat.com>
14882 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
14884 2002-04-01 Richard Henderson <rth@redhat.com>
14887 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
14888 * fixinc/fixincl.x: Rebuild.
14890 2002-04-01 Richard Henderson <rth@redhat.com>
14892 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
14893 (atomic_alloc, atomic_free): New.
14894 (SIZE, MASK_FOR, PTR_IN): New.
14895 (emergency_reg_state, emergency_reg_state_free): New.
14896 (emergency_labeled_state, emergency_labeled_state_free): New.
14897 (reg_state_alloced, labeled_state_alloced): New.
14898 (alloc_reg_state, free_reg_state): New.
14899 (alloc_label_state, free_label_state, free_label_states): New.
14900 (push, pop, dup_state_stack, free_state_stack): Use them.
14901 (desc_label_state): Likewise.
14902 (uw_frame_state_for): Free label states and state stack.
14903 (uw_update_reg_address): Eliminate warnings.
14905 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
14907 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
14908 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
14910 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
14912 * c-decl.c (grokdeclarator): Update.
14913 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
14914 * c-tree.h (c_mark_addressable): New.
14915 * c-typeck.c (default_function_array_conversion, build_unary_op,
14916 build_array_ref, convert_for_assignment): Update.
14917 (mark_addressable): Rename.
14918 * calls.c (try_to_integrate, expand_call): Use langhook.
14919 * expr.c (expand_expr): Use langhook.
14920 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
14921 * langhooks.h (struct lang_hooks): New hook.
14922 * stmt.c (expand_asm_operands): Use langhook.
14923 * tree.h (mark_addressable): Remove.
14925 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
14927 2002-04-01 Bob Wilson <bob.wilson@acm.org>
14929 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
14930 in previous change.
14932 2002-04-01 Bob Wilson <bob.wilson@acm.org>
14934 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
14935 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
14937 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
14939 * c-common.c (unsigned_conversion_warning, convert_and_check,
14940 unsigned_type, signed_type, shorten_compare,
14941 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
14942 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
14943 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
14945 * c-decl.c (grokdeclarator): Update.
14946 * c-format.c (check_format_types): Update.
14947 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
14948 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
14949 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
14950 * convert.c (convert_to_integer): Use new hooks.
14951 * expmed.c (make_tree): Use new hooks.
14952 * expr.c (store_expr): Use new hooks.
14953 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
14954 all_ones_mask_p, unextend, fold): Use new hooks.
14955 * langhooks.h (struct lang_hooks_for_types): New hooks.
14956 * tree.h (signed_or_unsigned_type, signed_type,
14957 unsigned_type): Remove.
14959 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
14960 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
14962 2002-03-31 Richard Henderson <rth@redhat.com>
14964 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
14965 (desc_frgr_mem): Fix reference to f16-f31.
14967 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14969 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
14970 RTVEC_ELT): Const-ify.
14971 * varray.h (VARRAY_CHECK): Const-ify.
14972 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
14973 ggc_mark_rtvec, ggc_mark): Const-ify.
14975 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
14977 * diagnostic.c: Include langhooks-def.h.
14978 * Makefile.in (diagnostic.o): Update.
14980 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
14982 * c-common.c (c_unsafe_for_reeval): Rename.
14983 * c-common.h (c_unsafe_for_reeval): Rename.
14984 * c-decl.c (finish_incomplete_decl): Rename.
14985 (c_init_decl_processing): Don't set langhook.
14986 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
14987 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
14988 * c-objc-common.c (c_objc_common_init): Don't set langhook.
14989 * c-tree.h (finish_incomplete_decl): Rename.
14990 * langhooks-def.h (lhd_unsafe_for_reeval): New.
14991 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
14992 (LANG_HOOKS_INITIALIZER): Update.
14993 * langhooks.c (lhd_unsafe_For_reeval): New.
14994 * langhooks.h (struct langhooks): New hooks.
14995 * toplev.c (incomplete_decl_finalize_hook): Remove.
14996 (wrapup_global_declarations): Update.
14997 * tree.c (lang_unsafe_for_reeval): Remove.
14998 (unsafe_for_reeval): Update.
14999 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
15002 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
15003 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
15005 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
15007 * diagnostic.c (print_error_function): Remove.
15008 (default_print_error_function): Rename.
15009 (report_error_function): Update.
15010 * diagnostic.h (print_error_function): Remove.
15011 (default_print_error_function): Remove.
15012 * langhooks-def.h (struct diagnostic_context): Predeclare.
15013 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
15014 (LANG_HOOKS_INITIALIZER): Update.
15015 * langhooks.h (struct diagnostic context): Predeclare.
15016 (struct lang_hooks): New hook.
15018 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15020 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
15021 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
15023 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
15024 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
15025 of PIC_OFFSET_TABLE_REGNUM thruout.
15026 * config/rs6000/rs6000.md: Likewise.
15027 * config/rs6000/darwin.h: Likewise.
15029 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15031 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
15032 unsigned HOST_WIDE_INT, not unsigned int.
15034 2002-03-31 Jakub Jelinek <jakub@redhat.com>
15036 PR middle-end/6096, middle-end/6098, middle-end/6099
15037 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
15039 (fill_slots_from_thread): Likewise.
15041 2002-03-31 Jakub Jelinek <jakub@redhat.com>
15043 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
15044 floating fields in float regs.
15045 (function_arg_record_value_2): Likewise.
15047 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
15049 * config/mmix/mmix.md (define_constants): Remove misleading
15050 FIXME. Add MMIX_fp_rO_OFFSET.
15051 ("nonlocal_goto_receiver"): Don't have stack-frame address of
15052 saved rO as part of the pattern. Remove FIXME.
15053 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
15054 here, at output-time.
15056 2002-03-31 Jakub Jelinek <jakub@redhat.com>
15059 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
15061 (output_v9branch): Likewise.
15063 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
15065 * gcc.c: Revert previous patch for now.
15066 * config/i386/djgpp.h: Likewise.
15068 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
15070 * config/mmix/crti.asm (_init): Register _fini with atexit.
15071 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
15073 2002-03-31 Richard Henderson <rth@redhat.com>
15076 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
15077 (ASM_OUTPUT_DEF_FROM_DECLS): New.
15079 2002-03-31 Richard Henderson <rth@redhat.com>
15081 * libgcc2.c (__bb_exit_func): Make static.
15083 * config/alpha/alpha.md (trap): New.
15085 2002-03-31 Richard Henderson <rth@redhat.com>
15087 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
15088 promoted argument types; build trap.
15089 (expand_builtin_trap): New.
15090 (expand_builtin): Use it.
15091 * stmt.c (expand_nl_goto_receivers): Likewise.
15092 * expr.h (expand_builtin_trap): Declare.
15093 * libfuncs.h (LTI_abort, abort_libfunc): New.
15094 * optabs.c (init_optabs): Init abort_libfunc.
15096 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
15098 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
15099 (LINK_COMMAND_SPEC): ... from here.
15100 (init_gcc_specs): Duplicate it here too, omitting
15101 shared_name in the second copy.
15102 (init_spec): Test for duplicate
15103 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
15105 2002-03-30 David S. Miller <davem@redhat.com>
15107 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
15108 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
15110 2002-03-30 Roger Sayle <roger@eyesopen.com>
15111 Richard Henderson <rth@redhat.com>
15113 * regmove.c (combine_stack_adjustments_for_block): Avoid
15114 emitting a stack adjustment of zero bytes. Let delete_insn
15117 2002-03-30 Richard Henderson <rth@redhat.com>
15119 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
15120 (sparc_emitting_epilogue): New.
15121 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
15122 * config/sparc/sparc-protos.h: Update.
15123 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
15124 (TARGET_SWITCHES): Update.
15125 * config/sparc/sparc.md (return): Remove.
15126 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
15127 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
15128 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
15129 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
15130 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
15131 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
15132 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
15133 Remove MASK_EPILOGUE.
15134 * doc/invoke.texi: Update.
15136 2002-03-30 Daniel Berlin <dan@dberlin.org>
15138 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
15139 CPP will start the file for us.
15141 2002-03-30 Richard Henderson <rth@redhat.com>
15144 * config/ia64/ia64.c (group_barrier_needed_p): Special case
15145 prologue_allocate_stack.
15146 (ia64_single_set): Use insn codes for recognition of special
15147 cases, not rtl matching.
15148 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
15150 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
15152 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
15154 2002-03-30 Richard Henderson <rth@redhat.com>
15157 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
15158 or -fomit-frame-pointer with profiling.
15159 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
15160 (FUNCTION_PROFILER): Do nothing.
15161 (PROFILE_HOOK): New.
15162 * config/sparc/sparc.c (sparc_override_options): Don't check
15163 code models for profiling.
15164 (sparc_function_profiler): Remove.
15165 (sparc_profile_hook): New.
15166 * config/sparc/sparc-protos.h: Update.
15168 2002-03-30 Jakub Jelinek <jakub@redhat.com>
15170 PR optimization/6086
15171 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
15172 of SUBREG of volatile MEM or because the MEM was mode dependent,
15173 return CLOBBER instead of unmodified SUBREG.
15175 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
15177 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
15178 when not optimizing.
15180 * toplev.c (rest_of_compilation): Cann mark_constant_function
15181 only when optimizing.
15183 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
15186 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
15187 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
15188 (try_optimize_cfg): clear all AUX fields.
15190 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
15191 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
15192 (ix86_address_cost): Be prepared for SUBREGed registers.
15193 (legitimate_address_p): Accept SUBREGed registers.
15195 2002-03-29 Richard Henderson <rth@redhat.com>
15198 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
15200 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15202 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
15203 for aggregate and TFmode types.
15205 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
15207 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
15209 2002-03-29 Richard Henderson <rth@redhat.com>
15212 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
15213 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
15215 2002-03-29 Richard Henderson <rth@redhat.com>
15218 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
15219 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
15220 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
15221 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
15223 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
15225 2002-03-29 Dale Johannesen <dalej@apple.com>
15227 * loop.c (combine_movables): Do allow combination of pseudos.
15229 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
15231 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
15232 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
15233 No functional change except ...
15234 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
15235 * doc/install.texi (*-*-freebsd*): Document port configuration.
15237 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
15239 * Makefile.in (convert.o, calls.o, expmed.o): Update.
15240 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
15242 * builtin-types.def (BT_PTRMODE): Update.
15243 * c-common.c (type_for_size): Rename c_common_type_for_size.
15244 (type_for_mode): Similarly.
15245 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
15247 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
15248 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
15249 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
15251 * c-typeck.c (common_type, comptypes, default_conversion):
15253 * calls.c: Include langhooks.h.
15254 (emit_library_call_value_1): Use new hooks. Avoid redundant
15256 * convert.c: Include langhooks.h
15257 (convert_to_pointer, convert_to_integer): Use new hooks.
15258 * except.c (init_eh): Similarly.
15259 * expmed.c: Include langhooks.h.
15260 (expand_mult_add): Use new hooks.
15261 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
15262 try_casesi): Similarly.
15263 * fold-const.c (optimize_bit_field_compare, make_range,
15264 decode_field_reference, fold_truthop, fold): Similarly.
15265 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
15266 put_var_into_stack): Similarly.
15267 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
15268 LANG_HOOKS_TYPE_FOR_SIZE): New.
15269 (LANG_HOOKS_TYPES_INITIALIZER): Update.
15270 * langhooks.h (lang_hooks_for_types): New hooks.
15271 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
15272 * tree.c (get_unwidened, get_narrower): Similarly.
15273 * tree.h (type_for_mode, type_for_size): Remove.
15274 * varasm.c (force_const_mem): Use new hooks.
15275 * utils2.c (nonbinary_modular_operation): Update.
15277 * objc-act.c (handle_impent): Update.
15278 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
15281 2002-03-29 Steve Ellcey <sje@cup.hp.com>
15283 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
15284 * config/ia64/ia64.c (basereg_operand): New.
15285 * config/ia64/ia64-protos.h (basereg_operand): Declare.
15286 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
15288 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
15290 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
15291 unwind information when frame_pointer_needed.
15292 (mmix_assemble_integer): Tweak wording in comment.
15294 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
15296 * Makefile.in (except.o): Update.
15297 * except.c: Include langhooks.h.
15298 (init_eh): Use langhook.
15299 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
15300 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
15301 (LANG_HOOKS_INITIALIZER): Update.
15302 * langhooks.h (lang_hooks_for_types): New.
15303 (struct lang_hooks): Add it.
15304 * tree.c (make_lang_type_fn, make_lang_type): Remove.
15305 * tree.h (make_lang_type_fn, make_lang_type): Remove.
15307 * alpha/alpha.c: Include langhooks.h.
15308 (alpha_build_va_list): Use langhook.
15309 * d30v/d30v.c: Include langhooks.h.
15310 (d30v_build_va_list): Use langhook.
15311 * i386/i386.c: Include langhooks.h.
15312 (ix86_build_va_list): Use langhook.
15313 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
15314 * s390/s390.c: Include langhooks.h.
15315 (s390_build_va_list): Use langhook.
15316 * stormy16/stormy16.c: Include langhooks.h.
15317 (stormy16_build_va_list): Use langhook.
15319 2002-03-29 Jakub Jelinek <jakub@redhat.com>
15322 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
15324 (length): Compute variable length for branches/calls/jumps here.
15325 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
15326 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
15327 define branch_type attribute.
15328 (divsi3_sp32): Maximum length is 6 not 7.
15329 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
15330 call_address_untyped_struct_value_sp32,
15331 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
15332 * config/sparc/sparc.c (empty_delay_slot): New function.
15333 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
15334 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
15336 2002-03-29 Jakub Jelinek <jakub@redhat.com>
15338 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
15339 nonzero_bits if not needed.
15340 (nonzero_bits) [XOR]: Likewise.
15341 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
15342 reg_last_set_mode and mode are both MODE_INT, but not equal.
15343 (record_value_for_reg): Compute reg_last_set_nonzero_bits
15344 in nonzero_bits_mode for MODE_INT modes.
15346 2002-03-28 Richard Henderson <rth@redhat.com>
15349 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
15350 to GAS. Correct drift between alternatives.
15352 2002-03-28 Richard Henderson <rth@redhat.com>
15355 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
15357 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
15359 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
15360 emulation to the linker.
15362 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
15364 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
15365 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
15367 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
15369 * combine.c (simplify_and_const_int): Make sure to apply mask
15370 when force_to_mode returns a constant integer. PR3311.
15372 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
15374 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
15376 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15378 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
15379 and Objective-C Dialect Options.
15381 2002-03-28 Richard Henderson <rth@redhat.com>
15383 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
15384 comparison should be done vs !=0 not >0 return code. Tidy cases.
15386 2002-03-28 Richard Henderson <rth@redhat.com>
15388 * c-decl.c (finish_function): New arg can_defer_p. Pass it
15389 on to c_expand_body.
15390 * c-tree.h (finish_function): Update decl.
15391 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
15393 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
15395 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
15397 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
15399 * rtlanal.c: Include flags.h
15400 (may_trap_p): Do not mark FP operations if trapping
15401 if !flag_trapping_math
15402 * Makefile.in (rtlanal.o): Add dependency on flag.h
15403 * ifcvt.c (noce_operand_ok): Avoid the lameness.
15405 2002-03-27 Zack Weinberg <zack@codesourcery.com>
15407 * mips.md: Use dconst1, not 1.0, as first argument of
15408 REAL_VALUE_LDEXP. Don't use union real_extract.
15410 2002-03-28 Alan Modra <amodra@bigpond.net.au>
15412 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
15413 rather than $target. Heed program_prefix and
15414 program_transform_name. Search for gas in cross-compiler case too.
15415 "test -x" rather than "test -f".
15416 (gcc_cv_ld): Likewise.
15417 (gcc_cv_nm): Heed program_prefix and program_transform_name.
15418 (gcc_cv_objdump): Likewise.
15419 * configure: Regenerate.
15421 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
15423 * Makefile.in (attribs.o): Update.
15424 * attribs.c: Include langhooks.h.
15425 (decl_attributes): Use langhook.
15426 * c-decl.c (insert_default_attributes): Rename.
15427 * c-tree.h (c_insert_default_attributes): New.
15428 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
15429 (LANG_HOOKS_INITIALIZER): Update.
15430 * langhooks.h (struct lang_hooks): New hook.
15431 * tree.h (insert_default_attributes): Remove.
15433 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
15435 2002-03-27 Andreas Schwab <schwab@suse.de>
15437 * config/i386/i386.c (classify_argument): Also check for
15440 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15442 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
15445 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
15447 * i960.md (ret): Set PC.
15448 (nonlocal_goto): Fix expander.
15449 * builtins.c (epxand_builin_longjmp): Check that we've emitted
15452 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
15454 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
15455 of libcall regions.
15457 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15459 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
15460 assigning to BLOCK_FOR_INSN directly.
15462 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
15464 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
15466 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
15468 * c-common.c (c_expand_expr): Fix prototype.
15469 * c-common.h (c_expand_expr): Always declare, update.
15470 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
15471 * c-objc-common.c (c_objc_common_init): No global hook.
15472 * expr.c (expand_expr): Use langhook.
15473 * expr.h (enum expand_modifier): Conditionally declare.
15474 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
15475 (LANG_HOOKS_INITIALIZER): Update.
15476 * langhooks.c (lhd_expand_expr): New.
15477 * langhooks.h (struct lang_hooks): New hook.
15478 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
15479 (lang_independent_init): Don't default hook.
15481 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
15483 2002-03-27 Richard Henderson <rth@redhat.com>
15486 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
15487 TARGET_CONST_GP. Simplify conditions.
15489 2002-03-27 Richard Henderson <rth@redhat.com>
15491 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
15492 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
15493 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
15495 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
15497 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
15498 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
15499 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
15500 Remove unnecessary masks.
15501 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
15502 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
15503 -mwindows, -mdll switches and their negations.
15505 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
15507 * gcc-common.c (lang_mark_false_label_stack): Remove.
15508 * ggc.h (lang_mark_false_label_stack): Similarly.
15510 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
15512 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
15514 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
15515 or __rtems_ is defined.
15517 2002-03-26 Richard Henderson <rth@redhat.com>
15519 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
15520 if a non-trivial load was emitted.
15521 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
15522 in high+extra+low case.
15524 2002-03-26 Richard Henderson <rth@redhat.com>
15526 * config.gcc (sparc*-solaris): Use float_format=sparc.
15528 2002-03-26 Richard Henderson <rth@redhat.com>
15530 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
15531 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
15532 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
15533 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
15534 (WINT_TYPE_SIZE): Fix at 32.
15536 2002-03-26 Richard Henderson <rth@redhat.com>
15538 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
15539 until after eh landing pad generation.
15540 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
15541 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
15543 2002-03-26 Richard Henderson <rth@redhat.com>
15545 * expr.h (ADD_PARM_SIZE): One more convert for INC.
15547 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
15549 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
15550 and warning switches.
15551 (cc1_options): Likewise.
15553 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
15555 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
15556 Restore more of the signal context. Set no_reg_stack_frame.
15557 * config/ia64/unwind-ia64.c (unw_state_record):
15558 Add no_reg_stack_frame, comments.
15559 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
15560 (uw_update_context): Adjust bsp when unwinding from leaf,
15561 but not signal frame.
15563 2002-03-26 David Edelsohn <edelsohn@gnu.org>
15565 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
15567 2002-03-26 Bob Wilson <bob.wilson@acm.org>
15569 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
15571 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
15574 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
15575 "Add a pool_range attribute", which was lost during the ARM/Thumb
15578 2002-03-26 Bob Wilson <bob.wilson@acm.org>
15580 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
15581 a register into the MAC16 accumulator.
15583 2002-03-26 Andrew Cagney <ac131313@redhat.com>
15585 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
15586 (Warning Options): Document -Wswitch-enum.
15587 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
15589 (warn_switch_enum): Define variables.
15590 * flags.h (warn_switch_enum): Declare variables.
15591 * stmt.c (expand_end_case_type): When warn_switch_enum /
15592 -Wswitch-enum, perform switch checks.
15595 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
15597 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
15598 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
15599 (reload_muladdsi_compare0_scratch): Delete.
15601 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
15603 * doc/install.texi (*-*-freebsd*): Update.
15605 2002-03-26 Richard Henderson <rth@redhat.com>
15607 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
15608 (SUB_PARM_SIZE): Cast DEC to ssizetype.
15610 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
15611 types from the normal argument frame.
15613 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
15614 variable sized objects by reference.
15615 (sparc_va_arg): Receive them by reference too.
15617 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
15619 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
15620 code to not restoring global registers.
15622 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
15624 * Makefile.in (ggc-common.o): Update.
15625 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
15626 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
15627 * c-tree.h (c_mark_tree): New.
15628 * ggc-common.c: Include langhooks.h.
15629 (gcc_mark_trees): Use new langhook.
15630 * ggc-callbacks.c: Delete file.
15631 * ggc.h (lang_mark_tree): Remove.
15632 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
15633 (LANG_HOOKS_INITIALIZER): Update.
15634 * langhooks.h (struct lang_hooks): New hook.
15636 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
15638 2002-03-25 Zack Weinberg <zack@codesourcery.com>
15640 * doc/cpp.texi: Exclude entire Top node from printed manual.
15641 Move option index after directive index. Insert page breaks
15642 before GFDL and concept index. Index environment variables
15643 with command line options.
15644 * doc/cppenv.texi: Use @vtable for environment variable list.
15645 Add paragraph explaining semantics of empty elements in path
15646 variables. Exclude a cross-reference to Fishkill from the
15647 manpage. Remove an unnecessary cross-reference of the entry
15648 right above the referer. Don't use @anchor in text that goes
15650 * doc/cppopts.texi: Cross-reference the environment variables
15651 section, not the specific environment variable, for consistency.
15653 2002-03-25 Richard Henderson <rth@redhat.com>
15655 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
15656 anywhere in the block. Don't refer to insns that have been
15657 removed from the chain. Iterate backward through the new insns.
15658 Don't refer to edges that have been removed.
15660 2002-03-26 Alan Modra <amodra@bigpond.net.au>
15662 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
15663 test for overflow of constant.
15665 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
15668 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
15669 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
15670 these patterns on arm_archv4.
15672 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
15674 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
15677 2002-03-25 Zack Weinberg <zack@codesourcery.com>
15679 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
15680 float_handled, float_handler, float_signal, set_float_handler,
15681 and do_float_handler. Set handler for SIGFPE to crash_signal.
15682 * toplev.h: Don't prototype do_float_handler.
15684 * c-lex.c: Fold parse_float into lex_number. Make warning
15685 about portability of hex float constants more informative, and
15686 don't issue it on top of a syntax error.
15687 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
15689 * real.h: Define REAL_VALUE_ABS here...
15690 * simplify-rtx.c: ... not here. Fold check_fold_consts,
15691 simplify_unary_real, simplify_binary_real, and
15692 simplify_binary_is2orm1 into their callers.
15693 * tree.c: Fold build_real_from_int_cst_1 into caller.
15695 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
15697 * tsystem.h: Include float.h here...
15698 * libgcc2.c: ... not here.
15700 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
15702 Fixes for: PR bootstrap/3591, target/5676
15703 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
15704 defined. Do not disable exceptions or rtti.
15705 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
15706 mcore.h. Disable exceptions and rtti, since they are not
15709 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
15711 * c-decl.c (maybe_build_cleanup): Remove.
15712 * expr.c (expand_expr): Use langhook.
15713 * langhooks-def.h (lhd_return_null_tree,
15714 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
15715 (LANGHOOKS_INITIALIZER): Update.
15716 * langhooks.c (lhd_return_null_tree): New.
15717 * langhooks.h (struct lang_hooks): New hook.
15718 * tree-inline.c (initialize_inlined_parameters): Use langhook.
15719 * tree.h (maybe_build_cleanup): Remove.
15721 2002-03-25 Jakub Jelinek <jakub@redhat.com>
15723 * regrename.c (build_def_use): Move recog_memoized
15724 before extract_insn.
15726 2002-03-25 Jakub Jelinek <jakub@redhat.com>
15729 * expr.c (emit_group_store): Handle storing into CONCAT.
15731 2002-03-25 Jakub Jelinek <jakub@redhat.com>
15733 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
15734 corresponding MATCH_DUP.
15736 2002-03-24 Richard Henderson <rth@redhat.com>
15738 * unroll.c (unroll_loop): Zero label_map.
15740 * gcse.c: Include except.h.
15741 * Makefile.in (gcse.o): Update.
15743 2002-03-24 Richard Henderson <rth@redhat.com>
15745 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
15746 Do resolve_unique_section before shared data clause.
15748 2002-03-24 Richard Henderson <rth@redhat.com>
15750 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
15752 2002-03-24 Richard Henderson <rth@redhat.com>
15754 * recog.c (peephole2_optimize): Split blocks when EH insns are
15755 generated in the middle of a block. Do global life update if
15758 2002-03-24 Richard Henderson <rth@redhat.com>
15760 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
15762 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
15765 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
15766 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
15767 (init_dependency_output): Don't make no_output decision here.
15769 2002-03-24 Andrew Cagney <ac131313@redhat.com>
15771 * stmt.c (check_for_full_enumeration_handling): Remove tests of
15772 warn_switch. Update description.
15773 (expand_end_case_type): Call check_for_full_enumeration_handling
15776 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15778 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
15779 (m68hc11_split_move): Call it to see if the source and destination
15780 operands use the same direction auto inc/dec mode, otherwise make the
15781 source an offsetable memory operand and generate an add.
15783 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15785 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
15786 register for operand 2.
15787 ("*subsi3_zero_extendqi"): Likewise.
15788 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
15789 bits so that it is compatible with a pop.
15790 ("*andhi3_gen"): Likewise.
15791 ("xorhi3"): Likewise.
15793 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
15795 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
15797 (cpp_post_options): ... not here.
15799 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
15800 Aldy Hernandez <aldyh@redhat.com>
15802 Removal of separate preprocessor cpp0.
15804 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
15805 cpp0, install-common): Update.
15806 * c-common.c (flag_preprocess_only): New.
15807 (c_common_init): Preprocess for -E.
15808 * c-common.h (flag_preprocess_only): New.
15809 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
15810 * c-objc-common.c (c_init_decl_processing): Exit quickly
15811 for NULL return from c_common_init.
15812 * cpplib.h (cpp_preprocess_file): New.
15813 * cppmain.c (main, general_init, pfile, progname): Remove.
15814 (do_preprocessing): Rename cpp_preprocess_file, don't call
15815 cpp_finish. Don't close stdout here.
15816 (setup_callbacks): Update prototype.
15817 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
15819 * tradcpp.c (main): Ignore -quiet.
15821 * lang-specs.h (default_compilers): Preprocess with cc1obj.
15823 2002-03-24 Richard Henderson <rth@redhat.com>
15825 PR optimization/5742
15826 * machmode.def: Add inner mode field to complex modes.
15827 * config/mips/mips.c (mips_function_value): Always define. Add
15828 new argument to handle libcalls.
15829 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
15830 (FUNCTION_VALUE): Likewise.
15831 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
15832 * config/mips/mips-protos.h: Update.
15834 2002-03-23 Richard Henderson <rth@redhat.com>
15836 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
15837 * config/sparc/sparc-protos.h: Update.
15838 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
15840 2002-03-23 Richard Henderson <rth@redhat.com>
15842 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
15843 _start or _init begins the text segment.
15845 2002-03-23 David Edelsohn <edelsohn@gnu.org>
15847 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
15848 not HOST_WIDEST_INT.
15849 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
15851 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
15854 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
15855 operand argument to output_return_instruction.
15856 * arm.c (arm_print_operand, case 'd'): If the operand is
15857 const_true_rtx then just return.
15858 (arm_print_operand, case 'D'): If the operand is const_true_rtx
15861 2002-03-23 Andrew Cagney <ac131313@redhat.com>
15863 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
15864 (Warning Options): Document -Wswitch-default.
15865 * toplev.c (W_options): Add -Wswitch-default. Update comment on
15867 (warn_switch_default): Define variable.
15868 (warn_switch): Update comment.
15869 * flags.h (warn_switch_default): Declare variable.
15870 (warn_switch): Update comment.
15871 * stmt.c (expand_end_case): Check for and, when
15872 warn_switch_no_default, warn of a missing default case.
15874 2002-03-23 Alan Modra <amodra@bigpond.net.au>
15876 * real.h (N): Special case 128 bit doubles.
15878 * combine.c (simplify_comparison): When widening modes, ignore
15879 sign extension on CONST_INTs.
15881 2002-03-22 Bob Wilson <bob.wilson@acm.org>
15883 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
15884 passed to adjust_address. Fix comment formatting.
15887 2002-03-22 Zack Weinberg <zack@codesourcery.com>
15889 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
15890 Always make REAL_VALUE_TYPE a struct containing an array of
15891 HOST_WIDE_INT, not a double. Tidy up the code deciding how
15892 big it is. Don't declare or use union real_extract.
15894 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
15895 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
15896 (print_operand), config/arm/arm.c (output_move_double),
15897 config/arm/arm.md (consttable_4, consttable_8),
15898 config/romp/romp.c (output_fpops), config/s390/s390.h
15899 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
15900 (xtensa_output_literal): Don't use union real_extract.
15902 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
15903 (sfmode_constant_to_ulong), config/ns32k/merlin.h
15904 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
15905 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
15906 (PRINT_OPERAND): Don't use local version of union
15909 * config/convex/convex.c (check_float_value), config/vax/vax.c
15910 (vax_float_literal), config/m88k/m88k.md (divdf3),
15911 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
15912 config/pdp11/pdp11.c (output_move_quad): Don't do host
15913 arithmetic on target floating point quantities.
15915 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
15916 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
15918 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
15919 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
15921 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
15922 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
15924 * print-rtl.c (print_rtx): Disable code which needs
15925 floating-point emulator.
15926 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
15927 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
15928 depending on HOST_FLOAT_FORMAT to be defined properly.
15930 * config/1750a/1750a.c (get_double, float_label): Delete.
15931 (print_operand): Delete huge commented-out chunk. Use
15932 REAL_VALUE_TO_DECIMAL.
15933 * config/1750a/1750a-protos.h: Delete prototypes of deleted
15935 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
15937 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
15938 Use REAL_VALUE_TO_DECIMAL as ELF version does.
15939 * config/m88k/m88k.c (real_power_of_2_operand,
15940 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
15941 real_extract out of the union; run the input through
15942 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
15943 from that into the union.
15944 * config/pdp11/pdp11.c (output_move_double): Rearrange
15945 parentheses to make automatic indenter happy.
15947 * doc/tm.texi (Cross-compilation): Rename node to "Floating
15948 Point" and rewrite to describe current situation. Also adjust
15949 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
15951 * doc/rtl.texi: Adjust cross reference.
15953 2002-03-22 Bob Wilson <bob.wilson@acm.org>
15955 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
15956 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
15957 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
15958 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
15959 prevent use of sp as a reload register.
15960 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
15961 non_acc_reg_operand.
15962 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
15963 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
15964 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
15965 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
15967 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
15969 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
15970 * cpplex.c (unterminated): Delete.
15971 (parse_string): No string literal may extend over multiple
15972 lines. Suppress the error when preprocessing assembly.
15973 * cppmain.c (scan_translation_unit): Strings are single-line.
15975 * doc/cpp.texi: Update to match.
15977 2002-03-22 Jakub Jelinek <jakub@redhat.com>
15979 PR optimization/5854
15980 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
15982 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
15983 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
15984 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
15985 const0 if scratch register was not allocated.
15986 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
15987 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
15988 with GEN_INT (...).
15989 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
15990 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
15991 with GEN_INT (...) everywhere. Remove constraints in define_split
15993 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
15994 require scratch register for setting 0 into regs/non-pushable memory.
15996 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
15998 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
15999 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
16001 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
16003 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
16004 * cppinit.c (cpp_create_reader): On by default.
16005 (cpp_handle_option): Handle -W[no-]endif-labels.
16006 (cpp_post_options): Also enable if -pedantic.
16007 * cpplib.c (do_else): Use it.
16008 (do_endif): Likewise.
16009 * doc/cppopts.texi: Document new option.
16010 * doc/invoke.texi: Document new option.
16012 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
16014 * config/i386/i386.c, config/i386/i386.md: Change all occurences
16015 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
16017 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
16019 * flow.c (calculate_global_regs_live): Clear aux fields of
16022 2002-03-22 Jakub Jelinek <jakub@redhat.com>
16024 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
16025 REG or MEM subregs, pass rtx * instead of rtx to it.
16026 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
16027 rtx * instead of rtx to alter_subreg.
16028 * config/m32r/m32r.c (gen_split_move_double): Likewise.
16029 * config/pj/pj.c (pj_output_rval): Likewise.
16031 2002-03-22 Richard Henderson <rth@redhat.com>
16034 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
16035 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
16036 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
16037 (ia64_expand_prologue): Look at int_regs, not words, for number
16038 of incomming int regs.
16040 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
16042 * expr.c (expand_expr): A RESULT_DECL is part of a call.
16044 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
16046 * toplev.c (flag_loop_optimize, flag_crossjumping):
16047 New static variables.
16048 (rest_of_compilation): Conditionalize crossjumping and
16050 (parse_options_and_default_flags): Default loop_optimize and
16052 (lang_independent_options): Add -fcrossjumping and -floop-optimize
16053 * invoke.texi (crossjumping, loop-optimize): Document.
16055 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
16057 * real.c (eiisneg): Move outside #ifdef NANS.
16059 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
16061 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
16062 frequencies match; avoid match on different loop depths.
16063 (try_crossjump_to_bb): Kill tests that no longer brings time
16065 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
16067 (split_edge): Likewise.
16069 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
16072 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
16073 * cfgrtl.c: Include insn-config.h
16074 (split_block) Dirtify block in presence of conditional execution
16076 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
16078 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
16079 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
16080 (function_arg): Constify CUMULATIVE_ARGS.
16081 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
16082 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
16083 (UNITS_PER_DOUBLE): New macro.
16084 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
16085 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
16086 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
16087 fp_regs and stack_words.
16088 (EABI_FLOAT_VARARGS_P): New macro.
16089 * config/mips/mips.c (struct mips_arg_info): New.
16090 (mips_arg_info): New function.
16091 (function_arg_advance): Use it. Add adjustment instructions here
16092 rather than in function_arg.
16093 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
16094 for VOIDmode at the beginning of the function.
16095 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
16096 (function_arg_pass_by_reference): Likewise.
16097 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
16098 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
16099 (mips_va_start): Likewise. Use the new stack_words field of
16100 CUMULATIVE_ARGS to set up overflow area. Reformat.
16101 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
16102 doubles and other types, aligning the overflow pointer for non-doubles
16103 too. Remove some code duplication. Replace hard-coded constants.
16105 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
16107 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
16108 (CLASS_UNITS): Undefine.
16109 (CLASS_MAX_NREGS): Use FP_INC.
16110 * config/mips/mips.c (compute_frame_size): Likewise.
16111 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
16113 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
16115 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
16116 prototype, and handle lexing numbers and identifiers.
16117 (parse_identifier): Update to new form of parse_slow.
16118 (parse_number): Fast path only, use parse_slow otherwise.
16119 (_cpp_lex_direct): Update calls to parse_number.
16121 2002-03-21 DJ Delorie <dj@redhat.com>
16123 * bb-reorder.c (make_reorder_chain_1): Protect against
16124 when redundant edges are omitted.
16125 * predict.c (dump_prediction): Likewise.
16127 2002-03-21 Richard Henderson <rth@redhat.com>
16130 * fixinc/inclhack.def (solaris_stdio_tag): New.
16131 * fixinc/fixincl.x: Regenerate.
16133 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
16136 * c-typeck.c (process_init_element): Flag non-static
16137 initialization of a flexible array member as illegal.
16139 2002-03-22 Alan Modra <amodra@bigpond.net.au>
16141 * config/rs6000/t-linux64: New.
16142 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
16143 t-ppccomm. Use t-rs6000 and t-linux64.
16144 (powerpc64-*-gnu* <tmake_file>): Likewise.
16145 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
16146 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
16147 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
16149 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
16151 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
16152 flag_really_no_inline instead of optimize == 0.
16154 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
16156 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
16158 * flags.h (flag_really_no_inline): New.
16160 * c-common.c (c_common_post_options): Initialize
16161 flag_really_no_inline.
16163 * toplev.c (flag_really_no_inline): New.
16165 2002-03-21 Jakub Jelinek <jakub@redhat.com>
16167 * config/avr/avr.md (length): Fix length computation for
16168 conditional branches.
16170 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
16172 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
16173 sdbout.o, profile.o): Update.
16174 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
16176 * c-common.h (gettags): Move here from tree.h.
16177 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
16178 insert_block, getdecls, kept_level_p, global_bindings_p): New.
16179 * dbxout.c (dbxout_init): Use getdecls langhook.
16180 * expr.c (expand_expr): Use insert_block langhook.
16181 * fold-const.c: Include langhooks.h.
16182 (fold_range_test, fold_binary_op_with_conditional_arg,
16183 fold): Use global_bindings_p langhook.
16184 * integrate.c (expand_inline_function): Use insert_block langhook.
16185 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
16186 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
16187 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
16188 LANG_HOOKS_GETDECLS): New.
16189 (LANG_HOOKS_INITIALIZER): Update.
16190 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
16192 * langhooks.h (struct lang_hooks_for_decls): New.
16193 (struct lang_hooks): Update.
16194 * profile.c: Include langhooks.h.
16195 (output_func_start_profiler): Use new langhooks.
16196 * sdbout.c: Include langhooks.h.
16197 (sdbout_init, sdbout_finish): Use getdecls langhook.
16198 * stmt.c: Include langhooks.h.
16199 (expand_fixup, fixup_gotos): Use new langhooks.
16200 * stor-layout.c: Include langhooks.h.
16201 (variable_size): Use global_bindings_p langhook.
16202 * toplev.c (compile_file): Use getdecls langhook.
16203 * tree-inline.c (remap_block): Use insert_block langhook.
16204 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
16205 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
16207 2002-03-21 Richard Henderson <rth@redhat.com>
16209 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
16210 constants in .data when -fpic.
16212 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16214 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
16217 2002-03-21 Tom Tromey <tromey@redhat.com>
16219 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
16221 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16223 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
16225 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
16227 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
16228 Richard Henderson <rth@redhat.com>
16231 * c-common.c (c_expand_expr): Preserve result of a statement
16232 expression if needed.
16234 2002-03-21 Jakub Jelinek <jakub@redhat.com>
16237 * genrecog.c (maybe_both_true_mode): Remove.
16238 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
16239 * machmode.def (Pmode): Likewise.
16241 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
16243 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
16244 (nonlocal_mentioned_p_1): New function.
16245 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
16246 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
16247 (mark_constant_function): Recognize pure functions.
16248 * rtl.h (global_reg_mentioned_p): New prototype.
16249 * rtlanal.c (global_reg_mentioned_p,
16250 global_reg_mentioned_p_1): New function.
16252 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16254 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
16256 * fixinc/fixincl.x: Regenerate.
16258 2002-03-20 Jason Merrill <jason@redhat.com>
16260 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
16262 2002-03-20 Michael Meissner <meissner@redhat.com>
16264 * doc/invoke.texi (Optimize Options): Document that -O2 sets
16267 2002-03-20 Bob Wilson <bob.wilson@acm.org>
16269 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
16270 ".literal_position" directive before the constant pool.
16272 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16274 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
16275 Add Craig Rodrigues.
16276 Add Brad Lucier to testers.
16278 2002-03-20 Jakub Jelinek <jakub@redhat.com>
16281 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
16283 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
16284 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
16285 instead of insn_extract.
16287 2002-03-20 Jakub Jelinek <jakub@redhat.com>
16290 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
16292 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
16293 stmt if some case has been output.
16295 2002-03-20 Jakub Jelinek <jakub@redhat.com>
16298 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
16299 movsfcc_1, movdfcc_1): Add %O2.
16300 * config/i386/i386.c (print_operand): Handle %ON.
16301 Print . before float condition codes in Sun as cmov syntax.
16302 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
16303 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
16306 2002-03-20 Philip Blundell <pb@nexus.co.uk>
16308 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
16309 return instruction if PC was popped.
16311 2002-03-20 Bob Wilson <bob.wilson@acm.org>
16313 * config/xtensa/xtensa.md: Remove unused type attributes.
16314 (adddi_carry, subddi_carry): Change type attribute to "multi".
16316 2002-03-19 Dale Johannesen <dalej@apple.com>
16318 PR optimization/5999, middle-end/5731
16319 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
16320 multiplications by reciprocals.
16322 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
16324 * Makefile.in: Update.
16325 * c-common.c: Include langhooks.h.
16326 (inline_forbidden_p): Use new hook.
16327 * diagnostic.c: Include langhooks.h.
16328 (format_with_decl, announce_function,
16329 default_print_error_function): Use new hook.
16330 * dwarf2out.c (dwarf2_name): Use new hook.
16331 * function.c: Include langhooks.h.
16332 (init_function_start): Use new hook.
16333 * langhooks-def.h (lhd_decl_printable_name): New.
16334 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
16335 (LANGHOOKS_INITIALIZER): Update.
16336 * langhooks.c (lhd_decl_printable_name): New.
16337 * langhooks.h (struct lang_hooks): New hook.
16338 * toplev.c (decl_name, decl_printable_name): Remove.
16339 (open_dump_file): Use new hook.
16340 (process_options): Remove old hook.
16341 * tree.h (decl_printable_name): Remove.
16343 * objc-act.c (objc_init): Remove old hook.
16344 (objc_printable_name): Export.
16345 * objc-act.h (objc_printable_name): New.
16346 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
16348 2002-03-19 Jim Blandy <jimb@redhat.com>
16350 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
16351 the start_source_file debug hook, not the current line number.
16353 2002-03-19 Richard Henderson <rth@redhat.com>
16355 * flow.c (EH_USES): Provide default.
16356 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
16357 * doc/tm.texi (EH_USES): New.
16359 * config/ia64/ia64.c (ia64_eh_uses): New.
16360 * config/ia64/ia64-protos.h: Update.
16361 * config/ia64/ia64.h (EH_USES): New.
16363 2002-03-19 Richard Henderson <rth@redhat.com>
16365 * varasm.c (output_constant_def): Fix stupid typo.
16367 2002-03-19 Richard Henderson <rth@redhat.com>
16370 * except.c (current_function_has_exception_handlers): New.
16371 * except.h: Declare it.
16372 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
16373 Combine tests that disable all sibcalls for the function.
16375 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
16377 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
16380 2002-03-19 Richard Henderson <rth@redhat.com>
16383 * config/ia64/ia64.c: Revert 2002-03-01 patch.
16384 * config/ia64/ia64.h (INIT_EXPANDERS): New.
16386 2002-03-19 Jim Blandy <jimb@redhat.com>
16388 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
16389 name, even if the replacement list contains no tokens, as required
16392 2002-03-19 Jason Merrill <jason@redhat.com>
16394 * varasm.c (globalize_decl): Get the name from the RTL, not
16395 DECL_ASSEMBLER_NAME.
16397 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
16399 2002-03-19 Bob Wilson <bob.wilson@acm.org>
16401 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
16402 subdi_carry): Define.
16404 2002-03-19 David Edelsohn <edelsohn@gnu.org>
16406 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
16407 about -fpic/-fPIC if extra_warnings set.
16409 2002-03-19 David Edelsohn <edelsohn@gnu.org>
16411 * expr.c (expand_expr): Sign-extend CONST_INT generated from
16412 TREE_STRING_POINTER.
16413 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
16415 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16417 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
16418 in favor of SP if FRAME_POINTER_REQUIRED is false.
16420 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
16422 * emit-rtl.c (gen_int_mode): New function.
16423 * rtl.h: Prototype for it.
16424 * combine.c (make_extraction, simplify_comparison), expmed.c
16425 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
16426 (convert_modes, store_field), optabs.c (expand_fix),
16427 simplify-rtx.c (neg_const_int, simplify_unary_real),
16429 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
16430 Use it instead of GEN_INT (trunc_int_for_mode (...)).
16432 2002-03-19 Jakub Jelinek <jakub@redhat.com>
16435 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
16436 convert_parm_for_inlining.
16437 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
16439 * langhooks-def.h: Likewise.
16440 * objc/objc-lang.c: Likewise.
16441 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
16443 * tree-inline.c (initialize_inlined_parameters):
16444 Call convert_parm_for_inlining lang hook if needed.
16445 * c-typeck.c (c_convert_parm_for_inlining): New function.
16446 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
16448 2002-03-18 Mark Mitchell <mark@codesourcery.com>
16450 * calls.c (precompute_arguments): Do not assume that temporaries
16451 can be destroyed after expanding the argument.
16452 (expand_call): Likewise.
16454 2002-03-15 Eric Christopher <echristo@redhat.com>
16456 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
16457 Fix register preference on last change.
16458 * config/mips/mips.c (mips_return_in_memory): New function.
16459 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
16460 * config/mips/mips-protos.h: Declare.
16461 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
16462 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
16464 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
16466 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
16468 (anddi3, iorsi3): Likewise.
16470 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
16471 use %gprel for symbols that are going to be placed in linkonce
16474 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
16475 RETURN_ADDRESS_POINTER_REGNUM to $ra.
16476 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
16477 not needed. Disregard leaf_function_p().
16478 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
16479 mips16 frame pointer.
16480 * config/mips/mips.md (store ra): Only to small SP offsets.
16481 2001-08-22 Graham Stott <grahams@redhat.com>
16482 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
16483 return a REG rtx for the return address register.
16485 2002-03-18 Bob Wilson <bob.wilson@acm.org>
16487 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
16488 constant-pool addresses as "mode-dependent".
16489 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
16491 2002-03-18 Jakub Jelinek <jakub@redhat.com>
16494 * expr.c (emit_group_load): Use extract_bit_field if
16495 needed for CONCAT arguments.
16497 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
16500 * arm.md (tablejump): Make this a define_expand. For PIC add the
16501 offset to the base of the table.
16502 (thumb_tablejump): Matcher for Thumb tablejump insn.
16503 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
16504 as the difference of two labels.
16505 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16506 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
16507 tables in the code.
16508 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
16509 * arm.c (get_jump_table_size): If the table is not in the text
16510 section, return zero.
16512 2002-03-18 Bernd Schmidt <bernds@redhat.com>
16514 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
16516 (arm_reload_out_hi): Use gen_lowpart instead of
16517 gen_rtx_SUBREG to access QImode components.
16518 * config/arm/arm.md: Disable zero_extend split for QImode
16519 subregs in BIG_ENDIAN mode.
16520 (storehi_bigend): Match use of least significant byte.
16521 (storeinthi): Remove extraneous SUBREG.
16522 Add missing construction of operands[2].
16523 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
16524 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
16525 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
16527 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
16529 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
16532 2002-03-17 Richard Henderson <rth@redhat.com>
16534 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
16537 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
16539 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
16540 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
16542 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16544 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
16546 * predict.c (estimate_bb_frequencies): Delete unused variables.
16548 2002-03-17 Richard Henderson <rth@redhat.com>
16550 * config/ia64/ia64.c (ia64_attribute_table): Move before
16551 targetm definition. Make static.
16553 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
16555 * c-common.h (yyparse, c_common_parse_file): New.
16556 * c-lang.c: Include c-common.h.
16557 (LANG_HOOKS_PARSE_FILE): Redefine.
16558 * c-lex.c: Include c-common.h.
16559 (yyparse): Rename c_common_parse_file. Call yyparse.
16560 * c-parse.in (yyparse): Remove macro.
16561 * c-tree.h (yyparse_1): Remove.
16562 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
16563 (LANG_HOOKS_INITIALIZER): Update.
16564 * langhooks.h (struct lang_hoooks): New hook parse_file.
16565 * toplev.c (compile_file): Use parse_file hook.
16566 * tree.h (yyparse): Remove.
16567 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
16569 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
16571 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
16572 float_truncate, not fix.
16573 ("*truncdfsf2_real"): Ditto.
16574 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
16576 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
16578 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
16580 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
16581 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
16582 where appropriate. Make the second reference to
16583 leaf_function_p a function call, as intended. Reindented.
16585 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
16586 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
16588 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
16589 add register to non-constant into sp.
16591 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
16592 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
16593 (mips16_gp_pseudo_rtx): Lose.
16594 (INIT_EXPANDERS): Deleted.
16595 * config/mips/mips.c (mips_init_machine_status): New.
16596 (mips_free_machine_status): New.
16597 (mips_mark_machine_status): New.
16598 (override_options): Set them.
16599 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
16600 (struct machine_function): ... new. Replaced all references.
16601 (mips_add_gc_roots): Don't mark them.
16602 (embedded_pic_fnaddr_reg): New, extracted from...
16603 (embedded_pic_offset): ... here.
16604 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
16607 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
16609 * cppinit.c: Revert -MD removal.
16611 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16613 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
16614 soft registers by default for 68HC12.
16615 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
16616 when compiling with -fomit-frame-pointer.
16617 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
16618 (expand_epilogue): Likewise.
16619 (m68hc11_gen_rotate): Use exg when rotating by 8.
16621 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16623 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
16624 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
16625 (splits): Remove unused add splits.
16626 ("*addhi3_68hc12"): Tune constraints.
16627 ("addhi_sp"): Try to use X instead of Y in all cases and if the
16628 constant fits in 8-bits and D is dead use abx/aby instructions.
16629 ("*addhi3"): Remove extern declaration of ix_reg.
16630 ("*subsi3"): Optimize and provide new split.
16631 ("subhi3"): Cleanup.
16632 ("*subhi3_sp"): Avoid saving X if we know it is dead.
16633 (arith splits): For 68hc12 save the address register on the stack
16634 and do the arithmetic operation with a pop.
16636 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16638 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
16639 allocating QImode in address registers.
16640 ("*movqi_m68hc11"): Likewise.
16642 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
16644 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
16646 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
16648 * cppinit.c (print_help): Display -MD and -MMD.
16649 Don't display usage string. Update assertion syntax and
16651 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
16652 (cpp_handle_option): Update.
16654 2002-03-15 Chris Demetriou <cgd@broadcom.com>
16656 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
16657 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
16658 and define it so that regardless of target CPU size,
16659 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
16660 of "int" rather than "long."
16662 2002-03-15 Richard Henderson <rth@redhat.com>
16664 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
16667 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16669 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
16670 ("tstqi" split): Avoid using memory for tstqi on address register.
16671 (splits): Remove constraints.
16672 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
16673 ("cmpdf", "cmpsf"): Remove since not used.
16674 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
16675 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
16677 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16679 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
16680 ("neghi2"): Tighten constraints.
16681 ("one_cmplsi2"): Optimize and simplify split.
16682 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
16684 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16686 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
16687 and split of AND operation to clear the upper bits.
16688 ("*logicalsi3_zextqi"): Likewise.
16689 ("*logicallhi3_zexthi_ashift8"): Likewise.
16690 ("*logicalsi3_silshr16"): Likewise.
16691 ("logicalsi3_silshl16"): Likewise.
16692 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
16694 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16696 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
16697 (m68hc11_indirect_p): New function.
16698 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
16699 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
16701 (asm_print_register): Likewise.
16702 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
16703 (m68hc11_indirect_p): Declare.
16704 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
16705 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
16706 (TARGET_SWITCHES): New option -mrelax.
16707 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
16709 ("iorsi3", "xorsi3"): Likewise.
16710 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
16711 ("*andhi3_mem"): New to handle destination in memory with bclr
16712 and a scratch register.
16713 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
16714 ("*andhi3_const"): New when operand2 is constant.
16715 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
16716 ("*andhi3_gen"): Cleanup of the old "andhi3".
16717 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
16718 ("xorqi3"): Update constraints.
16720 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16722 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
16723 for reg_equiv_memory_loc when the operand is a register that does
16724 not get a hard register (stack location).
16725 (tst_operand): After reload, accept all memory operand.
16726 (symbolic_memory_operand): Fix detection of symbolic references.
16727 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
16728 accept symbols and any constant.
16730 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16732 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
16733 note on the insn that sets the soft frame register.
16734 (must_parenthesize): ix and iy are also reserved names.
16735 (print_operand_address): One more place where parenthesis are required
16736 to avoid confusion with register names.
16737 (m68hc11_gen_movhi): Allow push of stack pointer.
16738 (m68hc11_check_z_replacement): Fix handling of parallel with a
16740 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
16741 the replacement register is.
16742 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
16743 and D8_REGS classes.
16744 (MODES_TIEABLE_P): All modes are tieable except QImode.
16746 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16748 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
16749 (___subdi3): Likewise.
16750 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
16751 (__map_data_section): Optimize 68hc11 case.
16753 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16755 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
16756 than a shift to avoid adding a register with itself.
16757 (m68hc11_memory_move_cost): Take into account NO_REGS.
16758 (m68hc11_register_move_cost): Update and use memory move cost
16759 for soft registers.
16760 (m68hc11_address_cost): Make cost of valid offset not 0 so that
16761 it gives more opportunities to cse to optimize.
16762 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
16763 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
16765 2002-03-15 Mark Mitchell <mark@codesourcery.com>
16767 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
16768 * c-common.def (CLEANUP_STMT): New tree node.
16769 * c-common.h (CLEANUP_DECL): New macro.
16770 (CLEANUP_EXPR): Likewise.
16771 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
16772 * expr.c (expand_expr): Tidy.
16773 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
16774 * tree-inline.c (initialize_inlined_parameters): Clean up
16775 new local variables.
16777 2002-03-15 Jakub Jelinek <jakub@redhat.com>
16780 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
16781 before movrXX only, use reg_overlap_mentioned_p.
16782 Only special case NE if just one insn can be generated.
16784 2002-03-15 Jason Merrill <jason@redhat.com>
16786 * varasm.c (assemble_variable): Call resolve_unique_section before
16787 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
16788 of error_mark_node.
16790 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
16793 * arm.md (split pattern for thumb shiftable immediates): Add comment
16794 explaining non-obvious test.
16796 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
16799 * arm.md (movaddr, movaddr_insn): Delete.
16801 2002-03-15 Jason Merrill <jason@redhat.com>
16803 * toplev.c (wrapup_global_declarations): Clarify variable handling.
16804 -fkeep-static-consts doesn't apply to comdats.
16806 2002-03-14 Richard Henderson <rth@redhat.com>
16808 * c-decl.c: Include c-pragma.h.
16809 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
16810 (finish_function): Tidy.
16811 * c-pragma.c: Include c-common.h.
16812 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
16813 (handle_pragma_weak): Use them.
16814 (init_pragma): Register pending_weaks.
16815 * c-pragma.h (maybe_apply_pragma_weak): Declare.
16816 * print-tree.c (print_node): Print DECL_WEAK.
16817 * varasm.c (mark_weak_decls): Remove.
16818 (remove_from_pending_weak_list): Remove.
16819 (add_weak): Remove.
16820 (asm_emit_uninitialised): Call globalize_decl for weak commons.
16821 (weak_decls): Make a tree_list.
16822 (declare_weak): Cons weak_decls directly.
16823 (globalize_decl): Remove weak_decls elements directly.
16824 (weak_finish): Simplify weak_decls walk. Don't weaken unused
16825 symbols. Don't pretend to handle aliases.
16826 (init_varasm_once): Update weak_decls registry.
16827 * Makefile.in: Update dependencies.
16829 2002-03-14 Richard Henderson <rth@redhat.com>
16832 * config/ia64/ia64.c: Include tm_p.h last.
16833 (gen_nop_type): Remove duplicate definition.
16834 (cycle_end_fill_slots): Set sched_data for second L slot.
16835 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
16836 (nop_cycles_until): Fix typos.
16838 2002-03-15 Jakub Jelinek <jakub@redhat.com>
16840 PR optimization/5891
16841 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
16843 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
16845 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
16846 descriptors correctly.
16848 2002-03-14 Michael Meissner <meissner@redhat.com>
16850 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
16851 100, allowing MAX_UNROLLED_INSNS to be overridden.
16853 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
16856 * unroll.c (params.h): Include.
16857 (MAX_UNROLLED_INSNS): Delete, now in params.h.
16859 * doc/invoke.texi (--param max-unroll-insns): Document.
16861 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
16863 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
16865 * arm.md: Fix warnings about constraints in peepholes and splits.
16867 2002-03-14 Zack Weinberg <zack@codesourcery.com>
16869 * cpphash.h (struct lexer_state): Remove line_extension member.
16870 * cpplib.c (dequote_string, do_linemarker): New functions.
16871 (linemarker_dir): New data object.
16872 (DIRECTIVE_TABLE): No longer need to interpret #line in
16873 preprocessed source. Delete obsolete comment about return
16874 values of handlers.
16875 (end_directive, directive_diagnostics, _cpp_handle_directive):
16876 Don't muck with line_extension.
16877 (directive_diagnostics): No need to issue warnings for
16879 (_cpp_handle_directive): Issue warnings for linemarkers here,
16880 when appropriate. Dispatch linemarkers to do_linemarker, not
16882 (do_line): Code to handle linemarkers split out to do_linemarker.
16883 Convert escape sequences in filename argument, both places.
16885 * cppmacro.c (quote_string): Rename cpp_quote_string and
16886 export. All callers changed.
16887 * cpplib.h (cpp_quote_string): Prototype.
16888 * cppmain.c (print_line): Call cpp_quote_string on to_file
16889 before printing it.
16891 * doc/cpp.texi: Document that escapes are now interpreted in
16892 #line and in linemarkers, and that non-printing characters are
16893 converted to octal escapes when linemarkers are generated.
16895 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
16897 * emit-rtl.c (try_split): Use delete_insns.
16898 * recog.c (split_all_insns): Fix terminating condition.
16900 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
16901 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
16904 * arm.c (arm_output_epilogue): Fix floating-point register save
16905 adjustment when using a frame pointer.
16907 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
16909 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
16910 * config/mips/mips.c (compute_frame_size): Retrofit them here.
16911 (save_restore_insns, mips_expand_epilogue): And here.
16912 (build_mips16_call_stub): And here.
16913 (mips_function_value): Use the new macros to decide whether a single
16914 or complex float can be returned in floating-point registers. Return
16915 a parallel rtx in the complex case.
16917 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
16919 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
16920 call after liveness analysis.
16922 * recog.c (split_insn): Use delete_insn_and_edges.
16924 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
16925 instructions to have branch prediction notes.
16926 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
16928 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
16930 * configure.in: Don't pass -Wno-long-long to a ADA compiler
16931 that doesn't support it.
16932 * configure: Regenerate.
16934 2002-03-13 Jakub Jelinek <jakub@redhat.com>
16937 * config/sparc/sparc.md (normal_branch, inverted_branch,
16938 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
16939 inverted_fp_branch): Adjust calls to output_cbranch.
16940 Set length attribute.
16941 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
16942 output_v9branch. Set length attribute.
16943 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
16945 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
16946 (output_cbranch): Likewise. Handle far branches.
16947 (output_v9branch): Handle far branches.
16948 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
16950 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
16951 noov_compare64_op predicates.
16953 2002-03-13 Jason Merrill <jason@redhat.com>
16955 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
16956 into the function and constify it.
16957 * gthr-dce.h, gthr-solaris.h: Likewise.
16959 2002-03-13 David Edelsohn <edelsohn@gnu.org>
16961 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
16962 * config/rs6000/rs6000.c (rs6000_va_arg): Use
16963 std_expand_builtin_va_arg if not ABI_V4.
16965 2002-03-13 Jason Merrill <jason@redhat.com>
16967 * varasm.c (globalize_decl): New fn.
16968 (assemble_start_function): Use it.
16969 (asm_emit_uninitialized): Use it.
16970 (assemble_alias): Use it.
16971 (assemble_variable): Use it.
16973 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
16975 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
16976 2002-03-12 internal visibility change.
16977 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
16978 visibility into SYMBOL_REF_FLAG.
16980 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
16982 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
16983 VOIDmode operand. Add compile-time optimization for constant results.
16985 2002-03-12 Jason Merrill <jason@redhat.com>
16987 * c-typeck.c (convert_for_assignment): Don't allow conversions
16988 between pointers and references. Only allow lvalues to convert to
16991 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
16993 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
16994 before prologue, to avoid scheduling problems.
16996 2002-03-13 Jakub Jelinek <jakub@redhat.com>
16998 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
16999 (ELIMINABLE_REGS): Add sfp->sp.
17000 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
17002 2002-03-13 Jakub Jelinek <jakub@redhat.com>
17004 PR optimization/5892
17005 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
17007 2002-03-13 Jakub Jelinek <jakub@redhat.com>
17009 * loop.c (basic_induction_var): Don't call convert_modes if mode
17010 classes are different.
17012 2002-03-12 Richard Henderson <rth@redhat.com>
17014 PR optimization/5901
17015 * function.c (reposition_prologue_and_epilogue_notes): Position
17016 the markers after/before the last/first insn not deleted.
17018 2002-03-12 Richard Henderson <rth@redhat.com>
17020 PR optimization/5878
17021 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
17022 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
17023 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
17025 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
17026 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
17027 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
17029 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
17030 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
17031 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
17032 also. Don't set it if not flag_pic.
17033 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
17034 to be INVALID_REGNUM when not used.
17036 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
17038 * expmed.c (store_bit_field): Reset alias set for memory.
17039 (extract_bit_field): Same.
17041 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17043 * c-common.c (c_tree_code_type, c_tree_code_length,
17044 c_tree_code_name, add_c_tree_codes): Delete.
17045 * c-common.h (add_c_tree_codes): Delete.
17046 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
17048 * c-objc-common.c (c_objc_common_init): Don't call
17049 add_c_tree_codes, instead set lang_unsafe_for_reeval.
17050 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
17051 objc_tree_code_name, add_objc_tree_codes): Delete.
17052 (objc_init): Don't call add_objc_tree_codes.
17053 * objc/objc-lang.c (tree_code_type, tree_code_length,
17054 tree_code_name): Define.
17055 * toplev.c (lang_independent_init): Don't set
17056 tree_code_length[IDENTIFIER_NODE].
17057 * tree.c (tree_code_type, tree_code_length, tree_code_name):
17058 Delete definitions, moved to language front-ends.
17059 * tree.def (IDENTIFIER_NODE): Hardwire the length.
17060 * tree.h (tree_code_type, tree_code_length, tree_code_name):
17062 (tree_code_length): Change type to unsigned char.
17064 2002-03-12 Richard Henderson <rth@redhat.com>
17066 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
17067 internal visibility change.
17069 2002-03-12 Bob Wilson <bob.wilson@acm.org>
17071 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
17072 validize_mem() instead of change_address to avoid clobbering
17075 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
17077 * c-lex.h (position_after_whitespace): Remove.
17079 2002-03-12 Jakub Jelinek <jakub@redhat.com>
17081 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
17082 (lex_string): Use unsigned char pointers.
17084 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
17086 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
17087 is not a valid memory_operand.
17089 2002-03-12 Bob Wilson <bob.wilson@acm.org>
17091 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
17092 * config/xtensa/lib1funcs.asm: Fix copyright to include
17093 special case for libgcc files.
17094 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
17095 (__divsi3): Likewise.
17096 (__umodsi3): Likewise.
17097 (__modsi3): Likewise.
17098 * config/xtensa/lib2funcs.S: Fix copyright to include
17099 special case for libgcc files.
17101 2002-03-12 Tom Rix <trix@redhat.com>
17103 * collect2.c (resolve_lib_name): Move outside of
17104 OBJECT_FORMAT_COFF ifdef.
17105 (ignore_library): Same.
17107 2002-03-12 Bob Wilson <bob.wilson@acm.org>
17109 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
17111 2002-03-12 Bob Wilson <bob.wilson@acm.org>
17113 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
17114 to function_section before writing out the constant pool.
17116 2002-03-12 David Edelsohn <edelsohn@gnu.org>
17118 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
17120 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
17122 2002-03-12 Alan Modra <amodra@bigpond.net.au>
17124 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
17125 (adddi3): Likewise.
17128 (cmpsi splitter): Likewise.
17129 (modsi3): Fail if <= 0.
17130 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
17131 redundant test when HOST_BITS_PER_WIDE_INT != 32.
17132 (reg_or_sub_cint64_operand): Likewise.
17133 (num_insns_constant_wide): Optimize sign extension.
17134 (rs6000_legitimize_address): Likewise.
17136 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
17138 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
17139 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
17141 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
17143 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
17144 address calculation.
17146 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
17148 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
17149 scratch register to DImode / TImode.
17150 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
17151 register used does not overlap the target.
17153 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17155 * Makefile.in (debug.o): Depend on debug.h.
17156 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
17157 * debug.c (do_nothing_debug_hooks): Likewise.
17158 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
17159 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
17160 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
17161 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
17162 * dwarfout.c (dwarf_debug_hooks): Likewise.
17163 * integrate.c (output_inline_function): Likewise.
17164 * objc/objc-act.c (synth_module_prologue): Likewise.
17165 * sdbout.c (sdb_debug_hooks): Likewise.
17166 * toplev.c (debug_hooks): Likewise.
17167 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
17169 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17171 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
17172 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
17173 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
17174 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
17175 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
17176 * defaults.h (POINTER_SIZE): Define.
17177 * doc/tm.texi (POINTER_SIZE): Document default.
17179 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17181 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
17183 2002-03-11 Richard Henderson <rth@redhat.com>
17185 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
17186 if rebuild_label_notes_after_reload.
17188 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
17190 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
17191 emit pic register load if "internal" visibility.
17192 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
17193 (cris_expand_builtin_va_arg): Do all computations on trees.
17195 2002-03-11 Richard Henderson <rth@redhat.com>
17197 * rtlanal.c: Include recog.h.
17198 (keep_with_call_p): Fix thinko.
17199 * Makefile.in (rtlanal.o): Update dependencies.
17201 2002-03-11 Chris Meyer <cmeyer@gatan.com>
17203 * genflags.c (gen_insn): Use IS_VSPACE.
17204 * genoutput.c (output_insn_data): Likewise.
17205 (process_template): Likewise.
17207 2002-03-11 Richard Henderson <rth@redhat.com>
17209 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
17211 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
17213 * Makefile.in: Update.
17214 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
17215 Update documentation.
17216 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
17217 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
17219 2002-03-11 Zack Weinberg <zack@codesourcery.com>
17221 * Makefile.in: Give texi2pod its input file as a command line
17222 argument, not on stdin.
17224 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
17225 Daniel Berlin <dan@dberlin.org>
17227 C++ alias analysis improvement.
17228 * alias.c (record_component_aliases): Record aliases for base
17231 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
17233 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
17235 2002-03-11 Douglas B Rupp <rupp@gnat.com>
17237 * toplev.c (vms_fopen): Remove, not needed.
17239 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
17241 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
17243 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
17244 for FP, already done later.
17246 * toplev.c (debug_args): Add entry for VMS_DEBUG.
17247 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
17249 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
17251 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
17252 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
17253 LARGEST_EXPONENT_IS_NORMAL for the given mode.
17254 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
17255 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
17256 (ediv, emul, eldexp, esqrt): Likewise.
17257 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
17258 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
17259 (saturate): New function.
17260 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
17261 (make_nan): Use a saturation value instead of a NaN if
17262 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
17263 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
17264 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
17265 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
17266 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
17267 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
17268 !ROUND_TOWARDS_ZERO.
17269 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
17270 (ROUND_TOWARDS_ZERO): Document.
17272 2002-03-11 Andreas Jaeger <aj@suse.de>
17274 * cfg.c (dump_flow_info): Remove unused variable.
17276 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
17278 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
17279 computations on trees.
17281 2002-03-10 Richard Henderson <rth@redhat.com>
17284 * reload.c (copy_replacements_1): New.
17285 (copy_replacements): Use it to recurse through the rtx.
17287 2002-03-10 Richard Henderson <rth@redhat.com>
17289 * loop.c (strength_reduce): Compute number of iterations as
17290 unsigned HOST_WIDE_INT.
17292 2002-03-10 Richard Henderson <rth@redhat.com>
17294 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
17295 to move away from the end of the block.
17297 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
17299 PR preprocessor/5899
17300 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
17302 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17304 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
17306 * attribs.c (decl_attributes): Fix signed/unsigned warning.
17308 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
17310 * config/mmix/mmix.c: Improve comments.
17311 (mmix_target_asm_function_prologue): Drop variable
17312 empty_stack_frame. Don't allocate unused slot above fp.
17313 (mmix_target_asm_function_epilogue): Mirror prologue changes.
17314 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
17315 brace in first column.
17316 (enum reg_class): Ditto.
17317 (FIRST_PARM_OFFSET): Now 0.
17318 (USER_LABEL_PREFIX): Remove #if 0:d definition.
17320 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17322 * combine.c (make_extraction): Fix error in last change.
17324 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17326 * c4x.c (c4x_fp_reglist): Const-ify.
17327 * cris.c (cris_print_operand): Likewise.
17328 * i386.c (ix86_va_arg): Likewise.
17329 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
17330 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
17331 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
17332 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
17333 * mcore.h (regno_reg_class): Likewise.
17334 * mips.c (gen_int_relational): Likewise.
17335 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
17336 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
17337 * pdp11.c (move_costs): Likewise.
17338 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
17339 * s390.c (s390_branch_condition_mnemonic, regclass_map):
17341 * s390.h (regclass_map): Likewise.
17342 * sh.c (shift_amounts): Likewise.
17343 * sh.md (rotlsi3): Likewise.
17345 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
17347 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
17348 (ne0+5): Use new clobber to generate proper shift pattern.
17349 Patch by Michael Matz <matz@kde.org>.
17351 2002-03-09 Andreas Schwab <schwab@suse.de>
17353 * gcc.c (validate_all_switches): Also handle `%W{...}'.
17355 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
17357 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
17359 2002-03-09 Jakub Jelinek <jakub@redhat.com>
17362 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
17363 even for non-representable constants.
17365 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17367 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
17368 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
17369 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
17370 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
17371 (pop_function_context): Compute MAY_SHARE parameter for
17373 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
17374 (gen_mem_addressof): Call fixup_var_refs with new parm.
17376 * combine.c (make_extraction): Don't make extension of CONST_INT.
17378 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
17380 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
17381 in o32 and o64 ABIs.
17382 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
17383 but getting fixed-size structs passed in registers regardless of
17384 padding in o32 and o64 ABIs.
17386 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
17387 offset before loading address of argument passed by transparent
17390 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
17392 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
17394 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
17396 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
17397 marker such that registers after it are saved.
17399 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17401 * sparc.c (arith_4096_operand): Fix error in last change.
17403 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
17405 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
17406 defaults for MEABI.
17408 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
17410 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
17413 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
17415 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
17417 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
17419 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
17420 removed; fix return value.
17421 * combine.c (combine_instructions): Dirtify blocks where we failed to
17422 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
17423 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
17425 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17427 * gcse.c (insert_insn_end_bb): Fix typo in last change.
17429 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
17431 * recog.c (peephole2_optimize): Re-distribute EH edges.
17433 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
17435 * expr.c (expand_expr): Use unsave lang hook.
17436 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
17437 (LANG_HOOKS_INITIALIZER): Update.
17438 * langhooks.h (struct lang_hooks): New hook unsave.
17439 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
17440 (unsave_expr_1): Remove unused lang_unsave_expr_now.
17441 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
17442 (unsave_expr_now): Remove.
17443 * tree.h (unsave_expr_now, lang_unsave,
17444 lang_unsave_expr_now): Remove.
17447 2002-03-08 Andreas Jaeger <aj@suse.de>
17449 * flow.c (propagate_block_delete_insn): Remove unused variable.
17451 2002-03-08 Kazu Hirata <kazu@hxi.com>
17453 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
17454 insn length for memory load/store.
17456 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
17458 * doc/install.texi (--with-libiconv-prefix): Document.
17460 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
17462 * doc/sourcebuild.texi: Fix typo.
17464 2002-03-08 Jakub Jelinek <jakub@redhat.com>
17467 * builtins.c (std_expand_builtin_va_arg): Do all computations on
17470 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17472 * rtl.c (copy_most_rtx): Move from here ...
17473 * emit-rtl.c (copy_most_rtx): ... to here.
17475 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
17477 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
17478 SUBTARGET_CPP_SIZE_SPEC.
17479 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
17481 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
17483 2002-03-07 Matt Hiller <hiller@redhat.com>
17485 * gensupport.c (first_dir_md_include): Renamed from include;
17486 change all references.
17487 (last_dir_md_include): Renamed from last_include; change all
17489 (init_md_reader): Unconditionally initialize base_dir whether or
17490 not filename is a relative path.
17492 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
17494 * config/fp-bit.c (_unord_f2): Compile it in even if
17495 US_SOFTWARE_GOFAST is enabled.
17497 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
17498 NULL_RTX. Set all HFmode operations as NULL_RTX.
17499 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
17500 NULL_RTX, try reversing the comparison and the operands.
17502 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
17504 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
17505 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
17508 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
17510 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
17512 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
17514 * basic-block.h (fixup_abnormal_edges): Declare.
17515 * reload1.c (fixup_abnormal_edges): New function.
17516 * reg-stack.c (convert_regs): Use it.
17518 * gcse.c (insert_insn_end_bb): Handle trapping insns.
17520 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
17522 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
17524 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
17525 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
17526 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
17527 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
17528 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
17529 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
17530 unless x and y could be infinite.
17531 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
17532 Check that the common type of both arguments is a real, even for
17533 targets without unordered comparisons. Allow an integer argument
17534 to be compared against a real.
17535 (expand_tree_builtin): Use expand_unordered_cmp.
17536 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
17537 * cse.c (fold_rtx): Likewise. Fix indentation.
17538 * fold-const.c (fold_real_zero_addition_p): New.
17539 (fold): Use it, and the new HONOR_... macros.
17540 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
17541 * jump.c (reversed_comparison_code_parts): After searching for
17542 the true comparison mode, use HONOR_NANS to decide whether it
17543 can be safely reversed.
17544 (reverse_condition_maybe_unordered): Remove IEEE check.
17545 * simplify-rtx.c (simplify_binary_operation): Use the new macros
17546 to decide which simplifications are valid. Allow the following
17547 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
17548 and (a - -b) to (a + b).
17549 (simplify_relational_operation): Use HONOR_NANS.
17550 * doc/tm.texi: Document the MODE_HAS_... macros.
17552 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
17554 * combine.c (simplify_comparison): If simplifying a logical shift
17555 right and compare with constant, force the comparison to unsigned.
17557 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
17559 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
17561 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
17563 (alt_reg_names): Remove % for vrsave.
17565 2002-03-06 Richard Henderson <rth@redhat.com>
17567 PR optimization/5844
17568 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
17569 if used indicates we've already emitted one copy of an operand.
17570 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
17571 (gen_split): Supply a non-null used.
17573 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
17575 * reload1.c (reload): Unshare all rtl after reload is done.
17577 * simplify-rtx.c (simplify_plus_minus): Do not abort,
17578 but simply fail if the expression is too complex to simplify.
17579 (simplify_gen_binary): Handle simplify_plus_minus failures.
17581 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
17583 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
17584 consistently call delete_trivially_dead_insns after CSE and GCSE;
17585 fix DFI_life dumping; do jump threading after liveness; do crossjumping
17586 after liveness2; update comment in last crossjumping.
17587 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
17589 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
17591 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
17592 after completing fast dead code elimination.
17594 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
17597 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
17599 * version.c: Fix misplaced leading blanks on first line.
17601 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
17603 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
17605 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
17607 * cfgcleanup.c (mentions_nonequal_regs): New function.
17608 (thread_jump): Use it.
17609 * toplev.c (rest_of_compilation): Run jump threading after
17612 2002-03-06 Jakub Jelinek <jakub@redhat.com>
17614 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
17617 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
17619 * predict.c (estimate_bb_frequencies): Do not reload the
17620 frequencies from notes.
17622 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
17624 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
17625 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
17627 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
17628 delete_noop_moves): Return indeger.
17629 * flow.c (ndead): New variable.
17630 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
17631 BB argument; update callers.
17632 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
17633 (life_analysis): Do not call purge_all_dead_edges.
17634 (update_life_info): Return number of deleted insns; print statistics.
17635 (update_life_info_in_dirty_blocks): likewise.
17636 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
17637 return number of insns deleted.
17639 * cse.c: Include timevar.h
17640 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
17641 iterate until stabilizes; print statistics; return number of killed
17643 * Makefile.in: (cse.o): Add timevar.h dependency
17644 * rtl.h (delete_trivially_dead_insns): New.
17645 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
17646 * toplev.c (rest_of_compilation): Update callers.
17648 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
17649 (try_optimize_cfg): Do not update liveness.
17650 (cleanup-cfg): Loop until try_optimize_cfg and dead code
17651 removal stabilizes; use delete_trivially_dead_insns.
17653 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
17655 2002-03-05 Zack Weinberg <zack@codesourcery.com>
17657 * cppmain.c (setup_callbacks): Disable #pragma and #ident
17658 callbacks when processing assembly language.
17660 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
17662 * pa.h (ASM_FILE_END): Define.
17663 * som.h (ASM_FILE_END): Delete.
17665 * pa.c (function_arg): Don't pass floats in general registers in
17666 indirect calls if TARGET_ELF32.
17668 2002-03-05 Richard Henderson <rth@redhat.com>
17670 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
17672 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
17674 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
17676 2002-03-05 Jakub Jelinek <jakub@redhat.com>
17678 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
17679 -r command line. Don't hide any symbols if not building
17682 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
17684 * cfg.c (dump_flow_info): Warn about profile mismatches.
17685 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
17686 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
17688 2002-03-05 Jakub Jelinek <jakub@redhat.com>
17690 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
17691 wide volatile memory by parts.
17693 2002-03-05 Jakub Jelinek <jakub@redhat.com>
17695 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
17698 2002-03-05 Richard Henderson <rth@redhat.com>
17700 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
17702 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
17704 * toplev.c (documented_lang_options): Document more
17705 language-specific options.
17706 * doc/invoke.texi (Warning Options): Correct documentation for
17707 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
17708 * c-decl.c (c_decode_option): Use a table to handle warning options.
17710 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
17712 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
17713 parameter to mmix_encode_section_info.
17714 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
17715 relocatably. Always produce ELF, not mmo if linking relocatably.
17716 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
17717 first is non-zero, don't add symbol prefix.
17718 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
17719 prototype accordingly.
17721 2002-03-04 Krister Walfridsson <cato@df.lth.se>
17723 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
17725 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
17727 * configure.in: Increase required makeinfo version to 4.1.
17728 * configure: Regenerate.
17730 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
17732 * .cvsignore: Remove *.info* and genrtl*; these files are generated
17735 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
17737 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
17738 * doc/invoke.texi: Fix @math uses.
17740 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
17742 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
17745 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
17747 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
17748 (powerpc-*-eabisimaltivec*): Same.
17750 * config/rs6000/t-ppcendian: New.
17752 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
17754 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
17755 nonimmediate_src_operand and nonimmediate_lsrc_operand to
17756 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
17758 2002-03-03 Richard Henderson <rth@redhat.com>
17760 * toplev.c (rest_of_decl_compilation): Revert last two changes.
17762 2002-03-03 Zack Weinberg <zack@codesourcery.com>
17764 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
17765 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
17766 tree.c, config/m68k/m68k.c:
17767 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
17768 REAL_ARITHMETIC blocks unconditional. Delete some further
17769 #ifdef blocks predicated on REAL_ARITHMETIC.
17770 * flags.h, toplev.c: Delete remaining references to
17771 flag_pretend_float.
17773 * doc/invoke.texi: Remove documentation of -fpretend-float.
17774 * doc/tm.texi: Describe the various REAL_* macros as provided by
17775 real.h, not by the target configuration files.
17777 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
17778 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
17779 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
17780 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
17781 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
17782 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
17783 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
17784 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
17785 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
17786 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
17787 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
17788 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
17789 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
17790 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
17791 config/xtensa/xtensa.h:
17792 Do not define, undefine, or mention in comments any of
17793 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
17794 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
17795 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
17796 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
17797 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
17798 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
17799 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
17800 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
17801 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
17803 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17805 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
17806 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
17807 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
17808 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
17809 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
17810 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
17812 * defaults.h (BITS_PER_WORD): Define.
17813 * doc/tm.texi (BITS_PER_WORD): Document default value.
17815 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
17816 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
17817 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
17819 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17821 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
17822 lieu of explicit sizeof/sizeof.
17823 * i386.c (override_options, ix86_init_mmx_sse_builtins,
17824 ix86_expand_builtin): Likewise.
17825 * mips.c (mips_add_gc_roots): Likewise.
17826 * mmix.c (mmix_output_condition): Likewise.
17827 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
17828 altivec_init_builtins): Likewise.
17829 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
17830 * cppexp.c (Nsuff, parse_number): Likewise.
17831 * cppinit.c (builtin_array_end): Likewise.
17832 * gcc.c (n_default_compilers, process_command): Likewise.
17833 * genpreds.c (output_predicate_decls): Likewise.
17834 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
17835 * lcm.c (N_ENTITIES): Likewise.
17836 * stor-layout.c (set_sizetype): Likewise.
17838 2002-03-03 Richard Henderson <rth@redhat.com>
17840 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
17841 for types or labels.
17843 2002-03-03 Richard Henderson <rth@redhat.com>
17845 * c-decl.c (start_decl): Initialized variables are not common.
17847 2002-03-02 Per Bothner <per@bothner.com>
17849 * gcc.c (option_map): Suport new --bootclasspath option.
17850 --CLASSPATH is now just an alias for --classpath.
17852 2002-03-02 Richard Henderson <rth@redhat.com>
17854 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
17855 load if "internal" visibility.
17856 * doc/extend.texi: Document visibility meanings.
17858 2002-03-02 Richard Henderson <rth@redhat.com>
17860 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
17861 to functions as well.
17863 2002-03-02 Richard Henderson <rth@redhat.com>
17865 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
17866 (handle_visibility_attribute): Don't call assemble_visibility.
17867 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
17868 without asmspec. Invoke assemble_alias when needed.
17869 * varasm.c (maybe_assemble_visibility): New.
17870 (assemble_start_function, assemble_variable, assemble_alias): Use it.
17872 2002-03-02 Richard Henderson <rth@redhat.com>
17874 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
17875 invoke ENCODE_SECTION_INFO with first call flag.
17877 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
17878 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
17879 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
17880 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
17881 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
17882 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
17883 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
17884 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
17885 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
17886 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
17887 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
17888 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
17889 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
17890 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
17891 config/mcore/mcore-protos.h, config/mcore/mcore.c,
17892 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
17893 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
17894 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
17895 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
17896 config/sh/sh.h, config/sparc/sparc.h,
17897 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
17898 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
17899 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
17900 FIRST argument. As needed, examine it and do nothing.
17902 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
17903 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
17904 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
17906 * config/arm/t-pe (pe.o): Add dependencies.
17908 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17910 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
17911 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
17912 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
17913 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
17914 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
17915 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
17916 * defaults.h (BITS_PER_UNIT): Define.
17917 * doc/tm.texi (BITS_PER_UNIT): Document default value.
17919 2002-03-02 Kazu Hirata <kazu@hxi.com>
17921 * config/h8300/h8300-protos.h: Add a prototype for
17922 compute_a_shift_length.
17923 * config/h8300/h8300.c (h8300_asm_insn_count): New.
17924 (compute_a_shift_length): Likewise.
17925 (h8300_adjust_insn_length): Do not adjust insn length of shift
17927 * config/h8300/h8300.md (anonymous shift patterns): Use
17928 compute_a_shift_length.
17930 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17932 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
17933 trunc_int_for_mode.
17935 * emit-rtl.c (offset_address): Call update_temp_slot_address.
17937 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17939 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
17940 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
17941 * flags.h (flag_zero_initialized_in_bss): Declare.
17942 * toplev.c (flag_zero_initialized_in_bss): New flag.
17943 (lang_independent_options): Add flag_zero_initialized_in_bss.
17944 * tree.c (initializer_zerop): New function.
17945 * tree.h (initializer_zerop): Declare.
17946 * varasm.c (assemble_variable): If we can emit bss, put zero
17947 initializers in the bss section.
17949 2002-03-02 Alan Modra <amodra@bigpond.net.au>
17951 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
17952 like more than one symbol per .weak directive.
17954 2002-03-01 Richard Henderson <rth@redhat.com>
17956 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
17957 adjust argument_pointer by pretend_args_size.
17958 (ia64_va_start): Adjust va_start address by -pretend_args_size.
17960 2002-03-01 Kazu Hirata <kazu@hxi.com>
17962 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
17964 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
17966 * toplev.c (rest_of_compilation): Delete dead jumptables before
17968 * flow.c (delete_dead_jumptables): Make global.
17969 * rtl.h (delete_dead_jumptables): Declare.
17971 2002-03-01 David Edelsohn <edelsohn@gnu.org>
17973 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
17974 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
17975 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
17977 2002-03-01 Kazu Hirata <kazu@hxi.com>
17979 * config/h8300/h8300-protos.h: Fix formatting.
17980 * config/h8300/h8300.c: Likewise.
17981 * config/h8300/h8300.h: Likewise.
17983 2002-03-01 Kazu Hirata <kazu@hxi.com>
17985 * config/h8300/h8300.c (print_operand): Support 16-bit
17986 constant addresses.
17987 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
17989 2002-02-28 Richard Henderson <rth@redhat.com>
17991 * expmed.c (store_bit_field): Prevent generation of CONCATs;
17992 pun complex values as integers; use gen_lowpart instead of
17994 (extract_bit_field): Likewise.
17996 2002-03-01 Alan Modra <amodra@bigpond.net.au>
17997 David Edelsohn <edelsohn@gnu.org>
17999 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
18000 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
18001 (SUPPORTS_WEAK): Likewise.
18002 * output.h (add_weak): Add tree param.
18003 * varasm.c (add_weak): Likewise. Save decl.
18004 (struct weak_syms): Add decl field.
18005 (mark_weak_decls): New function.
18006 (init_varasm_once): ggc_add_root mark_weak_decls.
18007 (assemble_start_function): Use ASM_WEAKEN_DECL.
18008 (assemble_variable): Likewise.
18009 (assemble_alias): Likewise.
18010 (declare_weak): Pass decl to add_weak.
18011 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
18012 (remove_from_pending_weak_list): Declare and define for
18014 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
18015 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
18016 * defaults.h (SUPPORTS_WEAK): Likewise.
18017 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
18018 .weak for code sym. Do emit .size for descriptor sym.
18019 (ASM_DECLARE_FUNCTION_SIZE): Define.
18020 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
18021 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
18022 .lglobl unless TARGET_XCOFF. Formatting fixes.
18023 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
18024 .weak for code sym.
18025 (HANDLE_PRAGMA_WEAK): Remove.
18026 (ASM_WEAKEN_LABEL): Remove.
18027 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
18029 2002-03-01 Jason Merrill <jason@redhat.com>
18031 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
18032 (TARGET_EXPR_CLEANUP): New macro.
18034 2002-02-28 Steve Ellcey <sje@cup.hp.com>
18036 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
18037 to take ptr_extend into account as third type of extension.
18038 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
18039 fields used by SUBREG_PROMOTED_UNSIGNED_P.
18040 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
18041 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
18042 * calls.c (precompute_arguments): Use new macro.
18043 (expand_call): Ditto.
18044 * combine.c (nonzero_bits): Ditto.
18045 (record_promoted_value): Ditto.
18046 * expr.c (store_expr): Ditto.
18047 (expand_expr): Ditto.
18048 * function.c (assign_parms): Ditto.
18050 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
18052 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
18053 override -shared and -shared-libgcc.
18055 2002-02-28 David O'Brien <obrien@FreeBSD.org>
18057 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
18059 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
18062 2002-02-28 Richard Henderson <rth@redhat.com>
18064 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
18065 4 cycle latency from MM producers.
18066 (ia64_internal_sched_reorder): Likewise with pipeline flush.
18068 2002-02-28 Jakub Jelinek <jakub@redhat.com>
18070 * mklibgcc.in: Don't use GNU make extension.
18072 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
18074 * c-parse.in (STATIC): New terminal.
18075 (scspec): New non-terminal. Update productions accordingly.
18076 (program): Remove bogus ifc / end ifc.
18077 (array_declarator): Simplify production using STATIC.
18079 2002-02-28 Jim Meyering <meyering@lucent.com>
18081 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
18082 \a still means TARGET_BELL.
18084 2002-02-28 Richard Henderson <rth@redhat.com>
18086 * haifa-sched.c (sched_emit_insn): New.
18087 (schedule_block): Use last_scheduled_insn to track last insn.
18088 * sched-int.h (sched_emit_insn): Prototype.
18089 * config/ia64/ia64.c (last_issued): Remove.
18090 (ia64_variable_issue): Don't set it.
18091 (nop_cycles_until): Use sched_emit_insn.
18093 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
18095 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
18096 extended constants.
18098 2002-02-28 Kazu Hirata <kazu@hxi.com>
18100 * config/h8300/h8300.c: Fix formatting.
18101 * config/h8300/h8300.h: Likewise.
18103 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
18105 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
18106 which may overwrite the high byte of the frame pointer.
18108 2002-02-28 Bo Thorsen <bo@suse.de>
18110 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
18111 (STARTFILE_SPEC): Add 64 bit files.
18112 (ENDFILE_SPEC): Likewise.
18114 2002-02-28 Jason Merrill <jason@redhat.com>
18116 * c-decl.c (finish_function): Only warn about missing return
18117 statement with -Wreturn-type.
18119 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
18121 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
18123 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
18124 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
18126 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
18128 * basic-block.h (BB_REACHABLE): Renumber.
18129 (BB_DIRTY, BB_NEW): New flags.
18130 (clear_bb_flags): Declare.
18131 (update_life_info_in_dirty_blocks): Declare.
18132 * cfg.c (clear_bb_flags): New function.
18133 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
18134 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
18135 reorder_insns, emit_insn_after): Mark block as dirty.
18136 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
18137 (update_life_info_in_dirty_blocks): New function.
18138 * recog.c (apply_change_group): Dirtify block.
18140 * cse.c (cse_insn): Reorder emitting of jump insn to keep
18142 * gcse.c (delete_null_pointer_checks): Likewise.
18144 * toplev.c (dump_file_index): Move cse2 after bp,
18146 (dump_file_info): Similary.
18147 (rest_of_compilation): Avoid most of CFG rebuilds;
18148 do first if converision after null pointer checks, do cse2
18149 after branch prediction; avoid full liveness rebuild after
18150 initializing subregs.
18151 * invoke.texi (-d options): Document -du, renumber.
18153 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
18154 (notice_new_block): Do not set BB_UPDATE_LIFE.
18155 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
18156 merge_blocks_move_successor_nojumps, merge_blocks,
18157 try_crossjump_to_edge): Likewise.
18158 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
18159 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
18160 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
18161 (merge_of_block): Do not use life_data_ok.
18162 (find_if_case_1): Do not use SET_UPDATE_LIFE.
18163 (if_convert): Use BB_DIRTY mechanizm to update life.
18164 * lcm.c (optimize_mode_switching): Update
18165 update_life_info_in_dirty_blocks
18167 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
18169 * Makefile.in (integrate.o): Update.
18170 * c-decl.c (copy_lang_decl): Rename.
18171 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
18172 * integrate.c: Include langhooks.h.
18173 (copy_decl_for_inlining): Update to use langhook.
18174 * langhooks-def.h (lhd_do_nothing_t,
18175 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
18176 (LANG_HOOKS_INITIALIZER): Update.
18177 * langhooks.c (lhd_do_nothing_t): New.
18178 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
18179 * tree.h (copy_lang_decl): Remove.
18181 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
18183 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
18185 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
18186 POST_DEC, and POST_MODIFY.
18188 2002-02-27 Zack Weinberg <zack@codesourcery.com>
18190 * c-typeck.c (digest_init): Remove unused parameter; all
18193 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
18195 * expmed.c (expand_shift): Correctly test for low part of a
18198 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18200 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
18201 insn UIDs with insn addresses.
18203 2002-02-27 Zack Weinberg <zack@codesourcery.com>
18205 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
18206 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
18207 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
18208 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
18209 gcc.c, toplev.c: Delete code implementing -traditional mode.
18211 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
18212 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
18213 Document removal of -traditional mode for compilation, and
18214 remove documentation only relevant to that mode.
18216 * config/nextstep.h, config/ptx4.h, config/svr4.h,
18217 config/convex/convex.h, config/d30v/d30v.h,
18218 config/i386/dgux.h, config/i386/osf1elf.h,
18219 config/i386/osfelf.h, config/i386/osfrose.h,
18220 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
18221 config/m68k/hp310.h, config/m88k/dgux.h,
18222 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
18223 config/m88k/m88k.h, config/m88k/openbsd.h,
18224 config/mips/abi64.h, config/mips/osfrose.h,
18225 config/mips/svr4-5.h, config/mips/svr4-t.h,
18226 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
18227 config/stormy16/stormy16.h: Remove all references to
18228 -traditional from target specs. Delete all mention of the
18229 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
18230 delete a couple of commented-out definitions of
18231 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
18234 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
18235 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
18237 2002-02-27 Zack Weinberg <zack@codesourcery.com>
18239 * mklibgcc.in: Don't use \n in a line subject to
18240 interpretation by echo.
18242 2002-02-27 Graham Stott <grahams@redhat.com>
18244 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
18247 * loop.c (prescan_loop): Handle PARALLEL.
18249 * unroll.c (loop_iterations): Return 0 if the add_val for
18252 * final.c (output_operand_lossage): Constify PFX_STR.
18254 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
18256 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
18258 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
18259 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
18261 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
18263 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
18265 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
18267 * cpplex.c (_cpp_lex_token): Handle directives in macro
18269 * cpplib.c (_cpp_handle_directive): Save and restore state
18270 if parsing macro args when entering a directive.
18271 * cppmacro.c (collect_args): No need to handle directives
18272 in macro arguments.
18273 (enter_macro_context, replace_args): Use the original macro
18274 definition in case it was redefined whilst collecting arguments.
18276 * cpp.texi: Update.
18278 2002-02-26 David Edelsohn <edelsohn@gnu.org>
18280 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
18281 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
18282 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
18284 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
18285 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
18286 (load_toc_v4_PIC_2): Same.
18288 2002-02-26 Alan Modra <amodra@bigpond.net.au>
18290 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
18292 2002-02-26 Richard Henderson <rth@redhat.com>
18294 * config/alpha/alpha.md (ashldi_se): Re-enable.
18296 2002-02-26 Richard Henderson <rth@redhat.com>
18298 * config/alpha/alpha.c (alpha_encode_section_info): Examine
18299 MODULE_LOCAL_P; improve commentary.
18301 2002-02-26 Zack Weinberg <zack@codesourcery.com>
18303 * doc/cpp.texi: Clarify documentation of relationship between
18304 #line and #include.
18306 2002-02-26 Kazu Hirata <kazu@hxi.com>
18308 * config/h8300/h8300-protos.h: Update the prototype for
18309 compute_logical_op_length. Add the prototype for
18310 compute_logical_op_cc.
18311 * config/h8300/h8300.c (compute_logical_op_length): Figure out
18312 code from operands.
18313 (compute_logical_op_cc): New.
18314 * config/h8300/h8300.md: Combine all the logical op patterns
18315 in HImode and SImode. Use compute_logical_op_cc.
18317 2002-02-26 Kelley Cook <kelleycook@comcast.net>
18319 * config/i386/i386.c (print_operand): Don't append ATT-style
18320 length suffixs to x87 opcodes when in Intel mode.
18322 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
18324 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
18325 (init_emit_once): Update calls.
18326 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
18327 (init_syntax_once): Prototype.
18329 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
18331 * pa-linux.h (LIB_SPEC): Update definition.
18332 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
18334 2002-02-26 Richard Henderson <rth@redhat.com>
18336 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
18337 if we emitted a stop bit.
18339 2002-02-26 Jakub Jelinek <jakub@redhat.com>
18341 * configure.in (libgcc_visibility): Substitute.
18342 * configure: Rebuilt.
18343 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
18344 defined symbols .hidden.
18346 2002-02-26 Jakub Jelinek <jakub@redhat.com>
18348 * attribs.c (c_common_attribute_table): Add visibility.
18349 (handle_visibility_attribute): New function.
18350 * varasm.c (assemble_visibility): New function.
18351 * output.h (assemble_visibility): Add prototype.
18352 * tree.h (MODULE_LOCAL_P): Define.
18353 * crtstuff.c (__dso_handle): Use visibility attribute.
18354 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
18355 for MODULE_LOCAL_P symbols too.
18356 * config/ia64/ia64.c (ia64_encode_section_info): Handle
18357 MODULE_LOCAL_P symbols the same way as local symbols.
18358 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
18359 into .sdata/.sbss by the user.
18360 * doc/extend.texi (Function Attributes): Document visibility
18363 2002-02-26 Jakub Jelinek <jakub@redhat.com>
18366 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
18367 STRING_CST initializer spanning the whole variable without
18369 If expand_expr returned MEM, don't use it.
18371 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
18373 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
18374 generate a die for the lexical block.
18376 2002-02-26 Kazu Hirata <kazu@hxi.com>
18378 * config/h8300/h8300-protos.h: Add a prototype for
18379 compute_logical_op_length.
18380 * config/h8300/h8300.c (compute_logical_op_length): New.
18381 * config/h8300/h8300.md (anonymous logical patterns): Use
18382 compute_logical_op_length for length.
18384 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
18386 * dwarf2out.c (modified_type_die): Do not call type_main_variant
18388 (gen_type_die): Same.
18390 * attribs.c (handle_vector_size_attribute): Set debug information.
18392 2002-02-26 Daniel Egger <degger@fhm.edu>
18394 * config/rs6000/rs6000.md: Swap define_insn attributes to
18395 fix incorrect generation of merge high instructions instead
18398 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
18400 * c-typeck.c (really_start_incremental_init): Use
18401 bitsize_zero_node for vectors.
18403 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
18405 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
18406 ("*set_vrsave_internal"): Same.
18408 2002-02-25 Richard Henderson <rth@redhat.com>
18410 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
18411 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
18413 2002-02-25 Jakub Jelinek <jakub@redhat.com>
18416 * config/i386/i386.c (ix86_return_pops_args): Only pop
18417 fake structure return argument if it was passed on the stack.
18419 2002-02-25 Jason Merrill <jason@redhat.com>
18421 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
18424 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
18426 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
18427 link with shared_name only.
18428 * doc/invoke.texi (Link Options): Document new behavior.
18430 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
18432 * c-typeck.c (push_init_level): Handle vectors.
18434 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
18436 * config/sparc/sparc.c (const64_high_operand): Zero-extend
18437 operands of SPARC_SETHI_P.
18438 (input_operand): Likewise.
18439 (sparc_emit_set_const32): Likewise.
18440 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
18441 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
18442 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
18443 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
18444 (movdi_insn_sp64_vis): Likewise.
18445 (movdi split, movdf split): Use SETHI32.
18446 * doc/md.texi: Document SPARC constraints L, M and N.
18448 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
18450 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
18451 ("*set_vrsave_internal"): use mfspr for Darwin.
18453 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
18454 gen_get_vrsave_internal.
18456 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18458 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
18460 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
18462 * cpplex.c (cpp_interpret_charconst): Get signedness or
18463 otherwise of wide character constants correct.
18464 * cppexp.c (lex): Get signedness of wide charconsts correct.
18466 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18468 * optabs.c (widen_operand): Only call convert_modes for
18469 promoted SUBREG if signedness matches.
18470 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
18472 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
18474 * cpplib.c (glue_header_name): Use local buffer to build up
18477 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
18479 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
18481 2002-02-23 Kazu Hirata <kazu@hxi.com>
18483 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
18484 H8/300[HS] separately.
18485 * config/h8300/h8300.md: Remove the early clobber constraint
18486 from bit field patterns.
18488 2002-02-23 Kazu Hirata <kazu@hxi.com>
18490 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
18492 (mulhisi3): Likewise.
18493 (umulqisi3): Likewise.
18494 (umulhisi3): Likewise.
18496 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
18498 * cppinit.c (output_deps): Correct test for stdout output.
18499 (init_dependency_output): Cure warning.
18501 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18503 * expr.c (store_expr): When converting expression to promoted
18504 equivalent type, allow using SUBREG_REG of TARGET as the target
18505 of the expansion of EXP.
18506 * loop.c (basic_induction_var, case SUBREG): Always look inside.
18507 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
18508 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
18509 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
18510 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
18512 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
18514 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
18515 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
18516 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
18518 2002-02-23 Jakub Jelinek <jakub@redhat.com>
18520 PR optimization/5747
18521 * loop.c (scan_loop): Update reg info if move_movables created new
18524 2002-02-23 David Edelsohn <edelsohn@gnu.org>
18526 * gcc.c (init_gcc_spec): Revert last change.
18528 2002-02-23 David Edelsohn <edelsohn@gnu.org>
18530 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
18531 gpc_reg_operand constraint.
18533 2002-02-23 Alan Modra <amodra@bigpond.net.au>
18535 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
18536 Simplify comparison of `low'.
18537 (add_operand): Fix formatting.
18538 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
18539 (mask_operand): Disallow mask to wrap in 64-bit mode.
18540 (rs6000_stack_info): Remove redundant test setting push_p.
18541 (output_toc): Fix formatting.
18542 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
18543 cc_reg_not_cr0_operand constraint.
18544 (booldi3, boolcdi3 splitters): Same.
18546 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
18548 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
18550 2002-02-22 David Edelsohn <edelsohn@gnu.org>
18552 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
18553 gcc invoked with -shared-libgcc.
18555 2002-02-22 Jakub Jelinek <jakub@redhat.com>
18558 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
18559 decl if any of elements was TREE_USED.
18561 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
18563 * config/sparc/sol2.h: Don't include sys/mman.h.
18564 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
18565 (arith_4096_operand): Don't throw high bits away.
18566 (const64_operand): Take sign extension of CONST_INTs into account.
18567 (const64_high_operand, sparc_emit_set_const32): Likewise.
18568 (GEN_HIGHINT64): Likewise.
18569 (sparc_emit_set_const64_quick1): Likewise.
18570 (const64_is_2insns): Likewise.
18571 (print_operand): Use trunc_int_for_mode for sign extension.
18572 * config/sparc/sparc.h (SMALL_INT32): Likewise.
18573 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
18574 chars. Assume CONST_INT is already properly sign-extended.
18575 (movdi split): Sign-extend each SImode part.
18576 (andsi3 split): Don't mask high bits off, so that result
18577 remains properly sign-extend.
18578 (iorsi3 split): Likewise.
18579 (xorsi3 split): Likewise.
18581 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
18583 * fold-const.c (fold): Fix typo in comments.
18585 2002-02-21 Diego Novillo <dnovillo@redhat.com>
18587 * Makefile.in (langhooks.o): Update dependencies.
18589 2002-02-21 Diego Novillo <dnovillo@redhat.com>
18591 * langhooks.c: Include flags.h.
18593 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
18595 * testsuite/gcc.dg/attr-alwaysinline.c: New.
18597 * c-common.c (c_common_post_options): Set inline trees by
18600 * doc/extend.texi (Function Attributes): Document always_inline
18602 Update documentation about inlining when not optimizing.
18604 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
18606 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
18607 unless DECL_ALWAYS_INLINE.
18609 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
18610 unless DECL_ALWAYS_INLINE.
18611 (c_disregard_inline_limits): Disregard if always_inline set.
18613 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
18614 Disregard if always_inline set.
18615 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
18616 unless DECL_ALWAYS_INLINE.
18618 * attribs.c (handle_always_inline_attribute): New.
18619 (c_common_attribute_table): Add always_inline.
18621 * config/rs6000/altivec.h: Add prototypes for builtins
18622 requiring the always_inline attribute.
18624 2002-02-21 Eric Christopher <echristo@redhat.com>
18626 * expmed.c (store_bit_field): Try to simplify the subreg
18627 before generating a new one when when the mode size of
18628 value is less than maxmode.
18630 2002-02-21 Richard Henderson <rth@redhat.com>
18632 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
18633 than gen_rtx_PLUS to form the sum.
18634 * explow.c (force_reg): Rearrange to not allocate new pseudo
18635 when force_operand returns a register.
18636 * expr.c (expand_assignment): Allow offset_rtx expansion to
18637 return a sum. Do not force addresses into registers.
18638 (expand_expr): Likewise.
18639 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
18640 to canonicalize arithmetic that didn't simpify.
18641 (simplify_plus_minus): New argument force; update
18642 all callers. Don't split CONST unless we can do something with it,
18643 and wouldn't lose the constness of the operands.
18645 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
18646 that we generated earlier.
18648 2002-02-21 Tom Tromey <tromey@redhat.com>
18650 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
18651 (output_line_info): Use constant `1', with a long explanatory
18653 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
18655 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
18657 * jump.c (redirect_jump): If old label has no UID, don't try to
18660 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
18662 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
18663 If input is constant, do shifts at compile time.
18665 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
18667 * doc/extend.texi: Fix some more overfull hboxes.
18669 2002-02-21 Jakub Jelinek <jakub@redhat.com>
18671 PR optimization/4994
18672 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
18675 2002-02-21 Jakub Jelinek <jakub@redhat.com>
18678 * expr.h (expand_and): Add mode argument.
18679 * expmed.c (expand_and): Add mode argument.
18680 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
18681 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
18682 * except.c (expand_builtin_extract_return_addr): Likewise.
18683 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
18684 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
18685 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
18686 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
18687 * config/c4x/c4x.md: Use GEN_INT (x) instead of
18688 gen_rtx (CONST_INT, VOIDmode, x).
18690 2002-02-21 Jakub Jelinek <jakub@redhat.com>
18693 * stmt.c (warn_if_unused_value): Move side effects test once more.
18695 2002-02-20 Torbjorn Granlund <tege@swox.com>
18697 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
18698 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
18700 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
18702 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
18703 SUBREG or ZERO_EXTEND.
18705 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
18707 * sh.h (current_function_anonymous_args): Remove.
18708 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
18709 of current_function_varargs and current_function_stdarg is set.
18710 * sh.c (sh_expand_prologue): Check current_function_varargs /
18711 current_function_stdarg / TARGET_SH5 instead of
18712 current_function_anonymous_args.
18714 * sh64.h (TARGET_VERSION): Define.
18716 2002-02-20 David Edelsohn <edelsohn@gnu.org>
18718 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
18719 VRSAVE_REGNO on TARGET_ALTIVEC.
18721 2002-02-20 Alan Modra <amodra@bigpond.net.au>
18723 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
18724 bits of SImode const_int.
18725 (includes_rshift_p): Likewise.
18726 (print_operand): Call mask_operand and mask64_operand with correct
18728 (rs6000_output_function_epilogue): Pad traceback table to word.
18729 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
18730 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
18731 mask64_operand with correct mode.
18732 (FUNCTION_ARG_REGNO_P): Correct parentheses.
18734 2002-02-20 Jakub Jelinek <jakub@redhat.com>
18737 * varasm.c (get_pool_constant_mark): New.
18738 * rtl.h (get_pool_constant_mark): Add prototype.
18739 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
18740 be represented if it has not been output.
18742 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
18744 * combine.c (do_SUBST): Sanity check substitutions of
18745 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
18746 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
18747 CONST_INT into its operand.
18748 (known_cond): Likewise, for ZERO_EXTEND.
18749 * simplify-rtx.c (simplify_unary_operation): Fix condition to
18750 allow for simplification of wide modes. Reject CONST_INTs in
18751 ZERO_EXTEND when their actual mode is not given.
18753 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
18755 * c-decl.c (pushdecl): If no global declaration is found for an
18756 extern declaration in block scope, try a limbo one.
18758 2002-02-20 Jakub Jelinek <jakub@redhat.com>
18761 * c-common.c (pointer_int_sum): Moved from...
18762 * c-typeck.c (pointer_int_sum): ...here.
18763 * c-common.h (pointer_int_sum): Add prototype.
18765 2002-02-20 Jakub Jelinek <jakub@redhat.com>
18768 * c-decl.c (duplicate_decls): Return 0 if issued error about
18771 2002-02-20 Roger Sayle <roger@eyesopen.com>
18772 Jakub Jelinek <jakub@redhat.com>
18775 * tree.c (host_integerp): Ensure that the constant integer is
18776 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
18777 when pos is zero or non-zero respectively. Clarify comment.
18778 * c-format.c (check_format_info_recurse): Fix host_integerp
18779 usage; the pos argument should be zero when assigning to a
18780 signed HOST_WIDE_INT.
18782 2002-02-20 Richard Henderson <rth@redhat.com>
18784 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
18785 of the operand, rather than assuming TImode.
18786 (ix86_expand_binop_builtin): Cope with commutative patterns
18787 using nonimmediate_operand for both operands.
18788 (ix86_expand_timode_binop_builtin): Likewise.
18789 (ix86_expand_store_builtin): Validate operand 1.
18790 (ix86_expand_unop1_builtin): Likewise.
18792 2002-02-20 Philip Blundell <philb@gnu.org>
18795 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
18797 2002-02-20 Richard Henderson <rth@redhat.com>
18800 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
18802 2002-02-20 Tom Tromey <tromey@redhat.com>
18804 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
18805 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
18806 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
18807 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
18808 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
18811 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
18813 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
18814 for (const_int 0) in X not just INTVAL.
18816 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
18818 * doc/extend.texi: Avoid or reduce overfull hboxes.
18820 2002-02-20 Diego Novillo <dnovillo@redhat.com>
18822 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
18823 operations if the field does not start at a mode boundary.
18825 2001-02-20 Joel Sherrill <joel@OARcorp.com>
18827 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
18828 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
18829 Also done for -Acpu and -Amachine.
18831 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
18833 * cppinit.c (init_dependency_output): Take deps output file
18834 from -o if none given with -MF. Suppress normal output.
18835 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
18836 * doc/cpp.texi, doc/invoke.texi: Update.
18838 2002-02-19 Zack Weinberg <zack@codesourcery.com>
18840 * toplev.c (output_quoted_string): Write unprintable
18841 characters with octal escapes.
18843 2002-02-19 David Edelsohn <edelsohn@gnu.org>
18845 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
18846 really_call_used[VRSAVE_REGNO] if not Altivec.
18848 2002-02-19 Alan Modra <amodra@bigpond.net.au>
18850 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
18852 (constant_pool_expr_1): Fix formatting.
18853 (rs6000_legitimize_reload_address): Likewise.
18855 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18857 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
18858 now that we have one.
18860 2002-02-19 Zack Weinberg <zack@codesourcery.com>
18862 * tree.h (struct tree_common): Remove aux. Add unused_0 at
18863 end of first block of bitfields (which was only seven bits);
18864 rename dummy to unused_1; remove comment which is no longer true.
18866 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
18868 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
18870 2002-02-19 Philip Blundell <pb@nexus.co.uk>
18873 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
18877 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
18878 arm_is_longcall_p rather than inspecting call-type cookie
18880 (call_value_insn) [TARGET_THUMB]: Likewise.
18882 2002-02-19 Graham Stott <grahams@redhat.com>
18884 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
18886 2002-02-19 David Edelsohn <edelsohn@gnu.org>
18888 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
18889 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
18890 (FP_SAVE_INLINE): Delete.
18892 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
18893 * config/rs6000/eabi.asm: Remove ABI save restore routines.
18894 * config/rs6000/t-ppccomm: Build crtsavres.o.
18895 * config/rs6000/crtsavres.asm: New file.
18897 2002-02-19 Philip Blundell <philb@gnu.org>
18899 * config/arm/arm.c (use_return_insn): Don't reject interrupt
18901 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
18902 (output_return_instruction): Allow interrupt functions to return with
18903 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
18904 (arm_expand_prologue): Subtract 4 before stacking LR in an
18905 interrupt function.
18907 2002-02-19 Philip Blundell <pb@nexus.co.uk>
18909 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
18910 decl, not just FUNCTION_DECL.
18911 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
18912 (arm_assemble_integer): Likewise.
18913 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
18916 2002-02-19 matthew green <mrg@eterna.com.au>
18918 * config.gcc (sparc-*-netbsdelf*): Enable target.
18919 (sparc64-*-netbsd*): New target.
18920 * config/sparc/netbsd-elf.h: New file.
18921 * config/sparc/t-netbsd64: New file.
18923 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
18925 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
18927 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
18929 * doc/invoke.texi: explicitly list the style guidelines that
18930 -Weffc++ checks for.
18932 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
18934 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
18936 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
18939 * gcc.c (cpp_unique_options): Treat -o as indicating object file
18940 only if not -E. If -E, pass -o through to the preprocessor.
18942 2002-02-19 Kazu Hirata <kazu@hxi.com>
18944 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
18945 register number with an appropriate macro.
18947 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
18949 * doc/rtl.texi (Constants): Close @code tag.
18951 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
18953 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
18954 ("mmx_uavgv4hi3"): Same.
18955 ("pmulhrwv4hi3"): Same.
18957 * tree-inline.c (walk_tree): Handle vectors.
18959 * c-common.c (constant_expression_warning): Handle vectors.
18960 (overflow_warning): Same.
18962 * sched-deps.c (sched_analyze_2): Handle vectors.
18964 * rtlanal.c (rtx_unstable_p): Handle vectors.
18965 (rtx_varies_p): Same.
18966 (count_occurrences): Same.
18967 (regs_set_between_p): Same.
18968 (modified_between_p): Same.
18969 (modified_in_p): Same.
18970 (volatile_insn_p): Same.
18971 (volatile_refs_p): Same.
18972 (side_effects_p): Same.
18973 (may_trap_p): Same.
18974 (inequality_comparisons_p): Same.
18975 (replace_regs): Same.
18976 (computed_jump_p_1): Same.
18978 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
18980 (inner_mode_array): New.
18981 (copy_rtx): Handle vectors.
18982 (copy_most_rtx): Same.
18983 (rtx_equal_p): Same.
18984 (get_mode_alignment): Adjust for vectors.
18986 * resource.c (mark_referenced_resources): Handle vectors.
18987 (mark_set_resources): Same.
18989 * reload1.c (eliminate_regs): Handle vectors.
18990 (elimination_effects): Same.
18991 (scan_paradoxical_subregs): Same.
18993 * reload.c (subst_reg_equivs): Handle vectors.
18995 * regrename.c (scan_rtx): Handle vectors.
18997 * regclass.c (reg_scan_mark_refs): Handle vectors.
18999 * recog.c (find_single_use_1): Handle vectors.
19001 * local-alloc.c (equiv_init_varies_p): Handle vectors.
19002 (contains_replace_regs): Same.
19003 (memref_referenced_p): Same.
19005 * integrate.c (copy_rtx_and_substitute): Handle vectors.
19006 (subst_constants): Same.
19008 * genattrtab.c (attr_copy_rtx): Handle vectors.
19009 (encode_units_mask): Same.
19010 (clear_struct_flag): Same.
19011 (count_sub_rtxs): Same.
19013 * gcse.c (want_to_gcse_p): Handle vectors.
19014 (oprs_unchanged_p): Same.
19015 (hash_expr_1): Same.
19016 (oprs_not_set_p): Same.
19017 (expr_killed_p): Same.
19018 (compute_transp): Same.
19019 (store_ops_ok): Same.
19021 * function.c (purge_addressof_1): Do not allow paradoxical subregs
19023 (fixup_var_refs_1): Same.
19024 (instantiate_virtual_regs_1): Same.
19026 * fold-const.c (operand_equal_p): Handle vectors.
19028 (rtl_expr_nonnegative_p): Same.
19030 * flow.c (mark_used_regs): Handle vectors.
19032 * df.c (df_uses_record): Handle vectors.
19034 * cselib.c (cselib_subst_to_values): Handle vectors.
19035 (cselib_mem_conflict_p): Same.
19038 * cse.c (canon_reg): Handle vectors.
19040 (cse_process_notes): Same.
19041 (count_reg_usage): Same.
19042 (canon_hash): Same.
19044 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
19046 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
19048 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
19049 (gen_rtx): Handle CONST_VECTOR.
19050 (gen_const_vector_0): New.
19051 (copy_rtx_if_shared): CONST_VECTORs can be shared.
19052 (reset_used_flags): Same.
19053 (copy_insn_1): Same.
19054 (initializer_constant_valid_p): Handle VECTOR_CST.
19056 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
19058 * doc/rtl.texi (Constants): Document const_vector.
19059 (CONST0_RTX): Update for vectors.
19060 (RTL sharing): Same.
19062 * print-tree.c (print_node): Add case for VECTOR_CST.
19064 * tree.h (TREE_VECTOR_CST_ELTS): New.
19065 (struct tree_vector): New.
19066 (union tree_node): Add vector node.
19067 (build_vector): Add prototype.
19069 * tree.def (VECTOR_CST): New.
19071 * tree.c (build_vector): New.
19073 * expmed.c (make_tree): Handle CONST_VECTOR.
19075 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
19076 (CONST_VECTOR_ELT): New.
19077 (CONST_VECTOR_NUNITS): New.
19079 * machmode.h (GET_MODE_INNER): New.
19080 (DEF_MACHMODE): Accept 8th arg.
19082 * machmode.def: Add 8th argument for vector inner mode.
19083 Add inner vector modes for vectors.
19085 * rtl.def (VEC_CONST): Remove.
19086 (CONST_VECTOR): New.
19088 * expr.c (clear_storage): Allow vectors.
19089 (is_zeros_p): Handle VECTOR_CST.
19091 * varasm.c (output_constant_pool): Handle vectors.
19092 (rtx_const): Add veclo and vechi fields.
19093 (kind): Add RTX_VECTOR.
19094 (decode_rtx_const): Add case for vector.
19096 * config/rs6000/rs6000-protos.h: Add zero_constant.
19098 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
19099 constants. Force easy vector constants into memory.
19100 (easy_vector_constant): New.
19101 (emit_easy_vector_constant): New.
19102 (rs6000_legitimize_reload_address): Do not generate bad reloads on
19105 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
19107 ("altivec_lvxl"): Same.
19108 (altivec_lvebx): Same.
19109 (altivec_lvehx): Same.
19110 (altivec_lvewx): Same.
19111 ("*movv4si_const0"): New.
19112 ("*movv4sf_const0"): New.
19113 ("*movv8hi_const0"): New.
19114 ("*movv16qi_const0"): New.
19116 2002-02-18 Kazu Hirata <kazu@hxi.com>
19118 * config/h8300/h8300.c (notice_update_cc): Use
19121 2002-02-18 Kazu Hirata <kazu@hxi.com>
19123 * config/h8300/h8300.md (divmod patterns): Change the
19124 constraints for operands[1] to register_operand.
19126 2002-02-18 Kazu Hirata <kazu@hxi.com>
19128 * config/h8300/h8300-protos.h: Remove the prototype for
19130 * config/h8300/h8300.c (p_operand): Remove.
19131 * config/h8300/h8300.md: Replace p_operand with
19134 2002-02-18 Philip Blundell <pb@nexus.co.uk>
19136 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
19138 (output_return_instruction): Allow use of LDR to unstack
19139 return addresss even for interrupt handlers or when
19140 interworking. If compiling for ARMv5, use interworking-safe
19141 return instructions by default. Remove duplicated code and
19142 lengthy "strcat" sequences.
19144 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
19146 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
19147 (LINK_EH_SPEC): Define.
19148 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
19150 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
19152 * config/s390/s390.c (s390_emit_prologue): Do not set the
19153 frame_related flag for call-clobbered registers.
19155 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
19157 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
19158 (construct_container): Fix handling of SSE operands.
19159 (ix86_expand_builtin): Fix handling of 64bit pointers.
19160 (mmx_maskmovq_rex): New pattern.
19162 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
19164 * regrename.c (kill_set_value): Handle subregs properly.
19166 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
19168 * objc/objc-act.c (handle_impent): Remove leading '*'
19169 from objc_class_name.
19171 2002-02-17 Richard Henderson <rth@redhat.com>
19173 * config/alpha/alpha.c (some_small_symbolic_operand,
19174 some_small_symbolic_operand_1, split_small_symbolic_operand,
19175 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
19176 Handle small SYMBOL_REFs anywhere, not just inside memories.
19177 * config/alpha/alpha-protos.h: Update.
19178 * config/alpha/alpha.h (PREDICATE_CODES): Update.
19179 * config/alpha/alpha.md (small symbolic operand splitter): Update.
19181 2002-02-17 Roland McGrath <roland@frob.com>
19183 * config.gcc (powerpc-*-gnu-gnualtivec*,
19184 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
19185 * config/rs6000/gnu.h: New file.
19186 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
19187 Grok "gnu" in rs6000_abi_name.
19188 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
19189 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
19190 Grok -mcall-gnu analogous to -mcall-linux et al.
19191 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
19192 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
19193 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
19195 2002-02-17 Jakub Jelinek <jakub@redhat.com>
19198 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
19201 2002-02-17 Philipp Thomas <pthomas@suse.de>
19203 * config/cris/cris.h: Undefine STARTFILE_SPEC and
19204 ENDFILE_SPEC before (re)defining them.
19206 2002-02-17 Kazu Hirata <kazu@hxi.com>
19208 * config/h8300/h8300.c: Fix formatting.
19209 * config/h8300/h8300.h: Likewise.
19211 2002-02-17 Philipp Thomas <pthomas@suse.de>
19213 * doc/tm.texi: Explain why empty strings should not be
19214 marked for translation.
19216 2002-02-17 Philipp Thomas <pthomas@suse.de>
19218 * final.c (output_operand_lossage): Changed to accept
19219 printf style arguments. Change calls where necessary.
19220 * output.h (output_operand_lossage): Change declaration
19221 accordingly. Update copyright.
19222 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
19223 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
19224 Update copyright date where necessary.
19226 * config/i386/i386.c (print_operand): Likewise. Remove use of
19229 * config/cris/cris.c (cris_operand_lossage): Likewise.
19230 Rename parameter so that exgettext recognizes it as
19231 translatable message.
19232 (LOSE_AND_RETURN): Rename parameter to msgid.
19234 2002-02-17 Kazu Hirata <kazu@hxi.com>
19236 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
19237 hard coded register number with an appropriate macro.
19238 (HARD_REGNO_MODE_OK): Likewise.
19239 (ARG_POINTER_REGNUM): Likewise.
19240 (STATIC_CHAIN_REGNUM): Likewise.
19241 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
19242 * config/h8300/h8300.md (define_constants): Define more
19245 2002-02-17 Philipp Thomas <pthomas@suse.de>
19247 * config/i386/i386.h: Don't mark empty strings for translation.
19249 2002-02-16 H.J. Lu <hjl@gnu.org>
19251 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
19253 2002-02-16 Zack Weinberg <zack@codesourcery.com>
19255 * cppinit.c (merge_include_chains): Check for brack being
19256 NULL before attempting to merge it with qtail.
19258 2002-02-16 Andrew Cagney <ac131313@redhat.com>
19260 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
19263 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
19265 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
19267 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
19269 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
19270 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
19271 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
19273 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19275 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
19276 now only if !TARGET_FIX.
19277 (*movsi_nt_vms_fix): New pattern.
19279 2002-02-16 Douglas B Rupp <rupp@gnat.com>
19281 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
19282 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
19283 (alpha_sa_mask, alpha_sa_size): Reflect above change.
19284 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
19285 (alpha_start_function, alpha_expand_epilogue): Likewise.
19286 (unicosmk_gen_dsib): Likewise.
19288 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19290 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
19292 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
19294 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
19295 check_and_change_labels, s390_final_chunkify): Delete.
19296 (s390_split_branches, s390_chunkify_pool): New functions.
19297 (s390_function_prologue): Call them.
19299 * config/s390/s390.h (S390_REL_MAX): Delete.
19300 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
19302 * config/s390/s390.md (cjump, icjump, jump): Fix length
19303 attribute calculation.
19306 2002-02-15 David Edelsohn <edelsohn@gnu.org>
19308 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
19309 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
19311 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
19313 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
19314 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
19315 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
19317 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
19319 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
19321 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
19323 * reload.c (find_dummy_reload): Check that an output register
19324 is valid for its mode.
19326 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
19328 * combine.c (known_cond): After replacing the REG of a SUBREG, try
19331 * function.c (assign_parms): Demote promoted argument passed by
19332 transparent reference.
19334 2001-02-14 Joel Sherrill <joel@OARcorp.com>
19336 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
19337 -Acpu() and -Amachine() to eliminate warnings.
19339 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
19341 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
19343 2002-02-14 Kazu Hirata <kazu@hxi.com>
19345 * config/h8300/h8300-protos.h: Update the prototype for
19347 * config/h8300/h8300.c (const_costs): Treat SET as a little
19348 more expensive operation.
19349 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
19350 reference to const_costs.
19352 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
19354 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
19356 2002-02-14 Jakub Jelinek <jakub@redhat.com>
19359 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
19360 use arguments from newtype.
19362 2002-02-13 Eric Christopher <echristo@redhat.com>
19364 * config/mips/mips.c (override_options): Add check for march/mipsX
19365 on the same command line. Fix error message in cpu processing.
19366 Remove architecture and ISA checks.
19368 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
19370 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
19372 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
19374 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
19376 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
19378 ("*movv8hi_internal1"): Same.
19379 ("*movv16qi_internal1"): Same.
19380 ("*movv4sf_internal1"): Same.
19382 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
19383 not push_reload for altivec modes.
19385 2002-02-13 Joel Sherrill <joel@OARcorp.com>
19387 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
19388 all RTEMS targets including removal of #includes from config/*/rtems*.h
19389 file and adding them to tm_file setting. Added xm_defines=POSIX to
19391 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
19392 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
19393 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
19394 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
19395 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
19396 config/m68k/rtemself.h: Ditto.
19397 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
19398 config/mips/rtems64.h: Ditto.
19399 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
19400 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
19402 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
19403 config/sparc/rtemself.h: Ditto.
19404 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
19405 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
19406 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
19408 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
19409 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
19410 target made more similar to i386-elf.
19411 * config/i386/t-rtems-i386: Added soft float support and multilibs.
19412 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
19413 be similar to config/m68k/t-m68kelf.
19414 * gthr-rtems.h: Encapsulate with extern "C" for C++.
19416 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
19418 * regmove.c (kill_value): Handle subregs.
19420 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
19422 * i386.md (mul patterns): Allow memory operand to be first;
19423 add expanders where needed; fix constraints.
19424 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
19425 Allow memory operand to be the first.
19427 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
19430 2002-02-13 Jakub Jelinek <jakub@redhat.com>
19433 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
19436 2002-02-13 Jakub Jelinek <jakub@redhat.com>
19438 PR optimization/5547:
19439 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
19440 all valid IA-32 address modes involving non-scaled %ebx and
19441 GOT/GOTOFF as displacement.
19443 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
19445 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
19446 after emitting ltorg insns.
19448 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
19449 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
19450 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
19451 *abssf2): Fix "op_type" attribute.
19453 2002-02-13 Douglas B Rupp <rupp@gnat.com>
19455 * mkconfig.sh: Avoid using a subshell redirect.
19456 ($output.T): Change to $(output)T.
19457 (ENABLE_NLS): Remove unneeded undef.
19459 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
19460 * config/alpha/x-vms (libsubdir): Define.
19462 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
19463 register frame procedures. Optimize retrieving context.
19465 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
19466 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
19467 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
19469 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19471 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
19472 Make same change as for find_base_value.
19474 2002-02-13 Kazu Hirata <kazu@hxi.com>
19476 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
19477 of QImode and SImode.
19479 2002-02-13 Kazu Hirata <kazu@hxi.com>
19481 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
19482 length computation of movsi.
19483 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
19485 2002-02-13 Kazu Hirata <kazu@hxi.com>
19487 * config/h8300/h8300.md (subqi3): Tighten the predicate for
19488 operands[2] to register_operand.
19490 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
19492 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
19494 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
19496 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
19497 for altivec_lvx* and altivec_stvx*.
19498 ("*movv4si_internal"): Add constraint for loading from GPRs.
19499 ("*movv8hi_internal1"): Same.
19500 ("*movv16qi_internal1"): Same.
19501 ("*movv4sf_internal1"): Same.
19503 * config/rs6000/rs6000.c (altivec_register_operand): New.
19505 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
19506 altivec_register_operand.
19508 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
19510 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
19513 2002-02-13 Stan Shebs <shebs@apple.com>
19515 * c-typeck.c (digest_init): Handle vectors.
19516 (really_start_incremental_init): Same.
19517 (pop_init_level): Same.
19518 (process_init_element): Same.
19520 * varasm.c (output_constant): Same.
19522 * expr.c (clear_storage): Same.
19523 (store_constructor): Same.
19525 2002-02-12 Eric Christopher <echristo@redhat.com>
19527 * explow.c (hard_function_value): Add comment explaining
19528 signed/unsigned comparison.
19530 2002-02-12 Jakub Jelinek <jakub@redhat.com>
19532 * jump.c (never_reached_warning): Add finish argument.
19533 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
19534 real insn after end.
19535 * rtl.h (never_reached_warning): Adjust prototype.
19536 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
19537 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
19538 never_reached_warning.
19540 2002-02-12 Graham Stott <grahams@redhat.com>
19542 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
19544 2002-02-12 Kazu Hirata <kazu@hxi.com>
19546 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
19547 logical shifts on H8/300.
19548 (shift_alg_si): Improve several shifts on H8/300.
19549 (get_shift_alg): Likewise.
19551 2002-02-12 Graham Stott <grahams@redhat.com>
19553 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
19555 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19557 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
19558 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
19560 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
19562 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
19563 non-CONST_INT through default_assemble_integer.
19564 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
19565 <case 8>: Abort for CONST_DOUBLE.
19567 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
19569 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
19571 * config/pa/pa-linux.h (LIB_SPEC): Delete.
19572 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
19574 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
19576 * config/stormy16/stormy16.md (zero_extendqihi2): New.
19578 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
19580 * regrename.c (regrename_optimize): Don't accept a
19581 part-clobbered register if the replaced register is not part
19584 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
19585 take padding into account when computing the argument value.
19587 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
19589 * combine.c (try_combine): Apply substitutions in
19590 CALL_INSN_FUNCTION_USAGE too.
19592 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
19594 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
19595 __builtin_altivec_abs*.
19598 * config/rs6000/rs6000.h (rs6000_builtins): Add
19599 ALTIVEC_BUILTIN_ABS*.
19601 * config/rs6000/altivec.h: Use const char for builtins expecting
19603 (vec_abs): New versions for C and C++.
19606 2002-02-10 Kazu Hirata <kazu@hxi.com>
19608 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
19611 2002-02-10 Kazu Hirata <kazu@hxi.com>
19613 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
19614 constant definition from h8300.md.
19615 (FRAME_POINTER_REGNUM): Likewise.
19616 * config/h8300/h8300.md (define_constants): Add FP_REG.
19618 2002-02-10 Kazu Hirata <kazu@hxi.com>
19620 * config/h8300/h8300.c (print_operand): Remove redundant code.
19622 2002-02-10 Kazu Hirata <kazu@hxi.com>
19624 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
19625 * config/h8300/h8300.c (byte_reg): Make it static.
19627 2002-02-10 Richard Henderson <rth@redhat.com>
19630 * c-typeck.c (incomplete_type_error): Handle flexible array members.
19632 2002-02-10 Richard Henderson <rth@redhat.com>
19635 * tree.c (append_random_chars): Don't abort if main_input_filename
19638 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
19640 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
19642 2002-02-10 Kazu Hirata <kazu@hxi.com>
19644 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
19645 (pushhi1): Likewise.
19647 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
19649 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
19650 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
19652 2002-02-09 David O'Brien <obrien@FreeBSD.org>
19654 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
19656 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
19658 2002-02-09 Kazu Hirata <kazu@hxi.com>
19660 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
19661 a half of an SImode register on H8/300.
19663 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
19665 * i386.md (movdi_2): Add missing '!'.
19667 2002-02-09 Kazu Hirata <kazu@hxi.com>
19669 * config/h8300/h8300.h: Fix formatting. Remove commented-out
19672 2002-02-09 Kazu Hirata <kazu@hxi.com>
19674 * config/h8300/h8300.md (length): Correct the distance valid
19675 for the short branch.
19677 2002-02-09 Kazu Hirata <kazu@hxi.com>
19679 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
19681 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
19683 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
19684 registers in SImode.
19685 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
19688 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
19691 Contribute sh64-elf.
19692 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
19693 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
19694 (sh_cannot_modify_jumps_p): New function.
19695 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
19696 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
19697 (sh_ms_bitfield_layout_p): New function.
19698 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
19699 Zack Weinberg <zack@codesourcery.com>
19700 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
19701 expand_simple_binop instead of expand_binop.
19702 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
19703 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
19704 use of .quad and .uaquad.
19705 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
19706 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
19707 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
19708 * config/sh/sh.md (movdi_const, movdi_const_32bit,
19709 movdi_const_16bit): Make sure all CONSTs have modes.
19710 (sym2PIC): Ditto, but by adjusting all callers.
19711 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
19712 if the prologue calls the SHmedia argument decoder or register
19714 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
19715 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
19716 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
19717 (sh_expand_epilogue): Don't emit USE of return target register.
19718 (prepare_move_operands): Legitimize DImode PIC addresses.
19719 (sh_media_register_for_return): Skip tr0, used to initialize the
19721 (sh_expand_prologue): Remove explicit USE of return register.
19722 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
19723 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
19724 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
19725 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
19726 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
19727 EXTRA_CONSTRAINT_T.
19728 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
19729 (MOVI_SHORI_BASE_OPERAND_P): New.
19730 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
19731 (EXTRA_CONSTRAINT_T): Define in terms of them.
19732 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
19733 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
19734 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
19735 alternatives supporting TARGET_REGS.
19736 (UNSPEC_GOTPLT): New constant.
19737 (movdi split): Move incrementing of LABEL_NUSES...
19738 (movdi_const, movdi_const_32bit): Here. Use
19739 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
19740 (movdi_const_16bit): New.
19741 (call, call_value) [flag_pic]: Use GOTPLT.
19742 (call_pop, call_value_pop): New expands.
19743 (call_pop_compact, call_pop_rettramp): New insns.
19744 (call_value_pop_compact, call_value_pop_rettramp): New insns.
19745 (sibcall) [flag_pic]: Use GOT.
19746 (builtint_setjmp_receiver): Remove bogus, unused expand.
19747 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
19748 (*pt, *ptb, ptrel): New insns.
19749 (sym2GOT): Handle DImode GOT.
19750 (sym2GOTPLT, symGOTPLT2reg): New expands.
19751 (sym2PIC): New expand.
19752 (shcompact_return_tramp): Use GOTPLT to return trampoline.
19753 (shcompact_return_tramp_i): Use return register explicitly.
19754 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
19755 disable flag_reorder_blocks.
19756 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
19757 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
19758 clobbers, for clarity.
19759 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
19760 restoring of r0 in macl as MAYBE_DEAD.
19761 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
19762 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
19763 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
19764 alter_subreg all over.
19765 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
19766 reload, instead of emitting instructions that would require
19768 (casesi_load_media): Add missing modes.
19769 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
19770 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
19771 as used if the argument decoder is called.
19772 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
19773 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
19774 Pmode, then extend it to DImode if necessary.
19775 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
19776 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
19777 constants in FPU-enabled SHmedia, let them be loaded from memory.
19778 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
19779 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
19780 Adjust whitespace in assembly output templates.
19781 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
19782 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
19783 mode of if_then_else.
19784 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
19785 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
19787 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
19788 Joern Rennecke <amylaar@redhat.com>
19789 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
19790 (SUBTARGET_CPP_PTR_SPEC): New.
19791 (SUBTARGET_CPP_SPEC): Remove.
19792 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
19793 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
19794 Fix typo in previous checkin.
19795 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
19796 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
19797 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
19798 Alexandre Oliva <aoliva@redhat.com>
19799 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
19800 what single FP register can hold for SHmedia target.
19801 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
19802 Alexandre Oliva <aoliva@redhat.com>
19803 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
19804 Do not split into SUBREG.
19805 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
19806 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
19807 and added new functions as specified in SH5 ABI r9.
19808 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
19809 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
19811 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
19812 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
19813 gen_consttable_4 and gen_consttable_8. Emit multiple labels
19814 and consttable_window_ends.
19815 2001-06-03 Graham Stott <grahams@redhat,com>
19816 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
19817 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
19818 * config/sh/sh.c (print_operand): Handle floating-point pair,
19819 vector and matrix registers.
19820 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
19821 vector modes into account.
19822 * config/sh/sh.md (movv2sf): Split move between registers into
19824 (movv4sf, movv16sf): Introduce insns that get split only after
19826 * config/sh/shmedia.h: Fix Copyright dates.
19827 * config/sh/ushmedia.h: Likewise. Move loop counter
19828 declarations into conditionals that uses them.
19829 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
19831 * config/sh/sshmedia.h: Fix Copyright dates.
19832 (sh_media_PUTCFG): Fix constraints.
19833 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
19834 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
19835 ptrmemfunc_vbit_in_delta for SH5.
19836 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
19837 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
19838 * invoke.texi: Likewise.
19839 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
19840 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
19841 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
19842 GCC_pop_shmedia_regs_nofpu): New global symbols.
19843 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
19844 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
19845 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
19846 compact function with nonlocal labels.
19847 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
19848 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
19849 (initial_elimination_offset): Account for their stack space.
19850 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
19851 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
19852 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
19853 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
19854 least one of the operands to be a register.
19855 (movv2sf): Likewise. Renamed to movv2sf_i.
19856 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
19857 prepare_move_operands() before emitting SHmedia insns.
19858 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
19859 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
19860 Don't save nor initialize r12. Don't mis-align the stack.
19861 Pad the code with a nop.
19862 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
19864 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
19865 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
19866 [__SHMEDIA__]: Implement.
19867 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
19868 * config/sh/sh.md: Set latency of `pt' closer to reality.
19869 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
19870 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
19871 Set move, load and store type attributes.
19872 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
19873 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
19875 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
19876 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
19877 * config/sh/sh.c (sh_media_register_for_return): New function.
19878 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
19879 branch-target register.
19880 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
19881 * config/sh/sh.md (return_media_i): Use any call-clobbered
19882 branch-target register.
19883 (return_media): If r18 wasn't copied in the prologue, copy it
19885 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
19886 Clear class FP0_REGS.
19887 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
19889 2001-03-08 DJ Delorie <dj@redhat.com>
19890 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
19891 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
19892 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
19893 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
19894 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
19895 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
19896 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
19897 return value correctly for call_cookie.
19898 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
19899 * config/sh/crt1.asm (start): Modified so as to call
19900 ___setup_argv_and_call_main.
19901 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
19902 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
19904 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
19905 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
19906 (STRIP_NAME_ENCODING): Use it.
19907 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
19908 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
19909 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
19910 prepare_scc_operands().
19911 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
19912 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
19913 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
19914 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
19915 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
19916 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
19917 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
19918 used in shcompact_incoming_args.
19919 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
19921 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
19923 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
19924 Adjust accordingly.
19925 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
19926 Simplify. Adjust. Add sanity check.
19927 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
19929 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
19931 (udivsi3, divsi3): Use them.
19932 (force_mode_for_call): New insn.
19933 (call, call_value, sibcall_value): Emit it before SHcompact
19935 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
19936 * config/sh/sh.md (call, call_value, sibcall): Make sure the
19937 call cookie is non-NULL before taking its value.
19938 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
19939 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
19940 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
19941 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
19943 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
19944 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
19945 temporary for stack adjusts. Use MACL and MACH to pass
19946 arguments to shcompact_incoming_args.
19947 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
19949 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
19950 (nested_trampoline): Load static chain address into r1.
19951 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
19952 2001-01-07 Alexandre Oliva <aoliva@redhat.com
19953 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
19954 fp_arith_reg_operand().
19955 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
19956 * config/sh/sh.md (casesi): Sign-extend the first two operands,
19957 and use signed compares for them.
19958 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
19959 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
19960 ones properly aligned.
19961 (find_barrier): Account for extra alignment needed for 8-byte wide
19963 (machine_dependent_reorg): Require a label for the second 4-byte
19964 constant after an 8-byte one.
19965 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
19967 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
19968 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
19969 last_float when switching float modes.
19970 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
19971 auto-increment for general-purpose registers.
19972 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
19974 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
19976 * config/sh/sh.c (sh_builtin_saveregs): Support using all
19977 registers for varargs.
19978 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
19979 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
19980 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
19981 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
19982 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
19983 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
19984 call_cookie accordingly.
19985 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
19986 (SHCOMPACT_BYREF): Likewise.
19987 (SHCOMPACT_FORCE_ON_STACK): New macro.
19988 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
19989 (sh_builtin_saveregs): Likewise.
19990 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
19991 shcompact_incoming_args): Use new shift values. Support
19992 sequences of consecutive and non-consecutive pushes/pops.
19993 * config/sh/sh.md (return): Don't explicitly use PR_REG.
19994 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
19995 * config/sh/sh.h (TEXT_SECTION): Define.
19996 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
19997 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
19998 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
19999 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
20000 return values on FPU-enabled SHmedia.
20001 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
20002 FPU-enabled SHmedia.
20003 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
20004 value is returned in a non-FP reg and is not returned by
20006 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
20008 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
20009 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
20010 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
20011 quad-aligned to be passed by callee-copy reference.
20012 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
20013 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
20014 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
20015 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
20016 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
20017 copying low-numbered FP regs to r7 and r8.
20018 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
20019 FP regs to general-purpose regs only if the copy was passed on the
20021 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
20022 copying FP reg to r9.
20023 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
20024 copy FP regs to general-purpose regs only in outgoing calls.
20025 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
20026 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
20028 * config/sh/sh.h (struct sh_args): Document all fields.
20029 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
20030 passed partially on the stack should not consider making
20032 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
20033 stack_regs only for incoming calls. When passing FP args,
20034 make sure there are FP regs available before modifying
20036 (SHCOMPACT_BYREF): Pass double args in general-purpose
20037 registers by reference.
20038 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
20039 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
20040 attempt to generate sibcalls if the caller got any arguments
20042 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
20043 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
20044 to 8-byte boundaries.
20045 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
20046 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
20047 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
20048 stored in the stack.
20049 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
20050 for the offsets to have the ISA bit set.
20051 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
20052 invocation. Use beq instead of bgt to mark end of sequence of
20054 (shcompact_incoming_args): Fix store of r2. Use beq instead of
20055 bgt to mark end of sequence of stores.
20056 * config/sh/sh.c (arith_operand): Don't check whether
20057 CONST_OK_FOR_J for now.
20058 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
20059 instead of long for conversion.
20060 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
20061 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
20062 before passing it to fprintf.
20063 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
20064 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
20065 Call set_fpscr before reading/writing SR.
20066 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
20068 * config/sh/lib1funcs.asm: Add `.align 2' directives before
20070 (FMOVD_WORKS): Define on SH5 with FPU.
20071 (set_fpscr): Define on SH5. Remove separate _fpscr_values
20073 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
20075 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
20076 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
20078 (ia_main_table): Ditto.
20079 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
20080 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
20081 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
20082 the definitions from sh.h.
20083 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
20085 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
20086 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
20087 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
20088 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
20089 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
20090 Increment LABEL_NUSES.
20092 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
20094 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
20096 * config/sh/elf.h (SIZE_TYPE): Likewise.
20097 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
20098 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
20099 shcompact_incoming_args): Load switch table addresses using
20101 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
20102 (NO_BUILTIN_SIZE_TYPE): Define.
20103 (SIZE_TYPE): Don't define.
20104 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
20105 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
20106 definition of __SH5__=32 for -m5-compact-nofpu.
20107 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
20109 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
20110 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
20111 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
20112 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
20113 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
20114 (INSN_LENGTH_ALIGNMENT): Likewise.
20115 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
20116 * config/sh/sh.md (call, call_value, sibcall): Simplify
20117 copying of non-branch-target register.
20118 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
20119 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
20120 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
20121 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
20122 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
20123 floating-point values as structs.
20124 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
20125 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
20126 general-purpose register.
20127 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
20128 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
20129 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
20130 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
20131 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
20132 (ENCODE_SECTION_INFO): Enclose variables and constants in
20134 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
20135 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
20136 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
20137 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
20138 only for LABEL_REFs. For SYMBOL_REFs, prepend
20139 SH_DATALABEL_ENCODING to the symbol name.
20140 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
20142 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
20143 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
20145 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
20146 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
20147 (DATALABEL_REF_P): Don't require CONST.
20148 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
20150 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
20151 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
20153 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
20154 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
20155 Use shallow_copy_rtx and PUT_MODE to change the mode of
20156 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
20157 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
20158 on SHmedia using GENERAL_REGs.
20159 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
20160 bltu_media_i): Fix reversion of conditions.
20161 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
20162 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
20163 * config/sh/sh.c (output_far_jump): Save r13 in macl.
20164 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
20165 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
20166 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
20167 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
20168 (GCC_nested_trampoline): Likewise.
20169 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
20170 * config/sh/sh.c (gen_datalabel_ref): Define.
20171 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
20172 (INITIALIZE_TRAMPOLINE): Likewise.
20173 (TRAMPOLINE_ADJUST_ADDRESS): Define.
20174 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
20175 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
20176 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
20177 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
20178 (ic_invalidate): Adjust for SH5.
20179 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
20180 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
20181 _nested_trampoline.
20182 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
20183 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
20184 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
20185 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
20186 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
20187 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
20188 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
20189 * config/sh/sh.c (target_reg_operand): Match only target-branch
20190 registers and pseudos that aren't virtual registers.
20191 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
20192 Copy operands that don't match target_reg_operand to pseudos.
20193 (call_media, call_value_media, sibcall_media): Use
20194 target_reg_operand instead of target_operand.
20195 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
20196 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
20197 * config/sh/sh.c (target_reg_operand): Match hardware registers
20198 other than branch-target registers.
20199 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
20200 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
20201 (fpscr_values) [SH5 == 32]: Define.
20202 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
20203 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
20204 Handle function addresses coming in SUBREGs.
20205 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
20206 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
20207 shcompact_return_trampoline): Use datalabel where appropriate.
20208 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
20209 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
20210 general-purpose register to copy one branch-target register to
20212 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
20213 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
20214 SYMBOL_REFs with VOIDmode.
20215 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
20216 bltu_media_i): New insns.
20217 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
20218 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
20219 (INIT_CUMULATIVE_ARGS): Likewise.
20220 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
20221 * machmode.def (V16SFmode): New mode.
20222 * c-common.c (type_for_mode): Support V2SF and V16SF.
20223 * tree.c (build_common_tree_nodes_2): Likewise.
20224 * tree.h (tree_index): Likewise.
20225 * calls.c (emit_call_1): Take args_so_far. Adjust all
20226 callers. Introduce CALL_POPS_ARGS.
20227 * tm.texi (CALL_POPS_ARGS): Document.
20228 * config/sh/crt1.asm: Implement in SHmedia mode.
20229 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
20230 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
20231 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
20232 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
20233 Implement divsi and udivsi in SHmedia mode. Introduce
20234 SHcompact trampolines.
20235 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
20237 (regno_reg_class): Rewrite.
20238 (fp_reg_names): Remove.
20239 (sh_register_names, sh_additional_register_names): New.
20240 (print_operand): Added `u'. Support SUBREGs in addresses.
20241 Add parentheses around shifted CONSTs.
20242 (output_file_start): Output .mode and .abi directives.
20243 (shiftcosts, addsubcosts, multcosts): Adjust.
20244 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
20245 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
20246 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
20247 bytes, not registers. Take into account the need for the
20248 SHcompact incoming args trampoline. Adjust all callers.
20249 (sh_expand_prologue): Take stack_regs into account. Call
20250 incoming args trampoline. Keep stack aligned as per SH5 ABI.
20251 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
20252 stack aligned as per SH5 ABI.
20253 (sh_builtin_saveregs): Support SH5 ABI.
20254 (sh_build_va_list, sh_va_start): Likewise.
20255 (initial_elimination_offset): Take alignment into account.
20256 Compute location of PR according to the SH5 stack frame.
20257 (arith_reg_operand): Reject branch-target registers.
20258 (shmedia_6bit_operand): New.
20259 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
20260 (target_reg_operand): Match DImode only. Accept SUBREGs.
20261 (target_operand): New.
20262 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
20263 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
20264 SIBCALL_REGS for SHmedia.
20265 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
20266 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
20267 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
20268 (TARGET_SWITCHES): New SH5 flags.
20269 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
20270 VALID_REGISTER_P to disable unsupported registers.
20271 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
20272 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
20273 (FUNCTION_ARG_PADDING): Define.
20274 (FASTEST_ALIGNMENT): Adjust.
20275 (SH_REGISTER_NAMES_INITIALIZER): New.
20276 (sh_register_names): Declare.
20277 (DEBUG_REGISTER_NAMES): Define.
20278 (REGISTER_NAMES): Define based on sh_register_names.
20279 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
20280 (sh_additional_register_names): Declare.
20281 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
20282 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
20283 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
20284 (REGISTER_NATURAL_MODE): Define.
20285 (FIRST_PSEUDO_REGISTER): Adjust.
20286 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
20287 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
20288 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
20289 (VECTOR_MODE_SUPPORTED_P): Define.
20290 (REG_CLASS_CONTENTS): Adjust.
20291 (SMALL_REGISTER_CLASSES): Adjust.
20292 (REG_ALLOC_ORDER): Adjust.
20293 (INDEX_REG_CLASS): Adjust.
20294 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
20295 (CONST_OK_FOR_LETTER_P): Adjust.
20296 (PREFERRED_RELOAD_CLASS): Adjust.
20297 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
20298 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
20299 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
20300 (FIRST_FP_PARM_REG): Adjust.
20301 (CALL_POPS_ARGS): Define.
20302 (FUNCTION_ARG_REGNO_P): Adjust.
20303 (struct sh_args): New fields.
20304 (GET_SH_ARG_CLASS): Adjust.
20305 (INIT_CUMULATIVE_ARGS): Adjust.
20306 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
20307 (FUNCTION_ARG_ADVANCE): Adjust.
20308 (FUNCTION_ARG): Adjust.
20309 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
20310 (FUNCTION_ARG_CALLEE_COPIES): Define.
20311 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
20312 (STRICT_ARGUMENT_NAMING): Define.
20313 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
20314 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
20315 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
20316 (SETUP_INCOMING_VARARGS): Adjust.
20317 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
20318 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
20319 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
20320 (SUBREG_OK_FOR_INDEX_P): Adjust.
20321 (EXTRA_CONSTRAINT_S): Update.
20322 (EXTRA_CONSTRAINT_T): New.
20323 (EXTRA_CONSTRAINT): Adjust.
20324 (GO_IF_LEGITIMATE_INDEX): Adjust.
20325 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
20326 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
20327 (MOVE_MAX): Adjust.
20328 (MAX_MOVE_MAX): Define.
20330 (CONST_COSTS): Adjust.
20331 (REGISTER_MOVE_COST): Adjust.
20332 (BRANCH_COST): Adjust.
20333 (TEXT_SECTION_ASM_OP): Adjust.
20334 (DBX_REGISTER_NUMBER): Adjust.
20335 (ASM_OUTPUT_DOUBLE_INT): New.
20336 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
20337 (PREDICATE_CODES): Adjust.
20338 (PROMOTE_MODE): Adjust.
20339 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
20340 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
20341 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
20342 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
20343 (DR0_REG, DR2_REG, DR4_REG): Renumber.
20344 (TR0_REG, TR1_REG, TR2_REG): New.
20345 (XD0_REG): Renumber.
20346 (UNSPEC_COMPACT_ARGS): New.
20347 (type): Added pt and ptabs.
20348 (length): Default to 4 on SHmedia. Default pt length to 12
20349 and 20 on SHmedia32 and SHmedia64, respectively.
20350 (pt): New function unit.
20351 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
20352 Add whitespace between operands of SHmedia instructions.
20354 (adddi3_media, addsi3_media): Adjust constraints.
20355 (subsi3) [SHmedia]: Force operand 1 into a register.
20356 (udivsi3_i1_media, udivsi3_i4_media): New.
20357 (udivsi3): Support SHmedia.
20358 (divsi3_i1_media, divsi3_i4_media): New.
20359 (divsi3): Support SHmedia.
20360 (anddi3, iordi3, xordi3): Adjust constraints.
20361 (zero_extendhidi2, zero_extendqidi2): New.
20362 (extendsidi2, extendhidi2, extendqidi2): New.
20363 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
20364 (pop_e, pop_fpul, pop_4): Likewise.
20365 (movsi_media): Support FP and BT registers.
20366 (movsi_media_nofpu): New. Adjust splits to DImode.
20367 (lduw, ldub): Renamed to zero_extend* above.
20368 (movqi_media): Fix typo.
20369 (movdi_media): Support FP and BT registers.
20370 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
20371 (movdi_const_32bit): New.
20372 (shori_media): Require immediate operand. Use `u' for output.
20373 (movdf_media, movsf_media): Simplified.
20374 (movdf_media_nofpu, movsf_media_nofpu): New.
20375 (movdf, movsf): Adjust
20376 (movv2sf, movv2sf, movv16sf): New.
20377 (beq_media, beq_media_i): Adjust constraints. Don't use
20378 scratch BT register.
20379 (bne_media, bne_media_i): Likewise.
20380 (bgt_media, bgt_media_i): Likewise.
20381 (bge_media, bge_media_i): Likewise.
20382 (bgtu_media, bgtu_media_i): Likewise.
20383 (bgeu_media, bgeu_media_i): Likewise.
20384 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
20385 bunordered): Emit jump insn. Force operands to registers when
20387 (jump_media, jump): Simplify.
20388 (call_compact, call_compact_rettramp): New.
20389 (call_value_compact, call_value_compact_rettramp): New.
20390 (call_media, call_value_media): Simplify.
20391 (sibcall_compact, sibcall_media): New.
20392 (call, call_value): Adjust for SHmedia and SHcompact.
20393 (sibcall, sibcall_value, untyped_call): Likewise.
20394 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
20395 (indirect_jump): Adjust for SHmedia.
20396 (casesi_jump_media): New.
20397 (nop): Re-enable for SHmedia.
20398 (call_site): Restrict to SH1.
20399 (casesi): Adjust for SHmedia.
20400 (casesi_shift_media, casesi_load_media): New.
20401 (return): Explicitly use PR register. Call return trampoline
20403 (return_i): Explicitly use PR register.
20404 (shcompact_return_tramp, shcompact_return_tramp_i): New.
20405 (return_media): Adjust.
20406 (shcompact_incoming_args): New.
20407 (epilogue): Adjust.
20408 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
20409 (movstrsi): Disable on SH5.
20410 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
20411 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
20412 (subsf3, subsf3_media): Likewise.
20413 (mulsf3, mulsf3_media, mac_media): Likewise.
20414 (divsf3, divsf3_media): Likewise.
20415 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
20416 (floatsisf2, fux_truncsfsi2): Likewise.
20417 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
20419 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
20420 (cmpunsf_media, cmpsf): Likewise.
20421 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
20422 (abssf2, abssf2_media): Likewise.
20423 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
20424 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
20425 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
20426 (floatsidf2, fix_truncdfsi2): Likewise.
20427 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
20429 (cmpeqdf_media, cmpgtdf_media): Likewise.
20430 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
20431 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
20432 (absdf2, absdf2_media): Likewise.
20433 (extendsfdf2, extendsfdf2_media): Likewise.
20434 (truncsfdf2, truncsfdf2_media): Likewise.
20435 * config/sh/sh64.h: New file.
20436 * config/sh/t-sh64: New file.
20437 * config/sh/shmedia.h: New file.
20438 * config/sh/ushmedia.h: New file.
20439 * config/sh/sshmedia.h: New file.
20440 * configure.in: Added sh64-*-elf.
20441 * configure: Rebuilt.
20442 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
20443 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
20444 (reg_class_from_letter): Use `b' for TARGET_REGS.
20445 (print_operand): Support `%M', `%m', `AND' and
20446 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
20447 (andcosts): Adjust for SHmedia.
20448 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
20450 (target_reg_operand): New function.
20451 * config/sh/sh-protos.h (target_reg_operand): Declare.
20452 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
20453 FP registers on SH5.
20454 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
20456 (TARGET_REGISTER_P): New macro.
20457 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
20458 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
20459 (EXTRA_CONSTRAINT_S): New macro.
20460 (EXTRA_CONSTRAINT): Adjust.
20461 (FLOAT_TYPE_SIZE): Define to 32.
20462 (Pmode): DImode on SHmedia.
20463 (CONST_COSTS): Adjust for SHmedia literals.
20464 (PREDICATE_CODES): Added target_reg_operand.
20465 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
20466 * config/sh/sh.md: Remove all attrs from SHmedia insns.
20467 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
20468 (cmpdi): Accept SHmedia.
20469 (movdicc_false, movdicc_true): New insns.
20470 (movdicc): New expand.
20471 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
20473 (addsi3_media): Match `S' constraint.
20474 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
20475 (negdi2): Expand for SHmedia.
20476 (one_cmpldi2): New expand.
20477 (zero_extendsidi2): Change from expand to insn.
20478 (extendsidi2): Add constraints.
20479 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
20480 LD/ST address. Fix SI immediate loading split.
20481 (movhi_media, movqi_media, lduw, ldub): New insns.
20482 (movhi, movqi): Accept SHmedia.
20483 (shori_media, movdi_media): Relax input constraints. Split
20484 symbolic constants.
20485 (movdf_media, movsf_media): New insn. New split to movdi.
20486 (movdf, movsf): Match on SHmedia.
20487 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
20488 bgeu_media): New insns and splits. New insns with `_i' suffix.
20489 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
20490 (bunordered): New expand.
20491 (jump_compact): Renamed from `jump'.
20492 (jump_media): New insn.
20493 (jump): New expand.
20494 (call_media, call_value_media): New insns.
20495 (call, call_value): Adjust.
20496 (indirect_jump_compact): Renamed from `indirect_jump'.
20497 (indirect_jump_media): New insn.
20498 (indirect_jump): New expand.
20499 (untyped_call, return): Accept SHmedia.
20500 (return_media): New insn.
20501 (prologue, epilogue, blockage): Accept SHmedia.
20502 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
20503 (sunordered): New expand.
20504 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
20505 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
20506 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
20507 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
20508 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
20509 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
20510 abssf2_media): New insns.
20511 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
20512 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
20513 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
20514 floatdidf2, floatsidf2_media, fix_truncdfdi2,
20515 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
20516 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
20517 absdf2_media): New insns.
20518 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
20519 (extendsfdf2_media, truncdfsf2_media): New insns.
20520 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
20521 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
20522 * config/sh/sh.h (CONST_OK_FOR_J): Document.
20523 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
20524 * config/sh/sh.md (adddi3): New expand.
20525 (adddi3_media, adddi3z_media): New insns.
20526 (adddi3_compact): Renamed from adddi3.
20527 (addsi3_media): Use add.l r63 to add constant zero.
20528 (subdi3): New expand.
20529 (subdi3_media): New insn.
20530 (subdi3_compact): Renamed from subdi3.
20531 (mulsidi3): New expand.
20532 (mulsidi3_media): New insn.
20533 (mulsidi3_compact): Renamed from mulsidi3.
20534 (umulsidi3): New expand.
20535 (umulsidi3_media): New insn.
20536 (umulsidi3_compact): Renamed from umulsidi3.
20537 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
20538 (ashlsi3, ashrsi3, lshrsi3): Use them.
20539 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
20540 (ashldi3, ashrdi3, lshrdi3): Use them.
20541 (zero_extendsidi2): New expand.
20542 (extendsidi2): New insn.
20543 (movsi_media): New insn. Split to movdi to load constants.
20544 (movsi): Enable for shmedia.
20545 (movdi_media): New insn. Use shori_media to load wide constants.
20546 (short_media): New insn.
20547 (movdi): Enable for shmedia.
20548 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
20549 * config/sh/sh.h (CPP_SPEC): Added `m5'.
20550 (SUBTARGET_CPP_SPEC): Added `!m5'.
20551 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
20552 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
20553 to all other SH variants.
20554 (TARGET_DEFAULT): Set to SH1_BIT.
20555 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
20556 (BITS_PER_WORD): Raise to 64 on shmedia.
20557 (MAX_BITS_PER_WORD): Change to 64.
20558 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
20559 (INT_TYPE_SIZE): Keep as 32.
20560 (UNITS_PER_WORD): Raise to 8 on shmedia.
20561 (MIN_UNITS_PER_WORD): Keep as 4.
20562 (POINTER_SIZE): Raise to 64 on shmedia.
20563 (CONST_OK_FOR_J): New macro.
20564 (CONST_OK_FOR_LETTER_P): Use it.
20565 (processor_type): Add PROCESSOR_SH5.
20566 * config/sh/sh.md: Conditionalize all expands, insns and
20567 splits to TARGET_SH1.
20569 (addsi3_compact): Renamed from...
20570 (addsi3): Now an expand.
20571 (addsi3_media, subsi3_media): New insns.
20572 (subsi3): Don't negate constants with SHmedia.
20574 * hooks.c: New file.
20575 * hooks.h: New file.
20576 * Makefile.in (HOOKS_H): New.
20577 (TARGET_DEF_H): Added $(HOOKS_H).
20578 (OBJS): Added hooks.o.
20579 (cfgcleanup.o, bb-reorder.o): Added target.h.
20580 (hooks.o): Added dependencies.
20581 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
20582 (TARGET_INITIALIZER): this.
20583 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
20584 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
20585 * bb-reorder.c: Include target.h.
20586 (reorder_basic_blocks): Skip if cannot modify jumps.
20587 * cfgcleanup.c: Include target.h.
20588 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
20590 2002-02-08 Chris Demetriou <cgd@broadcom.com>
20592 * config/mips/mips.md (casesi_internal, casesi_internal_di):
20593 Protect jump delay slot instructions with .set noreorder and
20596 2002-02-08 Chris Demetriou <cgd@broadcom.com>
20598 * config/mips/mips.md (casesi_internal_di): Calculate
20599 the index into the target offset table correctly.
20601 2002-02-08 Richard Henderson <rth@redhat.com>
20603 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
20604 * final.c (output_addr_const): Accept and discard SUBREG.
20605 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
20606 mark them unknown instead.
20607 (simplify_subtraction): Handle RTX_UNKNOWN.
20608 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
20610 2002-02-08 David Edelsohn <edelsohn@gnu.org>
20612 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
20614 2002-02-08 Richard Henderson <rth@redhat.com>
20616 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
20618 2002-02-08 Andreas Jaeger <aj@suse.de>
20620 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
20621 * config/i386/t-linux64: New file.
20623 2002-02-08 Jakub Jelinek <jakub@redhat.com>
20625 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
20626 * c-parse.in (compstmt): Clear last_expr_type.
20628 2002-02-07 Richard Henderson <rth@redhat.com>
20630 * loop.c (strength_reduce): Sink final_value when not
20633 2002-02-07 David O'Brien <obrien@FreeBSD.org>
20635 * config/sparc/freebsd.h: Fix mismatched spec {.
20637 2002-02-07 Richard Henderson <rth@redhat.com>
20639 * cfgrtl.c: Include recog.h and insn-config.h.
20640 (keep_with_call_p): Fix general_operand invocation.
20641 * Makefile.in (cfgrtl.o): Update dependencies.
20643 2002-02-07 Kazu Hirata <kazu@hxi.com>
20645 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
20646 comment. Accept HImode only if TARGET_H8300.
20648 2002-02-07 Eric Christopher <echristo@redhat.com>
20650 * config/mips/crtn.asm: Cleanup #ifdefs.
20652 2002-02-07 Eric Christopher <echristo@redhat.com>
20654 * config/mips/crti.asm: Add changes for mips16. mips16 uses
20655 register 7 as RA instead of $31.
20656 * config/mips/crtn.asm: Ditto.
20657 * config/mips/mips.c (mips_move_2words): Add case for
20658 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
20659 (compute_frame_size): Fix typo.
20660 (save_restore_insns): Ditto. Make documentation about using
20661 register $7 as return register more precise.
20662 (mips_expand_epilogue): Fix comment. Add code to work around not
20663 being able to add to the stack pointer directly.
20664 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
20665 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
20668 2002-02-07 Tom Rix <trix@redhat.com>
20670 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
20671 immediates in ldu and stdu DS opcode field.
20672 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
20673 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
20674 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
20676 2002-02-07 Jeff Sturm <jsturm@one-point.com>
20678 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
20679 offset for stack bias.
20681 2002-02-07 H.J. Lu <hjl@gnu.org>
20683 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
20685 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
20687 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
20689 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
20691 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
20692 * i386.c (x86_order_regs_for_local_alloc): New global function.
20693 * i386.h (REG_ALLOC_ORDER): CLeanup.
20694 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
20696 2002-02-07 Richard Henderson <rth@redhat.com>
20698 PR optimization/2463
20699 * alias.c (find_base_value): Recall base values for fixed hard regs.
20700 * loop.c (loop_regs_update): Don't use single_set on non-insns.
20702 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
20704 * config/mips/mips.md (define_delay) [mips16]: Adjust required
20707 2002-02-06 Richard Henderson <rth@redhat.com>
20710 * stmt.c (resolve_operand_name_1): Take more care with mixed
20711 named and unnamed operands.
20713 2002-02-06 Janis Johnson <janis187@us.ibm.com>
20714 Jan Hubicka <jh@suse.cz>
20716 * loop.c (remove_constant_addition): Avoid clobbering a shared
20719 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
20721 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
20722 * config/s390/t-linux64: New file.
20723 * config/s390/libgcc-glibc.ver: New file.
20725 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
20727 * config/s390/linux64.h: Delete file.
20728 * config/s390/s390x.h: New file.
20729 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
20730 as target header file.
20731 * config/s390/linux.h (TARGET_VERSION): Define depending on
20732 DEFAULT_TARGET_64BIT.
20733 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
20734 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
20735 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
20736 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
20737 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
20738 (EXTRA_SPEC): New define.
20739 * config/s390/s390.h (TARGET_VERSION): Define depending on
20740 DEFAULT_TARGET_64BIT.
20741 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
20743 2002-02-06 Jason Merrill <jason@redhat.com>
20745 * c-decl.c (finish_function): Warn about a non-void function with
20746 no return statement and no abnormal exit.
20747 (current_function_returns_abnormally): New variable.
20748 (start_function): Clear it.
20749 (struct c_language_function): Add returns_abnormally.
20750 (push_c_function_context): Save it.
20751 (pop_c_function_context): Restore it.
20752 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
20753 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
20754 an explicit return type.
20755 * c-tree.h: Declare current_function_returns_abnormally.
20756 (C_FUNCTION_IMPLICIT_INT): New macro.
20757 * c-typeck.c (build_function_call): Set it.
20758 (c_expand_return): Set current_function_returns_value even if the
20759 value is erroneous.
20761 2002-02-06 Jakub Jelinek <jakub@redhat.com>
20764 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
20765 unsafe for reevaluation.
20767 2002-02-06 Jakub Jelinek <jakub@redhat.com>
20770 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
20771 EXPR_STMT, but COMPOUND_STMT, recurse into it.
20773 2002-02-06 Richard Henderson <rth@redhat.com>
20775 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
20776 be a general_operand. Dest for function value must be a pseudo.
20778 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
20780 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
20781 as SYMBOL_REFs from the constant pool.
20783 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
20785 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
20786 passed by invisible reference.
20788 2002-02-05 Richard Henderson <rth@redhat.com>
20790 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
20792 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
20794 Implement using "base addresses" in insn operands as default.
20795 * config/mmix/mmix.c (mmix_conditional_register_usage): if
20796 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
20797 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
20798 used to read the rtx value.
20799 (mmix_target_asm_function_epilogue): Fix spacing.
20800 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
20801 (mmix_legitimate_address): Ditto.
20802 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
20803 should be loaded with a GETA insn. Don't allocate needless extra
20804 char for nul termination and fix misleading comment.
20805 (mmix_print_operand_address): Handle constants if
20806 TARGET_BASE_ADDRESSES.
20807 (mmix_output_register_setting): Use base addressing if
20808 TARGET_BASE_ADDRESSES and the number of insns is 3.
20809 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
20810 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
20811 to use R as constraint, add LDA to match s.
20812 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
20813 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
20814 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
20815 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
20816 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
20817 order with other fixed registers.
20818 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
20819 other parameter/call-clobbered registers.
20820 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
20821 -mbase-addresses, -mno-base-addresses.
20822 (MMIX Options): Ditto.
20824 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
20826 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
20828 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
20830 * config/rs6000/altivec.h: Change elem to _S_elem.
20832 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
20834 * config/netbsd.h (WCHAR_TYPE): Define.
20835 (WCHAR_TYPE_SIZE): Ditto.
20836 (WINT_TYPE): Ditto.
20837 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
20838 (WCHAR_UNSIGNED): Ditto.
20839 (WCHAR_TYPE_SIZE): Ditto.
20840 (WINT_TYPE): Ditto.
20841 * config/arm/netbsd.h: Likewise.
20842 * config/i386/netbsd-elf.h: Likewise.
20843 * config/i386/netbsd.h: Likewise.
20844 * config/m68k/netbsd-elf.h: Likewise.
20845 * config/m68k/netbsd.h: Likewise.
20846 * config/ns32k/netbsd.h: Likewise.
20847 * config/sparc/netbsd.h: Likewise.
20848 * config/vax/netbsd.: Likewise.
20850 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
20852 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
20853 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
20854 (TARGET_INITIALIZER): this.
20855 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
20856 (BITFIELD_NBYTES_LIMITED): Markup fix.
20857 * tree.h (default_ms_bitfield_layout_p): Declare.
20858 (record_layout_info): Added prev_field.
20859 * tree.c (default_ms_bitfield_layout_p): New fn.
20860 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
20861 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
20862 * stor-layout.c: Include target.h.
20863 (start_record_layout): Initialize prev_field.
20864 (place_field): Handle MS bit-field layout, and disregard
20865 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
20866 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
20867 * Makefile.in (stor-layout.o): Adjust dependencies.
20869 2002-02-05 Jason Merrill <jason@redhat.com>
20871 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
20873 2002-02-05 Andreas Jaeger <aj@suse.de>
20875 * crtstuff.c: Fix comments.
20877 2002-02-05 Richard Henderson <rth@redhat.com>
20880 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
20881 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
20884 * config/mips/mips.c (function_arg): Handle TImode.
20885 (function_arg_advance): Likewise.
20887 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
20889 * config/rs6000/altivec.h (vec_step_help): Rename to
20892 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
20894 * config/rs6000/altivec.h: Fix typos.
20896 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
20898 * config/arm/netbsd.h: Correct a comment.
20900 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
20902 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
20903 building void typed builtins.
20905 * config/rs6000/altivec.h (vec_ld*): Fix typos.
20906 (vec_step): Implement for C++.
20908 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20910 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
20912 2002-02-04 Richard Henderson <rth@redhat.com>
20914 * combine.c (nonzero_bits): Re-introduce special case for
20915 sp/fp/ap wrt REGNO_POINTER_ALIGN.
20917 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
20919 * doc/extend.texi: Warn about unsupported usage of altivec
20922 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
20923 (altivec_predicate_*): New.
20925 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
20926 Add C++ version of vec_*() functions.
20928 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
20929 (bdesc_2arg): Remove altivec predicates.
20930 (altivec_expand_builtin): Handle predicates.
20931 (altivec_init_builtins): Handle predicates.
20932 (altivec_expand_predicate_builtin): New.
20934 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
20936 * pa.c (DO_FRAME_NOTES): Move forward.
20937 (store_reg): Revise handling of frame notes.
20938 (load_reg): Likewise.
20939 (set_reg_plus_d): Likewise.
20940 (hppa_expand_prologue): Likewise.
20941 (hppa_expand_epilogue): Likewise.
20943 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
20945 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
20947 2002-02-04 Jakub Jelinek <jakub@redhat.com>
20949 PR c/4475, c++/3780:
20950 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
20951 * c-common.h (SWITCH_TYPE): Define.
20952 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
20953 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
20954 Rename spareness variable to sparseness.
20955 (expand_end_case_type): Renamed from expand_end_case, use orig_type
20956 if non-NULL instead of TREE_TYPE (orig_index).
20957 * tree.h (expand_end_case_type): Renamed from expand_end_case.
20958 (expand_end_case): Define using expand_end_case_type.
20959 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
20960 to expand_end_case_type.
20961 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
20963 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
20965 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
20966 (BIGGEST_ALIGNMENT): Change to 128.
20968 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
20970 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
20972 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
20974 * pa.md (call_internal_reg_64bit): Remove unused variable.
20976 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
20978 * config/arm/arm.h (machine_function): Add uses_anonymous_args
20980 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
20981 * config/arm/arm.c (current_function_anonymous_args): Delete,
20982 replace uses with cfun->machine->uses_anonymous_args.
20983 (arm_reorg): Do not reset uses_anonymous_args.
20985 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
20986 any geenral register.
20988 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
20990 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
20993 2002-02-04 Richard Henderson <rth@redhat.com>
20995 * combine.c (force_to_mode): Remove STACK_BIAS code.
20996 (nonzero_bits): Likewise. Replace sp/fp special case with
20997 REGNO_POINTER_ALIGN.
20999 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
21000 (HARD_FRAME_POINTER_REGNUM): New.
21001 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
21002 (FIXED_REGS, CALL_USED_REGS): Update.
21003 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
21004 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
21005 (HARD_REGNO_NREGS): Update for SFP.
21006 (STACK_POINTER_OFFSET): Include bias here ...
21007 (FIRST_PARM_OFFSET): ... not here.
21008 (STACK_BIAS): Remove.
21009 (INIT_EXPANDERS): New.
21010 (STARTING_FRAME_OFFSET): Do not include bias.
21011 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
21012 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
21013 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
21014 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
21015 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
21016 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
21017 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
21018 (MUST_SAVE_REGISTER): Likewise.
21019 (sparc_flat_function_prologue): Likewise.
21020 (sparc_flat_function_epilogue): Likewise.
21021 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
21022 (sparc_init_modes): SFP is GENERAL_REGS.
21023 (sparc_builtin_saveregs): SFP does not have bias applied.
21025 2002-02-04 Richard Henderson <rth@redhat.com>
21027 * config/alpha/alpha.c (current_function_is_thunk): Don't check
21028 current_function_is_thunk.
21029 (alpha_sa_mask): Distinguish between current_function_is_thunk
21030 called from ASM_OUTPUT_MI_THUNK and not.
21031 (alpha_does_function_need_gp): Thunks always need gp.
21032 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
21033 (alpha_output_mi_thunk_osf): New.
21034 * config/alpha/alpha-protos.h: Update.
21035 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
21037 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
21039 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
21040 function types, not when they're taken away.
21042 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
21044 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
21045 CODE_LABEL and jump table when replacing a table jump with a
21048 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
21050 * config/s390/s390-protos.h (legitimize_la_operand,
21051 s390_secondary_input_reload_class, s390_plus_operand,
21052 s390_expand_plus_operand): Add prototypes.
21054 config/s390/s390.c (s390_secondary_input_reload_class,
21055 s390_plus_operand, s390_expand_plus_operand): New functions.
21057 (struct s390_address): New member 'pointer'.
21058 (s390_decompose_address): Compute it.
21059 (legitimate_la_operand_p): Use it.
21060 (legitimize_la_operand): New function.
21061 (movti, movdi, movdf splitters): Call it.
21063 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
21064 (PREDICATE_CODES): Add s390_plus_operand.
21066 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
21067 (la_ccclobber): Allow GENERAL_REGS as output operand.
21069 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
21070 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
21071 (*la_64, *la_31, reload_indi, reload_insi): ... these.
21073 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
21075 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
21076 register names for regular asm () construct.
21078 2002-02-04 Jakub Jelinek <jakub@redhat.com>
21080 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
21083 2002-02-04 Jakub Jelinek <jakub@redhat.com>
21085 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
21088 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
21090 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
21091 constant pool to be identical by string address and index.
21093 2002-02-04 Anthony Green <green@redhat.com>
21095 * output.h (SECTION_OVERRIDE): Define.
21096 * varasm.c (named_section): Obey SECTION_OVERRIDE.
21098 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
21100 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
21101 by existing arm*-*-netbsd* (a.out) target.
21102 (ns32k-*-netbsdelf*): Likewise.
21103 (sparc-*-netbsdelf*): Likewise.
21104 (vax-*-netbsdelf*): Likewise.
21106 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
21108 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
21109 headers and libobjc headers.
21111 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
21113 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
21114 (_mingw.h): Remove duplicate include.
21116 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
21118 * config.gcc: Set cpu_type to m68k for 68010, as well.
21119 (m68010-*-netbsdelf*): New...
21120 (m68k*-*-netbsdelf*): ...targets.
21121 * config/m68k/netbsd-elf.h: New file.
21123 2002-02-02 Kazu Hirata <kazu@hxi.com>
21125 * config/h8300/h8300.c (hand_list): Move inside function_arg.
21127 2002-02-02 Kazu Hirata <kazu@hxi.com>
21129 * config/h8300/h8300.c (h8_push_ops): Move inside
21131 (h8_pop_ops): Likewise.
21132 (h8_move_ops): Likewise.
21134 2002-02-02 Kazu Hirata <kazu@hxi.com>
21136 * config/h8300/h8300.c (os_task): Make it static.
21137 (monitor): Likewise.
21138 (pragma_saveall): Likewise.
21140 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
21142 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
21143 constant is a valid sign-extension for Pmode.
21145 2002-02-02 Kazu Hirata <kazu@hxi.com>
21147 * config/h8300/h8300.c: Fix formatting.
21149 2002-02-02 Kazu Hirata <kazu@hxi.com>
21151 * config/h8300/h8300.md: Fix formatting.
21153 2002-02-02 Kazu Hirata <kazu@hxi.com>
21155 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
21156 predicates of operands[1]. Split the patterns for each
21159 2002-02-02 Kazu Hirata <kazu@hxi.com>
21161 * config/h8300/h8300.md (xor patterns): Tighten the predicates
21162 of operands[1] to register_operand.
21164 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
21166 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
21167 * cpphash.c (_cpp_init_hashtable): Similarly.
21168 * cppinit.c (cpp_create_reader): Default the signed_char flag.
21169 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
21170 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
21171 (cpp_handle_option): Handle the new options.
21172 * cpplex.c (cpp_interpret_charconst): Use new flag.
21173 * cpplib.h (struct cpp_options): New member signed_char.
21174 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
21175 (cpp_options): Handle -fsigned-char and -funsigned-char.
21176 (static_specs): Remove signed_char_spec.
21177 (do_spec1): Don't handle %c.
21178 * system.h: Poison SIGNED_CHAR_SPEC.
21179 * tradcif.y (yylex): Use flag_signed_char.
21180 * tradcpp.h (flag_signed_char): New.
21181 * tradcpp.c (flag_signed_char): New.
21182 (main): Handle new command-line options.
21183 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
21185 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
21186 * avr/avr.h: Remove old comments.
21187 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
21188 (CC1_SPEC): Pass -fsigned-char if -mic*.
21189 (SIGNED_CHAR_SPEC): Remove.
21191 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
21193 2002-02-01 Eric Christopher <echristo@redhat.com>
21195 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
21196 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
21197 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
21198 (ASM_OUTPUT_REG_POP): Ditto.
21200 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
21202 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
21205 2002-02-02 Jakub Jelinek <jakub@redhat.com>
21207 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
21209 2002-02-02 Jakub Jelinek <jakub@redhat.com>
21212 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
21215 2002-02-01 Janis Johnson <janis187@us.ibm.com>
21217 * cfganal.c: Include tm_p.h.
21218 (keep_with_call_p): Fix the test that determines if a register holds
21219 the return value of a call.
21221 2002-02-01 DJ Delorie <dj@redhat.com>
21223 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
21224 we are given conflicting registers, switch to the other one we
21225 had allocated for us.
21226 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
21227 as TImode so we know when the "other" register is available.
21229 2002-02-01 David O'Brien <obrien@FreeBSD.org>
21231 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
21234 2002-02-01 Janis Johnson <janis187@us.ibm.com>
21236 * cfganal.c (keep_with_call_p): New function.
21237 (flow_call_edges_add): Prevent splitting a block between a call and
21238 a single-set instruction that should be kept in the same block.
21240 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
21242 * doc/install.texi (avr): Update outdated URL.
21244 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
21246 * config/stormy16/stormy16.md (pushqi): New.
21250 (movhi): Remove stack operands.
21252 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
21253 nonimmediate_nonstack_operand.
21254 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
21256 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
21259 2002-01-31 Jason Merrill <jason@redhat.com>
21261 * Makefile.in (c-parse.c): Handle .output file.
21262 * objc/Make-lang.in (objc-parse.c): Likewise.
21264 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
21266 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
21267 the -me[lb] option is given. Don't output the default flag
21270 2002-01-31 Zack Weinberg <zack@codesourcery.com>
21272 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
21273 the primary source file; this has not been done yet.
21274 * c-decl.c (c_expand_body): Reset input_filename from
21275 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
21277 2002-01-31 Kazu Hirata <kazu@hxi.com>
21279 * rtlanal.c (subreg_regno_offset): Do not use
21280 SUBREG_REGNO_OFFSET.
21281 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
21282 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
21284 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
21286 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
21287 version rather than GNATS version in --version output.
21289 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
21291 * ifcvt.c (noce_process_if_block): Make a copy of the destination
21292 when copying back from a temporary.
21294 2002-01-30 Richard Henderson <rth@redhat.com>
21296 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
21297 and new_dest are the same.
21299 2002-01-30 Richard Henderson <rth@redhat.com>
21302 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
21303 * rtl.c (note_insn_name): Update.
21304 * emit-rtl.c (remove_unnecessary_notes): Kill it.
21305 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
21306 to perform loop rotation.
21307 (expand_exit_loop_top_cond): New.
21308 * tree.h (expand_exit_loop_top_cond): Declare it.
21309 * c-semantics.c (genrtl_while_stmt): Use it.
21310 (genrtl_for_stmt): Likewise.
21312 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
21314 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
21315 arguments to 64-bit boundaries on 64-bit ABIs.
21317 2002-01-30 Steve Ellcey <sje@cup.hp.com>
21319 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
21321 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
21323 * c-decl.c (grokdeclarator): Handle type being a typedef for an
21326 2002-01-30 David O'Brien <obrien@FreeBSD.org>
21328 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
21329 * config/sparc/sparc_bi.h: Remove file.
21330 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
21332 2002-01-30 Richard Henderson <rth@redhat.com>
21334 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
21336 2002-01-30 Zack Weinberg <zack@codesourcery.com>
21338 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
21340 2002-01-30 Jason Merrill <jason@redhat.com>
21342 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
21343 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
21344 (reg_save): Use DW_CFA_offset_extended_sf instead.
21346 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
21348 2002-01-29 Jakub Jelinek <jakub@redhat.com>
21350 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
21353 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
21355 * rs6000.md ("*call_value_local32"): Remove constraints.
21356 ("*call_value_local64"): Same.
21357 ("*call_value_indirect_nonlocal_aix32"): Same.
21358 ("*call_value_nonlocal_aix32"): Same.
21359 ("*call_value_indirect_nonlocal_aix64"): Same.
21360 ("*call_value_nonlocal_aix64"): Same.
21361 ("*call_value_nonlocal_sysv"): Same.
21363 2002-01-29 Richard Henderson <rth@redhat.com>
21365 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
21367 2002-01-29 Richard Henderson <rth@redhat.com>
21369 * expr.c (force_operand): Ignore flag_pic for detecting pic
21371 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
21372 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
21373 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
21374 instead of open-coded loop.
21375 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
21376 be fixed when in use.
21378 2002-01-29 Richard Henderson <rth@redhat.com>
21380 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
21381 * sched-rgn.c (propagate_deps): Update them.
21382 * sched-deps.c (sched_analyze_insn): Update them. Flush the
21383 clobbers list when either gets too long.
21385 2002-01-29 Jakub Jelinek <jakub@redhat.com>
21387 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
21388 and INDEX_REGS the same as GENERAL_REGS.
21389 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
21391 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
21393 * tree.c (build_nonstandard_integer_type): Correct prototype.
21395 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
21397 * config/s390/s390.md (movstrsico, movstrdix_64,
21398 movstrsix_31): Remove, replace by ...
21399 (movstrdi_short, movstrsi_short, movstrdi_long,
21400 movstrsi_long): ... these. New.
21401 (movstrdi, movstrsi): Adapt.
21403 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
21404 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
21405 Remove unnecessary CC clobber.
21406 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
21407 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
21409 (divmoddi4): Don't partially initialize TImode register.
21411 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
21413 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
21415 2002-01-29 Richard Henderson <rth@redhat.com>
21417 * flow.c (print_rtl_and_abort): Remove.
21418 (print_rtl_and_abort_fcn): Remove.
21419 (verify_local_live_at_start): Use dump_bb instead.
21420 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
21421 (verify_wide_reg_1): Return 2 on mode test failure.
21423 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
21425 PR c/3325, c/3326, c/2511, c/3347
21426 * c-decl.c (enum_decl_context): Remove BITFIELD.
21427 (grokdeclarator): Take bitfield width as an input.
21428 Ensure bitfields are given the correct type. Perform
21429 bitfield width validation with build_bitfield_integer_type
21430 rather than waiting for finish_struct.
21431 (grok_typename, grok_typename_in_parm_context, start_decl,
21432 push_parmdecl, grokfield, start_function): Update calls to
21434 (build_bitfield_integer_type): New function.
21435 (finish_struct): Move bitfield validation to grokdeclarator
21436 and build_bitfield_integer_type.
21437 * tree.c (build_nonstandard_integer_type): New function.
21438 * tree.h (build_nonstandard_integer_type): New prototype.
21440 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
21442 2002-01-29 Jakub Jelinek <jakub@redhat.com>
21445 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
21446 don't ignore unrecognized -W* options.
21447 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
21448 * cpplib.h (cpp_handle_option): Adjust prototype.
21449 * c-decl.c (c_decode_options): Pass 0 as last argument to
21453 * gcc.c (cpp_unique_options): Split from cpp_options.
21454 (cpp_options): Source cpp_unique_options.
21455 (default_compilers): Use cpp_unique_options instead of cpp_options
21456 when used together with cc1_options.
21457 (static_specs): Add cpp_unique_options.
21458 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
21459 when used together with cc1_options.
21461 2002-01-29 Kazu Hirata <kazu@hxi.com>
21463 * config/h8300/h8300-protos.h: Update the prototype of
21465 * config/h8300/h8300.c (output_a_shift): Remove an unused
21466 argument 'insn'. Remove redundant code.
21467 * config/h8300/h8300.md: Adust to the new prototype of
21470 2002-01-29 Kazu Hirata <kazu@hxi.com>
21472 * config/h8300/h8300-protos.h: Update the prototypes of
21473 emit_a_rotate and expand_a_rotate.
21474 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
21475 first argument to 'enum rtx_code'.
21476 (expand_a_rotate): Likewise.
21478 2002-01-28 Kazu Hirata <kazu@hxi.com>
21480 * config/h8300/h8300-protos.h: Update the prototype of
21482 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
21484 * config/h8300/h8300.md: Adjust to the new prototype.
21486 2002-01-28 Kazu Hirata <kazu@hxi.com>
21488 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
21491 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
21493 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
21494 is a fixed register before returning pic_offset_table_rtx.
21495 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
21496 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
21498 2002-01-28 Jason Merrill <jason@redhat.com>
21500 * dwarf2.h: Sync with src version.
21502 2002-01-28 Paul Koning <pkoning@equallogic.com>
21504 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
21505 BT_FN_VOID_PTR_VAR.
21506 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
21507 * doc/extend.texi (__builtin_prefetch): Update documentation:
21508 first argument is now const void ptr.
21510 2002-01-28 Kazu Hirata <kazu@hxi.com>
21512 * config/h8300/h8300-protos.h: Remove an unused prototype.
21514 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
21516 * toplev.c (lang_independent_init): Round up identifier size.
21518 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
21520 * config.gcc: Revert previous change.
21522 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
21524 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
21526 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
21528 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
21529 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
21530 other non-elf netbsd config frags.
21531 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
21532 collect2 will does that.
21533 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
21534 shared-lib frobbing will work.
21536 2002-01-28 Kazu Hirata <kazu@hxi.com>
21538 * config/h8300/h8300.h: Fix formatting.
21539 * config/h8300/h8300.md: Likewise.
21541 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
21543 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
21544 the old, removed AAA_standards fix.
21545 * fixinc/fixincl.x: Rebuilt.
21547 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
21549 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
21550 atexit call in crtbegin, hooked in after call to frame_dummy;
21551 register EH before registering __fini__start.
21553 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
21555 * config/rs6000/altivec.h: Remove spurious semicolons.
21557 2002-01-27 Kazu Hirata <kazu@hxi.com>
21559 * config/h8300/h8300.md: Replace dead bit extraction patterns
21560 with ones that work.
21562 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21564 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
21565 if not STRICT_ALIGNMENT.
21566 * rtl.h (MEM_ALIGN): Likewise.
21568 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
21570 * doc/invoke.texi (-fdump-translation-unit): Revert this
21571 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
21573 2002-01-27 Kazu Hirata <kazu@hxi.com>
21575 * config/h8300/h8300.md (define_constants): New.
21576 (anonymous patterns) Use defined constants appropriately.
21578 2002-01-27 Kazu Hirata <kazu@hxi.com>
21580 * config/h8300/h8300.c (function_arg): Remove redundant code.
21582 2002-01-26 Richard Henderson <rth@redhat.com>
21584 * sched-deps.c (reg_pending_uses_head): New.
21585 (reg_pending_barrier): Rename from reg_pending_sets_all.
21586 (find_insn_list): Don't mark inline.
21587 (find_insn_mem_list): Remove.
21588 (add_dependence_list, add_dependence_list_and_free): New.
21589 (flush_pending_lists): Replace only_write param with separate
21590 for_read and for_write parameters. Update all callers. Use
21591 add_dependence_list_and_free.
21592 (sched_analyze_1): Do not add reg dependencies here; just set
21593 the pending bits. Use add_dependence_list.
21594 (sched_analyze_2): Likewise.
21595 (sched_analyze_insn): Replace schedule_barrier_found with
21596 reg_pending_barrier. Add all dependencies for pending reg
21597 uses, sets, and clobbers.
21598 (sched_analyze): Don't add reg dependencies for calls, just
21599 set pending bits. Use regs_invalidated_by_call. Treat
21600 sched_before_next_call as a normal list, not a fake insn.
21601 (init_deps): No funny init for sched_before_next_call.
21602 (free_deps): Free pending mems lists. Don't zero reg_last.
21603 (init_deps_global): Init reg_pending_uses.
21604 (finish_deps_global): Free it.
21605 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
21606 (find_insn_mem_list): Remove.
21607 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
21608 (propagate_deps): Use them. Zero temp mem lists.
21610 2002-01-26 Richard Henderson <rth@redhat.com>
21612 * Makefile.in (CRTSTUFF_CFLAGS): New.
21613 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
21614 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
21615 crtstuff.c instead of alpha assembly version.
21616 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
21617 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
21618 not FORCE_{INIT,FINI}_SECTION_ALIGN.
21619 (__do_global_dtors_aux): Mark used.
21620 (frame_dummy, __do_global_ctors_aux): Mark used.
21621 (fini_dummy, init_dummy): Remove.
21623 * config/alpha/crtbegin.asm: Remove file.
21624 * config/alpha/crtend.asm: Remove file.
21625 * config/alpha/t-crtbe: Remove file.
21626 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
21627 (LINK_EH_SPEC): New.
21629 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
21630 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
21631 calling constructors.
21632 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
21634 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
21635 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
21636 CRT_END_INIT_DUMMY hack.
21637 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
21638 FORCE_{INIT,FINI}_SECTION_ALIGN.
21640 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
21641 FORCE_{INIT,FINI}_SECTION_ALIGN.
21643 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
21644 invocation sequence.
21645 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
21647 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
21648 (FORCE_CODE_SECTION_ALIGN): New.
21650 2002-01-26 Richard Henderson <rth@redhat.com>
21652 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
21654 2002-01-26 Richard Henderson <rth@redhat.com>
21656 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
21657 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
21659 2002-01-26 Kazu Hirata <kazu@hxi.com>
21661 * config/h8300/h8300.md: Remove bit extraction patterns that
21662 cannot be triggered.
21663 Restrict each bit extraction pattern to a variant on which the
21666 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
21668 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
21670 2002-01-26 Kazu Hirata <kazu@hxi.com>
21672 * config/h8300/h8300.md: Remove bit test patterns that cannot
21674 Restrict each bit test pattern to a variant on which the
21677 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21679 * builtins.c (expand_builtin_strncat): Remove redundant check for
21682 2002-01-25 David O'Brien <obrien@FreeBSD.org>
21684 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
21686 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
21689 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
21691 * dbxout.c (dbxout_init): Use assemble_name rather than just
21692 stripping off the first character.
21693 (dbxout_source_file): Likewise.
21695 2002-01-25 DJ Delorie <dj@redhat.com>
21697 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
21698 using rtx_equal_p, not by comparing pointers.
21700 2002-01-25 Steve Ellcey <sje@cup.hp.com>
21702 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
21703 for PIC_OFFSET_TABLE_REGNUM.
21704 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
21706 2002-01-25 David O'Brien <obrien@FreeBSD.org>
21708 * config.gcc (x86_64-*-freebsd*): New target.
21709 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
21711 (i[34567]86-*-freebsd*): Don't include svr4.h.
21712 * config/i386/freebsd64.h: New file.
21714 2002-01-25 Douglas B Rupp <rupp@gnat.com>
21716 * config/alpha/x-vms (version): Make static.
21718 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
21719 in previous checkin.
21721 * Makefile.in (install-headers-cp): New target.
21722 * config.gcc (alpha-dec-*vms*): Install headers with
21725 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
21727 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
21730 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21732 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
21733 of compare_tree_int.
21734 (expand_builtin_strncat): Likewise.
21735 * c-decl.c (finish_struct): Use tree_low_cst.
21736 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
21737 * tree.c (compare_tree_int): Likewise.
21739 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
21741 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
21742 adjustments even if they are implemented by more than two insns.
21744 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
21746 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
21747 * df.h (struct ref): Kill B.
21748 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
21750 * basic-block.h (PROP_EQUAL_NOTES): New flag.
21751 * flow.c (propagate_one_insn): Use it.
21752 (mark_used_regs): Handle NIL.
21754 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
21756 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
21759 2002-01-25 David Edelsohn <edelsohn@gnu.org>
21761 * rs6000.md (prefetch): Make address V4SI mode so that the address
21762 is restricted to legitimate form for instruction.
21764 2002-01-25 Bob Wilson <bob.wilson@acm.org>
21766 * doc/install.texi (xtensa-*-elf): New target.
21767 (xtensa-*-linux*): New target.
21768 * doc/contrib.texi: Add myself.
21770 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
21772 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
21773 purpose register to hold an SImode (or smaller) value.
21775 2002-01-25 Jakub Jelinek <jakub@redhat.com>
21777 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
21779 * crtstuff.c: Likewise.
21781 2002-01-25 Kazu Hirata <kazu@hxi.com>
21783 * config/h8300/h8300.md (negation patterns): Tighten
21784 predicates to register_operand.
21786 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
21788 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
21791 * builtins.c (expand_builtin_prefetch): Same.
21793 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
21795 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
21798 2002-01-24 Kazu Hirata <kazu@hxi.com>
21800 * config/h8300/h8300.c (print_operand): Remove support for
21801 operand character 'A'.
21802 * config/h8300/h8300.md (three anonymous patterns): Replace
21803 operand character 'A' with either 'T' or 'S'.
21805 2002-01-24 Kazu Hirata <kazu@hxi.com>
21807 * config/h8300/h8300.c (print_operand): Remove support for
21808 operand character 'U'.
21810 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
21812 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
21814 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
21816 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
21817 values to be assigned to the stack pointer.
21819 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
21821 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
21822 to const_double needs to be done right for big-endian systems.
21824 2002-01-24 Jason Merrill <jason@redhat.com>
21827 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
21828 to can_throw_internal.
21830 2002-01-23 Richard Henderson <rth@redhat.com>
21832 * fold-const.c (fold): Change UINT_MAX test to check vs precision
21833 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
21835 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
21837 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
21838 (symGOT2reg): Use them, then set as GOT value as unchanging.
21839 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
21840 as a temporary, if possible.
21841 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
21842 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
21844 2002-01-23 Kazu Hirata <kazu@hxi.com>
21846 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
21847 accept to accept 0x80 as operands[2].
21849 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
21851 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
21853 2002-01-23 Richard Henderson <rth@redhat.com>
21855 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
21857 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
21859 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
21860 (parmlist_or_identifiers_1): Verify that only a parmlist follows
21863 2002-01-23 Richard Henderson <rth@redhat.com>
21865 * expr.c (move_by_pieces_1): Extend size before negation.
21867 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
21868 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
21869 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
21870 * config/m68k/t-m68kelf: Likewise.
21872 2002-01-23 Bob Wilson <bob.wilson@acm.org>
21874 * config/xtensa/elf.h: New file.
21875 * config/xtensa/lib1funcs.asm: New file.
21876 * config/xtensa/lib2funcs.S: New file.
21877 * config/xtensa/linux.h: New file.
21878 * config/xtensa/t-xtensa: New file.
21879 * config/xtensa/xtensa-config.h: New file.
21880 * config/xtensa/xtensa-protos.h: New file.
21881 * config/xtensa/xtensa.c: New file.
21882 * config/xtensa/xtensa.h: New file.
21883 * config/xtensa/xtensa.md: New file.
21884 * config.gcc (xtensa-*-elf*): New target.
21885 (xtensa-*-linux*): New target.
21886 * cse.c (canon_hash): Compare rtx pointers instead of register
21887 numbers. This is required for the Xtensa port.
21888 * integrate.c (copy_insn_list): Handle case where the static
21889 chain is in memory and the memory address has to be copied to
21891 * doc/invoke.texi (Option Summary): Add Xtensa options.
21892 (Xtensa Options): New node.
21893 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
21895 2002-01-23 Zack Weinberg <zack@codesourcery.com>
21897 * diagnostic.c (internal_error): Do ICE suppression only
21898 when ENABLE_CHECKING is not defined.
21900 * c-typeck.c (require_complete_type): Return error_mark_node
21901 if type is error_mark_node.
21903 2002-01-23 Janis Johnson <janis187@us.ibm.com>
21905 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
21906 -Os and issue a warning.
21908 2002-01-23 Zack Weinberg <zack@codesourcery.com>
21910 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
21911 current (lack of) need for host configuration by hand.
21913 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
21914 references. Documentation of some target macros moved from
21915 hostconfig.texi to tm.texi.
21917 2002-01-23 Will Cohen <wcohen@redhat.com>
21919 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
21922 2002-01-23 Kazu Hirata <kazu@hxi.com>
21924 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
21927 2002-01-23 Jason Merrill <jason@redhat.com>
21929 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
21931 * function.c (assign_parms): Don't put args of inline functions
21932 into registers when not optimizing.
21934 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
21936 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
21937 (prologue_use): New pattern.
21938 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
21939 preference to gen_rtx_USE.
21940 (thumb_expand_prologue): Use gen_prologue_use in preference to
21942 (thumb_expand_epilogue): Use gen_prologue_use in preference to
21945 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
21947 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
21949 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
21952 * doc/extend.texi: Correct documentation of __alignof__.
21954 2002-01-22 Zack Weinberg <zack@codesourcery.com>
21956 * params.h: Rename arguments of DEFPARAM so that it will be
21957 recognized as a translation keyword.
21959 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
21961 * extend.texi: Document altivec functions.
21962 Fix N-bit adjectives in X86 builtin documentation.
21964 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
21966 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
21967 auto_inc_dec values.
21969 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
21971 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
21973 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
21975 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
21977 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
21979 2002-01-22 Richard Henderson <rth@redhat.com>
21981 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
21982 copy_insn not copy_rtx.
21984 2002-01-23 Alan Modra <amodra@bigpond.net.au>
21986 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
21987 "nonzero" as that might add "1" bits. Ensure "constop" is
21988 properly sign extened.
21989 (force_to_mode): Tweak for sign extended constop.
21991 2002-01-22 Richard Henderson <rth@redhat.com>
21993 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
21994 for_each_rtx instead of assuming we're already looking at the MEM.
21995 (split_small_symbolic_mem_operand): Likewise.
21996 * config/alpha/alpha.h (PREDICATE_CODES): Update.
21997 * config/alpha/alpha.md (small symbolic memory splitters): Update.
21999 2002-01-22 Richard Henderson <rth@redhat.com>
22001 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
22002 sequence number for the literal.
22003 (divmoddi_internal_er): Likewise.
22005 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
22008 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
22009 in LIBICONV variable.
22010 * configure: Regenerated.
22012 2002-01-22 Krister Walfridsson <cato@df.lth.se>
22014 * dependence.c (build_def_use): Remove array_idx.
22016 * dwarfout.c (last_filename): Remove.
22017 (output_compile_unit_die): Remove last_filename.
22019 2002-01-22 Roger Sayle <roger@eyesopen.com>
22020 Richard Henderson <rth@redhat.com>
22023 * fold-const.c (fold): Optimize unsigned comparisons against
22024 UINT_MAX (and similar unsigned constants).
22026 2002-01-22 Janis Johnson <janis187@us.ibm.com>
22028 * Makefile.in (loop.o): Depend on OPTABS_H.
22029 * loop.c (emit_prefetch_instructions): Check the prefetch operand
22030 against the predicate.
22033 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
22034 for the address operand.
22036 2002-01-22 Richard Henderson <rth@redhat.com>
22038 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
22040 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
22043 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
22044 preprocessor flags.
22046 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
22048 * config.gcc (x86_64-*-netbsd*): New target.
22049 * config/i386/netbsd64.h: New file.
22051 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
22053 * regrename.c (kill_value): Fix typo.
22055 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
22057 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
22059 * config/rs6000/rs6000.h: Same.
22061 * function.c (instantiate_virtual_regs): Remove
22062 STARTING_FRAME_PHASE.
22063 (assign_stack_local_1): Same.
22064 Calculate frame phase.
22066 2002-01-22 Nick Clifton <nickc@redhat.com>
22068 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
22069 variable declaration to outer scope in order to simplify
22071 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
22072 arm_hard_regno_mode_ok.
22073 * config/arm/arm-protos.h: Add a prototype for
22074 arm_hard_regno_mode_ok.
22075 * config/arm/arm.c (soft_df_operand): Remove now redundant
22076 check for DImode values using IP_REGNUM.
22077 (nonimmediate_soft_df_operand): Remove now redundant check for
22078 DImode values using IP_REGNUM.
22079 (arm_hard_regno_mode_ok): New function. New check: make sure
22080 that DImode values are not stored in IP_REGNUM.
22082 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
22084 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
22086 2002-01-22 Jason Merrill <jason@redhat.com>
22088 * c-semantics.c (genrtl_compound_stmt): Only check nesting
22089 consistency if this COMPOUND_STMT is scoped.
22091 2002-01-22 Kazu Hirata <kazu@hxi.com>
22093 * predict.c: Fix formatting.
22094 * print-tree.c: Likewise.
22095 * protoize.c: Likewise.
22096 * real.h: Likewise.
22098 * sbitmap.h: Likewise.
22099 * scan.c: Likewise.
22100 * sched-deps.c: Likewise.
22101 * sched-vis.c: Likewise.
22102 * sdbout.c: Likewise.
22103 * sibcall.c: Likewise.
22105 * ssa-ccp.c: Likewise.
22106 * ssa-dce.c: Likewise.
22107 * stmt.c: Likewise.
22108 * stor-layout.c: Likewise.
22109 * system.h: Likewise.
22111 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22113 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
22114 if fits in bounds of base type.
22116 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
22117 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
22118 (add_bound_info, default): If can't find a context, make a
22120 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
22122 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
22124 * c-typeck.c (parser_build_binary_op): If result from
22125 build_binary_op is ERROR_MARK just return error_mark_node without
22126 further processing.
22128 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
22130 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
22131 Split a.out-specific bits into...
22132 * config/netbsd-aout.h: ...this.
22133 * config/netbsd-elf.h: New file.
22134 * config/alpha/netbsd-elf.h: Remove.
22135 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
22136 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
22137 (STARTFILE_SPEC): Remove redundant definition.
22138 (ENDFILE_SPEC): Likewise.
22139 (LINK_SPEC): Likewise.
22140 (CPP_SPEC): Likewise.
22141 (ASM_SPEC): Likewise.
22142 (LIB_SPEC): Likewise.
22143 (SWITCH_TAKES_ARG): Likewise.
22144 (TARGET_MEM_FUNCTIONS): Likewise.
22145 (CPP_PREDEFINES): Redefine.
22146 (ASM_FINAL_SPEC): Remove redefinition.
22147 (ASM_COMMENT_START): Redefine.
22148 (FUNCTION_PROFILER): Define.
22149 (TARGET_VERSION): Redefine.
22150 Comment and formatting cleanup.
22151 * config/i386/netbsd.h: Include <netbsd-aout.h>.
22152 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
22153 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
22154 big- or little-endian.
22155 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
22156 * config.gcc (*-*-netbsd*): Add definitions common to all
22158 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
22159 gnu_ld definitions. Add netbsd-elf.h to and remove
22160 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
22161 tmake_file, and don't lose previous tmake_file contents.
22162 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
22163 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
22164 gnu_ld definitions. Add netbsd-elf.h to tm_file.
22165 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
22166 (mipsel-*-netbsd*): Rename this to...
22167 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
22168 mips/little.h to tm_file for mips*el-*.
22169 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
22170 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
22171 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
22173 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
22175 * pa-protos.h (reg_before_reload_operand): New function prototype.
22176 * pa.c (reg_before_reload_operand): New function implementation.
22177 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
22178 contraints to "*m".
22180 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
22182 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
22184 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
22186 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
22187 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
22188 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
22189 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
22190 (ENDFILE_SPEC): Undefine.
22191 (STARTFILE_SPEC): Redefine for PA.
22193 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
22195 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
22197 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
22199 * config.gcc: Add entries to supported PowerPC --with-cpu
22202 2002-01-21 Jakub Jelinek <jakub@redhat.com>
22204 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
22205 true for 64-bit mode only SSE registers in 32-bit mode.
22207 2002-01-21 Kazu Hirata <kazu@hxi.com>
22209 * unwind-dw2.c: Fix formatting.
22210 * unwind-dw2-fde.c: Likewise.
22211 * unwind-dw2-fde.h: Likewise.
22212 * unwind-pe.h: Likewise.
22213 * varasm.c: Likewise.
22214 * varray.h: Likewise.
22216 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
22218 Remove workaround for register stack overwrite bug in mmix.
22219 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
22220 support for TARGET_REG_STACK_FILL_BUG.
22221 * config/mmix/mmix.h: Remove member has_call_without_parameters.
22222 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
22224 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
22225 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
22226 -mno-reg-stack-fill-bug-workaround.
22227 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
22228 machine member has_call_without_parameters.
22229 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
22230 -mreg-stack-fill-bug-workaround and
22231 -mno-reg-stack-fill-bug-workaround.
22232 (MMIX Options): Ditto.
22234 2002-01-21 Kazu Hirata <kazu@hxi.com>
22236 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
22238 Remove redundant code.
22240 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
22242 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
22243 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
22244 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
22245 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
22246 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
22247 out target macro definitions and non-target-specific comments
22248 mostly taken from old versions of the manual.
22250 2002-01-20 Kazu Hirata <kazu@hxi.com>
22252 * config/h8300/h8300.h: Fix comment formatting.
22253 * config/ia64/aix.h: Likewise.
22254 * config/ia64/ia64-protos.h: Likewise.
22255 * config/ia64/ia64.c: Likewise.
22256 * config/ia64/ia64.h: Likewise.
22257 * config/ia64/ia64intrin.h: Likewise.
22258 * config/ia64/linux.h: Likewise.
22259 * config/ia64/unwind-aix.c: Likewise.
22260 * config/ia64/unwind-ia64.c: Likewise.
22262 2002-01-20 Kazu Hirata <kazu@hxi.com>
22264 * config/h8300/h8300.c: Revise comments about shift code.
22266 2002-01-20 Kazu Hirata <kazu@hxi.com>
22268 * config/h8300/h8300.c (function_arg): Update a comment.
22270 2002-01-20 Kazu Hirata <kazu@hxi.com>
22272 * config/h8300/h8300.md: Update the comments at the beginning
22275 2002-01-20 Kazu Hirata <kazu@hxi.com>
22277 * config/i370/i370.c: Fix comment formatting.
22278 * config/i370/i370.h: Likewise.
22279 * config/i370/i370.md: Likewise.
22280 * config/i370/linux.h: Likewise.
22282 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22284 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
22286 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
22287 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
22288 in incomplete case.
22290 2002-01-20 Graham Stott <grahams@redhat.com>
22292 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
22294 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
22296 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
22298 2002-01-19 Tom Rix <trix@redhat.com>
22300 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
22302 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
22304 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
22306 * function.c (assign_stack_local_1): Adjust x_frame_offset with
22307 STARTING_FRAME_PHASE.
22308 (STARTING_FRAME_PHASE): New.
22309 (instantiate_virtual_regs): Check saneness of
22310 STARTING_FRAME_PHASE.
22312 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
22314 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
22316 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
22318 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
22320 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
22321 be used for bootstrapping GCC 3.0.
22323 2002-01-18 Kazu Hirata <kazu@hxi.com>
22325 * config/h8300/h8300.md: Fix an insn length.
22327 2002-01-18 Kazu Hirata <kazu@hxi.com>
22329 * bitmap.h: Fix comment formatting.
22330 * combine.c: Likewise.
22331 * cppfiles.c: Likewise.
22332 * c-pragma.h: Likewise.
22333 * c-typeck.c: Likewise.
22335 * dwarf2out.c: Likewise.
22336 * function.c: Likewise.
22338 * genattrtab.c: Likewise.
22339 * gthr-win32.h: Likewise.
22340 * haifa-sched.c: Likewise.
22341 * predict.c: Likewise.
22342 * rtlanal.c: Likewise.
22344 * unwind-dw2-fde.h: Likewise.
22345 * unwind-pe.h: Likewise.
22346 * vmsdbgout.c: Likewise.
22348 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22350 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
22351 if type_required and passed decl.
22353 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
22355 * config.gcc (cpu_type): Include altivec.h in powerpc
22359 * config/rs6000/altivec.h: New.
22361 2002-01-17 David Edelsohn <edelsohn@gnu.org>
22363 * doc/install.texi (*-ibm-aix*): Update assembler and exception
22364 handling information.
22365 * doc/trouble.texi (Interoperation): Add libstdc++ information
22367 (Misunderstandings): Add template instantiation and static template
22368 member information for AIX.
22370 2002-01-17 Jason Merrill <jason@redhat.com>
22372 * dbxout.c (dbxout_type): Support const and volatile.
22374 * except.c (add_partial_entry): Remove backwards compatibility code.
22375 (end_protect_partials): Likewise.
22377 2002-01-17 Jakub Jelinek <jakub@redhat.com>
22379 * config/ia64/ia64.md (prologue_use): New.
22380 * config/ia64/ia64.c (ia64_expand_prologue): Use
22381 gen_prologue_use instead of gen_rtx_USE.
22382 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
22383 as CODE_FOR_pred_rel_mutex.
22384 (ia64_sched_reorder2): Likewise.
22386 2002-01-16 Eric Christopher <echristo@redhat.com>
22388 * config/mips/r3900.h: Reformat.
22389 (SUBTARGET_CPP_SIZE_SPEC): Remove.
22390 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
22391 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
22392 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
22393 * config/mips/t-elf: Remove mips3 multilib.
22395 2002-01-16 H.J. Lu <hjl@gnu.org>
22397 * config/mips/linux.h: Include "mips/abi64.h".
22399 2002-01-16 H.J. Lu <hjl@gnu.org>
22401 * config/mips/t-linux: New.
22403 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
22405 * config/mips/linux.h: Don't include "gofast.h".
22406 (INIT_SUBTARGET_OPTABS): Removed.
22408 2002-01-16 Kazu Hirata <kazu@hxi.com>
22410 * config/h8300/h8300-protos.h: Replace emit_a_shift with
22412 * config/h8300/h8300.c: Likewise.
22413 * config/h8300/h8300.md: Likewise.
22415 2002-01-16 Kazu Hirata <kazu@hxi.com>
22417 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
22418 spaces after an opcode name.
22419 (pushqi1_h8300hs): Likewise.
22420 (pushhi1_h8300hs): Likewise.
22422 2002-01-16 Kazu Hirata <kazu@hxi.com>
22424 * doc/extend.texi: Replace "option" with "attribute"
22427 2002-01-16 Jakub Jelinek <jakub@redhat.com>
22429 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
22430 (and:DI () (const_int -8)).
22431 (split_small_symbolic_mem_operand): Split
22432 (mem (and:DI () (const_int -8)).
22434 2002-01-16 Jakub Jelinek <jakub@redhat.com>
22437 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
22438 same way as TYPE_IMUL.
22439 (ultrasparc_sched_reorder): Likewise.
22440 * config/sparc/sparc.md (type): Add comment to update
22441 ultrasparc_sched_reorder when making changes.
22443 2002-01-16 Kazu Hirata <kazu@hxi.com>
22445 * doc/invoke.texi: Change the dump file name of block
22446 reordering pass from 28.bbro to 29.bbro.
22447 Mention -dk option.
22449 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
22451 * i386.md (minsf splitter): Fix pasto.
22453 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
22455 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
22456 to frame pointer initialisation instruction.
22457 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
22458 initialisation instruction.
22459 (soft_df_operand): Do not accept the IP register.
22460 (nonimmediate_soft_df_operand): Do not accept the IP register.
22462 2002-01-16 Jakub Jelinek <jakub@redhat.com>
22465 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
22466 MASK_V8 being both set.
22468 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
22470 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
22471 insn for GOT register; add REG_MAYBE_DEAD notes instead.
22472 config/s390/s390.md (call, call_value): Add GOT register to
22473 CALL_INSN_FUNCTION_USAGE where needed.
22474 (call_exp, call_value_exp): New.
22476 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
22478 * config/arm/arm.c: General formatting tidy up.
22480 2002-01-16 Graham Stott <grahams@redhat.com>
22482 * calls.c (try_to_integrate): Use "(size_t)" intermediate
22483 cast and when casting an integer literal to "rtx" pointer.
22484 (expand_call): Likewise.
22485 * flow.c (try_pre_increment): Likewise.
22486 (find_use_as_address): Likewise.
22487 * integrate.c (expand_iline_function): Likewise.
22488 * regmove.c (try_auto_increment): Likewise.
22490 2002-01-16 Graham Stott <grahams@redhat.com>
22492 * sched-rgn.c (passed): Use sbitmap_free.
22493 (header): Likewise.
22495 (in_queue): Likewise.
22496 (in_stack): Likewise.
22498 2002-01-15 Eric Christopher <echristo@redhat.com>
22500 * flow.c (propagate_one_insn): Change to use fatal_insn.
22502 2002-01-15 Kazu Hirata <kazu@hxi.com>
22504 * expmed.c (extract_fixed_bit_field): Remove unused code.
22505 * system.h: Poison SLOW_ZERO_EXTEND.
22506 * doc/tm.texi: Remove.
22507 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
22508 * config/arm/arm.h: Likewise.
22509 * config/avr/avr.h: Likewise.
22510 * config/clipper/clipper.h: Likewise.
22511 * config/convex/convex.h: Likewise.
22512 * config/d30v/d30v.h: Likewise.
22513 * config/dsp16xx/dsp16xx.h: Likewise.
22514 * config/elxsi/elxsi.h: Likewise.
22515 * config/fr30/fr30.h: Likewise.
22516 * config/h8300/h8300.h: Likewise.
22517 * config/i370/i370.h: Likewise.
22518 * config/i386/i386.h: Likewise.
22519 * config/m68k/m68k.h: Likewise.
22520 * config/mips/mips.h: Likewise.
22521 * config/ns32k/ns32k.h: Likewise.
22522 * config/pdp11/pdp11.h: Likewise.
22523 * config/pj/pj.h: Likewise.
22524 * config/s390/s390.h: Likewise.
22525 * config/sh/sh.h: Likewise.
22526 * config/stormy16/stormy16.h: Likewise.
22527 * config/v850/v850.h: Likewise.
22528 * config/vax/vax.h: Likewise.
22529 * config/we32k/we32k.h: Likewise.
22531 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
22533 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
22534 (altivec_lvsl): Change constraint to b.
22535 (altivec_lvsr): Same.
22536 (altivec_lvebx): Same.
22537 (altivec_lvehx): Same.
22538 (altivec_lvewx): Same.
22539 (altivec_lvxl): Same.
22540 (altivec_lvx): Same.
22541 (altivec_stvx): Add parallel.
22542 (altivec_stvxl): Same.
22543 (altivec_stvehx): Same.
22544 (altivec_stvebx): Same.
22545 (altivec_stvebx): Same.
22547 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
22549 * config.gcc: Change altivec.h to altivec-defs.h.
22551 * config/rs6000/altivec.h: Delete.
22553 * config/rs6000/altivec-defs.h: Add.
22555 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
22557 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
22560 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
22561 less than or equal to eight bytes.
22563 * vax.md (andsi3): Remove constraints and change SET destination
22564 operand type to nonimmediate_operand.
22565 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
22566 when it is a CONST_INT.
22568 2002-01-15 Jason Merrill <jason@redhat.com>
22570 * c-common.def (FILE_STMT): New code.
22571 * c-common.c (statement_code_p): It's a statement.
22572 * c-common.h (stmt_tree_s): Add x_last_filename.
22573 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
22574 (last_expr_filename): New macro.
22575 * c-semantics.c (begin_stmt_tree): Initialize it.
22576 (add_stmt): If the filename changed, also insert a
22578 (expand_stmt): Handle seeing one.
22580 2002-01-15 Eric Christopher <echristo@redhat.com>
22582 * flow.c (propagate_one_insn): Add error message and print out
22583 insn for debugging.
22585 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
22587 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
22588 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
22589 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
22590 TRAMPOLINE_ALIGNMENT.
22591 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
22593 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
22594 PCC_BITFIELD_TYPE_MATTERS.
22595 * config/interix.h (STDC_VALUE): Remove. Use
22596 STDC_0_IN_SYSTEM_HEADERS.
22597 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
22598 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
22599 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
22601 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
22603 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
22604 not work on this platform currently.
22606 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
22608 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
22609 readonly_warning in _().
22611 2002-01-15 Douglas B Rupp <rupp@gnat.com>
22613 * gcc.c (delete_if_ordinary): Backout previous change.
22615 2002-01-15 Kazu Hirata <kazu@hxi.com>
22617 * config/h8300/h8300.c (print_operand): Remove support for
22618 unused operand characters.
22620 * read-rtl.c: Fix formatting.
22621 * real.c: Likewise.
22622 * recog.c: Likewise.
22623 * regclass.c: Likewise.
22624 * regmove.c: Likewise.
22625 * reg-stack.c: Likewise.
22626 * reload1.c: Likewise.
22627 * rtlanal.c: Likewise.
22629 2002-01-15 Kazu Hirata <kazu@hxi.com>
22631 * config/i386/i386.c: Fix formatting.
22633 2002-01-15 Jakub Jelinek <jakub@redhat.com>
22635 * c-typeck.c (process_init_element): Don't save_expr
22636 COMPOUND_LITERAL_EXPR if just its initializer will be used.
22638 2002-01-15 David Edelsohn <edelsohn@gnu.org>
22640 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
22641 emit optional traceback table if optimize_size or TARGET_ELF.
22642 * config/rs6000/rs6000.md (prefetch): New.
22644 2002-01-15 Andreas Jaeger <aj@suse.de>
22646 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
22648 2002-01-15 Kazu Hirata <kazu@hxi.com>
22650 * mips-tfile.c: Fix formatting.
22652 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
22654 * unroll.c (final_reg_note_copy): Fix previous commit.
22656 2002-01-14 Kazu Hirata <kazu@hxi.com>
22658 * config/h8300/h8300-protos.h: Remove the prototype for
22660 * config/h8300/h8300.c (eq_operator): Remove.
22662 2002-01-14 Richard Henderson <rth@redhat.com>
22664 * config/i386/i386.md (prefetch): Tidy.
22665 (prefetch_3dnow): Fix locality operand.
22667 2002-01-14 Richard Henderson <rth@redhat.com>
22669 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
22670 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
22672 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
22674 * reload1.c (reload_combine): Pass reg_sum replacement through
22675 copy_rtx in loop performing multiple changes.
22677 2002-01-14 Jakub Jelinek <jakub@redhat.com>
22679 * except.c (remove_unreachable_regions): New.
22680 (free_eh_status): Clear exception_handler_labels.
22681 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
22682 (find_exception_handler_labels): Don't add the same label more than
22684 (remove_exception_handler_label): Don't die if
22685 find_exception_handler_labels hasn't been called for the current
22688 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
22690 * toplev.c (rest_of_compilation): Rebuild jump labels after
22693 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
22695 * doc/extend.texi: Move documentation of X86 built-in functions
22697 * doc/invoke.texi: From here.
22698 * doc/sourcebuild.texi: Document location of documentation for
22699 machine built-in functions.
22701 2002-01-13 Christopher Faylor <cgf@redhat.com>
22703 * cppfiles.c (TEST_THRESHOLD): New macro.
22704 (SHOULD_MMAP): Ditto.
22705 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
22708 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
22710 * unroll.c (final_reg_note_copy): Properly handle
22712 (unroll_loops): Fix LOOP_CONDITION heuristics.
22714 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
22716 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
22717 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
22719 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
22721 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
22724 2002-01-14 Tom Rix <trix@redhat.com>
22726 * config/rs6000/rs6000.md: Fix typo with sradi.
22728 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
22730 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
22731 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
22732 (clrstrdi, clrstrsi): Adapt callers.
22734 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
22736 (movti splitter): Never use register 0 as base register.
22738 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
22740 * combine.c (simplify_shift_const): Always generate new rtx
22741 for shift expression instead of reusing given expression.
22743 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22745 * config/alpha/alpha.c (alpha_expand_mov): Don't call
22746 alpha_legitimize_address unless mode is Pmode.
22748 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
22750 * doc/md.texi (Modifiers): Document the '*' constraint for the
22753 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
22754 * doc/extend.texi (Function Attributes): 'interrupt' is valid
22757 2002-01-13 Richard Henderson <rth@redhat.com>
22759 * reload.c (find_reloads): Use a hard reg destination as reload reg
22760 for an input reload of the source.
22762 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
22764 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
22767 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
22769 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
22770 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
22772 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
22774 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22776 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
22778 2002-01-12 Tom Rix <trix@redhat.com>
22780 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
22783 2002-01-12 Richard Henderson <rth@redhat.com>
22785 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
22787 * doc/invoke.texi: Update Alpha options.
22789 * doc/invoke.texi: Update i386 built-in function lists.
22791 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
22793 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
22794 referencing outside.
22796 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22798 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
22799 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
22800 offsets, and change line folding.
22801 * optabs.c (expand_binop): Remove warnings.
22802 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
22804 2002-01-12 Graham Stott <grahams@redhat.com>
22806 * attribs.c (handle_deprecated_attribute): constify WHAT.
22807 * diagnostic.c (warn_deprecated_use): Add braces, fixes
22808 dangling else warning and constify WHAT.
22809 * except.h (struct function, struct inline_remap): Move
22810 struct tag forward defs before all prototypes.
22811 (duplicate_eh_regions): Whitespace.
22813 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
22815 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
22816 MODE_BASE_REG_CLASS.
22817 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
22819 2002-01-12 Richard Henderson <rth@redhat.com>
22821 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
22822 (ix86_expand_vector_move): New.
22823 (bdesc_2arg): Remove andps, andnps, orps, xorps.
22824 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
22825 Remove old prefetch builtins. Special case the logicals removed above.
22826 (ix86_expand_builtin): Likewise.
22827 (safe_vector_operand): Use V4SFmode, not TImode.
22828 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
22829 (ix86_expand_timode_binop_builtin): New.
22830 * config/i386/i386-protos.h: Update.
22831 * config/i386/i386.h (enum ix86_builtins): Update.
22832 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
22833 Use ix86_expand_vector_move in vector move expanders.
22834 (movti_internal, movti_rex64): Add xorps alternative.
22835 (sse_clrv4sf): Rename and adjust from sse_clrti.
22836 (prefetch): Don't work so hard.
22837 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
22838 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
22839 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
22841 2002-01-11 Richard Henderson <rth@redhat.com>
22843 * config/i386/mmintrin.h: New file.
22844 * config/i386/xmmintrin.h: New file.
22845 * config.gcc (i?86-*-*): Add extra_headers.
22846 * simplify-rtx.c (simplify_unary_operation): Handle saturating
22848 (simplify_binary_operation): Handle saturating arithmetic codes.
22849 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
22850 not the lowpart subreg.
22851 (ix86_expand_builtin): Return a TImode dummy register instead of 0
22853 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
22855 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
22857 * conflict.c (conflict_graph_compute): Free regsets when finished.
22858 * ssa.c (compute_coalesced_reg_partition): Likewise.
22860 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
22862 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
22863 every where we allocate a register.
22865 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
22867 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
22868 * lcm.c (compute_earliest, compute_farthest): Likewise.
22870 2002-01-11 Janis Johnson <janis187@us.ibm.com>
22872 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
22874 2002-01-11 Janis Johnson <janis187@us.ibm.com>
22876 * doc/rtl.texi (Insns): Fix 2 typos.
22878 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
22880 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
22881 options. Use @table @gcctabopt for MMIX options. Add index
22882 entries for MMIX options. Start new paragraph with first
22883 heading of the machine-dependent options.
22885 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
22888 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
22889 * combine.c (force_to_mode): Same.
22890 * reload1.c (clear_reload_reg_in_use): Same.
22892 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
22894 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
22897 2002-01-11 Andreas Jaeger <aj@suse.de>,
22898 Brad Lucier <lucier@math.purdue.edu>
22900 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
22903 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
22905 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
22906 Protect with IN_LIBGCC.
22907 (LINK_EH_SPEC): Add required trailing space.
22909 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
22911 * c-tree.h: Move function declarations so that they are listed
22912 under the filename which contains them.
22913 (check_identifier, finish_decl_top_level,
22914 lookup_name_current_level_global, shadow_record_fields): Remove.
22916 2002-01-11 Andreas Jaeger <aj@suse.de>
22918 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
22921 2002-01-10 Richard Henderson <rth@redhat.com>
22923 * config/alpha/alpha.c (print_operand): Add 'J'.
22924 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
22925 new operand with the sequence number for the lituse. When splitting
22926 the insns, use gen_movdi_er_high_g and generate a sequence number.
22927 (gen_movdi_er_high_g): Print the sequence number if non-zero.
22929 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
22931 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
22932 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
22934 (altivec_expand_builtin): Same.
22935 (altivec_expand_stv_builtin): New.
22937 * config/rs6000/rs6000.h (rs6000_builtins): Same.
22939 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
22940 ("altivec_lvehx"): New.
22941 ("altivec_lvewx"): New.
22942 ("altivec_lvxl"): New.
22943 ("altivec_lvx"): New.
22944 ("altivec_stvx"): New.
22945 ("altivec_stvebx"): New.
22946 ("altivec_stvehx"): New.
22947 ("altivec_stvewx"): New.
22948 ("altivec_stvxl"): New.
22950 2002-01-10 Richard Henderson <rth@redhat.com>
22952 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
22953 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
22954 care not to delete instructions twice.
22956 2002-01-10 Zack Weinberg <zack@codesourcery.com>
22958 * toplev.c: Don't declare environ (it's not used anywhere).
22959 * configure.in: Don't check for declaration of environ.
22960 * config/i386/xm-mingw32.h: Don't #define environ.
22961 * config.in, configure: Regenerate.
22963 2002-01-10 Zack Weinberg <zack@codesourcery.com>
22965 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
22966 * configure: Regenerate.
22968 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
22969 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
22970 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
22972 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
22973 LIMITS_H_TEST here, not in m68k/x-next.
22974 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
22975 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
22977 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
22978 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
22979 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
22981 * config/i386/x-djgpp: Renamed i386/t-djgpp.
22982 * config/m88k/x-dolph: Renamed m88k/t-dolph.
22983 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
22984 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
22985 replacement of quadlib.asm with quadlib.c.
22987 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
22988 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
22989 config/rs6000/xm-beos.h: Delete file.
22991 * config.gcc: Update to match above changes.
22993 2002-01-10 Kazu Hirata <kazu@hxi.com>
22995 * config/h8300/h8300.h: Fix comment typos.
22996 * config/h8300/h8300.md: Likewise.
22997 * config/h8300/lib1funcs.asm: Likewise.
22999 2002-01-10 Dale Johannesen <dalej@apple.com>
23001 PR optimization/5269
23002 * unroll.c (precondition_loop_p): Make *increment be the correct
23003 sign when n_iterations known, to avoid confusing caller.
23005 2002-01-10 Kazu Hirata <kazu@hxi.com>
23007 * doc/extend.texi (deprecated): Fix a typo.
23009 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
23011 * basic-block.h (update_br_prob_note): Declare.
23012 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
23013 (try_forward_edges): Care negative frequencies and update note.
23014 (outgoing_edges_match): Tweek conditional merging heuristics.
23015 (try_crossjump_to_edge): use update_br_prob_note.
23016 * cfglayout.c (fixup_reorder_chain): Likewise.
23017 * cfrtl.c (update_br_prob_note): New.
23018 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
23020 * i386.c (ix86_decompose_address): Return -1 if address contains
23022 (legitimate_address_p): Require ix86_decompose_address to return 1.
23024 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
23025 (cprop_insn): Likewise.
23027 2002-01-10 Kazu Hirata <kazu@hxi.com>
23029 * toplev.c: Fix formatting.
23030 * tree.c: Likewise.
23031 * tree-dump.c: Likewise.
23032 * unroll.c: Likewise.
23033 * unwind-dw2.c: Likewise.
23034 * unwind-dw2-fde.c: Likewise.
23035 * unwind-dw2-fde-glibc.c: Likewise.
23036 * unwind-sjlj.c: Likewise.
23038 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
23040 * doc/invoke.texi: Document PDP-11 options.
23042 2002-01-10 Kazu Hirata <kazu@hxi.com>
23044 * config/h8300/h8300.h: Fix formatting.
23046 2002-01-10 Ira Ruben <ira@apple.com>
23048 Add __attribute__ ((deprecated)).
23049 * extend.texi: Document __attribute__ ((deprecated)).
23050 * invoke.texi: Document -Wno-deprecated-declarations.
23051 * testsuite/g++.dg/other/deprecated.C: New C++ test.
23052 * testsuite/gcc.dg/deprecated.c: New C test.
23053 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
23054 (c_common_attribute_table): Add "deprecated" entry.
23055 (handle_deprecated_attribute): New function.
23056 * c-decl.c (deprecated_states): New enum.
23057 deprecated_state: State of "deprecated" handling.
23058 (start_decl): Set deprecated_state based on attributes.
23059 (grokdeclarator): Test for deprecated uses, propagate attribute.
23060 * c-typeck.c (build_component_ref): Test for deprecated fields.
23061 (build_external_ref): Test for deprecated primaries.
23062 * diagnostic.c (warn_deprecated_use) New function to issue
23063 warnings about __attribute__ ((depricated)) references.
23064 * flags.h (warn_deprecated_decl): Extern declared for
23065 -W[no-]deprecated-declarations option.
23066 * print-tree.c (print_node): Show deprecated flag status.
23067 * toplev.c (warn_deprecated_decl): Defined.
23068 (W_options): Added "deprecated-declaration".
23069 * toplev.h (warn_deprecated_use): Extern declared.
23070 * tree.h (struct tree_common): Define deprecated_flag.
23071 (TREE_DEPRECATED): New macro to access flag.
23072 * cp/call.c (build_call): Test for deprecated calls.
23073 * cp/class.c (add_implicitly_declared_members): Set global
23074 flag to tell grokdeclarator to not issue deprecated warnings.
23075 * cp/cp-tree.h: Add extern for adding_implicit_members.
23076 * cp/decl.c (deprecated_states): New enum.
23077 (start_decl): Set deprecated_state based on attributes.
23078 (grokdeclarator): Test for deprecated uses, propagate attribute.
23079 * cp/lex.c (do_identifier): Test for deprecated primaries.
23080 * cp/typeck.c (build_component_ref): Test for deprecated fields.
23082 2002-01-10 Ira Ruben <ira@apple.com>
23084 Fix to assign attributes to inline member functions.
23085 * cp/decl.c (start_method): Handle attrlist.
23087 2002-01-10 Kazu Hirata <kazu@hxi.com>
23089 * combine.c (expand_field_assignment): Use subreg_lsb().
23091 2002-01-10 David Edelsohn <edelsohn@gnu.org>
23093 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
23094 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
23095 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
23096 Recurse for any operand of AND as long as constant is non-zero.
23098 2002-01-10 Kazu Hirata <kazu@hxi.com>
23100 * config/h8300/h8300.md: Remove constraints from expanders.
23102 2002-01-10 Kazu Hirata <kazu@hxi.com>
23104 * varasm.c: Fix formatting.
23105 * varray.c: Likewise.
23106 * vmsdbgout.c: Likewise.
23107 * xcoffout.c: Likewise.
23109 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
23111 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
23112 update edge probabilities to match.
23114 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
23116 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
23118 * doc/languages.texi, doc/sourcebuild.texi: New files.
23119 * doc/configfiles.texi: Make a subsubsection. Update.
23120 * doc/configterms.texi: Add @node. Remove warning that this isn't
23121 instructions for building GCC.
23122 * doc/makefile.texi: Make a subsection.
23123 * doc/gccint.texi: Update.
23125 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
23127 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
23129 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
23131 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
23133 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
23135 * optabs.c (expand_fix): Look for wider integer modes first.
23137 * i386.md (mov?f): Avoid the fake const double trick for medium
23139 (min?f*/max?f*): Prohibit memory operands for i387 variant.
23140 (fop_df_4): Disable for SSE compilation.
23142 2002-01-10 Graham Stott <grahams@redhat.com>
23144 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
23145 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
23147 2002-01-10 Richard Henderson <rth@redhat.com>
23149 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
23151 2002-01-10 Richard Henderson <rth@redhat.com>
23153 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
23154 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
23156 2002-01-10 Kazu Hirata <kazu@hxi.com>
23158 * combine.c (can_combine_p): Fix a comment typo.
23160 2002-01-09 Zack Weinberg <zack@codesourcery.com>
23162 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
23163 empty list correctly. Change loop index $t to $f for
23164 consistency with rest of Makefile.
23166 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
23168 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
23169 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
23171 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
23172 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
23173 (altivec_init_builtins): Same.
23174 (altivec_expand_unop_builtin): Return NULL_RTX on error.
23175 (altivec_expand_binop_builtin): Same.
23176 (altivec_expand_ternop_builtin): Same.
23179 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
23180 ("altivec_vctuxs"): Fix typo.
23181 ("altivec_vnmsubfp"): Same.
23182 ("altivec_dssall"): New.
23183 ("altivec_mfvscr"): New.
23184 ("altivec_dss"): New.
23185 ("altivec_lvsl"): New.
23186 ("altivec_lvsr"): New.
23187 ("altivec_dstt"): New.
23188 ("altivec_dstst"): New.
23189 ("altivec_dststt"): New.
23190 ("altivec_dst"): New.
23192 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
23193 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
23195 2002-01-09 Richard Henderson <rth@redhat.com>
23197 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
23199 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
23201 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
23203 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
23205 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
23207 2002-01-09 Kazu Hirata <kazu@hxi.com>
23209 * read-rtl.c: Fix formatting.
23210 * real.c: Likewise.
23211 * regclass.c: Likewise.
23212 * regrename.c: Likewise.
23213 * reg-stack.c: Likewise.
23214 * reload1.c: Likewise.
23215 * reload.c: Likewise.
23218 2002-01-09 Kazu Hirata <kazu@hxi.com>
23220 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
23221 to extract items in the expr_list chain.
23223 2002-01-09 Richard Henderson <rth@redhat.com>
23225 * config/vax/vax.c (vax_rtx_cost): Never abort.
23227 * config/vax/vax.h (REAL_ARITHMETIC): Define.
23229 2002-01-09 Jan Hubicka <jh@suse.cz>
23231 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
23233 2002-01-09 Richard Henderson <rth@redhat.com>
23235 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
23236 Unify code from various alternatives.
23238 2002-01-09 Richard Henderson <rth@redhat.com>
23240 * regrename.c (copy_value): Ignore the copy if the source register
23241 is present in the value chain with a narrower mode.
23243 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
23245 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
23246 for the c4x target. Also improve layout.
23248 2002-01-09 Richard Henderson <rth@redhat.com>
23250 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
23251 * config/m32r/m32r.md (and ior xor splitters): Swap operands
23252 to match insn patterns.
23254 2002-01-09 Richard Henderson <rth@redhat.com>
23256 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
23257 (copyprop_hardreg_forward_1): Likewise.
23259 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
23261 * pa.md (decrement_and_branch_until_zero): Change predicate for
23262 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
23264 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
23266 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
23267 gets undefined. For Darwin.
23269 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
23271 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
23273 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
23275 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
23277 2002-01-08 Richard Henderson <rth@redhat.com>
23279 * regrename.c (copy_value): Ignore overlapping copies.
23281 2002-01-08 Richard Henderson <rth@redhat.com>
23283 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
23284 as needed to avoid shared structure.
23286 2002-01-08 Kazu Hirata <kazu@hxi.com>
23288 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
23291 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
23293 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
23294 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
23295 documentation of obsolete macros.
23296 * system.h: Poison these macros.
23297 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
23298 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
23299 config/c4x/c4x.h, config/clipper/clipper.h,
23300 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
23301 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
23302 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
23303 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
23304 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
23305 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
23306 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
23307 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
23308 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
23309 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
23310 config/sparc/sparc.h, config/stormy16/stormy16.h,
23311 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
23312 definitions and commented out definitions of obsolete macros.
23313 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
23314 of MAX_INT_TYPE_SIZE.
23316 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
23318 * config/s390/s390.c (s390_preferred_reload_class): Never
23319 return ADDR_REGS if it isn't a subset of the given class.
23320 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
23321 FP_REGS, but all superclasses as well.
23323 * config/s390/s390.c (s390_function_profiler): Fix thinko.
23325 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
23326 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
23327 must not be a const_int.
23329 2002-01-08 Richard Henderson <rth@redhat.com>
23331 * Makefile.in (toplev.o): Depend on options.h.
23332 (gcc.o): Depend on specs.h.
23334 2002-01-08 Jakub Jelinek <jakub@redhat.com>
23336 * expr.c (store_expr): Convert VOIDmode constants back to target's
23339 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
23341 * doc/invoke.texi: Markup gcc as @command. Refer to
23342 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
23343 of http://gcc.gnu.org/thanks.html.
23345 2002-01-08 Dale Johannesen <dalej@apple.com>
23347 * config/rs6000/rs6000.md: Add missing int register
23348 target case to movdf_low.
23350 2002-01-08 Zack Weinberg <zack@codesourcery.com>
23352 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
23353 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
23354 (cppinit.o): Depend on except.h.
23355 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
23356 s-specs): New rules.
23358 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
23359 Don't create specs.h/options.h/gencheck.h here. Remove
23360 unnecessary variable settings from last argument of AC_OUTPUT.
23361 * config.in, configure: Regenerate.
23362 * intl.c: Hardcode package name as "gcc".
23364 * cppinit.c: Include except.h.
23365 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
23367 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
23368 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
23369 (!)USING_SJLJ_EXCEPTIONS.
23370 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
23372 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
23374 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
23375 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
23376 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
23377 documentation of obsolete macros.
23378 * system.h: Poison these macros.
23379 * config/d30v/d30v.h, config/ns32k/encore.h,
23380 config/stormy16/stormy16.h: Remove definitions and commented out
23381 definitions of obsolete macros.
23383 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
23385 * objc/objc-act.c (handle_class_ref): Mark the declaration of
23386 %sobjc_class_ref_%s as used - to prevent unwanted compiler
23389 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
23391 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
23392 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
23393 to insn adjusting stack/frame pointer.
23394 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
23395 accept operands that cause the insn to be non-splittable.
23397 2002-01-08 Graham Stott <grahams@redhat.com>
23399 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
23400 (C_TYPE_FIELDS_VOLATILE): Likewise.
23401 (C_TYPE_BEING_DEFINED): Likewise.
23402 (C_IS_RESERVED_WORD): Likewise.
23403 (C_TYPE_VARIABLE_SIZE): Likewise.
23404 (C_DECL_VARIABLE_SIZE): Likewise.
23405 (C_MISSING_PROTOTYPE_WARNED): Likewise.
23406 (C_SET_EXP_ORIGINAL_CODE): Likewise.
23407 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
23409 (C_DECL_ANTICIPATED): Likewise.
23410 (c_build_type_variant): Add parenthesis.
23412 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
23414 * gcc.c (option_map): Remove --version.
23415 (process_command): Handle -fversion following the GNU Coding
23416 Standards. Partially addresses PR other/704.
23418 2002-01-08 Graham Stott <grahams@redhat.com>
23420 * combine.c (combine_instructions): Fix typo.
23422 2002-01-08 Graham Stott <grahams@redhat.com>
23424 * debug.h: Use "tree" and "rtx" throughout.
23426 * debug.c: Likewise.
23428 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
23430 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
23431 constant pool, use the pool's version of the symbol instead.
23433 2002-01-07 Richard Henderson <rth@redhat.com>
23435 * regrename.c (find_oldest_value_reg): Ignore the value chain if
23436 the original register was copied in a mode with a fewer number of
23437 hard registers than the desired mode.
23438 (copyprop_hardreg_forward_1): Likewise.
23439 (debug_value_data): Fix loop test.
23440 * toplev.c (parse_options_and_default_flags): Reenable
23441 -fcprop-registers at -O1.
23443 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
23445 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
23446 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
23448 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
23451 * config/rs6000/rs6000.md: Add altivec predicate patterns.
23453 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
23455 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
23456 (pa_output_function_prologue): Output local label at the beginning of
23457 the prologue when profiling.
23458 (hppa_profile_hook): Use the local label rather than the function label.
23459 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
23461 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
23463 * config/rs6000/rs6000.c (print_operand): Remove extra space.
23464 (altivec_expand_unop_builtin): Fix thinko.
23465 (altivec_expand_binop_builtin): Same.
23466 (altivec_expand_ternop_builtin): Same.
23467 (altivec_expand_builtin): Same.
23469 2002-01-07 Richard Henderson <rth@redhat.com>
23471 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
23473 2002-01-07 Jason Merrill <jason@redhat.com>
23475 * unwind-dw2.c (execute_cfa_program): Use < again.
23477 2002-01-07 Jakub Jelinek <jakub@redhat.com>
23479 * predict.c (combine_predictions_for_insn): Avoid division by zero.
23481 2002-01-07 Jakub Jelinek <jakub@redhat.com>
23483 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
23484 Don't allow -1 - x -> ~x simplifications in the first pass.
23486 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
23488 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
23490 (altivec_expand_binop_builtin): Same.
23491 (altivec_expand_unop_builtin): Same.
23492 (print_operand): Fix typo.
23493 (bdesc_1arg): Add vupk* variants.
23495 * rs6000.h (rs6000_builtins): Add vupk* enums.
23497 * rs6000.md: Add altivec_vupk* variants.
23499 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
23501 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
23502 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
23503 and last update dates.
23505 2002-01-07 Janis Johnson <janis187@us.ibm.com>
23507 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
23509 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
23511 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
23512 * config/avr/avr.h (CPP_SPEC): Likewise.
23513 (LINK_SPEC): Likewise.
23514 (CRT_BINUTILS_SPECS): Likewise.
23515 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
23516 * doc/invoke.texi (AVR Options): Document them.
23518 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
23520 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
23523 2002-01-07 Graham Stott <grahams@redhat.com>
23525 * config/i386/i386.h: Update copyright date.
23526 (HALF_PIC_PTR): Add parenthesis.
23527 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
23528 (CONSTANT_ALIGNMENT): Add parenthesis.
23529 (DATA_ALIGNMENT): Likewise.
23530 (LOCAL_ALIGNMENT): Likewise.
23531 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
23532 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
23533 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
23534 (HARD_REGNO_NREGS): Add paranethesis.
23535 (VALID_SSE_REG_MODE): Whitespace.
23536 (VALID_MMX_REG_MODE): Whitespace.
23537 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
23538 (ix86_hard_regno_mode_ok): Add parenthesis.
23539 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
23540 (RETURN_IN_MEMORY): Whitespace.
23541 (N_REG_CLASSES): Add parenthesis.
23542 (INTEGER_CLASS_P): Add parenthesis and wrap.
23543 (FLOAT_CLASS_P): Likewise.
23544 (SSE_CLASS_P): Likewise.
23545 (MMX_CLASS_P): Likewise.
23546 (MAYBE_INTEGER_CLASS_P): Likewise.
23547 (MAYBE_FLOAT_CLASS_P): Likewise.
23548 (MAYBE_SSE_CLASS_P): Likewise.
23549 (MAYBE_MMX_CLASS_P): Likewise.
23550 (Q_CLASS_P): Likewise.
23551 (GENERAL_REGNO_P): Uppercase macro parameter.
23552 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
23553 (FP_REGNO_P): Likewise.
23554 (ANY_FP_REGNO_P): Uppercase macro parameter.
23555 (SSE_REGNO_P): Likewise.
23556 (SSE_REGNO): Likewise.
23557 (SSE_REG_P): Likewise.
23558 (SSE_FLOAT_MODE_P): Likewise.
23559 (MMX_REGNO_P): Likewise.
23560 (MMX_REG_P):Likewise.
23561 (STACK_REG_P): Likewise.
23562 (NON_STACK_REG_P): Likewise.
23563 (STACK_TOP_P): Likewise.
23564 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
23565 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
23566 (SECONDARY_MEMORY_NEEDED): Likewise.
23567 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
23568 (MD_ASM_CLOBBERS): Whitespace and wrap.
23569 (MUST_PASS_IN_STACK): Whitespace and wrap.
23570 (RETURN_POPS_ARGS): Add parenthesis.
23571 (INIT_CUMULATIVE_ARGS): Likewise.
23572 (FUNCTION_ARG): Likewise.
23573 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
23574 (SETUP_INCOMING_VARARGS): Likewise.
23575 (BUILD_VA_LIST_TYPE): Add parenthesis.
23576 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
23578 (EXPAND_BUILTIN_VA_ARG): Likewise.
23579 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
23580 (INITIALIZE_TRAMPOLINE): Add parenthesis.
23581 (INITIAL_ELIMINATION_OFFSET): Likewise.
23582 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
23583 (REGNO_OK_FOR_BASE_P): Likewise.
23584 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
23585 (REGNO_OK_FOR_DIREG_P): Likewise.
23586 (REG_OK_FOR_INDEX_P): Whitespace.
23587 (REG_OK_FOR_BASE_P): Whitespace.
23588 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
23590 (FIND_BASE_TERM): Fix typo.
23591 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
23592 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
23593 (SYMBOLIC_CONST; Whitespace.
23594 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
23595 (ENCODE_SECTION_INFO): Whitespace.
23596 (FINALIZE_PIC): Remove do { ... } while (0).
23597 (PROMOTE_MODE): Wrap in do { ... } while (0).
23598 (CONST_COSTS): Whitespace.
23599 (RTX_COSTS): Add paramethesis, whitespace and wrap.
23600 (REGISTER_MOVE_COST): Add parenthesis.
23601 (MEMORY_MOVE_COST): Likewise.
23602 (EXTRA_CC_MODES): Whitespace.
23603 (SELECT_CC_MODE): Add parenthesis and whitespace.
23604 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
23605 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
23606 (ASM_OUTPUT_LABEL): Add paramethesis.
23607 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
23608 (ASM_OUTPUT_REG_POP): Likewise.
23609 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
23610 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
23612 * config/i386/i386.c: Update copyright.
23613 (CHECK_STACK_LIMIT): Add parenthesis.
23614 (AT_BP): Uppercase macro parameter.
23615 (x86_64_int_parameter_registers): Constify.
23616 (x86_64_int_return_registers): Likewise.
23617 (ix86_compare_op0): Use rtx.
23618 (construct_container): Constify INTREG parameter.
23619 (function_arg): Use rtx.
23621 * diagnostic.h: Update copyright date.
23622 (output_buffer_state): Add parenthesis.
23623 (output_buffer_format_args): Likewise.
23625 * combine.c (combine_instructions): Replace XEXP (links, 0)
23628 2002-01-06 H.J. Lu <hjl@gnu.org>
23630 * cfgcleanup.c (thread_jump): Fix 2 typos.
23632 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
23634 * config.gcc: Add support for --enable-altivec.
23636 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
23638 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
23640 2002-01-06 Jakub Jelinek <jakub@redhat.com>
23642 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
23643 __objc_class_name_*.
23645 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
23647 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
23649 2002-01-06 Richard Henderson <rth@redhat.com>
23651 * reorg.c (emit_delay_sequence): Remove death notes, not merely
23652 nop them out. Increment label reference count for REG_LABEL.
23653 (fill_slots_from_thread): Frob label reference count around
23654 delete_related_insns.
23656 2002-01-05 Richard Henderson <rth@redhat.com>
23658 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
23661 2002-01-05 Richard Henderson <rth@redhat.com>
23663 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
23664 * integrate.c (output_inline_function): Likewise.
23665 * toplev.c (rest_of_compilation): Do it here instead. Move call
23666 to remove_unnecessary_notes after emitting abstract instance.
23667 Force an emitted nested function to have its parent emited as well.
23668 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
23670 (rtl_for_decl_location): Do not look at reload data structures
23671 before reload has run.
23673 2002-01-05 Kazu Hirata <kazu@hxi.com>
23675 * cse.c: Fix formatting.
23676 * dwarf2asm.c: Likewise.
23677 * dwarf2out.c: Likewise.
23678 * explow.c: Likewise.
23679 * expmed.c: Likewise.
23680 * function.c: Likewise.
23681 * gcov.c: Likewise.
23682 * gencheck.c: Likewise.
23683 * genrecog.c: Likewise.
23684 * ggc-common.c: Likewise.
23685 * ggc-page.c: Likewise.
23686 * global.c: Likewise.
23688 2002-01-05 Kazu Hirata <kazu@hxi.com>
23690 * combine.c: Fix formatting.
23692 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
23695 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
23697 2002-01-05 David Edelsohn <edelsohn@gnu.org>
23699 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
23700 as 1 for __powerpc64__ as well.
23702 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
23704 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
23707 2002-01-05 Daniel Berlin <dan@dberlin.org>
23709 * lcm.c: Revert change, due to performance regression it causes on
23710 SPEC because it's slightly more conservative (sigh, I hate
23713 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
23715 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
23717 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
23719 * doc/cppinternals.texi: Update.
23721 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
23723 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
23724 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
23726 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
23727 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
23728 kludge for pre-october-14th mmix versions to handle new-found bug
23729 with PUSHJ/PUSHGO and the register stack.
23730 * config/mmix/mmix.h (struct machine_function): Rename member
23731 has_call_value_without_parameters to has_call_without_parameters.
23732 All referers changed.
23733 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
23734 TARGET_MASK_BRANCH_PREDICT): New macros.
23735 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
23736 -mno-reg-stack-fill-bug-workaround.
23737 * config/mmix/mmix.md ("call"): Set struct machine member
23738 has_call_without_parameters.
23740 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
23742 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
23744 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
23746 * cfgcleanup.c: Include tm_p.h
23747 (mark_effect): Fix handling of hard register; fix handling of SET
23749 2002-01-04 Kazu Hirata <kazu@hxi.com>
23751 * config/h8300/h8300.md (anonymous patterns): Check that
23752 operands are registers before using REGNO on them.
23754 2002-01-03 Roland McGrath <roland@frob.com>
23756 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
23758 2002-01-04 Jakub Jelinek <jakub@redhat.com>
23760 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
23761 * c-common.h (genrtl_expr_stmt_value): Likewise.
23762 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
23763 (expand_expr_stmt_value): Add maybe_last argument.
23764 Don't warn about statement with no effect if it is the last statement
23765 in expression statement.
23766 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
23767 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
23768 expand_expr_stmt_value.
23769 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
23770 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
23771 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
23772 as maybe_last to expand_expr_stmt_value.
23774 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
23776 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
23777 be passed in, do not build it.
23778 (c_begin_if_stmt): New function.
23779 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
23780 * c-common.h (c_expand_start_cond): Update prototype.
23781 (c_begin_if_stmt): Prototype new function.
23782 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
23783 * c-parse.in (if_prefix): Use c_begin_if_stmt,
23784 c_begin_while_stmt and c_finish_while_stmt_cond.
23786 2002-01-04 William Cohen <wcohen@redhat.com>
23788 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
23789 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
23790 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
23791 * config/pa/som.h (ASM_FILE_START): Likewise.
23793 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
23795 * lcm.c: Include df.h.
23796 Add available_transfer_function prototype.
23797 (compute_available): Rework to use iterative dataflow framework.
23798 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
23799 with bb_info in df.h
23800 (available_transfer_function): New function.
23802 * Makefile.in (lcm.o): add df.h to dependencies.
23804 2002-01-04 Richard Henderson <rth@redhat.com>
23806 * config/alpha/alpha.c (some_operand): Accept HIGH.
23807 (input_operand): Likewise; accept simple references to globals.
23808 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
23809 (alpha_const_double_ok_for_letter_p): Likewise.
23810 (alpha_extra_constraint): Likewise.
23811 (alpha_preferred_reload_class): Likewise. Do not force
23812 symbolic constants to memory.
23813 (alpha_legitimate_address_p): Accept simple references
23814 to small_symbolic_operand.
23815 (alpha_legitimize_address): New arg scratch. Be prepared to be
23816 called when no_new_pseudos. Emit simple symbolic references.
23817 Split integers into low, high, and rest.
23818 (alpha_expand_mov): Use alpha_legitimize_address.
23819 (some_small_symbolic_mem_operand): New.
23820 (split_small_symbolic_mem_operand): New.
23821 * config/alpha/alpha-protos.h: Update.
23822 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
23823 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
23824 (EXTRA_CONSTRAINT): Likewise.
23825 (PREFERRED_RELOAD_CLASS): Likewise.
23826 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
23827 (PREDICATE_CODES): Update.
23828 * config/alpha/alpha.md: New post-reload splitters to convert
23829 simplfied symbolic operands to the form that references $29.
23830 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
23831 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
23833 2002-01-03 Richard Henderson <rth@redhat.com>
23835 * local-alloc.c (function_invariant_p): Update commentary.
23837 2002-01-04 H.J. Lu <hjl@gnu.org>
23839 * toplev.c (rest_of_compilation): Fix a typo when calling
23842 2002-01-03 Kazu Hirata <kazu@hxi.com>
23844 * c-common.c: Fix formatting.
23845 * diagnostic.c: Likewise.
23846 * doloop.c: Likewise.
23847 * dwarf2out.c: Likewise.
23849 2002-01-03 Kazu Hirata <kazu@hxi.com>
23851 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
23852 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
23854 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
23856 * cpperror.c: Update comments and copyright.
23857 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
23858 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
23860 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
23862 * collect2.c (main): Use strcmp when testing for "-shared".
23864 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
23866 * cppmacro.c: Don't include intl.h. Update comments.
23867 (new_number_token): Allocate enough buffer for 64-bit unsigned
23868 integers; update prototype.
23869 * cppmain.c: Update comments.
23871 2002-01-03 William Cohen <wcohen@redhat.com>
23873 * function.h (struct function): Add profile.
23874 (current_function_profile): New.
23875 doc/extend.texi: Update documentation.
23876 * final.c (final_start_function): Use current_function_profile
23877 instead of profile_flag.
23878 (profile_after_prologue): Likewise.
23879 * function.c (expand_function_start): Likewise.
23880 (expand_function_start): Likewise.
23881 * config/alpha/alpha.c (direct_call_operand):
23882 (alpha_does_function_need_gp): Likewise.
23883 (alpha_expand_prologue): Likewise.
23884 * config/arm/arm.c (arm_expand_prologue): Likewise.
23885 thumb_expand_prologue: Likewise.
23886 * config/d30v/d30v.c (d30v_stack_info): Likewise.
23887 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
23888 (fr30_expand_prologue): Likewise.
23889 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
23890 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
23891 * config/i386/i386.h (FINALIZE_PIC): Likewise.
23892 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
23893 * config/i960/i960.c (i960_output_function_prologue): Likewise.
23894 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
23895 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
23896 (m32r_expand_prologue): Likewise.
23897 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
23898 (m88k_expand_prologue): Likewise.
23899 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
23900 * config/mips/mips.c (compute_frame_size): Likewise.
23901 (mips_expand_prologue): Likewise.
23902 (mips_can_use_return_insn): Likewise.
23903 * config/pa/elf.h (ASM_FILE_START): Likewise.
23904 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
23905 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
23906 * config/pa/som.h (ASM_FILE_START): Likewise.
23907 * config/romp/romp.c (romp_using_r14): Likewise.
23908 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
23909 (rs6000_stack_info): Likewise.
23910 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
23911 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
23912 * config/v850/v850.c (compute_register_save_size): Likewise.
23914 2002-01-03 Jakub Jelinek <jakub@redhat.com>
23916 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
23917 gen_lowpart_common fails, use gen_lowpart_SUBREG.
23919 2002-01-03 Turly O'Connor <turly@apple.com>
23921 * darwin.c (machopic_output_possible_stub_label): Don't generate
23922 stub routines for pseudo-stubs which we've just defined.
23924 2002-01-03 Kazu Hirata <kazu@hxi.com>
23926 * builtins.c: Fix formatting.
23927 * c-typeck.c: Likewise.
23928 * combine.c: Likewise.
23929 * expr.c: Likewise.
23930 * loop.c: Likewise.
23932 2002-01-03 Andreas Schwab <schwab@suse.de>
23934 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
23935 and return true if _cpp_push_next_buffer pushed a new include
23937 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
23938 _cpp_pop_file_buffer did not push a new file.
23939 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
23941 2002-01-02 Eric Christopher <echristo@redhat.com>
23943 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
23944 FIND_REG_INC_NOTE call. Update copyright.
23945 * loop.c (canonicalize_condition): Ditto.
23946 * reorg.c (delete_scheduled_jump): Ditto.
23948 2002-01-03 Kazu Hirata <kazu@hxi.com>
23950 * gcse.c: Fix formatting.
23952 2002-01-03 Graham Stott <grahams@redhat.com>
23954 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
23955 forward defs for struct tags rtx_def, union_tree, rtvec_def
23956 also output corresponding typedefs for rtx, tree, and rtvec.
23958 * system.h: Move forward defs for struct tags rtx_def, union_tree,
23959 rtvec_def along with corresponding typedefs for rtx, tree, and
23960 rtvec to config.h, hconfig.h, tconfig.h.
23962 2002-01-03 Graham Stott <grahams@redhat.com>
23964 * tree.h: Update copyright date.
23965 (IS_EXPR_CODE_CLASS): Add parenthesis.
23966 (TREE_SET_CODE): Add whitespace.
23967 (TREE_CHECK): Add parenthesis.
23968 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
23969 (CST_OR_CONSTRUCTOR_CHECK):
23970 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
23971 (TREE_SYMBOL_REFERENCED): Whitespace.
23972 (INT_CST_LT): Likewise.
23973 (INT_CST_LT_UNSIGNED): Likewise.
23974 (tree_real_cst): Unwrap comment.
23975 (tree_string): Likewise.
23976 (tree_complex): Likewise.
23977 (IDENTIFIER_POINTER): correct cast.
23978 (SAVE_EXPR_CONTEXT): Whitespace.
23979 (EXPR_WFL_FILENAME_NODE): Likewise.
23980 (EXPR_WFL_FILENAME): Remove parenthesis.
23981 (DECL_ORIGIN): Add parenthesis.
23982 (DECL_FROM_INLINE): Use NULL_TREE.
23983 (build_int_2): Whitespace.
23984 (build_type_variant): Add parenthesis.
23986 * gcc/jcf-parse.c: Update copyright date.
23987 (yyparse): Constify resource_filename.
23989 2002-01-03 Graham Stott <grahams@redhat.com>
23991 * rtl.h: Update copyright date.
23992 (RTL_CHECK1): Wrap long line.
23993 (RTL_CHECK2): Likewise.
23994 (RTL_CHECKC1): Wrap long line and whitespace.
23995 (RTL_CHECKC2): Likewise.
23996 (XWINT): Whitespace.
24002 (XBITMAP): Likewise.
24004 (XBBDEF): Likewise.
24006 (X0WINT): Likewise.
24008 (X0UINT): Likewise.
24012 (X0MODE): Likewise.
24013 (X0BITMAP): Likewise.
24014 (X0TREE): Likewise.
24015 (X0BBDEF): Likewise.
24016 (X0ADVFLAGS): Likewise.
24017 (X0CSELIB): Likewise.
24018 (X0MEMATTR): Likewise.
24019 (XCWINT): Likewise.
24021 (XCUINT): Likewise.
24025 (XCMODE): Likewise.
24026 (XCBITMAP): Likewise.
24027 (XCTREE): Likewise.
24028 (XCBBDEF): Likewise.
24029 (XCADVFLAGS): Likewise.
24030 (XCCSELIB): Likewise.
24031 (XC2EXP): Likewise.
24032 (INSN_UID): Likewise.
24033 (PREV_INSN): Likewise.
24034 (PATTERN): Likewise.
24035 (INSN_CODE): Likewise.
24036 (PUT_REG_NOTE_KIND): Likewise.
24037 (CODE_LABEL_NUMBER): Likewise.
24038 (NOTE_SOURCE_FILE): Likewise.
24039 (NOTE_BLOCK): Likewise.
24040 (NOTE_EH_HANDLER): Likewise.
24041 (NOTE_RANGE_INFO): Likewise.
24042 (NOTE_LIVE_INFO): Likewise.
24043 (NOTE_BASIC_BLOCK): Likewise.
24044 (NOTE_EXPECTED_VALUE): Likewise.
24045 (NOTE_LINE_NUMBER): Likewise.
24046 (LABEL_NAME): Likewise.
24047 (LABEL_NUSES): Likewise.
24048 (LABEL_ALTERNATE_NAME): Likewise.
24049 (ADDRESSOF_DECL): Likewise.
24050 (JUMP_LABEL): Likewise.
24051 (LABEL_NEXTREF): Likewise.
24053 (ORIGINAL_REGNO: Likewise.
24054 (HARD_REGISTER_NUM_P): Add parenthesis.
24055 (SUBREG_REG): Whitespace.
24056 (SUBREG_BYTE): Likewise.
24057 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
24058 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
24059 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
24060 (ASM_OPERANDS_INPUT_VEC): Likewise.
24061 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
24062 (ASM_OPERANDS_INPUT): Likewise.
24063 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
24064 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
24065 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
24066 (ASM_OPERANDS_INPUT_MODE): Likewise.
24067 (ASM_OPERANDS_SOURCE_FILE): Likewise.
24068 (ASM_OPERANDS_SOURCE_LINE): Likewise.
24069 (MEM_SET_IN_STRUCT_P): Minor reformat.
24070 (TRAP_CONDITION): Whitespace.
24071 (TRAP_CODE): Likewise.
24072 (COND_EXEC_TEST): Likewise.
24073 (COND_EXEC_CODE): Likewise.
24074 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
24075 (PHI_NODE_P): Add parenthesis.
24076 (plus_constant): Whitespace and add parenthesis.
24078 2002-01-03 Kazu Hirata <kazu@hxi.com>
24080 * config/avr/avr.c: Fix comment typos.
24081 * config/c4x/c4x.md: Likewise.
24082 * config/dsp16xx/dsp16xx.h: Likewise.
24083 * config/dsp16xx/dsp16xx.md: Likewise.
24084 * config/i386/i386.md: Likewise.
24085 * config/ia64/ia64.c: Likewise.
24086 * config/m32r/m32r.h: Likewise.
24087 * config/m68hc11/m68hc11.md: Likewise.
24088 * config/mmix/mmix.c: Likewise.
24089 * config/mn10200/mn10200.c: Likewise.
24090 * config/romp/romp.c: Likewise.
24091 * config/sh/sh.c: Likewise.
24092 * config/stormy16/stormy16.c: Likewise.
24093 * config/stormy16/stormy16.h: Likewise.
24094 * config/stormy16/stormy16.md: Likewise.
24096 2002-01-03 Graham Stott <grahams@redhat.com>
24098 * loop.h: Update copyright date.
24099 (LOOP_MOVABLES): Fix typo.
24100 (LOOP_REGS): Likewise.
24101 (LOOP_IVS): Likewise.
24103 2002-01-03 Graham Stott <grahams@redhat.com>
24105 * cppinit.c: Update copyright date.
24106 Don't include output.h
24107 * Makefile.in: Update copyright date.
24110 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
24113 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
24114 (-pthread) Add to RS/6000 options.
24116 2002-01-02 Kazu Hirata <kazu@hxi.com>
24118 * except.c: Fix comment typos.
24119 * loop.c: Likewise.
24120 * varasm.c: Likewise.
24121 * doc/tm.texi: Fix a typo.
24123 2002-01-02 Jakub Jelinek <jakub@redhat.com>
24125 * c-typeck.c (output_init_element): Allow initializing static storage
24126 duration objects with compound literals.
24128 2002-01-02 Richard Henderson <rth@redhat.com>
24130 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
24133 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24135 * gcc.c (default_compilers): Const-ify.
24136 * mips-tdump.c (stab_names): Likewise.
24137 * mips-tfile.c (map_coff_types, map_coff_storage,
24138 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
24139 pseudo_ops_t, pseudo_ops): Likewise.
24140 * protoize.c (default_include): Likewise
24142 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
24143 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
24144 Add array size in declaration.
24145 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
24146 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
24147 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
24148 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
24149 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
24150 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
24151 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
24152 emtens, make_nan): Const-ify.
24153 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
24154 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
24156 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
24158 * config.gcc (ia64-*-*): Set extra_headers.
24159 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
24160 * config/alpha/t-osf: Remove.
24161 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
24163 2002-01-02 David Edelsohn <edelsohn@gnu.org>
24165 * config/rs6000/t-aix43: Revert previous change.
24167 2002-01-02 Jason Merrill <jason@redhat.com>
24169 * c-decl.c (c_expand_body): Call outlining_inline_function when
24170 emitting an inline function out of line.
24172 2002-01-02 Richard Henderson <rth@redhat.com>
24174 * dwarf2out.c (limbo_die_node): Add created_for member.
24175 (new_die): New argument created_for. Update all callers.
24176 (mark_limbo_die_list): New.
24177 (dwarf2out_init): Register limbo_die_list as a root.
24178 (dwarf2out_finish): Force insert limbo dies into their function
24181 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
24184 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
24186 2002-01-02 Kazu Hirata <kazu@hxi.com>
24188 * config/h8300/fixunssfsi.c: Update copyright.
24191 * config/h8300/h8300.c: Update copyright.
24192 Eliminate warnings.
24194 2002-01-02 Kazu Hirata <kazu@hxi.com>
24196 * config/romp/romp.c: Fix comment formatting.
24197 * config/romp/romp.h: Likewise.
24198 * config/romp/romp.md: Likewise.
24199 * config/s390/s390.c: Likewise.
24200 * config/stormy16/stormy16.c: Likewise.
24201 * config/stormy16/stormy16.h: Likewise.
24203 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
24205 * c-common.h (genrtl_expr_stmt_value): Declare.
24206 * c-semantics.c (genrtl_goto_stmt): Redirect to...
24207 (genrtl_goto_stmt_value): ... this new function. Pass new
24208 argument down to expand_expr_stmt_value, taking
24209 TREE_ADDRESSABLE into account.
24210 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
24211 STMT_EXPR as addressable, i.e., one whose result we want.
24212 * expr.c (expand_expr): Don't save expression statement value
24213 of labeled_blocks or loop_exprs.
24214 * stmt.c (expand_expr_stmt): Redirect to...
24215 (expand_expr_stmt_value): ... this new function. Use new
24216 argument to tell whether to save expression value.
24217 (expand_end_stmt_expr): Reset last_expr_type and
24218 last_expr_value if we don't have either.
24219 * tree-inline.c (declare_return_variable): Mark its use
24220 statement as addressable.
24221 * tree.h: Document new use of TREE_ADDRESSABLE.
24222 (expand_expr_stmt_value): Declare.
24224 2002-01-01 Tom Rix <trix@redhat.com>
24226 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
24227 rs6000_emit_allocate_stack.
24229 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
24231 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
24232 ${srcdir}/ginclude/ to every entry in extra_headers.
24233 * configure: Regenerate.
24234 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
24235 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
24236 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
24237 * ginclude/proto.h: Rename to config/convex/proto.h.
24239 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24241 * attribs.c (handle_vector_size_attribute): Use host_integerp
24242 and tree_int_cst; remove warnings.
24243 * caller-save.c (insert_restore): Add cast to get rid of warning.
24244 (insert_save): Likewise.
24245 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
24246 * regmove.c (find_matches): Add temporary var to kill a warning.
24248 2002-01-01 Douglas B Rupp <rupp@gnat.com>
24250 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
24251 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
24252 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
24253 (vms-dwarf2eh.o): Add Makefile rule.
24254 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
24255 * config/alpha/vms-dwarf2eh.asm: New file.
24257 * gcc.c (delete_if_ordinary): Delete all versions.
24259 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
24261 * config/mmix/mmix.md: Update FIXME to not mention
24263 (MMIX_rJ_REGNUM): New define_constants constant.
24264 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
24265 "*movdicc_real"): Adjust contraints formatting.
24266 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
24267 for branch prediction.
24268 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
24270 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
24271 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
24272 number. Delete related FIXMEs.
24273 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
24274 from number to MMIX_rJ_REGNUM.
24275 (TARGET_MASK_BRANCH_PREDICT): New.
24276 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
24277 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
24278 value. Add -mbranch-predict and -mno-branch-predict.
24279 (TARGET_VERSION): Drop date.
24280 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
24281 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
24282 for finding out global symbols.
24283 (mmix_asm_output_labelref): Revert condition for global symbol.
24284 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
24285 (mmix_print_operand_punct_valid_p): A '+' is valid.
24287 See ChangeLog.6 for earlier changes.