1 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
3 * gengtype.h (xvasprintf): New prototype.
4 (xasprintf): New prototype.
6 (get_output_file): Return an outf_p.
7 (header_file): Is now an outf_p.
8 (base_files): Now are outf_p.
10 * gengtype.c: Replace all output FILE * with outf_p; use oprintf
11 rather than stdio operations. Use xasprintf in a few places,
15 (struct filemap): Delete.
19 (create_file): Create an outf_p. Add parameter to indicate output
20 file name, change all callers.
21 (open_base_files): Create gtype-desc.c here.
22 (get_output_file_with_visibility): Rewrite.
23 (get_output_file_name): Just look at 'name' field in struct outf.
24 (close_output_files): Rewrite.
26 2002-06-12 Jason Thorpe <thorpej@wasabisystems.com>
28 * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
29 (MASK_G_FLOAT): Define.
30 (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
31 (TARGET_SWITCHES): Likewise.
32 (TARGET_DEFAULT): Likewise.
34 2002-06-12 Daniel Jacobowitz <drow@mvista.com>
36 * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
37 * config/mips/mips.c (mips_output_filename): Don't print a
38 ".file" directive if we are using DWARF-2.
39 (mips_output_function_prologue): Do not emit source file
42 Wed Jun 12 16:45:13 CEST 2002 Jan Hubicka <jh@suse.cz>
44 * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
45 decide whether emit the short opcode.
46 * i386.h (x86_shift1): Declare.
47 (TARGET_SHIFT1): New macro.
48 * i386.c (x86_shift1): New global variable.
50 * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
51 unconditionally; make loop to rebuild CFG; kill unnecesary
52 find_basic_block calls; kill compute_bb_for_insn call.
53 * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
54 * haifa-sched.c (sched_init): Likewise.
55 * ssa-ccp.c (ssa_const_prop): Likewise.
56 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
58 2002-06-11 David S. Miller <davem@redhat.com>
60 * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
63 2002-06-11 Richard Henderson <rth@redhat.com>
65 * c-common.c (builtin_define_type_max): New.
66 (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
67 __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
70 * glimits.h: Rewrite to expect the double underscore definitions
73 * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
74 config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
75 config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
76 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
77 config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
78 config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
79 config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
80 __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
82 2002-06-11 Richard Henderson <rth@redhat.com>
84 * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
85 (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
86 (code_for_builtns): Update.
87 (alpha_init_builtins): Add __builtin_thread_pointer and
88 __builtin_set_thread_pointer.
89 (alpha_expand_builtin): Handle void builtins.
90 * doc/extend.texi (Alpha Built-in Functions): Update.
92 2002-06-11 Hans-Peter Nilsson <hp@axis.com>
95 * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
97 2002-06-11 Zack Weinberg <zack@codesourcery.com>
99 * config.gcc: Make the name of the extra-modes file adjustable
101 (s390x, strongarm, xscale stanzas): Use this facility.
102 * configure.in: Update to match.
103 * configure: Regenerate.
105 2002-06-11 Aldy Hernandez <aldyh@redhat.com>
107 * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
108 max/mins as unsigned GE compares.
110 2002-06-11 Jason Thorpe <thorpej@wasabisystems.com>
112 * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
113 * config/vax/bsd.h: New file.
114 * config/vax/netbsd.h: Add missing notice.
115 (CPP_PREDEFINES): Remove.
116 (TARGET_OS_CPP_BUILTINS): Define.
117 (CPP_SPEC): Use NETBSD_CPP_SPEC.
118 * config/vax/openbsd.h: Update copyright years.
119 (CPP_PREDEFINES): Remove.
120 (TARGET_OS_CPP_BUILTINS): Define.
121 * config/vax/ultrix.h: Likewise.
122 * config/vax/vaxv.h: Likewise.
123 * config/vax/vms.h: Likewise.
124 * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
125 (CPP_PREDEFINES, CPP_SPEC): Remove.
127 Wed Jun 12 01:50:28 CEST 2002 Jan Hubicka <jh@suse.cz>
129 * i386.md (addqi_1_slp, subqi_1_slp
130 (andqi_ext0, testqi_ext0): Remove unnecesary check.
131 (addhi*, addqi*): Simplify "dec" condition.
132 (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
133 (and, or, xor to QImode splitters): New.
136 (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
137 (andqi_ext_1_rex64): New.
144 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
146 * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
148 * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
149 (CPP_ENDIAN_LITTLE_SPEC): Delete.
150 * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
151 * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
152 __LONG_DOUBLE_128__ setting, _CALL_* setting.
153 (CPP_DEFAULT_SPEC): Delete.
154 (CPP_FLOAT_DEFAULT_SPEC): Delete.
155 (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
156 (CPP_SYSV_DEFAULT_SPEC): Delete.
157 (CPP_ENDIAN_BIG_SPEC): Delete.
158 (CPP_ENDIAN_LITTLE_SPEC): Delete.
159 (CPP_ENDIAN_SPEC): Delete.
160 (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
161 (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
162 cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
163 cpp_longdouble_default.
164 * config/rs6000/softfloat.h: Delete.
165 * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
166 (EXTRA_SPECS): Delete cpp_cpu.
167 (TARGET_CPU_CPP_BUILTINS): New.
168 * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
170 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
171 * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
172 (CPP_DEFAULT_SPEC): Delete.
173 * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
174 * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
175 * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
176 (CPP_DEFAULT_SPEC): Delete.
177 * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
178 (CPLUSPLUS_CPP_SPEC): Likewise.
179 (CPP_CPU_SPEC): Delete.
180 (CPP_DEFAULT_SPEC): Delete.
181 * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
182 (CPLUSPLUS_CPP_SPEC): Likewise.
183 (CPP_CPU_SPEC): Delete.
184 (CPP_DEFAULT_SPEC): Delete.
185 * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
186 (CPP_DEFAULT_SPEC): Delete.
187 * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
188 (CPP_DEFAULT_SPEC): Delete.
190 * doc/gty.texi: Small updates.
192 2002-06-12 Gabriel Dos Reis <gdr@codesourcery.com>
194 * objc/objc-act.c (warn_with_ivar): Adjust calls to
195 diagnostic_count_error.
196 (warn_with_method): Likewise.
198 * diagnostic.h (warnings_are_errors_message): New field of
200 (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
202 * diagnostic.c: Adjust calls to diagnostic_count_error through out.
203 (diagnostic_count_diagnostic): Make aware of other kinds of
205 (diagnostic_initialize): Initialize warnings_are_errors_message field.
207 2002-06-11 Tom Tromey <tromey@redhat.com>
210 * fold-const.c (fold_convert): Don't modify existing tree's type.
212 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
214 * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
216 2002-06-11 Richard Henderson <rth@redhat.com>
218 * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
220 2002-06-11 Richard Henderson <rth@redhat.com>
222 * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
223 DWARF2_UNWIND_INFO is false.
225 2002-06-11 Bob Wilson <bob.wilson@acm.org>
227 * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
229 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
231 * config/s390/s390.c (emit_prologue): gen_store_multiple
232 returns an insn now, not a pattern.
234 2002-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
236 * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
239 Tue Jun 11 21:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
241 * i386.c (x86_promote_QImode): Set for Athlon
242 (x86_fast_prefix): New global variable.
243 (x86_arch_always_fancy_math_387): Fix formating.
244 * i386.h (x86_fast_prefix): Declare
245 (TARGET_FAST_PREFIX): define.
246 * i386.md (and to strict_low_part, HI to SI
247 promoting splitter): Use new macro.
249 * i386.h (RTX_COSTS): float_extend is not for free for SSE.
251 2002-06-11 Zack Weinberg <zack@codesourcery.com>
253 * Makefile.in (distclean): Delete junk left in testsuite
256 2002-06-11 Jeffrey Law <law@redhat.com>
258 * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
259 last insn created by the splitter.
261 * caller-save.c (init_caller_save): Move creation of SAVEINSN
262 and RESTINSN into into the scope of the sequence.
264 * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
267 * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
269 * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
270 not the pattern. So extract the pattern from the insn.
272 * mips.c (embedded_pic_fnaddr_reg): Fix typo.
274 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
276 * config/s390/s390.md (movsi): Only use floating point
277 register alternatives when operands are already fprs.
278 (movdi_31, movdi_64): Likewise.
280 2002-06-11 David S. Miller <davem@redhat.com>
282 * emit-rtl.c (try_split): Do not abort on non-INSN_P.
283 Only run RTX equality checks on INSN_P rtl.
285 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
287 * config/s390/s390.md (reload_base, ltorg): Remove.
288 * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
289 s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
290 * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
291 s390_asm_output_pool_prologue): Likewise.
292 * s390.h (s390_pool_start_insn): Likewise.
294 * s390.c (s390_output_symbolic_const): Remove support for
295 old-style pool chunks.
296 (s390_function_epilogue): Likewise.
297 (s390_output_constant_pool): Likewise. Also, fix incorrect
298 alignment for 64-bit literal pools.
299 (print_operand_address): Remove 'y' and 'Y' format flags.
300 * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
301 old-style pool chunks.
302 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
303 (ASM_OUTPUT_POOL_EPILOGUE): Remove.
304 (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
306 * s390.c (consttable_operand): New function.
307 * s390-protos.h (consttable_operand): Declare it.
308 * s390.h (PREDICATE_CODES): Add consttable_operand.
309 * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
310 consttable_sf, consttable_df, pool_start_31, pool_end_31,
311 pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
312 * s390.c (struct constant, struct constant_pool): New data types.
313 (constant_modes, gen_consttable): New variables.
314 (s390_start_pool, s390_end_pool, s390_add_pool,
315 s390_dump_pool, s390_free_pool): New functions.
316 (s390_chunkify_pool): Completely reimplement literal pool
319 * s390.c (s390_pool_overflow): New variable.
320 * s390.h (s390_pool_overflow): Declare it.
321 * s390.md (cjump, icjump): Use it to adapt length for out-of-range
322 jumps in literal pool overflow situations.
324 * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
325 (s390_frame_info): Account for possible use of RETURN_REGNUM
326 by new literal pool overflow code.
327 (s390_emit_prologue): Likewise.
329 2002-06-05 David S. Miller <davem@redhat.com>
331 Delete SEQUENCE rtl usage outside of reorg and ssa passes.
332 * rtl.h (gen_sequence, emit_insns, emit_insns_before,
333 emit_insns_before_scope, emit_insns_after,
334 emit_insns_after_scope): Delete declaration.
335 * ada/misc.c (insert_code_for): Use emit_insn* instead of
337 * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
338 (alpha_set_memflags): Fix comment.
339 (set_frame_related_p): Use get_insns instead of gen_sequence.
340 * config/alpha/alpha.md (setjmp receiver splitter): Avoid
342 * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
344 (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
345 * config/fr30/fr30.c (fr30_move_double): Likewise.
346 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
348 * config/ia64/ia64.c (spill_restore_mem): Likewise.
349 * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
351 * config/m32r/m32r.c (gen_split_move_double): Use get_insns
352 instead of gen_sequence.
353 * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
354 (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
355 * config/sh/sh.c (sh_need_epilogue): Likewise.
356 * config/sparc/sparc.md (current_function_calls_alloca, flat): New
358 (setjmp pattern and split): Use them to avoid splitter which emits
360 * genattrtab.c (main): Emit include of function.h
361 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
362 get_insns instead of gen_sequence.
363 * config/cris/cris.c (cris_split_movdx): Likewise.
364 * emit-rtl.c (emit_insns*): Kill.
365 (try_split): Expect insn list instead of SEQUENCE.
366 (make_jump_insn_raw, make_call_insn_raw): Fix comments.
367 (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
368 Make them abort if a SEQUENCE is given and RTL checking is
370 (emit_*_scope): Don't forget to set scope on final insn.
371 (gen_sequence): Move from here...
372 * ssa.c (gen_sequence): To here as private function.
373 * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
375 (expand_builtin_return, expand_builtin_mathfn): Likewise.
376 (expand_builtin_strlen): Use get_insns instead of gen_sequence.
377 (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
378 (expand_builtin_expect_jump): Use get_insns and fix comments.
379 * calls.c (try_to_integrate): Use emit_insn_foo.
380 (expand_call, emit_library_call_value_1): Likewise.
381 * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
382 (emit_move_insn_1): Use get_insns instead of gen_sequence.
383 (expand_expr): Use emit_insn_foo.
384 * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
385 * except.c (build_post_landing_pads): Likewise.
386 * flow.c (attempt_auto_inc): Likewise.
387 * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
388 expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
389 * function.c (fixup_var_refs_insn): Use get_insns instead of
391 (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
392 (fixup_memory_subreg): Use get_insns instead of gen_sequence.
393 (fixup_stack_1, purge_addressof_1, expand_main_function,
394 get_arg_pointer_save_area): Likewise.
395 (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
396 expand_function_end): Use emit_insn_foo.
397 (record_insns, keep_stack_depressed): Work with insn list instead
398 of SEQUENCE, fix comments.
399 * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
400 noce_try_store_flag_constants, noce_try_store_flag_inc,
401 noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
402 noce_try_minmax, noce_try_abs): Use emit_insn_foo.
403 (noce_process_if_block): Use get_insns instead of gen_sequence.
404 * optabs.c (add_equal_note): Work with insn list, fix comments.
405 (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
406 (expand_unop, expand_complex_abs, expand_unop_insn,
407 expand_no_conflict_block): Likewise.
408 (gen_move_insn): Use get_insns instead of gen_sequence.
409 (gen_cond_trap): Likewise.
410 * integrate.c (copy_rtx_and_substitute): Likewise.
411 (emit_initial_value_sets): Use emit_insn_foo.
412 * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
413 (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
414 now that RTL generators give insn lists.
415 * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
416 * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
417 instead of gen_sequence.
418 (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
419 * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
420 instead of gen_sequence.
421 * loop.c (move_movables, emit_prefetch_instructions,
422 gen_add_mult, check_dbra_loop, gen_load_of_final_value):
424 (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
425 (product_cheap_p): Likewise, and add commentary about RTL wastage
427 * lcm.c (optimize_mode_switching): Use get_insns instead of
429 * profile.c (gen_edge_profiler): Likewise.
430 * regmove.c (copy_src_to_dest): Likewise.
431 * reg-stack.c (compensate_edge): Likewise and fix comment.
432 * gcse.c (process_insert_insn): Likewise.
433 (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
434 * jump.c (delete_prior_computation): Update comment.
435 * genemit.c (gen_expand, gen_split, main): Use get_insns instead
436 of gen_sequence, update comments to match.
437 * recog.c (peephole2_optimize): Work with insn lists instead of
439 * sched-vis.c (print_pattern): Abort on SEQUENCE.
440 * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
441 Use get_insns instead of gen_sequence.
442 (copy_loop_body): Likewise and don't emit dummy NOTE.
443 * genrecog.c: Don't mention SEQUENCE rtl in comments.
444 * combine.c (try_combine): Expect insn lists from split generator.
445 * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
448 2002-06-11 Roger Sayle <roger@eyesopen.com>
449 Andreas Jaeger <aj@suse.de>
451 * cfgbuild.c: Update copyright years.
453 2002-06-11 Andreas Schwab <schwab@suse.de>
455 * config/m68k/m68k.h (PREDICATE_CODES): Define.
457 2002-06-11 Eric Christopher <echristo@redhat.com>
459 * doc/tm.texi (Run-time Target): Add comment about flag_iso
461 * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
462 * config/mips/ecoffl.h: Ditto.
463 * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
464 (CPP_PREDEFINES): Ditto.
465 * config/mips/elfl64.h: Ditto.
466 * config/mips/elfl.h: Ditto.
467 * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
468 out until irix header consolidation.
469 * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
470 with SUBTARGET_OS_CPP_BUILTINS.
471 * config/mips/iris6.h: Ditto.
472 (CPLUSPLUS_CPP_SPEC): Remove.
473 * config/mips/linux.h: Ditto.
474 * config/mips/netbsd.h: Ditto.
475 * config/mips/openbsd.h: Ditto.
476 * config/mips/rtems.h: Ditto.
477 * config/mips/rtems64.h: Ditto.
478 * config/mips/sni-svr4.h: Ditto.
479 * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
480 ISA_MIPS32, ISA_MIPS64): New defines.
481 (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
482 ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
483 ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
484 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
485 (TARGET_CPU_CPP_BUILTINS): Define.
486 (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
487 * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
488 (movdicc): Remove check for ISA_MIPS32.
489 (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
490 sunordered_df, sunordered_sf, sordered_df, sordered_sf,
491 sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
492 sunge_sf, sunle_df, sunle_sf): New patterns.
494 2002-06-11 Neil Booth <neil@daikokuya.demon.co.uk>
496 * Makefile.in: Update cppmain.o.
497 * cpphash.h (struct cpp_reader): Move some members to a
499 (trad_line): Rename saved_line.
500 (_cpp_read_logical_line_trad): Update.
501 (_cpp_remove_overlay): New.
502 * cppinit.c (cpp_create_reader): No need to set saved_line.
503 (cpp_destroy): Update.
504 (cpp_read_main_file): Only overlay if compiling.
505 * cpplex.c (continue_after_nul): Return false if in directive.
506 * cpplib.c (EXPAND): New.
507 (directive_table, SEEN_EOL): Update.
508 (end_directive): Remove overlay if traditional; don't skip
509 line in traditional #define.
510 (prepare_directive_trad): New.
511 (_cpp_handle_directive, run_directive): Update for traditional
513 (lex_macro_node): Simplify, don't use lex_identifier_trad.
514 * cpplib.h (struct options): Add preprocess_only.
515 * cppmain.c: Don't include intl.h.
516 (cpp_preprocess_file): Set options->preprocess_only.
517 (scan_translation_unit_trad): Fix, and print line numbers.
518 * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
519 maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
520 save_replacement_text, _cpp_create_trad_definition): Update for
522 (_cpp_overlay_buffer): Save line number.
523 (_cpp_remove_overlay): Rename from restore_buff, restore line.
524 (_cpp_read_logical_line_trad): Don't handle overlays here.
525 (scan_out_logical_line): Process directives.
527 2002-06-11 Danny Smith <dannysmith@users.sourforge.net>
529 * gthr-win32.h: Wrap functions in extern "C".
530 (__gthread_key_t): Typedef as unsigned long,
532 (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
533 (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
534 (__gthr_win32_once, __gthr_win32_key_create,
535 __gthr_win32_key_delete, __gthr_win32_getspecific,
536 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
537 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
538 __gthr_win32_mutex_unlock): Declare.
539 (__gthread_once,__gthread_key_create,
540 __gthread_key_delete, __gthread_getspecific,
541 __gthread_setspecific, __gthread_mutex_init_function,
542 __gthread_mutex_lock,__gthread_mutex_trylock,
543 __gthread_mutex_unlock): Call corresponding
544 __gthr_win32_* extern implementations if #defined
545 __GTHREAD_HIDE_WIN32API.
546 * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
547 $(srcdir)/config/i386/gthr-win32.c
548 * config/i386/gthr-win32.c: New implementation file.
549 (__gthr_win32_once, __gthr_win32_key_create,
550 __gthr_win32_key_delete, __gthr_win32_getspecific,
551 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
552 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
553 __gthr_win32_mutex_unlock): New functions, based on
554 static inlines in gthr-win32.h.
556 2002-06-10 Bob Wilson <bob.wilson@acm.org>
558 * config/xtensa/xtensa.c (override_options): Don't warn about
559 using -fpic or -fPIC when PIC is enabled by default.
561 2002-06-10 Roger Sayle <roger@eyesopen.com>
563 * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
565 2002-06-10 Zack Weinberg <zack@codesourcery.com>
567 * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
568 * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
569 exists, substitute its pathname as @extra_modes_file@, define
570 EXTRA_MODES_FILE to be an appropriate string to #include it
571 with, and define EXTRA_CC_MODES to 1.
573 * machmode.def: Update comments. Include EXTRA_MODES_FILE if
574 it's defined. Get rid of redundancy in calling sequence for
575 CC; don't use it to define CCmode, to avoid a warning.
576 * libgcc2.c: Include symcat.h for the sake of machmode.def.
578 * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
579 i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
580 pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
582 * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
583 pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
585 * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
586 defining extra CC modes.
588 2002-06-10 Roger Sayle <roger@eyesopen.com>
589 Andreas Jaeger <aj@suse.de>
591 * cfgrtl.c (create_basic_block_structure): Remove index argument
592 and use last_basic_block++ instead. (create_basic_block): Update.
593 * cfgbuild.c (find_basic_blocks_1): Likewise.
595 * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
596 * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
597 * sched-ebb.c (schedule_ebbs): Likewise.
598 * sched-rgn.c (schedule_insns): Likewise.
599 * ssa-ccp.c (ssa_const_prop): Likewise.
600 * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
601 * toplev.c (rest_of_compilation): Likewise.
602 * config/ia64/ia64.c (ia64_reorg): Likewise.
604 2002-06-10 Roger Sayle <roger@eyesopen.com>
606 * simplify-rtx.c (simplify_replace_rtx): Allow replacement
607 of matching registers.
609 2002-06-10 Roger Sayle <roger@eyesopen.com>
611 * toplev.c (rest_of_compilation): Disable early if-conversion pass.
612 * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
614 2002-06-10 Hans-Peter Nilsson <hp@bitrange.com>
616 * config/mmix/mmix.h: Improve comments.
617 (CPP_SPEC, CPP_PREDEFINES): Don't define.
618 (TARGET_CPU_CPP_BUILTINS): Define.
619 (CANONICALIZE_COMPARISON): Don't define, replace with comment.
620 (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
622 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
624 (mmix_constant_address_p): Remove another
625 redundant test before case.
626 (mmix_canonicalize_comparison): Remove unused function.
627 (mmix_print_operand_address): Don't test and adjust for operand in
628 non-canonical format.
629 (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
630 (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
632 2002-06-10 Zack Weinberg <zack@codesourcery.com>
634 * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
635 * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
636 * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
637 (gen_compare): Use CCmode unconditionally.
639 2002-06-10 Jakub Jelinek <jakub@redhat.com>
642 * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
645 2002-06-10 Jakub Jelinek <jakub@redhat.com>
648 * c-decl.c (grokfield): Allow user defined types if they declare
649 structs or unions for unnamed fields.
651 2002-06-10 Jakub Jelinek <jakub@redhat.com>
654 * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
656 2002-06-10 Jakub Jelinek <jakub@redhat.com>
659 * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
660 operand subreg cannot be simplified.
662 2002-06-10 Jakub Jelinek <jakub@redhat.com>
664 * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
665 (compare_constant): Likewise.
666 (output_addressed_constants): Likewise.
668 2002-06-10 Jakub Jelinek <jakub@redhat.com>
670 * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
671 merge bb with itself.
673 2002-06-10 Richard Henderson <rth@redhat.com>
675 * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
676 (builtin_zapnot): Likewise.
678 * config/alpha/ev5.md: Don't combine shift and mvi insns in one
681 2002-06-10 Eric Christopher <echristo@redhat.com>
683 * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
684 prototype and function.
685 (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
686 (call_insn_operand): Remove half pic references.
687 (legitimate_address_p): Ditto.
688 * config/i386/i386.h: Remove half pic defines.
690 2002-06-10 Eric Christopher <echristo@redhat.com>
692 * doc/extend.texi (Return Address): Add note explaining the side-
693 effects of inlining on __builtin_return_address.
695 2002-06-10 Tom Tromey <tromey@redhat.com>
697 * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
698 (c-common.o): Depend on langhooks.h.
700 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
702 * cpphash.h (_cpp_read_logical_line_trad,
703 _cpp_expansions_different_trad): Update prototypes.
704 * cpplex.c (continue_after_nul): New.
705 * cppmain.c: Include cpphash.h.
706 (scan_translation_unit_trad): New.
707 (cpp_preprocess_file): Call it.
708 * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
710 (_cpp_expansions_different_trad): Update prototype.
712 Mon Jun 10 18:02:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
714 Fix cfi generation for SH[1-4]:
716 * sh.c (frame_insn): New function.
717 (output_stack_adjust): Add parameter emit_fn. All callers changed.
718 (push): Now returns rtx. Use frame_insn.
719 (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
721 * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
723 2002-06-10 Zack Weinberg <zack@codesourcery.com>
725 * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
727 (mostlyclean): Delete specs.h, options.h, gencheck.h here...
728 (distclean): ... not here. But do delete all testsuite/*.log,
729 testsuite/*.sum files here. Delete mkheaders. Delete
730 po/*.gmo and the testsuite directory in a split tree build.
732 2002-06-10 Jeffrey Law <law@redhat.com>
734 * alias.c (static_reg_base_value): New to hold RTL for
735 items allocated once per function for the aliasing code.
736 (init_alias_once_per_function): Initialize static_reg_base_value.
737 (init_alias_analysis): Avoid throw-away allocations of RTL by
738 using pre-computed values in static_reg_base_value.
739 * function.c (prepare_function_start): Call
740 init_alias_once_per_function appropriately.
741 * rtl.h (init_alias_once_per_function): Declare.
742 * caller-save (init_caller_save): Restructure slightly to
743 avoid lots of silly RTL generation.
744 * expr.c (init_expr_once): Likewise.
745 * reload1.c (reload_cse_regs_1): Allocate throw-away register
746 RTL object here. Pass it into children.
747 (reload_cse_simplify_operands): Use passed-in register RTL
749 (reload_cse_simplify): Pass through throw-away register
752 2002-06-10 Daniel Berlin <dberlin@dberlin.org>
754 * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
756 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
758 * gcc.c (process_command): Avoid assignment to read-only location.
759 Fix sizeof calculation.
761 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
763 * cpphash.h (struct cpp_macro): Put comments on their own lines.
764 (_cpp_expansions_different_trad): New.
765 * cppmacro.c (warn_of_redefinition): Fix for traditional case.
766 * cpptrad.c (canonicalize_text): New.
767 (scan_out_logical_line): Handle no arguments correctly.
768 (save_replacement_text): Commit memory when finished.
769 (_cpp_expansions_different_trad): New.
771 2002-06-10 Tim Josling <tej@melbpc.org.au>
773 * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
775 (lang_names): Add treelang and cobol.
776 (get_file_basename): Add code to support treelang and cobol as
777 4th and 5th users of c-common.c.
779 2002-06-09 Geoffrey Keating <geoffk@redhat.com>
781 * Makefile.in (install-driver): Install driver as
782 $(target_alias)-gcc-$(version).
783 * gcc.c (spec_version): Make const.
784 (process_command): Handle -V and -b by using exec.
785 * doc/invoke.texi (Target Options): Restore -V option,
786 update docs for -b option.
788 2002-06-10 Tim Josling <tej@melbpc.org.au>
790 * configure.in (remaining_languages_check):
791 Added check that all languages specified were found.
792 Exit if not found. Previous behaviour was silent failure.
793 * configure: Regenerated.
795 2002-06-10 Tim Josling <tej@melbpc.org.au>
797 First steps to making treelang documentation compliant, based on
798 instructions in sourcebuild.texi. Also add to gcc.c list of
801 * doc/contrib.texi: Add self as contributor of treelang.
803 * doc/frontends.texi: Add mention of treelang.
805 * doc/invoke.texi (Overall Options): Add mention of treelang.
807 * doc/standards.texi: Add mention of treelang.
809 2002-06-09 Hans-Peter Nilsson <hp@axis.com>
811 * config/cris/cris.c: Include ggc.h
813 2002-06-09 Neil Booth <neil@daikokuya.demon.co.uk>
815 * cpphash.h (_cpp_push_text_context): Update.
816 (_cpp_arguments_ok): New.
817 * cppmacro.c (_cpp_arguments_ok): New, split out from...
818 (collect_args): ...here.
819 (_cpp_push_text_context): Change inputs.
820 * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
821 replace_args_and_push): New.
822 (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
823 Don't use IS macros directly.
824 (scan_out_logical_line): Handle function-like macro argument
826 (push_replacement_text): Update.
827 (replacement_length): Remove.
828 (_cpp_create_trad_definition): Don't skip whitespace before
831 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
833 * config/avr/avr.c (avr_mcu_types): Update for new devices.
834 * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
835 (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
836 * config/avr/avr.md ("type" and "length" attributes): New type
837 "xcall", length 1 or 2 if AVR_MEGA. Use in all patterns that
838 output a single "call" or "rcall" insn depending on device size.
839 * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
841 2002-06-09 David Edelsohn <edelsohn@gnu.org>
843 * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
844 synonym for 630. Add power4. Remove embedded processors. Use -m604
846 (CPP_CPU_SPEC): Add power3 and power4.
847 (PROCESSOR_DEFAULT): Change to 604e.
848 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
849 (CPP_CPU_SPEC): Similar additions.
850 (enum process_type): Add POWER4.
851 (RTX_COSTS): Add POWER4.
852 (CPP_CPU_SPEC): Similar additions.
853 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
854 (PROCESSOR_DEFAULT64): Define.
855 * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
856 (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
858 (rs6000_issue_rate): Add Power4.
859 * config/rs6000/rs6000.md (cpu attr): Add power4.
860 (iu compare): Remove 604, 604e, 620, 630.
861 Add basic Power4 scheduling information.
862 (mfcr/mtcrf): Change type attribute to cr_logical.
864 2002-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
866 * gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add
868 * gengtype-lex.l: Fix format specifier warning.
870 * genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE,
872 * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
873 lieu of isspace/IDchar.
874 * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
875 * read-rtl.c: Likewise for ctype.h. Don't define ISDIGIT or
878 2002-06-08 Zack Weinberg <zack@codesourcery.com>
880 * Makefile.in (LIBCPP_OBJS): Take out version.o.
881 * cpphash.h (cpp_reader): Take out print_version member.
882 * cppinit.c: (cpp_handle_option): Don't do anything with
883 -version. Just set help_only for --version, --target-help.
884 Just set verbose option for -v.
885 (cpp_post_options): Don't print a version string.
887 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
889 * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
890 (avr_section_type_flags): New, handle .noinit* sections.
892 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
894 * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
895 and include netbsd_entry_point.
896 (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
897 (NETBSD_ENTRY_POINT): Define.
899 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
901 * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
902 if not already defined.
903 (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
905 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
907 * config/avr/avr.c (avr_regs_to_save): No need to save any registers
908 in a noreturn function.
909 (avr_output_function_prologue, avr_output_function_epilogue):
910 Correct function size calculation. Do not crash on empty function.
911 (avr_output_function_epilogue): No need for epilogue after a BARRIER.
913 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
915 * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
916 netbsd_link_spec and netbsd_entry_point.
917 (LINK_SPEC): Use %(netbsd_link_spec).
918 (NETBSD_ENTRY_POINT): Define.
920 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
922 * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
924 (LINK_ARCH64_SPEC): Likewise.
925 (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
926 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
928 2002-06-08 Marc Espie <espie@openbsd.org>
930 * lists.c (free_list): Fix typo in comment.
932 2002-06-08 Andreas Jaeger <aj@suse.de>
934 * lcm.c (optimize_mode_switching): Add unused attribute for
937 * sched-deps.c (sched_analyze): Remove unused variable.
939 2002-06-08 Gabriel Dos Reis <gdr@codesourcery.com>
941 * diagnostic.def: Don't capitalize diagnostict descriptors.
943 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
945 * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
946 (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
947 (NETBSD_ENTRY_POINT): Define.
949 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
951 * config/i386/netbsd-elf.h (LINK_SPEC): Define as
952 NETBSD_LINK_SPEC_ELF.
953 (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
954 (NETBSD_ENTRY_POINT): Define.
955 * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
956 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
958 (NETBSD_ENTRY_POINT): Define.
960 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
962 * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
963 netbsd_link_spec and netbsd_entry_point.
964 (LINK_SPEC): Use %(netbsd_link_spec).
965 (NETBSD_ENTRY_POINT): Define.
967 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
969 * config/netbsd-elf.h (LINK_SPEC): Rename to...
970 (NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point)
971 to specify program entry point.
973 2002-06-07 Jeff Law <law@redhat.com
975 * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
976 * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
977 than creating a new register.
978 (distribute_notes): Likewise.
979 * df.c (df_reg_use_gen): Likewise.
980 (df_reg_clobber_gen): Likewise.
981 (df_ref_record): Likewise.
982 * expr.c (use_regs): Likewise.
983 * flow.c (propagate_one_insn): Likewise.
984 (mark_set_1): Likewise.
985 (mark_used_reg): Likewise.
986 * reload.c (emit_reload_insns): Likewise.
988 2002-06-07 Roger Sayle <roger@eyesopen.com>
990 * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
991 (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
992 Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
993 comparison code comp can be reversed.
995 2002-06-07 Roger Sayle <roger@eyesopen.com>
997 * fold-const.c (fold) [EQ_EXPR]: Place both integer and real
998 constants last in comparisons. Optimize (x+1.0)>0.0 into the
999 equivalent x > -1.0 when -ffast-math.
1001 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
1003 * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
1004 * config/mips/t-netbsd: New file.
1006 2002-06-07 Zack Weinberg <zack@codesourcery.com>
1008 * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
1009 options their own entries.
1010 (parse_option): Clarify comment.
1011 (cpp_handle_option): Remove 'ignore' parameter and OPT_W
1012 special case. Replace if/strcmp chain for -W options with
1013 use of new OPT_* entries for them.
1014 (cpp_handle_options): Update to match.
1015 * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
1016 * c-decl.c: Update call to cpp_handle_option.
1018 2002-06-07 Akim Demaille <akim@epita.fr>
1020 * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
1023 2002-06-07 Jeffrey Law <law@redhat.com>
1025 * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
1028 2002-06-07 H.J. Lu (hjl@gnu.org)
1030 * configure.in: Add --enable-__cxa_atexit.
1031 * configure: Regenerated.
1032 * config.in: Likewise.
1034 * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
1037 2002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net>
1039 * diagnostic.c (diagnostic_build_prefix): Fix initialization.
1041 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
1043 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
1045 2002-06-07 Jason Merrill <jason@redhat.com>
1047 * cppexp.c (num_equality_op): Use a temporary variable to work
1048 around gcc 3.0.4 bug.
1050 2002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
1052 * diagnostic.c (diagnostic_build_prefix): Tidy.
1054 2002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
1056 * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
1057 scan_parameters, save_replacement_text, replacement_length): New.
1058 (scan_out_logical_line): Take a macro and save parameters if
1060 (_cpp_logical_line_trad): Update.
1061 (_cpp_create_trad_definition): Update to handle function-like
1063 * cpplex.c (new_buff): Update.
1064 (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
1065 * cpphash.h: ...here.
1066 (CPP_ALIGN2, _cpp_save_parameter): New.
1067 * cppmacro.c (save_parameter): Rename, export.
1068 (parse_params): Update.
1070 2002-06-07 Andreas Jaeger <aj@suse.de>
1072 * config/mmix/mmix.c: Remove extra broken prototype for
1073 mmix_init_machine_status.
1075 2002-06-06 Geoffrey Keating <geoffk@redhat.com>
1077 * gengtype.c: Add comments before all the routines.
1079 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
1081 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
1082 from and add t-sh64 to ${tmake_file}.
1083 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
1084 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
1085 * config/sh/t-netbsd-sh5-32: Remove.
1086 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
1088 (MULTILIB_DIRNAMES): Define.
1090 Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
1092 * i386.md (and promoting splitters): Disable QI to SImode promoting
1093 when doing so changes immediate to be 32bit.
1095 * rtl.h (emit_*_scope): Declare.
1096 * emit-rtl.c (emit_*_scope): New global functions.
1097 (try_split): Copy scope.
1098 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
1099 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
1100 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
1101 noce_process_if_block, find_cond_trap): Copy scopes.
1102 * recog.c (peephole2_optimize): likewise.
1104 2002-06-06 Jeffrey Law <law@redhat.com>
1106 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
1108 Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
1110 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
1112 2002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1114 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
1115 ($(docdir)/gccinstall.info): New target.
1116 (info): Depend on it.
1117 (gccinstall.dvi): New target.
1118 (dvi): Depend on it.
1119 * doc/.cvsignore: Ignore new info files.
1120 * doc/install.texi (@setfilename): Reflect new info filename.
1122 Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
1124 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
1127 Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
1130 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
1131 c_common_get_alias_set.
1132 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
1134 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1136 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
1138 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
1139 * avr/avr.c (avr_output_function_epilogue): Use above to determine
1141 * pa/pa.c (pa_output_function_prologue): Likewise.
1143 2002-06-05 David S. Miller <davem@redhat.com>
1145 * integrate.c (subst_constants): Handle 'B' RTL format.
1147 2002-06-05 Eric Christopher <echristo@redhat.com>
1149 * varasm.c (make_decl_rtl): Fix comment for removed
1152 2002-06-05 Eric Christopher <echristo@redhat.com>
1154 * Makefile.in: Remove missed halfpic bits.
1156 2002-06-05 Eric Christopher <echristo@redhat.com>
1158 * toplev.c: Remove half-pic.
1159 * config/mips/mips.c: Ditto.
1160 * config/mips/mips.h: Ditto. Remove unused defines.
1161 * config/mips/openbsd.h: Update comment to reflect above.
1162 * config/mips/mips.md: Remove half-pic constraints.
1163 * halfpic.h: Delete.
1166 2002-06-05 Jeffrey Law <law@redhat.com>
1168 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
1169 rejects (mem (lo_sum (reg) (unspec))), but will allow
1170 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
1172 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
1174 * cpphash.h (_cpp_create_definition): Update prototype.
1175 (_cpp_push_text_context, _cpp_create_trad_definition): New.
1176 ( cpp_lex_identifier_trad): New.
1177 (_cpp_set_trad_context): New.
1178 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
1179 * cpplib.c (SEEN_EOL): Update.
1180 (lex_macro_node): Update for -traditional.
1181 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
1182 * cppmacro.c (_cpp_create_definition): Split into
1183 create_iso_definition() and _cpp_create_trad_definition().
1184 (warn_of_redefinition): Update prototype; handle traditional
1186 (_cpp_push_text_context): New.
1187 * cpptrad.c (skip_whitespace, push_replacement_text): New.
1188 (lex_identifier): Call ht_lookup with correct start.
1189 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
1190 _cpp_set_trad_context): New.
1191 (scan_out_logical_line): Update to handle changing contexts.
1193 Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
1195 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
1197 * config/sh/t-be (MULTILIB_ENDIAN): Set.
1198 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
1199 * t-sh (MULTILIB_ENDIAN): Set.
1200 (MULTILIB_OPTIONS): Use it.
1201 * t-sh64 (MULTILIB_OPTIONS): Likewise.
1202 (MULTILIB_DIRNAMES): Likewise.
1204 2002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
1206 * toplev.h (report_error_function): Remove.
1208 * diagnostic.h (location_t): New datatype.
1209 (text_info): Likewise.
1210 (diagnostic_info): Likewise.
1211 (output_prefix): New macro.
1212 (diagnostic_last_function_changed): Likewise.
1213 (diagnostic_set_last_function): Likewise.
1214 (diagnostic_last_module_changed): Likewise.
1215 (diagnostic_set_last_module): Likewise.
1216 (report_diagnostic): Now macro.
1217 (diagnostic_set_info): Declare.
1219 * diagnostic.c (report_problematic_module): Rename to
1220 diagnostic_repor_current_module.
1221 (set_diagnostic_context): Remove.
1222 (count_error): Rename to diagnostic_error_count.
1223 (error_function_changed): Remove.
1224 (record_last_error_function): Likewise.
1225 (error_module_changed): Likewise.
1226 (record_last_error_module): Likewise.
1227 (context_as_prefix): Rename to diagnostic_build_prefix.
1228 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
1229 (diagnostic_set_info): New function.
1231 * objc/objc-act.c: #include diagnostic.h
1232 (error_with_ivar): Adjust call to count_error.
1233 (warn_with_method): Likewise.
1234 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
1236 2002-06-05 Bob Wilson <bob.wilson@acm.org>
1238 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
1239 lang_hooks.types.make_type instead of make_node; set up
1240 __va_list_tag type decl.
1241 (xtensa_builtin_saveregs): Remove broken use of
1242 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
1243 for saved registers; add varargs alias set.
1245 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
1248 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
1249 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
1250 CPP_PREDEFINES and part of CPP_SPEC.
1251 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
1252 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
1254 Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
1256 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
1258 2002-06-05 Alan Modra <amodra@bigpond.net.au>
1260 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
1262 2002-06-04 Zack Weinberg <zack@codesourcery.com>
1264 * gengtype-yacc.y: Make sure all rules end with a semicolon.
1266 2002-06-04 Bob Wilson <bob.wilson@acm.org>
1268 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
1269 typo in function prototype and include "ggc.h" header.
1271 2002-06-04 Richard Henderson <rth@redhat.com>
1273 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
1274 (print_operand) ['U']: Likewise.
1275 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
1276 (alpha_expand_unaligned_store_words): Likewise.
1277 (alpha_expand_builtin_vector_binop): Fix typo.
1278 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
1279 umulh, and cix insns.
1280 (one_arg_builtins): Add cix builtins.
1281 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
1282 (alpha_expand_builtin): Fix typo in arity.
1283 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
1284 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
1285 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
1286 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
1287 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
1288 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
1289 builtin_ctlz, builtin_ctpop): New.
1290 * doc/extend.texi (Alpha Built-in Functions): Update.
1292 2002-06-04 Geoffrey Keating <geoffk@redhat.com>
1294 * gengtype.c (write_gc_root): Don't unnecessarily prevent
1295 global variable-length arrays being roots.
1297 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
1298 * configure.in (config_gtfiles): New variable.
1299 (all_gtfiles): Initialise from config_gtfiles.
1300 * configure: Regenerate.
1302 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
1305 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
1306 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
1307 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
1308 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
1309 win32.h (CPP_SPEC): Remove cpp_cpu.
1310 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
1311 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
1313 2002-06-04 Janis Johnson <janis187@us.ibm.com>
1315 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
1317 2002-06-04 Jeff Law <law@redhat.com.
1318 David Edelsohn <edelsohn@gnu.org>
1319 Michael Matz <matz@kde.org>
1321 * sched-int.h (struct deps): New field libcall_block_tail_insn.
1322 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
1323 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
1324 is set, then mark the current insn as being part of a libcall
1326 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
1328 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
1329 insns against the issue rate.
1331 Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
1333 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
1334 * final.c (final_scan_insn): Likewise.
1335 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
1336 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
1337 * haifa-sched.c (unlink_other_notes): Likeewise.
1338 (reemit_notes): Likewise.
1339 * print-rtl.c (print_rtx): Likewise.
1340 * sched-deps (sched-analyze): Likewise.
1341 * rtl.c (note_insn_name): Likewise.
1342 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
1343 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
1346 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1348 * varasm.c (mark_constants): Handle RTX format 'B'.
1350 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
1352 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
1353 (struct cpp_context): Add traditional fields.
1354 * cppmacro.c (paste_all_tokens, push_ptoken_context,
1355 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
1356 * cpptrad.c (skip_comment, lex_identifier,
1357 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
1359 2002-06-04 Kazu Hirata <kazu@cs.umass.edu>
1361 * gbl-ctors.h: Fix formatting.
1363 * gccspec.c: Likewise.
1365 * gcov-io.h: Likewise.
1367 * ggc-common.c: Likewise.
1369 * ggc-page.c: Likewise.
1370 * ggc-simple.c: Likewise.
1371 * global.c: Likewise.
1372 * graph.h: Likewise.
1373 * gthr-dce.h: Likewise.
1375 * gthr-posix.h: Likewise.
1376 * gthr-rtems.h: Likewise.
1377 * gthr-solaris.h: Likewise.
1378 * gthr-win32.h: Likewise.
1380 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
1382 Merge from pch-branch:
1384 * gengtype.h (UNION_OR_STRUCT_P): New macro.
1385 * gengtype.c (write_gc_structure_fields): Use it.
1386 (write_gc_root): Use it here too.
1388 * gengtype.c (write_gc_structure_fields): Assume that lengths
1389 of typenames fit into an 'int'; don't pass a size_t to "%d" in
1391 (write_gc_marker_routine_for_structure): Likewise.
1392 (write_gc_types): Likewise.
1393 (write_gc_root): Likewise.
1395 * varray.h (VARRAY_CLEAR): New.
1396 (varray_clear): Prototype.
1397 * varray.c (varray_clear): New.
1398 * cselib.c (reg_values_old): New.
1399 (used_regs_old): New.
1400 (cselib_init): Use cached varrays if available to avoid
1401 generating large amounts of garbage.
1402 (cselib_finish): Don't throw away old varrays.
1404 * final.c (insn_addresses_): Move out of ifdef.
1406 * varray.c (uses_ggc): Make more varray kinds GCable.
1407 * varray.h (union varray_data_tag): Let gengtype see
1408 fields 'generic' and 'te'.
1409 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
1410 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
1411 (reg_to_stack): Don't call VARRAY_FREE.
1412 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
1413 (insn_addresses_): Use gengtype to mark.
1414 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
1415 pointers; handle generic pointers in unused union fields.
1416 (get_output_file_with_visibility): Include cselib.h,
1417 insn-addr.h in gtype-desc.c.
1418 * function.c (prologue): Use gengtype to mark.
1419 (epilogue): Likewise.
1420 (sibcall_epilogue): Likewise.
1421 * dependence.c: Include gt-dependence.h, ggc.h.
1422 (struct def_use): Use gengtype to mark.
1423 (struct loop): Likewise.
1424 (struct induction): Likewise.
1425 (struct dependence): Likewise.
1426 (def_use_chain): Likewise.
1427 (dep_chain): Likewise.
1428 (loop_chain): Likewise.
1429 (induction_chain): Likewise.
1430 (init_dependence_analysis): Don't free anything, just clear pointers.
1431 (build_def_use): Use GGC to allocate def_use.
1432 (add_loop): Use GGC to allocate loop.
1433 (find_induction_variable): Use GGC to allocate induction.
1434 (check_node_dependence): Use GGC to allocate induction, dependence.
1435 (dump_node_dependence): Don't free varrays.
1436 (end_dependence_analysis): Likewise.
1437 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
1438 (struct elt_loc_list): Likewise.
1439 (struct elt_list): Likewise.
1440 * cselib.c: Don't include obstack.h.
1441 (hash_table): Use gengtype to mark.
1442 (reg_values): Use gengtype to mark.
1443 (used_regs): Use gengtype to mark.
1444 (cselib_obstack): Delete.
1445 (cselib_startobj): Delete.
1446 (empty_vals): Mark as deletable.
1447 (empty_elt_lists): Mark as deletable.
1448 (empty_elt_loc_lists): Mark as deletable.
1449 (new_elt_list): Use GGC to allocate struct elt_list.
1450 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
1451 (clear_table): Don't delete obstack; don't unnecessarily clear
1452 deletable variables.
1453 (new_cselib_val): Use GGC to allocate struct cselib_val.
1454 (cselib_init): Don't set up obstacks. Use GGC to allocate
1456 (cselib_finish): Just clear variables, don't free anything.
1457 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
1458 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
1459 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
1460 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
1461 (gt-reg-stack.h): New rule.
1462 (gt-dependence.h): New rule.
1463 (gtype-desc.o): Add cselib.h, insn-addr.h.
1465 * varray.c: Use only necessary headers.
1466 (element_size): New.
1468 (varray_init): Take type, not size. Use GGC if appropriate.
1469 (varray_grow): Update for change to struct varray_head_tag.
1470 Use GGC if appropriate.
1471 * varray.h (struct const_equiv_data): Use gengtype.
1472 (enum varray_data_enum): New.
1473 (union varray_data_tag): Use gengtype.
1474 (struct varray_head_tag): Use gengtype. Replace size field with
1475 enum varray_data_enum.
1476 (varray_init): Update prototype.
1477 (VARRAY_SCHED_INIT): Delete.
1478 (VARRAY_*_INIT): Update for change to varray_init.
1479 (VARRAY_SCHED): Delete.
1480 (VARRAY_PUSH_SCHED): Delete.
1481 (VARRAY_TOP_SCHED): Delete.
1482 * tree.h: Update for change to length specifier.
1483 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
1484 (clone_body): Likewise.
1485 * ssa.h (ssa_definition): Use gengtype to mark.
1486 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
1487 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
1488 * rtl.h (struct rtvec_def): Update for change to length specifier.
1489 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
1490 (struct initial_value_struct): Update for change to length specifier.
1491 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
1492 (ggc_add_tree_varray_root): Delete prototype.
1493 (ggc_mark_rtx_varray): Delete prototype.
1494 (ggc_mark_tree_varray): Delete prototype.
1495 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
1496 (ggc_add_tree_varray_root): Delete.
1497 (ggc_mark_rtx_varray): Delete.
1498 (ggc_mark_tree_varray): Delete.
1499 (ggc_mark_rtx_varray_ptr): Delete.
1500 (ggc_mark_tree_varray_ptr): Delete.
1501 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
1502 (create_varray): Delete prototype.
1503 * gengtype.c (varrays): Delete.
1504 (create_varray): Delete.
1505 (adjust_field_type): Detect array of string pointers.
1506 (process_gc_options): Remove code to handle varray_type option.
1507 (set_gc_used_type): Remove TYPE_VARRAY case.
1508 (output_escaped_param): New.
1509 (write_gc_structure_fields): Use output_escaped_param on all
1510 parameters. Handle 'skip' with 'use_param' option. Handle
1511 arrays of strings. Remove TYPE_VARRAY handling.
1512 (write_gc_roots): Use boolean to detect 'length' option.
1513 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
1514 (struct_fields): Call adjust_field_type on array fields.
1515 (type): Remove VARRAY_TYPE case.
1516 (type_option): Likewise.
1517 * gengtype-lex.l: Don't consider varray_type a keyword.
1518 * function.h: Update for change to length specifier.
1519 (free_eh_status): Delete prototype.
1520 * function.c (free_after_compilation): Don't call free_eh_status.
1521 (reorder_blocks): Don't use VARRAY_FREE.
1522 * except.c (struct eh_status): Update for change to length specifier.
1523 remove varray_type specifier.
1524 (free_eh_status): Delete.
1525 * dwarf2out.c: Include gt-dwarf2out.h.
1526 (used_rtx_varray): Use gengtype to mark, move
1528 (incomplete_types): Likewise.
1529 (decl_scope_table): Likewise.
1530 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
1531 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
1532 * c-tree.h (struct lang_type): Update for change to length specifier.
1533 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
1534 * c-objc-common.c: Include gt-c-objc-common.h.
1535 (deferred_fns): Mark for gengtype.
1536 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
1537 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
1538 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
1539 (gtype-desc.o): Update dependencies.
1540 (dwarf2out.o): Add gt-dwarf2out.h.
1541 (varray.o): Update dependencies.
1542 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
1543 (gt-c-objc-common.h): New rule.
1544 (gt-dwarf2out.h): New rule.
1545 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
1547 * doc/gty.texi (GTY Options): Correct spelling.
1548 (GGC Roots): Likewise.
1549 * Makefile.in (TEXI_CPP_FILES): New.
1550 (TEXI_GCC_FILES): New.
1551 (TEXI_GCCINT_FILES): New.
1552 (TEXI_CPPINT_FILES): New.
1553 ($(docdir)/cpp.info): Use new macros.
1554 ($(docdir)/gcc.info): Likewise.
1555 ($(docdir)/gccint.info): Likewise.
1556 ($(docdir)/cppinternals.info): Likewise.
1557 (cpp.dvi): Likewise.
1558 (gcc.dvi): Likewise.
1559 (gccint.dvi): Likewise.
1560 (cppinternals.dvi): Likewise.
1562 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
1563 * doc/gccint.texi (Top): Include gty.texi.
1564 * doc/gty.texi: New file.
1566 * bitmap.c: Include ggc.h, gt-bitmap.h.
1567 (bitmap_ggc_free): New.
1568 (bitmap_elem_to_freelist): New.
1569 (bitmap_element_free): Use bitmap_elem_to_freelist.
1570 (bitmap_element_allocate): Allow use of GGC.
1571 (bitmap_clear): Use bitmap_elem_to_freelist.
1572 (bitmap_copy): Update for change to bitmap_element_allocate.
1573 (bitmap_set_bit): Likewise.
1574 (bitmap_operation): Update for changes elsewhere.
1575 (bitmap_initialize): Allow to create bitmaps that will use GGC.
1576 * bitmap.h (struct bitmap_element_def): Use gengtype.
1577 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
1578 (bitmap_initialize): Add extra parameter.
1579 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
1580 (BITMAP_ALLOCA): Delete.
1581 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
1582 (BITMAP_GGC_ALLOC): New.
1583 * Makefile.in (gtype-desc.o): Add bitmap.h.
1584 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
1585 (GTFILES): Add bitmap.c.
1586 (gt-bitmap.h): New rule.
1587 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
1588 * basic-block.h: Update for changes to bitmap_initialize.
1589 * except.c (exception_handler_label_map): Move into...
1590 (struct eh_status): Here.
1591 (struct eh_region): Make 'aka' GCable.
1592 (free_eh_status): Don't need to specially handle
1593 exception_handler_label_map.
1594 (add_ehl_entry): Update for changes to exception_handler_label_map.
1595 (find_exception_handler_labels): Likewise.
1596 (remove_exception_handler_label): Likewise.
1597 (maybe_remove_eh_handler): Likewise.
1598 (for_each_eh_label): Likewise.
1599 (remove_eh_handler): Allocate 'aka' using GGC.
1600 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
1601 to list of includes.
1603 * gengtype.c (write_gc_marker_routine_for_structure): Name
1604 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
1605 (write_gc_types): Arrange for the tests with NULL to be inlined.
1606 (write_gc_roots): Update uses of procedure pointers.
1607 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
1609 * Makefile.in (explow.o): Add dependency on gt-explow.h.
1610 (sdbout.o): Add dependency on gt-sdbout.h.
1612 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
1613 (mem_attrs_htab): Likewise.
1614 (init_emit_once): Don't call ggc_add_deletable_htab.
1615 * fold-const.c (size_htab): Use gengtype to clear unused entries.
1616 (size_int_type_wide): Don't call ggc_add_deletable_htab.
1617 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
1618 parameters, use them, change callers.
1619 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
1620 (write_gc_roots): Handle 'if_marked' option.
1621 (main): Don't need to call set_gc_used_type any more.
1622 * ggc.h (ggc_htab_marked_p): Delete.
1623 (ggc_htab_mark): Delete.
1624 (struct ggc_cache_tab): New.
1625 (gt_ggc_cache_rtab): New declaration.
1626 * ggc-common.c (struct d_htab_root): Delete.
1627 (d_htab_roots): Delete.
1628 (ggc_add_deletable_htab): Delete.
1629 (ggc_htab_delete): Handle new htab-deleting mechanism.
1630 (ggc_mark_roots): Use new htab-deleting mechanism.
1631 * tree.c (type_hash_table): Use gengtype to clear unused entries.
1633 (init_obstacks): Don't call ggc_add_deletable_htab.
1635 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
1636 (struct hashed_entry): Likewise.
1637 (nst_method_hash_list): Likewise.
1638 (cls_method_hash_list): Likewise.
1639 (HASH_ALLOC_LIST_SIZE): Delete.
1640 (ATTR_ALLOC_LIST_SIZE): Delete.
1641 * objc/objc-act.c (hash_init): Use ggc to allocate
1642 nst_method_hash_list, cls_method_hash_list.
1643 (hash_enter): Use ggc to allocate; allocate one entry at a time.
1644 (hash_add_attr): Likewise.
1645 (ggc_mark_hash_table): Delete.
1646 (objc_act_parse_init): Delete.
1647 (objc_init): Delete reference to objc_act_parse_init.
1648 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
1649 obstack.h. Replace references to 'struct hash_table' with htab_t.
1650 (struct symbol_hash_entry): Replace hash header with key field.
1651 (struct file_hash_entry): Replace hash header with key field.
1652 (struct demangled_hash_entry): Replace hash header with key field.
1653 (hash_string_eq): New.
1654 (hash_string_hash): New.
1655 (symbol_hash_newfunc): Delete.
1656 (symbol_hash_lookup): Modify to use htab_t.
1657 (file_hash_newfunc): Delete.
1658 (file_hash_lookup): Modify to use htab_t.
1659 (demangled_hash_newfunc): Delete.
1660 (demangled_hash_lookup): Modify to use htab_t.
1661 (tlink_init): Modify to use htab_t.
1664 * ggc.h: Delete forward structure declarations.
1665 Delete prototypes for deleted functions.
1666 * ggc-common.c: Don't include hash.h.
1667 (ggc_add_tree_hash_table_root): Delete.
1668 (ggc_mark_tree_hash_table_entry): Delete.
1669 (ggc_mark_tree_hash_table): Delete.
1670 (ggc_mark_tree_hash_table_ptr): Delete.
1671 * gengtype.c (write_gc_structure_fields): Allow param_is option.
1672 (write_gc_marker_routine_for_structure): Use visibility of
1673 the parameter if there is one.
1674 * function.c: Replace hash.h with hashtab.h. Replace references
1675 to 'struct hash_table *' with htab_t.
1676 (struct insns_for_mem_entry): Include a plain key.
1677 (fixup_var_refs_insns_with_hash): Update to use htab_t.
1678 (insns_for_mem_newfunc): Delete.
1679 (insns_for_mem_hash): Update to use htab_t.
1680 (insns_for_mem_comp): Likewise.
1681 (insns_for_mem_walk): Likewise.
1682 * c-lang.c: Include ggc.h.
1683 * Makefile.in (OBJS): Remove hash.o.
1684 (c-lang.o): Add GGC_H.
1685 (COLLECT2_OBJS): Remove hash.o.
1686 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
1687 (ggc-common.o): Remove hash.h.
1688 (function.o): Remove hash.h, add HASHTAB_H.
1689 (genautomata.o): Remove hash.h, add HASHTAB_H.
1691 * varasm.c (mark_const_str_htab_1): Delete.
1692 (mark_const_str_htab): Delete.
1693 (const_str_htab_del): Delete.
1694 (const_str_htab): Use gengtype to mark.
1695 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
1697 * tree.c (mark_tree_hashtable_entry): Delete.
1698 (mark_tree_hashtable): Delete.
1699 * tree.h (mark_tree_hashtable): Delete prototype.
1700 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
1701 (ggc_mark): Likewise.
1703 (htab_create_ggc): New.
1704 * ggc-common.c (ggc_calloc): New.
1705 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
1706 (struct type): Add param_struct structure.
1707 * gengtype.c (param_structs): New.
1708 (adjust_field_type): Handle param_is option.
1709 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
1710 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
1711 (write_gc_structure_fields): Add new PARAM parameter. Update
1712 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
1713 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
1714 Use it to generate function name. Update callers.
1715 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
1717 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
1719 (main): Define PTR as pointer-to-scalar. Don't specially
1720 mark deferred_string or ehl_map_entry.
1721 * gengtype-yacc.y (PARAM_IS): Add new token.
1722 (externstatic): Use adjust_field_type.
1723 (type_option): Add PARAM_IS.
1724 * gengtype-lex.l: Add rule for typedef of function pointers.
1725 Add rule for PARAM_IS.
1726 (IWORD): Add size_t.
1727 * except.c (exception_handler_label_map): Use gengtype to mark.
1728 (type_to_runtime_map): Likewise.
1729 (mark_ehl_map_entry): Delete.
1730 (mark_ehl_map): Delete.
1731 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
1732 (t2r_mark_1): Delete.
1734 * Makefile.in (gtype-desc.o): Correct dependencies.
1735 (GTFILES): Add hashtab.h.
1736 (genautomata.o): Actually uses hashtab.h.
1738 * Makefile.in (stringpool.o): Add $(GGC_H).
1739 (dwarf2asm.o): Likewise.
1740 (GTFILES): Add hashtable.h.
1741 * c-common.h (struct c_common_identifier): Use gengtype.
1742 * c-decl.h (c_mark_tree): Delete.
1743 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
1744 * c-tree.h (struct lang_identifier): Use gengtype.
1745 (union lang_tree_node): New.
1746 (c_mark_tree): Delete prototype.
1747 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
1749 * gengtype-lex.l (IWORD): Allow 'bool'.
1751 * gengtype-yacc.y (ALIAS): New token.
1752 (type_option): New rule.
1753 (option): Use type_option.
1754 * gengtype.c (process_gc_options): New.
1755 (set_gc_used_type): Use it.
1756 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
1757 Add new variable 't' to hold the type of the field being processed.
1758 Add more error checking. Use UNION_P when looking at 'desc' option.
1759 Handle language-specific structures containing other
1760 language-specific structures.
1761 (write_gc_types): Handle 'ptr_alias' option.
1762 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
1763 * ggc-common.c (ggc_pending_trees): Delete.
1764 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
1765 (ggc_mark_trees): Delete.
1766 (gt_ggc_m_tree_node): Delete.
1767 * ggc.h (ggc_pending_trees): Delete.
1768 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
1769 * hashtable.h (ht_identifier): Use gengtype.
1770 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
1771 * langhooks.h (struct lang_hooks): Delete mark_tree.
1772 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
1774 * system.h: Poison LANG_HOOKS_MARK_TREE.
1775 * tree.c (tree_node_structure): New.
1776 * tree.h (struct tree_common): Use gengtype.
1777 (struct tree_int_cst): Likewise.
1778 (struct tree_real_cst): Likewise.
1779 (struct tree_string): Likewise.
1780 (struct tree_complex): Likewise.
1781 (struct tree_vector): Likewise.
1782 (struct tree_identifier): Likewise.
1783 (struct tree_list): Likewise.
1784 (struct tree_vec): Likewise.
1785 (struct tree_exp): Likewise.
1786 (struct tree_block): Likewise.
1787 (struct tree_type): Likewise.
1788 (struct tree_decl): Likewise.
1789 (enum tree_structure_enum): New.
1790 (union tree_node): Use gengtype, with an alias.
1791 (tree_node_structure): Prototype.
1792 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
1794 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
1795 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
1796 to LANG_HOOKS_FUNCTION_FINAL.
1797 * Makefile.in (GTFILES): Add bitmap.h.
1798 * except.c (struct eh_region): Mark field 'aka' to be skipped.
1800 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
1801 (alpha_init_machine_status): Give proper type.
1802 * Makefile.in (c-lang.o): Depend on gtype-c.h.
1803 (optabs.o): Depend on gt-optabs.h.
1804 (GTFILES): Add optabs.o.
1805 (gt-optabs.h): Add rule.
1806 * optabs.c: Include gt-optabs.h.
1808 * gengtype.c (set_gc_used_type): Correct some errors in last change.
1809 (write_gc_structure_fields): If a field which should be NULL is
1811 * c-pragma.c: Move struct align_stack and variable alignment_stack
1814 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
1815 * config/xtensa/xtensa.c: Include gt-cris.h.
1816 (struct machine_function): Use gengtype to mark.
1817 * config/mmix/mmix.h (struct machine_function): Use gengtype
1819 * config/cris/t-cris: Add dependencies for gt-cris.h.
1820 * config/cris/cris.c: Include gt-cris.h.
1821 (struct machine_function): Use gengtype to mark.
1822 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
1824 * doc/tm.texi (Per-Function Data): Delete references to
1825 mark_machine_status.
1826 * config/ia64/ia64.c (ia64_override_options): Don't set
1827 mark_machine_status.
1828 * config/i386/i386.c (override_options): Likewise.
1829 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
1830 * config/arm/arm.c (arm_init_expanders): Likewise.
1831 * config/alpha/alpha.c (override_options): Likewise.
1832 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
1833 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
1834 (write_gc_structure_fields): Don't handle 'really' option.
1835 Handle 'maybe_null' option.
1836 (write_gc_types): Handle 'maybe_null' option.
1837 * function.h (struct function): Don't use "really".
1838 (mark_machine_status): Delete declaration.
1839 (mark_lang_status): Delete declaration.
1840 (gt_ggc_mr_machine_function): Delete prototype.
1841 (gt_ggc_mr_language_function): Delete prototype.
1842 * function.c (mark_machine_status): Delete.
1843 (mark_lang_status): Delete.
1844 (gt_ggc_mr_machine_function): Delete.
1845 (gt_ggc_mr_language_function): Delete.
1846 * c-tree.h (mark_c_function_context): Delete prototype.
1847 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
1848 * c-decl.c (struct language_function): Rename from struct
1849 c_language_function. Update uses. Use gengtype to mark.
1850 (mark_c_function_context): Delete.
1851 * c-common.h (struct c_language_function): Rename from struct
1853 (mark_stmt_tree): Delete prototype.
1854 (c_mark_lang_decl): Delete prototype.
1855 (mark_c_language_function): Delete prototype.
1856 * c-common.c (mark_stmt_tree): Delete.
1857 (c_mark_lang_decl): Delete.
1858 (mark_c_language_function): Delete.
1860 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
1861 (lang_bitmap): New typedef. Use where appropriate.
1862 (struct type): Add gc_used field, lang_struct field.
1863 (UNION_P): New macro.
1864 (new_structure): New prototype.
1865 (find_structure): Remove 'pos' parameter. Change all callers.
1866 * gengtype-lex.l: Update for changes to find_structure.
1867 * gengtype-yacc.y (typedef_struct): Use new_structure.
1868 (yacc_ids): Suppress warning.
1869 (type): Use new_structure.
1870 * gengtype.c (string_type): Update for changes to struct type.
1871 (find_structure): Just find a structure, don't worry about
1873 (new_structure): New.
1874 (note_yacc_type): Use new_structure.
1875 (set_gc_used_type): New.
1877 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
1878 (write_gc_types): Handle TYPE_LANG_STRUCT.
1879 (write_gc_marker_routine_for_structure): New.
1880 (main): Call set_gc_used. Add some calls to set_gc_used_type
1881 for places where GCC doesn't use gengtype properly yet.
1882 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
1883 (gt_ggc_m_tree_node): Likewise.
1885 * varasm.c (copy_constant): Call expand_constant if we hit
1886 something we can't recognise.
1888 * ggc-common.c (ggc_mark_rtvec_children): Delete.
1889 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
1890 (lang_mark_false_label_stack): Delete.
1891 * rtl.h (struct rtvec_def): Use gengtype to mark.
1892 * ggc.h (ggc_mark_rtvec): Delete.
1893 (gt_ggc_m_rtvec_def): Delete.
1894 (ggc_mark_nonnull_tree): Delete.
1895 (ggc_mark_rtvec_children): Delete prototype.
1896 (lang_mark_false_label_stack): Delete declaration.
1898 * gengtype.h (note_yacc_type): Add prototype.
1899 * gengtype.c (note_yacc_type): New function.
1900 * gengtype-lex.l: Add lexer support for yacc files.
1901 * gengtype-yacc.y (start): Extract union from yacc files.
1902 (yacc_union): New rule.
1903 (yacc_typematch): New rule.
1904 (yacc_ids): New rule.
1905 (enum_items): Tweak for efficiency.
1906 (optionseq): Likewise.
1908 * c-common.h (struct language_function): Use gengtype.
1909 (struct c_lang_decl): Likewise.
1910 * c-tree.h (struct lang_decl): Likewise.
1911 (struct lang_type): Likewise.
1912 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
1913 tree language substructures.
1915 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
1917 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
1919 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
1921 * stmt.c (struct nesting): Add discriminator. Use gengtype to
1922 mark. Remove 'data.block.cleanup_ptr' field.
1923 (struct stmt_status): Use usual technique to mark struct nesting.
1924 (gt_ggc_mr_nesting_cond): Delete.
1925 (gt_ggc_mr_nesting_loop): Delete.
1926 (gt_ggc_mr_nesting_block): Delete.
1927 (gt_ggc_mr_nesting_case_stmt): Delete.
1928 (expand_start_cond): Set discriminator.
1929 (expand_start_loop): Likewise.
1930 (expand_start_null_loop): Likewise.
1931 (expand_start_bindings_and_block): Set discriminator. Don't set
1933 (expand_decl_cleanup): Replace 'cleanup_ptr' with
1934 &thisblock->data.block.cleanups.
1935 (expand_start_case): Set discriminator.
1936 (expand_start_case_dummy): Set discriminator.
1938 * ggc-callbacks.c: Remove.
1940 * gengtype.h (struct type): Add 'u.s.bitmap' field.
1941 (find_structure): Add 'pos' parameter.
1942 * gengtype-lex.l: Update callers to find_structure.
1943 * gengtype-yacc.y: Likewise.
1944 * gengtype.c (find_structure): Allow for structures to be defined
1945 in multiple language backends.
1946 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
1947 (counter): Rename to gc_counter.
1948 (write_gc_structure_fields): Fail when writing out fields for
1949 an incomplete structure. Ignore arrays of scalars. Handle
1951 (write_gc_types): Reset counter for each procedure written.
1953 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
1954 (free_case_nodes): Delete.
1955 (expand_end_case_type): Delete call to free_case_nodes.
1957 * Makefile.in (cselib.o): Include gt-<filename>.h.
1959 (profile.o): Likewise.
1960 (alias.o): Likewise.
1961 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
1962 alphabetize backend files.
1963 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
1964 * alias.c: Use gengtype for roots.
1965 * c-common.h (struct stmt_tree_s): Use gengtype.
1966 * c-decl.c: Use gengtype for roots.
1967 * cselib.c: Use gengtype for roots.
1968 * expr.c: Use gengtype for roots.
1969 * fold-const.c: Use gengtype for roots.
1970 * gcse.c: Use gengtype for roots.
1971 * gengtype-lex.l: Handle typedefs of function types.
1972 Allow for empty array bounds.
1973 Allow processing to stop on initialisers.
1974 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
1975 (semiequal): New rule.
1976 * gengtype.c (create_file): Tidy output files.
1977 (get_output_file_with_visibility): Fix paren warning. Fix bug
1978 involving multiple input files mapping to one output file.
1979 (write_gc_structure_fields): Skip arrays of scalars.
1980 (write_gc_types): Tidy output files.
1981 (write_gc_root): New function.
1982 (write_gc_roots): Fix bugs, add support for roots that are
1984 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
1985 (ggc_mark_tree_ptr): Delete.
1986 (ggc_add_rtx_root): Delete.
1987 (ggc_add_tree_root): Delete.
1988 (ggc_del_root): Delete.
1989 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
1990 allocate struct initial_value_struct.
1991 * profile.c: Use gengtype for roots.
1992 * sdbout.c: Use gengtype for roots.
1993 * varasm.c (mark_weak_decls): Delete unused prototype.
1994 (mark_const_hash_entry): Delete unused function.
1995 * config/darwin-protos.h: Use gengtype for roots.
1996 (machopic_add_gc_roots): Delete.
1997 * config/arm/arm.c: Use gengtype for roots.
1998 * config/arm/arm.h: Use gengtype for roots.
1999 * config/c4x/c4x-protos.h: Use gengtype for roots.
2000 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
2001 * config/d30v/d30v-protos.h: Use gengtype for roots.
2002 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
2003 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
2004 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
2005 * config/ia64/ia64-protos.h: Use gengtype for roots.
2006 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
2007 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
2008 * config/m68hc11/m68hc11.c (z_reg): Make global.
2009 (z_reg_qi): Make global.
2010 (m68hc11_add_gc_roots): Delete.
2011 * config/mcore/mcore-protos.h: Use gengtype for roots.
2012 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
2013 * config/mips/mips.c (mips_add_gc_roots): Delete.
2014 * config/mips/mips.h: Use gengtype for roots.
2015 * config/mmix/mmix.c (override_options): Use gengtype for roots.
2016 * config/mmix/mmix.h: Use gengtype for roots.
2017 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
2018 * config/mn10200/mn10200.h: Use gengtype for roots.
2019 * config/pa/pa.c: Use gengtype for roots, marking.
2020 (struct deferred_plabel): Use GGC, gengtype.
2021 (pa_add_gc_roots): Delete.
2022 (mark_deferred_plabels): Delete.
2023 * config/pj/pj-protos.h: Use gengtype for roots.
2024 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
2025 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
2026 machopic_add_gc_roots.
2027 * config/rs6000/rs6000.h: Use gengtype for roots.
2028 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
2029 (gt-darwin.h): Add rule.
2030 * config/sh/sh.c: Use gengtype for roots.
2031 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
2032 (gt-sh.h): Add rule.
2033 * config/sparc/sparc.c: Use gengtype for roots.
2034 (sparc_add_gc_roots): Delete.
2035 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
2036 (mark_ultrasparc_pipeline_state): Delete.
2037 * config/sparc/sparc.h: Use gengtype for roots.
2039 * Makefile.in (c-parse.o): Update dependencies.
2040 (c-common.o): Likewise.
2041 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
2042 Add dependencies for the files they generate.
2043 * c-common.c: Replace ggc_add_* uses with GTY annotations.
2044 * c-common.h: Likewise.
2045 * c-decl.c: Likewise.
2046 (gt_ggc_mp_binding_level): Delete.
2047 * c-lang.c: Include gtype-c.h.
2048 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
2050 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
2051 (gt_ggc_mp_align_stack): Delete.
2052 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
2053 * function.c: Replace ggc_add_* uses with GTY annotations.
2054 (gt_ggc_mp_function): Delete.
2055 * function.h: Replace ggc_add_* uses with GTY annotations.
2056 * gengtype.c (lang_names): New.
2057 (NUM_BASE_FILES): New.
2058 (open_base_files): Create language base files.
2060 (get_file_basename): New.
2061 (get_base_file_bitmap): New.
2062 (get_output_file_with_visibility): Rename from get_output_file.
2063 Add more mappings for various C/Objc filenames.
2064 (finish_root_table): New.
2065 (write_gc_roots): Handle dependencies and scoping properly.
2066 * gengtype.h: Add prototypes for new functions.
2067 * ggc-common.c (struct deletable_root): Delete.
2068 (deletables): Delete.
2069 (ggc_add_deletable_root): Delete.
2070 (ggc_mark_roots): No need to deal with deleted functionality.
2071 * ggc.h (ggc_add_deletable_root): Delete prototype.
2072 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
2073 (gtype-objc.h): Add rule to create.
2074 * objc/config-lang.in (gtfiles): New.
2075 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
2076 ggc_add_* with GTY markers. Include gtype-objc.h.
2077 (ggc_mark_imp_list): Delete.
2078 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
2079 * objc/objc-lang.c: Random Whitespace Change.
2081 * except.h (exception_handler_labels): Delete.
2082 (get_exception_handler_labels): New.
2083 * except.c (exception_handler_labels): Delete.
2084 (struct eh_status): Add exception_handler_labels field.
2085 (doing_eh): Don't add exception_handler_labels as root.
2086 (free_eh_status): Don't need to free exception_handler_labels.
2087 (get_exception_handler_labels): New.
2088 (find_exception_handler_labels): Update for move of
2089 exception_handler_labels.
2090 (remove_exception_handler_label): Likewise.
2091 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
2092 * jump.c (rebuild_jump_labels): Likewise.
2093 * loop.c (find_and_verify_loops): Likewise.
2094 * sched-rgn.c (is_cfg_nonregular): Likewise.
2096 * gengtype.c (write_gc_structure_fields): Handle variable-length
2099 * varasm.c (struct weak_syms): Use GGC, gengtype.
2100 (mark_weak_decls): Delete.
2101 (weak_decls): Likewise.
2102 (add_weak): Likewise.
2103 (remove_from_pending_weak_list): Likewise.
2104 (init_varasm_once): Likewise.
2106 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
2107 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
2108 stor-layout.c, regclass.c, and lists.c.
2109 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
2110 gt-regclass.h and gt-lists.h on s-gtype.
2111 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
2112 * except.c: Use gengtype for roots.
2113 * explow.c: Use gengtype for roots. Include gt-explow.h.
2114 * expr.h (init_stor_layout_once): Delete prototype.
2115 * function.c: Use gengtype for roots.
2116 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
2117 * gengtype-yacc.y (start): Can also be an externstatic.
2118 (externstatic): New production.
2119 (struct_fields): Correct array bounds inversion for 2-d arrays.
2120 * gengtype.c (variables): New variable.
2121 (note_variable): New function.
2122 (get_output_file): Include libfuncs.h into gtype-desc.c.
2123 (get_output_file_name): New function.
2124 (write_gc_structure_fields): Suppress warnings.
2125 (write_gc_types): Make static.
2126 (put_mangled_filename): New function.
2127 (write_gc_roots): New function.
2128 (main): Call write_gc_roots.
2129 * gengtype.h (note_variable): Prototype.
2130 (get_output_file_name): Prototype.
2131 (write_gc_types): Delete prototype.
2132 * ggc.h: Clean up unnecessary structure predefinitions.
2133 (struct ggc_root_tab): Define.
2134 (gt_ggc_m_rtx_def): Make function, not macro.
2135 (gt_ggc_m_tree_node): Likewise.
2136 * libfuncs.h: Use gengtype for roots.
2137 * lists.c: Use gengtype for roots. Include gt-lists.h.
2138 (init_EXPR_INSN_LIST_cache): Delete.
2139 * optabs.c: Use gengtype for roots.
2140 (gt_ggc_mp_optab): Delete.
2141 * optabs.h: Use gengtype for roots.
2142 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
2143 * rtl.h: Use gengtype for roots.
2144 (init_EXPR_INSN_LIST_cache): Delete prototype.
2145 * stor-layout.c: Use gengtype for roots.
2146 Include gt-stor-layout.h.
2147 (init_stor_layout_once): Delete.
2148 * toplev.c: Use gengtype for roots. Delete calls to deleted
2150 * tree.c: Use gengtype for roots.
2151 * tree.h: Use gengtype for roots.
2152 * varasm.c: Use gengtype for roots.
2154 * Makefile.in (GTFILES): Add @all_gtfiles@.
2155 * configure: Regenerate.
2156 * configure.in: Construct all_gtfiles from the gtfiles definitions
2158 * gengtype-yacc.y (type): Warn about duplicate structure names.
2159 * gengtype.c (get_output_file): Handle .c files in language
2162 * Makefile.in (GTFILES): Run gengtype on all the config files
2163 and on the target .c file.
2164 * except.c (mark_eh_region): Delete.
2165 (init_eh_for_function): Use GGC on struct eh_status.
2166 (mark_eh_status): Delete.
2167 (free_eh_status): Use GGC.
2168 (expand_eh_region_start): Use GGC to
2169 (collect_eh_region_array): Allocate last_region_number using GGC.
2170 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
2171 (remove_eh_handler): Let GGC free struct eh_region.
2172 (add_call_site): Use GGC to reallocate call_site_record array.
2173 * function.c (init_machine_status): Update calling sequence.
2174 (mark_machine_status): Likewise.
2175 (mark_lang_status): Likewise.
2176 (prepare_function_start): Update init_machine_status call.
2177 (mark_function_status): Delete.
2178 (maybe_mark_struct_function): Delete.
2179 (ggc_mark_struct_function): Delete.
2180 (gt_ggc_mp_function): New.
2181 (gt_ggc_mr_machine_function): New.
2182 (gt_ggc_mr_language_function): New.
2183 (init_function_once): Use canonical names.
2184 * function.h (struct function): Use gengtype.
2185 (init_machine_status): Return the structure.
2186 (mark_machine_status): Take a 'void *'.
2187 (mark_lang_status): Likewise.
2188 * ggc-common.c (ggc_mark_trees): Use canonical name for
2189 ggc_mark_struct_function.
2190 * tree.h (ggc_mark_struct_function): Delete prototype.
2191 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
2192 (alpha_init_machine_status): Likewise.
2193 (override_options): Use canonical name for alpha_mark_machine_status.
2194 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
2195 * config/arm/arm.h (struct machine_function): Use gengtype.
2196 * config/arm/arm.c (arm_mark_machine_status): Delete.
2197 (arm_init_machine_status): Update calling sequence.
2198 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
2199 * config/cris/cris.c (cris_init_machine_status): Update
2201 * config/d30v/d30v.h (struct machine_function): Use gengtype.
2202 * config/d30v/d30v.c (d30v_init_machine_status): Update
2204 (d30v_mark_machine_status): Delete.
2205 * config/i386/i386.c: Include gt-i386.h.
2206 (struct machine_function): Use gengtype.
2207 (ix86_init_machine_status): Update calling sequence.
2208 (ix86_mark_machine_status): Delete.
2209 (override_options): Use canonical namke for ix86_mark_machine_status.
2210 * config/ia64/ia64.h (struct machine_function): Use gengtype.
2211 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
2213 (ia64_mark_machine_status): Delete.
2214 (ia64_override_options): Use canonical name for
2215 ia64_mark_machine_status.
2216 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
2218 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
2219 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
2220 * gengtype.c (get_output_file): Fix warning.
2221 (main): Add prototype to suppress warning.
2222 * tree.c: Remove tree_hash_mark prototype.
2224 * tree.h (init_stmt): Delete prototype.
2225 * toplev.c (lang_independent_init): Don't call init_stmt.
2226 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
2227 (stmt_obstack): Delete.
2228 (POPSTACK): No need to free 'struct nesting'.
2229 (gt_ggc_mr_nesting_cond): Use canonical names.
2230 (gt_ggc_mr_nesting_loop): Use canonical names.
2231 (gt_ggc_mr_nesting_block): Use canonical names.
2232 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
2233 (mark_stmt_status): Delete.
2234 (init_stmt): Delete.
2235 (clear_last_expr): Clear both last_expr_type and last_expr_value.
2236 Use it everywhere that last_expr_type was cleared.
2237 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
2238 (zap_lists): Delete.
2239 * ggc.h (ggc_add_deletable_root): Prototype.
2240 (mark_stmt_status): Remove prototype.
2241 * ggc-common.c (ggc_add_deletable_root): New.
2242 (ggc_mark_roots): Handle deletable roots.
2243 * function.c (ggc_mark_struct_function): Use canonical name
2244 for mark_stmt_status.
2245 * emit-rtl.c (free_sequence_stack): New.
2246 (start_sequence): Use a freelist for sequences.
2247 (end_sequence): Likewise.
2248 (init_emit_once): Add free_sequence_stack as a deleteable root.
2249 * c-pragma.c Include gt-c-pragma.h.
2250 (struct align_stack): Use gengtype.
2251 (push_alignment): Use GGC for struct align_stack.
2252 (mark_align_stack): Delete.
2253 (gt_ggc_mp_align_stack): New.
2254 (init_pragma): Use canonical name for mark_align_stack.
2255 * c-decl.c: Include gt-c-decl.h.
2256 (struct binding_level): Use gengtype.
2257 (make_binding_level): Use GGC; handle the freelist here.
2258 (pop_binding_level): New.
2259 (pushlevel): Move code into make_binding_level.
2260 (push_label_level): Likewise.
2261 (poplevel): Move code into pop_binding_level.
2262 (pop_label_level): Likewise.
2263 (mark_binding_level): Delete.
2264 (gt_ggc_mp_binding_level): New.
2265 (c_init_decl_processing): Use canonical name for mark_binding_level.
2266 Add free_binding_level as deletable root.
2267 (mark_c_function_context): Use canonical name for mark_binding_level.
2268 * Makefile.in (c-decl.o): Add gt-c-decl.h.
2269 (c-pragma.o): Add gt-c-pragma.h.
2270 (GTFILES): Add c-decl.c and c-pragma.c.
2271 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
2273 * tree.c (struct type_hash): Use gengtype.
2274 (init_obstacks): Use canonical name for type_hash_mark.
2275 (type_hash_mark): Delete.
2277 * rtl.h (struct mem_attrs): Use gengtype.
2278 * optabs.h (struct optab): Use gengtype.
2279 * optabs.c (expand_binop): Squish signed/unsigned warning.
2280 (mark_optab): Make local, use canonical name, use autogenerated
2282 (init_optabs): Use canonical name for mark_optab.
2283 (new_optab): Use GGC to allocate optabs.
2284 * ggc.h: Delete mark_optab prototype.
2285 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
2286 mem_attrs marker procedure.
2287 * gengtype.c (get_output_file): Include headers in gtype-desc.c
2288 explicitly rather than deducing them from file names.
2289 (write_gc_structure_fields): Handle arrays of structures.
2290 (main): Return non-zero exit code if errors occur during output.
2291 * emit-rtl.c (mem_attrs_mark): Delete.
2292 (init_emit_once): Use canonical name for mem_attrs marker procedure.
2293 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
2294 (tree.o): Depend on gt-tree.h.
2295 (GTFILES): Add rtl.h, optabs.h, tree.c.
2296 (gt-tree.h): Add it to s-gtype rule.
2298 * .cvsignore: Ignore gengtype flex/bison generated files.
2299 * Makefile.in (GGC_H): Add gtype-desc.h.
2300 (OBJS): Add gtype-desc.o.
2301 (GEN): Add gengtype.
2302 (STAGESTUFF): Add gengtype.
2303 (varasm.o): Add gt-varasm.h.
2304 (stmt.o): Add gt-stmt.h.
2305 (except.o): Add gt-except.h.
2306 (integrate.o): Add gt-integrate.h.
2308 Add new rules for new files.
2309 * configure: Regenerate.
2310 * configure.in: Correct defaults.h paths.
2311 * emit-rtl.c (mark_sequence_stack): Delete.
2312 (mark_emit_status): Delete.
2313 (start_sequence): Allocate sequence structures using GGC.
2314 (end_sequence): Allocate sequence structures using GGC.
2315 * except.c: Use gengtype for various structures. Include
2317 * expr.c (mark_expr_status): Delete.
2318 * function.c: Use gengtype for various structures. Include
2320 (mark_function_status): Use standard gt_ggc names for marker functions.
2321 (ggc_mark_struct_function): Likewise.
2322 * function.h: Use gengtype for various structures.
2323 * gengtype-lex.l: New file.
2324 * gengtype-yacc.y: New file.
2325 * gengtype.c: New file.
2326 * gengtype.h: New file.
2327 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
2328 the standard names. Remove some now-unnecessary prototypes.
2329 * integrate.c: Use gengtype for various structures. Include
2331 (mark_hard_reg_initial_vals): Delete.
2332 * integrate.h (mark_hard_reg_initial_vals): Delete.
2333 * stmt.c: Use gengtype for various structures. Include
2335 (mark_case_node): Delete.
2336 (mark_goto_fixup): Delete.
2337 (mark_stmt_status): Use standard gt_ggc names for marker functions.
2338 * system.h: Define GTY to empty. In flex/bison files,
2339 don't poison malloc or realloc, instead just define them to
2340 xmalloc and xrealloc.
2341 * varasm.c: Use gengtype for various structures. Include
2342 gt-varasm.h. Use standard gt_ggc names for marker functions.
2343 (mark_pool_constant): Delete.
2344 (mark_varasm_status): Delete.
2345 (decode_rtx_const): #if 0 out non-typesafe hack.
2347 * function.h (free_lang_status): Mark as obsolete.
2348 * function.c (free_lang_status): Mark as obsolete.
2349 * c-decl.c (push_c_function_context): Use GC to allocate and free
2350 struct language_function.
2351 (pop_c_function_context): Likewise.
2352 * c-common.c (mark_c_language_function): Mark struct
2355 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
2356 Document that the machine_function structures must be allocated
2357 using GC. Update mark_machine_status documentation.
2358 * function.h: Don't declare free_machine_status.
2359 * function.c (free_machine_status): Don't define.
2360 (free_after_compilation): Don't call free_machine_status.
2361 (ggc_mark_struct_function): Mark f->machine. Call
2362 mark_machine_status only on non-NULL pointers.
2363 * system.h: Poison free_machine_status.
2364 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
2365 struct machine_function.
2366 (xtensa_free_machine_status): Delete.
2367 (override_options): Don't set free_machine_status.
2368 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
2369 free_machine_status.
2370 (rs6000_init_machine_status): Use GC on struct machine_function.
2371 (rs6000_free_machine_status): Delete.
2372 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
2374 (ia64_mark_machine_status): Likewise.
2375 (ia64_free_machine_status): Delete.
2376 (ia64_override_options): Don't set free_machine_status.
2377 * config/i386/i386.c (override_options): Don't set
2378 free_machine_status.
2379 (ix86_init_machine_status): Use GC on struct machine_function.
2380 (ix86_mark_machine_status): Likewise.
2381 (ix86_free_machine_status): Delete.
2382 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
2384 (d30v_mark_machine_status): Likewise.
2385 (d30v_free_machine_status): Delete.
2386 (d30v_init_expanders): Don't set free_machine_status.
2387 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
2389 (arm_init_machine_status): Likewise.
2390 (arm_free_machine_status): Delete.
2391 (arm_init_expanders): Don't set free_machine_status.
2392 * config/alpha/alpha.c (override_options): Don't set
2393 free_machine_status.
2394 (alpha_init_machine_status): Use GC on struct machine_function.
2395 (alpha_mark_machine_status): Likewise.
2396 (alpha_free_machine_status): Delete.
2398 * varasm.c (compare_constant): Fix typo.
2400 * varasm.c: Don't include obstack.h.
2401 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
2402 (struct rtx_const): Give substructures names, improve formatting.
2403 (struct constant_descriptor): Delete.
2404 (struct constant_descriptor_tree): New, based on constant_descriptor.
2405 (const_hash_table): Is a hash table of trees.
2406 (mark_const_hash_entry): Is used for hashes of trees. Mark
2407 constant_descriptor_tree structure.
2408 (mark_const_str_htab_1): Mark deferred_string structure.
2409 (compare_constant): Rewrite to compare trees.
2410 (compare_constant_1): Delete.
2411 (record_constant): Delete.
2412 (record_constant_1): Delete.
2413 (output_constant_def): Use struct constant_descriptor_tree.
2414 Don't duplicate trees twice.
2415 (struct constant_descriptor_rtx): New.
2416 (struct pool_constant): Used for rtx constants.
2417 (init_varasm_status): Update for change to struct varasm_status.
2418 (mark_varasm_status): Likewise.
2419 (free_varasm_status): Delete.
2420 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
2421 (record_constant_rtx): Likewise.
2422 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
2423 (force_const_mem): Likewise.
2424 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
2425 * function.c (free_after_compilation): Don't use free_varasm_status.
2426 * function.h: Don't prototype free_varasm_status.
2428 * ggc-common.c (ggc_realloc): Handle X being NULL.
2430 * ggc-common.c (ggc_realloc): New function.
2431 * ggc.h: Prototype it.
2432 * emit-rtl.c (free_emit_status): Delete.
2433 (init_emit): Allocate emit subarrays using GC.
2434 (gen_reg_rtx): Reallocate subarrays using GC.
2435 (init_emit): Use GC to allocate 'struct emit_status' and its
2437 (mark_emit_status): Mark structure and its subarrays.
2438 * stmt.c (free_stmt_status): Delete.
2439 * expr.c (free_expr_status): Delete.
2440 * function.h: Remove prototypes for deleted functions.
2441 * function.c (free_after_compilation): Don't use deleted functions.
2442 Don't call free() on x_parm_reg_stack_loc.
2443 (free_after_parsing): Don't use free_stmt_status.
2444 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
2445 (mark_function_status): Mark x_parm_reg_stack_loc.
2447 * varasm.c (init_varasm_status): Use GC to allocate
2448 'struct varasm_status' and its fields x_const_rtx_hash_table
2449 and x_const_rtx_sym_hash_table.
2450 (mark_varasm_status): Mark them.
2451 (free_varasm_status): Use GC to free them.
2452 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
2453 (mark_expr_status): Mark the structure itself.
2454 (free_expr_status): Use GC to free the structure.
2455 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
2456 (mark_stmt_status): Mark the 'struct stmt_status' itself.
2457 (init_stmt_for_function): Allocate the structure for GC.
2459 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
2460 (equate_type_number_to_die): Likewise.
2461 * tree.h (TYPE_SYMTAB_DIE): New macro.
2462 (struct die_struct): Predeclare.
2463 (struct tree_type): Add field symtab.die. Add a tag
2464 to the union type of field symtab.
2466 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
2467 'struct rtvec_def *', not 'struct rtvec_def'.
2469 * function.h (original_arg_vector): Make a real rtvec.
2470 * function.c (ggc_mark_struct_function): Adjust.
2471 * integrate.c (expand_inline_function): Adjust.
2473 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2475 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
2476 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
2477 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
2478 (TARGET_VERSION_CPU): Define according to the
2480 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
2482 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
2483 if TARGET_SHMEDIA64.
2484 (LINK_DEFAULT_CPU_EMUL): Define according to the
2486 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
2487 (SUBTARGET_LINK_SPEC): Define.
2488 (LINK_SPEC): Use SH_LINK_SPEC.
2490 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
2491 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
2492 and TARGET_SHMEDIA64 which abort, for now.
2493 * config/sh/t-netbsd-sh5: New file.
2494 * config/sh/t-netbsd-sh5-32: New file.
2495 * config/sh/t-netbsd-sh5-64: New file.
2497 2002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
2498 Richard Henderson <rth@redhat.com>
2500 * config/alpha/alpha.c (reg_or_const_int_operand): New.
2501 (some_operand, input_operand): Accept CONST_VECTOR.
2502 (alpha_extra_constraint): Add 'W'.
2503 (alpha_expand_zap_mask): New.
2504 (alpha_expand_builtin_vector_binop): New.
2505 (enum alpha_builtin): New.
2506 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
2507 (alpha_init_builtins, alpha_expand_builtin): New.
2508 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
2509 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
2510 (PREDICATE_CODES): Update.
2511 * config/alpha/alpha-protos.h: Update.
2512 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
2513 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
2514 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
2515 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
2516 (movv2si, movv2si_fix, movv2si_nofix): New.
2517 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
2518 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
2519 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
2520 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
2521 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
2522 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
2523 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
2524 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
2525 builtin_unpkbw, unpkbw): New.
2526 * doc/extend.texi (Alpha Built-in Functions): New.
2528 2002-06-03 Richard Henderson <rth@redhat.com>
2530 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
2531 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
2533 2002-06-03 Richard Henderson <rth@redhat.com>
2535 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
2537 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
2538 (const0_operand): New.
2539 (reg_or_fp0_operand, fp0_operand): Remove.
2540 * config/alpha/alpha.h (PREDICATE_CODES): Update.
2541 * config/alpha/alpha-protos.h: Update.
2542 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
2543 and fp0_operand with reg_or_0_operand and const0_operand.
2545 2002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
2547 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
2549 2002-06-03 Roger Sayle <roger@eyesopen.com>
2551 * gcse.c (cprop_jump): Use single_set to get the pattern
2552 from the setcc argument.
2554 2002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
2556 * diagnostic.h (diagnostic_count): Move from output_buffer to
2558 (diagnostic_kind_count): Adjust definition.
2560 Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
2562 * except.c (except.c): Do not rebuild CFG.
2563 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
2566 Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
2568 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
2569 * toplev.c: Include cfglahout.h
2570 * Makefile.in (toplev.c): Add dependnecy.
2572 2002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
2574 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
2575 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
2576 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
2578 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
2580 * config/ns32k/netbsd.h: Update copyright years.
2581 (TARGET_OS_CPP_BUILTINS): Define.
2582 (CPP_PREDEFINES): Remove.
2583 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
2584 (TARGET_CPU_CPP_BUILTINS): Define.
2586 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
2588 * emit-rtl.c: Fix formatting.
2589 * errors.h: Likewise.
2590 * except.c: Likewise.
2591 * explow.c: Likewise.
2592 * expmed.c: Likewise.
2596 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
2598 * config/h8300/elf.h: Fix formatting.
2599 * config/h8300/rtems.h: Likewise.
2601 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
2603 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
2605 2002-06-02 Tom Tromey <tromey@redhat.com>
2607 * fixinc/fixincl.x: Rebuilt.
2608 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
2610 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2613 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
2614 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
2618 Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
2620 * final.c (final): Allow notes to not have computed addresses;
2621 kill no longer needed STACK_REGS ifdef.
2623 2002-06-02 Richard Henderson <rth@redhat.com>
2625 * gcse.c (bypass_conditional_jumps): Fix typo last change.
2627 Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
2629 * loop.c (emit_prefetch_instructions): Properly place the address
2632 Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
2634 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
2635 (set_block_for_insn): Turn into macro.
2636 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
2637 * cfglayout.c (insn_scopes): Kill.
2638 (scope_to_insns_initialize): Do not use insn_scopes.
2639 (scope_to_insns_finalize): Likewise.
2640 (duplicate_insn_chain): Likewise.
2641 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
2642 * cfgrtl.c (basic_block_for_insn): Kill.
2643 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
2644 (create_basic_block_structure): Use reorder_insns.
2645 (compute_bb_for_insn): Do not use basic_block_for_insn.
2646 (merge_blocks_nomove): Likewise.
2647 (update_bb_for_insn): Likewise.
2648 (verify_flow_info): Likewise.
2649 (set_block_for_insn): Kill.
2650 * combine.c (try_combine): Update gen_rtx_INSN call.
2651 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
2652 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
2654 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
2655 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
2657 (emit_insns_after): Simplify.
2658 (emit_copy_of_insn_after): Copy scope.
2659 * final.c (final_start_function): Lower scopes.
2660 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
2661 * integrate.c (copy_insn_list): Cope scopes.
2662 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
2663 * loop.c (loop_optimize): Do not care block notes.
2664 * print-rtl.c (print_rtx): Print BB.
2665 * recog.c (apply_change_group): Simplify.
2666 * rtl.c (copy_rtx): Handle 'B'.
2667 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
2668 * rtl.h (Field accessors): Update indexes.
2669 * sched-ebb.c (schedule_ebbs): Do not lower notes.
2670 * sched-rgn.c (schedule_insns): Likewise.
2671 * toplev.c (rest_of_compilation): Lower notes.
2672 * unroll.c (unroll_loop): Do not care scoping notes.
2673 (copy_loop_body): Copy scopes.
2675 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2678 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
2680 * rtems.h: Similarly.
2681 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
2682 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
2683 (TARGET_CPU_CPP_BUILTINS): Use.
2685 2002-06-02 Richard Henderson <rth@redhat.com>
2687 * alias.c: Include target.h.
2688 (mark_constant_function): Use targetm.binds_local_p instead
2689 of checking TREE_PUBLIC ourselves.
2690 * Makefile.in (alias.o): Add TARGET_H.
2692 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2694 * c-lex.c: Update copyright and file description.
2696 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2698 * config/fr30/fr30.h: Update to new CPP macros.
2700 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2702 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
2704 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2705 Zack Weinberg <zack@codesourcery.com>
2707 * c-common.c (c_common_init): Override cpplib's default
2708 warn_long_long setting.
2709 * c-lex.c (lex_number): Replace with interpret_integer,
2710 interpret_float, narrowest_unsigned_type and
2711 narrowest_signed_type, taking advantage of the new
2712 cpplib functionality.
2713 * cpperror.c (_cpp_begin_message): If a warning is turned
2714 into an error, avoid printing "warning:".
2715 * cppexp.c (cpp_num_sign_extend): New.
2716 * cppinit.c: Update comment.
2717 * cpplib.h (cpp_num_sign_extend): New.
2718 * tree.h: Update comment.
2720 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
2722 * diagnostic.h (struct diagnostic_context): Add new member
2724 (internal_error_function): Remove declaration.
2725 * diagnostic.c (internal_error_function): Remove definition..
2726 (internal_error): Adjust use.
2728 2002-06-02 Richard Henderson <rth@redhat.com>
2730 * rtl.h (CC0_P): New.
2731 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
2732 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
2733 (bypass_block): Save old dest block for dump text.
2734 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
2735 Allow only true SET insns, not single_set.
2737 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
2739 * diagnostic.c (diagnostic_finish): Rename to output_flush.
2740 (clear_disgnostic_info): Rename to output_clear_data. Use false
2741 instead of 0 for boolean value.
2742 Adjust function call throughout.
2744 Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
2746 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
2747 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
2749 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2751 * d30v.h (CPP_PREDEFINES): Replace with
2752 (TARGET_CPU_CPP_BUILTINS): New.
2754 2002-06-02 Roger Sayle <roger@eyesopen.com>
2756 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
2758 Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
2760 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
2762 2002-06-02 Richard Henderson <rth@redhat.com>
2764 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
2766 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
2768 Support for C++ constructors/destructors.
2769 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
2770 instead of looping if main() returns.
2771 (asm_file_start): Output global symbols that cause .data and .bss
2772 initialization code to be linked in, unconditionally for now.
2773 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
2774 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
2775 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2777 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
2778 (__tablejump__): New.
2779 (__do_copy_data, __do_clear_bss): New.
2780 (__do_global_ctors, __do_global_dtors): New.
2781 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
2784 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2786 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
2787 (CPP_SPEC, CPP_PREDEFINES): Kill.
2788 * c4x/rtems.h (CPP_PREDEFINES): Kill.
2789 (TARGET_OS_CPP_BUILTINS): New.
2791 Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
2793 * Makefile.in (tracer.o): New.
2794 * params.def (TRACER_*): New options.
2795 * rtl.h (tracer): Declare.
2796 * timevar.def (TV_TRACER): New.
2797 * toplev.c (dump_file_index): Add DFI_tracer.
2798 (dump_file_info): Add tracer.
2800 (lang_indepdenent_options): Add tracer.
2801 (rest_of_compilation): Call tracer.
2802 * tracer.c: New file.
2803 * invoke.texi (-ftracer): Document.
2804 (--param tracer-*): Document.
2806 2002-06-01 Daniel Berlin <dberlin@dberlin.org>
2808 * tree-inline.c (expand_call_inline): Make the statement
2809 expression we generate have a COMPOUND_STMT.
2811 2002-06-01 Roger Sayle <roger@eyesopen.com>
2813 * gcse.c (cprop_cc0_jump): Function deleted.
2814 (cprop_jump): Take an additional argument which is the possibly
2815 NULL cc setting insn immediately before the conditional jump.
2816 When a MODE_CC set is present, substitute it into the JUMP_INSN
2817 before attempting the constant propagation.
2818 (cprop_insn): Recognize cc setters followed by conditional jumps
2819 as a special case. Use cprop_jump instead of cprop_cc0_jump.
2820 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
2821 (find_bypass_set): New function based upon find_avail_set used by
2822 cprop, but finds constant expressions available at the end of
2824 (bypass_block): New function. Given a basic block that begins
2825 with a conditional jump and multiple incoming edges, perform
2826 the jump bypass optimization.
2827 (bypass_conditional_jumps): New function. Call bypass_block with
2828 each suitable basic block in the CFG using a simple single pass.
2830 2002-06-01 Roger Sayle <roger@eyesopen.com>
2832 * tree.c (real_minus_onep): New function to test for -1.0.
2833 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
2835 2002-06-01 Roger Sayle <roger@eyesopen.com>
2837 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
2838 and "!p && !q" into "(p|q) == 0" under suitable conditions.
2840 2002-06-01 Andreas Jaeger <aj@suse.de>
2842 * cppexp.c (cpp_classify_number): Cast precission to int for
2843 correct printf format.
2845 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
2847 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
2848 expected, but don't really exist: atmega83, atmega85, attiny10.
2849 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
2850 emulations for all devices.
2851 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
2852 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
2854 2002-06-01 Kazu Hirata <kazu@cs.umass.edu>
2856 * config/h8300/h8300-protos.h: Add a prototype for
2857 h8300_shift_needs_scratch_p.
2858 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
2859 * config/h8300/h8300.h (OK_FOR_R): New.
2860 (OK_FOR_S): Likewise.
2861 (OK_FOR_T): Likewise.
2862 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
2863 * config/h8300/h8300.md (anonymous shift patterns): Use
2864 constraints R, S, and T.
2866 Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2868 * basic-block.h (struct basic_block_def): New field loop_father.
2869 (BB_VISITED): New flag.
2870 (struct loop): New field pred, removed field shared.
2871 (struct loops): New field parray.
2872 (LOOP_EXITS_DOMS): Removed.
2873 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
2874 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
2875 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
2876 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
2877 verify_loop_structure): Declare.
2878 * cfg.c (entry_exit_blocks): Initialize loop_father field.
2879 * cfganal.c (dfs_enumerate_from): New function.
2880 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
2881 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
2882 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
2883 flow_loop_dump, flow_loops_dump, flow_loops_free,
2884 flow_loop_tree_node_add, flow_loop_level_compute,
2885 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
2886 flow_loop_outside_edge_p): Modified for new infrastructure.
2887 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
2888 redirect_edge_with_latch_update, flow_loop_free): New static functions.
2889 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
2890 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
2891 find_common_loop, verify_loop_structure, loop_latch_edge,
2892 loop_preheader_edge): New functions.
2893 (flow_loops_cfg_dump): Do not show dominators, as this information
2894 does not remain up to date long.
2895 (flow_loops_find): Store results in new format.
2896 * predict.c (propagate_freq, estimate_probability,
2897 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
2900 2002-06-01 Alan Lehotsky <apl@alum.mit.edu>
2902 * except.c (nothrow_function_p): Walk epilogue delay list
2903 checking the insn, not the chain for potential throws.
2905 2002-05-31 Zack Weinberg <zack@codesourcery.com>
2907 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
2908 (install): Refer to install-cpp directly.
2909 (uninstall-cpp): Folded into uninstall rule.
2910 * configure.in: Delete all code relating to --disable-cpp.
2911 * configure: Regenerate.
2912 * config/t-install-cpp: Delete.
2914 2002-05-31 Richard Henderson <rth@redhat.com>
2916 * configure.in (HAVE_AS_TLS): Add alpha tests.
2917 * configure: Rebuild.
2918 * config/alpha/alpha.c (TARGET_AS_TLS): New.
2919 (alpha_tls_size, alpha_tls_size_string): New.
2920 (overide_options): Set it. Always install machine_status hooks.
2921 (input_operand): Accept got tls predicates.
2922 (local_symbol_p): Merge into ...
2923 (local_symbolic_operand): ... here. Reject tls symbols.
2924 (global_symbolic_operand): Likewise.
2925 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
2926 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
2927 (tp16_symbolic_operand, tp32_symbolic_operand): New.
2928 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
2929 (alpha_encode_section_info): Handle TLS symbols.
2930 (alpha_strip_name_encoding): Likewise.
2931 (alpha_legitimate_address_p): Likewise.
2932 (alpha_legitimize_address): Likewise.
2933 (alpha_expand_mov): Early exit to avoid nop moves.
2934 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
2935 (alpha_init_machine_status, alpha_mark_machine_status,
2936 alpha_free_machine_status): Always define.
2937 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
2938 (print_operand, print_operand_address): Add TLS relocs.
2939 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
2940 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
2941 (TARGET_SWITCHES): Add -mtls-kernel.
2942 (alpha_tls_size, alpha_tls_size_string): New.
2943 (TARGET_OPTIONS): Add -mtls-size=.
2944 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
2945 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
2946 (ASM_OUTPUT_LABELREF): Skip %.
2947 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
2948 (PREDICATE_CODES): Update.
2949 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
2950 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
2951 UNSPEC_TP, UNSPECV_SET_TP): New.
2952 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
2953 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
2954 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
2955 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
2956 (call_value_osf_2_er): Accept anything as op4.
2957 * config/alpha/alpha-protos.h: Update.
2958 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
2960 2002-05-31 Zack Weinberg <zack@codesourcery.com>
2962 * cppinit.c (append_include_chain): Always pay attention to
2963 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
2966 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
2968 * target.h: Fix formatting.
2969 * timevar.h: Likewise.
2970 * tlink.c: Likewise.
2971 * toplev.c: Likewise.
2972 * toplev.h: Likewise.
2974 * tree-dump.h: Likewise.
2976 * tree-inline.h: Likewise.
2977 * unroll.c: Likewise.
2978 * unwind-dw2.c: Likewise.
2979 * unwind-dw2-fde.c: Likewise.
2980 * unwind-dw2-fde-glibc.c: Likewise.
2981 * unwind-dw2-fde.h: Likewise.
2982 * unwind.h: Likewise.
2983 * unwind-sjlj.c: Likewise.
2984 * varasm.c: Likewise.
2985 * varray.h: Likewise.
2986 * vmsdbg.h: Likewise.
2987 * vmsdbgout.c: Likewise.
2988 * xcoffout.h: Likewise.
2990 2002-05-31 Igor Shevlyakov <igor@microunity.com>
2992 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
2993 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
2995 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
2997 * gcc.c (cpp_unique_options): Remove "-d" options.
2998 (cpp_debug_options): New spec string.
2999 (default_compilers): Use it.
3000 * objc/lang-specs.h: Likewise.
3002 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
3004 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
3005 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
3006 * gcc/mklibgcc.in: Likewise.
3007 * gcc/config/arc/t-arc: Likewise.
3008 * gcc/configure.in: Likewise.
3009 * gcc/configure: Regenerate.
3011 2002-05-31 Stan Shebs <shebs@apple.com>
3012 Turly O'Connor <turly@apple.com>
3014 * c-decl.c (struct binding_level): Change int field n_incomplete
3015 to tree list incomplete_list.
3016 (clear_binding_level): Init field with NULL.
3017 (pushdecl): Add incomplete type to list.
3018 (mark_binding_level): Mark the incomplete list.
3019 (finish_struct): Scan the incomplete list for types instead
3020 of all decls in the current binding level.
3022 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
3024 * pa.c (output_millicode_call): Add missing '%' characters.
3025 (output_call): Likewise.
3027 2002-05-31 David Edelsohn <edelsohn@gnu.org>
3029 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
3030 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
3032 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
3034 * varasm.c (mark_constant_pool): Walk epilogue delay list
3035 checking the insn, not the chain for potential constants.
3037 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
3039 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
3041 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
3043 * i386.c (classify_argument): Properly handle base types.
3045 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
3046 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
3049 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
3051 * gcse.c (gcse_emit_move_after): New.
3052 (pre_delete, hoist_store): Use it.
3054 * reload1.c (emit_input_reload_insns): Use constrain_operands
3055 instead of constraint_accepts_reg_p to verify optimization.
3056 (constraint_accepts_reg_p): Kill
3058 * reload1.c (reload_cse_delete_noop_set): Kill.
3059 (reload_cse_simplify): use delte_insn_and_edges.
3061 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3063 * cfgloop.c (flow_loops_find): Initialize first and last fields
3066 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
3068 * c-common.c (builtin_define_std): Correct logic.
3070 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
3072 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
3073 (output_call): Likewise.
3075 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
3077 * pa.c: Move output.h include after tree.h include.
3078 (pa_asm_output_mi_thunk): Constify identifier lab.
3080 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
3082 * config/ns32k/ns32k.h: Define named constants for the
3083 bits in target_flags and use them.
3084 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
3086 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
3088 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
3089 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
3090 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
3091 default scheduling model.
3092 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
3093 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
3094 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
3095 * doc/install.texi (hppa*-*-*): Document default scheduling.
3097 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
3099 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
3101 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
3103 * config.gcc (ns32k-*-netbsd*): Set tm_file to
3104 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
3105 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
3106 netbsd.h, or netbsd-aout.h.
3108 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
3110 * longlong.h (count_trailing_zeros): Add missing \, and clean up
3111 whitespace in __ns32000__ case.
3113 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
3115 * expr.c (expand_expr): Output partially zeroed out vectors with
3116 output_constant_def.
3118 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3120 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
3122 (shl*-*-netbsdelf*): New targets.
3123 * config/sh/netbsd-elf.h: New file.
3124 * config/sh/t-netbsd: New file.
3126 2002-05-30 Richard Henderson <rth@redhat.com>
3127 Eric Botcazou <ebotcazou@multimania.com>
3129 PR optimization/6822
3130 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
3131 to unsigned int for op1 comparisons. Use gen_int_mode.
3133 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
3135 * expmed.c (const_mult_add_overflow_p): New.
3136 * expr.h: Declare it.
3137 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
3138 Don't eliminate the biv if the giv has a constant multiplier and
3139 the rhs argument of the comparison does satisfy the predicate.
3140 Use expand_mult_add to compute the replacement constant.
3142 2002-05-30 Osku Salerma <osku@iki.fi>
3144 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
3145 (c_common_get_alias_set): Handle it.
3146 * doc/extend.texi: Document it.
3148 2002-05-30 Richard Henderson <rth@redhat.com>
3150 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
3151 * toplev.c (process_options): Don't check it.
3152 * doc/tm.texi: Don't document it.
3153 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
3154 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
3155 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
3156 frame pointer optimization if current_function_profile.
3158 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
3160 * langhooks.c: Fix formatting.
3161 * langhooks.h: Likewise.
3163 * libgcc2.c: Likewise.
3164 * lists.c: Likewise.
3165 * local-alloc.c: Likewise.
3169 2002-05-30 Marc Espie <espie@openbsd.org>
3171 * config.gcc (sparc64-*-openbsd*): New.
3172 * config/sparc/openbsd1-64.h: New.
3173 * config/sparc/openbsd64.h: New.
3175 2002-05-30 Jeff Law <law@redhat.com>
3177 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
3178 a dead insn with a REG_RETVAL note when the entire libcall is not
3179 dead and remove the associated REG_LIBCALL note at the same time.
3181 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
3183 * lcm.c (output.h): #include.
3184 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
3185 as an ordinary block.
3186 (optimize_mode_switching): Don't pretend that the exit block is
3187 an ordinary block, or handle sucessors of entry block specially.
3188 Instead, split edges from entry block and to exit block, and
3189 put a computing definition on the thus gained post-entry-block,
3190 and a need on the pre-exit-block.
3192 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
3194 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
3195 * rtl.texi: Document 'B'
3197 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3199 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
3201 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
3203 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
3205 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
3206 const0_rtx instead of NULL_RTX when in error.
3207 (altivec_expand_abs_builtin): Same.
3208 (rs6000_expand_binop_builtin): Same.
3209 (altivec_expand_predicate_builtin): Same.
3210 (altivec_expand_stv_builtin): Same.
3211 (rs6000_expand_ternop_builtin): Same.
3212 (altivec_expand_builtin): Same.
3214 2002-05-29 David S. Miller <davem@redhat.com>
3216 * rtl.h (clear_emit_caches): Delete.
3217 * integrate.c (output_inline_function): Don't call it.
3218 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
3219 (clear_emit_caches): Delete definition.
3220 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
3222 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
3224 * config/mmix/mmix.c: Include real.h.
3225 (mmix_constant_address_p): Remove redundant test before switch.
3227 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
3229 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
3230 only if not already defined.
3232 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
3234 * config/h8300/h8300-protos.h: Remove prototypes for
3235 ok_for_bclr and small_power_of_two.
3236 * config/h8300/h8300.c (small_power_of_two): Remove.
3237 (ok_for_blcr): Likewise.
3238 (fix_bit_operand): Make WHAT deal with an integer instead of a
3239 constraint character.
3240 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
3241 (CONST_OK_FOR_P): Likewise.
3242 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
3243 CONST_OK_FOR_P any more.
3244 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
3249 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
3251 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
3252 (CPP_PREDEFINES): Make sure this is undefined.
3253 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
3254 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
3255 or -U__MIPSEB__ before defining one or the other. Instead,
3256 use %(subtarget_endian_default) if neither -EB nor -EL are
3258 (SUBTARGET_EXTRA_SPECS): Define.
3259 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
3262 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
3264 * doc/md.texi (Patterns): Note pattern condition pitfall
3267 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
3269 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
3270 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
3271 ternary operations from here...
3272 (rs6000_expand_builtin): ...to here.
3273 New argument expandedp.
3274 Change all instances of altivec_expand_binop_builtin to
3275 rs6000_expand_binop_builtin.
3276 (altivec_expand_unop_builtin): Rename to
3277 rs6000_expand_unop_builtin.
3278 (altivec_expand_binop_builtin): Rename to
3279 rs6000_expand_binop_builtin.
3280 (altivec_expand_ternop_builtin): Rename to
3281 rs6000_expand_ternop_builtin.
3283 2002-05-29 Richard Henderson <rth@redhat.com>
3285 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
3286 (TARGET_BI_ARCH): Likewise.
3287 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
3288 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
3289 (TARGET_64BIT_DEFAULT): Default to 0.
3290 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
3292 2002-05-29 Richard Henderson <rth@redhat.com>
3294 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
3295 (get_pc_thunk_name): New.
3296 (output_set_got): Use it.
3297 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
3298 into linkonce sections.
3300 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
3302 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
3303 (CPP_PREDEFINES): Make sure this is undefined.
3304 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
3305 (CPP_SUBTARGET_SPEC): Don't provide different versions for
3306 default-32 and default-64. Just always use %(netbsd_cpp_spec).
3307 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
3308 cpp_subtarget_spec64. Add netbsd_cpp_spec.
3309 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
3310 (CPP_PREDEFINES): Make sure this is undefined.
3311 (SUBTARGET_EXTRA_SPECS): Define.
3312 (CPP_SPEC): Use %(netbsd_cpp_spec).
3314 2002-05-29 Jeff Law <law@redhat.com>
3316 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
3318 * flow.c (propagate_one_insn): Do not remove a dead insn if it
3319 contains a REG_RETVAL note.
3321 * haifa-sched (sched_analyze): Remove another useless clearing
3322 of SCHED_GROUP_P I missed yesterday.
3324 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
3325 * pa.c (pa_asm_output_mi_thunk): New function.
3326 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
3328 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
3329 Marek Michalkiewicz <marekm@amelek.gda.pl>
3331 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
3332 (avr_asm_only_p): Make non-static.
3333 (enum avr_arch): Remove.
3334 (avr_arch_types): New.
3335 (avr_mcu_types): Update.
3336 (avr_override_options): Use avr_arch_types table instead of switch.
3337 * avr.h (CPP_PREDEFINES): Die.
3338 (avr_base_arch_macro, avr_extra_arch_macro): New.
3339 (TARGET_CPU_CPP_BUILTINS): New.
3340 (CPP_SPEC, EXTRA_SPECS): Simplify.
3341 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
3342 CPP_AVR5_SPEC): Die.
3344 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
3346 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
3347 NETBSD_OS_CPP_BUILTINS_AOUT.
3348 (SUBTARGET_EXTRA_SPECS): Define.
3349 (CPP_SPEC): Use %(netbsd_cpp_spec).
3351 2002-05-29 Richard Henderson <rth@redhat.com>
3353 * config/i386/i386.c (ix86_output_function_epilogue): New.
3354 (TARGET_ASM_FUNCTION_EPILOGUE): New.
3355 (pic_label_name): Remove.
3356 (pic_labels_used): New.
3357 (ix86_asm_file_end): Emit one pc load stub for each register used.
3358 (output_set_got): Generate deep pc load to any register.
3359 (ix86_select_alt_pic_regnum): New.
3360 (ix86_save_reg): Don't save pic register if we can find a valid
3361 call-clobbered replacement.
3362 (ix86_expand_prologue): If we found a valid replacement, renumber
3363 pic_offset_table_rtx.
3364 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
3365 pic_offset_table_rtx after reload.
3366 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
3367 * config/i386/i386.md (set_got): Make insn, not expander.
3368 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
3370 2002-05-29 Richard Henderson <rth@redhat.com>
3372 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
3373 alignment for alloca.
3375 2002-05-29 Richard Henderson <rth@redhat.com>
3377 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
3378 (print_operand_address): Only add rip for symbolic addresses
3379 for which we do not have another relocation type.
3381 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
3383 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
3384 (EXTRA_SPECS): Add netbsd_cpp_spec.
3385 (CPP_SPEC): Use %(netbsd_cpp_spec).
3386 (CPP_PREDEFINES): Remove.
3387 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
3388 (EXTRA_SPECS): Define.
3389 (CPP_SPEC): Use %(netbsd_cpp_spec).
3390 (CPP_PREDEFINES): Remove.
3392 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
3394 PR preprocessor/6844
3395 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
3398 2002-05-29 Eric Christopher <echristo@redhat.com>
3400 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
3401 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
3403 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
3405 * config/fr30/fr30.md: Remove previous restriction on splits.
3406 Enforce conformance through gen_lowpart and cont_int_operand.
3407 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
3408 as the assembler does not support ".bss".
3410 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
3412 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
3413 (CPP_PREDEFINES): Remove.
3414 (SUBTARGET_EXTRA_SPECS): Define.
3415 (CPP_SPEC): Use %(netbsd_cpp_spec).
3416 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
3417 (CPP_PREDEFINES): Remove.
3418 (SUBTARGET_EXTRA_SPECS): Define.
3419 (CPP_SPEC): Use %(netbsd_cpp_spec).
3420 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
3421 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
3422 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
3423 Add netbsd_cpp_spec.
3424 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
3426 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
3427 Zack Weinberg <zack@codesourcery.com>
3429 * cppexp.c (cpp_num): Move to cpplib.h.
3430 (CPP_ERROR): Remove.
3431 (interpret_float_suffix, interpret_int_suffix): New.
3432 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
3433 (cpp_classify_number, cpp_interpret_integer): New.
3434 (interpret_number): Remove.
3435 (eval_token): Update to use new routines.
3436 * cpphash.h (cpp_num_part): Move to cpplib.h.
3437 * cppinit.c (cpp_post_options): Set warn_long_long.
3438 * cpplib.h (struct cpp_options): Add warn_long_long.
3439 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
3440 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
3441 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
3442 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
3443 cpp_interpret_integer): New.
3445 2002-05-29 Joel Sherrill <joel@OARcorp.com>
3447 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
3449 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
3451 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
3452 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
3453 (CPP_SUBTARGET_SPEC): Define.
3454 (SUBTARGET_EXTRA_SPECS): Define.
3457 2002-05-29 Chris Lattner <sabre@nondot.org>
3459 * ssa.c (rename_insn_1): Rename uses of undefined registers to
3460 prevent confusion if/when the register is defined.
3462 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
3465 * config/cris/cris.md: Fix typos and thinkos in comments.
3466 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
3468 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
3469 ("*mov_sideqi_mem"): Similar, but for operand 3.
3470 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
3471 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
3472 Remove spurious mode specifier on operand 2.
3474 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
3476 * config/h8300/h8300-protos.h: Remove the prototype for
3478 Add prototypes for single_one_operand and single_zero_operand.
3479 * config/h8300/h8300.c (o_operand): Remove.
3480 (single_one_operand): New.
3481 (single_zero_operand): Likewise.
3482 (print_operand): For 'V' operand, and the operand with 0xff.
3483 For 'V' and 'W' operands, do not and the bit position with 7.
3484 * config/h8300/h8300.md (various anonymous patterns): Replace
3485 use of exact_log2 with single_one_operand/single_zero_operand.
3487 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
3489 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
3491 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
3493 * config/s390/s390.c (legitimate_pic_operand_p): Do not
3494 accept symbolic LARL operands.
3495 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
3498 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
3500 * config/s390/s390.md (cmpstr_64/31): Mark whole
3501 input registers as used.
3503 2002-05-28 Richard Henderson <rth@redhat.com>
3505 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
3506 not current_function_uses_pic_offset_table and
3507 current_function_uses_const_pool; examine current_function_profile.
3508 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
3509 input to blockage if needed.
3510 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
3511 (legitimize_pic_address): Likewise. Set regs_ever_live for
3512 pic_offset_table_rtx when invoked during reload.
3513 * config/i386/i386.h (FINALIZE_PIC): Remove.
3514 * config/i386/i386.md (tablejump): Reformat. Do not set
3515 current_function_uses_pic_offset_table.
3516 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
3517 (blockage): Accept anything as operand 0.
3519 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
3521 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
3522 common CPP built-ins for all NetBSD a.out targets.
3523 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
3524 common CPP built-ins for all NetBSD ELF targets.
3525 * config/netbsd.h: Add missing notice.
3526 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
3527 for all NetBSD targets.
3528 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
3529 for all NetBSD targets using an LP64 code model.
3530 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
3533 2002-05-28 Richard Henderson <rth@redhat.com>
3535 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
3536 update if UPDATE_LIFE_LOCAL.
3538 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
3540 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
3542 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
3543 Jason R. Thorpe <thorpej@wasabisystems.com>
3545 config/sh reorganization to factor out endianness and coff:
3547 * config/sh/little.h: New file.
3548 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
3549 defined, define to 0 to select big-endian.
3550 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
3551 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
3552 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
3553 * config/sh/t-be: New file.
3554 * config/sh/t-le: New file.
3556 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
3557 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
3558 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
3559 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
3560 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
3561 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
3562 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
3563 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
3564 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
3565 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
3566 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
3567 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
3568 (LINK_SPEC): Define to SH_LINK_SPEC.
3569 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
3570 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
3571 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
3572 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
3573 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
3574 * config/sh/coff.h: New file.
3575 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
3576 (TARGET_OBJFMT_CPP_BUILTINS): Define.
3577 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
3578 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
3579 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
3580 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
3581 (PTRDIFF_TYPE): Likewise.
3582 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
3583 (CPP_PREDEFINES): Don't define.
3584 (TARGET_OBJFMT_CPP_BUILTINS): Define.
3585 (LINK_SPEC): Define to SH_LINK_SPEC.
3586 (LINK_EMUL_PREFIX): Redefine.
3587 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
3588 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
3589 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
3590 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
3591 (TARGET_OS_CPP_BUILTINS): Define.
3592 (TARGET_DEFAULT): Redefine.
3593 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
3594 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
3595 (LINK_SPEC): Don't redefine.
3596 (LINK_DEFAULT_CPU_EMUL): Redefine.
3597 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
3598 * sh.c (sh_asm_named_section): Don't declare / define.
3599 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
3600 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
3601 (sh64-*-elf* tm_file): Likewise.
3602 (sh-*-rtemself* tm_file): Likewise.
3603 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
3604 (sh-*-linux* tmake_file): Add sh/t-le.
3605 (sh-*-rtems* tm_file): Add sh/coff.h
3606 (sh-*-* tm_file): Likewise.
3608 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
3610 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
3611 CONSTANT_POOL_ADDRESS_P.
3613 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
3615 2002-05-28 David Edelsohn <edelsohn@gnu.org>
3616 Jeff Law <law@redhat.com>
3618 * optabs.c (expand_binop): Fix nwords sign warnings.
3619 generate pseudo for add_optab.
3621 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
3622 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
3624 2002-05-28 Marc Espie <espie@openbsd.org>
3626 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
3627 inherited from gas.h.
3628 (ASM_QUAD): Undef. OpenBSD does not support it.
3630 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
3632 * doc/install.texi (binaries): Change mingw binaries
3633 link to www.mingw.org.
3635 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3637 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
3639 2002-05-28 Richard Henderson <rth@redhat.com>
3641 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
3642 bottom alignment for leaf functions.
3644 2002-05-28 Zack Weinberg <zack@codesourcery.com>
3646 * config/pa/milli32.S, config/pa/lib1funcs.asm,
3647 config/sparc/sol2-g1.asm: Delete unused files.
3649 2002-05-28 Richard Henderson <rth@redhat.com>
3651 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
3653 * flow.c (calculate_global_regs_live): Rename call_used to
3654 invalidated_by_call. Initialize from regs_invalidated_by_call
3655 instead of call_used_regs.
3657 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
3660 2002-05-28 Zack Weinberg <zack@codesourcery.com>
3662 * tree.h: Don't include real.h.
3663 Forward-declare struct realvaluetype.
3664 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
3666 (TREE_REAL_CST_PTR): New accessor.
3667 (TREE_REAL_CST): Update.
3668 * real.h: Include machmode.h.
3669 (realvaluetype): Make it struct realvaluetype, not a typedef.
3670 (build_real): Prototype here.
3672 * tree.c: Include real.h.
3673 (build_real): Allocate the REAL_VALUE_TYPE as a separate
3674 object in GC memory, set TREE_REAL_CST_PTR to point to it.
3675 (build_real_from_int_cst): Use build_real.
3676 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
3679 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
3680 fold-const.c, print-tree.c, real.c: Include real.h.
3681 * Makefile.in: Update dependency lists.
3683 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3685 * basic-block.h (last_basic_block): Declare.
3686 (expunge_block_nocompact): Declaration removed.
3687 (compact_blocks): Declare.
3688 * cfg.c (last_basic_block): New variable.
3689 (expunge_block_nocompact): Removed.
3690 (expunge_block): Do not compact basic blocks.
3691 (compact_blocks): New.
3692 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
3694 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
3696 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
3697 real positions of blocks.
3698 (delete_unreachable_blocks): Simplified -- quadratic behavior now
3700 (cleanup_cfg): Compact blocks.
3701 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
3702 basic_block_info varray.
3703 (flow_delete_block): Comment update.
3704 (back_edge_of_syntactic_loop_p): Modify position check code.
3705 (verify_flow_info): Update checking.
3706 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
3707 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
3708 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
3709 indices no longer change.
3710 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
3712 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
3713 * profile.c (branch_prob): Compact blocks.
3714 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
3717 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
3719 * config/h8300/h8300.md (two anonymous patterns): New.
3721 2002-05-28 David S. Miller <davem@redhat.com>
3723 * config/sparc/sparc.md (cpu): Tidy.
3724 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
3726 (in_call_delay): Delete reference to 'return' type.
3727 (eligible_for_return_delay, in_return_delay, define_delay
3728 referencing those): Delete.
3729 (rest of file): Use new type attributes as appropriate.
3730 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
3731 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
3732 * config/sparc/ultra1_2.md (us1_single): New reservation.
3733 (us1_ialuX): Likewise.
3734 * config/sparc/ultra3.md (us3_single): Likewise.
3735 (us3_ialuX): Likewise.
3736 (us3_imul, us3_idiv): Tweak.
3738 2002-05-28 Richard Henderson <rth@redhat.com>
3740 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
3743 2002-05-28 Richard Henderson <rth@redhat.com>
3745 * config.gcc: Obsolete mn10200.
3747 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
3749 * cppexp.c (interpret_number): Optimize for single-digit
3750 and less-than-half-precision cases.
3751 (num_trim, num_positive, num_div_op): Cast constants.
3753 2002-05-27 Bo Thorsen <bo@suse.de>
3755 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
3756 3.1 branch. The file was made by Jakub Jelinek.
3757 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
3758 support so multilib doesn't break. And don't define this at all
3759 when -Dinhibit_libc is used.
3760 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
3761 * config/i386/t-linux64: Implement full multilib support. Patch
3762 originally done by Andreas Jaeger and Jakub Jelinek.
3764 2002-05-27 Roger Sayle <roger@eyesopen.com>
3766 * c-common.c: Add support for __attribute__((nothrow)) to specify
3767 that a function cannot throw an exception (using TREE_NOTHROW).
3768 (handle_nothrow_attribute): New function to process this attribute.
3770 * doc/extend.texi: Document the new nothrow function attribute.
3772 2002-05-27 H.J. Lu (hjl@gnu.org)
3774 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
3775 (num_positive): Likewise.
3776 (num_div_op): Likewise.
3778 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
3780 * c-common.c (c_common_init): Always use intmax_t.
3782 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
3784 * c-common.c (c_common_init): Use intmax_t for now.
3786 2002-05-24 Andrew Haley <aph@redhat.com>
3788 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
3789 if T is a boolean type.
3791 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3793 * basic-block.h (last_basic_block): Defined as synonym for
3795 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
3796 flow_depth_first_order_compute, flow_preorder_transversal_compute,
3797 flow_dfs_compute_reverse_init): Replaced relevant occurences of
3798 n_basic_blocks with last_basic_block.
3799 * cfgbuild.c (make_edges): Likewise.
3800 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
3801 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
3802 * combine.c (combine_instructions): Likewise.
3803 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
3804 iterative_dataflow_bitmap): Likewise.
3805 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
3806 calc_idoms, idoms_to_doms): Likewise.
3807 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
3809 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
3810 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
3811 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
3812 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
3813 delete_null_pointer_checks, compute_code_hoist_vbeinout,
3814 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
3815 compute_store_table, build_store_vectors): Likewise.
3816 * haifa-sched.c (sched_init): Likewise.
3817 * ifcvt.c (if_convert): Likewise.
3818 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
3819 pre_edge_lcm, compute_available, compute_nearerout,
3820 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
3822 * predict.c (estimate_probability, process_note_prediction,
3823 note_prediction_to_br_prob): Likewise.
3824 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
3825 * recog.c (split_all_insns, peephole2_optimize): Likewise.
3826 * regrename.c (copyprop_hardreg_forward): Likewise.
3827 * resource.c (init_resource_info): Likewise.
3828 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
3829 init_regions, schedule_insns): Likewise.
3830 * ssa-ccp.c (ssa_const_prop): Likewise.
3831 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3832 * ssa.c (compute_dominance_frontiers,
3833 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
3835 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
3836 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
3839 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
3841 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
3843 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
3844 hoist_insn_after, hoist_insn_to_edge): New.
3846 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
3848 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
3849 (PROP_FINAL): Include.
3850 * flow.c (life_analysis, update_life_info,
3851 init_propagate_block_info, mark_set_1, mark_used_rgs):
3852 Support SCAN_DEAD_STORE.
3854 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
3856 * c-common.c (c_common_init): Set CPP arithmetic precision.
3857 * cppexp.c (cpp_num_part): Move typedef ...
3858 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
3859 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
3860 (sanity_checks): Update.
3862 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
3864 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
3865 (mkheaders): New rule.
3866 (install-mkheaders): New rule.
3867 * configure.in (all_outputs): Add mkheaders.
3868 * configure: Regenerate.
3869 * mkheaders.in: New file.
3871 2002-05-26 Jakub Jelinek <jakub@redhat.com>
3873 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
3875 2002-05-26 Andreas Jaeger <aj@suse.de>
3877 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
3879 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
3881 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
3882 right_shift): Remove.
3883 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
3885 (struct op): Use cpp_num.
3886 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
3887 num_part_mul, num_unary_op, num_binary_op, num_negate,
3888 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
3889 num_div_op, num_lshift, num_rshift, append_digit): New.
3890 (interpret_number, parse_defined, eval_token, reduce): Update
3891 for two-integer arithmetic.
3892 (binary_handler): New typedef.
3894 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
3895 (_cpp_parse_expr, reduce): Update to handle two-integers.
3896 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
3898 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
3900 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
3901 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
3902 branch insn into account, do not assume 1.
3903 (avr_out_sbxx_branch): New function. Optimize cases of skipping
3904 over single word insn. Handle upper half of I/O space too.
3905 * config/avr/avr.md (*sbrx_branch): Use it.
3906 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
3907 (*sbix_branch, *sbix_branch_bit7): Likewise.
3908 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
3909 Use RTL peepholes to optimize register operand sign tests.
3911 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
3913 * config/avr/avr.c (avr_asm_only_p): New variable.
3914 (avr_override_options): Set it here if AVR1.
3915 (asm_file_start): Test it here, report an error if set.
3917 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
3919 * alias.c: Fix formatting.
3920 * attribs.c: Likewise.
3921 * bb-reorder.c: Likewise.
3922 * bitmap.c: Likewise.
3923 * bitmap.h: Likewise.
3924 * builtins.c: Likewise.
3926 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
3928 * reload.c (find_valid_class): Accept new argument DEST,
3929 choose class accordingly.
3930 (push_reload): Update callers.
3932 2002-05-26 Andreas Jaeger <aj@suse.de>
3934 * combine.c (combine_instructions): Do not indent #if for
3937 2002-05-25 Richard Henderson <rth@redhat.com>
3939 * c-pragma.c (apply_pragma_weak): Convert value identifier to
3940 string for decl_attributes.
3941 (handle_pragma_weak): Call assemble_alias if we're modifying
3944 2002-05-25 Richard Henderson <rth@redhat.com>
3947 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
3948 using rtl instead of fprintf.
3949 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
3950 * config/sparc/sparc-protos.h: Update.
3952 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
3954 * Makefile.in (C_COMMON_H): Fix.
3955 Update other targets.
3956 * c-common.c: Don't include c-lex.h.
3957 (builtin_define_with_value): Make static and prototype.
3958 (builtin_define_std): Move from c-lex.h.
3959 * c-common.h (init_c_lex): Move from c-lex.h.
3960 * c-decl.c: Don't include c-lex.h.
3961 (make_pointer_declarator): Move from c-parse.in.
3962 * c-lex.c: Don't include c-lex.h.
3964 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
3965 (make_pointer_declarator): Move to c-decl.c.
3966 * c-pragma.c: Don't include c-lex.h.
3967 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
3968 * c-tree.h (make_pointer_declarator): New.
3970 * passes.texi, tm.texi: Update.
3972 * Make-lang.in: Update and correct.
3973 * objc-act.c: Don't include c-lex.h or cpplib.h.
3975 * treetree.c: Don't include c-lex.h.
3977 * darwin-c.c: Don't include c-lex.h.
3978 * c4x/c4x-c.c: Don't include c-lex.h.
3979 * c4x/t-c4x: Update.
3980 * i370/i370-c.c: Don't include c-lex.h.
3981 * i370/t-i370: Update.
3982 * i960/i960-c.c: Don't include c-lex.h.
3983 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
3984 * i960/t-960bare: Update.
3985 * i960/t-vxworks: Update.
3986 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
3987 * rs6000/t-darwin: Update.
3988 * rs6000/t-rs6000-c-rule: Update.
3989 * v850/v850-c.c: Don't include c-lex.h.
3990 * v850/v850.c: Don't include c-lex.h or cpplib.h.
3993 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
3995 * tree.def: Fix typos.
3996 * doc/install.texi: Likewise.
3998 2002-05-25 Richard Henderson <rth@redhat.com>
4000 * configure.in (HAVE_AS_TLS): Add ia64 test.
4001 * configure: Rebuild.
4002 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
4003 (override_options): Set it.
4004 (TARGET_HAVE_TLS): New.
4005 (sdata_symbolic_operand): Look for 's'.
4006 (tls_symbolic_operand): New.
4007 (ia64_expand_load_address): Abort for tls symbols.
4008 (gen_tls_get_addr): New.
4009 (gen_thread_pointer): New.
4010 (ia64_expand_move): Split out from movdi. Handle tls symbols.
4011 (rtx_needs_barrier): Add new unspecs.
4012 (ia64_encode_section_info): Handle tls symbols.
4013 (ia64_strip_name_encoding): Strip two encoding chars.
4014 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
4015 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
4016 (TARGET_OPTIONS): Add tls-size.
4017 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
4018 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
4019 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
4020 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
4021 (movsf, movdf): Likewise.
4022 (movdi_symbolic): Use match_scratch. Don't split if we won't
4023 have a scratch availiable.
4024 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
4025 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
4026 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
4027 * config/ia64/ia64-protos.h: Update.
4028 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
4029 sdata_symbolic_operand.
4030 (ASM_OUTPUT_LABELREF): Strip two characters.
4032 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
4034 * combine.c (simplify_set): Remove an unnecessary subreg.
4036 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
4038 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
4040 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
4042 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
4044 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
4046 2002-05-25 Roger Sayle <roger@eyesopen.com>
4048 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
4049 (cond (compare x y) 0) into the equivalent (cond x y).
4051 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
4053 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
4055 2002-05-24 Zack Weinberg <zack@codesourcery.com>
4057 * config.gcc: Remove all stanzas for previously obsoleted
4058 systems. Where necessary, add explicit error stanzas to
4059 prevent removed systems from being misidentified as something
4060 else. Begin a fresh obsoletions list, with the systems that
4061 were reprieved last round.
4062 * doc/install.texi: Remove all mention of dead targets.
4063 * fixinc/mkfixinc.sh: Likewise.
4065 * config/arm/arm.h: Bit 31 of target_flags is no longer
4068 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
4069 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
4070 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
4071 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
4072 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
4073 config/alpha/osf12.h, config/alpha/osf2or3.h,
4074 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
4075 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
4076 config/clipper/clipper-protos.h, config/clipper/clipper.c,
4077 config/clipper/clipper.h, config/clipper/clipper.md,
4078 config/clipper/clix.h, config/convex/convex-protos.h,
4079 config/convex/convex.c, config/convex/convex.h,
4080 config/convex/convex.md, config/convex/fixinc.convex,
4081 config/convex/proto.h, config/elxsi/elxsi-protos.h,
4082 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
4083 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
4084 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
4085 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
4086 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
4087 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
4088 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
4089 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
4090 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
4091 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
4092 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
4093 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
4094 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
4095 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
4096 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
4097 config/m68k/altos3068.h, config/m68k/apollo68.h,
4098 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
4099 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
4100 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
4101 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
4102 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
4103 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
4104 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
4105 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
4106 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
4107 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
4108 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
4109 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
4110 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
4111 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
4112 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
4113 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
4114 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
4115 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
4116 config/mips/dec-osf1.h, config/mips/elflorion.h,
4117 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
4118 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
4119 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
4120 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
4121 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
4122 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
4123 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
4124 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
4125 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
4126 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
4127 config/ns32k/sequent.h, config/ns32k/tek6000.h,
4128 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
4129 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
4130 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
4131 config/sparc/rtems.h, config/we32k/we32k-protos.h,
4132 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
4135 2002-05-24 Richard Henderson <rth@redhat.com>
4137 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
4138 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
4139 * config/i386/i386.c (tls_model_chars): Add leading space.
4140 (tls_symbolic_operand): Don't bias by 1.
4141 (legitimize_address): Don't unbias by 1.
4143 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
4145 * lcm.c (optimize_mode_switching): Change bb used as indices
4148 2002-05-24 Richard Henderson <rth@redhat.com>
4150 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
4151 of update_life_info_in_dirty_blocks.
4153 2002-05-24 Jakub Jelinek <jakub@redhat.com>
4156 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
4158 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
4160 PR preprocessor/6780
4161 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
4163 2002-05-24 Jim Blandy <jimb@redhat.com>
4165 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
4166 entry with a type code of zero, marking the end of the compilation
4169 2002-05-24 Richard Henderson <rth@redhat.com>
4171 * varasm.c (asm_output_bss): Always output one byte.
4172 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
4174 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
4176 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
4179 2002-05-24 Andreas Jaeger <aj@suse.de>
4181 * ggc-page.c (alloc_page): Cast variables of type size_t to
4182 unsigned long, adjust printf format string.
4183 (ggc_alloc): Likewise.
4184 (ggc_print_statistics): Likewise.
4185 (ggc_print_statistics): Correct printf format string for SCALE to
4188 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
4190 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
4192 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
4193 Zack Weinberg <zack@codesourcery.com>
4195 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
4197 * dwarf2out.c (lookup_filename): Properly quote filename in .file
4198 directive in assembly file.
4199 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
4200 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
4201 * config/pj/pj.h (ASM_FILE_START): Likewise.
4202 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
4203 * config/avr/avr.c (asm_file_end): Likewise.
4204 * toplev.c (output_quoted_string): Handle possibly signed plain
4206 * toplev.h (output_clean_symbol_name): Declare
4207 * toplev.c (output_clean_symbol_name): Define.
4208 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
4209 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
4211 2002-05-24 Alan Modra <amodra@bigpond.net.au>
4213 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
4215 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
4217 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
4218 of size of unsigned.
4220 2002-05-23 Richard Henderson <rth@redhat.com>
4222 * configure.in (HAVE_AS_TLS): New test.
4223 * config.in, configure: Rebuild.
4224 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
4225 (ix86_tls_dialect_string, ix86_tls_dialect): New.
4226 (override_options): Set it.
4227 (tls_model_chars, tls_symbolic_operand): New.
4228 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
4229 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
4230 (local_exec_symbolic_operand): New.
4231 (get_pic_label_name): Merge into output_set_got.
4232 (ix86_asm_file_end): Emit pic_label_name if defined.
4233 (legitimate_constant_p, constant_address_p): New.
4234 (legitimate_pic_operand_p): New.
4235 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
4236 (legitimate_address_p): Likewise.
4237 (ix86_encode_section_info): Rename from i386_; handle tls decls.
4238 (ix86_strip_name_encoding): New.
4239 (get_thread_pointer): New.
4240 (legitimize_address): Handle tls symbols.
4241 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
4243 (struct machine_function): Add some_ld_name.
4244 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
4245 (print_operand) [&]: Use it. Handle UNSPEC_TP.
4246 (output_addr_const_extra): New.
4247 (maybe_get_pool_constant): New.
4248 (ix86_split_to_parts): Use it.
4249 (ix86_expand_move): Handle tls symbols.
4250 (ix86_tls_get_addr): New.
4251 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
4252 (TARGET_OPTIONS): Add tls-dialect.
4253 (CONSTANT_ADDRESS_P): Use new out-of-line function.
4254 (LEGITIMATE_CONSTANT_P): Likewise.
4255 (LEGITIMATE_PIC_OPERAND_P): Likewise.
4256 (TARGET_STRIP_NAME_ENCODING): New.
4257 (ASM_OUTPUT_LABELREF): New.
4258 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
4259 (OUTPUT_ADDR_CONST_EXTRA): New.
4260 (PREDICATE_CODES): Update.
4261 (ix86_tls_dialect, ix86_tls_dialect_string): New.
4262 * config/i386/i386.md: Regroup and renumber unspec constants.
4263 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
4264 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
4265 (tls_global_dynamic, tls_local_dynamic_base): New.
4266 (tls_local_dynamic_once): New.
4267 * config/i386/i386-protos.h: Update.
4269 2002-05-23 Richard Henderson <rth@redhat.com>
4271 * genemit.c (gen_insn): Print file:lineno comment before function.
4273 * gensupport.c (struct queue_elem): Add filename member.
4274 (queue_pattern): Initialize it; update all callers.
4275 (process_include): Don't free filename.
4276 (read_md_rtx): Set read_rtx_filename.
4278 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
4280 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
4282 2002-05-23 Richard Henderson <rth@redhat.com>
4284 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
4286 2002-05-23 Richard Henderson <rth@redhat.com>
4288 * doc/extend.texi (C++98 Thread-Local Edits): Update with
4289 commentary from Mark.
4291 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4293 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
4294 Use FOR_EACH_BB macros to iterate over basic block chain.
4295 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
4296 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
4298 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
4299 find_unreachable_blocks, create_edge_list, verify_edge_list,
4300 remove_fake_edges, add_noreturn_fake_exit_edges,
4301 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
4303 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
4304 find_sub_basic_blocks): Likewise.
4305 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
4307 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
4309 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
4311 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
4312 commit_edge_insertions, commit_edge_insertions_watch_calls,
4313 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
4314 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
4315 * conflict.c (conflict_graph_compute): Likewise.
4316 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
4317 df_modified_p, df_refs_unlink, df_dump): Likewise.
4318 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
4319 * final.c (compute_alignments): Likewise.
4320 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
4321 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
4322 count_or_remove_death_notes): Likewise.
4323 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
4324 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
4325 classic_gcse, compute_transp, cprop, compute_pre_data,
4326 compute_transpout, invalidate_nonnull_info,
4327 delete_null_pointer_checks_1, delete_null_pointer_checks,
4328 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
4329 compute_store_table, build_store_vectors, store_motion): Likewise.
4330 * global.c (global_conflicts, mark_elimination): Likewise.
4331 * graph.c (print_rtl_graph_with_bb): Likewise.
4332 * haifa-sched.c (sched_init): Likewise.
4333 * ifcvt.c (if_convert): Likewise.
4334 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
4335 compute_available, compute_nearerout, compute_rev_insert_delete,
4336 optimize_mode_switching): Likewise.
4337 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
4338 * predict.c (estimate_probability, note_prediction_to_br_prob,
4339 propagate_freq, counts_to_freqs, expensive_function_p,
4340 estimate_bb_frequencies): Likewise.
4341 * profile.c (instrument_edges, get_exec_counts,
4342 compute_branch_probabilities, compute_checksum, branch_prob,
4343 find_spanning_tree): Likewise.
4344 * recog.c (split_all_insns, peephole2_optimize): Likewise.
4345 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
4347 * regclass.c (scan_one_insn, regclass): Likewise.
4348 * regmove.c (mark_flags_life_zones, regmove_optimize,
4349 record_stack_memrefs): Likewise.
4350 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
4351 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
4352 * resource.c (find_basic_block): Likewise.
4353 * sched-ebb.c (schedule_ebbs): Likewise.
4354 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
4355 find_single_block_region, find_rgns, schedule_insns)
4356 * sibcall.c (optimize_sibling_and_tail_recursive_call)
4357 * ssa-ccp.c (optimize_unexecutable_edges,
4358 ssa_ccp_df_delete_unreachable_insns): Likewise.
4359 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
4360 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
4361 rename_block, convert_to_ssa, compute_conservative_reg_partition,
4362 compute_coalesced_reg_partition, rename_equivalent_regs,
4363 convert_from_ssa): Likewise.
4364 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
4365 process_for_unwind_directive): Likewise.
4367 * df.c (FOR_ALL_BBS): Removed.
4368 * gcse.c (struct null_pointer_info): Type of current_block field
4370 (struct reg_avail_info): Type of last_bb field changed.
4371 * config/ia64/ia64.c (block_num): Removed.
4372 (need_copy_state): Type changed.
4375 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
4377 * cppinit.c (mark_named_operators): Split out from init_builtins.
4378 (cpp_finish_options): Call it from here instead.
4380 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
4382 * builtin-attrs.def: Update copyright years.
4383 (ATTR_NONNULL): New attribute identifier.
4384 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
4385 attribute tree lists.
4386 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
4388 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
4389 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
4390 attribute lists. Chain the appropriate nonnull attribute.
4391 * c-format.c (check_format_arg): Remove null format string
4393 * testsuite/gcc.dg/format/null-1.c: New test.
4395 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4397 * Makefile.in (ADAC): Define.
4399 (.SUFFIXES): Move before language makefile fragments.
4400 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
4402 2002-05-23 Mark Mitchell <mark@codesourcery.com>
4404 * varasm.c (make_decl_rtl): Don't allow weak variables to be
4407 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
4409 * cfg.c (dump_flow_info): Print results of
4410 maybe_hot/probably_never_executed predicates.
4411 * toplev.c (open_dump_file): Print function frequency.
4413 2002-05-23 David S. Miller <davem@redhat.com>
4415 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
4418 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
4420 * c-common.c (warn_nonnull): Declare.
4421 (c_common_attribute_table): Add "nonnull" attribute.
4422 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
4423 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
4424 check_function_arguments_recurse): New functions.
4425 * c-common.h (warn_nonnull): Declare extern.
4426 (check_function_arguments, check_function_arguments_recurse): New
4428 * c-decl.c (c_decode_option): Add -Wnonnull option.
4429 * c-format.c (set_Wformat): Set warn_nonnull if enabling
4431 (format_check_context): New structure.
4432 (check_format_info_recurse): Remove recursion and rename to...
4433 (check_format_arg): ...this. Update comment.
4434 (check_format_info): Use check_function_arguments_recurse.
4435 * c-typeck.c (build_function_call): Call check_function_arguments
4436 instead of check_function_format.
4437 * doc/extend.texi: Document "nonnull" attribute.
4438 * doc/invoke.texi: Docuemnt -Wnonnull option.
4439 * testsuite/gcc.dg/nonnull-1.c: New test.
4440 * testsuite/gcc.dg/nonnull-2.c: New test.
4442 2002-05-23 David S. Miller <davem@redhat.com>
4444 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
4445 * cfgcleanup.c (cleanup_cfg): If it is set do not
4446 attempt to delete trivially dead insns.
4447 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
4448 * toplev.c (rest_of_compilation): Document non-trivial aspect
4449 the RTL before optimize_save_area_alloca is run.
4451 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
4453 * c-lex.c (indent_level): Remove.
4454 (cb_file_change, c_lex): Remove indent level handling.
4455 * c-lex.h (indent_level): Remove.
4456 * input.h (struct file_stack): Remove indent_level.
4457 * toplev.c (push_srcloc): Remove indent_level handling.
4459 2002-05-23 Jakub Jelinek <jakub@redhat.com>
4462 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
4463 of x in constraints for clarity.
4464 (sse_mov?fcc split): abort if op2 == op3.
4465 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
4466 sse_movsfcc_const0_4): Add earlyclobber.
4467 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
4468 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
4469 Use Y instead of x in constraints.
4471 2002-05-23 Richard Henderson <rth@redhat.com>
4473 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
4474 (C++98 Thread-Local Edits): New subsection.
4476 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
4477 (ix86_arch): Set type to enum processor_type.
4479 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
4480 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
4482 2002-05-23 Jakub Jelinek <jakub@redhat.com>
4484 * configure.in: Fix as version test for binutils 2.12.1 releases
4486 * configure: Rebuilt.
4488 2002-05-23 Richard Henderson <rth@redhat.com>
4490 * config/i386/i386.c (get_pic_label_name): New.
4491 (load_pic_register): Remove.
4492 (output_set_got): New.
4493 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
4494 * config/i386/i386.md (UNSPEC_SET_GOT): New.
4495 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
4496 (prologue_set_got, prologue_get_pc): Remove.
4497 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
4498 (builtin_setjmp_receiver): Use gen_set_got.
4499 * config/i386/i386-protos.h: Update.
4501 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
4503 * gcse.c (hash_expr): Do not use alias set for hashing.
4505 2002-05-22 Kevin Buettner <kevinb@redhat.com>
4507 * dbxout.c (dbxout_class_name_qualifiers): New function.
4508 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
4510 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
4512 * cpperror.c (_cpp_begin_message): No special casing
4514 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
4515 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
4516 * cpplib.c (do_include_common): Use DL_ERROR.
4517 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
4519 * fix-header.c (read_scan_file): Update.
4521 2002-05-22 Richard Henderson <rth@redhat.com>
4523 * config/i386/i386.c (ix86_expand_call): New function, extracted
4524 from md call patterns. Add pic_offset_table_rtx to
4525 CALL_INSN_FUNCTION_USAGE when needed.
4526 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
4527 (call_value_pop, call_value, untyped_call): Likewise.
4528 (call_exp, call_value_exp): Remove.
4529 * config/i386/i386-protos.h: Update.
4531 2002-05-22 Richard Henderson <rth@redhat.com>
4533 * varasm.c (default_section_type_flags): Check for VAR_DECL
4534 before using DECL_THREAD_LOCAL.
4536 2002-05-22 David Edelsohn <edelsohn@gnu.org>
4538 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
4539 (STARTFILE_SPEC): Delete PE crt0.o.
4540 * config/rs6000/aix51.h: Same.
4541 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
4542 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
4543 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
4544 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
4545 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
4547 2002-05-22 Richard Henderson <rth@redhat.com>
4549 * varasm.c (default_section_type_flags): Handle tls data and
4551 (default_unique_section): Handle tls sections.
4553 2002-05-23 Alan Modra <amodra@bigpond.net.au>
4555 * configure.in (CROSS): Define NATIVE_CROSS.
4556 * configure: Regenerate.
4557 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
4558 (startfile_prefix_spec): New var.
4559 (static_specs): Add startfile_prefix_spec.
4560 (do_spec_2): Split out from..
4562 (main): Process startfile_prefix_spec.
4563 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
4565 (STARTFILE_PREFIX_SPEC): Define.
4566 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
4569 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
4571 * cpperror.c: Fix formatting.
4572 * cppexp.c: Likewise.
4573 * cppfiles.c: Likewise.
4574 * cpphash.c: Likewise.
4575 * cpphash.h: Likewise.
4576 * cppinit.c: Likewise.
4577 * cpplex.c: Likewise.
4578 * cpplib.c: Likewise.
4579 * cppmacro.c: Likewise.
4580 * cppmain.c: Likewise.
4581 * cppspec.c: Likewise.
4583 2002-05-22 Jakub Jelinek <jakub@redhat.com>
4585 * combine.c (force_to_mode): Use gen_int_mode.
4586 Don't clear CONST_INT bits outside of mode.
4588 2002-05-22 Richard Henderson <rth@redhat.com>
4590 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
4591 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
4593 2002-05-22 Jakub Jelinek <jakub@redhat.com>
4596 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
4597 if DECL_SIZE_UNIT is INTEGER_CST.
4599 2002-05-22 Richard Henderson <rth@redhat.com>
4601 * flow.c (life_analysis): Delete broken reg_label check.
4603 2002-05-22 Richard Henderson <rth@redhat.com>
4605 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
4606 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
4608 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
4610 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
4611 (embed-bb.c): New rule.
4612 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
4613 * config/sh/embed_bb.c: Delete.
4615 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
4617 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
4619 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
4621 * config/h8300/h8300.md (*andorqi3): New.
4623 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
4625 PR preprocessor/6517
4626 * Makefile.in: Update.
4627 * c-common.c (c_common_post_options): Add preprocessor
4628 errors to the error count.
4629 * c-lang.c (c_post_options): Kill.
4630 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
4631 * hooks.h: Add header guards.
4632 * langhooks-def.h: Include hooks.h.
4633 (LANG_HOOKS_POST_OPTIONS): Update.
4634 * langhooks.h (struct lang_hooks): Update post_options.
4635 * toplev.c (parse_options_and_default_flags): Update.
4637 * objc-lang.c (objc_post_options): Kill.
4638 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
4640 2002-05-21 Bruce Korb <bkorb@gnu.org>
4642 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
4643 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
4644 * fixinc/fixincl.x: regen.
4646 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
4648 * cfgbuild.c: Fix formatting.
4650 * cfgcleanup.c: Likewise.
4651 * cfglayout.c: Likewise.
4652 * cfgloop.c: Likewise.
4653 * cfgrtl.c: Likewise.
4655 2002-05-21 Richard Henderson <rth@redhat.com>
4657 * c-common.h (enum rid): Add RID_THREAD.
4658 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
4659 (grokdeclarator): Grok __thread.
4660 * c-parse.in (reswords): Add __thread.
4661 (rid_to_yy): Add RID_THREAD.
4663 * tree.h (DECL_THREAD_LOCAL): New.
4664 (struct tree_decl): Add thread_local_flag.
4665 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
4666 * tree.c (staticp): TLS variables are not static.
4668 * target-def.h (TARGET_HAVE_TLS): New.
4669 * target.h (have_tls): New.
4670 * output.h (SECTION_TLS): New.
4671 * varasm.c (assemble_variable): TLS variables can't be common for now.
4672 (default_section_type_flags): Handle .tdata and .tbss.
4673 (default_elf_asm_named_section): Handle SECTION_TLS.
4674 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
4676 * flags.h (flag_tls_default): Declare.
4677 * toplev.c (flag_tls_default): Define.
4678 (display_help): Display help for it.
4679 (decode_f_option): Set it.
4681 * doc/extend.texi (Thread-Local): New node describing language-level
4682 thread-local storage.
4683 * doc/invoke.texi (-ftls-model): Document.
4685 * fixinc/inclhack.def (thread_keyword): New.
4686 * fixinc/fixincl.x: Rebuild.
4688 2002-05-21 Jeffrey A Law <law@redhat.com>
4690 * optabs.c (expand_binop): For double-word integer multiplies,
4691 do not compute intermediate results into something that is
4692 not a register (such as a SUBREG or MEM).
4694 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
4695 (ix86_sched_reorder): Make sure to initialize scheduling
4696 data even when there's only one insn in the ready queue.
4698 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
4700 * genautomata.c (reserv_sets_hash_value): Fix a typo.
4702 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
4704 * genautomata.c (reserv_sets_hash_value): Define hash_value as
4705 set_el_t. Transform the hash value into unsigned.
4706 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
4707 (transform_3): Add code to process `(A,B)+(D,E)'.
4709 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
4711 * reload1.c (do_output_reload): Run delete_output_reload
4714 2002-05-21 Roger Sayle <roger@eyesopen.com>
4717 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
4718 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
4719 (can_store_by_pieces): ... and here to limit the largest mode used.
4720 Add a comment to document this function.
4722 2002-05-21 Richard Henderson <rth@redhat.com>
4724 * flow.c (life_analysis): Fix test for deleted label.
4726 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
4728 * doc/tm.texi: Fix typo.
4730 2002-05-21 Zack Weinberg <zack@codesourcery.com>
4732 * c-common.c (c_common_init): Set options->unsigned_char from
4734 (cb_register_builtins): Define __STRICT_ANSI__ and
4735 __CHAR_UNSIGNED__ here...
4736 * cppinit.c (init_builtins): Not here.
4737 (cpp_create_reader): unsigned_char option defaults to 0, not
4738 !DEFAULT_SIGNED_CHAR.
4739 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
4740 and -funsigned-char.
4742 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
4743 * cpphash.c (_cpp_init_hashtable): Don't set it.
4744 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
4745 directly. Clarify comment.
4747 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4749 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
4750 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
4751 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
4752 BASIC_BLOCK (n_basic_blocks - 1).
4753 * cfganal.c (can_fallthru, flow_call_edges_add,
4754 flow_preorder_transversal_compute): Too.
4755 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
4756 find_sub_basic_blocks): Too.
4757 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
4758 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
4759 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
4760 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
4761 * combine.c (this_basic_block): Type changed to basic_block.
4762 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
4763 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
4764 get_last_value, distribute_notes, distribute_links): Too.
4765 * final.c (compute_alignments): Too.
4766 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
4767 * function.c (thread_prologue_and_epilogue_insns): Too.
4768 * gcse.c (compute_code_hoist_vbeinout): Too.
4769 * global.c (build_insn_chain): Too.
4770 * ifcvt.c (find_if_block, find_cond_trap): Too.
4771 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
4772 * regmove.c (regmove_optimize): Too.
4773 * resource.c (find_basic_block): Too.
4774 * sched-ebb.c (schedule_ebbs): Too.
4775 * ssa-dce.c (find_control_dependence, find_pdom): Too.
4777 2002-05-21 Andreas Jaeger <aj@suse.de>
4779 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
4781 2002-05-21 Richard Henderson <rth@redhat.com>
4783 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
4784 unspec names, not numbers.
4786 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
4788 * doc/sourcebuild.texi: Mention snapshot-README and
4789 snapshot-index.html as needing updating for new front ends.
4791 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4793 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
4794 disabling checking, and avoid multiple evaluation of RTX.
4796 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
4798 * bitmap.c (bitmap_find_bit): Return early if we have the correct
4801 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
4803 * profile.c (gen_edge_profiler): Set alias set before the memory is
4806 2002-05-20 David S. Miller <davem@redhat.com>
4808 * cselib.c (max_value_regs): New.
4809 (cselib_lookup, cselib_invalidate_regno): Initialize it when
4810 adding new entries to the REG_VALUES table and we are dealing with
4812 (clear_table): Initialize it.
4813 (cselib_invalidate_regno): Use it to determine which hard
4814 registers to scan when mode is not VOIDmode.
4816 2002-05-20 Duraid Madina <duraid@fl.net.au>
4818 * tradcpp.c (fixup_newlines): Use old-style function header.
4820 2002-05-20 Krister Walfridsson <cato@df.lth.se>
4822 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
4824 2002-05-20 H.J. Lu (hjl@gnu.org)
4826 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
4828 * config/mips/mips.h (DFMODE_NAN): Defined.
4829 (SFMODE_NAN): Likewise.
4831 2002-05-20 Dale Johannesen <dalej@apple.com>
4833 * combine.c (cant_combine_insn_p): Back out my
4836 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4838 * params.c: Fix formatting.
4839 * params.h: Likewise.
4840 * predict.c: Likewise.
4841 * prefix.c: Likewise.
4842 * print-rtl.c: Likewise.
4843 * print-tree.c: Likewise.
4844 * profile.c: Likewise.
4846 2002-05-20 H.J. Lu (hjl@gnu.org)
4848 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
4850 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
4852 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
4853 switches straight on to the assembler, do not abbreviate them.
4854 * config/arm/elf.h (ASM_SPEC): As above.
4855 * config/arm/semi.h (ASM_SPEC): As above.
4856 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
4857 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
4858 -mcpu=xscale on to the assembler by default.
4859 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
4861 2002-05-20 Richard Henderson <rth@redhat.com>
4863 * cse.c (canon_hash): Reorder do_not_record test. Always
4864 allow pic_offset_table_rtx.
4866 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
4868 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
4869 (expand_binop): Ditto (3 times).
4871 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
4873 * Makefile.in (distclean): Remove QMTest stuff.
4874 (QMTEST_PATH): New variable.
4875 (QMTESTFLAGS): Likewise.
4876 (QMTESTRUNFLAGS): Likewise.
4878 (QMTEST_GPP_TESTS): Likewise.
4879 (QMTEST_DIR): Likewise.
4880 (QMTEST_DIR/context): New target.
4881 (qmtest-g++): Likeise.
4882 (qmtest-gui): Likewise.
4883 (QMTEST_DIR/gpp-expected.qmr): Likewise.
4885 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
4887 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
4888 an altivec register if TARGET_ALTIVEC.
4890 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
4891 to ALTIVEC_VECTOR_MODE.
4892 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
4893 (rs6000_va_arg): Vectors may go in registers if they are not
4896 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
4898 * protoize.c: Fix formatting.
4900 2002-05-19 Richard Henderson <rth@redhat.com>
4902 * gensupport.c (init_include_reader): Merge into ...
4903 (process_include): ... here. Simplify composite path creation.
4904 Plug memory leaks. Fix file/line number tracking. Do not
4905 process_define_cond_exec. Return void.
4906 (process_rtx): Don't check process_include return value.
4908 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4910 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
4912 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
4913 traversing basic block chain.
4914 (create_basic_block_structure, create_basic_block): Declaration changed.
4915 (link_block, unlink_block): Declare.
4916 * cfg.c (entry_exit_blocks): Initialize new fields.
4917 (link_block, unlink_block): New.
4918 (expunge_block_nocompact): Unlink basic block.
4919 (dump_flow_info): Print prev_bb/next_bb fields.
4920 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
4921 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
4922 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
4923 * cfgrtl.c (create_basic_block_structure, create_basic_block,
4924 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
4925 (verify_flow_info): Check that list agrees with numbering.
4927 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
4929 * c-common.c (preprocessing_asm): New macro.
4930 * c-lex.h (builtin_define, builtin_assert): Use pfile.
4934 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
4935 (CPP_SPEC): Simplify.
4936 (TARGET_CPU_CPP_BUILTINS): Update.
4937 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
4938 (CPP_SPEC): Simplify.
4939 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
4940 (TARGET_OS_CPP_BUILTINS): Update.
4941 * osf.h (CPP_XFLOAT_SPEC): Kill.
4942 (TARGET_OS_CPP_BUILTINS): Update.
4943 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
4944 * osf5.h (CPP_XFLOAT_SPEC): Kill.
4945 * vms.h (CPP_SUBTARGET_SPEC): Kill.
4946 (TARGET_OS_CPP_BUILTINS): Update.
4948 2002-05-19 Richard Henderson <rth@redhat.com>
4950 * varasm.c (default_binds_local_p): Fix typo.
4952 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
4954 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
4955 CONST_INT operand to the correct mode after adding 1 to it.
4957 2002-05-19 Mark Mitchell <mark@codesourcery.com>
4959 * config.gcc (powerpc-wrs-windiss*): New target.
4961 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4963 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
4966 2002-05-18 Mark Mitchell <mark@codesourcery.com>
4968 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
4970 * config.in: Regenerated.
4971 * configure: Regenerated.
4973 2002-05-19 Richard Henderson <rth@redhat.com>
4975 * target-def.h (TARGET_BINDS_LOCAL_P): New.
4976 * target.h (struct gcc_target): Move boolean fields to the end.
4978 * varasm.c (default_binds_local_p): New.
4979 * output.h: Declare it.
4981 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
4982 * config/cris/cris.c (cris_encode_section_info): Likewise.
4983 * config/i386/i386.c (i386_encode_section_info): Likewise.
4984 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
4985 * config/sh/sh.c (sh_encode_section_info): Likewise.
4987 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
4988 (TARGET_BINDS_LOCAL_P): New.
4990 2002-05-19 Richard Henderson <rth@redhat.com>
4992 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
4993 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
4994 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
4996 * toplev.c (display_help): Kill -a -ax help.
4998 * config/1750a/1750a.h, config/alpha/alpha.h,
4999 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
5000 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
5001 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
5002 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
5004 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
5005 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
5007 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
5008 (ix86_output_function_block_profiler): Kill.
5009 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
5010 (m68hc11_function_block_profiler): Kill.
5011 * config/m68hc11/m68hc11-protos.h: Update.
5012 * config/m88k/m88k.c (output_block_profiler): Kill.
5013 (output_function_block_profiler): Kill.
5014 * config/m88k/m88k-protos.h: Update.
5016 2002-05-19 Richard Henderson <rth@redhat.com>
5018 * system.h (STRIP_NAME_ENCODING): Poison it.
5019 * output.h (STRIP_NAME_ENCODING): Remove.
5020 (default_strip_name_encoding): Declare.
5021 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
5022 * target.h (strip_name_encoding): New.
5023 * varasm.c (default_strip_name_encoding): New.
5025 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
5026 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
5027 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
5028 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
5029 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
5030 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
5031 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
5032 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
5033 config/v850/v850.h: Use the hook, not the macro.
5035 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
5036 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
5037 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
5038 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
5039 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
5040 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
5041 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
5042 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
5043 config/v850/v850.c, config/v850/v850.h:
5044 Move STRIP_NAME_ENCODING to out-of-line function and add
5045 TARGET_STRIP_NAME_ENCODING.
5047 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
5048 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
5049 with TARGET_STRIP_NAME_ENCODING referencing existing function;
5050 make function static.
5052 * xcoffout.c: Include target.h
5053 * Makefile.in (xcoffout.o): Update.
5055 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
5056 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
5057 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
5058 reloc argument unused.
5059 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
5061 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
5062 STRIP_NAME_ENCODING docs.
5064 2002-05-19 Andreas Jaeger <aj@suse.de>
5066 * gengenrtl.c: Add prototype for excluded_rtx.
5068 * real.h: Add prototype for exact_real_truncate.
5070 2002-05-18 Richard Henderson <rth@redhat.com>
5072 * system.h (ENCODE_SECTION_INFO): Poison it.
5073 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
5074 * target.h (encode_section_info): New.
5075 * varasm.c (make_decl_rtl, output_constant_def): Use it.
5076 * hooks.c (hook_tree_int_void): New.
5077 * hooks.h: Declare it.
5079 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
5080 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
5081 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
5082 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
5083 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
5084 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
5085 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
5086 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
5087 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
5088 config/mcore/mcore-protos.h, config/mcore/mcore.c,
5089 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
5090 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
5091 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
5092 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
5093 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
5094 referencing existing function. Make function static.
5096 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
5097 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
5098 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
5099 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
5100 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
5101 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
5102 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
5103 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
5104 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
5105 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
5106 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
5107 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
5108 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
5109 Move ENCODE_SECTION_INFO to out-of-line function and add
5110 TARGET_ENCODE_SECTION_INFO.
5112 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
5113 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
5115 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
5117 (switch_to_section): Replace in_rdata case with in_readonly_data.
5119 * config/h8300/h8300.c (h8300_encode_label): Make static.
5120 * config/h8300/h8300-protos.h: Update.
5122 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
5123 from rs6000_encode_section_info; make static.
5124 (rs6000_xcoff_encode_section_info): New.
5126 * config/v850/v850.c (v850_encode_data_area): Make static.
5127 * config/v850/v850-protos.h: Update.
5129 * config/vax/vax.c: Include flags.h.
5130 (vms_select_section): Fix typo.
5132 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
5133 ENCODE_SECTION_INFO docs.
5135 2002-05-18 Richard Henderson <rth@redhat.com>
5137 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
5138 REGISTER_TARGET_PRAGMAS.
5139 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
5141 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
5143 2002-05-18 Richard Henderson <rth@redhat.com>
5145 * system.h (SELECT_RTX_SECTION): Poison.
5146 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
5147 * target.h (select_rtx_section): New.
5148 * varasm.c (output_constant_pool): Use it.
5149 (default_select_rtx_section, default_elf_select_rtx_section): New.
5150 * output.h: Declare them.
5152 * config/darwin.h (SELECT_RTX_SECTION): Move ...
5153 * config/darwin.c (machopic_select_rtx_section): ... here.
5154 * config/darwin-protos.h: Update.
5156 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
5157 * config/nextstep.c (machopic_select_rtx_section): ... here.
5158 (nextstep_select_section): Rename variable to avoid macro clash.
5159 * config/nextstep-protos.h: Update.
5161 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
5162 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
5163 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
5164 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
5165 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
5166 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
5167 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
5168 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
5169 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
5170 (SELECT_RTX_SECTION): Remove.
5172 * config/darwin.h, config/elfos.h, config/nextstep.h,
5173 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
5174 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
5175 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
5176 config/sparc/lynx.h, config/xtensa/xtensa.c
5177 (TARGET_ASM_SELECT_RTX_SECTION): New.
5179 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
5180 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
5181 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
5182 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
5183 (ia64_aix_select_rtx_section): New.
5184 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
5186 * config/mips/mips.c (mips_select_rtx_section): Make static.
5187 Support ELF SHF_MERGE features.
5188 * config/mips/mips-protos.h: Update.
5189 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
5190 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
5191 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
5192 make static, fall back to default_elf_select_rtx_section.
5193 * config/rs6000/rs6000-protos.h: Update.
5194 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
5195 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
5196 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
5197 * config/romp/romp.c (romp_select_rtx_section): New.
5198 * config/s390/s390.c (s390_select_rtx_section): New.
5199 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
5200 declarations before target macro definition.
5201 (xtensa_emit_call): Use static buffer.
5202 (xtensa_select_rtx_section): New.
5203 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
5204 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
5205 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
5207 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
5208 SELECT_RTX_SECTION docs.
5210 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
5212 * i386.md (movsi/movdi): Fix template.
5213 (sse2 patterns): Set attributes consistently.
5215 * i386.md (pushqi2, ashrqi_*): Fix constraint.
5217 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
5219 * optabs.c (complex_part_zero_p): New.
5220 * (expand_cmplxdiv_straight): Use it.
5221 * (expand_cmplxdiv_wide): Ditto.
5222 * (expand_binop): Ditto.
5224 2002-05-18 Richard Henderson <rth@redhat.com>
5226 * final.c (HAVE_READONLY_DATA_SECTION): New.
5227 (shorten_branches): Use it instead of ifdefs.
5228 * varasm.c (enum in_section): Add in_readonly_data.
5229 (text_section, data_section): Tidy.
5230 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
5232 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
5233 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
5234 (READONLY_DATA_SECTION): Don't undef.
5236 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
5237 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
5238 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
5240 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
5241 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
5242 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
5243 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
5245 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
5246 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
5247 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
5248 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
5249 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
5250 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
5251 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
5252 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
5253 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
5255 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
5256 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
5257 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
5258 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
5259 config/pa/pa64-hpux.h, config/sparc/litecoff.h
5260 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
5262 * config/elfos.h, config/netware.h, config/svr3.h,
5263 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
5264 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
5265 config/h8300/h8300.h, config/i386/i386-interix.h,
5266 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
5267 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
5269 * config/elfos.h, config/netware.h, config/svr3.h,
5270 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
5271 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
5272 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
5273 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
5275 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
5276 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
5277 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
5278 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
5279 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
5280 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
5281 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
5282 config/rs6000/sysv4.h, config/v850/v850.h
5283 (EXTRA_SECTIONS): Remove in_const/in_rdata.
5284 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
5286 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
5287 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
5288 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
5289 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
5290 * config/alpha/alpha.c (alpha_start_function): Likewise.
5291 (alpha_write_linkage): Likewise.
5292 * config/m32r/m32r.c (m32r_select_section): Likewise.
5293 * config/m88k/m88k.c (m88k_select_section): Likewise.
5294 * config/mips/mips.c (mips_select_rtx_section): Likewise.
5295 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
5296 (rs6000_elf_select_section): Likewise.
5297 * config/v850/v850.c (v850_select_section): Likewise.
5299 * config/1750a/1750a.h, config/i860/sysv3.h
5300 (READONLY_DATA_SECTION_ASM_OP): New.
5301 READONLY_DATA_SECTION_ASM_OP.
5302 * config/i386/interix.c, config/i386/winnt.c
5303 (i386_pe_unique_section): Always use .rdata prefix.
5304 * config/pa/som.h (readonly_data): Always switch to read-only section.
5305 (READONLY_DATA_SECTION): Predicate on flag_pic.
5306 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
5307 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
5308 (READONLY_DATA_SECTION): Update.
5310 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
5312 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
5313 is used without -Wformat.
5314 * c-common.h (warn_format_zero_length): Declare extern.
5315 * c-decl.c (warn_options): Add "format-zero-length".
5316 * c-format.c (warn_format_zero_length): Declare.
5317 (set_Wformat): Set warn_format_zero_length for -Wformat.
5318 (check_format_info): Only warn about zero-length formats if
5319 warn_format_zero_length is true. Include the format type
5320 name in the warning message.
5321 * doc/invoke.texi: Document -Wformat-zero-length.
5322 * testsuite/gcc.dg/format/zero-length-1.c: New test.
5324 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
5326 * timevar.c: Fix formatting.
5327 * tlink.c: Likewise.
5328 * toplev.c: Likewise.
5329 * tree-dump.c: Likewise.
5330 * tree-inline.c: Likewise.
5332 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
5334 * cppinit.c (cpp_post_options): If preprocessed, turn off
5335 traditional. If traditional, turn off column numbers.
5336 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
5337 * cpptrad.c (handle_newline): Update line_base.
5338 (skip_comment): Handle -Wcomment.
5340 2002-05-17 Zack Weinberg <zack@codesourcery.com>
5342 * cppinit.c (struct builtin): Remove unused fields.
5343 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
5344 (operator_array): New - was second half of builtin_array.
5345 (init_builtins): Simplify loop over builtin_array/operator_array.
5347 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
5349 * defaults.h (UNIQUE_SECTION): Remove.
5350 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
5352 2002-05-17 Richard Henderson <rth@redhat.com>
5354 * expr.c (init_expr_once): Don't use start/end_sequence.
5355 Use rtx_alloc instead of emit_insn.
5356 * toplev.c (lang_dependent_init): Run init_expr_once here ...
5357 (lang_independent_init): ... not here.
5359 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5361 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
5363 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
5365 * config/avr/avr.c (avr_regs_to_save): New function. Also check
5366 for fixed registers, possibly used for global register variables.
5367 (initial_elimination_offset, avr_output_function_prologue,
5368 avr_output_function_epilogue): Move common code to avr_regs_to_save.
5370 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
5372 * Makefile.in: Update for cpptrad.c.
5373 * cpphash.h (struct cpp_buffer): New members for buffer
5375 (struct cpp_reader): New members for traditional output.
5376 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
5377 * cppinit.c (cpp_create_reader): Set trad_line.
5378 (cpp_destroy): Free trad_out_base if used.
5379 (cpp_read_main_file): Overlay an empty buffer if traditional.
5380 (cpp_finish_options): Don't do builtins.
5381 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
5382 (cpp_handle_option): Handle it.
5383 * cpplex.c (continue_after_nul): New.
5384 (_cpp_lex_direct): Use handle_nul.
5385 * cpplib.h (struct cpp_options): New traditional option.
5386 * cpptrad.c: New file.
5388 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
5390 * c-common.c (c_common_init_options): Use C89 for Objective-C,
5391 and set the options flag.
5392 * cppinit.c (lang_flags): Remove objc.
5393 (lang_defaults): Remove OBJC and OBJCXX.
5395 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
5396 (cpp_handle_option): Remove -+ and -lang-objc++.
5397 For ObjC, just set a flag.
5398 (print_help): Update.
5399 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
5401 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5403 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
5404 bootstrap with -mips3.
5406 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
5408 * final.c: Fix formatting.
5409 * fix-header.c: Likewise.
5411 * fold-const.c: Likewise.
5412 * function.c: Likewise.
5414 2002-05-17 David S. Miller <davem@redhat.com>
5416 PR c/6689, PR optimization/6615
5417 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
5418 and make it a pointer to rtx. Update comments.
5419 (update_equiv_regs): When scanning for equivalences, record
5420 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
5421 it while making the equiv replacements.
5423 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5425 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
5427 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
5429 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
5430 when encoding visibility into SYMBOL_REF_FLAG.
5432 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
5434 * expr.c (force_operand): Fix reversed move.
5436 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
5438 * doc/install.texi (Testing): Mention two common DejaGnu warnings
5439 that can be ignored.
5441 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5443 * doc/install.texi (Final install): Recommend to install into a
5444 "clean" target directory.
5446 2002-05-17 Richard Henderson <rth@redhat.com>
5448 * config/ia64/ia64.md: Use braced strings instead of quoted strings
5449 for code blocks. Tidy whitespace.
5451 2002-05-17 Richard Henderson <rth@redhat.com>
5453 * hooks.c (hook_tree_bool_false): New.
5454 * hooks.h: Declare it.
5455 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
5456 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
5457 * target.h (select_section, unique_section): New.
5458 (in_small_data_p): New.
5459 * varasm.c (resolve_unique_section): Use hooks instead of macros.
5460 (variable_section, output_constant_def_contents): Likewise.
5461 (default_select_section, default_unique_section): New.
5462 (categorize_decl_for_section, default_elf_select_section): New.
5463 * output.h: Declare them.
5465 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
5466 (TARGET_ASM_SELECT_SECTION): New.
5467 (SELECT_SECTION): Move ...
5468 * config/darwin.c (machopic_select_section): ... here.
5469 * config/darwin-protos.h: Update.
5471 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
5472 (SELECT_SECTION): Move ...
5473 * config/nextstep.c (nextstep_select_section): ... here.
5474 * config/nextstep-protos.h: Update.
5476 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
5477 (TARGET_ASM_SELECT_SECTION): New.
5478 * config/svr3.h (SELECT_SECTION): Remove.
5480 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
5481 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
5482 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
5483 (alpha_encode_section_info): Use it.
5484 * config/alpha/alpha-protos.h: Update.
5485 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
5486 (SELECT_SECTION, UNIQUE_SECTION): Remove.
5487 (TARGET_ASM_SELECT_SECTION): New.
5488 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
5490 * config/arm/pe.h (UNIQUE_SECTION): Remove.
5491 (TARGET_ASM_UNIQUE_SECTION): New.
5493 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
5494 (avr_unique_section): Rename from unique_section; make static.
5495 * config/avr/avr-protos.h: Update.
5496 * config/avr/avr.h (UNIQUE_SECTION): Remove.
5498 * config/c4x/c4x.h (SELECT_SECTION): Remove.
5500 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
5501 (TARGET_ASM_UNIQUE_SECTION): New.
5502 * config/i386/i386-interix.h: Likewise.
5503 * config/i386/win32.h: Likewise.
5504 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
5505 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
5506 * config/i386/sco5.h (SELECT_SECTION): Remove.
5507 (TARGET_ASM_SELECT_SECTION): New.
5508 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
5510 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
5511 instead of SELECT_SECTION.
5512 * config/m68k/dpx2.h: Likewise.
5513 * config/rs6000/lynx.h: Likewise.
5515 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
5516 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
5517 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
5518 (ia64_in_small_data_p): New.
5519 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
5520 (ia64_aix_select_section, ia64_aix_unique_section): New.
5521 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
5522 (SELECT_SECTION, UNIQUE_SECTION): Remove.
5524 * config/m32r/m32r.h (SELECT_SECTION): Remove.
5525 (TARGET_ASM_SELECT_SECTION): New.
5526 * config/m32r/m32r.c (m32r_select_section): Take align argument.
5527 * config/m32r/m32r-protos.h: Update.
5529 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
5530 (SELECT_SECTION): Move ...
5531 * config/m88k/m88k.c (m88k_select_section): ... here.
5533 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
5534 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
5535 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
5536 (mcore_unique_section): Make static.
5537 * config/mcore/mcore-protos.h: Update.
5539 * config/mips/elf.h (UNIQUE_SECTION): Remove.
5540 (TARGET_ASM_UNIQUE_SECTION): New.
5541 * config/mips/elf64.h: Likewise.
5542 * config/mips/iris6gld.h: Likewise.
5543 * config/mips/linux.h: Likewise.
5544 * config/mips/mips-protos.h: Update.
5545 * config/mips/mips.c (mips_select_section): Add align argument.
5546 * config/mips/mips.h (SELECT_SECTION): Remove.
5547 (TARGET_ASM_SELECT_SECTION): New.
5549 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
5550 * config/mmix/mmix.c (mmix_select_section): Remove.
5551 (mmix_unique_section): Remove.
5552 * config/mmix/mmix-protos.h: Update.
5554 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
5555 (SELECT_SECTION): Move ...
5556 * config/pa/pa.c (pa_select_section): ... here.
5557 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
5559 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
5560 from rs6000_select_section and make static.
5561 (rs6000_elf_unique_section): Similarly.
5562 (rs6000_xcoff_select_section): From xcoff.h.
5563 (rs6000_xcoff_unique_section): Likewise.
5564 * config/rs6000/rs6000-protos.h: Update.
5565 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
5566 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
5567 * config/rs6000/xcoff.h: Likewise.
5569 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
5570 (SELECT_SECTION): Move ...
5571 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
5573 * config/v850/v850.h (SELECT_SECTION): Move ...
5574 * config/v850/v850.c (v850_select_section): ... here.
5575 (TARGET_ASM_SELECT_SECTION): New.
5577 * config/vax/vms.h (SELECT_SECTION): Move ...
5578 * config/vax/vax.c (vms_select_section): ... here.
5579 (TARGET_ASM_SELECT_SECTION): New.
5581 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
5582 for the target hooks.
5584 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
5586 * config/arm/arm.c (emit_multi_reg_push): Do not set
5587 RTX_FRAME_RELATED_P on the SEQUENCE.
5589 2002-05-16 Richard Henderson <rth@redhat.com>
5591 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
5592 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
5594 2002-05-16 Richard Henderson <rth@redhat.com>
5596 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
5598 * config/ia64/ia64.c (saveable_obstack): Do not declare.
5600 2002-05-16 Richard Henderson <rth@redhat.com>
5602 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
5603 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
5604 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
5605 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
5606 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
5607 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
5608 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
5609 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
5610 Revert "Basic block renumbering removal", and two followup patches.
5612 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
5614 * lcm.c (optimize_mode_switching): Revert previous change.
5616 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5618 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
5619 with only extant block numbers.
5621 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
5623 * lcm.c (optimize_mode_switching): Fix typo.
5625 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5627 * flow.c (calculate_global_regs_live): Queue blocks in program order.
5629 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5631 * doc/install.texi (Configuration): Document PWDCMD.
5633 2002-05-16 Dale Johannesen <dalej@apple.com>
5635 * combine.c (cant_combine_insn_p): Reenable combinations
5636 involving hard regs unless CLASS_LIKELY_SPILLED_P.
5638 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
5640 * c-common.c (cb_register_builtins): Handle more built-ins
5641 here rather than in gcc.c specs.
5642 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
5643 (cpp_options): Pass -O flags even when only preprocessing.
5644 * toplev.c (set_fast_math_flags): New prototype.
5645 (fast_math_flags_set_p): New.
5646 (set_no_fast_math_flags): Remove.
5647 (decode_f_option): Update.
5648 * toplev.h (set_fast_math_flags): Update.
5649 (fast_math_flags_set_p): New.
5650 (set_no_fast_math_flags): Remove.
5652 * c4x/c4x.c (c4x_override_options): Update.
5654 2002-05-16 Zack Weinberg <zack@codesourcery.com>
5656 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
5657 Default-define here.
5658 (builtin_define_with_value): Can now wrap the expansion in
5659 quotation marks if such is wanted.
5660 (cb_register_builtins): Update calls to builtin_define_with_value.
5661 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
5663 (c_common_init): Set options->stdc_0_in_system_headers.
5664 * c-lex.h: Update prototype of builtin_define_with_value.
5665 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
5666 and REGISTER_PREFIX.
5668 * cppinit.c (VERS, ULP, C, X): Kill.
5669 (builtin_array): Remove entries for __VERSION__,
5670 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
5671 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
5673 (init_builtins): Kill off a bunch of now-dead code.
5674 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
5675 -fno-leading-underscore.
5676 (cpp_handle_option): Remove code to set user_label_prefix.
5677 (cpp_post_options): Likewise.
5679 * cpplib.h (struct cpp_options): Remove user_label_prefix.
5680 (stdc_0_in_system_headers): New.
5681 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
5682 stdc_0_in_system_headers) too to decide the value of __STDC__.
5684 * tradcpp.c (user_label_prefix): Kill.
5685 (main): Remove code handling -f(no-)leading-underscore.
5686 (initialize_builtins): Don't define __REGISTER_PREFIX__
5687 or __USER_LABEL_PREFIX__.
5688 (install_value): Wrap compound statement in dummy loop so the
5689 macro works properly in an if statement.
5692 2002-05-16 Janis Johnson <janis187@us.ibm.com>
5694 * loop.h (struct loop_info): Add member has_prefetch.
5695 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
5696 (prescan_loop): Initialize has_prefetch.
5697 (struct prefetch_info): Change prefetch_in_loop and
5698 prefetch_before_loop from bit fields to ints.
5699 (emit_prefetch_instructions): Several small fixes.
5700 (check_dbra_loop): Don't reverse loop that uses prefetch.
5702 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5704 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
5705 * configure.in: Likewise.
5706 * fixinc/check.tpl: Likewise.
5707 * fixinc/fixinc.dgux: Likewise.
5708 * fixinc/fixinc.svr4: Likewise.
5709 * fixinc/fixinc.winnt: Likewise.
5710 * fixinc/fixincl.sh: Likewise.
5711 * fixproto: Likewise.
5712 * configure: Regenerate.
5714 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5716 Basic block renumbering removal:
5717 * basic_block.h (struct basic_block_def): Renamed index to sindex,
5718 added prev_bb and next_bb fields.
5719 (n_basic_blocks): Renamed to num_basic_blocks.
5720 (last_basic_block): New, index of last basic block.
5721 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
5722 traversing basic block chain.
5723 (BLOCK_NUM): index -> sindex.
5724 (create_basic_block_structure, create_basic_block): Declaration changed.
5725 (debug_num2bb): Declare.
5726 (expunge_block_nocompact): Declaration removed.
5727 (link_block, unlink_block, compact_blocks): Declare.
5728 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
5729 * cfg.c (entry_exit_blocks): Initialize new fields.
5730 (clear_edges, alloc_block, expunge_block, cached_make_edge,
5731 redirect_edge_pred, dump_flow_info, dump_edge_info,
5732 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
5733 free_aux_for_edges): Modified.
5734 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
5735 (expunge_block_nocompact): Removed.
5736 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
5737 find_unreachable_blocks, create_edge_list, print_edge_list,
5738 verify_edge_list, flow_edge_list_print, remove_fake_successors,
5739 remove_fake_edges, flow_reverse_top_sort_order_compute,
5740 flow_depth_first_order_compute, flow_preorder_transversal_compute,
5741 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
5742 flow_dfs_compute_reverse_execute): Modified.
5743 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
5744 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
5746 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
5747 merge_blocks_move_predecessor_nojumps,
5748 merge_blocks_move_successor_nojumps, merge_blocks,
5749 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
5750 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
5751 * cfglayout.c (skip_insns_after_block, label_for_bb,
5752 record_effective_endpoints, scope_to_insns_finalize,
5753 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
5754 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
5755 cfg_layout_duplicate_bb): Modified.
5756 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
5757 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
5758 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
5759 flow_loops_find, flow_loop_outside_edge_p): Modified.
5760 * cfgrtl.c (create_basic_block_structure, create_basic_block,
5761 flow_delete_block, compute_bb_for_insn, split_block,
5762 try_redirect_by_replacing_jump, redirect_edge_and_branch,
5763 force_nonfallthru_and_redirect, tidy_fallthru_edge,
5764 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
5765 commit_edge_insertions, commit_edge_insertions_watch_calls,
5766 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
5767 purge_all_dead_edges): Modified.
5768 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
5769 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
5770 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
5772 * conflict.c (conflict_graph_compute): Modified.
5773 * df.c (FOR_ALL_BBS): Removed.
5774 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
5775 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
5776 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
5777 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
5778 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
5779 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
5780 * final.c (compute_alignments, final_scan_insn): Modified.
5781 * flow.c (verify_local_live_at_start, update_life_info,
5782 update_life_info_in_dirty_blocks, free_basic_block_vars,
5783 delete_noop_moves, calculate_global_regs_live,
5784 initialize_uninitialized_subregs, allocate_bb_life_data,
5785 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
5786 mark_used_reg, count_or_remove_death_notes): Modified.
5787 * function.c (thread_prologue_and_epilogue_insns): Modified.
5788 * gcse.c (struct null_pointer_info): Change typo of current_block
5790 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
5791 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
5792 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
5793 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
5794 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
5795 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
5796 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
5797 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
5798 pre_delete, one_pre_gcse_pass, compute_transpout,
5799 invalidate_nonnull_info, delete_null_pointer_checks_1,
5800 free_code_hoist_mem, compute_code_hoist_vbeinout,
5801 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
5802 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
5803 compute_store_table, build_store_vectors, insert_insn_start_bb,
5804 insert_store, replace_store_insn, free_store_memory, store_motion):
5806 * global.c (global_alloc, global_conflicts, mark_elimination,
5807 build_insn_chain): Modified.
5808 * graph.c (print_rtl_graph_with_bb): Modified.
5809 * haifa-sched.c (sched_init): Modified.
5810 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
5811 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
5812 if_convert): Modified.
5813 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
5814 compute_insert_delete, pre_edge_lcm, compute_available,
5815 compute_farthest, compute_nearerout, compute_rev_insert_delete,
5816 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
5818 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
5819 * loop.c (loop_dump_aux): Modified.
5820 * predict.c (combine_predictions_for_insn, estimate_probability,
5821 last_basic_block_p, process_note_prediction, process_note_predictions,
5822 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
5823 expensive_function_p, estimate_bb_frequencies,
5824 compute_function_frequency): Modified.
5825 * print-rtl.c (print_rtx): Modified.
5826 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
5827 get_exec_counts, compute_branch_probabilities, compute_checksum,
5828 branch_prob, find_spanning_tree): Modified.
5829 * recog.c (split_all_insns, peephole2_optimize): Modified.
5830 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
5831 convert_regs_1, convert_regs_2, convert_regs): Modified.
5832 * regclass.c (scan_one_insn, regclass): Modified.
5833 * regmove.c (mark_flags_life_zones, regmove_optimize,
5834 combine_stack_adjustments): Modified.
5835 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
5836 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
5837 * reorg.c (dbr_schedule): Modified.
5838 * resource.c (find_basic_block, init_resource_info): Modified.
5839 * sbitmap.c (sbitmap_intersection_of_succs,
5840 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
5841 sbitmap_union_of_preds): Modified.
5842 * sched-deps.c (init_dependency_caches): Modified.
5843 * sched-ebb.c (schedule_ebbs): Modified.
5844 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
5845 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
5846 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
5847 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
5848 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
5849 ssa_const_prop): Modified.
5850 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
5851 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
5852 * ssa.c (remove_phi_alternative, find_evaluations,
5853 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
5854 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
5855 make_regs_equivalent_over_bad_edges,
5856 make_equivalent_phi_alternatives_equival,
5857 compute_conservative_reg_partition,
5858 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
5859 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
5862 2002-05-16 Mark Mitchell <mark@codesourcery.com>
5864 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
5866 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
5868 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
5869 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
5870 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
5871 calling CONSTANT_POOL_ADDRESS_P.
5872 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
5873 to decide whether to define __arm__ or __thumb.
5874 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
5875 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
5877 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
5879 * config/arc/arc.h (CPP_PREDEFINES): Remove.
5881 (TARGET_CPU_CPP_BUILTINS): New.
5883 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
5885 * cpphash.h (cpp_macro): Move here, and make expansion a union.
5886 * cppmacro.c (cpp_macro): Remove.
5887 (enter_macro_context, replace_args, warn_of_redefinition,
5888 _cpp_create_definition, cpp_macro_definition): Update.
5890 2002-05-16 Jason Merrill <jason@redhat.com>
5892 * config/mips/mips.c (mips_output_external): Don't do sdata
5893 optimization for a variable with DECL_COMDAT set.
5895 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
5897 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
5898 Cleanups for accepting modifiers on pointers.
5899 Fix predicate typos.
5900 Allow long pointers as well as int pointers.
5902 2002-05-15 Richard Henderson <rth@redhat.com>
5904 * varasm.c (merge_weak): Remove special case for extern and common.
5906 2002-05-15 Matt Hiller <hiller@redhat.com>
5908 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
5910 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
5911 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
5912 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
5913 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
5914 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
5915 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
5917 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
5919 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
5921 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
5923 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
5924 ("altivec_mfvscr"): Read from VSCR.
5926 Add vscr sets for the following insns: altivec_vctuxs,
5927 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
5928 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
5929 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
5930 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
5931 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
5932 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
5933 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
5934 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
5935 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
5936 altivec_vsum2sws, altivec_vsumsws.
5938 * config/rs6000/rs6000.h: Add VSCR fixed register.
5939 (CALL_REALLY_USED_REGISTERS): Add vscr.
5940 (CALL_USED_REGISTERS): Same.
5941 (FIXED_REGISTERS): Same.
5942 (REG_ALLOC_ORDER): Same.
5943 (reg_class): Add VSCR_REGS.
5944 (REG_CLASS_NAMES): Same.
5945 (REG_CLASS_CONTENTS): Same.
5947 (REGISTER_NAMES): Add vscr.
5948 (DEBUG_REGISTER_NAMES): Same.
5949 (ADDITIONAL_REGISTER_NAMES): Same.
5950 (FIRST_PSEUDO_REGISTER): Increment.
5951 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
5953 2002-05-15 Jakub Jelinek <jakub@redhat.com>
5955 * fold-const.c (fold): Fix a typo.
5957 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
5959 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
5960 comparison against the highest or lowest integer value before
5961 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
5962 transformation and that of an unsigned comparison against 0
5965 2002-05-15 Richard Henderson <rth@redhat.com>
5967 * varasm.c (merge_weak): Error for any weakening after definition.
5968 Adjust weakening after use warning to catch more cases.
5969 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
5970 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
5972 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
5974 * invoke.texi (-malign-double): Re-add lost warning.
5976 * i386-protos.h (x86_output_mi_thunk): Declare.
5977 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
5978 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
5980 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
5981 when flag_asynchronous_unwind_tables is set.
5983 * flags.h (flag_reorder_functions): Declare.
5984 * function.c (prepare_function_start): Initialize frequnecy.
5985 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
5986 * Makefile.in (predict.o): Add dependency on target.h and params.h
5987 * defaults.h (HOT_TEXT_SECTION_NAME,
5988 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
5989 * predict.c (choose_function_section): New function.
5990 (estimate_bb_frequencies): Use it.
5991 * toplev.c (flag_reorder_functions): New global variable.
5992 (lang_independent_options): New.
5993 (parse_options_and_default_flags): Set.
5994 * varasm.c (assemble_start_function): Bypass functdion alignment
5995 for never executed functions.
5996 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
5997 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
5998 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
6001 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
6003 * predict.c: Inlude profile.h
6004 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
6005 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
6006 Use the information about maximal counter in the program.
6008 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
6010 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
6011 probably_never_executed_bb_p): New functions.
6012 * cfgcleanup.c (outgoing_edges_match): Use them.
6013 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
6014 (maybe_hot_bb_p, probably_cold_bb_p,
6015 probably_never_executed_bb_p): New functions.
6017 * function.h (function): Add new field function_frequency.
6018 * predict.c (compute_function_frequency): New function.
6019 (estimate_probability): Call it.
6021 2002-03-09 Jakub Jelinek <jakub@redhat.com>
6023 PR optimization/5172, optimization/5200
6024 * gcse.c (gcse_main): Disable store_motion.
6026 2002-05-14 Zack Weinberg <zack@codesourcery.com>
6028 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
6029 (c_common_nodes_and_builtins): Use it.
6030 (builtin_define_with_value): New function.
6031 (cb_register_builtins): Define __SIZE_TYPE__,
6032 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
6033 using builtin_define_with_value. Use consistent notation when
6034 defining __GXX_WEAK__.
6035 (WCHAR_TYPE_SIZE): Don't redefine.
6036 (combine_strings): Don't use WCHAR_TYPE_SIZE.
6038 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
6039 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
6040 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
6041 * tradcpp.c (initialize_builtins): Likewise.
6042 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
6044 * c-lex.h (builtin_define_with_value): Prototype.
6045 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
6046 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
6047 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
6049 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
6050 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
6051 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
6052 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
6053 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
6054 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
6055 config/sparc/sol2-bi.h, config/sparc/sparc.h:
6056 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
6057 to __SIZE_TYPE__ etc from all spec strings. When this makes
6058 extra specs empty, delete them.
6060 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
6062 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
6063 for PA8000 or generating dwarf2 call frame information.
6064 (output_call): Remove DO_FRAME_NOTES check from return pointer
6066 (following_call): Return 0 when scheduling for PA8000 or generating
6067 dwarf2 call frame information. Revise comment.
6069 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
6072 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
6073 and __IEEE_FP_INEXACT as appropriate.
6074 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
6075 (CPP_SPEC): Remove ieee defines.
6076 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
6078 2002-05-14 Richard Henderson <rth@redhat.com>
6080 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
6081 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
6083 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
6085 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
6087 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
6088 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
6089 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
6090 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
6091 (EXTRA_SPECS): Update.
6092 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
6093 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
6094 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
6095 define TARGET_OS_CPP_BUILTINS if necessary.
6097 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
6099 * gcc.c (cpp_options): Must pass -m* and -f* options
6100 to the front end even when only preprocessing.
6101 (cc1_options): Remove redundant -lang-c.
6102 * tradcpp.c (main): Ignore -m options.
6104 * lang-specs.h: Similarly.
6106 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
6108 * genautomata.c (transform_3): Add code for transformation
6109 `(A,B,...)+C -> A+C,B,...'.
6111 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
6113 * final.c (end_final): Do not output profile_arcs constructor, when
6114 no functions are instrumented.
6116 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
6118 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
6120 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6122 * doc/install.texi: Remove special markup originally required for
6123 HTML generation with texi2html.
6125 2002-05-14 Andreas Schwab <schwab@suse.de>
6127 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
6129 (UNIQUE_SECTION): Define to get small data correctly.
6131 * varasm.c (resolve_unique_section): Add third parameter
6132 flag_function_or_data_sections and use it instead of
6133 flag_function_sections.
6134 (assemble_start_function): Pass flag_function_sections.
6135 (asm_emit_uninitialised): Pass flag_data_sections.
6136 (assemble_variable): Likewise.
6138 2002-05-14 Richard Henderson <rth@redhat.com>
6140 * config/i386/i386.md: Use define_constants for unspec numbers.
6141 * config/i386/i386.c: Likewise.
6143 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
6145 * doc/contrib.texi: Update my entry.
6147 2002-05-13 Mark Mitchell <mark@codesourcery.com>
6149 * fixinc/inclhack.def (winidss_valist): Limit applicability.
6150 * fixinc/fixincl.x: Regenerated.
6151 * fixinc/tests/base/math.h: Update.
6152 * fixinc/tests/base/testing.h: Likewise.
6154 2002-05-13 Zack Weinberg <zack@codesourcery.com>
6156 * genattr.c (gen_attr): Don't emit a comma after the last
6159 2002-05-13 Richard Henderson <rth@redhat.com>
6161 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
6163 * recog.c (peephole2_optimize): Likewise.
6165 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
6167 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
6170 2002-05-13 Jeffrey A Law (law@redhat.com)
6172 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
6173 Update prototype and callers.
6174 (propagate_one_insn): Stack pointer adjustments kill MEMs on
6175 the mem_set_list which reference the stack pointer, as do
6176 calls to constant functions as they may clobber outgoing
6179 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
6181 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
6182 (ia32_multipass_dfa_lookahead): New function.
6184 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
6186 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
6187 (translate_options): Remove 'V'.
6188 (process_command): Similarly.
6190 * invoke.texi: Remove documentation of 'V'.
6192 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6194 * config/s390/linux.h: Revert 2002-04-22 changes.
6196 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
6198 * config/fr30/fr30.md: Only allow splits of immediate loads
6199 if the destination is a register.
6201 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
6203 * Makefile.in (c-common.o, cppinit.o): Update.
6204 * c-common.c: Include except.h.
6205 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
6206 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
6207 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
6208 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
6209 CPP_PREDEFINES): Handle here.
6211 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
6212 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
6213 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
6214 TARGET_OS_CPP_BUILTINS.
6215 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
6216 (CPP_SPEC, EXTRA_SPECS): Update.
6217 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
6218 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
6219 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
6220 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
6221 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
6223 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
6224 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
6226 2002-05-12 Zack Weinberg <zack@codesourcery.com>
6228 * emit-rtl.c (global_rtl): Update comment.
6229 (const_double_htab, const_double_htab_hash,
6230 const_double_htab_hash, lookup_const_double): New.
6231 (const_int_htab_hash, const_int_htab_eq): Remove const
6232 qualifiers, which cause tons of warnings with RTL checking on.
6233 (gen_rtx_CONST_DOUBLE): Deleted.
6234 (const_double_from_real_value): New function - bears some
6235 resemblance to the former immed_real_const_1.
6236 (immed_double_const): Moved here from varasm.c and
6238 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
6239 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
6240 (gen_rtx): Use immed_double_const.
6241 (init_emit_once): Initialize the const_double_htab. Use
6242 REAL_VALUE_FROM_INT where possible. Can now use
6243 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
6244 * varasm.c (struct varasm_status): Remove x_const_double_chain.
6245 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
6246 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
6247 (init_varasm_status, mark_varasm_status): Don't touch
6248 x_const_double_chain.
6250 * output.h: Delete prototype for clear_const_double_mem.
6251 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
6252 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
6253 const_double_from_real_value, not immed_real_const_1, and use
6254 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
6256 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
6257 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
6258 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
6259 (gen_rtx_REG): Second arg is unsigned.
6261 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
6262 (excluded_rtx): New, return true for CONST_DOUBLE.
6263 (genmacro): Write nothing for excluded codes.
6264 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
6265 * expr.c (expand_expr): Likewise.
6266 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
6268 * toplev.c (rest_of_compilation): Don't call
6269 clear_const_double_mem.
6271 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
6272 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
6273 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
6274 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
6275 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
6276 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
6277 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
6278 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
6280 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6282 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
6284 2002-05-12 Tom Tromey <tromey@redhat.com>
6286 * tree.h (copy_node): Don't mention TREE_PERMANENT.
6288 2002-05-12 Zack Weinberg <zack@codesourcery.com>
6290 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
6291 (scan_comma_elt): New function. Accepts whitespace in comma lists.
6292 * gensupport.h: Prototype new routines.
6293 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
6295 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
6296 (next_comma_elt): Use scan_comma_elt.
6298 * config/i386/i386.md: Use new attribute notation to break up
6299 long lines in define_attr forms.
6301 2002-05-12 Richard Henderson <rth@redhat.com>
6303 * expr.c (compress_float_constant): New.
6304 (emit_move_insn): Use it.
6305 (float_extend_from_mem): New.
6306 (init_expr_once): Initialize it.
6307 * real.c (exact_real_truncate): New.
6309 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
6310 dropped into memory; penalize for size.
6311 (RTX_COSTS): FLOAT_EXTEND is free.
6312 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
6313 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
6315 2002-05-12 Richard Henderson <rth@redhat.com>
6317 * profile.h (profile_info): Add missing extern to declaration.
6318 * profile.c (profile_info): Define it.
6320 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6322 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
6323 used for DImode and TImode.
6325 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
6327 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
6330 2002-05-11 Zack Weinberg <zack@codesourcery.com>
6332 * config/rs6000/rs6000.c (rs6000_default_long_calls,
6333 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
6334 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
6335 (rs6000_override_options): Handle -m(no-)longcall.
6336 (init_cumulative_args, output_mi_thunk): Check for both
6337 longcall and shortcall attributes on the function.
6338 (rs6000_attribute_table): Add "shortcall".
6339 (rs6000_handle_longcall_attribute): Update comment.
6340 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
6341 altivec_expand_ternop_builtin): Add default clauses to switches
6342 to silence warnings.
6344 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
6345 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
6346 (TARGET_OPTIONS): Add longcall and no-longcall.
6348 * config/rs6000/rs6000.md (call_nonlocal_sysv,
6349 call_value_nonlocal_sysv): Split by alternatives. One pair
6350 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
6351 the call cookie. The other pair accepts only LR/CTR and has
6354 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
6355 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
6357 * config/rs6000/rs6000-c.c: New file.
6358 * config/rs6000/t-rs6000-c-rule: New file.
6359 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
6360 Prototype rs6000_pragma_longcall.
6362 * doc/extend.texi: Document shortcall attribute.
6363 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
6365 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6367 * reorg.c (dbr_schedule): Remove unnecessary test.
6369 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
6371 * i386.md (testsi to testqi spliters): New.
6373 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
6375 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
6377 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
6379 * basic-block.h: New flag EDGE_CAN_FALLTHRU
6380 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
6381 that can be made fallthru.
6383 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
6385 * cfglayout.c (cleanup_unconditional_jumps): New static function.
6386 (cfg_layout_initialize): Use it.
6388 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
6390 * config/avr/avr.c (avr_mcu_types): Update supported devices.
6391 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
6392 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
6394 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
6396 * dbxout.c: Fix formatting.
6397 * dependence.c: Likewise.
6399 * diagnostic.c: Likewise.
6400 * doloop.c: Likewise.
6401 * dominance.c: Likewise.
6402 * doschk.c: Likewise.
6403 * dwarf2asm.c: Likewise.
6404 * dwarf2out.c: Likewise.
6405 * dwarfout.c: Likewise.
6407 2002-05-10 Richard Henderson <rth@redhat.com>
6409 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
6410 Convert integers constants as needed. Replace "nwords" field with
6412 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
6413 * function.h: Fix typo in comment.
6414 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
6416 2002-05-10 Roger Sayle <roger@eyesopen.com>
6418 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
6419 into the equivalent (signed char)c > 0.
6421 2002-05-10 Janis Johnson <janis187@us.ibm.com>
6423 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
6424 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
6425 (struct prefetch_info): Fix spelling of member bytes_accessed.
6426 (emit_prefetch_instructions): Make dump messages more regular;
6427 restructure code to add more dump messages; use new macros for
6428 heuristics. (There are no code generation changes in any of this).
6430 2002-05-10 David S. Miller <davem@redhat.com>
6432 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
6433 (struct rtx_def): Update unchanging flag comment.
6434 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
6435 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
6436 to be handled to INSN too.
6437 (dbr_schedule): Likewise.
6438 * resource.c (next_insn_no_annul): Likewise.
6440 * cse.c (rtx_cost): Remove multiplication by power of 2 special
6443 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6445 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
6446 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
6447 (possibly) work around broken /bin/sh.
6449 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6451 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
6452 . as N64/N32 libgcc_s.so subdirs.
6454 2002-05-10 David S. Miller <davem@redhat.com>
6456 * config/sparc/sparc.md: Use define_constants for unspec numbers.
6458 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
6460 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
6462 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
6463 * doc/rtl.texi: Document these macros more accurately.
6464 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
6465 JUMP_INSNs and CALL_INSNs.
6466 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
6467 or INSN_FROM_TARGET_P if the code is appropriate.
6469 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
6471 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
6472 before using SYMBOL_REF_FLAG (addr).
6474 * config/avr/avr-protos.h (avr_io_address_p): Declare.
6475 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
6476 Make non-static. Update all callers.
6477 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
6478 New insns to clear/set/test a single bit in I/O address space.
6480 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6482 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
6484 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
6486 * Makefile.in: Update.
6487 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
6488 builtin_define_std): New.
6489 (c_common_init): Register CPP builtins callback.
6490 * c-common.h (flag_iso, flag_undef): New.
6491 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
6492 * c-lex.c: Don't include target.h.
6493 (cb_register_builtins): Move to c-common.c.
6494 (init_c_lex): Don't register hook here.
6495 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
6496 (cpp_define, cpp_assert): Remove.
6497 * gcc.c (cc1_options): Pass -undef to front end.
6498 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
6499 (TARGET_INITIALIZER): Update.
6500 * target.h (struct cpp_reader): Don't predeclare.
6501 (struct gcc_target): Remove cpp builtin hook.
6502 * tree.c (default_register_cpp_builtins): Remove.
6506 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
6508 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
6510 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6512 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
6513 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
6515 2002-05-09 Jakub Jelinek <jakub@redhat.com>
6517 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
6518 * config/sparc/libgcc-sparc-glibc.ver: New file.
6519 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
6520 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
6522 2002-05-09 Jakub Jelinek <jakub@redhat.com>
6525 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
6526 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
6527 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
6529 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
6530 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
6531 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
6532 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
6534 2002-05-09 Richard Henderson <rth@redhat.com>
6536 * config/ia64/ia64.md: Use define_constants for unspec numbers.
6537 * config/ia64/ia64.c: Likewise.
6539 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
6541 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
6542 (save_restore_insns): Likewise.
6543 (mips_expand_prologue, mips_expand_epilogue): Update callers.
6544 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
6546 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
6548 * athlon.md, k6.md, pentium.md, ppro.md): New files.
6549 * i386.md: Move scheduling information into new files.
6551 * i386.md (type attribute): Add "rotate" for rotate insns.
6552 (rotate insns): Set type to "rotate".
6553 (various attributes and function units): Treat rotate like shift.
6554 (pent_pair attribute): Only rotates by one bit position are
6556 (sbb insns): Explicitly set pent_pair attribute on a couple
6557 that were missing it.
6559 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
6561 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
6562 make sure that buffer starts on odd word address.
6563 (sh_va_arg): Skip odd fp registers when reading a double precision
6566 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
6568 * tree.h (preserve_data, object_permanent_p, type_precision):
6571 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
6573 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
6574 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
6576 * cpp.texi: Update for removal of obsolete features.
6578 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
6579 Jeffrey A Law (law@redhat.com)
6581 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
6582 the DFA interface for Pentium processors.
6583 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
6584 (attr_pent_pair, ix86_pent_find_pair): Remove.
6585 (ix86_sched_reorder_pentium): Remove.
6586 (ix86_sched_reorder): Remove reordering for Pentium.
6587 * i386.md (Pentium scheduling): Rewrite using DFA description.
6589 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
6591 * cfganal.c (can_fallthru): Fix fast path.
6592 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
6593 with edges to the next block.
6595 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
6596 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
6598 * final.c (end_final): Use C trees to output data structures for profiling.
6600 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
6601 (profile.o): New dependency profile.h
6602 (final.o): New dependency profile.h
6603 * profile.h: New file. New global structure profile_info.
6604 * final.h (count_edges_instrumented_now): Declare.
6605 (current_function_cfg_checksum): Declare.
6606 (function_list): New structure.
6607 (functions_head, functions_tail): New static variables.
6608 (end_final): Emits more data, removed some -ax stuff.
6609 (final): Stores function names and chcksums.
6610 * gcov-io.h (__write_gcov_string): New function.
6611 (__read_gcov_string): New function.
6612 * gcov.c (read_profile): New function.
6613 (create_program_flow_graph): Uses read_profile instead of reading
6615 (read_files): Removed da_file checking, it's done by read_profile now.
6616 * libgcc2.c (bb_function_info): New structure.
6617 (bb): New field in structure, removed some -ax stuff.
6618 (__bb_exit_func): Changed structure of da_file.
6619 * profile.c (count_edges_instrumented_now): New global variable.
6620 (current_function_cfg_checksum): New global variable.
6621 (max_counter_in_program): New global variable.
6622 (get_exec_counts): New function.
6623 (compute_checksum): New function.
6624 (instrument_edges): Sets count_edges_instrumented_now.
6625 (compute_branch_probabilities): Uses get_exec_counts instead of
6627 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
6628 (init_branch_prob): Removed da_file checking, done in get_exec_counts
6630 (end_branch_prob): Removed da_file checking, done in get_exec_counts
6632 * gcov.texi: Updated information about gcov file format.
6634 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
6636 * sbitmap.c: Fix formatting.
6638 * scan-decls.c: Likewise.
6639 * sched-deps.c: Likewise.
6640 * sched-ebb.c: Likewise.
6641 * sched-rgn.c: Likewise.
6642 * sched-vis.c: Likewise.
6643 * sdbout.c: Likewise.
6644 * sibcall.c: Likewise.
6645 * simplify-rtx.c: Likewise.
6647 * ssa-ccp.c: Likewise.
6648 * ssa-dce.c: Likewise.
6650 * stor-layout.c: Likewise.
6651 * stringpool.c: Likewise.
6653 2002-05-09 David S. Miller <davem@redhat.com>
6655 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
6657 2002-05-07 David S. Miller <davem@redhat.com>
6659 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
6660 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
6661 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
6662 library implementation clobbers the output before the inputs
6663 are fully consumed, use stack temporary for the output.
6665 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
6667 * config/netbsd.h (CPP_SPEC): Remove.
6668 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
6669 * config/i386/netbsd.h (CPP_SPEC): Define.
6670 * config/ns32k/netbsd.h (CPP_SPEC): Define.
6671 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
6672 * config/sparc/netbsd.h (CPP_SPEC): Define.
6673 * config/vax/netbsd.h (CPP_SPEC): Define.
6675 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
6677 * read-rtl.c: Fix formatting.
6679 * recog.c: Likewise.
6680 * regclass.c: Likewise.
6681 * regmove.c: Likewise.
6682 * reg-stack.c: Likewise.
6683 * reload1.c: Likewise.
6684 * reload.c: Likewise.
6685 * resource.c: Likewise.
6686 * rtlanal.c: Likewise.
6688 * rtl-error.c: Likewise.
6690 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
6692 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
6693 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
6695 2002-05-08 Bernd Schmidt <bernds@redhat.com>
6697 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
6698 use __SSE2__ macro instead.
6699 * config/i386/xmmintrin.h: Likewise.
6701 2002-05-08 Janis Johnson <janis187@us.ibm.com>
6703 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
6704 and use it in all invocations of these macros. Clean up comments.
6705 * rtl.c (rtl_check_failed_flag): Add an argument for the name
6706 of the flag access macro whose check failed.
6707 * doc/rtl.texi (Flags): Document additional flag uses.
6709 2002-05-08 Robert Spier <rspier@pobox.com>
6710 Neil Booth <neil@daikokuya.demon.co.uk>
6712 PR preprocessor/6521
6713 * cppfiles.c (handle_missing_header): Don't do anything
6714 different for <> includes.
6716 * cppopts.texi: Update documentation for -MG.
6718 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
6720 * cpplex.c (cpp_interpret_charconst): Truncate as well as
6723 * cpp.texi: Clarify multichar charconst valuation.
6725 2002-05-08 Mark Mitchell <mark@codesourcery.com>
6727 * doc/invoke.texi: Document -mwindiss option.
6729 2002-05-08 Jason Merrill <jason@redhat.com>
6731 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
6733 * dwarf2out.c (gen_type_die): Abort on broken recursion.
6736 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
6739 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
6741 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
6742 little-endian multilibs to override arm/thumb multilibs.
6743 Do not build hardware floating point multilibs, nor apcs-26
6744 multilibs for the Thumb.
6746 2002-05-08 Mark Mitchell <mark@codesourcery.com>
6749 * varasm.c (mark_weak): New function.
6750 (merge_weak): Use it. Do not call declare_weak.
6751 (declare_weak): Use merge_weak.
6753 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
6755 * cse.c (dead_libcall_p): Update counts.
6756 (delete_trivially_dead_insns): Update call of dead_libcall_p.
6758 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
6760 * cfglayout.c (function_tail_eff_head): Rename to ...
6761 (function_footer): ... this one.
6762 (unlink_insn_chain): New functions.
6763 (label_for_bb): Only call block_label and emit debug message.
6764 (record_effective_endpoints): Actually unlink the headers and footers.
6765 (fixup_reorder_cahin): Re-insert the unlinked sequences.
6766 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
6767 * cfglayout.h (struct reorder_block_def): New fields footer/header;
6768 remove eff_head/eff_end.
6769 * rtl.h (set_first_insn): Declare.
6770 * emit-rtl.c (set_first_insn): New function.
6772 * cfglayout.c (fixup_reorder_chain): Dump duplicated
6773 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
6774 cfg_layout_duplicate_bb): New global function.
6775 (duplicate_insn_chain): New static function.
6776 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
6777 cfg_layout_duplicate_bb): Declare.
6778 (struct reorder_block_def): Add "original" field.
6779 * emit-rtl.c (emit_copy_of_insn_after): New function.
6780 * rtl.h (emit_copy_of_insn_after): Declare.
6782 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
6783 (fixup_reorder_chain): properly handle edges to exit block.
6785 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6786 Jan Hubicka <jh@suse.cz>
6788 * basic-block.h (note_prediction_to_br_prob): declare.
6789 * c-semantics.c: Inlucde predit.h
6790 (expand_stmt): predict GOTO_STMT as not taken.
6791 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
6792 (cleanup_cfg): Do not free tail_recursion_list.
6793 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
6794 (flow_delete_block): Kill predictions past end of basic block.
6795 * output.h (delete_unreachable_blocks): Declare.
6796 * predict.c (predicted_by_p, process_note_predictions,
6797 process_note_prediction, last_block_p): New function.
6798 (estimate_probability): Bypass loop on PRED_CONTINUE;
6799 do not handle noreturn heuristics; kill PRED_RETURN; add
6801 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
6802 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
6803 * predict.h (IS_TAKEN): New constant.
6804 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
6805 * rtl.c (NOTE_INSN_PREDICTION): New.
6806 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
6808 (insn_note): add NOTE_INSN_PREDICTION.
6809 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
6810 CFG; free tail_recursion_label_list.
6811 * stmt.c: Include predict.h;
6812 (return_prediction): New.
6813 (expand_value_return): Use it.
6814 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
6816 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
6818 * config/mips/mips.md: Name the unspecs with define_constant.
6819 (*HILO_delay): Rename to 'hilo_delay' (no star).
6820 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
6821 (reload_outdi, reload_outsi): Likewise.
6823 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
6825 * toplev.c: Fix formatting.
6827 2002-05-07 Janis Johnson <janis187@us.ibm.com>
6829 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
6830 * configure.in (ac_rtlflag_checking): New.
6831 * doc/install.texi (--enable-checking): Document RTL flag checking.
6833 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
6835 * c-common.c (c_common_init): Set options->unsigned_wchar.
6836 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
6837 group target dependencies.
6838 (init_builtins, cpp_handle_option): Update.
6839 * cpplex.c (cpp_interpret_charconst): Update.
6840 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
6841 signed_char to unsigned_char, group target dependencies.
6842 * defaults.h (WCHAR_UNSIGNED): Remove.
6843 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
6845 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
6846 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
6847 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
6848 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
6849 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
6851 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
6853 2002-05-07 Mark Mitchell <mark@codesourcery.com>
6855 * fixinc/inclhack.def (windiss_math1): New fix.
6856 (windiss_math2): Likewise.
6857 (windiss_valist): Likewise.
6858 * fixinc/fixincl.x: Regenerated.
6860 2002-05-07 Andreas Jaeger <aj@suse.de>
6862 * genautomata.c (output_internal_min_issue_delay_func): Add
6863 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
6864 (output_internal_trans_func): Likewise.
6866 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
6868 * pa.c (hppa_profile_hook): Use force_reg to get the address
6869 of the profile hook into an appropriate pseudo register.
6871 2002-05-07 Mark Mitchell <mark@codesourcery.com>
6873 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
6874 (LINK_START_SPEC): Handle it.
6875 (LINK_OS_SPEC): Likewise.
6876 (CPP_SPEC): Likewise.
6877 (STARTFILE_SPEC): Likewise.
6878 (LIB_SPEC): Likewise.
6879 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
6881 (CRTSAVRES_DEFAULT_SPEC): New macro.
6882 (LIB_WINDISS_SPEC): New macro.
6883 (CPP_OS_WINDISS_SPEC): Likewise.
6884 (STARTFILE_WINDISS_SPEC): Likewise.
6885 (ENDFILE_WINDISS_SPEC): Likewise.
6886 (LINK_START_WINDISS_SPEC): Likewise.
6887 (LINK_OS_WINDISS_SPEC): Likewise.
6888 * config/rs6000/windiss.h: New file.
6890 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
6892 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
6894 2002-05-06 David S. Miller <davem@redhat.com>
6896 * config/sparc/sparc.md (shift insns): Do not mask off
6897 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
6900 2002-05-06 Richard Henderson <rth@redhat.com>
6903 * expr.c (highest_pow2_factor_for_type): New.
6904 (expand_assignment): Use it.
6906 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
6908 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
6910 ("altivec_mfvscr"): Same.
6912 2002-05-06 Janis Johnson <janis187@us.ibm.com>
6914 * rtl.h (struct rtx_def): Update comments.
6915 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
6916 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
6917 RTL_FLAG_CHECK macros with list of expected RTL codes.
6918 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
6919 (rtl_check_failed_flag): New.
6920 * reload1.c (reload): Use REG macro before changing rtx to MEM.
6921 (reload_cse_noop_set_p): Check rtx code before using access macro.
6922 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
6923 before using access macro.
6925 2002-05-06 Janis Johnson <janis187@us.ibm.com>
6927 * doc/rtl.texi (Flags): Update to reflect current usage.
6929 2002-05-06 Roger Sayle <roger@eyesopen.com>
6932 * fold-const.c (sign_bit_p): New function.
6933 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
6934 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
6935 Reapply fold when converting (A & C) == C into (A & C) != 0.
6936 (fold_binary_op_with_conditional_arg): Fix typo in comment.
6938 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
6940 * c-common.c (warn_multichar): New.
6941 (c_common_init): Set CPP's warn_multichar.
6942 * c-common.h (warn_multichar): New.
6943 * c-decl.c (warn_multichar): Remove.
6944 * c-lex.c (lex_charconst): Update.
6945 * c-tree.h (warn_multichar): Remove.
6946 * cppexp.c (eval_token): Sign-extend charconst value.
6947 * cppinit.c (cpp_create_reader): Set warn_multichar.
6948 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
6949 each character. Update prototype. Sign-extend the result.
6950 * cpplib.h: Fix conditions.
6951 (struct cpp_options): Add new warning flag.
6952 (cpp_interpret_charconst): Update prototype.
6954 * cpp.texi: Update documentation.
6956 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
6958 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
6959 Fix typo in usage of allof instead of unit.
6961 2002-05-06 Richard Henderson <rth@redhat.com>
6963 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
6964 and any jump or call for IN.
6966 2002-05-06 Bernd Schmidt <bernds@redhat.com>
6968 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
6970 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
6972 2002-05-06 Roger Sayle <roger@eyesopen.com>
6974 * fold-const.c (lshift-double): Cast the high word to an unsigned
6975 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
6976 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
6977 avoid compiler warning. (fold): Remove redundant code from
6978 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
6980 2002-05-06 Jeff Law <law@redhat.com>
6982 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
6983 * pa.c (pa_adjust_cost): Remove all true dependency cost
6984 adjustments. Also remove support for non-DFA scheduling.
6985 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
6986 to adjust true dependency costs. Update various comments.
6987 (7100lc, 7200, 7300 scheduling): Simplify by combining the
6988 FP ALU & MPY units into a single unit.
6990 2002-05-06 Catherine Moore <clm@redhat.com>
6992 * config/v850/v850.c (compute_register_save_size): Make sure
6993 to count all of the registers that will be saved.
6995 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
6997 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
6999 2002-05-06 David S. Miller <davem@redhat.com>
7001 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
7002 allow result to overlap input operands in memory.
7004 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
7007 * cpp.texi: Update multichar charconst docs.
7009 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
7011 * cpplex.c (cpp_interpret_charconst): Sign-extend each
7012 character. Don't ignore excess characters. Treat
7013 multicharacter character constants as signed.
7014 (cpp_parse_escape): Clarify diagnostic.
7016 2002-05-05 Jakub Jelinek <jakub@redhat.com>
7018 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
7019 use add instead of shift.
7020 (ashldi3_sp64): Likewise.
7021 (ashlsi3_const1, ashldi3_const1): Remove.
7022 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
7023 * config/sparc/sparc.c (const1_operand): New.
7025 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
7027 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
7029 2002-05-05 Jakub Jelinek <jakub@redhat.com>
7032 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
7034 2002-05-05 Richard Henderson <rth@redhat.com>
7036 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
7037 memory latency adjustments.
7038 (alpha_variable_issue): Remove.
7039 (alpha_use_dfa_pipeline_interface): New.
7040 (alpha_multipass_dfa_lookahead): New.
7041 * config/alpha/alpha.md: Remove define_function_unit scheduling;
7042 include new dfa scheduling.
7043 (attr type): Add none.
7045 * config/alpha/ev4.md: New.
7046 * config/alpha/ev5.md: New.
7047 * config/alpha/ev6.md: New.
7049 2002-05-05 David S. Miller <davem@redhat.com>
7051 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
7053 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
7055 * cse.c: Fix formatting.
7056 * emit-rtl.c: Likewise.
7058 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
7060 * genautomata.c (initiate_states): Add additional guard to
7061 initialize `units_array'.
7063 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
7065 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
7066 process_unit_to_form_the_same_automaton_unit_lists,
7067 form_the_same_automaton_unit_lists
7068 check_unit_distributions_to_automata): New prototypes and
7070 (check_automata): Rename it into `check_automata_insn_issues'.
7071 (unit_decl): New fields `the_same_automaton_unit' and
7072 `the_same_automaton_message_reported_p'.
7073 (unit_decl_t): New typedef.
7074 (the_same_automaton_lists): New gloval variable.
7075 (unit_regexp, unit_set_el, units_array, units_cmp,
7076 output_get_cpu_unit_code_func): Use the typedef.
7077 (evaluate_max_reserv_cycles): Increment
7078 `description->max_insn_reserv_cycles'.
7079 (initiate_states): Don't increment `max_cycles_num'.
7080 (transform_insn_regexps): Move code around transformation of
7081 regexps from `generate'.
7082 (generate): Remove call of `transform_insn_regexps'.
7083 (expand_automata): Call `transform_insn_regexps' and
7084 `check_unit_distributions_to_automata'. Check errors before
7087 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
7088 automaton `ultrasparc3_1'.
7090 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
7092 * c-common.c (c_common_init): Set up CPP arithmetic.
7093 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
7094 something reasonable for the host.
7095 (sanity_checks): Add checks.
7096 (cpp_read_main_file): Call sanity_checks() from here...
7097 (cpp_post_options): ... not here.
7098 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
7099 * cpplib.h (struct cpp_options): New member int_precision.
7101 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7103 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
7105 2002-05-04 David S. Miller <davem@redhat.com>
7107 * config/sparc/linux.h, config/sparc/linux64.h
7108 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
7110 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
7112 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
7114 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
7117 2002-05-05 Tim Josling <tej@melbpc.org.au>
7119 * treelang; New directory for new sample language treelang.
7121 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
7123 * Makefile.in (c-lex.o): Update.
7124 * c-lex.c: Include target.h.
7125 (cb_register_builtins): New.
7126 (init_c_lex): Set builtins callback.
7127 * c-lex.h (cpp_define, cpp_assert): New prototypes.
7128 * cppinit.c (init_builtins): Use callback, including for
7130 * cpplib.h (struct cpp_callbacks): New member.
7131 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
7132 (TARGET_INITIALIZER): Update.
7133 * target.h (struct gcc_target): New hook.
7134 * tree.c (default_register_cpp_builtins): New.
7135 * tree.h (default_register_cpp_builtins): New.
7137 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
7139 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
7141 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
7142 (cpp_post_options): Move sanity checks to...
7143 (sanity_checks): New.
7144 * cpplex.c (maybe_read_ucs): Fix prototype.
7145 (parse_string, cpp_parse_escape): Cast for %c format specifier.
7146 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
7149 2002-05-04 Bernd Schmidt <bernds@redhat.com>
7151 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
7152 builtins. Use V2DI patterns instead of TI for logical operations.
7153 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
7154 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
7155 (ix86_expand_builtins): Change the pattern used for movntdq.
7156 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
7157 sse2_nandv2di3): New patterns.
7158 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
7160 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
7161 (cvtdq2pd): Correct mode on operand 1.
7162 (sse2_umulsidi3): Describe without unspec.
7163 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
7165 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
7166 (ashlv2di3): Likewise, from sse2_ashlv2di3.
7167 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
7168 ashlv4si3, ashlv2di3): Use SImode for shift count.
7169 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
7170 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
7172 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
7174 (__m128i, __m128d): New macros.
7175 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
7176 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
7177 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
7178 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
7179 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
7180 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
7181 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
7182 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
7183 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
7184 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
7185 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
7186 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
7187 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
7188 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
7189 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
7190 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
7191 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
7192 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
7193 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
7194 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
7195 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
7196 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
7197 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
7198 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
7199 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
7200 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
7201 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
7202 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
7203 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
7204 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
7205 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
7206 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
7207 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
7208 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
7209 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
7210 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
7211 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
7213 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
7214 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
7216 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
7218 * dwarf2out.c: Fix formatting.
7219 * varasm.c: Likewise.
7221 2002-05-04 David Edelsohn <edelsohn@gnu.org>
7224 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
7225 clobber and use result as temporary value.
7227 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
7229 * expr.c (force_operand): Use expand_simple_* to handle more
7232 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
7234 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
7236 (lex_charconst): Update for change in prototype of
7237 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
7239 * cpphash.h (BITS_PER_CPPCHAR_T): New.
7240 * cppinit.c (cpp_create_reader): Initialize them for no
7241 change in semantics.
7242 (cpp_post_options): Add sanity checks.
7243 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
7244 and truncation issues. Calculate in type cppchar_t.
7245 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
7246 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
7247 run-time dependent precision correctly. Return whether the
7248 result is signed or not.
7249 * cpplib.c (dequote_string): Use cppchar_t; update.
7250 * cpplib.h (cppchar_signed_t): New.
7251 struct cpp_options): New precision members.
7252 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
7253 * cppexp.c (eval_token): Update.
7255 2002-05-03 David S. Miller <davem@redhat.com>
7257 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
7258 * config/sparc/sparc.c (sparc_rtx_costs): New function
7259 implementing RTX_COSTS and CONST_COSTS.
7260 * config/sparc/sparc.h (CONST_COSTS): Delete.
7261 (RTX_COSTS_CASES): Define.
7262 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
7265 * config/sparc/sparc.md (DFA schedulers): Split out...
7266 * config/sparc/cypress.md, config/sparc/hypersparc.md,
7267 config/sparc/sparclet.md, config/sparc/supersparc.md,
7268 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
7270 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
7271 checks on it, always defined for Sparc.
7273 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
7274 Tweak, and add more detailed comments.
7276 2002-05-03 Zack Weinberg <zack@codesourcery.com>
7278 * Re-apply patch accidentally reverted with
7279 DFA scheduler merge: remove all rules and variables to slurp
7280 source files out of libiberty and rebuild them with HOST_CC.
7281 ($(HOST_PREFIX_1)varray.o): New rule.
7282 (genattrtab rule): Word wrap.
7284 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
7286 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
7287 (CPP_SUBTARGET_SPEC): Define.
7288 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
7289 cpp_subtarget specs.
7290 (CPP_SPEC): Redefine to include %(cpp_subtarget).
7292 2002-05-03 David S. Miller <davem@redhat.com>
7294 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
7295 * target.h (struct gcc_target): Delete cycle_display member.
7297 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
7298 (rtx_needs_barrier): Delete reference to cycle_display unspec.
7299 (ia64_sched_reorder2): Mention need for cycle display handling
7300 once such notes exist.
7302 2002-05-03 Richard Henderson <rth@redhat.com>
7304 * real.c (etoasc): Strip most trailing zeros for clarity.
7305 * sched-vis.c: Include real.h.
7306 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
7307 * Makefile.in (sched-vis.o): Add real.h.
7309 2002-05-03 David S. Miller <davem@redhat.com>
7311 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
7314 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
7316 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
7317 when we get an out of range literal.
7318 (altivec_expand_ternop_builtin): Same.
7319 (altivec_expand_unop_builtin): Same.
7320 (altivec_expand_builtin): Same, for dss.
7321 (altivec_expand_builtin): Use trees instead of rtl when
7322 determining literal argument validity.
7324 2002-05-03 David S. Miller <davem@redhat.com>
7326 Delete cycle display scheduling hook.
7327 * config/ia64/ia64.c (ia64_cycle_display,
7328 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
7329 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
7330 and use emit_insn_before instead of ia64_emit_insn_before.
7331 * config/ia64/ia64.md (unspec usage): Delete cycle display.
7332 (cycle_display): Delete insn pattern.
7333 * config/sparc/sparc.md (unspec usage): Delete cycle display.
7334 (cycle_display): Delete insn pattern.
7335 * config/sparc/sparc.c (sparc_cycle_display,
7336 TARGET_SCHED_CYCLE_DISPLAY): Delete.
7337 * doc/md.texi (cycle_display): Don't mention.
7338 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
7340 2002-05-03 Richard Henderson <rth@redhat.com>
7342 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
7343 * recog.h: Declare them.
7345 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
7346 * config/sparc/sparc.md: Use store_data_bypass_p instead.
7347 * config/sparc/sparc-protos.h: Update.
7349 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
7351 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
7352 -D__arch64__. Add -D_LP64.
7353 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
7355 (CPP_ARCH64_SPEC): Likewise.
7356 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
7357 (NO_BUILTIN_SIZE_TYPE): Undef.
7359 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
7361 * genautomata.c (min_issue_delay_pass_states): Change return type
7363 (min_issue_delay_pass_states): Change the algorithm.
7364 (min_issue_delay): Set up min_insn_issue_delay for the state.
7365 (output_min_issue_delay_table): Interchange the nested loops and
7366 and initiate min_insn_issue_delay for states.
7368 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
7370 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
7373 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
7375 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
7378 2002-05-03 Richard Henderson <rth@redhat.com>
7381 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
7382 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
7383 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
7384 code before JUMP, not EARLIEST.
7386 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
7388 * c-format.c (check_format_info_main): Don't check for presence of
7389 parameter for * width until after operand number has been read,
7390 and only check for it if format parameters are available.
7393 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
7395 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
7396 (LINK_SPEC): Undef before defining.
7398 2002-05-03 Jakub Jelinek <jakub@redhat.com>
7400 PR preprocessor/6489
7401 * tradcpp.c (fixup_newlines): New.
7402 (main, finclude): Use it.
7404 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
7406 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
7407 * config/mips/mips.c (mips_unique_section): Strip encoding from
7410 2002-05-03 Jakub Jelinek <jakub@redhat.com>
7412 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
7415 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7417 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
7418 (Specific): Removed buildstats references.
7419 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
7420 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
7421 Accomodate Solaris versions beyond 8.
7422 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
7423 (Specific, *-*-solaris2.8): Removed, obsolete.
7425 2002-05-03 Jakub Jelinek <jakub@redhat.com>
7428 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
7429 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
7430 fill leaf_reg_remap with identity.
7431 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
7433 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
7435 * config/h8300/crti.asm: Remove trailing spaces.
7436 * config/h8300/h8300.c: Likewise.
7437 * config/h8300/lib1funcs.asm: Likewise.
7439 2002-05-02 Jason Merrill <jason@redhat.com>
7441 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
7442 * c-decl.c (c_init_decl_processing): Use it.
7443 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
7444 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
7445 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
7447 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
7449 * regrename.c: Fix formatting.
7452 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
7454 * i386.md (attribute memory): Handle compares properly.
7456 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
7458 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
7461 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
7463 * function.c: Fix formatting.
7465 2002-05-02 Jan Hubicka <jh@suse.cz>
7467 * haifa-sched.c (schedule_insn): Print table of instructions and
7469 (sched_block): Do not print ready list at verbosity level 1.
7470 * sched-vis.c (print_insn): Make global.
7471 * sched-ebb.c (ebb_print_insn): Rename from...
7472 (print_insn): ... this one.
7473 * sched-int.h (print_insn): Declare
7475 2002-05-02 Richard Henderson <rth@redhat.com>
7477 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
7478 emitted by cycle_display.
7480 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
7482 * doc/install.texi (*-*-freebsd*): Update to latest status.
7484 2002-05-02 Jakub Jelinek <jakub@redhat.com>
7487 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
7488 * config/float-sparc.h: Assume 128-bit long double if
7489 __LONG_DOUBLE_128__ is defined.
7491 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
7493 * genattrtab.c (write_function_unit_info): Add a dummy element
7494 when num_units == 0.
7496 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7498 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
7499 TYPE_MODE (double_type_node) instead of DFmode.
7501 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
7503 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
7505 * toplev.c (rest_of_compilation): Revert Richard's patch.
7507 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
7509 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
7511 2002-05-02 Catherine Moore <clm@redhat.com>
7513 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
7515 2002-05-02 Kazu Hirata <kazu@hxi.com>
7517 * combine.c: Fix comment typos.
7519 * genautomata.c: Likewise.
7523 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
7525 * doc/install.texi: State GNAT version requirements.
7527 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
7529 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
7530 of the frame pointer or arg pointer register which strict register
7531 checking is not enabled.
7533 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
7535 * gcc.dg/altivec-8.c: New.
7537 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
7538 PRE_INC and PRE_DEC for altivec modes.
7540 2002-05-01 Bruce Korb <bkorb@gnu.org>
7542 * fixinc/check.tpl(set-writable): make sure the function exists first
7543 * fixinc/inclhack.def(alpha_assert): fix test_text
7544 * fixinc/tests/base/assert.h: add in missing result
7546 2002-05-01 Jeff Law <law@redhat.com>
7548 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
7551 2002-05-01 Joel Brobecker <brobecker@gnat.com>
7553 * dbxout.c (dbxout_type): Emit size information for range types,
7554 as well, but only when using GDB extensions.
7556 2002-05-01 Richard Henderson <rth@redhat.com>
7558 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
7559 target-independent gnu binutils date test.
7561 2002-05-01 Richard Henderson <rth@redhat.com>
7563 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
7564 info before expunging the block.
7566 2002-05-01 Jakub Jelinek <jakub@redhat.com>
7568 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
7569 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
7570 -M -or -MM is in effect.
7572 2002-05-01 Zack Weinberg <zack@codesourcery.com>
7574 * config.gcc: Correct test of --enable-obsolete. Obsolete all
7575 A29k configurations.
7576 * doc/install.texi: Update to match.
7578 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7581 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
7582 for duplicates. Always loop over whole list.
7584 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7586 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
7588 2002-05-01 Joel Sherrill <joel@OARcorp.com>
7590 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
7593 2002-05-01 Joel Sherrill <joel@OARcorp.com>
7595 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
7597 2002-05-01 David Edelsohn <edelsohn@gnu.org>
7599 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
7600 (nabs_nopower): Same.
7601 (floatdisf2): New pattern.
7602 (absdi2): Convert to define_insn_and_split.
7607 (fix_trunctfdi2): Same.
7608 (fix_trunctfsi2): Same.
7610 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
7612 * doc/install.texi: Update Texinfo version requirement
7615 2002-05-01 Jakub Jelinek <jakub@redhat.com>
7617 PR target/6512, PR target/5628
7618 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
7619 when memory is not aligned.
7620 (movdf_insn_v9only_vis): Likewise.
7621 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
7622 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
7623 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
7625 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
7627 * gcc.dg/altivec-7.c: New.
7629 * config/rs6000/altivec.h: Cleanup.
7631 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
7633 * doc/invoke.texi (Option Summary): Add -mvrsave=.
7634 (RS/6000 and PowerPC Options): Document -mvrsave=.
7636 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
7637 (rs6000_altivec_vrsave_string): Same.
7638 (rs6000_override_options): Call rs6000_parse_vrsave_option.
7639 (rs6000_parse_vrsave_option): New.
7640 (rs6000_stack_info): Only generate vrsave instructions when
7641 TARGET_ALTIVEC_VRSAVE.
7643 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
7644 (rs6000_altivec_vrsave_string): Define extern.
7645 (rs6000_altivec_vrsave): Same.
7646 (TARGET_ALTIVEC_VRSAVE): New.
7648 2002-04-30 Richard Henderson <rth@redhat.com>
7651 * toplev.c (rest_of_compilation): Don't run cross-jump before
7654 2002-04-30 Tom Rix <trix@redhat.com>
7656 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
7657 check which_alternative.
7659 2002-04-30 Kazu Hirata <kazu@hxi.com>
7661 * cpplex.c: Fix comment formatting.
7662 * function.c: Likewise.
7663 * integrate.c: Likewise.
7664 * regrename.c: Likewise.
7665 * sibcall.c: Likewise.
7666 * simplify-rtx.c: Likewise.
7667 * tree-inline.c: Likewise.
7669 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
7671 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
7672 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
7673 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
7674 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
7675 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
7676 * pa/x-ada: New file. Define ADA_CFLAGS.
7678 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
7680 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
7681 from MMIX_LAST_REGISTER_FILE_REGNUM.
7682 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
7683 (struct machine_function): New member highest_saved_stack_register
7684 previously static variable in mmix.c.
7685 (MACHINE_DEPENDENT_REORG): Define.
7686 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
7687 (MMIX_OUTPUT_REGNO): New.
7688 (mmix_target_asm_function_prologue): Move calculation of last used
7689 saved-stack-register into...
7690 (mmix_machine_dependent_reorg): New function. Update to also handle
7692 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
7693 register names, simplify somewhat by new variable regno.
7694 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
7696 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
7697 emitting register names.
7698 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
7699 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
7701 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
7704 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
7706 2002-04-30 Richard Henderson <rth@redhat.com>
7708 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
7709 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
7710 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
7711 emit_tfmode_cvt): New.
7712 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
7713 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
7714 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
7715 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
7716 * config/sparc/sparc-protos.h: Update.
7718 2002-04-30 Janis Johnson <janis187@us.ibm.com>
7720 * install.texi (Final install): Add to the list of info to include
7721 in a report of a successful bootstrap, and add link to 3.1 list.
7723 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
7725 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
7726 (mode): Add vector modes
7727 (i387): Kill attribute.
7728 (unit): New attribute.
7729 (length_immediate): Grok new types.
7730 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
7731 (modrm): Use "unit".
7732 (memory): Handle MMX/SSE properly.
7733 (scheduling descriptions): Kill uses of fop1.
7734 (sse, mmx, fp patterns): Set type and mode properly.
7736 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
7738 * pa.c (override_options): Default to PA8000 scheduling.
7739 * doc/invoke.texi (HP-PA options): Mention newly added 7300
7740 scheduling parameter.
7742 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
7743 handling of double precision multiplies.
7745 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
7746 fpdiv and fpsqrt instructions.
7747 (7200 & 7300 scheduling): Fix typo in handling of
7748 store-load and store-store penalties.
7750 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7752 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
7753 mips. Add two missing commas.
7755 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
7757 * doc/contrib.texi (Contributors): Update Paolo Carlini's
7758 and Benjamin Kosnik's entries.
7760 2002-04-29 David S. Miller <davem@redhat.com>
7762 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
7763 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
7764 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
7765 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
7767 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7769 * combine.c (find_split_point): Use gen_int_mode.
7771 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
7773 Merging code from dfa-branch:
7775 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
7777 * genautomata.c (output_reserv_sets): Fix typo.
7779 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
7781 * genautomata.c (output_reserv_sets): Remove
7782 next_cycle_output_flag.
7784 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
7786 * sched-rgn.c (init_ready_list): Make the DFA code handle
7787 USE/CLOBBER insns in the same way as the traditional
7789 (new_ready): Similarly..
7791 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
7793 * haifa-sched.c (schedule_block): Change the DFA state only after
7796 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
7798 * pa.c (hppa_use_dfa_pipeline_interface): New function.
7799 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
7800 (override_options): Add PA7300 scheduling support.
7801 (pa_adjust_cost): Update various comments. Properly
7802 handle anti and output dependencies when using the
7804 (pa_issue_rate): Add PA7300 scheduling support.
7805 (pa_can_combine_p): Call extract_insn before calling
7806 constrain_operands (taken from mainline tree).
7807 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
7808 * pa.md (cpu attr): Add 7300. Rewrite pipeline
7809 descriptions using DFA descriptions. Add PA7300
7812 2002-03-30 David S. Miller <davem@redhat.com>
7814 Add UltraSPARC-III DFA scheduling support.
7815 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
7816 Update FP conditional move on register insn patterns to use it, as
7818 (define_attr cpu): Add ultrasparc3.
7819 (define_attr us3load_type): New, update integer load patterns to
7820 set it, as appropriate.
7821 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
7822 (rest): Add UltraSPARC3 scheduling description.
7823 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
7824 (PROCESSOR_ULTRASPARC3): New.
7825 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
7826 ({ASM,CPP}_CPU_SPEC): Likewise.
7827 (REGISTER_MOVE_COST): Likewise.
7828 (RTX_COSTS): Likewise.
7829 * config/sparc/sparc.c (sparc_override_options,
7830 sparc_initialize_trampoline, sparc64_initialize_trampoline,
7831 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
7832 sparc_issue_rate): Likewise.
7833 * config/sparc/sol2.h: Likewise.
7834 * config/sparc/sol2-sld-64.h: Likewise.
7835 * config/sparc/linux64.h: Likewise.
7837 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
7839 * doc/md.texi: Add comments about usage the latency time for the
7840 different dependencies and about case when two or more conditions
7841 in different define_insn_reservations returns TRUE for an insn.
7843 * doc/md.texi: Add reference for automaton based pipeline
7846 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
7848 * doc/passes.texi: Add missed information about genattrtab.
7850 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
7852 * genautomata.c (output_automata_list_transition_code): Check
7853 automata_list on NULL.
7855 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
7857 * genautomata.c (output_insn_code_cases,
7858 output_automata_list_min_issue_delay_code,
7859 output_automata_list_transition_code,
7860 output_automata_list_state_alts_code): Comment the functions.
7862 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
7864 * genautomata.c (automata_list_el_t): New typedef.
7865 (get_free_automata_list_el,free_automata_list_el,
7866 free_automata_list, automata_list_hash, automata_list_eq_p,
7867 initiate_automata_lists, automata_list_start, automata_list_add,
7868 automata_list_finish, finish_automata_lists,
7869 output_insn_code_cases, output_automata_list_min_issue_delay_code,
7870 output_automata_list_transition_code,
7871 output_automata_list_state_alts_code, add_automaton_state,
7872 form_important_insn_automata_lists): New functions and prototypes.
7873 (insn_reserv_decl): Add members important_automata_list and
7875 (ainsn): Add members important_p.
7876 (automata_list_el): New structure.
7877 (first_free_automata_list_el, current_automata_list,
7878 automata_list_table): New global variables.
7879 (create_ainsns): Initiate member important_p.
7880 (output_internal_min_issue_delay_func): Generate the switch and
7881 call output_insn_code_cases.
7882 (output_internal_trans_func, output_internal_state_alts_func):
7884 (generate): Call initiate_automata_lists.
7885 (automaton_states): New global variable.
7886 (expand_automata): Call form_important_insn_automata_lists.
7887 (write_automata): Call finish_automata_lists.
7889 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
7891 * genautomata.c (add_excls, add_presence_absence): Check that
7892 cpu units in the sets belong the same automaton.
7894 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
7895 about that cpu units in the sets belong the same automaton.
7897 * doc/md.texi: Ditto.
7899 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
7900 Nitin Gupta <niting@noida.hcltech.com>
7902 * config/sh/sh.c (sh_use_dfa_interface): New function.
7904 (sh_issue_rate): New Function.
7905 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
7906 TARGET_SCHED_ISSUE_RATE: define.
7908 * config/sh/sh.md: Add DFA based pipeline description for SH4.
7910 (define_attr insn_class): New attribute used for DFA
7912 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
7913 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
7914 cmpeqdi_t): Likewise.
7916 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
7917 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
7919 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
7921 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
7923 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
7926 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
7928 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
7929 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
7931 (output_dfa_start_func): Initiate new variable insn_codes_length,
7932 (write_automata): Output definition of the new variable.
7934 2001-10-02 David S. Miller <davem@redhat.com>
7936 * haifa-sched.c (advance_one_cycle): New function.
7937 (schedule_block): Use it.
7938 (queue_to_ready): Use it, and also make sure to advance the DFA
7939 state on all stall cycles, not just those where insn_queue links
7942 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
7944 * haifa-sched.c (max_issue): Remove last_p argument. Only return
7945 non-zero if the highest-priority instruction could be scheduled.
7946 (choose_ready): Remove last argument from max_issue call.
7948 2001-09-28 David S. Miller <davem@redhat.com>
7950 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
7951 ultrasparc and 3 for other multi-issue sparcs.
7953 2001-09-27 David S. Miller <davem@redhat.com>
7955 * config/sparc/sparc.md (cycle_display): New pattern.
7956 * config/sparc/sparc.c (sparc_cycle_display): New.
7957 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
7959 2001-09-25 David S. Miller <davem@redhat.com>
7961 Convert all of Sparc scheduling to DFA
7962 * config/sparc/sparc.md: Kill all define_function_unit
7963 directives and replace with DFA equivalent.
7964 * config/sparc/sparc.c (ultrasparc_adjust_cost,
7965 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
7966 ultra_fpmode_conflict_exists, ultra_find_type,
7967 ultra_build_types_avail, ultra_flush_pipeline,
7968 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
7969 ultrasparc_variable_issue, ultrasparc_sched_init,
7970 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
7971 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
7972 ultra_cur_hist, ultra_cycles_elapsed): Kill.
7973 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
7974 ultrasparc_store_bypass_p): New.
7975 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
7978 2001-09-24 David S. Miller <davem@redhat.com>
7980 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
7981 ready->vec[foo] not ready[foo].
7983 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
7985 * doc/md.texi: Correct examples for define_insn_reservations
7988 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
7990 * genautomata.c (create_automata): Print message about creation of
7992 (generate): Remove printing meease about creation of
7995 2001-09-05 David S. Miller <davem@redhat.com>
7997 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
7998 * config/sparc/linux64.h: Likewise.
8000 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
8002 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
8003 schedule_block, sched_init, sched_finish): Add missed calls of
8004 use_dfa_pipeline_interface.
8006 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
8009 * sched-vis.c (get_visual_tbl_length): Ditto.
8011 2001-08-27 Richard Henderson <rth@redhat.com>
8013 * genattr.c (main): Emit state_t even when not doing scheduling.
8015 2001-08-27 Richard Henderson <rth@redhat.com>
8017 * genautomata.c (expand_automata): Always create a description.
8019 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
8021 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
8022 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
8023 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
8026 * genattr.c (main): New variable num_insn_reservations. Increase
8027 it if there is DEFINE_INSN_RESERVATION. Output automaton based
8028 pipeline hazard recognizer interface.
8030 * genattrtab.h: New file.
8032 * genattrtab.c: Include genattrtab.h.
8033 (attr_printf, check_attr_test, make_internal_attr,
8034 make_numeric_value): Move protypes into genattrtab.h. Define them
8036 (num_dfa_decls): New global variable.
8037 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
8038 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
8039 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
8040 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
8042 * genautomata.c: New file.
8044 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
8046 * sched-int.h: (curr_state): Add the external definition for
8047 automaton pipeline interface.
8048 (haifa_insn_data): Add comments for members blockage and units.
8050 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
8051 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
8052 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
8053 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
8054 TARGET_SCHED_DFA_POST_CYCLE_INSN,
8055 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
8056 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
8058 (TARGET_SCHED): Use the new macros.
8060 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
8061 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
8062 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
8063 dfa_bubble): New members in gcc_target.sched.
8065 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
8066 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
8067 (insn_queue): Redefine it as pointer to array.
8068 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
8070 (max_insn_queue_index_macro_value): New variable.
8071 (curr_state, dfa_state_size, ready_try): New varaibles for
8072 automaton interface.
8073 (ready_element, ready_remove, max_issue): New function prototypes
8074 for automaton interface.
8075 (choose_ready): New function prototype.
8076 (insn_unit, blockage_range): Add comments.
8077 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
8078 FUNCTION_UNITS_SIZE == 0.
8079 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
8080 actual_hazard, potential_hazard): Add comments.
8081 (insn_cost): Use cost -1 as undefined value. Remove
8082 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
8084 (ready_element, ready_remove): New functions for automaton
8086 (schedule_insn): Add new code for automaton pipeline interface.
8087 (queue_to_ready): Add new code for automaton pipeline interface.
8088 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
8089 (debug_ready_list): Print newline when the queue is empty.
8090 (max_issue): New function for automaton pipeline interface.
8091 (choose_ready): New function.
8092 (schedule_block): Add new code for automaton pipeline interface.
8093 Print ready list before scheduling each insn.
8094 (sched_init): Add new code for automaton pipeline interface.
8095 Initiate insn cost by -1.
8096 (sched_finish): Free the current automaton state and finalize
8097 automaton pipeline interface.
8099 * sched-rgn.c: Include target.h.
8100 (init_ready_list, new_ready, debug_dependencies): Add new code for
8101 automaton pipeline interface.
8103 * sched-vis.c: Include target.h.
8104 (get_visual_tbl_length): Add code for automaton interface.
8105 (target_units, print_block_visualization): Add comments.
8107 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
8108 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
8109 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
8110 (getruntime.o, genautomata.o): New entries.
8111 (genattrtab.o): Add new dependency file genattrtab.h.
8112 (genattrtab): Add new dependencies. Link it with `libm.a'.
8113 (getruntime.o, hashtab.o): New entries for canadian cross.
8115 * doc/md.texi: Description of automaton based model.
8117 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
8119 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
8120 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
8121 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
8122 TARGET_SCHED_DFA_POST_CYCLE_INSN,
8123 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
8124 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
8125 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
8127 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
8128 MAX_DFA_ISSUE_RATE): New macro descriptions.
8130 * doc/contrib.texi: Add dfa based scheduler contribution.
8132 * doc/gcc.texi: Add more information about genattrtab.
8134 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8136 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
8137 adjust_address_nv call.
8139 2002-04-29 Janis Johnson <janis187@us.ibm.com>
8141 * doc/install.texi (Testing): Provide additional information, and
8142 a stronger encouragement, for running the testsuites.
8144 2002-04-29 DJ Delorie <dj@redhat.com>
8146 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
8147 given in upper case.
8149 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8151 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
8152 Solaris 2 <widec.h> if missing.
8153 * fixinc/fixincl.x: Regenerate.
8154 * fixinc/tests/base/widec.h: New file.
8156 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
8158 * toplev.c (f_options): Add "profile" switch so that
8159 -fno-profile can be used to disable -p.
8161 2002-04-29 Bernd Schmidt <bernds@redhat.com>
8163 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
8165 * tree.c (build_common_tree_nodes_2): Likewise.
8166 * tree.h (enum tree_index): Likewise.
8167 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
8169 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
8171 (init_mmx_sse_builtins): Initialize SSE2 builtins.
8172 (ix86_expand_builtin): Add support for SSE2 builtins.
8173 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
8174 (VALID_SSE_REG_MODE): Use it.
8175 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
8176 (enum ix86_builtins): Add SSE2 builtins.
8177 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
8178 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
8179 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
8180 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
8181 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
8182 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
8183 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
8184 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
8185 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
8186 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
8187 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
8188 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
8189 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
8190 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
8191 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
8192 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
8193 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
8194 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
8195 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
8196 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
8197 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
8198 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
8199 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
8200 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
8201 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
8202 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
8203 lfence_insn): New patterns.
8204 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
8205 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
8207 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
8209 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
8211 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8213 * doc/contrib.texi (Contributors): Add Paolo Carlini and
8215 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
8216 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
8217 and CPU instead of cpu.
8219 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
8221 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
8223 (lang_independent_options): Add -fif-conversion, -fif-conversion2
8224 (rest_of_compilation): Do if conversion only when asked for.
8225 (parse_options_and_default_flags): Set new variables to 1 for -O1
8226 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
8228 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
8230 * i386.c (dbx64_register_map): Fix typo.
8232 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
8234 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
8235 real_one_half, real_bb_freq_max): New static variables.
8236 (debug_profile_bbauxs): Kill.
8237 (process_note_predictions): Kill unused variable.
8238 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
8240 (propagate_freq): Use REAL_ARITHMETICS.
8241 (estimate_bb_frequencies): Likevise; init new static variables.
8242 * Makefile.in (predict.o): Add dependency on real.h
8244 2002-04-28 David S. Miller <davem@redhat.com>
8247 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
8248 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
8249 several {reads,writes} instead.
8250 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
8253 2002-04-27 David S. Miller <davem@redhat.com>
8256 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
8259 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
8260 including signal.h and sys/ucontext.h, not needed.
8262 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
8264 * varasm.c (output_constant_def): Correct test for not calling
8265 ENCODE_SECTION_INFO for INTEGER_CST.
8267 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
8269 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
8270 keep most cases as function eval_token.
8271 (eval_token): New function.
8272 (_cpp_parse_expr): Read token here for improved diagnostics.
8273 Don't use op_as_text. Detect bad ':' here.
8274 (reduce): Don't detect bad ':' here.
8275 (op_as_text): Remove.
8276 * cpphash.h (_cpp_test_assertion): Change prototype.
8277 * cpplib.c (_cpp_test_assertion): Change prototype.
8279 2002-04-28 Richard Henderson <rth@redhat.com>
8282 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
8283 (ggc_mark_rtx_children): New.
8285 2002-04-28 Jakub Jelinek <jakub@redhat.com>
8288 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
8289 after call peepholes for UltraSPARC.
8290 (call + jump 64-bit peepholes): Remove.
8292 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8295 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
8296 result as temporary value.
8298 2002-04-28 Jakub Jelinek <jakub@redhat.com>
8301 * toplev.c (rest_of_compilation): Only run regrename and copy
8302 propagation if optimizing.
8304 2002-04-28 Jakub Jelinek <jakub@redhat.com>
8306 PR optimization/6475
8307 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
8308 register of REGNO_DECL (i).
8309 * Makefile.in (reload1.o): Add $(TREE_H).
8311 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
8313 * cppexp.c (lex): Update to use state.skip_eval.
8314 (struct op): Remove prio and flags members.
8315 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
8316 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
8317 (LEFT_ASSOC): New macro.
8318 (optab): New table of operator priorities and flags.
8320 (_cpp_parse_expr): Clean up logic. Return bool. Use a
8321 malloc-ed parser stack.
8322 (reduce): New; reduce the operator stack.
8323 (_cpp_expand_op_stack): Expand the operator stack as necessary.
8324 * cpphash.h (struct op): Predeclare.
8325 (struct cpp_reader): New members op_stack, op_limit.
8326 (struct lexer_state): New member skip_eval.
8327 (_cpp_parse_expr): Update.
8328 (_cpp_expand_op_stack): New.
8329 * cpplib.c (do_if): Update.
8330 * cppinit.c (cpp_create_reader): Create op stack.
8331 (cpp_destroy): And destroy it.
8332 * cpplib.h (CPP_LAST_CPP_OP): Correct.
8333 (TTYPE_TABLE): Correct.
8335 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8338 * c-decl.c (duplicate_decls): Call merge_weak.
8339 * c-pragma.c (apply_pragma_weak): Warn about misuse.
8340 * output.h (merge_weak): Prototype merge_weak.
8341 * varasm.c (merge_weak): New function.
8342 (declare_weak): Make sure we don't give an error on VAR_DECLs.
8343 Mark RTL with SYMBOL_REF_WEAK.
8345 2002-04-27 Kurt Garloff <garloff@suse.de>
8347 * tree-inline.c (inlinable_function_p): Improve heuristics
8348 by using a smoother function to cut down allowable inlinable size.
8349 * param.def: Add parameters max-inline-insns-single,
8350 max-inline-slope, min-inline-insns that determine the exact
8351 shape of the above function.
8352 * param.h: Likewise.
8354 2002-04-26 Richard Henderson <rth@redhat.com>
8356 * c-parse.in (malloced_yyss, malloced_yyvs): New.
8357 (yyoverflow): Re-add. Set them.
8358 (free_parser_stacks): New.
8359 * c-common.h: Declare it.
8360 * c-lex.c (c_common_parse_file): Call it.
8362 2002-04-26 Richard Henderson <rth@redhat.com>
8364 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
8365 for fallthru search.
8367 2002-04-26 Eric Christopher <echristo@redhat.com>
8369 PR optimization/3700
8370 * config/mips/mips.c (mips_issue_rate): Define. New function.
8371 (TARGET_SCHED_ISSUE_RATE): Use.
8373 2002-04-25 David S. Miller <davem@redhat.com>
8376 * reorg.c (optimize_skip): Do not allow exception causing
8377 instructions to be considered for delay slots.
8378 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
8379 (relax_delay_slots): Do not try to consider exception causing
8380 instructions as redundant.
8382 2002-04-26 Richard Henderson <rth@redhat.com>
8385 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
8387 2002-04-26 Mark Mitchell <mark@codesourcery.com>
8390 * config/i386/i386.md (untyped_call): Return the value in a float
8391 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
8394 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
8396 * tree.c (tree_int_cst_lt): Compare constants whose types differ
8397 in unsigned-ness correctly.
8399 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
8401 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
8402 portable runtime model.
8404 2002-04-26 Richard Henderson <rth@redhat.com>
8406 * c-parse.in (yyoverflow): Revert.
8408 2002-04-26 David Edelsohn <edelsohn@gnu.org>
8409 Richard Henderson <rth@redhat.com>
8411 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
8412 result as temporary value.
8414 2002-04-26 Richard Henderson <rth@redhat.com>
8417 * c-common.c (fix_string_type): Split out of ...
8418 (combine_strings): ... here. Take a varray, not a tree list.
8419 (c_expand_builtin_printf): Use fix_string_type.
8420 * c-common.h: Update decls.
8421 * c-parse.in (string): Remove. Update all uses to use STRING
8422 instead, and not call combine_strings.
8425 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
8426 (build_asm_stmt): Likewise.
8427 * objc/objc-act.c (my_build_string): Use fix_string_type.
8428 (build_objc_string_object): Build varray for combine_strings.
8430 2002-04-26 Bo Thorsen <bo@suse.co.uk>
8432 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
8435 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
8437 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
8438 (HAVE_NO_R_OPERAND): Remove.
8439 (HAVE_VALUE): Remove.
8440 (op_to_prio): Update.
8441 (UNARY): Don't alter flags.
8442 (_cpp_parse_expr): want_value used to indicate whether
8443 a number or unary operator is expected next. Distinguish
8444 unary and binary +/-.
8445 (op_as_text): Update for unary operators.
8447 2002-04-25 Richard Henderson <rth@redhat.com>
8450 * c-parse.in (yyoverflow): New.
8452 2002-04-25 Richard Henderson <rth@redhat.com>
8455 * c-common.c (shorten_compare): Simplfy conditions leading to
8456 the generation of a warning.
8458 2002-04-25 Richard Henderson <rth@redhat.com>
8461 * expmed.c (extract_bit_field): Fall through to generic code rather
8462 than aborting on subreg special case.
8464 2002-04-25 David S. Miller <davem@redhat.com>
8466 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
8467 for DECL being NULL.
8469 2002-04-25 Steve Christiansen <smc@us.ibm.com>
8471 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
8473 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
8475 * c-decl.c (grokdeclarator): Remove outdated ??? note
8476 on invalid declaration of flexible array members.
8478 2002-04-25 Richard Henderson <rth@redhat.com>
8480 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
8482 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8484 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
8485 needed by the compiler, even if they are used as global regs.
8487 2002-04-25 Matt Hiller <hiller@redhat.com>
8489 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
8491 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
8492 of the corresponding functions.
8493 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
8496 2002-04-25 Matt Hiller <hiller@redhat.com>
8498 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
8500 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
8501 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
8502 registers, adjust comment accordingly.
8503 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
8504 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
8505 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
8506 for coprocessor registers.
8507 (ADDITIONAL_REGISTER_NAMES): Include
8508 ALL_COP_ADDITIONAL_REGISTER_NAMES.
8510 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
8511 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
8512 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
8513 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
8514 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
8516 (mips_char_to_class): Adjust comment to include coprocessor
8519 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
8521 (mips_reg_names, mips_regno_to_class): Include coprocessor
8523 (mips_sw_reg_names): Ditto, make non-static.
8524 (mips_move_1word): Handle moves to and from coprocessor registers.
8525 (mips_move_2words): Handle moves to and from coprocessor
8527 (mips_class_max_nregs, mips_register_move_cost): Handle
8528 coprocessor register classes.
8529 (override_options): Initialize mips_char_to_class and
8530 mips_hard_regno_mode_ok properly for coprocessor registers.
8532 * config/mips/mips.md (movdi_internal, movdi_internal2,
8533 movsi_internal1, movsi_internal2): Add constraint-sets for
8534 coprocessor registers.
8535 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
8536 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
8538 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
8539 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
8541 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
8542 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
8544 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
8545 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
8548 * doc/tm.texi: Document feature.
8550 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
8552 * integrate.c (function_attribute_inlinable_p): Simplify.
8553 Check the table pointer is not NULL.
8555 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
8557 * doc/c-tree.texi: Fix typo in introduction.
8559 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
8561 * c-common.h (c_common_parse_file): Update.
8562 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
8563 * c-lex.c (YYDEBUG): Get from c-lex.h.
8564 (c_common_parse_file): Update.
8565 * c-lex.h (YYDEBUG, yydebug): New.
8566 * c-parse.in (YYDEBUG): Get from c-lex.h.
8567 (c_set_yydebug): Remove.
8568 * c-tree.h (c_set_yydebug): Remove.
8569 * langhooks-def.h (lhd_do_nothing_i): New.
8570 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
8571 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
8572 * langhooks.c (lhd_do_nothing_i): New.
8573 (lhd_set_yydebug): Remove.
8574 * langhooks.h (struct lang_hooks): Update.
8575 * toplev.c (set_yydebug): New.
8576 (compile_file): Update call to parse_file hook.
8577 (decode_d_option): Update.
8579 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
8581 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
8583 * loop.c (load_mems): Don't change the interface of called functions.
8585 * calls.c (expand_call): Take current_function_pretend_args_size
8586 into account when setting argblock for sibcalls.
8588 2002-04-24 Matt Hiller <hiller@redhat.com>
8590 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
8593 * cpplex.c (skip_line_comment): Process comment one multibyte
8594 character at a time rather than one char at a time, if
8596 (parse_string): Process string one multibyte character at a time
8597 rather than one char at a time, if appropriate.
8598 * c-lex.c (lex_string): Lex and copy multibyte strings
8600 * cpplib.h (cppchar_t): Change to unsigned.
8602 2002-04-24 Richard Henderson <rth@redhat.com>
8605 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
8608 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
8610 * sh.c (sh_va_arg): If argument was passed by reference,
8611 dereference the pointer.
8613 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
8615 * sh.md (divsi3_i4_media): Use match_operand for input values
8616 rather than hard registers.
8617 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
8618 unnecessarily through hard registers. Keep copies of pseudo
8619 registers outside of the libcall sequence.
8621 * sh.md (casesi_shift_media): Add modes.
8623 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
8626 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
8628 * attribs.c (c_common_attribute_table): Move table and handlers
8630 (format_attribute_table, lang_attribute_table,
8631 lang_attribute_common): Remove.
8632 (init_attributes): Replace NULL pointers with pointers to the
8634 (handle_packed_attribute, handle_nocommon_attribute,
8635 handle_common_attribute, handle_noreturn_attribute,
8636 handle_noinline_attribute, handle_always_inline_attribute,
8637 handle_used_attribute, handle_unused_attribute,
8638 handle_const_attribute, handle_transparent_union_attribute,
8639 handle_constructor_attribute, handle_destructor_attribute,
8640 handle_mode_attribute, handle_section_attribute,
8641 handle_aligned_attribute, handle_weak_attribute,
8642 handle_alias_attribute, handle_visibility_attribute,
8643 handle_no_instrument_function_attribute, handle_malloc_attribute,
8644 handle_no_limit_stack_attribute, handle_pure_attribute,
8645 handle_deprecated_attribute, handle_vector_size_attribute,
8646 vector_size_helper): Move to c-common.c.
8647 * c-common.c (c_common_attribute_table,
8648 handle_packed_attribute, handle_nocommon_attribute,
8649 handle_common_attribute, handle_noreturn_attribute,
8650 handle_noinline_attribute, handle_always_inline_attribute,
8651 handle_used_attribute, handle_unused_attribute,
8652 handle_const_attribute, handle_transparent_union_attribute,
8653 handle_constructor_attribute, handle_destructor_attribute,
8654 handle_mode_attribute, handle_section_attribute,
8655 handle_aligned_attribute, handle_weak_attribute,
8656 handle_alias_attribute, handle_visibility_attribute,
8657 handle_no_instrument_function_attribute, handle_malloc_attribute,
8658 handle_no_limit_stack_attribute, handle_pure_attribute,
8659 handle_deprecated_attribute, handle_vector_size_attribute,
8660 vector_size_helper): Move from attribs.c.
8661 * c-common.h (c_common_attribute_table,
8662 c_common_format_attribute_table): New.
8663 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
8664 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
8665 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
8666 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
8667 (LANG_HOOKS_INITIALIZER): Update.
8668 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
8669 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
8670 * target.h: Update comment.
8671 * tree.c (default_target_attribute_table): Remove.
8672 * tree.h (default_target_attribute_table, format_attribute_table,
8673 lang_attribute_table, lang_attribute_common): Remove.
8675 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
8676 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
8678 2002-04-24 Jason Merrill <jason@redhat.com>
8680 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
8681 * dwarf2out.c (dwarf_attr_name): Support it.
8682 (gen_array_type_die): Emit it.
8683 (lookup_type_die): No special handling for VECTOR_TYPE.
8684 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
8686 2002-04-24 Richard Henderson <rth@redhat.com>
8688 * config/mips/mips.md (movdi_usd): Renumber.
8690 2002-04-24 David S. Miller <davem@redhat.com>
8693 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
8694 32-bit Sparc and current_function_returns_struct is true.
8696 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
8698 * loop.c (canonicalize_condition): Use gen_int_mode.
8700 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
8702 * config/rs6000/altivec.h: Cleanup file. Add non individual
8724 (vec_vcmpequb): New.
8725 (vec_vcmpequh): New.
8726 (vec_vcmpequw): New.
8727 (vec_vcmpeqfp): New.
8728 (vec_vcmpgefp): New.
8729 (vec_vcmpgtub): New.
8730 (vec_vcmpgtsb): New.
8731 (vec_vcmpgtuh): New.
8732 (vec_vcmpgtsh): New.
8733 (vec_vcmpgtuw): New.
8734 (vec_vcmpgtsw): New.
8735 (vec_vcmpgtfp): New.
8736 (vec_vcmpgefp): New.
8741 (vec_vexptefp): New.
8746 (vec_lde): Add vector float variant.
8751 (vec_vmhaddshs): New.
8773 (vec_vmladduhm): New.
8774 (vec_vmhraddshs): New.
8776 (vec_vmsummbm): New.
8777 (vec_vmsumuhm): New.
8778 (vec_vmsumshm): New.
8779 (vec_vmsumuhs): New.
8780 (vec_vmsumshs): New.
8789 (vec_vnmsubfp): New.
8807 (vec_vrsqrtefp): New.
8818 (vec_vspltisb): New.
8819 (vec_vspltish): New.
8820 (vec_vspltisw): New.
8845 (vec_vsum4ubs): New.
8846 (vec_vsum4sbs): New.
8847 (vec_vsum4shs): New.
8848 (vec_vsum2sws): New.
8859 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
8862 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
8863 added literals from substracted literals.
8864 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
8865 (fold) [associate]: Preserve MINUS_EXPR if needed.
8867 2002-04-23 Zack Weinberg <zack@codesourcery.com>
8869 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
8872 2002-04-23 Tom Tromey <tromey@redhat.com>
8874 * gcc.c: Added --resource. For PR java/6314.
8876 2002-04-23 David O'Brien <obrien@FreeBSD.org>
8878 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
8879 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
8882 2002-04-23 David O'Brien <obrien@FreeBSD.org>
8884 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
8886 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
8888 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
8890 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
8891 (ix86_expand_clrstr): Fix typo.
8892 * loop.c (gen_load_of_final_value): New.
8893 (loop_givs_rescan, strength_reduce, check_dbra_loop):
8896 2002-04-23 Roger Sayle <roger@eyesopen.com>
8898 * builtins.c (builtin_memset_gen_str): New function.
8899 (expand_builtin_memset): Optimize the case of constant length, but
8902 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
8904 * config/rs6000/altivec.h (vec_step): Remove extraneous
8906 (vec_ctu): Cast return.
8908 2002-04-23 Alan Modra <amodra@bigpond.net.au>
8911 * function.h: (struct function): Add profile_label_no field.
8912 (current_function_profile_label_no): Define.
8913 * function.c: (profile_label_no): New static var.
8914 (expand_function_start): Increment it, and copy to
8915 current_function_profile_label_no.
8916 * output.h (profile_label_no): Delete.
8917 * final.c (profile_label_no): Delete.
8918 (profile_function): Use current_function_profile_label_no.
8919 (final_end_function): Don't increment profile_label_no here.
8920 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
8921 profile_label_no with current_function_profile_label_no.
8922 * config/pa/pa.c (current_function_number): Delete.
8923 (pa_output_function_prologue): Don't output profile label here.
8924 (hppa_profile_hook): Use label_no param rather than
8925 current_function_number.
8926 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
8927 * config/pa/pa.h: .. here.
8928 (FUNCTION_PROFILER): Output profile label here.
8930 2002-04-22 Eric Christopher <echristo@redhat.com>
8932 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
8933 patch of 2002-04-09 due to binutils issues.
8934 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
8936 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
8938 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
8939 constraint to 'o' for m=r and r=m alternatives.
8940 ("*movv8hi_internal1"): Same.
8941 ("*movv16qi_internal1"): Same.
8942 ("*movv4sf_internal1"): Same.
8944 2002-04-22 Janis Johnson <janis187@us.ibm.com>
8946 * rtl.h (RTX_FLAG): New macro.
8947 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
8948 * final.c (alter_subreg): Use macro to access rtx flag.
8949 * integrate.c (copy_rtx_and_substitute): Use new access macro.
8950 * print-rtl.c (print_rtx): Use new access macro.
8952 * cse.c (insert): Check rtx code before accessing flag.
8954 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
8955 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
8956 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
8957 convert_const_symbol_ref, make_canonical, make_alternative_compare,
8958 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
8959 simplify_test_exp, optimize_attrs, simplify_by_exploding,
8960 find_and_mark_used_attributes, unmark_used_attributes,
8961 add_values_to_cover, simplify_with_current_value,
8962 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
8963 copy_rtx_unchanging, main): Use new access macros.
8965 2002-04-22 Tom Rix <trix@redhat.com>
8967 * expmed.c (init_expmed): Generate shifted constant once.
8969 2002-04-22 Zack Weinberg <zack@codesourcery.com>
8971 * c-lex.c (lex_charconst): Call convert to get constant in
8972 proper type; don't just smash the type field.
8975 * config.gcc: Add list of obsolete configurations. Disallow
8976 building these without --enable-obsolete.
8977 * doc/install.texi: Document --enable-obsolete and obsoletion
8978 policy. Mention obsoletion of individual targets in
8981 2002-04-22 Richard Henderson <rth@redhat.com>
8983 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
8985 2002-04-22 Mark Mitchell <mark@codesourcery.com>
8988 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
8989 (walk_fixup_memory_subreg): Likewise.
8990 (fixup_var_refs_insn): Adjust accordingly.
8991 (fixup_var_refs_1): Likewise.
8993 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
8995 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
8996 LIBPATH_ARCH64_SPEC): Define.
8997 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
8998 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
8999 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
9000 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
9002 2002-04-22 Joel Sherrill <joel@OARcorp.com>
9004 * gthr-rtems.h: Correct prototypes to remove warnings.
9006 2002-04-22 Richard Henderson <rth@redhat.com>
9009 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
9011 * gcse.c (free_insn_expr_list_list): New.
9012 (clear_modify_mem_tables): Use it. Fix bit set usage.
9013 (canon_list_insert): Use EXPR_LISTs for expressions.
9014 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
9016 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
9018 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
9019 file change and include code to _cpp_pop_buffer.
9020 * cpphash.h (struct pending_option): Predeclare.
9021 (struct cpp_reader): New member next_include_file.
9022 (_cpp_pop_file_buffer): Update.
9023 (_cpp_push_next_buffer): Update, rename.
9024 * cppinit.c (cpp_destroy): Free include chain and pending here.
9025 (cpp_finish_options): Simplify.
9026 (_cpp_push_next_buffer): Rename and clean up.
9027 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
9029 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
9031 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
9033 * config/rs6000/altivec.h (vec_xor): Add variant for both args
9034 being vector signed int.
9036 (vec_xor): Add variant for both args being vector signed char.
9037 Remove redundant variant.
9040 2002-04-21 David S. Miller <davem@redhat.com>
9042 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
9043 compare mode in output RTL.
9045 2002-04-22 David Edelsohn <edelsohn@gnu.org>
9047 * config/rs6000/rs6000.c (rs6000_override_options): Correct
9048 style and formatting of previous patch.
9050 2002-04-22 Alan Modra <amodra@bigpond.net.au>
9052 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
9053 flag_pic for ABI_AIX.
9055 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
9057 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
9058 * cppfiles.c (read_include_file): Similarly.
9059 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
9060 uxstrdup ustrchr, ufputs): Similarly.
9061 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
9062 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
9063 cpp_ideq, parse_identifier, parse_number): Similarly.
9064 * cpplib.c (struct directive, dequote_string, D, run_directive,
9065 cpp_push_buffer): Similarly.
9066 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
9067 _cpp_create_definition, check_trad_stringification,
9068 cpp_macro_definition): Similarly.
9070 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
9072 * cppmacro.c (funlike_invocation_p): Don't step back
9075 2002-04-21 David Edelsohn <edelsohn@gnu.org>
9077 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
9080 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
9082 * doc/invoke.texi: Remove Chill references.
9083 * doc/gcc.texi: Update last modified date.
9085 2002-04-20 Kazu Hirata <kazu@hxi.com>
9087 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
9088 push and pop. Replace add.l with add.w.
9090 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
9092 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
9093 multiply instructions for H8/300H case.
9095 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
9097 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
9098 Bum three instructions from each routine.
9100 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
9102 * Makefile.in: Update.
9103 * decl.c (push_c_function_context, pop_c_function_context,
9104 mark_c_function_context): Rename for consistency.
9105 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
9106 * c-tree.h (push_c_function_context, pop_c_function_context,
9107 mark_c_function_context): Rename for consistency.
9108 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9109 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
9110 * function.c (init_lang_status, save_lang_status,
9111 restore_lang_status, mark_lang_status, free_lang_status):
9112 Move to langhooks.h.
9113 (push_function_context_to, pop_function_context_from,
9114 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
9116 * function.h (init_lang_status, save_lang_status,
9117 restore_lang_status, mark_lang_status, free_lang_status):
9118 Move to langhooks.h.
9119 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
9120 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
9121 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
9122 LANG_HOOKS_FUNCTION_INITIALIZER): New.
9123 (LANG_HOOKS_INITIALIZER): Update.
9124 (lhd_do_nothing_f): New.
9125 * langhooks.h (struct lang_hooks_for_functions): New.
9126 (struct lang_hooks): New hooks.
9127 * langhooks.c (lhd_do_nothing_f): New.
9129 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9130 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
9132 2002-04-19 David S. Miller <davem@redhat.com>
9134 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
9135 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
9137 2002-04-19 Jakub Jelinek <jakub@redhat.com>
9139 PR optimization/3756
9140 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
9141 x = ((int) y < 0) ? cst1 : cst2.
9143 2002-04-19 Jakub Jelinek <jakub@redhat.com>
9146 * function.c: Reapply patch for c/6358.
9147 (expand_function_end): Copy decl_rtl's mode, not
9148 current_function_return_rtx mode.
9150 2002-04-19 Joel Sherrill <joel@OARcorp.com>
9152 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
9155 2002-04-19 Tom Tromey <tromey@redhat.com>
9157 * doc/install.texi (Specific): Update status of Solaris 2.8.
9160 2002-04-19 Andreas Schwab <schwab@suse.de>
9162 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
9163 (PUT_REAL): Restore old definition.
9165 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
9166 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9168 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
9169 binutils 2.11.2 and higher generate smaller binaries than Sun's
9172 2002-04-19 Mark Mitchell <mark@codesourcery.com>
9175 * toplev.c (rest_of_compilation): Do not defer functions for which
9176 TREE_SYMBOL_REFERENCED has already been set.
9178 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
9180 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
9183 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
9185 * builtins.c: Include langhooks.h.
9186 (lang_type_promotes_to): Remove.
9187 (expand_builtin_va_arg): Use new hook.
9188 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
9189 (simple_type_promotes_to): Move to c-typeck.c.
9190 * c-common.h (simple_type_promotes_to): Remove.
9191 * c-decl.c (duplicate_decls, grokdeclarator): Update.
9192 * c-format.c: Include langhooks.h.
9193 (check_format_types): Update.
9194 * c-tree.h (c_type_promotes_to): New.
9195 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
9196 (type_lists_compatible_p): Update.
9197 * langhooks-def.h (lhd_type_promotes_to): New.
9198 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
9199 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
9200 * langhooks.c (lhd_type_promotes_to): New.
9201 * langhooks.h (struct lang_hooks_for_types): New hook.
9202 * tree.h (lang_type_promotes_to): Remove.
9204 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
9206 2002-04-18 Richard Henderson <rth@redhat.com>
9208 * function.c: Revert patch for c/6358.
9210 2002-04-18 Richard Henderson <rth@redhat.com>
9212 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
9213 blocks. Handle multiple references to the TRAP block. Handle
9214 non-adjacent THEN and OTHER blocks.
9216 2002-04-18 Richard Henderson <rth@redhat.com>
9218 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
9219 crash with no type for by-mode libcalls.
9221 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
9223 2002-04-18 Bob Wilson <bob.wilson@acm.org>
9225 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
9226 __xtensa_nonlocal_goto): Use a syscall instructions to flush
9227 the register windows.
9229 2002-04-18 Zack Weinberg <zack@codesourcery.com>
9231 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
9232 appropriate. Document need for extended precision even when
9233 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
9234 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
9235 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
9236 instead of relying on later syntax error when REAL_WIDTH > 5.
9237 * real.c: Define NE based only on whether or not we have a
9238 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
9239 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
9240 define GET_REAL and PUT_REAL as simple memcpy operations; no
9241 need to byteswap or round.
9242 Use #error instead of #ifdef-ing out the entire file, for
9243 prompt error detection.
9245 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
9247 2002-04-18 David S. Miller <davem@redhat.com>
9249 * config/sparc/sparc.h (BRANCH_COST): Define.
9251 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
9254 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
9256 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
9257 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
9258 propagate_block calls after relaxation loop using new variable
9259 stabilized_prop_flags.
9261 2002-04-18 Richard Henderson <rth@redhat.com>
9263 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
9264 (ia64_va_arg): Expect variable sized types by reference.
9265 * config/ia64/ia64-protos.h: Update.
9266 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
9267 ia64_function_arg_pass_by_reference.
9269 2002-04-18 Richard Henderson <rth@redhat.com>
9271 * ifcvt.c: Include except.h.
9272 (block_has_only_trap): Break out from find_cond_trap.
9273 (find_cond_trap): Use it. Always delete the trap block.
9274 (merge_if_block): Allow then block null. Be less simplistic about
9275 what insns can end a block.
9276 * Makefile.in (ifcvt.o): Depend on except.h.
9278 * config/ia64/ia64.md (trap, conditional_trap): New.
9280 2002-04-18 Jakub Jelinek <jakub@redhat.com>
9283 * function.c (assign_parms): Assign hard current_function_return_rtx
9285 (expand_function_end): ...not here.
9287 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
9289 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
9290 * c-tree.h (c_incomplete_type_error): New.
9291 * c-typeck.c (require_complete_type, build_component_ref): Update.
9292 (incomplete_type_error): Rename.
9293 * langhooks-def.h (lhd_incomplete_type_error): New.
9294 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
9295 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
9296 * langhooks.c (lhd_incomplete_type_error): New.
9297 * langhooks.h (struct lang_hooks_for_types): New hook.
9298 * tree.c (size_in_bytes): Use new hook.
9299 * tree.h (incomplete_type_error): Remove.
9301 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
9303 2002-04-18 Zack Weinberg <zack@codesourcery.com>
9305 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
9306 TARGET_FLOAT_FORMAT blocks.
9308 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9310 * doc/install.texi (Downloading the source): Do not mention Chill
9311 any longer, but mention Ada.
9312 (Configuration): Do not mention Chill any longer.
9314 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
9316 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
9318 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
9320 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
9323 2002-04-18 Jakub Jelinek <jakub@redhat.com>
9325 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
9326 instead of unsigned_type.
9328 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
9330 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
9331 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
9334 2002-04-18 Bernd Schmidt <bernds@redhat.com>
9336 * attribs.c (vector_type_node_list): New static variable.
9337 (handle_vector_size_attribute): Use it to avoid generating a
9338 new type node each time we are called.
9340 * combine.c (subst): Avoid trying to make a vector mode subreg of
9341 an integer constant.
9342 (gen_lowpart_for_combine): Likewise.
9344 2002-04-18 Roger Sayle <roger@eyesopen.com>
9345 Jakub Jelinek <jakub@redhat.com>
9347 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
9348 for integer constant c (if x has unsigned type or sign bit is not
9349 set in c). This folds the zero/sign extension into the bit-wise and
9352 2002-04-18 Jakub Jelinek <jakub@redhat.com>
9355 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
9358 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
9360 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
9362 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
9364 * gcc.c (read_specs): Detect and fail if an attempt is made to
9365 rename a spec string to an already existing string.
9367 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9369 * config/s390/s390.c (legitimize_pic_address): Do not generate
9370 illegal address constant without CONST.
9372 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9374 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
9375 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9377 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9379 PR optimization/6305
9380 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
9381 to make sure previous reloads are taken into account. Generate
9382 better code if one operand is an in-range immediate constant.
9384 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
9386 * doc/install.texi (Building): libgcj requires GNU make.
9388 2002-04-17 Jakub Jelinek <jakub@redhat.com>
9391 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
9392 even if hard quad and register is not floating.
9393 (movtf reg<-mem split): Disallow splitting if hard quad and
9394 register is floating.
9395 (movtf mem<-reg split): Likewise.
9396 * config/sparc/sparc.c (fp_register_operand): New predicate.
9397 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
9399 2002-04-17 Zack Weinberg <zack@codesourcery.com>
9401 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
9402 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
9403 (unprotoize.o): Ditto. Build from protoize.c. Define
9404 UNPROTOIZE on command line.
9405 * protoize.c: Include cppdefault.h. Delete include_defaults.
9406 (in_system_include_dir): Use cpp_include_defaults (defined in
9408 * unprotoize.c: Delete file.
9410 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
9412 * config/rs6000/altivec.h (vec_ld): Add array variants.
9416 2002-04-17 Alan Matsuoka <alanm@redhat.com>
9417 Aldy Hernandez <aldyh@redhat.com>
9419 * config/rs6000/altivec.h: Define __ALTIVEC__.
9426 Add parentheses to all macro arguments.
9428 2002-04-16 Richard Henderson <rth@redhat.com>
9431 * except.c (remove_eh_handler): Insert inner regions at beginning
9432 of sibling chain. Refactor expressions.
9434 2002-04-16 Richard Henderson <rth@redhat.com>
9436 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
9437 * config/sparc/sol2-gas-bi.h: New file.
9438 * config.gcc (sparc*-solaris): Add it as needed.
9439 * configure.in (AS_SPARC64_FLAG): Remove check.
9440 * config.in, configure: Regenerate.
9442 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
9444 2002-04-16 Richard Henderson <rth@redhat.com>
9446 * config/mips/mips.c (override_options): Don't override N32 for
9450 * config/mips/mips.md (can_delay): Split out of existing define_delays.
9451 (HILO_delay): Set can_delay false.
9453 2002-04-16 Dale Johannesen <dalej@apple.com>
9455 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
9456 instruction addresses.
9457 (rs6000_output_function_epilogue): Likewise.
9459 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
9461 * c-parse.in (poplevel, compstmt_start,
9462 compstmt_primary_start): Add ending ';', in accordance
9465 2002-04-16 Richard Henderson <rth@redhat.com>
9467 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
9468 Adjust tm_file order to get TARGET_DEFAULT set properly.
9469 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
9470 * doc/install.texi (sparc-solaris): Update.
9472 2002-04-16 Dale Johannesen <dalej@apple.com>
9474 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
9475 comparison operands do not match each other or if modes of
9476 conditions do not match result.
9478 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
9481 * config/s390/s390.md (mulsidi3): Set both subregs of the
9484 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
9486 * config/rs6000/altivec.h (vec_addc): Type check.
9488 2002-04-16 Jakub Jelinek <jakub@redhat.com>
9491 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
9493 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
9495 2002-04-15 Richard Henderson <rth@redhat.com>
9497 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
9498 call_really_used_regs too.
9500 2002-04-15 Richard Henderson <rth@redhat.com>
9502 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
9504 2002-04-15 David S. Miller <davem@redhat.com>
9506 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
9509 2002-04-16 Jakub Jelinek <jakub@redhat.com>
9512 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
9513 CONST_VECTOR is { 0, ... 0 }.
9515 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
9517 * doc/install.texi (Installing GCC: Configuration): Clarify
9518 the only supported ways to configure gcc.
9520 2002-04-15 Roland McGrath <roland@frob.com>
9522 * config.gcc (alpha*-*-gnu*): New target configuration.
9523 * config/alpha/gnu.h: New file for it.
9524 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
9526 2002-04-16 Mark Mitchell <mark@codesourcery.com>
9528 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
9529 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
9530 * tree.h (expand_start_stmt_expr): Update prototype.
9531 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
9532 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
9533 on the STMT_EXPR created for the inline function.
9535 2002-04-15 Richard Henderson <rth@redhat.com>
9537 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
9538 config/i386/linux-aout.h, config/i386/linux-oldld.h,
9539 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
9540 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
9541 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
9542 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
9543 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
9544 Define __gnu_linux__, not gnu_linux.
9545 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
9547 2002-04-15 Mark Mitchell <mark@codesourcery.com>
9549 Remove Chill front end.
9550 * gcc.c (default_compilers): Remove Chill entries.
9551 * ch: Remove directory.
9552 * doc/frontends.texi: Remove information about Chill.
9553 * doc/sourcebuild.texi: Likewise.
9554 * doc/standards.texi: Likewise.
9556 2002-04-15 Douglas B Rupp <rupp@gnat.com>
9558 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
9559 (LONGLONG_STANDALONE): Define.
9561 2002-04-15 David S. Miller <davem@redhat.com>
9563 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
9564 Call emit_library_call with LCT_NORMAL.
9565 (sparc_initialize_trampoline): Use LCT_foo instead of
9566 magic constant in emit_library_call invocations.
9567 (sparc64_initialize_trampoline): Likewise.
9568 (sparc_profile_hook): Likewise.
9569 * config/sparc/sparc.md: Likewise.
9571 * config/sparc/sparc.c (sparc_extra_constraint_check):
9572 Fix type of argument 'c'.
9573 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
9576 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
9578 * diagnostic.h (output_buffer_state): Redefine.
9579 (output_format_decoder): New macro.
9580 (output_prefixing_rule): Likewise.
9581 (output_line_cutoff): Likewise.
9582 (diagnostic_format_decoder): Adjust.
9583 (diagnostic_prefixing_rule): Likewise.
9584 (diagnostic_line_cutoff): Likewise.
9585 (diagnostic_state): Likewise.
9586 (diagnostic_kind_count): Likewise.
9587 (diagnostic_buffer): Now a macro.
9589 * diagnostic.c (diagnostic_buffer): Remove definition.
9590 (output_is_line_wrapping): Adjust.
9591 (set_real_maximum_length): Likewise.
9592 (output_set_maximum_length): Likewise.
9593 (init_output_buffer): Likewise.
9594 (lhd_print_error_function): Likewise.
9595 (output_do_verbatim): Likewise.
9597 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
9599 * cpperror.c (print_location): Don't print include chain
9601 (cpp_begin_message): Update to use DL_ macros.
9602 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
9603 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
9604 cpp_notice, cpp_notice_from_errno): Remove.
9605 (cpp_error, cpp_error_with_line): Update to take a diagnostic
9608 * cppexp.c (CPP_ICE): Remove.
9609 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
9610 lex, integer_overflow, _cpp_parse_expr): Update.
9611 * cppfiles.c (read_include_file, find_include_file,
9612 handle_missing_header, _cpp_read_file, remap_filename): Update.
9613 * cpphash.h (enum error_type): Remove.
9614 (_cpp_begin_message): Update.
9615 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
9616 cpp_handle_option, cpp_post_options): Update.
9617 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
9618 skip_whitespace, parse_identifier, parse_slow, parse_string,
9619 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
9620 cpp_interpret_charconst): Update.
9621 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
9622 lex_macro_node, do_undef, glue_header_name, parse_include,
9623 do_include_common, read_flag, do_line, do_linemarker, do_ident,
9624 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
9625 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
9626 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
9627 _cpp_pop_buffer, do_diagnostic): Update.
9628 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
9629 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
9630 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
9631 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
9632 cpp_notice, cpp_notice_from_errno): Remove.
9633 (cpp_error, cpp_error_with_line): Update to take a diagnostic
9636 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
9637 collect_args, enter_macro_context, save_parameter, parse_params,
9638 _cpp_create_definition, check_trad_stringification,
9639 cpp_macro_definition): Update.
9640 * cppmain.c (cpp_preprocess_file): Update.
9641 * fix-header.c (read_scan_file): Update.
9643 2002-04-14 Andreas Schwab <schwab@suse.de>
9645 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
9647 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
9649 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
9651 2002-04-13 Mark Mitchell <mark@codesourcery.com>
9653 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
9656 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
9658 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
9660 2002-04-13 Joel Sherrill <joel@OARcorp.com>
9662 * config/sparc/t-elf: Enable v8 multilibs. Impacts
9663 sparc-elf and sparc-rtems targets.
9665 2002-04-13 Mark Mitchell <mark@codesourcery.com>
9667 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
9668 defined, and __gnu_hurd__ wherever __GNU__ is defined.
9669 * arm/linux-elf.h: Likewise.
9670 * cris/aout.h: Likewise.
9671 * cris/linux.h: Likewise.
9672 * i370/linux.h: Likewise.
9673 * i386/gnu.h: Likewise.
9674 * i386/linux-aout.h: Likewise.
9675 * i386/linux-oldld.h: Likewise.
9676 * i386/linux.h: Likewise.
9677 * i386/linux64.h: Likewise.
9678 * ia64/linux.h: Likewise.
9679 * m68k/linux-aout.h: Likewise.
9680 * m68k/linux.h: Likewise.
9681 * mips/linux.h: Likewise.
9682 * pa/pa-linux.h: Likewise.
9683 * pj/linux.h: Likewise.
9684 * rs6000/sysv4.h: Likewise.
9685 * s390/linux.h: Likewise.
9686 * sh/linux.h: Likewise.
9687 * sparc/linux-aout.h: Likewise.
9688 * sparc/linux.h: Likewise.
9689 * sparc/linux64.h: Likewise.
9690 * xtensa/linux.h: Likewise.
9692 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
9694 * stmt.c (check_unique_operand_names): Expect operand names to
9695 be strings rather than identifiers. Use simple_cst_equal to
9697 (resolve_operand_name_1): Make same identifier to string change here.
9698 * c-parse.in (asm_operand): Convert a named operand into a string.
9699 * cp/parse.y (asm_operand): Likewise.
9701 2002-04-13 Andreas Schwab <schwab@suse.de>
9703 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
9705 2002-04-12 Mark Mitchell <mark@codesourcery.com>
9707 Revert these changes:
9709 2002-04-06 Mark Mitchell <mark@codesourcery.com>
9712 * stor-layout.c (layout_decl): Reset the RTL for the decl.
9714 2002-04-12 Richard Henderson <rth@redhat.com>
9716 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
9717 (sparc*-*-solaris): Clean up header files.
9718 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
9719 and plan on generating 64-bit code.
9720 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
9721 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
9722 * config/sparc/sol2-sld-64.h: Rename ...
9723 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
9724 for AS_SPARC64_FLAG not defined.
9725 * config/sparc/sol2-gld-bi.h: New.
9726 * config/sparc/sol2-sld.h: Remove.
9727 * config/sparc/sol26-sld.h: New.
9728 * config/sparc/sol2.h: Tidy comments.
9729 * doc/install.texi: Document sparc-solaris configury changes.
9731 2002-04-12 Richard Henderson <rth@redhat.com>
9733 * recog.c (offsettable_address_p): Match the logic in adjust_address.
9735 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
9736 in 64-bit mode only. Use only for 32-bit or MEDLOW.
9738 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9740 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
9742 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
9744 * pa.c (pa_can_combine_p): Call extract_insn before calling
9747 2002-04-12 Douglas B Rupp <rupp@gnat.com>
9749 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
9750 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
9751 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
9752 (CPP_PREDEFINES): Handle __declspec.
9753 * config/i386/t-interix (USER_H): Remove.
9755 2002-04-12 DJ Delorie <dj@redhat.com>
9757 * integrate.c (compare_blocks): Make comparisons safe for when
9758 sizeof(int) < sizeof(char *).
9759 (find_block): Likewise.
9761 2002-04-12 Jan Hubicka <jh@suse.cz>
9762 David Edelsohn <edelsohn@gnu.org>
9764 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
9766 (symbol_ref_operand): New.
9767 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
9768 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
9770 2002-04-12 Andreas Schwab <schwab@suse.de>
9772 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
9773 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
9774 overrides the definition in config/svr4.h.
9776 2002-04-12 Eric Norum <eric.norum@usask.ca>
9778 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
9779 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
9780 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
9781 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
9782 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
9783 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
9784 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
9785 definitions to config/rtems.h and make the targets more similar.
9787 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9789 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
9790 POINTERS_EXTEND_UNSIGNED.
9791 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
9792 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
9794 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
9797 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
9799 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
9800 depends on TARGET_SHMEDIA, not TARGET_SH5.
9802 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
9804 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
9805 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
9807 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
9809 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
9812 2002-04-12 Andreas Schwab <schwab@suse.de>
9814 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
9816 2002-04-12 Richard Henderson <rth@redhat.com>
9819 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
9821 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
9822 modes spanning multiple hard regs.
9824 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
9826 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
9828 * pa.c (pa_output_function_prologue): Don't accumulate the total
9829 number of code bytes when using TARGET_64BIT, or gas, SOM and not
9830 the portable runtime.
9831 (output_deferred_plabels): Handle 64bit plabels.
9832 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
9833 generating pic code using the GAS assembler for object formats that
9834 are not SOM (ie., ELF32 and ELF64).
9835 (output_millicode_call): Check attribute type if attribute length is 28.
9836 Likewise use $PIC_pcrel$0. Only call get_attr_length and
9837 dbr_sequence_length once.
9838 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
9839 dbr_sequence_length once.
9840 * pa.h (TARGET_SOM): Define if not defined.
9841 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
9842 with GAS and not SOM.
9843 (jump, call_internal_reg, call_value_internal_reg): Likewise.
9844 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
9846 2002-04-11 David O'Brien <obrien@FreeBSD.org>
9848 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
9849 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
9850 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
9851 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
9852 elfos.h and dbxelf.h values are fine now.
9853 * config/i386/freebsd.h, config/alpha/freebsd.h
9854 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
9856 2002-04-11 David O'Brien <obrien@FreeBSD.org>
9858 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
9859 or set Acpu or Amachine. Reformat.
9860 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
9862 (LINK_SPEC): Do not need to undef.
9863 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
9864 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
9865 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
9867 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
9868 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
9869 (LINK_SPEC): Do not need to undef.
9870 (DONT_USE_BUILTIN_SETJMP): Do not define.
9871 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
9872 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
9873 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
9874 Remove trailing spaces.
9875 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
9876 __ELF__, or set Acpu or Amachine. Reformat.
9877 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
9880 2002-04-11 David O'Brien <obrien@FreeBSD.org>
9882 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
9883 all other *-*-freebsd* targets.
9885 2002-04-11 Richard Henderson <rth@redhat.com>
9887 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
9889 2002-04-11 David O'Brien <obrien@FreeBSD.org>
9891 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
9892 Include {cpu}/{cpu}.h thru tm_file.
9893 (alpha*-*-linux*ecoff): Remove target.
9894 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
9895 (LINK_SPEC): Remove, is not OS independent.
9896 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
9897 (LINK_SPEC): Do not need to #undef any longer.
9898 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
9900 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
9902 (LINK_SPEC): Moved here from alpha/elf.h.
9903 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
9905 * config/alpha/linux-ecoff.h: Remove.
9906 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
9907 (CPP_SPEC): Define _POSIX_SOURCE as needed.
9908 (CPP_SUBTARGET_SPEC): Do not define.
9909 (LINK_SPEC): Do not need to #undef any longer.
9910 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
9911 * config/alpha/vms.h: Likewise.
9913 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
9915 * doc/extend.texi: Remove old claim that typedefs cannot have
9916 an alignment attribute.
9918 2002-04-11 Jakub Jelinek <jakub@redhat.com>
9920 PR optimization/6177
9921 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
9922 bitpos is 0 and bitsize CONCAT size.
9924 2002-04-11 Jakub Jelinek <jakub@redhat.com>
9927 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
9929 2002-04-10 David O'Brien <obrien@FreeBSD.org>
9931 * config/alpha/freebsd.h: Minor reformatting.
9932 (CPP_SPEC): Define ELF and add cpp_subtarget.
9933 (ASM_SPEC): No longer needed.
9935 2002-04-11 Richard Henderson <rth@redhat.com>
9937 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
9938 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
9939 (dimode mem/zero splitter): New.
9941 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
9943 * config/cris/cris.c (cris_override_options): Tweak error message
9944 for PIC not implemented.
9946 * config/cris/cris.h: Tweak comments related to parameter-passing.
9948 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
9950 2002-04-10 Richard Henderson <rth@redhat.com>
9952 * except.c (add_ehl_entry): Allow duplicates after landing pad
9955 2002-04-10 David Edelsohn <edelsohn@gnu.org>
9957 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
9959 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
9961 * c-decl.c (c_init_decl_processing): Move generation of
9962 decls for g77_integer_type_node and friends from here ...
9963 * c-common.c (c_common_nodes_and_builtins): ... to here.
9965 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
9967 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
9968 is only used as frame pointer when frame_pointer_needed is true.
9970 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
9973 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
9974 for the fact that the pool entry uses two words.
9975 (movdf_hard_insn): Similarly. Also, ADR instruction can span
9977 (movdf_soft_insn): Similarly.
9978 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
9979 for the fact that the pool entry uses three words.
9981 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
9983 * config/mips/mips.c (mips_va_arg): When using the struct version
9984 of the EABI va_list, allow arguments in the register save area to
9985 take up less room than a stack argument.
9987 2002-04-10 Richard Henderson <rth@redhat.com>
9989 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
9990 if EXPAND_INITIALIZER.
9992 2002-04-09 Richard Henderson <rth@redhat.com>
9994 * config/alpha/alpha.md (movdi_er_maybe_g): New.
9995 * config/alpha/alpha.c (alpha_expand_mov): Use it.
9997 2002-04-10 Alan Modra <amodra@bigpond.net.au>
9999 PR optimization/6233
10000 * rtlanal.c (pure_call_p): New function.
10001 * rtl.h (pure_call_p): Declare.
10002 * loop.c (prescan_loop): Use it to set has_nonconst_call.
10003 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
10005 2002-04-09 Eric Christopher <echristo@redhat.com>
10007 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
10008 information to .comm directive.
10010 2002-04-09 Richard Henderson <rth@redhat.com>
10013 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
10015 2002-04-09 Richard Henderson <rth@redhat.com>
10017 * basic-block.h (flow_delete_block_noexpunge): Declare.
10018 (expunge_block_nocompact): Declare.
10019 * cfg.c (expunge_block_nocompact): Split out from ...
10020 (expunge_block): ... here.
10021 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
10022 (flow_delete_block_noexpunge): Split out from ...
10023 (flow_delete_block): ... here.
10024 * cfgcleanup.c (delete_unreachable_blocks): Compact while
10025 removing dead blocks.
10026 * except.c (exception_handler_labels): Remove.
10027 (exception_handler_label_map): New.
10028 (struct eh_region): Add aka member.
10029 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
10030 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
10031 (for_each_eh_label, for_each_eh_label_1): New.
10032 (init_eh): Register exception_handler_label_map.
10033 (free_eh_status): Use free_region.
10034 (find_exception_handler_labels): Use the map, not the list.
10035 (remove_exception_handler_label): Likewise.
10036 (maybe_remove_eh_handler): Likewise.
10037 (remove_eh_handler): Use the region aka bitmap.
10038 * except.h (exception_handler_labels): Remove.
10039 (for_each_eh_label): Declare.
10040 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
10041 * loop.c (invalidate_loops_containing_label): New.
10042 (find_and_verify_loops): Use it. Use for_each_eh_label.
10043 * sched-rgn.c (is_cfg_nonregular): Use
10044 current_function_has_exception_handlers.
10046 2002-04-09 Richard Henderson <rth@redhat.com>
10048 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
10049 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
10050 Do not return changed status.
10051 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
10052 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
10053 New functions that do return changed status.
10054 * sbitmap.h: Update decls.
10055 * gcse.c, lcm.c: Use _cg functions as needed.
10057 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
10059 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
10060 (sh64-*-elf*, sh-*-rtemself*): Likewise.
10061 * config/sh/embed_bb.c: New file.
10062 * config/sh/embed-elf.h: New file.
10063 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
10064 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
10065 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
10067 (SUBTARGET_CPP_PTR_SPEC): Don't define.
10068 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
10069 Add subtarget_asm_endian_spec.
10070 (ASM_SPEC): Use subtarget_asm_endian_spec.
10071 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
10072 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
10073 (WCHAR_UNSIGNED): Define.
10074 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
10075 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
10076 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
10078 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
10079 (sh_adjust_cost): Likewise.
10080 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
10082 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
10083 (WCHAR_TYPE_SIZE): Likewise.
10084 (ASM_SPEC): Use subtarget_asm_endian_spec.
10085 (SH_ELF_WCHAR_TYPE): #undef/ #define.
10086 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
10087 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
10088 (MAX_WCHAR_TYPE_SIZE): Don't #define .
10089 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
10090 (USER_LABEL_PREFIX): Don't #undef /#define .
10091 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
10092 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
10093 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
10094 (ASM_SPEC): Likewise.
10095 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
10096 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
10097 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
10098 (LIB2FUNCS_EXTRA): Define.
10099 * t-sh64 (LIB2FUNCS_EXTRA): Define.
10100 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
10101 (LIB1ASMFUNCS_CACHE): Define.
10102 (LIB2FUNCS_EXTRA): Redefine empty.
10104 2002-04-08 Richard Henderson <rth@redhat.com>
10106 * reorg.c (get_branch_condition): Use reversed_comparison_code.
10108 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10110 * config/m68hc11/larith.asm (__map_data_section): Fix condition
10111 and optimize for size.
10112 (__do_global_ctors): Fix pointer comparison.
10113 (__do_global_dtors): Likewise.
10115 2002-04-09 David S. Miller <davem@redhat.com>
10117 * config/sparc/sparc.c (sparc_extra_constraint_check): New
10118 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
10119 allow reloading pseudos.
10120 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
10121 * config/sparc/sparc-protos.h: Declare it.
10123 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
10124 unsigned comparison warning.
10125 (output_restore_regs): Mark leaf_function as unused.
10127 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10129 * expr.c (is_aligning_offset): New function.
10130 (expand_expr, case COMPONENT_EXPR): Call it.
10132 2002-04-08 David S. Miller <davem@redhat.com>
10135 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
10137 Make init_priority work on Sparc when using GNU ld.
10138 * config/sparc/linux.h, config/sparc/linux64.h,
10139 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
10140 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
10141 * config/sparc/sol2-gld.h: New file to do the same.
10142 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
10143 sparc/sol2-gld.h to tm_file.
10145 PR optimization/4328
10146 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
10147 * doc/md.texi: Document it.
10148 * config/sparc/sparc.md (movdi_insn_sp64_novis,
10149 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
10150 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
10151 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
10152 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
10154 2002-04-08 Andreas Jaeger <aj@suse.de>
10156 * stmt.c (expand_asm_operands): Revert last patch from Richard
10159 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10161 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
10162 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
10164 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10166 * doc/contrib.texi (Contributors): Add David O'Brien.
10168 2002-04-08 Alan Modra <amodra@bigpond.net.au>
10170 * configure.in (auto-build.h): Use target_alias and build_alias
10171 when running configure.
10172 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
10173 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
10174 * configure: Regenerate.
10176 2002-04-07 David S. Miller <davem@redhat.com>
10178 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
10180 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
10183 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
10184 generating 32-bit pic code.
10186 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
10188 * cppinit.c (cpp_create_reader): Initialize
10189 discard_comments_in_macro_exp.
10190 (COMMAND_LINE_OPTIONS): Add "-CC" option.
10191 (cpp_handle_option): Handle "-CC" option.
10192 * cpplex.c (save_comment): If saving a C++ comment in
10193 a directive, convert it to a C comment.
10194 (_cpp_lex_direct): Pass second comment start character to
10195 save_comment to indicate comment type.
10196 * cpplib.c (_cpp_handle_directive): If processing
10197 a "#define" directive and discard_comments_in_macro_exp
10198 is false, re-enable saving of comments.
10199 (lex_macro_node): If discard_comments_in_macro_exp is false,
10200 discard any comments before the macro identifier.
10201 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
10203 * cppmacro.c (cpp_get_token): If expanding a macro while
10204 processing a directive, discard any comments we might encounter.
10205 (parse_params): If discard_comments_in_macro_exp is false,
10206 ignore comments in the macro parameter list.
10207 * gcc.c (cpp_unique_options): Add "-CC" option.
10208 (option_map): Map "--comments-in-macros" to "-CC".
10209 * doc/cppopts.texi: Document "-CC" option.
10210 * f/lang-specs.h: Add "-CC" option.
10211 * testsuite/gcc.dg/cpp/maccom1.c: New test.
10212 * testsuite/gcc.dg/cpp/maccom2.c: New test.
10213 * testsuite/gcc.dg/cpp/maccom3.c: New test.
10214 * testsuite/gcc.dg/cpp/maccom4.c: New test.
10215 * testsuite/gcc.dg/cpp/maccom5.c: New test.
10216 * testsuite/gcc.dg/cpp/maccom6.c: New test.
10218 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
10221 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
10223 2002-04-06 Mark Mitchell <mark@codesourcery.com>
10226 * stor-layout.c (layout_decl): Reset the RTL for the decl.
10229 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
10230 RTX_UNCHANGING_P for the functions arguments when a tail call
10233 2002-04-06 Jason Merrill <jason@redhat.com>
10235 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
10236 (parse_options_and_default_flags): Set them appropriately.
10237 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
10239 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
10241 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
10244 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
10247 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
10248 types come in by-reference. Fix typo in comment.
10250 2002-04-05 David S. Miller <davem@redhat.com>
10252 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
10253 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
10254 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
10255 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
10257 2002-04-05 David S. Miller <davem@redhat.com>
10259 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
10260 are not going to emit return instructions, emit at least a nop
10261 for the sake of sane backtraces.
10263 2002-04-05 Richard Henderson <rth@redhat.com>
10265 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
10267 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
10269 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
10271 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
10273 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
10274 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
10275 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
10277 2002-04-05 Andreas Schwab <schwab@suse.de>
10279 * c-convert.c: Include c-common.h.
10280 * Makefile.in (c-convert.o): Updated.
10282 2002-04-05 Jakub Jelinek <jakub@redhat.com>
10284 * mklibgcc.in: Use separate libgcc.map for each multilib.
10285 * Makefile.in (distclean): Don't remove libgcc.map here.
10287 2002-04-05 Jakub Jelinek <jakub@redhat.com>
10289 * Makefile.in (s-mlib): Handle --disable-multilib by separate
10290 genmultilib invocation.
10292 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
10294 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
10295 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
10296 to num_gprs for symmetry.
10297 * config/mips/mips.c: Adjust accordingly.
10299 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
10301 * c-common.c (truthvalue_conversion): Rename, update.
10302 * c-common.h (c_common_truthvalue_conversion): New.
10303 * c-convert.c (convert): Update.
10304 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
10305 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
10306 * c-typeck.c (build_binary_op, build_unary_op,
10307 build_conditional_expr): Update.
10308 * fold-const.c (constant_boolean_node, fold): Use langhook.
10309 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
10310 * langhooks.h (struct lang_hooks): New hook.
10311 * stmt.c (expand_decl_cleanup): Use langhook.
10312 * tree.h (truthvalue_conversion): Remove.
10314 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
10316 2002-04-05 Alan Modra <amodra@bigpond.net.au>
10318 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
10319 Add rules to make null object file.
10321 2002-04-04 Jim Blandy <jimb@redhat.com>
10323 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
10324 macro formal parameter names.
10326 2002-04-04 David S. Miller <davem@redhat.com>
10328 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
10330 2002-04-04 Richard Henderson <rth@redhat.com>
10333 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
10334 Support copies into and out of memory. Don't accept allows_reg
10335 and allows_mem as gospel.
10337 2002-04-04 Richard Henderson <rth@redhat.com>
10340 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
10341 (write_dependence_p): Likewise.
10343 2002-04-04 Richard Henderson <rth@redhat.com>
10345 * predict.c (estimate_bb_frequencies): Do frequency calculation
10346 with a volatile temporary.
10348 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
10350 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
10352 2002-04-04 Jakub Jelinek <jakub@redhat.com>
10355 * final.c (final_start_function): Don't bump profile_label_no here...
10356 (final_end_function): ...but here.
10358 2002-04-04 Jakub Jelinek <jakub@redhat.com>
10360 * config/sparc/sparc.md (pic): New attribute.
10361 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
10363 (split after do_builtin_setjmp_setup): New.
10365 2002-04-04 Jakub Jelinek <jakub@redhat.com>
10368 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
10371 2002-04-04 Jakub Jelinek <jakub@redhat.com>
10373 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
10374 UNITS_PER_WORD for zero sized aggregates.
10376 2002-04-03 David S. Miller <davem@redhat.com>
10378 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
10379 one-character spec for this, just use %(link_gcc_c_sequence).
10381 2002-04-03 David S. Miller <davem@redhat.com>
10383 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
10386 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
10388 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
10389 (DWARF_FRAME_RETURN_COLUMN): Move.
10390 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
10391 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
10392 * pa.c (except.h, predict.h): Include.
10394 (store_reg_modify, set_reg_plus_d): Revise prototypes.
10395 (output_ascii): Add cast.
10396 (store_reg_modify): Revise to add frame notes.
10397 (set_reg_plus_d): Likewise.
10398 (compute_frame_size): Include space for eh data registers in frame if
10399 the current function calls eh_return.
10400 (hppa_expand_prologue): Ensure register %r2 is saved if the current
10401 function calls eh_return. Save eh data registers if the current
10402 function calls eh_return. Fix code to add frame notes. Emit
10403 blockage to prevent insns with frame notes being scheduled in the
10404 delay slot of calls.
10405 (hppa_expand_epilogue): Restore eh data registers and do final stack
10406 adjustment if the current function calls eh_return. Don't add frame
10408 (output_call): Revise for change in length of call insn. Don't do
10409 return pointer adjustment for an unconditional jump in the delay slot
10410 of a call when using frame notes.
10411 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
10412 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
10413 (ARG_POINTER_CFA_OFFSET): Define.
10414 * pa.md (return_external_pic): New pattern.
10415 (prologue): Correct formatting. Use return_external_pic if current
10416 function calls eh_return.
10417 (call_internal_symref, call_value_internal_symref,
10418 sibcall_internal_symref, sibcall_value_internal_symref): Change default
10419 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
10421 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
10423 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
10424 list of targets to check using "nop" insn.
10425 * configure: Rebuilt.
10427 2002-04-04 Alan Modra <amodra@bigpond.net.au>
10429 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
10431 2002-04-03 David S. Miller <davem@redhat.com>
10433 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
10434 library sequence passed to the linker.
10435 (LINK_COMMAND_SPEC): Use it.
10436 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
10437 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
10438 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10440 2002-04-03 Jason Merrill <jason@redhat.com>
10442 * except.c (struct eh_status): Remove protect_list.
10443 (begin_protect_partials, end_protect_partials): Remove.
10444 (add_partial_entry): Remove.
10445 * except.h: Remove prototypes.
10447 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
10448 expand_decl_cleanup_eh.
10451 * tree.h (CLEANUP_EH_ONLY): New macro.
10452 * stmt.c (expand_decl_cleanup_eh): New fn.
10453 (expand_cleanups): Check CLEANUP_EH_ONLY.
10454 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
10455 Use expand_decl_cleanup_eh.
10456 (expand_stmt): Adjust.
10457 * c-common.h: Adjust prototype.
10459 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
10461 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
10462 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
10463 (cris_target_asm_function_epilogue): Ditto.
10464 (cris_initial_frame_pointer_offset): Ditto.
10465 (cris_simple_epilogue): Ditto.
10466 (cris_expand_builtin_va_arg): Variable-size types come in
10469 2002-04-03 David S. Miller <davem@redhat.com>
10471 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
10473 (set_fast_math): Correct 'fsr' type.
10475 2002-04-03 Richard Henderson <rth@redhat.com>
10478 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
10479 * toplev.c (check_global_declarations): Use it.
10480 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
10481 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
10482 (LANG_HOOKS_DECLS): Add it.
10483 * langhooks.c (lhd_warn_unused_global_decl): New.
10484 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
10485 * c-objc-common.c (c_warn_unused_global_decl): New.
10486 * c-tree.h (c_warn_unused_global_decl): Declare.
10487 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
10489 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
10491 * langhooks-def.h (lhd_set_decl_assembler_name,
10492 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
10493 (LANG_HOOKS_INITIALIZER): Update.
10494 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
10495 * langhooks.h (struct lang_hooks): New hook.
10496 * tree.c (set_decl_assembler_name): Move to langhooks.c.
10497 (lang_set_decl_assembler_name): Remove.
10498 (init_obstacks): Don't set hook.
10499 (decl_assembler_name): New function.
10500 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
10501 (decl_assembler_name): New.
10502 (lang_set_decl_assembler_name): Remove.
10504 2002-04-03 Jakub Jelinek <jakub@redhat.com>
10506 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
10507 works properly with .hidden symbols.
10508 * configure: Rebuilt.
10509 * config.in: Rebuilt.
10510 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
10511 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
10512 properly with .hidden symbols.
10514 2002-04-03 Jakub Jelinek <jakub@redhat.com>
10517 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
10520 2002-04-03 Richard Henderson <rth@redhat.com>
10523 * sched-rgn.c (sets_likely_spilled): New.
10524 (sets_likely_spilled_1): New.
10525 (add_branch_dependences): Use it.
10527 2002-04-02 Richard Henderson <rth@redhat.com>
10530 * loop.h (LOOP_FIRST_PASS): New.
10531 * loop.c (strength_reduce): Mind it when deciding to unroll.
10532 * toplev.c (rest_of_compilation): Set it.
10534 2002-04-02 David S. Miller <davem@redhat.com>
10536 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
10537 mems_ok_for_ldd_peep when the order of the loads being examined
10539 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
10540 existing comment to increase comprehension of this situation.
10542 2002-04-02 Zack Weinberg <zack@codesourcery.com>
10544 * config/sh/sh.md: Don't use union real_extract.
10546 2002-04-02 Richard Henderson <rth@redhat.com>
10548 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
10550 2002-04-02 David O'Brien <obrien@FreeBSD.org>
10552 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
10553 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
10554 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
10555 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
10556 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
10557 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
10558 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
10559 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
10560 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
10561 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
10562 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
10563 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
10564 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
10565 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
10566 Include as many configury headers via tm_file as possible. This
10567 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
10568 * config/openbsd-oldgas.h: New file.
10569 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
10570 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
10571 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
10572 config/i386/i386-coff.h, config/i386/i386-interix.h,
10573 config/i386/iscdbx.h, config/i386/linux-aout.h,
10574 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
10575 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
10576 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
10577 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
10578 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
10579 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
10580 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
10581 config/i386/vxi386.h: Do not directly include configury headers.
10582 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
10583 Directly include configury headers that are no longer automatically
10584 included by the above headers.
10585 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
10586 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
10587 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
10588 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
10589 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
10590 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
10591 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
10592 (TARGET_VERSION): Define.
10593 * config/i386/beos-elf.h, config/i386/freebsd.h,
10594 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
10595 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
10596 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
10597 config/i386/sco5.h, config/i386/sysv4.h
10598 (TARGET_VERSION): Do not need to protect.
10599 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
10600 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
10601 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
10602 config/i386/i386-interix.h, config/i386/linux-aout.h,
10603 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
10604 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
10605 (YES_UNDERSCORES): Do not define - not needed.
10606 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
10607 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
10608 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
10609 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
10610 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
10611 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
10612 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
10613 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
10615 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
10616 Richard Henderson <rth@redhat.com>
10619 * function.c (assign_temp): Accept either type or decl argument.
10620 Detect variables whose size is too large to fit into an integer.
10621 * stmt.c (expand_decl): Pass the decl, not the type.
10623 2002-04-02 David O'Brien <obrien@FreeBSD.org>
10625 * protoize.c: Match include directory usage with cppdefault.c.
10627 2002-04-03 Jeffrey A Law (law@redhat.com)
10628 Hans-Peter Nilsson <hp@bitrange.com>
10630 * combine.c (simplify_comparison): Avoid narrowing a comparison
10631 with a paradoxical subreg when doing so would drop signficant bits.
10633 2002-04-02 Steve Ellcey <sje@cup.hp.com>
10635 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
10636 if POINTERS_EXTEND_UNSIGNED is defined.
10638 2002-04-02 Richard Henderson <rth@redhat.com>
10641 * local-alloc.c (contains_replace_regs): LO_SUM may contain
10644 2002-04-02 Richard Henderson <rth@redhat.com>
10646 * doc/standards.texi: Document required freestanding libc entry points.
10648 2002-04-02 Alan Modra <amodra@bigpond.net.au>
10650 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
10651 associated splitter. Remove MQ constraint.
10652 (ctrdi_internal4): Correct CCmode clobber.
10654 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
10656 * milli64.S ($$dyncall): New function.
10657 * t-linux (LIB1ASMFUNCS): Revise module list.
10658 (LIB1ASMSRC): Use pa/milli64.S.
10660 2002-04-02 Richard Henderson <rth@redhat.com>
10662 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
10663 rename solaris_sys_varargs_h.
10665 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10667 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
10668 the same mode as its component.
10670 2002-04-02 Richard Henderson <rth@redhat.com>
10673 * final.c (this_is_asm_operands): Export.
10674 * output.h (this_is_asm_operands): Declare.
10675 * config/i386/i386.c (print_operand): Error odd asm operands.
10677 2002-04-02 Richard Henderson <rth@redhat.com>
10680 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
10682 2002-04-01 Richard Henderson <rth@redhat.com>
10685 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
10686 * fixinc/fixincl.x: Rebuild.
10688 2002-04-01 Richard Henderson <rth@redhat.com>
10690 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
10691 (atomic_alloc, atomic_free): New.
10692 (SIZE, MASK_FOR, PTR_IN): New.
10693 (emergency_reg_state, emergency_reg_state_free): New.
10694 (emergency_labeled_state, emergency_labeled_state_free): New.
10695 (reg_state_alloced, labeled_state_alloced): New.
10696 (alloc_reg_state, free_reg_state): New.
10697 (alloc_label_state, free_label_state, free_label_states): New.
10698 (push, pop, dup_state_stack, free_state_stack): Use them.
10699 (desc_label_state): Likewise.
10700 (uw_frame_state_for): Free label states and state stack.
10701 (uw_update_reg_address): Eliminate warnings.
10703 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
10705 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
10706 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
10708 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
10710 * c-decl.c (grokdeclarator): Update.
10711 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
10712 * c-tree.h (c_mark_addressable): New.
10713 * c-typeck.c (default_function_array_conversion, build_unary_op,
10714 build_array_ref, convert_for_assignment): Update.
10715 (mark_addressable): Rename.
10716 * calls.c (try_to_integrate, expand_call): Use langhook.
10717 * expr.c (expand_expr): Use langhook.
10718 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
10719 * langhooks.h (struct lang_hooks): New hook.
10720 * stmt.c (expand_asm_operands): Use langhook.
10721 * tree.h (mark_addressable): Remove.
10723 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
10725 2002-04-01 Bob Wilson <bob.wilson@acm.org>
10727 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
10728 in previous change.
10730 2002-04-01 Bob Wilson <bob.wilson@acm.org>
10732 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
10733 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
10735 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
10737 * c-common.c (unsigned_conversion_warning, convert_and_check,
10738 unsigned_type, signed_type, shorten_compare,
10739 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
10740 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
10741 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
10743 * c-decl.c (grokdeclarator): Update.
10744 * c-format.c (check_format_types): Update.
10745 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
10746 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
10747 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
10748 * convert.c (convert_to_integer): Use new hooks.
10749 * expmed.c (make_tree): Use new hooks.
10750 * expr.c (store_expr): Use new hooks.
10751 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
10752 all_ones_mask_p, unextend, fold): Use new hooks.
10753 * langhooks.h (struct lang_hooks_for_types): New hooks.
10754 * tree.h (signed_or_unsigned_type, signed_type,
10755 unsigned_type): Remove.
10757 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
10758 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
10760 2002-03-31 Richard Henderson <rth@redhat.com>
10762 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
10763 (desc_frgr_mem): Fix reference to f16-f31.
10765 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10767 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
10768 RTVEC_ELT): Const-ify.
10769 * varray.h (VARRAY_CHECK): Const-ify.
10770 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
10771 ggc_mark_rtvec, ggc_mark): Const-ify.
10773 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
10775 * diagnostic.c: Include langhooks-def.h.
10776 * Makefile.in (diagnostic.o): Update.
10778 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
10780 * c-common.c (c_unsafe_for_reeval): Rename.
10781 * c-common.h (c_unsafe_for_reeval): Rename.
10782 * c-decl.c (finish_incomplete_decl): Rename.
10783 (c_init_decl_processing): Don't set langhook.
10784 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
10785 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
10786 * c-objc-common.c (c_objc_common_init): Don't set langhook.
10787 * c-tree.h (finish_incomplete_decl): Rename.
10788 * langhooks-def.h (lhd_unsafe_for_reeval): New.
10789 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
10790 (LANG_HOOKS_INITIALIZER): Update.
10791 * langhooks.c (lhd_unsafe_For_reeval): New.
10792 * langhooks.h (struct langhooks): New hooks.
10793 * toplev.c (incomplete_decl_finalize_hook): Remove.
10794 (wrapup_global_declarations): Update.
10795 * tree.c (lang_unsafe_for_reeval): Remove.
10796 (unsafe_for_reeval): Update.
10797 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
10800 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
10801 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
10803 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
10805 * diagnostic.c (print_error_function): Remove.
10806 (default_print_error_function): Rename.
10807 (report_error_function): Update.
10808 * diagnostic.h (print_error_function): Remove.
10809 (default_print_error_function): Remove.
10810 * langhooks-def.h (struct diagnostic_context): Predeclare.
10811 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
10812 (LANG_HOOKS_INITIALIZER): Update.
10813 * langhooks.h (struct diagnostic context): Predeclare.
10814 (struct lang_hooks): New hook.
10816 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10818 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
10819 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
10821 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
10822 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
10823 of PIC_OFFSET_TABLE_REGNUM thruout.
10824 * config/rs6000/rs6000.md: Likewise.
10825 * config/rs6000/darwin.h: Likewise.
10827 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10829 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
10830 unsigned HOST_WIDE_INT, not unsigned int.
10832 2002-03-31 Jakub Jelinek <jakub@redhat.com>
10834 PR middle-end/6096, middle-end/6098, middle-end/6099
10835 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
10837 (fill_slots_from_thread): Likewise.
10839 2002-03-31 Jakub Jelinek <jakub@redhat.com>
10841 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
10842 floating fields in float regs.
10843 (function_arg_record_value_2): Likewise.
10845 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
10847 * config/mmix/mmix.md (define_constants): Remove misleading
10848 FIXME. Add MMIX_fp_rO_OFFSET.
10849 ("nonlocal_goto_receiver"): Don't have stack-frame address of
10850 saved rO as part of the pattern. Remove FIXME.
10851 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
10852 here, at output-time.
10854 2002-03-31 Jakub Jelinek <jakub@redhat.com>
10857 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
10859 (output_v9branch): Likewise.
10861 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
10863 * gcc.c: Revert previous patch for now.
10864 * config/i386/djgpp.h: Likewise.
10866 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
10868 * config/mmix/crti.asm (_init): Register _fini with atexit.
10869 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
10871 2002-03-31 Richard Henderson <rth@redhat.com>
10874 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
10875 (ASM_OUTPUT_DEF_FROM_DECLS): New.
10877 2002-03-31 Richard Henderson <rth@redhat.com>
10879 * libgcc2.c (__bb_exit_func): Make static.
10881 * config/alpha/alpha.md (trap): New.
10883 2002-03-31 Richard Henderson <rth@redhat.com>
10885 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
10886 promoted argument types; build trap.
10887 (expand_builtin_trap): New.
10888 (expand_builtin): Use it.
10889 * stmt.c (expand_nl_goto_receivers): Likewise.
10890 * expr.h (expand_builtin_trap): Declare.
10891 * libfuncs.h (LTI_abort, abort_libfunc): New.
10892 * optabs.c (init_optabs): Init abort_libfunc.
10894 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
10896 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
10897 (LINK_COMMAND_SPEC): ... from here.
10898 (init_gcc_specs): Duplicate it here too, omitting
10899 shared_name in the second copy.
10900 (init_spec): Test for duplicate
10901 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
10903 2002-03-30 David S. Miller <davem@redhat.com>
10905 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10906 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
10908 2002-03-30 Roger Sayle <roger@eyesopen.com>
10909 Richard Henderson <rth@redhat.com>
10911 * regmove.c (combine_stack_adjustments_for_block): Avoid
10912 emitting a stack adjustment of zero bytes. Let delete_insn
10915 2002-03-30 Richard Henderson <rth@redhat.com>
10917 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
10918 (sparc_emitting_epilogue): New.
10919 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
10920 * config/sparc/sparc-protos.h: Update.
10921 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
10922 (TARGET_SWITCHES): Update.
10923 * config/sparc/sparc.md (return): Remove.
10924 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
10925 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
10926 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
10927 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
10928 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
10929 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
10930 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
10931 Remove MASK_EPILOGUE.
10932 * doc/invoke.texi: Update.
10934 2002-03-30 Daniel Berlin <dan@dberlin.org>
10936 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
10937 CPP will start the file for us.
10939 2002-03-30 Richard Henderson <rth@redhat.com>
10942 * config/ia64/ia64.c (group_barrier_needed_p): Special case
10943 prologue_allocate_stack.
10944 (ia64_single_set): Use insn codes for recognition of special
10945 cases, not rtl matching.
10946 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
10948 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
10950 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
10952 2002-03-30 Richard Henderson <rth@redhat.com>
10955 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
10956 or -fomit-frame-pointer with profiling.
10957 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
10958 (FUNCTION_PROFILER): Do nothing.
10959 (PROFILE_HOOK): New.
10960 * config/sparc/sparc.c (sparc_override_options): Don't check
10961 code models for profiling.
10962 (sparc_function_profiler): Remove.
10963 (sparc_profile_hook): New.
10964 * config/sparc/sparc-protos.h: Update.
10966 2002-03-30 Jakub Jelinek <jakub@redhat.com>
10968 PR optimization/6086
10969 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
10970 of SUBREG of volatile MEM or because the MEM was mode dependent,
10971 return CLOBBER instead of unmodified SUBREG.
10973 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
10975 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
10976 when not optimizing.
10978 * toplev.c (rest_of_compilation): Cann mark_constant_function
10979 only when optimizing.
10981 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
10984 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
10985 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
10986 (try_optimize_cfg): clear all AUX fields.
10988 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
10989 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
10990 (ix86_address_cost): Be prepared for SUBREGed registers.
10991 (legitimate_address_p): Accept SUBREGed registers.
10993 2002-03-29 Richard Henderson <rth@redhat.com>
10996 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
10998 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11000 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
11001 for aggregate and TFmode types.
11003 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
11005 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
11007 2002-03-29 Richard Henderson <rth@redhat.com>
11010 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
11011 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
11013 2002-03-29 Richard Henderson <rth@redhat.com>
11016 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
11017 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
11018 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
11019 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
11021 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
11023 2002-03-29 Dale Johannesen <dalej@apple.com>
11025 * loop.c (combine_movables): Do allow combination of pseudos.
11027 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
11029 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
11030 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
11031 No functional change except ...
11032 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
11033 * doc/install.texi (*-*-freebsd*): Document port configuration.
11035 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
11037 * Makefile.in (convert.o, calls.o, expmed.o): Update.
11038 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
11040 * builtin-types.def (BT_PTRMODE): Update.
11041 * c-common.c (type_for_size): Rename c_common_type_for_size.
11042 (type_for_mode): Similarly.
11043 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
11045 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
11046 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
11047 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
11049 * c-typeck.c (common_type, comptypes, default_conversion):
11051 * calls.c: Include langhooks.h.
11052 (emit_library_call_value_1): Use new hooks. Avoid redundant
11054 * convert.c: Include langhooks.h
11055 (convert_to_pointer, convert_to_integer): Use new hooks.
11056 * except.c (init_eh): Similarly.
11057 * expmed.c: Include langhooks.h.
11058 (expand_mult_add): Use new hooks.
11059 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
11060 try_casesi): Similarly.
11061 * fold-const.c (optimize_bit_field_compare, make_range,
11062 decode_field_reference, fold_truthop, fold): Similarly.
11063 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
11064 put_var_into_stack): Similarly.
11065 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
11066 LANG_HOOKS_TYPE_FOR_SIZE): New.
11067 (LANG_HOOKS_TYPES_INITIALIZER): Update.
11068 * langhooks.h (lang_hooks_for_types): New hooks.
11069 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
11070 * tree.c (get_unwidened, get_narrower): Similarly.
11071 * tree.h (type_for_mode, type_for_size): Remove.
11072 * varasm.c (force_const_mem): Use new hooks.
11073 * utils2.c (nonbinary_modular_operation): Update.
11075 * objc-act.c (handle_impent): Update.
11076 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
11079 2002-03-29 Steve Ellcey <sje@cup.hp.com>
11081 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
11082 * config/ia64/ia64.c (basereg_operand): New.
11083 * config/ia64/ia64-protos.h (basereg_operand): Declare.
11084 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
11086 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
11088 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
11089 unwind information when frame_pointer_needed.
11090 (mmix_assemble_integer): Tweak wording in comment.
11092 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
11094 * Makefile.in (except.o): Update.
11095 * except.c: Include langhooks.h.
11096 (init_eh): Use langhook.
11097 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
11098 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
11099 (LANG_HOOKS_INITIALIZER): Update.
11100 * langhooks.h (lang_hooks_for_types): New.
11101 (struct lang_hooks): Add it.
11102 * tree.c (make_lang_type_fn, make_lang_type): Remove.
11103 * tree.h (make_lang_type_fn, make_lang_type): Remove.
11105 * alpha/alpha.c: Include langhooks.h.
11106 (alpha_build_va_list): Use langhook.
11107 * d30v/d30v.c: Include langhooks.h.
11108 (d30v_build_va_list): Use langhook.
11109 * i386/i386.c: Include langhooks.h.
11110 (ix86_build_va_list): Use langhook.
11111 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
11112 * s390/s390.c: Include langhooks.h.
11113 (s390_build_va_list): Use langhook.
11114 * stormy16/stormy16.c: Include langhooks.h.
11115 (stormy16_build_va_list): Use langhook.
11117 2002-03-29 Jakub Jelinek <jakub@redhat.com>
11120 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
11122 (length): Compute variable length for branches/calls/jumps here.
11123 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
11124 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
11125 define branch_type attribute.
11126 (divsi3_sp32): Maximum length is 6 not 7.
11127 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
11128 call_address_untyped_struct_value_sp32,
11129 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
11130 * config/sparc/sparc.c (empty_delay_slot): New function.
11131 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
11132 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
11134 2002-03-29 Jakub Jelinek <jakub@redhat.com>
11136 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
11137 nonzero_bits if not needed.
11138 (nonzero_bits) [XOR]: Likewise.
11139 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
11140 reg_last_set_mode and mode are both MODE_INT, but not equal.
11141 (record_value_for_reg): Compute reg_last_set_nonzero_bits
11142 in nonzero_bits_mode for MODE_INT modes.
11144 2002-03-28 Richard Henderson <rth@redhat.com>
11147 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
11148 to GAS. Correct drift between alternatives.
11150 2002-03-28 Richard Henderson <rth@redhat.com>
11153 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
11155 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
11157 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
11158 emulation to the linker.
11160 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
11162 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
11163 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
11165 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
11167 * combine.c (simplify_and_const_int): Make sure to apply mask
11168 when force_to_mode returns a constant integer. PR3311.
11170 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
11172 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
11174 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11176 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
11177 and Objective-C Dialect Options.
11179 2002-03-28 Richard Henderson <rth@redhat.com>
11181 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
11182 comparison should be done vs !=0 not >0 return code. Tidy cases.
11184 2002-03-28 Richard Henderson <rth@redhat.com>
11186 * c-decl.c (finish_function): New arg can_defer_p. Pass it
11187 on to c_expand_body.
11188 * c-tree.h (finish_function): Update decl.
11189 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
11191 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
11193 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
11195 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
11197 * rtlanal.c: Include flags.h
11198 (may_trap_p): Do not mark FP operations if trapping
11199 if !flag_trapping_math
11200 * Makefile.in (rtlanal.o): Add dependency on flag.h
11201 * ifcvt.c (noce_operand_ok): Avoid the lameness.
11203 2002-03-27 Zack Weinberg <zack@codesourcery.com>
11205 * mips.md: Use dconst1, not 1.0, as first argument of
11206 REAL_VALUE_LDEXP. Don't use union real_extract.
11208 2002-03-28 Alan Modra <amodra@bigpond.net.au>
11210 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
11211 rather than $target. Heed program_prefix and
11212 program_transform_name. Search for gas in cross-compiler case too.
11213 "test -x" rather than "test -f".
11214 (gcc_cv_ld): Likewise.
11215 (gcc_cv_nm): Heed program_prefix and program_transform_name.
11216 (gcc_cv_objdump): Likewise.
11217 * configure: Regenerate.
11219 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
11221 * Makefile.in (attribs.o): Update.
11222 * attribs.c: Include langhooks.h.
11223 (decl_attributes): Use langhook.
11224 * c-decl.c (insert_default_attributes): Rename.
11225 * c-tree.h (c_insert_default_attributes): New.
11226 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
11227 (LANG_HOOKS_INITIALIZER): Update.
11228 * langhooks.h (struct lang_hooks): New hook.
11229 * tree.h (insert_default_attributes): Remove.
11231 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
11233 2002-03-27 Andreas Schwab <schwab@suse.de>
11235 * config/i386/i386.c (classify_argument): Also check for
11238 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11240 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
11243 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
11245 * i960.md (ret): Set PC.
11246 (nonlocal_goto): Fix expander.
11247 * builtins.c (epxand_builin_longjmp): Check that we've emitted
11250 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
11252 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
11253 of libcall regions.
11255 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11257 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
11258 assigning to BLOCK_FOR_INSN directly.
11260 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
11262 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
11264 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
11266 * c-common.c (c_expand_expr): Fix prototype.
11267 * c-common.h (c_expand_expr): Always declare, update.
11268 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
11269 * c-objc-common.c (c_objc_common_init): No global hook.
11270 * expr.c (expand_expr): Use langhook.
11271 * expr.h (enum expand_modifier): Conditionally declare.
11272 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
11273 (LANG_HOOKS_INITIALIZER): Update.
11274 * langhooks.c (lhd_expand_expr): New.
11275 * langhooks.h (struct lang_hooks): New hook.
11276 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
11277 (lang_independent_init): Don't default hook.
11279 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
11281 2002-03-27 Richard Henderson <rth@redhat.com>
11284 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
11285 TARGET_CONST_GP. Simplify conditions.
11287 2002-03-27 Richard Henderson <rth@redhat.com>
11289 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
11290 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
11291 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
11293 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
11295 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
11296 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
11297 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
11298 Remove unnecessary masks.
11299 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
11300 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
11301 -mwindows, -mdll switches and their negations.
11303 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
11305 * gcc-common.c (lang_mark_false_label_stack): Remove.
11306 * ggc.h (lang_mark_false_label_stack): Similarly.
11308 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
11310 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
11312 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
11313 or __rtems_ is defined.
11315 2002-03-26 Richard Henderson <rth@redhat.com>
11317 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
11318 if a non-trivial load was emitted.
11319 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
11320 in high+extra+low case.
11322 2002-03-26 Richard Henderson <rth@redhat.com>
11324 * config.gcc (sparc*-solaris): Use float_format=sparc.
11326 2002-03-26 Richard Henderson <rth@redhat.com>
11328 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
11329 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
11330 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
11331 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
11332 (WINT_TYPE_SIZE): Fix at 32.
11334 2002-03-26 Richard Henderson <rth@redhat.com>
11336 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
11337 until after eh landing pad generation.
11338 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
11339 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
11341 2002-03-26 Richard Henderson <rth@redhat.com>
11343 * expr.h (ADD_PARM_SIZE): One more convert for INC.
11345 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
11347 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
11348 and warning switches.
11349 (cc1_options): Likewise.
11351 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
11353 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
11354 Restore more of the signal context. Set no_reg_stack_frame.
11355 * config/ia64/unwind-ia64.c (unw_state_record):
11356 Add no_reg_stack_frame, comments.
11357 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
11358 (uw_update_context): Adjust bsp when unwinding from leaf,
11359 but not signal frame.
11361 2002-03-26 David Edelsohn <edelsohn@gnu.org>
11363 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
11365 2002-03-26 Bob Wilson <bob.wilson@acm.org>
11367 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
11369 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
11372 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
11373 "Add a pool_range attribute", which was lost during the ARM/Thumb
11376 2002-03-26 Bob Wilson <bob.wilson@acm.org>
11378 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
11379 a register into the MAC16 accumulator.
11381 2002-03-26 Andrew Cagney <ac131313@redhat.com>
11383 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
11384 (Warning Options): Document -Wswitch-enum.
11385 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
11387 (warn_switch_enum): Define variables.
11388 * flags.h (warn_switch_enum): Declare variables.
11389 * stmt.c (expand_end_case_type): When warn_switch_enum /
11390 -Wswitch-enum, perform switch checks.
11393 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
11395 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
11396 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
11397 (reload_muladdsi_compare0_scratch): Delete.
11399 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
11401 * doc/install.texi (*-*-freebsd*): Update.
11403 2002-03-26 Richard Henderson <rth@redhat.com>
11405 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
11406 (SUB_PARM_SIZE): Cast DEC to ssizetype.
11408 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
11409 types from the normal argument frame.
11411 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
11412 variable sized objects by reference.
11413 (sparc_va_arg): Receive them by reference too.
11415 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
11417 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
11418 code to not restoring global registers.
11420 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
11422 * Makefile.in (ggc-common.o): Update.
11423 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
11424 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
11425 * c-tree.h (c_mark_tree): New.
11426 * ggc-common.c: Include langhooks.h.
11427 (gcc_mark_trees): Use new langhook.
11428 * ggc-callbacks.c: Delete file.
11429 * ggc.h (lang_mark_tree): Remove.
11430 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
11431 (LANG_HOOKS_INITIALIZER): Update.
11432 * langhooks.h (struct lang_hooks): New hook.
11434 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
11436 2002-03-25 Zack Weinberg <zack@codesourcery.com>
11438 * doc/cpp.texi: Exclude entire Top node from printed manual.
11439 Move option index after directive index. Insert page breaks
11440 before GFDL and concept index. Index environment variables
11441 with command line options.
11442 * doc/cppenv.texi: Use @vtable for environment variable list.
11443 Add paragraph explaining semantics of empty elements in path
11444 variables. Exclude a cross-reference to Fishkill from the
11445 manpage. Remove an unnecessary cross-reference of the entry
11446 right above the referer. Don't use @anchor in text that goes
11448 * doc/cppopts.texi: Cross-reference the environment variables
11449 section, not the specific environment variable, for consistency.
11451 2002-03-25 Richard Henderson <rth@redhat.com>
11453 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
11454 anywhere in the block. Don't refer to insns that have been
11455 removed from the chain. Iterate backward through the new insns.
11456 Don't refer to edges that have been removed.
11458 2002-03-26 Alan Modra <amodra@bigpond.net.au>
11460 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
11461 test for overflow of constant.
11463 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
11466 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
11467 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
11468 these patterns on arm_archv4.
11470 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
11472 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
11475 2002-03-25 Zack Weinberg <zack@codesourcery.com>
11477 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
11478 float_handled, float_handler, float_signal, set_float_handler,
11479 and do_float_handler. Set handler for SIGFPE to crash_signal.
11480 * toplev.h: Don't prototype do_float_handler.
11482 * c-lex.c: Fold parse_float into lex_number. Make warning
11483 about portability of hex float constants more informative, and
11484 don't issue it on top of a syntax error.
11485 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
11487 * real.h: Define REAL_VALUE_ABS here...
11488 * simplify-rtx.c: ... not here. Fold check_fold_consts,
11489 simplify_unary_real, simplify_binary_real, and
11490 simplify_binary_is2orm1 into their callers.
11491 * tree.c: Fold build_real_from_int_cst_1 into caller.
11493 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
11495 * tsystem.h: Include float.h here...
11496 * libgcc2.c: ... not here.
11498 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
11500 Fixes for: PR bootstrap/3591, target/5676
11501 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
11502 defined. Do not disable exceptions or rtti.
11503 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
11504 mcore.h. Disable exceptions and rtti, since they are not
11507 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
11509 * c-decl.c (maybe_build_cleanup): Remove.
11510 * expr.c (expand_expr): Use langhook.
11511 * langhooks-def.h (lhd_return_null_tree,
11512 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
11513 (LANGHOOKS_INITIALIZER): Update.
11514 * langhooks.c (lhd_return_null_tree): New.
11515 * langhooks.h (struct lang_hooks): New hook.
11516 * tree-inline.c (initialize_inlined_parameters): Use langhook.
11517 * tree.h (maybe_build_cleanup): Remove.
11519 2002-03-25 Jakub Jelinek <jakub@redhat.com>
11521 * regrename.c (build_def_use): Move recog_memoized
11522 before extract_insn.
11524 2002-03-25 Jakub Jelinek <jakub@redhat.com>
11527 * expr.c (emit_group_store): Handle storing into CONCAT.
11529 2002-03-25 Jakub Jelinek <jakub@redhat.com>
11531 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
11532 corresponding MATCH_DUP.
11534 2002-03-24 Richard Henderson <rth@redhat.com>
11536 * unroll.c (unroll_loop): Zero label_map.
11538 * gcse.c: Include except.h.
11539 * Makefile.in (gcse.o): Update.
11541 2002-03-24 Richard Henderson <rth@redhat.com>
11543 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
11544 Do resolve_unique_section before shared data clause.
11546 2002-03-24 Richard Henderson <rth@redhat.com>
11548 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
11550 2002-03-24 Richard Henderson <rth@redhat.com>
11552 * recog.c (peephole2_optimize): Split blocks when EH insns are
11553 generated in the middle of a block. Do global life update if
11556 2002-03-24 Richard Henderson <rth@redhat.com>
11558 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
11560 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
11563 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
11564 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
11565 (init_dependency_output): Don't make no_output decision here.
11567 2002-03-24 Andrew Cagney <ac131313@redhat.com>
11569 * stmt.c (check_for_full_enumeration_handling): Remove tests of
11570 warn_switch. Update description.
11571 (expand_end_case_type): Call check_for_full_enumeration_handling
11574 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11576 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
11577 (m68hc11_split_move): Call it to see if the source and destination
11578 operands use the same direction auto inc/dec mode, otherwise make the
11579 source an offsetable memory operand and generate an add.
11581 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11583 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
11584 register for operand 2.
11585 ("*subsi3_zero_extendqi"): Likewise.
11586 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
11587 bits so that it is compatible with a pop.
11588 ("*andhi3_gen"): Likewise.
11589 ("xorhi3"): Likewise.
11591 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
11593 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
11595 (cpp_post_options): ... not here.
11597 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
11598 Aldy Hernandez <aldyh@redhat.com>
11600 Removal of separate preprocessor cpp0.
11602 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
11603 cpp0, install-common): Update.
11604 * c-common.c (flag_preprocess_only): New.
11605 (c_common_init): Preprocess for -E.
11606 * c-common.h (flag_preprocess_only): New.
11607 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
11608 * c-objc-common.c (c_init_decl_processing): Exit quickly
11609 for NULL return from c_common_init.
11610 * cpplib.h (cpp_preprocess_file): New.
11611 * cppmain.c (main, general_init, pfile, progname): Remove.
11612 (do_preprocessing): Rename cpp_preprocess_file, don't call
11613 cpp_finish. Don't close stdout here.
11614 (setup_callbacks): Update prototype.
11615 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
11617 * tradcpp.c (main): Ignore -quiet.
11619 * lang-specs.h (default_compilers): Preprocess with cc1obj.
11621 2002-03-24 Richard Henderson <rth@redhat.com>
11623 PR optimization/5742
11624 * machmode.def: Add inner mode field to complex modes.
11625 * config/mips/mips.c (mips_function_value): Always define. Add
11626 new argument to handle libcalls.
11627 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
11628 (FUNCTION_VALUE): Likewise.
11629 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
11630 * config/mips/mips-protos.h: Update.
11632 2002-03-23 Richard Henderson <rth@redhat.com>
11634 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
11635 * config/sparc/sparc-protos.h: Update.
11636 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
11638 2002-03-23 Richard Henderson <rth@redhat.com>
11640 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
11641 _start or _init begins the text segment.
11643 2002-03-23 David Edelsohn <edelsohn@gnu.org>
11645 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
11646 not HOST_WIDEST_INT.
11647 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
11649 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
11652 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
11653 operand argument to output_return_instruction.
11654 * arm.c (arm_print_operand, case 'd'): If the operand is
11655 const_true_rtx then just return.
11656 (arm_print_operand, case 'D'): If the operand is const_true_rtx
11659 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11661 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
11662 (Warning Options): Document -Wswitch-default.
11663 * toplev.c (W_options): Add -Wswitch-default. Update comment on
11665 (warn_switch_default): Define variable.
11666 (warn_switch): Update comment.
11667 * flags.h (warn_switch_default): Declare variable.
11668 (warn_switch): Update comment.
11669 * stmt.c (expand_end_case): Check for and, when
11670 warn_switch_no_default, warn of a missing default case.
11672 2002-03-23 Alan Modra <amodra@bigpond.net.au>
11674 * real.h (N): Special case 128 bit doubles.
11676 * combine.c (simplify_comparison): When widening modes, ignore
11677 sign extension on CONST_INTs.
11679 2002-03-22 Bob Wilson <bob.wilson@acm.org>
11681 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
11682 passed to adjust_address. Fix comment formatting.
11685 2002-03-22 Zack Weinberg <zack@codesourcery.com>
11687 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
11688 Always make REAL_VALUE_TYPE a struct containing an array of
11689 HOST_WIDE_INT, not a double. Tidy up the code deciding how
11690 big it is. Don't declare or use union real_extract.
11692 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
11693 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
11694 (print_operand), config/arm/arm.c (output_move_double),
11695 config/arm/arm.md (consttable_4, consttable_8),
11696 config/romp/romp.c (output_fpops), config/s390/s390.h
11697 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
11698 (xtensa_output_literal): Don't use union real_extract.
11700 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
11701 (sfmode_constant_to_ulong), config/ns32k/merlin.h
11702 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
11703 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
11704 (PRINT_OPERAND): Don't use local version of union
11707 * config/convex/convex.c (check_float_value), config/vax/vax.c
11708 (vax_float_literal), config/m88k/m88k.md (divdf3),
11709 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
11710 config/pdp11/pdp11.c (output_move_quad): Don't do host
11711 arithmetic on target floating point quantities.
11713 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
11714 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
11716 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
11717 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
11719 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
11720 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
11722 * print-rtl.c (print_rtx): Disable code which needs
11723 floating-point emulator.
11724 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
11725 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
11726 depending on HOST_FLOAT_FORMAT to be defined properly.
11728 * config/1750a/1750a.c (get_double, float_label): Delete.
11729 (print_operand): Delete huge commented-out chunk. Use
11730 REAL_VALUE_TO_DECIMAL.
11731 * config/1750a/1750a-protos.h: Delete prototypes of deleted
11733 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
11735 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
11736 Use REAL_VALUE_TO_DECIMAL as ELF version does.
11737 * config/m88k/m88k.c (real_power_of_2_operand,
11738 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
11739 real_extract out of the union; run the input through
11740 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
11741 from that into the union.
11742 * config/pdp11/pdp11.c (output_move_double): Rearrange
11743 parentheses to make automatic indenter happy.
11745 * doc/tm.texi (Cross-compilation): Rename node to "Floating
11746 Point" and rewrite to describe current situation. Also adjust
11747 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
11749 * doc/rtl.texi: Adjust cross reference.
11751 2002-03-22 Bob Wilson <bob.wilson@acm.org>
11753 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
11754 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
11755 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
11756 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
11757 prevent use of sp as a reload register.
11758 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
11759 non_acc_reg_operand.
11760 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
11761 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
11762 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
11763 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
11765 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
11767 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
11768 * cpplex.c (unterminated): Delete.
11769 (parse_string): No string literal may extend over multiple
11770 lines. Suppress the error when preprocessing assembly.
11771 * cppmain.c (scan_translation_unit): Strings are single-line.
11773 * doc/cpp.texi: Update to match.
11775 2002-03-22 Jakub Jelinek <jakub@redhat.com>
11777 PR optimization/5854
11778 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
11780 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
11781 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
11782 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
11783 const0 if scratch register was not allocated.
11784 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
11785 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
11786 with GEN_INT (...).
11787 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
11788 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
11789 with GEN_INT (...) everywhere. Remove constraints in define_split
11791 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
11792 require scratch register for setting 0 into regs/non-pushable memory.
11794 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
11796 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
11797 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
11799 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
11801 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
11802 * cppinit.c (cpp_create_reader): On by default.
11803 (cpp_handle_option): Handle -W[no-]endif-labels.
11804 (cpp_post_options): Also enable if -pedantic.
11805 * cpplib.c (do_else): Use it.
11806 (do_endif): Likewise.
11807 * doc/cppopts.texi: Document new option.
11808 * doc/invoke.texi: Document new option.
11810 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
11812 * config/i386/i386.c, config/i386/i386.md: Change all occurences
11813 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
11815 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
11817 * flow.c (calculate_global_regs_live): Clear aux fields of
11820 2002-03-22 Jakub Jelinek <jakub@redhat.com>
11822 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
11823 REG or MEM subregs, pass rtx * instead of rtx to it.
11824 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
11825 rtx * instead of rtx to alter_subreg.
11826 * config/m32r/m32r.c (gen_split_move_double): Likewise.
11827 * config/pj/pj.c (pj_output_rval): Likewise.
11829 2002-03-22 Richard Henderson <rth@redhat.com>
11832 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
11833 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
11834 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
11835 (ia64_expand_prologue): Look at int_regs, not words, for number
11836 of incomming int regs.
11838 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
11840 * expr.c (expand_expr): A RESULT_DECL is part of a call.
11842 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
11844 * toplev.c (flag_loop_optimize, flag_crossjumping):
11845 New static variables.
11846 (rest_of_compilation): Conditionalize crossjumping and
11848 (parse_options_and_default_flags): Default loop_optimize and
11850 (lang_independent_options): Add -fcrossjumping and -floop-optimize
11851 * invoke.texi (crossjumping, loop-optimize): Document.
11853 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
11855 * real.c (eiisneg): Move outside #ifdef NANS.
11857 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
11859 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
11860 frequencies match; avoid match on different loop depths.
11861 (try_crossjump_to_bb): Kill tests that no longer brings time
11863 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
11865 (split_edge): Likewise.
11867 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
11870 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
11871 * cfgrtl.c: Include insn-config.h
11872 (split_block) Dirtify block in presence of conditional execution
11874 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
11876 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
11877 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
11878 (function_arg): Constify CUMULATIVE_ARGS.
11879 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
11880 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
11881 (UNITS_PER_DOUBLE): New macro.
11882 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
11883 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
11884 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
11885 fp_regs and stack_words.
11886 (EABI_FLOAT_VARARGS_P): New macro.
11887 * config/mips/mips.c (struct mips_arg_info): New.
11888 (mips_arg_info): New function.
11889 (function_arg_advance): Use it. Add adjustment instructions here
11890 rather than in function_arg.
11891 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
11892 for VOIDmode at the beginning of the function.
11893 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
11894 (function_arg_pass_by_reference): Likewise.
11895 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
11896 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
11897 (mips_va_start): Likewise. Use the new stack_words field of
11898 CUMULATIVE_ARGS to set up overflow area. Reformat.
11899 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
11900 doubles and other types, aligning the overflow pointer for non-doubles
11901 too. Remove some code duplication. Replace hard-coded constants.
11903 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
11905 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
11906 (CLASS_UNITS): Undefine.
11907 (CLASS_MAX_NREGS): Use FP_INC.
11908 * config/mips/mips.c (compute_frame_size): Likewise.
11909 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
11911 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
11913 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
11914 prototype, and handle lexing numbers and identifiers.
11915 (parse_identifier): Update to new form of parse_slow.
11916 (parse_number): Fast path only, use parse_slow otherwise.
11917 (_cpp_lex_direct): Update calls to parse_number.
11919 2002-03-21 DJ Delorie <dj@redhat.com>
11921 * bb-reorder.c (make_reorder_chain_1): Protect against
11922 when redundant edges are omitted.
11923 * predict.c (dump_prediction): Likewise.
11925 2002-03-21 Richard Henderson <rth@redhat.com>
11928 * fixinc/inclhack.def (solaris_stdio_tag): New.
11929 * fixinc/fixincl.x: Regenerate.
11931 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
11934 * c-typeck.c (process_init_element): Flag non-static
11935 initialization of a flexible array member as illegal.
11937 2002-03-22 Alan Modra <amodra@bigpond.net.au>
11939 * config/rs6000/t-linux64: New.
11940 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
11941 t-ppccomm. Use t-rs6000 and t-linux64.
11942 (powerpc64-*-gnu* <tmake_file>): Likewise.
11943 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
11944 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
11945 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
11947 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
11949 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
11950 flag_really_no_inline instead of optimize == 0.
11952 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
11954 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
11956 * flags.h (flag_really_no_inline): New.
11958 * c-common.c (c_common_post_options): Initialize
11959 flag_really_no_inline.
11961 * toplev.c (flag_really_no_inline): New.
11963 2002-03-21 Jakub Jelinek <jakub@redhat.com>
11965 * config/avr/avr.md (length): Fix length computation for
11966 conditional branches.
11968 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
11970 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
11971 sdbout.o, profile.o): Update.
11972 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
11974 * c-common.h (gettags): Move here from tree.h.
11975 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
11976 insert_block, getdecls, kept_level_p, global_bindings_p): New.
11977 * dbxout.c (dbxout_init): Use getdecls langhook.
11978 * expr.c (expand_expr): Use insert_block langhook.
11979 * fold-const.c: Include langhooks.h.
11980 (fold_range_test, fold_binary_op_with_conditional_arg,
11981 fold): Use global_bindings_p langhook.
11982 * integrate.c (expand_inline_function): Use insert_block langhook.
11983 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
11984 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
11985 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
11986 LANG_HOOKS_GETDECLS): New.
11987 (LANG_HOOKS_INITIALIZER): Update.
11988 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
11990 * langhooks.h (struct lang_hooks_for_decls): New.
11991 (struct lang_hooks): Update.
11992 * profile.c: Include langhooks.h.
11993 (output_func_start_profiler): Use new langhooks.
11994 * sdbout.c: Include langhooks.h.
11995 (sdbout_init, sdbout_finish): Use getdecls langhook.
11996 * stmt.c: Include langhooks.h.
11997 (expand_fixup, fixup_gotos): Use new langhooks.
11998 * stor-layout.c: Include langhooks.h.
11999 (variable_size): Use global_bindings_p langhook.
12000 * toplev.c (compile_file): Use getdecls langhook.
12001 * tree-inline.c (remap_block): Use insert_block langhook.
12002 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
12003 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
12005 2002-03-21 Richard Henderson <rth@redhat.com>
12007 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
12008 constants in .data when -fpic.
12010 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12012 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
12015 2002-03-21 Tom Tromey <tromey@redhat.com>
12017 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
12019 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12021 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
12023 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
12025 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
12026 Richard Henderson <rth@redhat.com>
12029 * c-common.c (c_expand_expr): Preserve result of a statement
12030 expression if needed.
12032 2002-03-21 Jakub Jelinek <jakub@redhat.com>
12035 * genrecog.c (maybe_both_true_mode): Remove.
12036 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
12037 * machmode.def (Pmode): Likewise.
12039 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
12041 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
12042 (nonlocal_mentioned_p_1): New function.
12043 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
12044 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
12045 (mark_constant_function): Recognize pure functions.
12046 * rtl.h (global_reg_mentioned_p): New prototype.
12047 * rtlanal.c (global_reg_mentioned_p,
12048 global_reg_mentioned_p_1): New function.
12050 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12052 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
12054 * fixinc/fixincl.x: Regenerate.
12056 2002-03-20 Jason Merrill <jason@redhat.com>
12058 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
12060 2002-03-20 Michael Meissner <meissner@redhat.com>
12062 * doc/invoke.texi (Optimize Options): Document that -O2 sets
12065 2002-03-20 Bob Wilson <bob.wilson@acm.org>
12067 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
12068 ".literal_position" directive before the constant pool.
12070 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12072 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
12073 Add Craig Rodrigues.
12074 Add Brad Lucier to testers.
12076 2002-03-20 Jakub Jelinek <jakub@redhat.com>
12079 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
12081 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
12082 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
12083 instead of insn_extract.
12085 2002-03-20 Jakub Jelinek <jakub@redhat.com>
12088 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
12090 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
12091 stmt if some case has been output.
12093 2002-03-20 Jakub Jelinek <jakub@redhat.com>
12096 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
12097 movsfcc_1, movdfcc_1): Add %O2.
12098 * config/i386/i386.c (print_operand): Handle %ON.
12099 Print . before float condition codes in Sun as cmov syntax.
12100 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
12101 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
12104 2002-03-20 Philip Blundell <pb@nexus.co.uk>
12106 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
12107 return instruction if PC was popped.
12109 2002-03-20 Bob Wilson <bob.wilson@acm.org>
12111 * config/xtensa/xtensa.md: Remove unused type attributes.
12112 (adddi_carry, subddi_carry): Change type attribute to "multi".
12114 2002-03-19 Dale Johannesen <dalej@apple.com>
12116 PR optimization/5999, middle-end/5731
12117 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
12118 multiplications by reciprocals.
12120 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
12122 * Makefile.in: Update.
12123 * c-common.c: Include langhooks.h.
12124 (inline_forbidden_p): Use new hook.
12125 * diagnostic.c: Include langhooks.h.
12126 (format_with_decl, announce_function,
12127 default_print_error_function): Use new hook.
12128 * dwarf2out.c (dwarf2_name): Use new hook.
12129 * function.c: Include langhooks.h.
12130 (init_function_start): Use new hook.
12131 * langhooks-def.h (lhd_decl_printable_name): New.
12132 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
12133 (LANGHOOKS_INITIALIZER): Update.
12134 * langhooks.c (lhd_decl_printable_name): New.
12135 * langhooks.h (struct lang_hooks): New hook.
12136 * toplev.c (decl_name, decl_printable_name): Remove.
12137 (open_dump_file): Use new hook.
12138 (process_options): Remove old hook.
12139 * tree.h (decl_printable_name): Remove.
12141 * objc-act.c (objc_init): Remove old hook.
12142 (objc_printable_name): Export.
12143 * objc-act.h (objc_printable_name): New.
12144 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
12146 2002-03-19 Jim Blandy <jimb@redhat.com>
12148 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
12149 the start_source_file debug hook, not the current line number.
12151 2002-03-19 Richard Henderson <rth@redhat.com>
12153 * flow.c (EH_USES): Provide default.
12154 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
12155 * doc/tm.texi (EH_USES): New.
12157 * config/ia64/ia64.c (ia64_eh_uses): New.
12158 * config/ia64/ia64-protos.h: Update.
12159 * config/ia64/ia64.h (EH_USES): New.
12161 2002-03-19 Richard Henderson <rth@redhat.com>
12163 * varasm.c (output_constant_def): Fix stupid typo.
12165 2002-03-19 Richard Henderson <rth@redhat.com>
12168 * except.c (current_function_has_exception_handlers): New.
12169 * except.h: Declare it.
12170 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
12171 Combine tests that disable all sibcalls for the function.
12173 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
12175 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
12178 2002-03-19 Richard Henderson <rth@redhat.com>
12181 * config/ia64/ia64.c: Revert 2002-03-01 patch.
12182 * config/ia64/ia64.h (INIT_EXPANDERS): New.
12184 2002-03-19 Jim Blandy <jimb@redhat.com>
12186 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
12187 name, even if the replacement list contains no tokens, as required
12190 2002-03-19 Jason Merrill <jason@redhat.com>
12192 * varasm.c (globalize_decl): Get the name from the RTL, not
12193 DECL_ASSEMBLER_NAME.
12195 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
12197 2002-03-19 Bob Wilson <bob.wilson@acm.org>
12199 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
12200 subdi_carry): Define.
12202 2002-03-19 David Edelsohn <edelsohn@gnu.org>
12204 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
12205 about -fpic/-fPIC if extra_warnings set.
12207 2002-03-19 David Edelsohn <edelsohn@gnu.org>
12209 * expr.c (expand_expr): Sign-extend CONST_INT generated from
12210 TREE_STRING_POINTER.
12211 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
12213 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12215 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
12216 in favor of SP if FRAME_POINTER_REQUIRED is false.
12218 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
12220 * emit-rtl.c (gen_int_mode): New function.
12221 * rtl.h: Prototype for it.
12222 * combine.c (make_extraction, simplify_comparison), expmed.c
12223 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
12224 (convert_modes, store_field), optabs.c (expand_fix),
12225 simplify-rtx.c (neg_const_int, simplify_unary_real),
12227 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
12228 Use it instead of GEN_INT (trunc_int_for_mode (...)).
12230 2002-03-19 Jakub Jelinek <jakub@redhat.com>
12233 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
12234 convert_parm_for_inlining.
12235 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
12237 * langhooks-def.h: Likewise.
12238 * objc/objc-lang.c: Likewise.
12239 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
12241 * tree-inline.c (initialize_inlined_parameters):
12242 Call convert_parm_for_inlining lang hook if needed.
12243 * c-typeck.c (c_convert_parm_for_inlining): New function.
12244 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
12246 2002-03-18 Mark Mitchell <mark@codesourcery.com>
12248 * calls.c (precompute_arguments): Do not assume that temporaries
12249 can be destroyed after expanding the argument.
12250 (expand_call): Likewise.
12252 2002-03-15 Eric Christopher <echristo@redhat.com>
12254 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
12255 Fix register preference on last change.
12256 * config/mips/mips.c (mips_return_in_memory): New function.
12257 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
12258 * config/mips/mips-protos.h: Declare.
12259 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
12260 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
12262 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
12264 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
12266 (anddi3, iorsi3): Likewise.
12268 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
12269 use %gprel for symbols that are going to be placed in linkonce
12272 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
12273 RETURN_ADDRESS_POINTER_REGNUM to $ra.
12274 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
12275 not needed. Disregard leaf_function_p().
12276 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
12277 mips16 frame pointer.
12278 * config/mips/mips.md (store ra): Only to small SP offsets.
12279 2001-08-22 Graham Stott <grahams@redhat.com>
12280 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
12281 return a REG rtx for the return address register.
12283 2002-03-18 Bob Wilson <bob.wilson@acm.org>
12285 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
12286 constant-pool addresses as "mode-dependent".
12287 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
12289 2002-03-18 Jakub Jelinek <jakub@redhat.com>
12292 * expr.c (emit_group_load): Use extract_bit_field if
12293 needed for CONCAT arguments.
12295 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
12298 * arm.md (tablejump): Make this a define_expand. For PIC add the
12299 offset to the base of the table.
12300 (thumb_tablejump): Matcher for Thumb tablejump insn.
12301 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
12302 as the difference of two labels.
12303 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
12304 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
12305 tables in the code.
12306 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
12307 * arm.c (get_jump_table_size): If the table is not in the text
12308 section, return zero.
12310 2002-03-18 Bernd Schmidt <bernds@redhat.com>
12312 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
12314 (arm_reload_out_hi): Use gen_lowpart instead of
12315 gen_rtx_SUBREG to access QImode components.
12316 * config/arm/arm.md: Disable zero_extend split for QImode
12317 subregs in BIG_ENDIAN mode.
12318 (storehi_bigend): Match use of least significant byte.
12319 (storeinthi): Remove extraneous SUBREG.
12320 Add missing construction of operands[2].
12321 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
12322 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
12323 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
12325 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
12327 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
12330 2002-03-17 Richard Henderson <rth@redhat.com>
12332 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
12335 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
12337 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
12338 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
12340 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12342 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
12344 * predict.c (estimate_bb_frequencies): Delete unused variables.
12346 2002-03-17 Richard Henderson <rth@redhat.com>
12348 * config/ia64/ia64.c (ia64_attribute_table): Move before
12349 targetm definition. Make static.
12351 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
12353 * c-common.h (yyparse, c_common_parse_file): New.
12354 * c-lang.c: Include c-common.h.
12355 (LANG_HOOKS_PARSE_FILE): Redefine.
12356 * c-lex.c: Include c-common.h.
12357 (yyparse): Rename c_common_parse_file. Call yyparse.
12358 * c-parse.in (yyparse): Remove macro.
12359 * c-tree.h (yyparse_1): Remove.
12360 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
12361 (LANG_HOOKS_INITIALIZER): Update.
12362 * langhooks.h (struct lang_hoooks): New hook parse_file.
12363 * toplev.c (compile_file): Use parse_file hook.
12364 * tree.h (yyparse): Remove.
12365 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
12367 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
12369 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
12370 float_truncate, not fix.
12371 ("*truncdfsf2_real"): Ditto.
12372 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
12374 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
12376 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
12378 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
12379 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
12380 where appropriate. Make the second reference to
12381 leaf_function_p a function call, as intended. Reindented.
12383 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
12384 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
12386 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
12387 add register to non-constant into sp.
12389 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
12390 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
12391 (mips16_gp_pseudo_rtx): Lose.
12392 (INIT_EXPANDERS): Deleted.
12393 * config/mips/mips.c (mips_init_machine_status): New.
12394 (mips_free_machine_status): New.
12395 (mips_mark_machine_status): New.
12396 (override_options): Set them.
12397 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
12398 (struct machine_function): ... new. Replaced all references.
12399 (mips_add_gc_roots): Don't mark them.
12400 (embedded_pic_fnaddr_reg): New, extracted from...
12401 (embedded_pic_offset): ... here.
12402 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
12405 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
12407 * cppinit.c: Revert -MD removal.
12409 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12411 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
12412 soft registers by default for 68HC12.
12413 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
12414 when compiling with -fomit-frame-pointer.
12415 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
12416 (expand_epilogue): Likewise.
12417 (m68hc11_gen_rotate): Use exg when rotating by 8.
12419 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12421 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
12422 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
12423 (splits): Remove unused add splits.
12424 ("*addhi3_68hc12"): Tune constraints.
12425 ("addhi_sp"): Try to use X instead of Y in all cases and if the
12426 constant fits in 8-bits and D is dead use abx/aby instructions.
12427 ("*addhi3"): Remove extern declaration of ix_reg.
12428 ("*subsi3"): Optimize and provide new split.
12429 ("subhi3"): Cleanup.
12430 ("*subhi3_sp"): Avoid saving X if we know it is dead.
12431 (arith splits): For 68hc12 save the address register on the stack
12432 and do the arithmetic operation with a pop.
12434 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12436 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
12437 allocating QImode in address registers.
12438 ("*movqi_m68hc11"): Likewise.
12440 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
12442 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
12444 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
12446 * cppinit.c (print_help): Display -MD and -MMD.
12447 Don't display usage string. Update assertion syntax and
12449 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
12450 (cpp_handle_option): Update.
12452 2002-03-15 Chris Demetriou <cgd@broadcom.com>
12454 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
12455 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
12456 and define it so that regardless of target CPU size,
12457 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
12458 of "int" rather than "long."
12460 2002-03-15 Richard Henderson <rth@redhat.com>
12462 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
12465 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12467 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
12468 ("tstqi" split): Avoid using memory for tstqi on address register.
12469 (splits): Remove constraints.
12470 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
12471 ("cmpdf", "cmpsf"): Remove since not used.
12472 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
12473 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
12475 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12477 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
12478 ("neghi2"): Tighten constraints.
12479 ("one_cmplsi2"): Optimize and simplify split.
12480 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
12482 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12484 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
12485 and split of AND operation to clear the upper bits.
12486 ("*logicalsi3_zextqi"): Likewise.
12487 ("*logicallhi3_zexthi_ashift8"): Likewise.
12488 ("*logicalsi3_silshr16"): Likewise.
12489 ("logicalsi3_silshl16"): Likewise.
12490 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
12492 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12494 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
12495 (m68hc11_indirect_p): New function.
12496 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
12497 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
12499 (asm_print_register): Likewise.
12500 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
12501 (m68hc11_indirect_p): Declare.
12502 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
12503 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
12504 (TARGET_SWITCHES): New option -mrelax.
12505 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
12507 ("iorsi3", "xorsi3"): Likewise.
12508 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
12509 ("*andhi3_mem"): New to handle destination in memory with bclr
12510 and a scratch register.
12511 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
12512 ("*andhi3_const"): New when operand2 is constant.
12513 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
12514 ("*andhi3_gen"): Cleanup of the old "andhi3".
12515 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
12516 ("xorqi3"): Update constraints.
12518 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12520 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
12521 for reg_equiv_memory_loc when the operand is a register that does
12522 not get a hard register (stack location).
12523 (tst_operand): After reload, accept all memory operand.
12524 (symbolic_memory_operand): Fix detection of symbolic references.
12525 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
12526 accept symbols and any constant.
12528 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12530 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
12531 note on the insn that sets the soft frame register.
12532 (must_parenthesize): ix and iy are also reserved names.
12533 (print_operand_address): One more place where parenthesis are required
12534 to avoid confusion with register names.
12535 (m68hc11_gen_movhi): Allow push of stack pointer.
12536 (m68hc11_check_z_replacement): Fix handling of parallel with a
12538 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
12539 the replacement register is.
12540 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
12541 and D8_REGS classes.
12542 (MODES_TIEABLE_P): All modes are tieable except QImode.
12544 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12546 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
12547 (___subdi3): Likewise.
12548 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
12549 (__map_data_section): Optimize 68hc11 case.
12551 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12553 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
12554 than a shift to avoid adding a register with itself.
12555 (m68hc11_memory_move_cost): Take into account NO_REGS.
12556 (m68hc11_register_move_cost): Update and use memory move cost
12557 for soft registers.
12558 (m68hc11_address_cost): Make cost of valid offset not 0 so that
12559 it gives more opportunities to cse to optimize.
12560 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
12561 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
12563 2002-03-15 Mark Mitchell <mark@codesourcery.com>
12565 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
12566 * c-common.def (CLEANUP_STMT): New tree node.
12567 * c-common.h (CLEANUP_DECL): New macro.
12568 (CLEANUP_EXPR): Likewise.
12569 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
12570 * expr.c (expand_expr): Tidy.
12571 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
12572 * tree-inline.c (initialize_inlined_parameters): Clean up
12573 new local variables.
12575 2002-03-15 Jakub Jelinek <jakub@redhat.com>
12578 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
12579 before movrXX only, use reg_overlap_mentioned_p.
12580 Only special case NE if just one insn can be generated.
12582 2002-03-15 Jason Merrill <jason@redhat.com>
12584 * varasm.c (assemble_variable): Call resolve_unique_section before
12585 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
12586 of error_mark_node.
12588 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
12591 * arm.md (split pattern for thumb shiftable immediates): Add comment
12592 explaining non-obvious test.
12594 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
12597 * arm.md (movaddr, movaddr_insn): Delete.
12599 2002-03-15 Jason Merrill <jason@redhat.com>
12601 * toplev.c (wrapup_global_declarations): Clarify variable handling.
12602 -fkeep-static-consts doesn't apply to comdats.
12604 2002-03-14 Richard Henderson <rth@redhat.com>
12606 * c-decl.c: Include c-pragma.h.
12607 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
12608 (finish_function): Tidy.
12609 * c-pragma.c: Include c-common.h.
12610 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
12611 (handle_pragma_weak): Use them.
12612 (init_pragma): Register pending_weaks.
12613 * c-pragma.h (maybe_apply_pragma_weak): Declare.
12614 * print-tree.c (print_node): Print DECL_WEAK.
12615 * varasm.c (mark_weak_decls): Remove.
12616 (remove_from_pending_weak_list): Remove.
12617 (add_weak): Remove.
12618 (asm_emit_uninitialised): Call globalize_decl for weak commons.
12619 (weak_decls): Make a tree_list.
12620 (declare_weak): Cons weak_decls directly.
12621 (globalize_decl): Remove weak_decls elements directly.
12622 (weak_finish): Simplify weak_decls walk. Don't weaken unused
12623 symbols. Don't pretend to handle aliases.
12624 (init_varasm_once): Update weak_decls registry.
12625 * Makefile.in: Update dependencies.
12627 2002-03-14 Richard Henderson <rth@redhat.com>
12630 * config/ia64/ia64.c: Include tm_p.h last.
12631 (gen_nop_type): Remove duplicate definition.
12632 (cycle_end_fill_slots): Set sched_data for second L slot.
12633 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
12634 (nop_cycles_until): Fix typos.
12636 2002-03-15 Jakub Jelinek <jakub@redhat.com>
12638 PR optimization/5891
12639 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
12641 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
12643 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
12644 descriptors correctly.
12646 2002-03-14 Michael Meissner <meissner@redhat.com>
12648 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
12649 100, allowing MAX_UNROLLED_INSNS to be overridden.
12651 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
12654 * unroll.c (params.h): Include.
12655 (MAX_UNROLLED_INSNS): Delete, now in params.h.
12657 * doc/invoke.texi (--param max-unroll-insns): Document.
12659 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
12661 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
12663 * arm.md: Fix warnings about constraints in peepholes and splits.
12665 2002-03-14 Zack Weinberg <zack@codesourcery.com>
12667 * cpphash.h (struct lexer_state): Remove line_extension member.
12668 * cpplib.c (dequote_string, do_linemarker): New functions.
12669 (linemarker_dir): New data object.
12670 (DIRECTIVE_TABLE): No longer need to interpret #line in
12671 preprocessed source. Delete obsolete comment about return
12672 values of handlers.
12673 (end_directive, directive_diagnostics, _cpp_handle_directive):
12674 Don't muck with line_extension.
12675 (directive_diagnostics): No need to issue warnings for
12677 (_cpp_handle_directive): Issue warnings for linemarkers here,
12678 when appropriate. Dispatch linemarkers to do_linemarker, not
12680 (do_line): Code to handle linemarkers split out to do_linemarker.
12681 Convert escape sequences in filename argument, both places.
12683 * cppmacro.c (quote_string): Rename cpp_quote_string and
12684 export. All callers changed.
12685 * cpplib.h (cpp_quote_string): Prototype.
12686 * cppmain.c (print_line): Call cpp_quote_string on to_file
12687 before printing it.
12689 * doc/cpp.texi: Document that escapes are now interpreted in
12690 #line and in linemarkers, and that non-printing characters are
12691 converted to octal escapes when linemarkers are generated.
12693 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
12695 * emit-rtl.c (try_split): Use delete_insns.
12696 * recog.c (split_all_insns): Fix terminating condition.
12698 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
12699 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
12702 * arm.c (arm_output_epilogue): Fix floating-point register save
12703 adjustment when using a frame pointer.
12705 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
12707 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
12708 * config/mips/mips.c (compute_frame_size): Retrofit them here.
12709 (save_restore_insns, mips_expand_epilogue): And here.
12710 (build_mips16_call_stub): And here.
12711 (mips_function_value): Use the new macros to decide whether a single
12712 or complex float can be returned in floating-point registers. Return
12713 a parallel rtx in the complex case.
12715 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
12717 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
12718 call after liveness analysis.
12720 * recog.c (split_insn): Use delete_insn_and_edges.
12722 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
12723 instructions to have branch prediction notes.
12724 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
12726 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
12728 * configure.in: Don't pass -Wno-long-long to a ADA compiler
12729 that doesn't support it.
12730 * configure: Regenerate.
12732 2002-03-13 Jakub Jelinek <jakub@redhat.com>
12735 * config/sparc/sparc.md (normal_branch, inverted_branch,
12736 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
12737 inverted_fp_branch): Adjust calls to output_cbranch.
12738 Set length attribute.
12739 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
12740 output_v9branch. Set length attribute.
12741 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
12743 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
12744 (output_cbranch): Likewise. Handle far branches.
12745 (output_v9branch): Handle far branches.
12746 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
12748 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
12749 noov_compare64_op predicates.
12751 2002-03-13 Jason Merrill <jason@redhat.com>
12753 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
12754 into the function and constify it.
12755 * gthr-dce.h, gthr-solaris.h: Likewise.
12757 2002-03-13 David Edelsohn <edelsohn@gnu.org>
12759 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
12760 * config/rs6000/rs6000.c (rs6000_va_arg): Use
12761 std_expand_builtin_va_arg if not ABI_V4.
12763 2002-03-13 Jason Merrill <jason@redhat.com>
12765 * varasm.c (globalize_decl): New fn.
12766 (assemble_start_function): Use it.
12767 (asm_emit_uninitialized): Use it.
12768 (assemble_alias): Use it.
12769 (assemble_variable): Use it.
12771 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
12773 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
12774 2002-03-12 internal visibility change.
12775 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
12776 visibility into SYMBOL_REF_FLAG.
12778 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
12780 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
12781 VOIDmode operand. Add compile-time optimization for constant results.
12783 2002-03-12 Jason Merrill <jason@redhat.com>
12785 * c-typeck.c (convert_for_assignment): Don't allow conversions
12786 between pointers and references. Only allow lvalues to convert to
12789 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
12791 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
12792 before prologue, to avoid scheduling problems.
12794 2002-03-13 Jakub Jelinek <jakub@redhat.com>
12796 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
12797 (ELIMINABLE_REGS): Add sfp->sp.
12798 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
12800 2002-03-13 Jakub Jelinek <jakub@redhat.com>
12802 PR optimization/5892
12803 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
12805 2002-03-13 Jakub Jelinek <jakub@redhat.com>
12807 * loop.c (basic_induction_var): Don't call convert_modes if mode
12808 classes are different.
12810 2002-03-12 Richard Henderson <rth@redhat.com>
12812 PR optimization/5901
12813 * function.c (reposition_prologue_and_epilogue_notes): Position
12814 the markers after/before the last/first insn not deleted.
12816 2002-03-12 Richard Henderson <rth@redhat.com>
12818 PR optimization/5878
12819 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
12820 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
12821 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
12823 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
12824 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
12825 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
12827 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
12828 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
12829 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
12830 also. Don't set it if not flag_pic.
12831 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
12832 to be INVALID_REGNUM when not used.
12834 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
12836 * expmed.c (store_bit_field): Reset alias set for memory.
12837 (extract_bit_field): Same.
12839 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12841 * c-common.c (c_tree_code_type, c_tree_code_length,
12842 c_tree_code_name, add_c_tree_codes): Delete.
12843 * c-common.h (add_c_tree_codes): Delete.
12844 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
12846 * c-objc-common.c (c_objc_common_init): Don't call
12847 add_c_tree_codes, instead set lang_unsafe_for_reeval.
12848 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
12849 objc_tree_code_name, add_objc_tree_codes): Delete.
12850 (objc_init): Don't call add_objc_tree_codes.
12851 * objc/objc-lang.c (tree_code_type, tree_code_length,
12852 tree_code_name): Define.
12853 * toplev.c (lang_independent_init): Don't set
12854 tree_code_length[IDENTIFIER_NODE].
12855 * tree.c (tree_code_type, tree_code_length, tree_code_name):
12856 Delete definitions, moved to language front-ends.
12857 * tree.def (IDENTIFIER_NODE): Hardwire the length.
12858 * tree.h (tree_code_type, tree_code_length, tree_code_name):
12860 (tree_code_length): Change type to unsigned char.
12862 2002-03-12 Richard Henderson <rth@redhat.com>
12864 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
12865 internal visibility change.
12867 2002-03-12 Bob Wilson <bob.wilson@acm.org>
12869 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
12870 validize_mem() instead of change_address to avoid clobbering
12873 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
12875 * c-lex.h (position_after_whitespace): Remove.
12877 2002-03-12 Jakub Jelinek <jakub@redhat.com>
12879 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
12880 (lex_string): Use unsigned char pointers.
12882 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
12884 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
12885 is not a valid memory_operand.
12887 2002-03-12 Bob Wilson <bob.wilson@acm.org>
12889 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
12890 * config/xtensa/lib1funcs.asm: Fix copyright to include
12891 special case for libgcc files.
12892 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
12893 (__divsi3): Likewise.
12894 (__umodsi3): Likewise.
12895 (__modsi3): Likewise.
12896 * config/xtensa/lib2funcs.S: Fix copyright to include
12897 special case for libgcc files.
12899 2002-03-12 Tom Rix <trix@redhat.com>
12901 * collect2.c (resolve_lib_name): Move outside of
12902 OBJECT_FORMAT_COFF ifdef.
12903 (ignore_library): Same.
12905 2002-03-12 Bob Wilson <bob.wilson@acm.org>
12907 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
12909 2002-03-12 Bob Wilson <bob.wilson@acm.org>
12911 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
12912 to function_section before writing out the constant pool.
12914 2002-03-12 David Edelsohn <edelsohn@gnu.org>
12916 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
12918 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
12920 2002-03-12 Alan Modra <amodra@bigpond.net.au>
12922 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
12923 (adddi3): Likewise.
12926 (cmpsi splitter): Likewise.
12927 (modsi3): Fail if <= 0.
12928 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
12929 redundant test when HOST_BITS_PER_WIDE_INT != 32.
12930 (reg_or_sub_cint64_operand): Likewise.
12931 (num_insns_constant_wide): Optimize sign extension.
12932 (rs6000_legitimize_address): Likewise.
12934 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
12936 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
12937 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
12939 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
12941 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
12942 address calculation.
12944 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
12946 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
12947 scratch register to DImode / TImode.
12948 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
12949 register used does not overlap the target.
12951 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12953 * Makefile.in (debug.o): Depend on debug.h.
12954 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
12955 * debug.c (do_nothing_debug_hooks): Likewise.
12956 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
12957 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
12958 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
12959 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
12960 * dwarfout.c (dwarf_debug_hooks): Likewise.
12961 * integrate.c (output_inline_function): Likewise.
12962 * objc/objc-act.c (synth_module_prologue): Likewise.
12963 * sdbout.c (sdb_debug_hooks): Likewise.
12964 * toplev.c (debug_hooks): Likewise.
12965 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12967 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12969 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
12970 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
12971 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
12972 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
12973 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
12974 * defaults.h (POINTER_SIZE): Define.
12975 * doc/tm.texi (POINTER_SIZE): Document default.
12977 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12979 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
12981 2002-03-11 Richard Henderson <rth@redhat.com>
12983 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
12984 if rebuild_label_notes_after_reload.
12986 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
12988 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
12989 emit pic register load if "internal" visibility.
12990 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
12991 (cris_expand_builtin_va_arg): Do all computations on trees.
12993 2002-03-11 Richard Henderson <rth@redhat.com>
12995 * rtlanal.c: Include recog.h.
12996 (keep_with_call_p): Fix thinko.
12997 * Makefile.in (rtlanal.o): Update dependencies.
12999 2002-03-11 Chris Meyer <cmeyer@gatan.com>
13001 * genflags.c (gen_insn): Use IS_VSPACE.
13002 * genoutput.c (output_insn_data): Likewise.
13003 (process_template): Likewise.
13005 2002-03-11 Richard Henderson <rth@redhat.com>
13007 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
13009 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
13011 * Makefile.in: Update.
13012 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
13013 Update documentation.
13014 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
13015 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
13017 2002-03-11 Zack Weinberg <zack@codesourcery.com>
13019 * Makefile.in: Give texi2pod its input file as a command line
13020 argument, not on stdin.
13022 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
13023 Daniel Berlin <dan@dberlin.org>
13025 C++ alias analysis improvement.
13026 * alias.c (record_component_aliases): Record aliases for base
13029 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
13031 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
13033 2002-03-11 Douglas B Rupp <rupp@gnat.com>
13035 * toplev.c (vms_fopen): Remove, not needed.
13037 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
13039 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
13041 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
13042 for FP, already done later.
13044 * toplev.c (debug_args): Add entry for VMS_DEBUG.
13045 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
13047 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
13049 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
13050 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
13051 LARGEST_EXPONENT_IS_NORMAL for the given mode.
13052 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
13053 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
13054 (ediv, emul, eldexp, esqrt): Likewise.
13055 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
13056 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
13057 (saturate): New function.
13058 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
13059 (make_nan): Use a saturation value instead of a NaN if
13060 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
13061 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
13062 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
13063 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
13064 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
13065 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
13066 !ROUND_TOWARDS_ZERO.
13067 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
13068 (ROUND_TOWARDS_ZERO): Document.
13070 2002-03-11 Andreas Jaeger <aj@suse.de>
13072 * cfg.c (dump_flow_info): Remove unused variable.
13074 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
13076 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
13077 computations on trees.
13079 2002-03-10 Richard Henderson <rth@redhat.com>
13082 * reload.c (copy_replacements_1): New.
13083 (copy_replacements): Use it to recurse through the rtx.
13085 2002-03-10 Richard Henderson <rth@redhat.com>
13087 * loop.c (strength_reduce): Compute number of iterations as
13088 unsigned HOST_WIDE_INT.
13090 2002-03-10 Richard Henderson <rth@redhat.com>
13092 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
13093 to move away from the end of the block.
13095 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
13097 PR preprocessor/5899
13098 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
13100 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13102 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
13104 * attribs.c (decl_attributes): Fix signed/unsigned warning.
13106 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
13108 * config/mmix/mmix.c: Improve comments.
13109 (mmix_target_asm_function_prologue): Drop variable
13110 empty_stack_frame. Don't allocate unused slot above fp.
13111 (mmix_target_asm_function_epilogue): Mirror prologue changes.
13112 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
13113 brace in first column.
13114 (enum reg_class): Ditto.
13115 (FIRST_PARM_OFFSET): Now 0.
13116 (USER_LABEL_PREFIX): Remove #if 0:d definition.
13118 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13120 * combine.c (make_extraction): Fix error in last change.
13122 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13124 * c4x.c (c4x_fp_reglist): Const-ify.
13125 * cris.c (cris_print_operand): Likewise.
13126 * i386.c (ix86_va_arg): Likewise.
13127 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
13128 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
13129 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
13130 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
13131 * mcore.h (regno_reg_class): Likewise.
13132 * mips.c (gen_int_relational): Likewise.
13133 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
13134 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
13135 * pdp11.c (move_costs): Likewise.
13136 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
13137 * s390.c (s390_branch_condition_mnemonic, regclass_map):
13139 * s390.h (regclass_map): Likewise.
13140 * sh.c (shift_amounts): Likewise.
13141 * sh.md (rotlsi3): Likewise.
13143 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
13145 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
13146 (ne0+5): Use new clobber to generate proper shift pattern.
13147 Patch by Michael Matz <matz@kde.org>.
13149 2002-03-09 Andreas Schwab <schwab@suse.de>
13151 * gcc.c (validate_all_switches): Also handle `%W{...}'.
13153 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
13155 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
13157 2002-03-09 Jakub Jelinek <jakub@redhat.com>
13160 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
13161 even for non-representable constants.
13163 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13165 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
13166 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
13167 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
13168 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
13169 (pop_function_context): Compute MAY_SHARE parameter for
13171 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
13172 (gen_mem_addressof): Call fixup_var_refs with new parm.
13174 * combine.c (make_extraction): Don't make extension of CONST_INT.
13176 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
13178 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
13179 in o32 and o64 ABIs.
13180 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
13181 but getting fixed-size structs passed in registers regardless of
13182 padding in o32 and o64 ABIs.
13184 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
13185 offset before loading address of argument passed by transparent
13188 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
13190 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
13192 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
13194 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
13195 marker such that registers after it are saved.
13197 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13199 * sparc.c (arith_4096_operand): Fix error in last change.
13201 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
13203 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
13204 defaults for MEABI.
13206 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
13208 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
13211 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
13213 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
13215 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
13217 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
13218 removed; fix return value.
13219 * combine.c (combine_instructions): Dirtify blocks where we failed to
13220 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
13221 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
13223 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13225 * gcse.c (insert_insn_end_bb): Fix typo in last change.
13227 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
13229 * recog.c (peephole2_optimize): Re-distribute EH edges.
13231 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
13233 * expr.c (expand_expr): Use unsave lang hook.
13234 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
13235 (LANG_HOOKS_INITIALIZER): Update.
13236 * langhooks.h (struct lang_hooks): New hook unsave.
13237 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
13238 (unsave_expr_1): Remove unused lang_unsave_expr_now.
13239 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
13240 (unsave_expr_now): Remove.
13241 * tree.h (unsave_expr_now, lang_unsave,
13242 lang_unsave_expr_now): Remove.
13245 2002-03-08 Andreas Jaeger <aj@suse.de>
13247 * flow.c (propagate_block_delete_insn): Remove unused variable.
13249 2002-03-08 Kazu Hirata <kazu@hxi.com>
13251 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
13252 insn length for memory load/store.
13254 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
13256 * doc/install.texi (--with-libiconv-prefix): Document.
13258 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
13260 * doc/sourcebuild.texi: Fix typo.
13262 2002-03-08 Jakub Jelinek <jakub@redhat.com>
13265 * builtins.c (std_expand_builtin_va_arg): Do all computations on
13268 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13270 * rtl.c (copy_most_rtx): Move from here ...
13271 * emit-rtl.c (copy_most_rtx): ... to here.
13273 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
13275 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
13276 SUBTARGET_CPP_SIZE_SPEC.
13277 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
13279 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
13281 2002-03-07 Matt Hiller <hiller@redhat.com>
13283 * gensupport.c (first_dir_md_include): Renamed from include;
13284 change all references.
13285 (last_dir_md_include): Renamed from last_include; change all
13287 (init_md_reader): Unconditionally initialize base_dir whether or
13288 not filename is a relative path.
13290 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
13292 * config/fp-bit.c (_unord_f2): Compile it in even if
13293 US_SOFTWARE_GOFAST is enabled.
13295 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
13296 NULL_RTX. Set all HFmode operations as NULL_RTX.
13297 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
13298 NULL_RTX, try reversing the comparison and the operands.
13300 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
13302 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
13303 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
13306 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
13308 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
13310 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
13312 * basic-block.h (fixup_abnormal_edges): Declare.
13313 * reload1.c (fixup_abnormal_edges): New function.
13314 * reg-stack.c (convert_regs): Use it.
13316 * gcse.c (insert_insn_end_bb): Handle trapping insns.
13318 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
13320 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
13322 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
13323 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
13324 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
13325 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
13326 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
13327 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
13328 unless x and y could be infinite.
13329 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
13330 Check that the common type of both arguments is a real, even for
13331 targets without unordered comparisons. Allow an integer argument
13332 to be compared against a real.
13333 (expand_tree_builtin): Use expand_unordered_cmp.
13334 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
13335 * cse.c (fold_rtx): Likewise. Fix indentation.
13336 * fold-const.c (fold_real_zero_addition_p): New.
13337 (fold): Use it, and the new HONOR_... macros.
13338 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
13339 * jump.c (reversed_comparison_code_parts): After searching for
13340 the true comparison mode, use HONOR_NANS to decide whether it
13341 can be safely reversed.
13342 (reverse_condition_maybe_unordered): Remove IEEE check.
13343 * simplify-rtx.c (simplify_binary_operation): Use the new macros
13344 to decide which simplifications are valid. Allow the following
13345 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
13346 and (a - -b) to (a + b).
13347 (simplify_relational_operation): Use HONOR_NANS.
13348 * doc/tm.texi: Document the MODE_HAS_... macros.
13350 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
13352 * combine.c (simplify_comparison): If simplifying a logical shift
13353 right and compare with constant, force the comparison to unsigned.
13355 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
13357 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
13359 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
13361 (alt_reg_names): Remove % for vrsave.
13363 2002-03-06 Richard Henderson <rth@redhat.com>
13365 PR optimization/5844
13366 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
13367 if used indicates we've already emitted one copy of an operand.
13368 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
13369 (gen_split): Supply a non-null used.
13371 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
13373 * reload1.c (reload): Unshare all rtl after reload is done.
13375 * simplify-rtx.c (simplify_plus_minus): Do not abort,
13376 but simply fail if the expression is too complex to simplify.
13377 (simplify_gen_binary): Handle simplify_plus_minus failures.
13379 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
13381 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
13382 consistently call delete_trivially_dead_insns after CSE and GCSE;
13383 fix DFI_life dumping; do jump threading after liveness; do crossjumping
13384 after liveness2; update comment in last crossjumping.
13385 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
13387 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
13389 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
13390 after completing fast dead code elimination.
13392 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
13395 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
13397 * version.c: Fix misplaced leading blanks on first line.
13399 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
13401 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
13403 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
13405 * cfgcleanup.c (mentions_nonequal_regs): New function.
13406 (thread_jump): Use it.
13407 * toplev.c (rest_of_compilation): Run jump threading after
13410 2002-03-06 Jakub Jelinek <jakub@redhat.com>
13412 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
13415 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
13417 * predict.c (estimate_bb_frequencies): Do not reload the
13418 frequencies from notes.
13420 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
13422 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
13423 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
13425 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
13426 delete_noop_moves): Return indeger.
13427 * flow.c (ndead): New variable.
13428 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
13429 BB argument; update callers.
13430 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
13431 (life_analysis): Do not call purge_all_dead_edges.
13432 (update_life_info): Return number of deleted insns; print statistics.
13433 (update_life_info_in_dirty_blocks): likewise.
13434 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
13435 return number of insns deleted.
13437 * cse.c: Include timevar.h
13438 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
13439 iterate until stabilizes; print statistics; return number of killed
13441 * Makefile.in: (cse.o): Add timevar.h dependency
13442 * rtl.h (delete_trivially_dead_insns): New.
13443 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
13444 * toplev.c (rest_of_compilation): Update callers.
13446 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
13447 (try_optimize_cfg): Do not update liveness.
13448 (cleanup-cfg): Loop until try_optimize_cfg and dead code
13449 removal stabilizes; use delete_trivially_dead_insns.
13451 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
13453 2002-03-05 Zack Weinberg <zack@codesourcery.com>
13455 * cppmain.c (setup_callbacks): Disable #pragma and #ident
13456 callbacks when processing assembly language.
13458 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
13460 * pa.h (ASM_FILE_END): Define.
13461 * som.h (ASM_FILE_END): Delete.
13463 * pa.c (function_arg): Don't pass floats in general registers in
13464 indirect calls if TARGET_ELF32.
13466 2002-03-05 Richard Henderson <rth@redhat.com>
13468 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
13470 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
13472 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
13474 2002-03-05 Jakub Jelinek <jakub@redhat.com>
13476 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
13477 -r command line. Don't hide any symbols if not building
13480 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
13482 * cfg.c (dump_flow_info): Warn about profile mismatches.
13483 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
13484 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
13486 2002-03-05 Jakub Jelinek <jakub@redhat.com>
13488 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
13489 wide volatile memory by parts.
13491 2002-03-05 Jakub Jelinek <jakub@redhat.com>
13493 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
13496 2002-03-05 Richard Henderson <rth@redhat.com>
13498 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
13500 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
13502 * toplev.c (documented_lang_options): Document more
13503 language-specific options.
13504 * doc/invoke.texi (Warning Options): Correct documentation for
13505 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
13506 * c-decl.c (c_decode_option): Use a table to handle warning options.
13508 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
13510 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
13511 parameter to mmix_encode_section_info.
13512 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
13513 relocatably. Always produce ELF, not mmo if linking relocatably.
13514 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
13515 first is non-zero, don't add symbol prefix.
13516 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
13517 prototype accordingly.
13519 2002-03-04 Krister Walfridsson <cato@df.lth.se>
13521 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
13523 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
13525 * configure.in: Increase required makeinfo version to 4.1.
13526 * configure: Regenerate.
13528 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
13530 * .cvsignore: Remove *.info* and genrtl*; these files are generated
13533 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
13535 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
13536 * doc/invoke.texi: Fix @math uses.
13538 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
13540 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
13543 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
13545 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
13546 (powerpc-*-eabisimaltivec*): Same.
13548 * config/rs6000/t-ppcendian: New.
13550 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13552 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
13553 nonimmediate_src_operand and nonimmediate_lsrc_operand to
13554 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
13556 2002-03-03 Richard Henderson <rth@redhat.com>
13558 * toplev.c (rest_of_decl_compilation): Revert last two changes.
13560 2002-03-03 Zack Weinberg <zack@codesourcery.com>
13562 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
13563 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
13564 tree.c, config/m68k/m68k.c:
13565 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
13566 REAL_ARITHMETIC blocks unconditional. Delete some further
13567 #ifdef blocks predicated on REAL_ARITHMETIC.
13568 * flags.h, toplev.c: Delete remaining references to
13569 flag_pretend_float.
13571 * doc/invoke.texi: Remove documentation of -fpretend-float.
13572 * doc/tm.texi: Describe the various REAL_* macros as provided by
13573 real.h, not by the target configuration files.
13575 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
13576 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
13577 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
13578 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
13579 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
13580 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
13581 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
13582 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
13583 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
13584 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
13585 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
13586 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
13587 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
13588 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
13589 config/xtensa/xtensa.h:
13590 Do not define, undefine, or mention in comments any of
13591 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
13592 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
13593 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
13594 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
13595 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
13596 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
13597 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
13598 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
13599 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
13601 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13603 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
13604 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
13605 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
13606 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
13607 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
13608 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
13610 * defaults.h (BITS_PER_WORD): Define.
13611 * doc/tm.texi (BITS_PER_WORD): Document default value.
13613 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
13614 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
13615 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
13617 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13619 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
13620 lieu of explicit sizeof/sizeof.
13621 * i386.c (override_options, ix86_init_mmx_sse_builtins,
13622 ix86_expand_builtin): Likewise.
13623 * mips.c (mips_add_gc_roots): Likewise.
13624 * mmix.c (mmix_output_condition): Likewise.
13625 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
13626 altivec_init_builtins): Likewise.
13627 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
13628 * cppexp.c (Nsuff, parse_number): Likewise.
13629 * cppinit.c (builtin_array_end): Likewise.
13630 * gcc.c (n_default_compilers, process_command): Likewise.
13631 * genpreds.c (output_predicate_decls): Likewise.
13632 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
13633 * lcm.c (N_ENTITIES): Likewise.
13634 * stor-layout.c (set_sizetype): Likewise.
13636 2002-03-03 Richard Henderson <rth@redhat.com>
13638 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
13639 for types or labels.
13641 2002-03-03 Richard Henderson <rth@redhat.com>
13643 * c-decl.c (start_decl): Initialized variables are not common.
13645 2002-03-02 Per Bothner <per@bothner.com>
13647 * gcc.c (option_map): Suport new --bootclasspath option.
13648 --CLASSPATH is now just an alias for --classpath.
13650 2002-03-02 Richard Henderson <rth@redhat.com>
13652 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
13653 load if "internal" visibility.
13654 * doc/extend.texi: Document visibility meanings.
13656 2002-03-02 Richard Henderson <rth@redhat.com>
13658 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
13659 to functions as well.
13661 2002-03-02 Richard Henderson <rth@redhat.com>
13663 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
13664 (handle_visibility_attribute): Don't call assemble_visibility.
13665 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
13666 without asmspec. Invoke assemble_alias when needed.
13667 * varasm.c (maybe_assemble_visibility): New.
13668 (assemble_start_function, assemble_variable, assemble_alias): Use it.
13670 2002-03-02 Richard Henderson <rth@redhat.com>
13672 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
13673 invoke ENCODE_SECTION_INFO with first call flag.
13675 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
13676 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
13677 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
13678 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
13679 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
13680 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
13681 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
13682 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
13683 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
13684 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
13685 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
13686 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
13687 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
13688 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
13689 config/mcore/mcore-protos.h, config/mcore/mcore.c,
13690 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
13691 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
13692 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
13693 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
13694 config/sh/sh.h, config/sparc/sparc.h,
13695 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
13696 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
13697 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
13698 FIRST argument. As needed, examine it and do nothing.
13700 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
13701 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
13702 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
13704 * config/arm/t-pe (pe.o): Add dependencies.
13706 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13708 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
13709 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
13710 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
13711 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
13712 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
13713 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
13714 * defaults.h (BITS_PER_UNIT): Define.
13715 * doc/tm.texi (BITS_PER_UNIT): Document default value.
13717 2002-03-02 Kazu Hirata <kazu@hxi.com>
13719 * config/h8300/h8300-protos.h: Add a prototype for
13720 compute_a_shift_length.
13721 * config/h8300/h8300.c (h8300_asm_insn_count): New.
13722 (compute_a_shift_length): Likewise.
13723 (h8300_adjust_insn_length): Do not adjust insn length of shift
13725 * config/h8300/h8300.md (anonymous shift patterns): Use
13726 compute_a_shift_length.
13728 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13730 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
13731 trunc_int_for_mode.
13733 * emit-rtl.c (offset_address): Call update_temp_slot_address.
13735 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13737 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
13738 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
13739 * flags.h (flag_zero_initialized_in_bss): Declare.
13740 * toplev.c (flag_zero_initialized_in_bss): New flag.
13741 (lang_independent_options): Add flag_zero_initialized_in_bss.
13742 * tree.c (initializer_zerop): New function.
13743 * tree.h (initializer_zerop): Declare.
13744 * varasm.c (assemble_variable): If we can emit bss, put zero
13745 initializers in the bss section.
13747 2002-03-02 Alan Modra <amodra@bigpond.net.au>
13749 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
13750 like more than one symbol per .weak directive.
13752 2002-03-01 Richard Henderson <rth@redhat.com>
13754 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
13755 adjust argument_pointer by pretend_args_size.
13756 (ia64_va_start): Adjust va_start address by -pretend_args_size.
13758 2002-03-01 Kazu Hirata <kazu@hxi.com>
13760 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
13762 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
13764 * toplev.c (rest_of_compilation): Delete dead jumptables before
13766 * flow.c (delete_dead_jumptables): Make global.
13767 * rtl.h (delete_dead_jumptables): Declare.
13769 2002-03-01 David Edelsohn <edelsohn@gnu.org>
13771 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
13772 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
13773 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
13775 2002-03-01 Kazu Hirata <kazu@hxi.com>
13777 * config/h8300/h8300-protos.h: Fix formatting.
13778 * config/h8300/h8300.c: Likewise.
13779 * config/h8300/h8300.h: Likewise.
13781 2002-03-01 Kazu Hirata <kazu@hxi.com>
13783 * config/h8300/h8300.c (print_operand): Support 16-bit
13784 constant addresses.
13785 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
13787 2002-02-28 Richard Henderson <rth@redhat.com>
13789 * expmed.c (store_bit_field): Prevent generation of CONCATs;
13790 pun complex values as integers; use gen_lowpart instead of
13792 (extract_bit_field): Likewise.
13794 2002-03-01 Alan Modra <amodra@bigpond.net.au>
13795 David Edelsohn <edelsohn@gnu.org>
13797 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
13798 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
13799 (SUPPORTS_WEAK): Likewise.
13800 * output.h (add_weak): Add tree param.
13801 * varasm.c (add_weak): Likewise. Save decl.
13802 (struct weak_syms): Add decl field.
13803 (mark_weak_decls): New function.
13804 (init_varasm_once): ggc_add_root mark_weak_decls.
13805 (assemble_start_function): Use ASM_WEAKEN_DECL.
13806 (assemble_variable): Likewise.
13807 (assemble_alias): Likewise.
13808 (declare_weak): Pass decl to add_weak.
13809 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
13810 (remove_from_pending_weak_list): Declare and define for
13812 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
13813 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
13814 * defaults.h (SUPPORTS_WEAK): Likewise.
13815 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
13816 .weak for code sym. Do emit .size for descriptor sym.
13817 (ASM_DECLARE_FUNCTION_SIZE): Define.
13818 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
13819 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
13820 .lglobl unless TARGET_XCOFF. Formatting fixes.
13821 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
13822 .weak for code sym.
13823 (HANDLE_PRAGMA_WEAK): Remove.
13824 (ASM_WEAKEN_LABEL): Remove.
13825 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
13827 2002-03-01 Jason Merrill <jason@redhat.com>
13829 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
13830 (TARGET_EXPR_CLEANUP): New macro.
13832 2002-02-28 Steve Ellcey <sje@cup.hp.com>
13834 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
13835 to take ptr_extend into account as third type of extension.
13836 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
13837 fields used by SUBREG_PROMOTED_UNSIGNED_P.
13838 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
13839 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
13840 * calls.c (precompute_arguments): Use new macro.
13841 (expand_call): Ditto.
13842 * combine.c (nonzero_bits): Ditto.
13843 (record_promoted_value): Ditto.
13844 * expr.c (store_expr): Ditto.
13845 (expand_expr): Ditto.
13846 * function.c (assign_parms): Ditto.
13848 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
13850 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
13851 override -shared and -shared-libgcc.
13853 2002-02-28 David O'Brien <obrien@FreeBSD.org>
13855 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
13857 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
13860 2002-02-28 Richard Henderson <rth@redhat.com>
13862 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
13863 4 cycle latency from MM producers.
13864 (ia64_internal_sched_reorder): Likewise with pipeline flush.
13866 2002-02-28 Jakub Jelinek <jakub@redhat.com>
13868 * mklibgcc.in: Don't use GNU make extension.
13870 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
13872 * c-parse.in (STATIC): New terminal.
13873 (scspec): New non-terminal. Update productions accordingly.
13874 (program): Remove bogus ifc / end ifc.
13875 (array_declarator): Simplify production using STATIC.
13877 2002-02-28 Jim Meyering <meyering@lucent.com>
13879 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
13880 \a still means TARGET_BELL.
13882 2002-02-28 Richard Henderson <rth@redhat.com>
13884 * haifa-sched.c (sched_emit_insn): New.
13885 (schedule_block): Use last_scheduled_insn to track last insn.
13886 * sched-int.h (sched_emit_insn): Prototype.
13887 * config/ia64/ia64.c (last_issued): Remove.
13888 (ia64_variable_issue): Don't set it.
13889 (nop_cycles_until): Use sched_emit_insn.
13891 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
13893 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
13894 extended constants.
13896 2002-02-28 Kazu Hirata <kazu@hxi.com>
13898 * config/h8300/h8300.c: Fix formatting.
13899 * config/h8300/h8300.h: Likewise.
13901 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
13903 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
13904 which may overwrite the high byte of the frame pointer.
13906 2002-02-28 Bo Thorsen <bo@suse.de>
13908 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
13909 (STARTFILE_SPEC): Add 64 bit files.
13910 (ENDFILE_SPEC): Likewise.
13912 2002-02-28 Jason Merrill <jason@redhat.com>
13914 * c-decl.c (finish_function): Only warn about missing return
13915 statement with -Wreturn-type.
13917 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
13919 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
13921 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
13922 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
13924 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
13926 * basic-block.h (BB_REACHABLE): Renumber.
13927 (BB_DIRTY, BB_NEW): New flags.
13928 (clear_bb_flags): Declare.
13929 (update_life_info_in_dirty_blocks): Declare.
13930 * cfg.c (clear_bb_flags): New function.
13931 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
13932 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
13933 reorder_insns, emit_insn_after): Mark block as dirty.
13934 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
13935 (update_life_info_in_dirty_blocks): New function.
13936 * recog.c (apply_change_group): Dirtify block.
13938 * cse.c (cse_insn): Reorder emitting of jump insn to keep
13940 * gcse.c (delete_null_pointer_checks): Likewise.
13942 * toplev.c (dump_file_index): Move cse2 after bp,
13944 (dump_file_info): Similary.
13945 (rest_of_compilation): Avoid most of CFG rebuilds;
13946 do first if converision after null pointer checks, do cse2
13947 after branch prediction; avoid full liveness rebuild after
13948 initializing subregs.
13949 * invoke.texi (-d options): Document -du, renumber.
13951 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
13952 (notice_new_block): Do not set BB_UPDATE_LIFE.
13953 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
13954 merge_blocks_move_successor_nojumps, merge_blocks,
13955 try_crossjump_to_edge): Likewise.
13956 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
13957 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
13958 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
13959 (merge_of_block): Do not use life_data_ok.
13960 (find_if_case_1): Do not use SET_UPDATE_LIFE.
13961 (if_convert): Use BB_DIRTY mechanizm to update life.
13962 * lcm.c (optimize_mode_switching): Update
13963 update_life_info_in_dirty_blocks
13965 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
13967 * Makefile.in (integrate.o): Update.
13968 * c-decl.c (copy_lang_decl): Rename.
13969 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
13970 * integrate.c: Include langhooks.h.
13971 (copy_decl_for_inlining): Update to use langhook.
13972 * langhooks-def.h (lhd_do_nothing_t,
13973 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
13974 (LANG_HOOKS_INITIALIZER): Update.
13975 * langhooks.c (lhd_do_nothing_t): New.
13976 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
13977 * tree.h (copy_lang_decl): Remove.
13979 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
13981 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
13983 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
13984 POST_DEC, and POST_MODIFY.
13986 2002-02-27 Zack Weinberg <zack@codesourcery.com>
13988 * c-typeck.c (digest_init): Remove unused parameter; all
13991 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
13993 * expmed.c (expand_shift): Correctly test for low part of a
13996 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
13998 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
13999 insn UIDs with insn addresses.
14001 2002-02-27 Zack Weinberg <zack@codesourcery.com>
14003 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
14004 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
14005 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
14006 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
14007 gcc.c, toplev.c: Delete code implementing -traditional mode.
14009 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
14010 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
14011 Document removal of -traditional mode for compilation, and
14012 remove documentation only relevant to that mode.
14014 * config/nextstep.h, config/ptx4.h, config/svr4.h,
14015 config/convex/convex.h, config/d30v/d30v.h,
14016 config/i386/dgux.h, config/i386/osf1elf.h,
14017 config/i386/osfelf.h, config/i386/osfrose.h,
14018 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
14019 config/m68k/hp310.h, config/m88k/dgux.h,
14020 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
14021 config/m88k/m88k.h, config/m88k/openbsd.h,
14022 config/mips/abi64.h, config/mips/osfrose.h,
14023 config/mips/svr4-5.h, config/mips/svr4-t.h,
14024 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
14025 config/stormy16/stormy16.h: Remove all references to
14026 -traditional from target specs. Delete all mention of the
14027 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
14028 delete a couple of commented-out definitions of
14029 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
14032 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
14033 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
14035 2002-02-27 Zack Weinberg <zack@codesourcery.com>
14037 * mklibgcc.in: Don't use \n in a line subject to
14038 interpretation by echo.
14040 2002-02-27 Graham Stott <grahams@redhat.com>
14042 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
14045 * loop.c (prescan_loop): Handle PARALLEL.
14047 * unroll.c (loop_iterations): Return 0 if the add_val for
14050 * final.c (output_operand_lossage): Constify PFX_STR.
14052 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
14054 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
14056 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
14057 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
14059 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
14061 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
14063 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
14065 * cpplex.c (_cpp_lex_token): Handle directives in macro
14067 * cpplib.c (_cpp_handle_directive): Save and restore state
14068 if parsing macro args when entering a directive.
14069 * cppmacro.c (collect_args): No need to handle directives
14070 in macro arguments.
14071 (enter_macro_context, replace_args): Use the original macro
14072 definition in case it was redefined whilst collecting arguments.
14074 * cpp.texi: Update.
14076 2002-02-26 David Edelsohn <edelsohn@gnu.org>
14078 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
14079 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
14080 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
14082 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
14083 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
14084 (load_toc_v4_PIC_2): Same.
14086 2002-02-26 Alan Modra <amodra@bigpond.net.au>
14088 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
14090 2002-02-26 Richard Henderson <rth@redhat.com>
14092 * config/alpha/alpha.md (ashldi_se): Re-enable.
14094 2002-02-26 Richard Henderson <rth@redhat.com>
14096 * config/alpha/alpha.c (alpha_encode_section_info): Examine
14097 MODULE_LOCAL_P; improve commentary.
14099 2002-02-26 Zack Weinberg <zack@codesourcery.com>
14101 * doc/cpp.texi: Clarify documentation of relationship between
14102 #line and #include.
14104 2002-02-26 Kazu Hirata <kazu@hxi.com>
14106 * config/h8300/h8300-protos.h: Update the prototype for
14107 compute_logical_op_length. Add the prototype for
14108 compute_logical_op_cc.
14109 * config/h8300/h8300.c (compute_logical_op_length): Figure out
14110 code from operands.
14111 (compute_logical_op_cc): New.
14112 * config/h8300/h8300.md: Combine all the logical op patterns
14113 in HImode and SImode. Use compute_logical_op_cc.
14115 2002-02-26 Kelley Cook <kelleycook@comcast.net>
14117 * config/i386/i386.c (print_operand): Don't append ATT-style
14118 length suffixs to x87 opcodes when in Intel mode.
14120 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
14122 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
14123 (init_emit_once): Update calls.
14124 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
14125 (init_syntax_once): Prototype.
14127 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
14129 * pa-linux.h (LIB_SPEC): Update definition.
14130 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
14132 2002-02-26 Richard Henderson <rth@redhat.com>
14134 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
14135 if we emitted a stop bit.
14137 2002-02-26 Jakub Jelinek <jakub@redhat.com>
14139 * configure.in (libgcc_visibility): Substitute.
14140 * configure: Rebuilt.
14141 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
14142 defined symbols .hidden.
14144 2002-02-26 Jakub Jelinek <jakub@redhat.com>
14146 * attribs.c (c_common_attribute_table): Add visibility.
14147 (handle_visibility_attribute): New function.
14148 * varasm.c (assemble_visibility): New function.
14149 * output.h (assemble_visibility): Add prototype.
14150 * tree.h (MODULE_LOCAL_P): Define.
14151 * crtstuff.c (__dso_handle): Use visibility attribute.
14152 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
14153 for MODULE_LOCAL_P symbols too.
14154 * config/ia64/ia64.c (ia64_encode_section_info): Handle
14155 MODULE_LOCAL_P symbols the same way as local symbols.
14156 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
14157 into .sdata/.sbss by the user.
14158 * doc/extend.texi (Function Attributes): Document visibility
14161 2002-02-26 Jakub Jelinek <jakub@redhat.com>
14164 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
14165 STRING_CST initializer spanning the whole variable without
14167 If expand_expr returned MEM, don't use it.
14169 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
14171 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
14172 generate a die for the lexical block.
14174 2002-02-26 Kazu Hirata <kazu@hxi.com>
14176 * config/h8300/h8300-protos.h: Add a prototype for
14177 compute_logical_op_length.
14178 * config/h8300/h8300.c (compute_logical_op_length): New.
14179 * config/h8300/h8300.md (anonymous logical patterns): Use
14180 compute_logical_op_length for length.
14182 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
14184 * dwarf2out.c (modified_type_die): Do not call type_main_variant
14186 (gen_type_die): Same.
14188 * attribs.c (handle_vector_size_attribute): Set debug information.
14190 2002-02-26 Daniel Egger <degger@fhm.edu>
14192 * config/rs6000/rs6000.md: Swap define_insn attributes to
14193 fix incorrect generation of merge high instructions instead
14196 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
14198 * c-typeck.c (really_start_incremental_init): Use
14199 bitsize_zero_node for vectors.
14201 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
14203 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
14204 ("*set_vrsave_internal"): Same.
14206 2002-02-25 Richard Henderson <rth@redhat.com>
14208 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
14209 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
14211 2002-02-25 Jakub Jelinek <jakub@redhat.com>
14214 * config/i386/i386.c (ix86_return_pops_args): Only pop
14215 fake structure return argument if it was passed on the stack.
14217 2002-02-25 Jason Merrill <jason@redhat.com>
14219 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
14222 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
14224 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
14225 link with shared_name only.
14226 * doc/invoke.texi (Link Options): Document new behavior.
14228 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
14230 * c-typeck.c (push_init_level): Handle vectors.
14232 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
14234 * config/sparc/sparc.c (const64_high_operand): Zero-extend
14235 operands of SPARC_SETHI_P.
14236 (input_operand): Likewise.
14237 (sparc_emit_set_const32): Likewise.
14238 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
14239 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
14240 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
14241 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
14242 (movdi_insn_sp64_vis): Likewise.
14243 (movdi split, movdf split): Use SETHI32.
14244 * doc/md.texi: Document SPARC constraints L, M and N.
14246 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
14248 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
14249 ("*set_vrsave_internal"): use mfspr for Darwin.
14251 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
14252 gen_get_vrsave_internal.
14254 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14256 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
14258 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
14260 * cpplex.c (cpp_interpret_charconst): Get signedness or
14261 otherwise of wide character constants correct.
14262 * cppexp.c (lex): Get signedness of wide charconsts correct.
14264 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14266 * optabs.c (widen_operand): Only call convert_modes for
14267 promoted SUBREG if signedness matches.
14268 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
14270 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
14272 * cpplib.c (glue_header_name): Use local buffer to build up
14275 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
14277 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
14279 2002-02-23 Kazu Hirata <kazu@hxi.com>
14281 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
14282 H8/300[HS] separately.
14283 * config/h8300/h8300.md: Remove the early clobber constraint
14284 from bit field patterns.
14286 2002-02-23 Kazu Hirata <kazu@hxi.com>
14288 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
14290 (mulhisi3): Likewise.
14291 (umulqisi3): Likewise.
14292 (umulhisi3): Likewise.
14294 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
14296 * cppinit.c (output_deps): Correct test for stdout output.
14297 (init_dependency_output): Cure warning.
14299 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14301 * expr.c (store_expr): When converting expression to promoted
14302 equivalent type, allow using SUBREG_REG of TARGET as the target
14303 of the expansion of EXP.
14304 * loop.c (basic_induction_var, case SUBREG): Always look inside.
14305 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
14306 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
14307 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
14308 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
14310 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
14312 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
14313 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
14314 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
14316 2002-02-23 Jakub Jelinek <jakub@redhat.com>
14318 PR optimization/5747
14319 * loop.c (scan_loop): Update reg info if move_movables created new
14322 2002-02-23 David Edelsohn <edelsohn@gnu.org>
14324 * gcc.c (init_gcc_spec): Revert last change.
14326 2002-02-23 David Edelsohn <edelsohn@gnu.org>
14328 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
14329 gpc_reg_operand constraint.
14331 2002-02-23 Alan Modra <amodra@bigpond.net.au>
14333 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
14334 Simplify comparison of `low'.
14335 (add_operand): Fix formatting.
14336 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
14337 (mask_operand): Disallow mask to wrap in 64-bit mode.
14338 (rs6000_stack_info): Remove redundant test setting push_p.
14339 (output_toc): Fix formatting.
14340 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
14341 cc_reg_not_cr0_operand constraint.
14342 (booldi3, boolcdi3 splitters): Same.
14344 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
14346 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
14348 2002-02-22 David Edelsohn <edelsohn@gnu.org>
14350 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
14351 gcc invoked with -shared-libgcc.
14353 2002-02-22 Jakub Jelinek <jakub@redhat.com>
14356 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
14357 decl if any of elements was TREE_USED.
14359 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
14361 * config/sparc/sol2.h: Don't include sys/mman.h.
14362 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
14363 (arith_4096_operand): Don't throw high bits away.
14364 (const64_operand): Take sign extension of CONST_INTs into account.
14365 (const64_high_operand, sparc_emit_set_const32): Likewise.
14366 (GEN_HIGHINT64): Likewise.
14367 (sparc_emit_set_const64_quick1): Likewise.
14368 (const64_is_2insns): Likewise.
14369 (print_operand): Use trunc_int_for_mode for sign extension.
14370 * config/sparc/sparc.h (SMALL_INT32): Likewise.
14371 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
14372 chars. Assume CONST_INT is already properly sign-extended.
14373 (movdi split): Sign-extend each SImode part.
14374 (andsi3 split): Don't mask high bits off, so that result
14375 remains properly sign-extend.
14376 (iorsi3 split): Likewise.
14377 (xorsi3 split): Likewise.
14379 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
14381 * fold-const.c (fold): Fix typo in comments.
14383 2002-02-21 Diego Novillo <dnovillo@redhat.com>
14385 * Makefile.in (langhooks.o): Update dependencies.
14387 2002-02-21 Diego Novillo <dnovillo@redhat.com>
14389 * langhooks.c: Include flags.h.
14391 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
14393 * testsuite/gcc.dg/attr-alwaysinline.c: New.
14395 * c-common.c (c_common_post_options): Set inline trees by
14398 * doc/extend.texi (Function Attributes): Document always_inline
14400 Update documentation about inlining when not optimizing.
14402 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
14404 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
14405 unless DECL_ALWAYS_INLINE.
14407 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
14408 unless DECL_ALWAYS_INLINE.
14409 (c_disregard_inline_limits): Disregard if always_inline set.
14411 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
14412 Disregard if always_inline set.
14413 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
14414 unless DECL_ALWAYS_INLINE.
14416 * attribs.c (handle_always_inline_attribute): New.
14417 (c_common_attribute_table): Add always_inline.
14419 * config/rs6000/altivec.h: Add prototypes for builtins
14420 requiring the always_inline attribute.
14422 2002-02-21 Eric Christopher <echristo@redhat.com>
14424 * expmed.c (store_bit_field): Try to simplify the subreg
14425 before generating a new one when when the mode size of
14426 value is less than maxmode.
14428 2002-02-21 Richard Henderson <rth@redhat.com>
14430 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
14431 than gen_rtx_PLUS to form the sum.
14432 * explow.c (force_reg): Rearrange to not allocate new pseudo
14433 when force_operand returns a register.
14434 * expr.c (expand_assignment): Allow offset_rtx expansion to
14435 return a sum. Do not force addresses into registers.
14436 (expand_expr): Likewise.
14437 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
14438 to canonicalize arithmetic that didn't simpify.
14439 (simplify_plus_minus): New argument force; update
14440 all callers. Don't split CONST unless we can do something with it,
14441 and wouldn't lose the constness of the operands.
14443 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
14444 that we generated earlier.
14446 2002-02-21 Tom Tromey <tromey@redhat.com>
14448 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14449 (output_line_info): Use constant `1', with a long explanatory
14451 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
14453 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
14455 * jump.c (redirect_jump): If old label has no UID, don't try to
14458 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
14460 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
14461 If input is constant, do shifts at compile time.
14463 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
14465 * doc/extend.texi: Fix some more overfull hboxes.
14467 2002-02-21 Jakub Jelinek <jakub@redhat.com>
14469 PR optimization/4994
14470 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
14473 2002-02-21 Jakub Jelinek <jakub@redhat.com>
14476 * expr.h (expand_and): Add mode argument.
14477 * expmed.c (expand_and): Add mode argument.
14478 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
14479 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
14480 * except.c (expand_builtin_extract_return_addr): Likewise.
14481 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
14482 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
14483 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
14484 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
14485 * config/c4x/c4x.md: Use GEN_INT (x) instead of
14486 gen_rtx (CONST_INT, VOIDmode, x).
14488 2002-02-21 Jakub Jelinek <jakub@redhat.com>
14491 * stmt.c (warn_if_unused_value): Move side effects test once more.
14493 2002-02-20 Torbjorn Granlund <tege@swox.com>
14495 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
14496 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
14498 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
14500 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
14501 SUBREG or ZERO_EXTEND.
14503 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
14505 * sh.h (current_function_anonymous_args): Remove.
14506 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
14507 of current_function_varargs and current_function_stdarg is set.
14508 * sh.c (sh_expand_prologue): Check current_function_varargs /
14509 current_function_stdarg / TARGET_SH5 instead of
14510 current_function_anonymous_args.
14512 * sh64.h (TARGET_VERSION): Define.
14514 2002-02-20 David Edelsohn <edelsohn@gnu.org>
14516 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
14517 VRSAVE_REGNO on TARGET_ALTIVEC.
14519 2002-02-20 Alan Modra <amodra@bigpond.net.au>
14521 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
14522 bits of SImode const_int.
14523 (includes_rshift_p): Likewise.
14524 (print_operand): Call mask_operand and mask64_operand with correct
14526 (rs6000_output_function_epilogue): Pad traceback table to word.
14527 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
14528 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
14529 mask64_operand with correct mode.
14530 (FUNCTION_ARG_REGNO_P): Correct parentheses.
14532 2002-02-20 Jakub Jelinek <jakub@redhat.com>
14535 * varasm.c (get_pool_constant_mark): New.
14536 * rtl.h (get_pool_constant_mark): Add prototype.
14537 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
14538 be represented if it has not been output.
14540 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
14542 * combine.c (do_SUBST): Sanity check substitutions of
14543 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
14544 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
14545 CONST_INT into its operand.
14546 (known_cond): Likewise, for ZERO_EXTEND.
14547 * simplify-rtx.c (simplify_unary_operation): Fix condition to
14548 allow for simplification of wide modes. Reject CONST_INTs in
14549 ZERO_EXTEND when their actual mode is not given.
14551 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
14553 * c-decl.c (pushdecl): If no global declaration is found for an
14554 extern declaration in block scope, try a limbo one.
14556 2002-02-20 Jakub Jelinek <jakub@redhat.com>
14559 * c-common.c (pointer_int_sum): Moved from...
14560 * c-typeck.c (pointer_int_sum): ...here.
14561 * c-common.h (pointer_int_sum): Add prototype.
14563 2002-02-20 Jakub Jelinek <jakub@redhat.com>
14566 * c-decl.c (duplicate_decls): Return 0 if issued error about
14569 2002-02-20 Roger Sayle <roger@eyesopen.com>
14570 Jakub Jelinek <jakub@redhat.com>
14573 * tree.c (host_integerp): Ensure that the constant integer is
14574 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
14575 when pos is zero or non-zero respectively. Clarify comment.
14576 * c-format.c (check_format_info_recurse): Fix host_integerp
14577 usage; the pos argument should be zero when assigning to a
14578 signed HOST_WIDE_INT.
14580 2002-02-20 Richard Henderson <rth@redhat.com>
14582 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
14583 of the operand, rather than assuming TImode.
14584 (ix86_expand_binop_builtin): Cope with commutative patterns
14585 using nonimmediate_operand for both operands.
14586 (ix86_expand_timode_binop_builtin): Likewise.
14587 (ix86_expand_store_builtin): Validate operand 1.
14588 (ix86_expand_unop1_builtin): Likewise.
14590 2002-02-20 Philip Blundell <philb@gnu.org>
14593 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
14595 2002-02-20 Richard Henderson <rth@redhat.com>
14598 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
14600 2002-02-20 Tom Tromey <tromey@redhat.com>
14602 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14603 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14604 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14605 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
14606 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
14609 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
14611 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
14612 for (const_int 0) in X not just INTVAL.
14614 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
14616 * doc/extend.texi: Avoid or reduce overfull hboxes.
14618 2002-02-20 Diego Novillo <dnovillo@redhat.com>
14620 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
14621 operations if the field does not start at a mode boundary.
14623 2001-02-20 Joel Sherrill <joel@OARcorp.com>
14625 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
14626 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
14627 Also done for -Acpu and -Amachine.
14629 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
14631 * cppinit.c (init_dependency_output): Take deps output file
14632 from -o if none given with -MF. Suppress normal output.
14633 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
14634 * doc/cpp.texi, doc/invoke.texi: Update.
14636 2002-02-19 Zack Weinberg <zack@codesourcery.com>
14638 * toplev.c (output_quoted_string): Write unprintable
14639 characters with octal escapes.
14641 2002-02-19 David Edelsohn <edelsohn@gnu.org>
14643 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
14644 really_call_used[VRSAVE_REGNO] if not Altivec.
14646 2002-02-19 Alan Modra <amodra@bigpond.net.au>
14648 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
14650 (constant_pool_expr_1): Fix formatting.
14651 (rs6000_legitimize_reload_address): Likewise.
14653 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14655 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
14656 now that we have one.
14658 2002-02-19 Zack Weinberg <zack@codesourcery.com>
14660 * tree.h (struct tree_common): Remove aux. Add unused_0 at
14661 end of first block of bitfields (which was only seven bits);
14662 rename dummy to unused_1; remove comment which is no longer true.
14664 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
14666 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
14668 2002-02-19 Philip Blundell <pb@nexus.co.uk>
14671 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
14675 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
14676 arm_is_longcall_p rather than inspecting call-type cookie
14678 (call_value_insn) [TARGET_THUMB]: Likewise.
14680 2002-02-19 Graham Stott <grahams@redhat.com>
14682 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
14684 2002-02-19 David Edelsohn <edelsohn@gnu.org>
14686 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
14687 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
14688 (FP_SAVE_INLINE): Delete.
14690 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
14691 * config/rs6000/eabi.asm: Remove ABI save restore routines.
14692 * config/rs6000/t-ppccomm: Build crtsavres.o.
14693 * config/rs6000/crtsavres.asm: New file.
14695 2002-02-19 Philip Blundell <philb@gnu.org>
14697 * config/arm/arm.c (use_return_insn): Don't reject interrupt
14699 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
14700 (output_return_instruction): Allow interrupt functions to return with
14701 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
14702 (arm_expand_prologue): Subtract 4 before stacking LR in an
14703 interrupt function.
14705 2002-02-19 Philip Blundell <pb@nexus.co.uk>
14707 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
14708 decl, not just FUNCTION_DECL.
14709 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
14710 (arm_assemble_integer): Likewise.
14711 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
14714 2002-02-19 matthew green <mrg@eterna.com.au>
14716 * config.gcc (sparc-*-netbsdelf*): Enable target.
14717 (sparc64-*-netbsd*): New target.
14718 * config/sparc/netbsd-elf.h: New file.
14719 * config/sparc/t-netbsd64: New file.
14721 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
14723 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
14725 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
14727 * doc/invoke.texi: explicitly list the style guidelines that
14728 -Weffc++ checks for.
14730 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
14732 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
14734 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
14737 * gcc.c (cpp_unique_options): Treat -o as indicating object file
14738 only if not -E. If -E, pass -o through to the preprocessor.
14740 2002-02-19 Kazu Hirata <kazu@hxi.com>
14742 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
14743 register number with an appropriate macro.
14745 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
14747 * doc/rtl.texi (Constants): Close @code tag.
14749 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
14751 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
14752 ("mmx_uavgv4hi3"): Same.
14753 ("pmulhrwv4hi3"): Same.
14755 * tree-inline.c (walk_tree): Handle vectors.
14757 * c-common.c (constant_expression_warning): Handle vectors.
14758 (overflow_warning): Same.
14760 * sched-deps.c (sched_analyze_2): Handle vectors.
14762 * rtlanal.c (rtx_unstable_p): Handle vectors.
14763 (rtx_varies_p): Same.
14764 (count_occurrences): Same.
14765 (regs_set_between_p): Same.
14766 (modified_between_p): Same.
14767 (modified_in_p): Same.
14768 (volatile_insn_p): Same.
14769 (volatile_refs_p): Same.
14770 (side_effects_p): Same.
14771 (may_trap_p): Same.
14772 (inequality_comparisons_p): Same.
14773 (replace_regs): Same.
14774 (computed_jump_p_1): Same.
14776 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
14778 (inner_mode_array): New.
14779 (copy_rtx): Handle vectors.
14780 (copy_most_rtx): Same.
14781 (rtx_equal_p): Same.
14782 (get_mode_alignment): Adjust for vectors.
14784 * resource.c (mark_referenced_resources): Handle vectors.
14785 (mark_set_resources): Same.
14787 * reload1.c (eliminate_regs): Handle vectors.
14788 (elimination_effects): Same.
14789 (scan_paradoxical_subregs): Same.
14791 * reload.c (subst_reg_equivs): Handle vectors.
14793 * regrename.c (scan_rtx): Handle vectors.
14795 * regclass.c (reg_scan_mark_refs): Handle vectors.
14797 * recog.c (find_single_use_1): Handle vectors.
14799 * local-alloc.c (equiv_init_varies_p): Handle vectors.
14800 (contains_replace_regs): Same.
14801 (memref_referenced_p): Same.
14803 * integrate.c (copy_rtx_and_substitute): Handle vectors.
14804 (subst_constants): Same.
14806 * genattrtab.c (attr_copy_rtx): Handle vectors.
14807 (encode_units_mask): Same.
14808 (clear_struct_flag): Same.
14809 (count_sub_rtxs): Same.
14811 * gcse.c (want_to_gcse_p): Handle vectors.
14812 (oprs_unchanged_p): Same.
14813 (hash_expr_1): Same.
14814 (oprs_not_set_p): Same.
14815 (expr_killed_p): Same.
14816 (compute_transp): Same.
14817 (store_ops_ok): Same.
14819 * function.c (purge_addressof_1): Do not allow paradoxical subregs
14821 (fixup_var_refs_1): Same.
14822 (instantiate_virtual_regs_1): Same.
14824 * fold-const.c (operand_equal_p): Handle vectors.
14826 (rtl_expr_nonnegative_p): Same.
14828 * flow.c (mark_used_regs): Handle vectors.
14830 * df.c (df_uses_record): Handle vectors.
14832 * cselib.c (cselib_subst_to_values): Handle vectors.
14833 (cselib_mem_conflict_p): Same.
14836 * cse.c (canon_reg): Handle vectors.
14838 (cse_process_notes): Same.
14839 (count_reg_usage): Same.
14840 (canon_hash): Same.
14842 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
14844 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
14846 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
14847 (gen_rtx): Handle CONST_VECTOR.
14848 (gen_const_vector_0): New.
14849 (copy_rtx_if_shared): CONST_VECTORs can be shared.
14850 (reset_used_flags): Same.
14851 (copy_insn_1): Same.
14852 (initializer_constant_valid_p): Handle VECTOR_CST.
14854 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
14856 * doc/rtl.texi (Constants): Document const_vector.
14857 (CONST0_RTX): Update for vectors.
14858 (RTL sharing): Same.
14860 * print-tree.c (print_node): Add case for VECTOR_CST.
14862 * tree.h (TREE_VECTOR_CST_ELTS): New.
14863 (struct tree_vector): New.
14864 (union tree_node): Add vector node.
14865 (build_vector): Add prototype.
14867 * tree.def (VECTOR_CST): New.
14869 * tree.c (build_vector): New.
14871 * expmed.c (make_tree): Handle CONST_VECTOR.
14873 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
14874 (CONST_VECTOR_ELT): New.
14875 (CONST_VECTOR_NUNITS): New.
14877 * machmode.h (GET_MODE_INNER): New.
14878 (DEF_MACHMODE): Accept 8th arg.
14880 * machmode.def: Add 8th argument for vector inner mode.
14881 Add inner vector modes for vectors.
14883 * rtl.def (VEC_CONST): Remove.
14884 (CONST_VECTOR): New.
14886 * expr.c (clear_storage): Allow vectors.
14887 (is_zeros_p): Handle VECTOR_CST.
14889 * varasm.c (output_constant_pool): Handle vectors.
14890 (rtx_const): Add veclo and vechi fields.
14891 (kind): Add RTX_VECTOR.
14892 (decode_rtx_const): Add case for vector.
14894 * config/rs6000/rs6000-protos.h: Add zero_constant.
14896 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
14897 constants. Force easy vector constants into memory.
14898 (easy_vector_constant): New.
14899 (emit_easy_vector_constant): New.
14900 (rs6000_legitimize_reload_address): Do not generate bad reloads on
14903 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
14905 ("altivec_lvxl"): Same.
14906 (altivec_lvebx): Same.
14907 (altivec_lvehx): Same.
14908 (altivec_lvewx): Same.
14909 ("*movv4si_const0"): New.
14910 ("*movv4sf_const0"): New.
14911 ("*movv8hi_const0"): New.
14912 ("*movv16qi_const0"): New.
14914 2002-02-18 Kazu Hirata <kazu@hxi.com>
14916 * config/h8300/h8300.c (notice_update_cc): Use
14919 2002-02-18 Kazu Hirata <kazu@hxi.com>
14921 * config/h8300/h8300.md (divmod patterns): Change the
14922 constraints for operands[1] to register_operand.
14924 2002-02-18 Kazu Hirata <kazu@hxi.com>
14926 * config/h8300/h8300-protos.h: Remove the prototype for
14928 * config/h8300/h8300.c (p_operand): Remove.
14929 * config/h8300/h8300.md: Replace p_operand with
14932 2002-02-18 Philip Blundell <pb@nexus.co.uk>
14934 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
14936 (output_return_instruction): Allow use of LDR to unstack
14937 return addresss even for interrupt handlers or when
14938 interworking. If compiling for ARMv5, use interworking-safe
14939 return instructions by default. Remove duplicated code and
14940 lengthy "strcat" sequences.
14942 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14944 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
14945 (LINK_EH_SPEC): Define.
14946 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
14948 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
14950 * config/s390/s390.c (s390_emit_prologue): Do not set the
14951 frame_related flag for call-clobbered registers.
14953 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
14955 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
14956 (construct_container): Fix handling of SSE operands.
14957 (ix86_expand_builtin): Fix handling of 64bit pointers.
14958 (mmx_maskmovq_rex): New pattern.
14960 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
14962 * regrename.c (kill_set_value): Handle subregs properly.
14964 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
14966 * objc/objc-act.c (handle_impent): Remove leading '*'
14967 from objc_class_name.
14969 2002-02-17 Richard Henderson <rth@redhat.com>
14971 * config/alpha/alpha.c (some_small_symbolic_operand,
14972 some_small_symbolic_operand_1, split_small_symbolic_operand,
14973 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
14974 Handle small SYMBOL_REFs anywhere, not just inside memories.
14975 * config/alpha/alpha-protos.h: Update.
14976 * config/alpha/alpha.h (PREDICATE_CODES): Update.
14977 * config/alpha/alpha.md (small symbolic operand splitter): Update.
14979 2002-02-17 Roland McGrath <roland@frob.com>
14981 * config.gcc (powerpc-*-gnu-gnualtivec*,
14982 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
14983 * config/rs6000/gnu.h: New file.
14984 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
14985 Grok "gnu" in rs6000_abi_name.
14986 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
14987 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
14988 Grok -mcall-gnu analogous to -mcall-linux et al.
14989 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
14990 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
14991 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
14993 2002-02-17 Jakub Jelinek <jakub@redhat.com>
14996 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
14999 2002-02-17 Philipp Thomas <pthomas@suse.de>
15001 * config/cris/cris.h: Undefine STARTFILE_SPEC and
15002 ENDFILE_SPEC before (re)defining them.
15004 2002-02-17 Kazu Hirata <kazu@hxi.com>
15006 * config/h8300/h8300.c: Fix formatting.
15007 * config/h8300/h8300.h: Likewise.
15009 2002-02-17 Philipp Thomas <pthomas@suse.de>
15011 * doc/tm.texi: Explain why empty strings should not be
15012 marked for translation.
15014 2002-02-17 Philipp Thomas <pthomas@suse.de>
15016 * final.c (output_operand_lossage): Changed to accept
15017 printf style arguments. Change calls where necessary.
15018 * output.h (output_operand_lossage): Change declaration
15019 accordingly. Update copyright.
15020 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
15021 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
15022 Update copyright date where necessary.
15024 * config/i386/i386.c (print_operand): Likewise. Remove use of
15027 * config/cris/cris.c (cris_operand_lossage): Likewise.
15028 Rename parameter so that exgettext recognizes it as
15029 translatable message.
15030 (LOSE_AND_RETURN): Rename parameter to msgid.
15032 2002-02-17 Kazu Hirata <kazu@hxi.com>
15034 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
15035 hard coded register number with an appropriate macro.
15036 (HARD_REGNO_MODE_OK): Likewise.
15037 (ARG_POINTER_REGNUM): Likewise.
15038 (STATIC_CHAIN_REGNUM): Likewise.
15039 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
15040 * config/h8300/h8300.md (define_constants): Define more
15043 2002-02-17 Philipp Thomas <pthomas@suse.de>
15045 * config/i386/i386.h: Don't mark empty strings for translation.
15047 2002-02-16 H.J. Lu <hjl@gnu.org>
15049 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
15051 2002-02-16 Zack Weinberg <zack@codesourcery.com>
15053 * cppinit.c (merge_include_chains): Check for brack being
15054 NULL before attempting to merge it with qtail.
15056 2002-02-16 Andrew Cagney <ac131313@redhat.com>
15058 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
15061 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
15063 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
15065 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
15067 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
15068 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
15069 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
15071 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15073 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
15074 now only if !TARGET_FIX.
15075 (*movsi_nt_vms_fix): New pattern.
15077 2002-02-16 Douglas B Rupp <rupp@gnat.com>
15079 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
15080 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
15081 (alpha_sa_mask, alpha_sa_size): Reflect above change.
15082 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
15083 (alpha_start_function, alpha_expand_epilogue): Likewise.
15084 (unicosmk_gen_dsib): Likewise.
15086 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15088 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
15090 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
15092 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
15093 check_and_change_labels, s390_final_chunkify): Delete.
15094 (s390_split_branches, s390_chunkify_pool): New functions.
15095 (s390_function_prologue): Call them.
15097 * config/s390/s390.h (S390_REL_MAX): Delete.
15098 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
15100 * config/s390/s390.md (cjump, icjump, jump): Fix length
15101 attribute calculation.
15104 2002-02-15 David Edelsohn <edelsohn@gnu.org>
15106 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
15107 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
15109 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
15111 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
15112 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
15113 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
15115 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
15117 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
15119 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
15121 * reload.c (find_dummy_reload): Check that an output register
15122 is valid for its mode.
15124 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
15126 * combine.c (known_cond): After replacing the REG of a SUBREG, try
15129 * function.c (assign_parms): Demote promoted argument passed by
15130 transparent reference.
15132 2001-02-14 Joel Sherrill <joel@OARcorp.com>
15134 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
15135 -Acpu() and -Amachine() to eliminate warnings.
15137 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
15139 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
15141 2002-02-14 Kazu Hirata <kazu@hxi.com>
15143 * config/h8300/h8300-protos.h: Update the prototype for
15145 * config/h8300/h8300.c (const_costs): Treat SET as a little
15146 more expensive operation.
15147 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
15148 reference to const_costs.
15150 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
15152 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
15154 2002-02-14 Jakub Jelinek <jakub@redhat.com>
15157 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
15158 use arguments from newtype.
15160 2002-02-13 Eric Christopher <echristo@redhat.com>
15162 * config/mips/mips.c (override_options): Add check for march/mipsX
15163 on the same command line. Fix error message in cpu processing.
15164 Remove architecture and ISA checks.
15166 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
15168 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
15170 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
15172 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
15174 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
15176 ("*movv8hi_internal1"): Same.
15177 ("*movv16qi_internal1"): Same.
15178 ("*movv4sf_internal1"): Same.
15180 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
15181 not push_reload for altivec modes.
15183 2002-02-13 Joel Sherrill <joel@OARcorp.com>
15185 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
15186 all RTEMS targets including removal of #includes from config/*/rtems*.h
15187 file and adding them to tm_file setting. Added xm_defines=POSIX to
15189 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
15190 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
15191 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
15192 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
15193 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
15194 config/m68k/rtemself.h: Ditto.
15195 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
15196 config/mips/rtems64.h: Ditto.
15197 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
15198 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
15200 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
15201 config/sparc/rtemself.h: Ditto.
15202 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
15203 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
15204 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
15206 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
15207 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
15208 target made more similar to i386-elf.
15209 * config/i386/t-rtems-i386: Added soft float support and multilibs.
15210 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
15211 be similar to config/m68k/t-m68kelf.
15212 * gthr-rtems.h: Encapsulate with extern "C" for C++.
15214 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
15216 * regmove.c (kill_value): Handle subregs.
15218 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
15220 * i386.md (mul patterns): Allow memory operand to be first;
15221 add expanders where needed; fix constraints.
15222 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
15223 Allow memory operand to be the first.
15225 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
15228 2002-02-13 Jakub Jelinek <jakub@redhat.com>
15231 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
15234 2002-02-13 Jakub Jelinek <jakub@redhat.com>
15236 PR optimization/5547:
15237 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
15238 all valid IA-32 address modes involving non-scaled %ebx and
15239 GOT/GOTOFF as displacement.
15241 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
15243 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
15244 after emitting ltorg insns.
15246 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
15247 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
15248 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
15249 *abssf2): Fix "op_type" attribute.
15251 2002-02-13 Douglas B Rupp <rupp@gnat.com>
15253 * mkconfig.sh: Avoid using a subshell redirect.
15254 ($output.T): Change to $(output)T.
15255 (ENABLE_NLS): Remove unneeded undef.
15257 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
15258 * config/alpha/x-vms (libsubdir): Define.
15260 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
15261 register frame procedures. Optimize retrieving context.
15263 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
15264 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
15265 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
15267 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15269 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
15270 Make same change as for find_base_value.
15272 2002-02-13 Kazu Hirata <kazu@hxi.com>
15274 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
15275 of QImode and SImode.
15277 2002-02-13 Kazu Hirata <kazu@hxi.com>
15279 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
15280 length computation of movsi.
15281 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
15283 2002-02-13 Kazu Hirata <kazu@hxi.com>
15285 * config/h8300/h8300.md (subqi3): Tighten the predicate for
15286 operands[2] to register_operand.
15288 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
15290 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
15292 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
15294 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
15295 for altivec_lvx* and altivec_stvx*.
15296 ("*movv4si_internal"): Add constraint for loading from GPRs.
15297 ("*movv8hi_internal1"): Same.
15298 ("*movv16qi_internal1"): Same.
15299 ("*movv4sf_internal1"): Same.
15301 * config/rs6000/rs6000.c (altivec_register_operand): New.
15303 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
15304 altivec_register_operand.
15306 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
15308 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
15311 2002-02-13 Stan Shebs <shebs@apple.com>
15313 * c-typeck.c (digest_init): Handle vectors.
15314 (really_start_incremental_init): Same.
15315 (pop_init_level): Same.
15316 (process_init_element): Same.
15318 * varasm.c (output_constant): Same.
15320 * expr.c (clear_storage): Same.
15321 (store_constructor): Same.
15323 2002-02-12 Eric Christopher <echristo@redhat.com>
15325 * explow.c (hard_function_value): Add comment explaining
15326 signed/unsigned comparison.
15328 2002-02-12 Jakub Jelinek <jakub@redhat.com>
15330 * jump.c (never_reached_warning): Add finish argument.
15331 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
15332 real insn after end.
15333 * rtl.h (never_reached_warning): Adjust prototype.
15334 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
15335 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
15336 never_reached_warning.
15338 2002-02-12 Graham Stott <grahams@redhat.com>
15340 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
15342 2002-02-12 Kazu Hirata <kazu@hxi.com>
15344 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
15345 logical shifts on H8/300.
15346 (shift_alg_si): Improve several shifts on H8/300.
15347 (get_shift_alg): Likewise.
15349 2002-02-12 Graham Stott <grahams@redhat.com>
15351 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
15353 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15355 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
15356 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
15358 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
15360 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
15361 non-CONST_INT through default_assemble_integer.
15362 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
15363 <case 8>: Abort for CONST_DOUBLE.
15365 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
15367 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
15369 * config/pa/pa-linux.h (LIB_SPEC): Delete.
15370 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
15372 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
15374 * config/stormy16/stormy16.md (zero_extendqihi2): New.
15376 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
15378 * regrename.c (regrename_optimize): Don't accept a
15379 part-clobbered register if the replaced register is not part
15382 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
15383 take padding into account when computing the argument value.
15385 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
15387 * combine.c (try_combine): Apply substitutions in
15388 CALL_INSN_FUNCTION_USAGE too.
15390 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
15392 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
15393 __builtin_altivec_abs*.
15396 * config/rs6000/rs6000.h (rs6000_builtins): Add
15397 ALTIVEC_BUILTIN_ABS*.
15399 * config/rs6000/altivec.h: Use const char for builtins expecting
15401 (vec_abs): New versions for C and C++.
15404 2002-02-10 Kazu Hirata <kazu@hxi.com>
15406 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
15409 2002-02-10 Kazu Hirata <kazu@hxi.com>
15411 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
15412 constant definition from h8300.md.
15413 (FRAME_POINTER_REGNUM): Likewise.
15414 * config/h8300/h8300.md (define_constants): Add FP_REG.
15416 2002-02-10 Kazu Hirata <kazu@hxi.com>
15418 * config/h8300/h8300.c (print_operand): Remove redundant code.
15420 2002-02-10 Kazu Hirata <kazu@hxi.com>
15422 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
15423 * config/h8300/h8300.c (byte_reg): Make it static.
15425 2002-02-10 Richard Henderson <rth@redhat.com>
15428 * c-typeck.c (incomplete_type_error): Handle flexible array members.
15430 2002-02-10 Richard Henderson <rth@redhat.com>
15433 * tree.c (append_random_chars): Don't abort if main_input_filename
15436 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
15438 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
15440 2002-02-10 Kazu Hirata <kazu@hxi.com>
15442 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
15443 (pushhi1): Likewise.
15445 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
15447 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
15448 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
15450 2002-02-09 David O'Brien <obrien@FreeBSD.org>
15452 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
15454 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
15456 2002-02-09 Kazu Hirata <kazu@hxi.com>
15458 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
15459 a half of an SImode register on H8/300.
15461 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
15463 * i386.md (movdi_2): Add missing '!'.
15465 2002-02-09 Kazu Hirata <kazu@hxi.com>
15467 * config/h8300/h8300.h: Fix formatting. Remove commented-out
15470 2002-02-09 Kazu Hirata <kazu@hxi.com>
15472 * config/h8300/h8300.md (length): Correct the distance valid
15473 for the short branch.
15475 2002-02-09 Kazu Hirata <kazu@hxi.com>
15477 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
15479 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
15481 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
15482 registers in SImode.
15483 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
15486 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
15489 Contribute sh64-elf.
15490 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
15491 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
15492 (sh_cannot_modify_jumps_p): New function.
15493 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
15494 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
15495 (sh_ms_bitfield_layout_p): New function.
15496 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
15497 Zack Weinberg <zack@codesourcery.com>
15498 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
15499 expand_simple_binop instead of expand_binop.
15500 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
15501 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
15502 use of .quad and .uaquad.
15503 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
15504 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
15505 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
15506 * config/sh/sh.md (movdi_const, movdi_const_32bit,
15507 movdi_const_16bit): Make sure all CONSTs have modes.
15508 (sym2PIC): Ditto, but by adjusting all callers.
15509 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
15510 if the prologue calls the SHmedia argument decoder or register
15512 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
15513 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
15514 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
15515 (sh_expand_epilogue): Don't emit USE of return target register.
15516 (prepare_move_operands): Legitimize DImode PIC addresses.
15517 (sh_media_register_for_return): Skip tr0, used to initialize the
15519 (sh_expand_prologue): Remove explicit USE of return register.
15520 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
15521 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
15522 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
15523 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
15524 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
15525 EXTRA_CONSTRAINT_T.
15526 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
15527 (MOVI_SHORI_BASE_OPERAND_P): New.
15528 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
15529 (EXTRA_CONSTRAINT_T): Define in terms of them.
15530 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
15531 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
15532 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
15533 alternatives supporting TARGET_REGS.
15534 (UNSPEC_GOTPLT): New constant.
15535 (movdi split): Move incrementing of LABEL_NUSES...
15536 (movdi_const, movdi_const_32bit): Here. Use
15537 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
15538 (movdi_const_16bit): New.
15539 (call, call_value) [flag_pic]: Use GOTPLT.
15540 (call_pop, call_value_pop): New expands.
15541 (call_pop_compact, call_pop_rettramp): New insns.
15542 (call_value_pop_compact, call_value_pop_rettramp): New insns.
15543 (sibcall) [flag_pic]: Use GOT.
15544 (builtint_setjmp_receiver): Remove bogus, unused expand.
15545 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
15546 (*pt, *ptb, ptrel): New insns.
15547 (sym2GOT): Handle DImode GOT.
15548 (sym2GOTPLT, symGOTPLT2reg): New expands.
15549 (sym2PIC): New expand.
15550 (shcompact_return_tramp): Use GOTPLT to return trampoline.
15551 (shcompact_return_tramp_i): Use return register explicitly.
15552 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
15553 disable flag_reorder_blocks.
15554 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
15555 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
15556 clobbers, for clarity.
15557 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
15558 restoring of r0 in macl as MAYBE_DEAD.
15559 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
15560 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
15561 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
15562 alter_subreg all over.
15563 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
15564 reload, instead of emitting instructions that would require
15566 (casesi_load_media): Add missing modes.
15567 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
15568 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
15569 as used if the argument decoder is called.
15570 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
15571 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
15572 Pmode, then extend it to DImode if necessary.
15573 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
15574 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
15575 constants in FPU-enabled SHmedia, let them be loaded from memory.
15576 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
15577 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
15578 Adjust whitespace in assembly output templates.
15579 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
15580 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
15581 mode of if_then_else.
15582 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
15583 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
15585 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
15586 Joern Rennecke <amylaar@redhat.com>
15587 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
15588 (SUBTARGET_CPP_PTR_SPEC): New.
15589 (SUBTARGET_CPP_SPEC): Remove.
15590 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
15591 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
15592 Fix typo in previous checkin.
15593 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
15594 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
15595 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
15596 Alexandre Oliva <aoliva@redhat.com>
15597 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
15598 what single FP register can hold for SHmedia target.
15599 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
15600 Alexandre Oliva <aoliva@redhat.com>
15601 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
15602 Do not split into SUBREG.
15603 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
15604 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
15605 and added new functions as specified in SH5 ABI r9.
15606 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
15607 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
15609 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
15610 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
15611 gen_consttable_4 and gen_consttable_8. Emit multiple labels
15612 and consttable_window_ends.
15613 2001-06-03 Graham Stott <grahams@redhat,com>
15614 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
15615 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
15616 * config/sh/sh.c (print_operand): Handle floating-point pair,
15617 vector and matrix registers.
15618 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
15619 vector modes into account.
15620 * config/sh/sh.md (movv2sf): Split move between registers into
15622 (movv4sf, movv16sf): Introduce insns that get split only after
15624 * config/sh/shmedia.h: Fix Copyright dates.
15625 * config/sh/ushmedia.h: Likewise. Move loop counter
15626 declarations into conditionals that uses them.
15627 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
15629 * config/sh/sshmedia.h: Fix Copyright dates.
15630 (sh_media_PUTCFG): Fix constraints.
15631 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
15632 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
15633 ptrmemfunc_vbit_in_delta for SH5.
15634 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
15635 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
15636 * invoke.texi: Likewise.
15637 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
15638 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
15639 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
15640 GCC_pop_shmedia_regs_nofpu): New global symbols.
15641 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
15642 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
15643 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
15644 compact function with nonlocal labels.
15645 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
15646 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
15647 (initial_elimination_offset): Account for their stack space.
15648 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
15649 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
15650 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
15651 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
15652 least one of the operands to be a register.
15653 (movv2sf): Likewise. Renamed to movv2sf_i.
15654 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
15655 prepare_move_operands() before emitting SHmedia insns.
15656 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
15657 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
15658 Don't save nor initialize r12. Don't mis-align the stack.
15659 Pad the code with a nop.
15660 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
15662 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
15663 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
15664 [__SHMEDIA__]: Implement.
15665 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
15666 * config/sh/sh.md: Set latency of `pt' closer to reality.
15667 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
15668 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
15669 Set move, load and store type attributes.
15670 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
15671 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
15673 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
15674 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
15675 * config/sh/sh.c (sh_media_register_for_return): New function.
15676 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
15677 branch-target register.
15678 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
15679 * config/sh/sh.md (return_media_i): Use any call-clobbered
15680 branch-target register.
15681 (return_media): If r18 wasn't copied in the prologue, copy it
15683 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
15684 Clear class FP0_REGS.
15685 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
15687 2001-03-08 DJ Delorie <dj@redhat.com>
15688 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
15689 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
15690 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
15691 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
15692 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
15693 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
15694 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
15695 return value correctly for call_cookie.
15696 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
15697 * config/sh/crt1.asm (start): Modified so as to call
15698 ___setup_argv_and_call_main.
15699 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
15700 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
15702 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
15703 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
15704 (STRIP_NAME_ENCODING): Use it.
15705 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
15706 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
15707 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
15708 prepare_scc_operands().
15709 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
15710 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
15711 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
15712 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
15713 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
15714 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
15715 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
15716 used in shcompact_incoming_args.
15717 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
15719 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
15721 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
15722 Adjust accordingly.
15723 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
15724 Simplify. Adjust. Add sanity check.
15725 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
15727 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
15729 (udivsi3, divsi3): Use them.
15730 (force_mode_for_call): New insn.
15731 (call, call_value, sibcall_value): Emit it before SHcompact
15733 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
15734 * config/sh/sh.md (call, call_value, sibcall): Make sure the
15735 call cookie is non-NULL before taking its value.
15736 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
15737 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
15738 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
15739 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
15741 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
15742 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
15743 temporary for stack adjusts. Use MACL and MACH to pass
15744 arguments to shcompact_incoming_args.
15745 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
15747 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
15748 (nested_trampoline): Load static chain address into r1.
15749 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
15750 2001-01-07 Alexandre Oliva <aoliva@redhat.com
15751 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
15752 fp_arith_reg_operand().
15753 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
15754 * config/sh/sh.md (casesi): Sign-extend the first two operands,
15755 and use signed compares for them.
15756 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
15757 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
15758 ones properly aligned.
15759 (find_barrier): Account for extra alignment needed for 8-byte wide
15761 (machine_dependent_reorg): Require a label for the second 4-byte
15762 constant after an 8-byte one.
15763 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
15765 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
15766 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
15767 last_float when switching float modes.
15768 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
15769 auto-increment for general-purpose registers.
15770 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
15772 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
15774 * config/sh/sh.c (sh_builtin_saveregs): Support using all
15775 registers for varargs.
15776 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
15777 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
15778 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
15779 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
15780 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
15781 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
15782 call_cookie accordingly.
15783 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
15784 (SHCOMPACT_BYREF): Likewise.
15785 (SHCOMPACT_FORCE_ON_STACK): New macro.
15786 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
15787 (sh_builtin_saveregs): Likewise.
15788 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
15789 shcompact_incoming_args): Use new shift values. Support
15790 sequences of consecutive and non-consecutive pushes/pops.
15791 * config/sh/sh.md (return): Don't explicitly use PR_REG.
15792 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
15793 * config/sh/sh.h (TEXT_SECTION): Define.
15794 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
15795 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
15796 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
15797 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
15798 return values on FPU-enabled SHmedia.
15799 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
15800 FPU-enabled SHmedia.
15801 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
15802 value is returned in a non-FP reg and is not returned by
15804 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
15806 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
15807 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
15808 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
15809 quad-aligned to be passed by callee-copy reference.
15810 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
15811 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
15812 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
15813 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
15814 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
15815 copying low-numbered FP regs to r7 and r8.
15816 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
15817 FP regs to general-purpose regs only if the copy was passed on the
15819 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
15820 copying FP reg to r9.
15821 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
15822 copy FP regs to general-purpose regs only in outgoing calls.
15823 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
15824 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
15826 * config/sh/sh.h (struct sh_args): Document all fields.
15827 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
15828 passed partially on the stack should not consider making
15830 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
15831 stack_regs only for incoming calls. When passing FP args,
15832 make sure there are FP regs available before modifying
15834 (SHCOMPACT_BYREF): Pass double args in general-purpose
15835 registers by reference.
15836 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
15837 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
15838 attempt to generate sibcalls if the caller got any arguments
15840 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
15841 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
15842 to 8-byte boundaries.
15843 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
15844 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
15845 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
15846 stored in the stack.
15847 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
15848 for the offsets to have the ISA bit set.
15849 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
15850 invocation. Use beq instead of bgt to mark end of sequence of
15852 (shcompact_incoming_args): Fix store of r2. Use beq instead of
15853 bgt to mark end of sequence of stores.
15854 * config/sh/sh.c (arith_operand): Don't check whether
15855 CONST_OK_FOR_J for now.
15856 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
15857 instead of long for conversion.
15858 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
15859 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
15860 before passing it to fprintf.
15861 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
15862 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
15863 Call set_fpscr before reading/writing SR.
15864 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
15866 * config/sh/lib1funcs.asm: Add `.align 2' directives before
15868 (FMOVD_WORKS): Define on SH5 with FPU.
15869 (set_fpscr): Define on SH5. Remove separate _fpscr_values
15871 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
15873 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
15874 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
15876 (ia_main_table): Ditto.
15877 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
15878 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
15879 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
15880 the definitions from sh.h.
15881 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
15883 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
15884 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
15885 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
15886 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
15887 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
15888 Increment LABEL_NUSES.
15890 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
15892 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
15894 * config/sh/elf.h (SIZE_TYPE): Likewise.
15895 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
15896 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
15897 shcompact_incoming_args): Load switch table addresses using
15899 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
15900 (NO_BUILTIN_SIZE_TYPE): Define.
15901 (SIZE_TYPE): Don't define.
15902 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
15903 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
15904 definition of __SH5__=32 for -m5-compact-nofpu.
15905 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
15907 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
15908 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
15909 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
15910 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
15911 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
15912 (INSN_LENGTH_ALIGNMENT): Likewise.
15913 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
15914 * config/sh/sh.md (call, call_value, sibcall): Simplify
15915 copying of non-branch-target register.
15916 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
15917 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
15918 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
15919 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
15920 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
15921 floating-point values as structs.
15922 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
15923 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
15924 general-purpose register.
15925 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
15926 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
15927 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
15928 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
15929 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
15930 (ENCODE_SECTION_INFO): Enclose variables and constants in
15932 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
15933 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
15934 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
15935 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
15936 only for LABEL_REFs. For SYMBOL_REFs, prepend
15937 SH_DATALABEL_ENCODING to the symbol name.
15938 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
15940 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
15941 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
15943 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
15944 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
15945 (DATALABEL_REF_P): Don't require CONST.
15946 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
15948 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
15949 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
15951 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
15952 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
15953 Use shallow_copy_rtx and PUT_MODE to change the mode of
15954 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
15955 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
15956 on SHmedia using GENERAL_REGs.
15957 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
15958 bltu_media_i): Fix reversion of conditions.
15959 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
15960 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
15961 * config/sh/sh.c (output_far_jump): Save r13 in macl.
15962 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
15963 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
15964 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
15965 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
15966 (GCC_nested_trampoline): Likewise.
15967 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
15968 * config/sh/sh.c (gen_datalabel_ref): Define.
15969 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
15970 (INITIALIZE_TRAMPOLINE): Likewise.
15971 (TRAMPOLINE_ADJUST_ADDRESS): Define.
15972 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
15973 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
15974 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
15975 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
15976 (ic_invalidate): Adjust for SH5.
15977 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
15978 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
15979 _nested_trampoline.
15980 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
15981 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
15982 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
15983 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
15984 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
15985 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
15986 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
15987 * config/sh/sh.c (target_reg_operand): Match only target-branch
15988 registers and pseudos that aren't virtual registers.
15989 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
15990 Copy operands that don't match target_reg_operand to pseudos.
15991 (call_media, call_value_media, sibcall_media): Use
15992 target_reg_operand instead of target_operand.
15993 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
15994 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
15995 * config/sh/sh.c (target_reg_operand): Match hardware registers
15996 other than branch-target registers.
15997 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
15998 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
15999 (fpscr_values) [SH5 == 32]: Define.
16000 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
16001 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
16002 Handle function addresses coming in SUBREGs.
16003 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
16004 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
16005 shcompact_return_trampoline): Use datalabel where appropriate.
16006 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
16007 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
16008 general-purpose register to copy one branch-target register to
16010 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
16011 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
16012 SYMBOL_REFs with VOIDmode.
16013 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
16014 bltu_media_i): New insns.
16015 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
16016 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
16017 (INIT_CUMULATIVE_ARGS): Likewise.
16018 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
16019 * machmode.def (V16SFmode): New mode.
16020 * c-common.c (type_for_mode): Support V2SF and V16SF.
16021 * tree.c (build_common_tree_nodes_2): Likewise.
16022 * tree.h (tree_index): Likewise.
16023 * calls.c (emit_call_1): Take args_so_far. Adjust all
16024 callers. Introduce CALL_POPS_ARGS.
16025 * tm.texi (CALL_POPS_ARGS): Document.
16026 * config/sh/crt1.asm: Implement in SHmedia mode.
16027 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
16028 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
16029 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
16030 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
16031 Implement divsi and udivsi in SHmedia mode. Introduce
16032 SHcompact trampolines.
16033 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
16035 (regno_reg_class): Rewrite.
16036 (fp_reg_names): Remove.
16037 (sh_register_names, sh_additional_register_names): New.
16038 (print_operand): Added `u'. Support SUBREGs in addresses.
16039 Add parentheses around shifted CONSTs.
16040 (output_file_start): Output .mode and .abi directives.
16041 (shiftcosts, addsubcosts, multcosts): Adjust.
16042 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
16043 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
16044 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
16045 bytes, not registers. Take into account the need for the
16046 SHcompact incoming args trampoline. Adjust all callers.
16047 (sh_expand_prologue): Take stack_regs into account. Call
16048 incoming args trampoline. Keep stack aligned as per SH5 ABI.
16049 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
16050 stack aligned as per SH5 ABI.
16051 (sh_builtin_saveregs): Support SH5 ABI.
16052 (sh_build_va_list, sh_va_start): Likewise.
16053 (initial_elimination_offset): Take alignment into account.
16054 Compute location of PR according to the SH5 stack frame.
16055 (arith_reg_operand): Reject branch-target registers.
16056 (shmedia_6bit_operand): New.
16057 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
16058 (target_reg_operand): Match DImode only. Accept SUBREGs.
16059 (target_operand): New.
16060 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
16061 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
16062 SIBCALL_REGS for SHmedia.
16063 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
16064 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
16065 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
16066 (TARGET_SWITCHES): New SH5 flags.
16067 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
16068 VALID_REGISTER_P to disable unsupported registers.
16069 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
16070 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
16071 (FUNCTION_ARG_PADDING): Define.
16072 (FASTEST_ALIGNMENT): Adjust.
16073 (SH_REGISTER_NAMES_INITIALIZER): New.
16074 (sh_register_names): Declare.
16075 (DEBUG_REGISTER_NAMES): Define.
16076 (REGISTER_NAMES): Define based on sh_register_names.
16077 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
16078 (sh_additional_register_names): Declare.
16079 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
16080 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
16081 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
16082 (REGISTER_NATURAL_MODE): Define.
16083 (FIRST_PSEUDO_REGISTER): Adjust.
16084 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
16085 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
16086 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
16087 (VECTOR_MODE_SUPPORTED_P): Define.
16088 (REG_CLASS_CONTENTS): Adjust.
16089 (SMALL_REGISTER_CLASSES): Adjust.
16090 (REG_ALLOC_ORDER): Adjust.
16091 (INDEX_REG_CLASS): Adjust.
16092 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
16093 (CONST_OK_FOR_LETTER_P): Adjust.
16094 (PREFERRED_RELOAD_CLASS): Adjust.
16095 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
16096 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
16097 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
16098 (FIRST_FP_PARM_REG): Adjust.
16099 (CALL_POPS_ARGS): Define.
16100 (FUNCTION_ARG_REGNO_P): Adjust.
16101 (struct sh_args): New fields.
16102 (GET_SH_ARG_CLASS): Adjust.
16103 (INIT_CUMULATIVE_ARGS): Adjust.
16104 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
16105 (FUNCTION_ARG_ADVANCE): Adjust.
16106 (FUNCTION_ARG): Adjust.
16107 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
16108 (FUNCTION_ARG_CALLEE_COPIES): Define.
16109 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
16110 (STRICT_ARGUMENT_NAMING): Define.
16111 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
16112 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
16113 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
16114 (SETUP_INCOMING_VARARGS): Adjust.
16115 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
16116 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
16117 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
16118 (SUBREG_OK_FOR_INDEX_P): Adjust.
16119 (EXTRA_CONSTRAINT_S): Update.
16120 (EXTRA_CONSTRAINT_T): New.
16121 (EXTRA_CONSTRAINT): Adjust.
16122 (GO_IF_LEGITIMATE_INDEX): Adjust.
16123 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
16124 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
16125 (MOVE_MAX): Adjust.
16126 (MAX_MOVE_MAX): Define.
16128 (CONST_COSTS): Adjust.
16129 (REGISTER_MOVE_COST): Adjust.
16130 (BRANCH_COST): Adjust.
16131 (TEXT_SECTION_ASM_OP): Adjust.
16132 (DBX_REGISTER_NUMBER): Adjust.
16133 (ASM_OUTPUT_DOUBLE_INT): New.
16134 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
16135 (PREDICATE_CODES): Adjust.
16136 (PROMOTE_MODE): Adjust.
16137 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
16138 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
16139 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
16140 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
16141 (DR0_REG, DR2_REG, DR4_REG): Renumber.
16142 (TR0_REG, TR1_REG, TR2_REG): New.
16143 (XD0_REG): Renumber.
16144 (UNSPEC_COMPACT_ARGS): New.
16145 (type): Added pt and ptabs.
16146 (length): Default to 4 on SHmedia. Default pt length to 12
16147 and 20 on SHmedia32 and SHmedia64, respectively.
16148 (pt): New function unit.
16149 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
16150 Add whitespace between operands of SHmedia instructions.
16152 (adddi3_media, addsi3_media): Adjust constraints.
16153 (subsi3) [SHmedia]: Force operand 1 into a register.
16154 (udivsi3_i1_media, udivsi3_i4_media): New.
16155 (udivsi3): Support SHmedia.
16156 (divsi3_i1_media, divsi3_i4_media): New.
16157 (divsi3): Support SHmedia.
16158 (anddi3, iordi3, xordi3): Adjust constraints.
16159 (zero_extendhidi2, zero_extendqidi2): New.
16160 (extendsidi2, extendhidi2, extendqidi2): New.
16161 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
16162 (pop_e, pop_fpul, pop_4): Likewise.
16163 (movsi_media): Support FP and BT registers.
16164 (movsi_media_nofpu): New. Adjust splits to DImode.
16165 (lduw, ldub): Renamed to zero_extend* above.
16166 (movqi_media): Fix typo.
16167 (movdi_media): Support FP and BT registers.
16168 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
16169 (movdi_const_32bit): New.
16170 (shori_media): Require immediate operand. Use `u' for output.
16171 (movdf_media, movsf_media): Simplified.
16172 (movdf_media_nofpu, movsf_media_nofpu): New.
16173 (movdf, movsf): Adjust
16174 (movv2sf, movv2sf, movv16sf): New.
16175 (beq_media, beq_media_i): Adjust constraints. Don't use
16176 scratch BT register.
16177 (bne_media, bne_media_i): Likewise.
16178 (bgt_media, bgt_media_i): Likewise.
16179 (bge_media, bge_media_i): Likewise.
16180 (bgtu_media, bgtu_media_i): Likewise.
16181 (bgeu_media, bgeu_media_i): Likewise.
16182 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
16183 bunordered): Emit jump insn. Force operands to registers when
16185 (jump_media, jump): Simplify.
16186 (call_compact, call_compact_rettramp): New.
16187 (call_value_compact, call_value_compact_rettramp): New.
16188 (call_media, call_value_media): Simplify.
16189 (sibcall_compact, sibcall_media): New.
16190 (call, call_value): Adjust for SHmedia and SHcompact.
16191 (sibcall, sibcall_value, untyped_call): Likewise.
16192 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
16193 (indirect_jump): Adjust for SHmedia.
16194 (casesi_jump_media): New.
16195 (nop): Re-enable for SHmedia.
16196 (call_site): Restrict to SH1.
16197 (casesi): Adjust for SHmedia.
16198 (casesi_shift_media, casesi_load_media): New.
16199 (return): Explicitly use PR register. Call return trampoline
16201 (return_i): Explicitly use PR register.
16202 (shcompact_return_tramp, shcompact_return_tramp_i): New.
16203 (return_media): Adjust.
16204 (shcompact_incoming_args): New.
16205 (epilogue): Adjust.
16206 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
16207 (movstrsi): Disable on SH5.
16208 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
16209 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
16210 (subsf3, subsf3_media): Likewise.
16211 (mulsf3, mulsf3_media, mac_media): Likewise.
16212 (divsf3, divsf3_media): Likewise.
16213 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
16214 (floatsisf2, fux_truncsfsi2): Likewise.
16215 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
16217 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
16218 (cmpunsf_media, cmpsf): Likewise.
16219 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
16220 (abssf2, abssf2_media): Likewise.
16221 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
16222 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
16223 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
16224 (floatsidf2, fix_truncdfsi2): Likewise.
16225 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
16227 (cmpeqdf_media, cmpgtdf_media): Likewise.
16228 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
16229 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
16230 (absdf2, absdf2_media): Likewise.
16231 (extendsfdf2, extendsfdf2_media): Likewise.
16232 (truncsfdf2, truncsfdf2_media): Likewise.
16233 * config/sh/sh64.h: New file.
16234 * config/sh/t-sh64: New file.
16235 * config/sh/shmedia.h: New file.
16236 * config/sh/ushmedia.h: New file.
16237 * config/sh/sshmedia.h: New file.
16238 * configure.in: Added sh64-*-elf.
16239 * configure: Rebuilt.
16240 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
16241 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
16242 (reg_class_from_letter): Use `b' for TARGET_REGS.
16243 (print_operand): Support `%M', `%m', `AND' and
16244 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
16245 (andcosts): Adjust for SHmedia.
16246 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
16248 (target_reg_operand): New function.
16249 * config/sh/sh-protos.h (target_reg_operand): Declare.
16250 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
16251 FP registers on SH5.
16252 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
16254 (TARGET_REGISTER_P): New macro.
16255 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
16256 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
16257 (EXTRA_CONSTRAINT_S): New macro.
16258 (EXTRA_CONSTRAINT): Adjust.
16259 (FLOAT_TYPE_SIZE): Define to 32.
16260 (Pmode): DImode on SHmedia.
16261 (CONST_COSTS): Adjust for SHmedia literals.
16262 (PREDICATE_CODES): Added target_reg_operand.
16263 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
16264 * config/sh/sh.md: Remove all attrs from SHmedia insns.
16265 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
16266 (cmpdi): Accept SHmedia.
16267 (movdicc_false, movdicc_true): New insns.
16268 (movdicc): New expand.
16269 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
16271 (addsi3_media): Match `S' constraint.
16272 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
16273 (negdi2): Expand for SHmedia.
16274 (one_cmpldi2): New expand.
16275 (zero_extendsidi2): Change from expand to insn.
16276 (extendsidi2): Add constraints.
16277 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
16278 LD/ST address. Fix SI immediate loading split.
16279 (movhi_media, movqi_media, lduw, ldub): New insns.
16280 (movhi, movqi): Accept SHmedia.
16281 (shori_media, movdi_media): Relax input constraints. Split
16282 symbolic constants.
16283 (movdf_media, movsf_media): New insn. New split to movdi.
16284 (movdf, movsf): Match on SHmedia.
16285 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
16286 bgeu_media): New insns and splits. New insns with `_i' suffix.
16287 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
16288 (bunordered): New expand.
16289 (jump_compact): Renamed from `jump'.
16290 (jump_media): New insn.
16291 (jump): New expand.
16292 (call_media, call_value_media): New insns.
16293 (call, call_value): Adjust.
16294 (indirect_jump_compact): Renamed from `indirect_jump'.
16295 (indirect_jump_media): New insn.
16296 (indirect_jump): New expand.
16297 (untyped_call, return): Accept SHmedia.
16298 (return_media): New insn.
16299 (prologue, epilogue, blockage): Accept SHmedia.
16300 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
16301 (sunordered): New expand.
16302 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
16303 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
16304 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
16305 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
16306 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
16307 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
16308 abssf2_media): New insns.
16309 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
16310 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
16311 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
16312 floatdidf2, floatsidf2_media, fix_truncdfdi2,
16313 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
16314 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
16315 absdf2_media): New insns.
16316 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
16317 (extendsfdf2_media, truncdfsf2_media): New insns.
16318 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
16319 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
16320 * config/sh/sh.h (CONST_OK_FOR_J): Document.
16321 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
16322 * config/sh/sh.md (adddi3): New expand.
16323 (adddi3_media, adddi3z_media): New insns.
16324 (adddi3_compact): Renamed from adddi3.
16325 (addsi3_media): Use add.l r63 to add constant zero.
16326 (subdi3): New expand.
16327 (subdi3_media): New insn.
16328 (subdi3_compact): Renamed from subdi3.
16329 (mulsidi3): New expand.
16330 (mulsidi3_media): New insn.
16331 (mulsidi3_compact): Renamed from mulsidi3.
16332 (umulsidi3): New expand.
16333 (umulsidi3_media): New insn.
16334 (umulsidi3_compact): Renamed from umulsidi3.
16335 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
16336 (ashlsi3, ashrsi3, lshrsi3): Use them.
16337 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
16338 (ashldi3, ashrdi3, lshrdi3): Use them.
16339 (zero_extendsidi2): New expand.
16340 (extendsidi2): New insn.
16341 (movsi_media): New insn. Split to movdi to load constants.
16342 (movsi): Enable for shmedia.
16343 (movdi_media): New insn. Use shori_media to load wide constants.
16344 (short_media): New insn.
16345 (movdi): Enable for shmedia.
16346 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
16347 * config/sh/sh.h (CPP_SPEC): Added `m5'.
16348 (SUBTARGET_CPP_SPEC): Added `!m5'.
16349 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
16350 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
16351 to all other SH variants.
16352 (TARGET_DEFAULT): Set to SH1_BIT.
16353 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
16354 (BITS_PER_WORD): Raise to 64 on shmedia.
16355 (MAX_BITS_PER_WORD): Change to 64.
16356 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
16357 (INT_TYPE_SIZE): Keep as 32.
16358 (UNITS_PER_WORD): Raise to 8 on shmedia.
16359 (MIN_UNITS_PER_WORD): Keep as 4.
16360 (POINTER_SIZE): Raise to 64 on shmedia.
16361 (CONST_OK_FOR_J): New macro.
16362 (CONST_OK_FOR_LETTER_P): Use it.
16363 (processor_type): Add PROCESSOR_SH5.
16364 * config/sh/sh.md: Conditionalize all expands, insns and
16365 splits to TARGET_SH1.
16367 (addsi3_compact): Renamed from...
16368 (addsi3): Now an expand.
16369 (addsi3_media, subsi3_media): New insns.
16370 (subsi3): Don't negate constants with SHmedia.
16372 * hooks.c: New file.
16373 * hooks.h: New file.
16374 * Makefile.in (HOOKS_H): New.
16375 (TARGET_DEF_H): Added $(HOOKS_H).
16376 (OBJS): Added hooks.o.
16377 (cfgcleanup.o, bb-reorder.o): Added target.h.
16378 (hooks.o): Added dependencies.
16379 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
16380 (TARGET_INITIALIZER): this.
16381 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
16382 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
16383 * bb-reorder.c: Include target.h.
16384 (reorder_basic_blocks): Skip if cannot modify jumps.
16385 * cfgcleanup.c: Include target.h.
16386 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
16388 2002-02-08 Chris Demetriou <cgd@broadcom.com>
16390 * config/mips/mips.md (casesi_internal, casesi_internal_di):
16391 Protect jump delay slot instructions with .set noreorder and
16394 2002-02-08 Chris Demetriou <cgd@broadcom.com>
16396 * config/mips/mips.md (casesi_internal_di): Calculate
16397 the index into the target offset table correctly.
16399 2002-02-08 Richard Henderson <rth@redhat.com>
16401 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
16402 * final.c (output_addr_const): Accept and discard SUBREG.
16403 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
16404 mark them unknown instead.
16405 (simplify_subtraction): Handle RTX_UNKNOWN.
16406 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
16408 2002-02-08 David Edelsohn <edelsohn@gnu.org>
16410 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
16412 2002-02-08 Richard Henderson <rth@redhat.com>
16414 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
16416 2002-02-08 Andreas Jaeger <aj@suse.de>
16418 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
16419 * config/i386/t-linux64: New file.
16421 2002-02-08 Jakub Jelinek <jakub@redhat.com>
16423 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
16424 * c-parse.in (compstmt): Clear last_expr_type.
16426 2002-02-07 Richard Henderson <rth@redhat.com>
16428 * loop.c (strength_reduce): Sink final_value when not
16431 2002-02-07 David O'Brien <obrien@FreeBSD.org>
16433 * config/sparc/freebsd.h: Fix mismatched spec {.
16435 2002-02-07 Richard Henderson <rth@redhat.com>
16437 * cfgrtl.c: Include recog.h and insn-config.h.
16438 (keep_with_call_p): Fix general_operand invocation.
16439 * Makefile.in (cfgrtl.o): Update dependencies.
16441 2002-02-07 Kazu Hirata <kazu@hxi.com>
16443 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
16444 comment. Accept HImode only if TARGET_H8300.
16446 2002-02-07 Eric Christopher <echristo@redhat.com>
16448 * config/mips/crtn.asm: Cleanup #ifdefs.
16450 2002-02-07 Eric Christopher <echristo@redhat.com>
16452 * config/mips/crti.asm: Add changes for mips16. mips16 uses
16453 register 7 as RA instead of $31.
16454 * config/mips/crtn.asm: Ditto.
16455 * config/mips/mips.c (mips_move_2words): Add case for
16456 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
16457 (compute_frame_size): Fix typo.
16458 (save_restore_insns): Ditto. Make documentation about using
16459 register $7 as return register more precise.
16460 (mips_expand_epilogue): Fix comment. Add code to work around not
16461 being able to add to the stack pointer directly.
16462 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
16463 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
16466 2002-02-07 Tom Rix <trix@redhat.com>
16468 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
16469 immediates in ldu and stdu DS opcode field.
16470 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
16471 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
16472 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
16474 2002-02-07 Jeff Sturm <jsturm@one-point.com>
16476 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
16477 offset for stack bias.
16479 2002-02-07 H.J. Lu <hjl@gnu.org>
16481 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
16483 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
16485 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
16487 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
16489 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
16490 * i386.c (x86_order_regs_for_local_alloc): New global function.
16491 * i386.h (REG_ALLOC_ORDER): CLeanup.
16492 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
16494 2002-02-07 Richard Henderson <rth@redhat.com>
16496 PR optimization/2463
16497 * alias.c (find_base_value): Recall base values for fixed hard regs.
16498 * loop.c (loop_regs_update): Don't use single_set on non-insns.
16500 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
16502 * config/mips/mips.md (define_delay) [mips16]: Adjust required
16505 2002-02-06 Richard Henderson <rth@redhat.com>
16508 * stmt.c (resolve_operand_name_1): Take more care with mixed
16509 named and unnamed operands.
16511 2002-02-06 Janis Johnson <janis187@us.ibm.com>
16512 Jan Hubicka <jh@suse.cz>
16514 * loop.c (remove_constant_addition): Avoid clobbering a shared
16517 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
16519 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
16520 * config/s390/t-linux64: New file.
16521 * config/s390/libgcc-glibc.ver: New file.
16523 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
16525 * config/s390/linux64.h: Delete file.
16526 * config/s390/s390x.h: New file.
16527 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
16528 as target header file.
16529 * config/s390/linux.h (TARGET_VERSION): Define depending on
16530 DEFAULT_TARGET_64BIT.
16531 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
16532 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
16533 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
16534 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
16535 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
16536 (EXTRA_SPEC): New define.
16537 * config/s390/s390.h (TARGET_VERSION): Define depending on
16538 DEFAULT_TARGET_64BIT.
16539 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
16541 2002-02-06 Jason Merrill <jason@redhat.com>
16543 * c-decl.c (finish_function): Warn about a non-void function with
16544 no return statement and no abnormal exit.
16545 (current_function_returns_abnormally): New variable.
16546 (start_function): Clear it.
16547 (struct c_language_function): Add returns_abnormally.
16548 (push_c_function_context): Save it.
16549 (pop_c_function_context): Restore it.
16550 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
16551 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
16552 an explicit return type.
16553 * c-tree.h: Declare current_function_returns_abnormally.
16554 (C_FUNCTION_IMPLICIT_INT): New macro.
16555 * c-typeck.c (build_function_call): Set it.
16556 (c_expand_return): Set current_function_returns_value even if the
16557 value is erroneous.
16559 2002-02-06 Jakub Jelinek <jakub@redhat.com>
16562 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
16563 unsafe for reevaluation.
16565 2002-02-06 Jakub Jelinek <jakub@redhat.com>
16568 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
16569 EXPR_STMT, but COMPOUND_STMT, recurse into it.
16571 2002-02-06 Richard Henderson <rth@redhat.com>
16573 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
16574 be a general_operand. Dest for function value must be a pseudo.
16576 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
16578 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
16579 as SYMBOL_REFs from the constant pool.
16581 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
16583 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
16584 passed by invisible reference.
16586 2002-02-05 Richard Henderson <rth@redhat.com>
16588 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
16590 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
16592 Implement using "base addresses" in insn operands as default.
16593 * config/mmix/mmix.c (mmix_conditional_register_usage): if
16594 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
16595 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
16596 used to read the rtx value.
16597 (mmix_target_asm_function_epilogue): Fix spacing.
16598 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
16599 (mmix_legitimate_address): Ditto.
16600 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
16601 should be loaded with a GETA insn. Don't allocate needless extra
16602 char for nul termination and fix misleading comment.
16603 (mmix_print_operand_address): Handle constants if
16604 TARGET_BASE_ADDRESSES.
16605 (mmix_output_register_setting): Use base addressing if
16606 TARGET_BASE_ADDRESSES and the number of insns is 3.
16607 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
16608 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
16609 to use R as constraint, add LDA to match s.
16610 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
16611 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
16612 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
16613 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
16614 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
16615 order with other fixed registers.
16616 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
16617 other parameter/call-clobbered registers.
16618 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
16619 -mbase-addresses, -mno-base-addresses.
16620 (MMIX Options): Ditto.
16622 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
16624 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
16626 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
16628 * config/rs6000/altivec.h: Change elem to _S_elem.
16630 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
16632 * config/netbsd.h (WCHAR_TYPE): Define.
16633 (WCHAR_TYPE_SIZE): Ditto.
16634 (WINT_TYPE): Ditto.
16635 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
16636 (WCHAR_UNSIGNED): Ditto.
16637 (WCHAR_TYPE_SIZE): Ditto.
16638 (WINT_TYPE): Ditto.
16639 * config/arm/netbsd.h: Likewise.
16640 * config/i386/netbsd-elf.h: Likewise.
16641 * config/i386/netbsd.h: Likewise.
16642 * config/m68k/netbsd-elf.h: Likewise.
16643 * config/m68k/netbsd.h: Likewise.
16644 * config/ns32k/netbsd.h: Likewise.
16645 * config/sparc/netbsd.h: Likewise.
16646 * config/vax/netbsd.: Likewise.
16648 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
16650 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
16651 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
16652 (TARGET_INITIALIZER): this.
16653 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
16654 (BITFIELD_NBYTES_LIMITED): Markup fix.
16655 * tree.h (default_ms_bitfield_layout_p): Declare.
16656 (record_layout_info): Added prev_field.
16657 * tree.c (default_ms_bitfield_layout_p): New fn.
16658 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
16659 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
16660 * stor-layout.c: Include target.h.
16661 (start_record_layout): Initialize prev_field.
16662 (place_field): Handle MS bit-field layout, and disregard
16663 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
16664 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
16665 * Makefile.in (stor-layout.o): Adjust dependencies.
16667 2002-02-05 Jason Merrill <jason@redhat.com>
16669 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
16671 2002-02-05 Andreas Jaeger <aj@suse.de>
16673 * crtstuff.c: Fix comments.
16675 2002-02-05 Richard Henderson <rth@redhat.com>
16678 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
16679 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
16682 * config/mips/mips.c (function_arg): Handle TImode.
16683 (function_arg_advance): Likewise.
16685 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
16687 * config/rs6000/altivec.h (vec_step_help): Rename to
16690 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
16692 * config/rs6000/altivec.h: Fix typos.
16694 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
16696 * config/arm/netbsd.h: Correct a comment.
16698 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
16700 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
16701 building void typed builtins.
16703 * config/rs6000/altivec.h (vec_ld*): Fix typos.
16704 (vec_step): Implement for C++.
16706 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16708 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
16710 2002-02-04 Richard Henderson <rth@redhat.com>
16712 * combine.c (nonzero_bits): Re-introduce special case for
16713 sp/fp/ap wrt REGNO_POINTER_ALIGN.
16715 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
16717 * doc/extend.texi: Warn about unsupported usage of altivec
16720 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
16721 (altivec_predicate_*): New.
16723 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
16724 Add C++ version of vec_*() functions.
16726 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
16727 (bdesc_2arg): Remove altivec predicates.
16728 (altivec_expand_builtin): Handle predicates.
16729 (altivec_init_builtins): Handle predicates.
16730 (altivec_expand_predicate_builtin): New.
16732 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
16734 * pa.c (DO_FRAME_NOTES): Move forward.
16735 (store_reg): Revise handling of frame notes.
16736 (load_reg): Likewise.
16737 (set_reg_plus_d): Likewise.
16738 (hppa_expand_prologue): Likewise.
16739 (hppa_expand_epilogue): Likewise.
16741 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
16743 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
16745 2002-02-04 Jakub Jelinek <jakub@redhat.com>
16747 PR c/4475, c++/3780:
16748 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
16749 * c-common.h (SWITCH_TYPE): Define.
16750 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
16751 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
16752 Rename spareness variable to sparseness.
16753 (expand_end_case_type): Renamed from expand_end_case, use orig_type
16754 if non-NULL instead of TREE_TYPE (orig_index).
16755 * tree.h (expand_end_case_type): Renamed from expand_end_case.
16756 (expand_end_case): Define using expand_end_case_type.
16757 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
16758 to expand_end_case_type.
16759 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
16761 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
16763 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
16764 (BIGGEST_ALIGNMENT): Change to 128.
16766 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
16768 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
16770 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
16772 * pa.md (call_internal_reg_64bit): Remove unused variable.
16774 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
16776 * config/arm/arm.h (machine_function): Add uses_anonymous_args
16778 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
16779 * config/arm/arm.c (current_function_anonymous_args): Delete,
16780 replace uses with cfun->machine->uses_anonymous_args.
16781 (arm_reorg): Do not reset uses_anonymous_args.
16783 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
16784 any geenral register.
16786 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
16788 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
16791 2002-02-04 Richard Henderson <rth@redhat.com>
16793 * combine.c (force_to_mode): Remove STACK_BIAS code.
16794 (nonzero_bits): Likewise. Replace sp/fp special case with
16795 REGNO_POINTER_ALIGN.
16797 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
16798 (HARD_FRAME_POINTER_REGNUM): New.
16799 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
16800 (FIXED_REGS, CALL_USED_REGS): Update.
16801 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
16802 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
16803 (HARD_REGNO_NREGS): Update for SFP.
16804 (STACK_POINTER_OFFSET): Include bias here ...
16805 (FIRST_PARM_OFFSET): ... not here.
16806 (STACK_BIAS): Remove.
16807 (INIT_EXPANDERS): New.
16808 (STARTING_FRAME_OFFSET): Do not include bias.
16809 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
16810 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
16811 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
16812 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
16813 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
16814 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
16815 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
16816 (MUST_SAVE_REGISTER): Likewise.
16817 (sparc_flat_function_prologue): Likewise.
16818 (sparc_flat_function_epilogue): Likewise.
16819 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
16820 (sparc_init_modes): SFP is GENERAL_REGS.
16821 (sparc_builtin_saveregs): SFP does not have bias applied.
16823 2002-02-04 Richard Henderson <rth@redhat.com>
16825 * config/alpha/alpha.c (current_function_is_thunk): Don't check
16826 current_function_is_thunk.
16827 (alpha_sa_mask): Distinguish between current_function_is_thunk
16828 called from ASM_OUTPUT_MI_THUNK and not.
16829 (alpha_does_function_need_gp): Thunks always need gp.
16830 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
16831 (alpha_output_mi_thunk_osf): New.
16832 * config/alpha/alpha-protos.h: Update.
16833 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
16835 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
16837 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
16838 function types, not when they're taken away.
16840 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
16842 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
16843 CODE_LABEL and jump table when replacing a table jump with a
16846 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
16848 * config/s390/s390-protos.h (legitimize_la_operand,
16849 s390_secondary_input_reload_class, s390_plus_operand,
16850 s390_expand_plus_operand): Add prototypes.
16852 config/s390/s390.c (s390_secondary_input_reload_class,
16853 s390_plus_operand, s390_expand_plus_operand): New functions.
16855 (struct s390_address): New member 'pointer'.
16856 (s390_decompose_address): Compute it.
16857 (legitimate_la_operand_p): Use it.
16858 (legitimize_la_operand): New function.
16859 (movti, movdi, movdf splitters): Call it.
16861 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
16862 (PREDICATE_CODES): Add s390_plus_operand.
16864 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
16865 (la_ccclobber): Allow GENERAL_REGS as output operand.
16867 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
16868 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
16869 (*la_64, *la_31, reload_indi, reload_insi): ... these.
16871 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
16873 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
16874 register names for regular asm () construct.
16876 2002-02-04 Jakub Jelinek <jakub@redhat.com>
16878 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
16881 2002-02-04 Jakub Jelinek <jakub@redhat.com>
16883 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
16886 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
16888 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
16889 constant pool to be identical by string address and index.
16891 2002-02-04 Anthony Green <green@redhat.com>
16893 * output.h (SECTION_OVERRIDE): Define.
16894 * varasm.c (named_section): Obey SECTION_OVERRIDE.
16896 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
16898 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
16899 by existing arm*-*-netbsd* (a.out) target.
16900 (ns32k-*-netbsdelf*): Likewise.
16901 (sparc-*-netbsdelf*): Likewise.
16902 (vax-*-netbsdelf*): Likewise.
16904 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
16906 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
16907 headers and libobjc headers.
16909 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
16911 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
16912 (_mingw.h): Remove duplicate include.
16914 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
16916 * config.gcc: Set cpu_type to m68k for 68010, as well.
16917 (m68010-*-netbsdelf*): New...
16918 (m68k*-*-netbsdelf*): ...targets.
16919 * config/m68k/netbsd-elf.h: New file.
16921 2002-02-02 Kazu Hirata <kazu@hxi.com>
16923 * config/h8300/h8300.c (hand_list): Move inside function_arg.
16925 2002-02-02 Kazu Hirata <kazu@hxi.com>
16927 * config/h8300/h8300.c (h8_push_ops): Move inside
16929 (h8_pop_ops): Likewise.
16930 (h8_move_ops): Likewise.
16932 2002-02-02 Kazu Hirata <kazu@hxi.com>
16934 * config/h8300/h8300.c (os_task): Make it static.
16935 (monitor): Likewise.
16936 (pragma_saveall): Likewise.
16938 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
16940 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
16941 constant is a valid sign-extension for Pmode.
16943 2002-02-02 Kazu Hirata <kazu@hxi.com>
16945 * config/h8300/h8300.c: Fix formatting.
16947 2002-02-02 Kazu Hirata <kazu@hxi.com>
16949 * config/h8300/h8300.md: Fix formatting.
16951 2002-02-02 Kazu Hirata <kazu@hxi.com>
16953 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
16954 predicates of operands[1]. Split the patterns for each
16957 2002-02-02 Kazu Hirata <kazu@hxi.com>
16959 * config/h8300/h8300.md (xor patterns): Tighten the predicates
16960 of operands[1] to register_operand.
16962 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
16964 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
16965 * cpphash.c (_cpp_init_hashtable): Similarly.
16966 * cppinit.c (cpp_create_reader): Default the signed_char flag.
16967 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
16968 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
16969 (cpp_handle_option): Handle the new options.
16970 * cpplex.c (cpp_interpret_charconst): Use new flag.
16971 * cpplib.h (struct cpp_options): New member signed_char.
16972 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
16973 (cpp_options): Handle -fsigned-char and -funsigned-char.
16974 (static_specs): Remove signed_char_spec.
16975 (do_spec1): Don't handle %c.
16976 * system.h: Poison SIGNED_CHAR_SPEC.
16977 * tradcif.y (yylex): Use flag_signed_char.
16978 * tradcpp.h (flag_signed_char): New.
16979 * tradcpp.c (flag_signed_char): New.
16980 (main): Handle new command-line options.
16981 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
16983 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
16984 * avr/avr.h: Remove old comments.
16985 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
16986 (CC1_SPEC): Pass -fsigned-char if -mic*.
16987 (SIGNED_CHAR_SPEC): Remove.
16989 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
16991 2002-02-01 Eric Christopher <echristo@redhat.com>
16993 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
16994 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
16995 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
16996 (ASM_OUTPUT_REG_POP): Ditto.
16998 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
17000 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
17003 2002-02-02 Jakub Jelinek <jakub@redhat.com>
17005 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
17007 2002-02-02 Jakub Jelinek <jakub@redhat.com>
17010 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
17013 2002-02-01 Janis Johnson <janis187@us.ibm.com>
17015 * cfganal.c: Include tm_p.h.
17016 (keep_with_call_p): Fix the test that determines if a register holds
17017 the return value of a call.
17019 2002-02-01 DJ Delorie <dj@redhat.com>
17021 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
17022 we are given conflicting registers, switch to the other one we
17023 had allocated for us.
17024 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
17025 as TImode so we know when the "other" register is available.
17027 2002-02-01 David O'Brien <obrien@FreeBSD.org>
17029 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
17032 2002-02-01 Janis Johnson <janis187@us.ibm.com>
17034 * cfganal.c (keep_with_call_p): New function.
17035 (flow_call_edges_add): Prevent splitting a block between a call and
17036 a single-set instruction that should be kept in the same block.
17038 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
17040 * doc/install.texi (avr): Update outdated URL.
17042 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
17044 * config/stormy16/stormy16.md (pushqi): New.
17048 (movhi): Remove stack operands.
17050 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
17051 nonimmediate_nonstack_operand.
17052 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
17054 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
17057 2002-01-31 Jason Merrill <jason@redhat.com>
17059 * Makefile.in (c-parse.c): Handle .output file.
17060 * objc/Make-lang.in (objc-parse.c): Likewise.
17062 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
17064 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
17065 the -me[lb] option is given. Don't output the default flag
17068 2002-01-31 Zack Weinberg <zack@codesourcery.com>
17070 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
17071 the primary source file; this has not been done yet.
17072 * c-decl.c (c_expand_body): Reset input_filename from
17073 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
17075 2002-01-31 Kazu Hirata <kazu@hxi.com>
17077 * rtlanal.c (subreg_regno_offset): Do not use
17078 SUBREG_REGNO_OFFSET.
17079 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
17080 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
17082 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
17084 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
17085 version rather than GNATS version in --version output.
17087 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
17089 * ifcvt.c (noce_process_if_block): Make a copy of the destination
17090 when copying back from a temporary.
17092 2002-01-30 Richard Henderson <rth@redhat.com>
17094 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
17095 and new_dest are the same.
17097 2002-01-30 Richard Henderson <rth@redhat.com>
17100 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
17101 * rtl.c (note_insn_name): Update.
17102 * emit-rtl.c (remove_unnecessary_notes): Kill it.
17103 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
17104 to perform loop rotation.
17105 (expand_exit_loop_top_cond): New.
17106 * tree.h (expand_exit_loop_top_cond): Declare it.
17107 * c-semantics.c (genrtl_while_stmt): Use it.
17108 (genrtl_for_stmt): Likewise.
17110 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
17112 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
17113 arguments to 64-bit boundaries on 64-bit ABIs.
17115 2002-01-30 Steve Ellcey <sje@cup.hp.com>
17117 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
17119 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
17121 * c-decl.c (grokdeclarator): Handle type being a typedef for an
17124 2002-01-30 David O'Brien <obrien@FreeBSD.org>
17126 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
17127 * config/sparc/sparc_bi.h: Remove file.
17128 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
17130 2002-01-30 Richard Henderson <rth@redhat.com>
17132 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
17134 2002-01-30 Zack Weinberg <zack@codesourcery.com>
17136 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
17138 2002-01-30 Jason Merrill <jason@redhat.com>
17140 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
17141 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
17142 (reg_save): Use DW_CFA_offset_extended_sf instead.
17144 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
17146 2002-01-29 Jakub Jelinek <jakub@redhat.com>
17148 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
17151 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
17153 * rs6000.md ("*call_value_local32"): Remove constraints.
17154 ("*call_value_local64"): Same.
17155 ("*call_value_indirect_nonlocal_aix32"): Same.
17156 ("*call_value_nonlocal_aix32"): Same.
17157 ("*call_value_indirect_nonlocal_aix64"): Same.
17158 ("*call_value_nonlocal_aix64"): Same.
17159 ("*call_value_nonlocal_sysv"): Same.
17161 2002-01-29 Richard Henderson <rth@redhat.com>
17163 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
17165 2002-01-29 Richard Henderson <rth@redhat.com>
17167 * expr.c (force_operand): Ignore flag_pic for detecting pic
17169 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
17170 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
17171 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
17172 instead of open-coded loop.
17173 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
17174 be fixed when in use.
17176 2002-01-29 Richard Henderson <rth@redhat.com>
17178 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
17179 * sched-rgn.c (propagate_deps): Update them.
17180 * sched-deps.c (sched_analyze_insn): Update them. Flush the
17181 clobbers list when either gets too long.
17183 2002-01-29 Jakub Jelinek <jakub@redhat.com>
17185 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
17186 and INDEX_REGS the same as GENERAL_REGS.
17187 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
17189 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
17191 * tree.c (build_nonstandard_integer_type): Correct prototype.
17193 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
17195 * config/s390/s390.md (movstrsico, movstrdix_64,
17196 movstrsix_31): Remove, replace by ...
17197 (movstrdi_short, movstrsi_short, movstrdi_long,
17198 movstrsi_long): ... these. New.
17199 (movstrdi, movstrsi): Adapt.
17201 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
17202 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
17203 Remove unnecessary CC clobber.
17204 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
17205 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
17207 (divmoddi4): Don't partially initialize TImode register.
17209 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
17211 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
17213 2002-01-29 Richard Henderson <rth@redhat.com>
17215 * flow.c (print_rtl_and_abort): Remove.
17216 (print_rtl_and_abort_fcn): Remove.
17217 (verify_local_live_at_start): Use dump_bb instead.
17218 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
17219 (verify_wide_reg_1): Return 2 on mode test failure.
17221 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
17223 PR c/3325, c/3326, c/2511, c/3347
17224 * c-decl.c (enum_decl_context): Remove BITFIELD.
17225 (grokdeclarator): Take bitfield width as an input.
17226 Ensure bitfields are given the correct type. Perform
17227 bitfield width validation with build_bitfield_integer_type
17228 rather than waiting for finish_struct.
17229 (grok_typename, grok_typename_in_parm_context, start_decl,
17230 push_parmdecl, grokfield, start_function): Update calls to
17232 (build_bitfield_integer_type): New function.
17233 (finish_struct): Move bitfield validation to grokdeclarator
17234 and build_bitfield_integer_type.
17235 * tree.c (build_nonstandard_integer_type): New function.
17236 * tree.h (build_nonstandard_integer_type): New prototype.
17238 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
17240 2002-01-29 Jakub Jelinek <jakub@redhat.com>
17243 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
17244 don't ignore unrecognized -W* options.
17245 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
17246 * cpplib.h (cpp_handle_option): Adjust prototype.
17247 * c-decl.c (c_decode_options): Pass 0 as last argument to
17251 * gcc.c (cpp_unique_options): Split from cpp_options.
17252 (cpp_options): Source cpp_unique_options.
17253 (default_compilers): Use cpp_unique_options instead of cpp_options
17254 when used together with cc1_options.
17255 (static_specs): Add cpp_unique_options.
17256 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
17257 when used together with cc1_options.
17259 2002-01-29 Kazu Hirata <kazu@hxi.com>
17261 * config/h8300/h8300-protos.h: Update the prototype of
17263 * config/h8300/h8300.c (output_a_shift): Remove an unused
17264 argument 'insn'. Remove redundant code.
17265 * config/h8300/h8300.md: Adust to the new prototype of
17268 2002-01-29 Kazu Hirata <kazu@hxi.com>
17270 * config/h8300/h8300-protos.h: Update the prototypes of
17271 emit_a_rotate and expand_a_rotate.
17272 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
17273 first argument to 'enum rtx_code'.
17274 (expand_a_rotate): Likewise.
17276 2002-01-28 Kazu Hirata <kazu@hxi.com>
17278 * config/h8300/h8300-protos.h: Update the prototype of
17280 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
17282 * config/h8300/h8300.md: Adjust to the new prototype.
17284 2002-01-28 Kazu Hirata <kazu@hxi.com>
17286 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
17289 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
17291 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
17292 is a fixed register before returning pic_offset_table_rtx.
17293 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
17294 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
17296 2002-01-28 Jason Merrill <jason@redhat.com>
17298 * dwarf2.h: Sync with src version.
17300 2002-01-28 Paul Koning <pkoning@equallogic.com>
17302 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
17303 BT_FN_VOID_PTR_VAR.
17304 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
17305 * doc/extend.texi (__builtin_prefetch): Update documentation:
17306 first argument is now const void ptr.
17308 2002-01-28 Kazu Hirata <kazu@hxi.com>
17310 * config/h8300/h8300-protos.h: Remove an unused prototype.
17312 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
17314 * toplev.c (lang_independent_init): Round up identifier size.
17316 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
17318 * config.gcc: Revert previous change.
17320 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
17322 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
17324 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
17326 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
17327 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
17328 other non-elf netbsd config frags.
17329 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
17330 collect2 will does that.
17331 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
17332 shared-lib frobbing will work.
17334 2002-01-28 Kazu Hirata <kazu@hxi.com>
17336 * config/h8300/h8300.h: Fix formatting.
17337 * config/h8300/h8300.md: Likewise.
17339 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
17341 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
17342 the old, removed AAA_standards fix.
17343 * fixinc/fixincl.x: Rebuilt.
17345 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
17347 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
17348 atexit call in crtbegin, hooked in after call to frame_dummy;
17349 register EH before registering __fini__start.
17351 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
17353 * config/rs6000/altivec.h: Remove spurious semicolons.
17355 2002-01-27 Kazu Hirata <kazu@hxi.com>
17357 * config/h8300/h8300.md: Replace dead bit extraction patterns
17358 with ones that work.
17360 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17362 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
17363 if not STRICT_ALIGNMENT.
17364 * rtl.h (MEM_ALIGN): Likewise.
17366 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
17368 * doc/invoke.texi (-fdump-translation-unit): Revert this
17369 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
17371 2002-01-27 Kazu Hirata <kazu@hxi.com>
17373 * config/h8300/h8300.md (define_constants): New.
17374 (anonymous patterns) Use defined constants appropriately.
17376 2002-01-27 Kazu Hirata <kazu@hxi.com>
17378 * config/h8300/h8300.c (function_arg): Remove redundant code.
17380 2002-01-26 Richard Henderson <rth@redhat.com>
17382 * sched-deps.c (reg_pending_uses_head): New.
17383 (reg_pending_barrier): Rename from reg_pending_sets_all.
17384 (find_insn_list): Don't mark inline.
17385 (find_insn_mem_list): Remove.
17386 (add_dependence_list, add_dependence_list_and_free): New.
17387 (flush_pending_lists): Replace only_write param with separate
17388 for_read and for_write parameters. Update all callers. Use
17389 add_dependence_list_and_free.
17390 (sched_analyze_1): Do not add reg dependencies here; just set
17391 the pending bits. Use add_dependence_list.
17392 (sched_analyze_2): Likewise.
17393 (sched_analyze_insn): Replace schedule_barrier_found with
17394 reg_pending_barrier. Add all dependencies for pending reg
17395 uses, sets, and clobbers.
17396 (sched_analyze): Don't add reg dependencies for calls, just
17397 set pending bits. Use regs_invalidated_by_call. Treat
17398 sched_before_next_call as a normal list, not a fake insn.
17399 (init_deps): No funny init for sched_before_next_call.
17400 (free_deps): Free pending mems lists. Don't zero reg_last.
17401 (init_deps_global): Init reg_pending_uses.
17402 (finish_deps_global): Free it.
17403 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
17404 (find_insn_mem_list): Remove.
17405 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
17406 (propagate_deps): Use them. Zero temp mem lists.
17408 2002-01-26 Richard Henderson <rth@redhat.com>
17410 * Makefile.in (CRTSTUFF_CFLAGS): New.
17411 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
17412 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
17413 crtstuff.c instead of alpha assembly version.
17414 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
17415 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
17416 not FORCE_{INIT,FINI}_SECTION_ALIGN.
17417 (__do_global_dtors_aux): Mark used.
17418 (frame_dummy, __do_global_ctors_aux): Mark used.
17419 (fini_dummy, init_dummy): Remove.
17421 * config/alpha/crtbegin.asm: Remove file.
17422 * config/alpha/crtend.asm: Remove file.
17423 * config/alpha/t-crtbe: Remove file.
17424 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
17425 (LINK_EH_SPEC): New.
17427 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
17428 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
17429 calling constructors.
17430 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
17432 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
17433 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
17434 CRT_END_INIT_DUMMY hack.
17435 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
17436 FORCE_{INIT,FINI}_SECTION_ALIGN.
17438 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
17439 FORCE_{INIT,FINI}_SECTION_ALIGN.
17441 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
17442 invocation sequence.
17443 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
17445 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
17446 (FORCE_CODE_SECTION_ALIGN): New.
17448 2002-01-26 Richard Henderson <rth@redhat.com>
17450 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
17452 2002-01-26 Richard Henderson <rth@redhat.com>
17454 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
17455 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
17457 2002-01-26 Kazu Hirata <kazu@hxi.com>
17459 * config/h8300/h8300.md: Remove bit extraction patterns that
17460 cannot be triggered.
17461 Restrict each bit extraction pattern to a variant on which the
17464 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
17466 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
17468 2002-01-26 Kazu Hirata <kazu@hxi.com>
17470 * config/h8300/h8300.md: Remove bit test patterns that cannot
17472 Restrict each bit test pattern to a variant on which the
17475 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17477 * builtins.c (expand_builtin_strncat): Remove redundant check for
17480 2002-01-25 David O'Brien <obrien@FreeBSD.org>
17482 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
17484 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
17487 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
17489 * dbxout.c (dbxout_init): Use assemble_name rather than just
17490 stripping off the first character.
17491 (dbxout_source_file): Likewise.
17493 2002-01-25 DJ Delorie <dj@redhat.com>
17495 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
17496 using rtx_equal_p, not by comparing pointers.
17498 2002-01-25 Steve Ellcey <sje@cup.hp.com>
17500 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
17501 for PIC_OFFSET_TABLE_REGNUM.
17502 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
17504 2002-01-25 David O'Brien <obrien@FreeBSD.org>
17506 * config.gcc (x86_64-*-freebsd*): New target.
17507 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
17509 (i[34567]86-*-freebsd*): Don't include svr4.h.
17510 * config/i386/freebsd64.h: New file.
17512 2002-01-25 Douglas B Rupp <rupp@gnat.com>
17514 * config/alpha/x-vms (version): Make static.
17516 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
17517 in previous checkin.
17519 * Makefile.in (install-headers-cp): New target.
17520 * config.gcc (alpha-dec-*vms*): Install headers with
17523 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
17525 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
17528 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17530 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
17531 of compare_tree_int.
17532 (expand_builtin_strncat): Likewise.
17533 * c-decl.c (finish_struct): Use tree_low_cst.
17534 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
17535 * tree.c (compare_tree_int): Likewise.
17537 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
17539 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
17540 adjustments even if they are implemented by more than two insns.
17542 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
17544 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
17545 * df.h (struct ref): Kill B.
17546 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
17548 * basic-block.h (PROP_EQUAL_NOTES): New flag.
17549 * flow.c (propagate_one_insn): Use it.
17550 (mark_used_regs): Handle NIL.
17552 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
17554 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
17557 2002-01-25 David Edelsohn <edelsohn@gnu.org>
17559 * rs6000.md (prefetch): Make address V4SI mode so that the address
17560 is restricted to legitimate form for instruction.
17562 2002-01-25 Bob Wilson <bob.wilson@acm.org>
17564 * doc/install.texi (xtensa-*-elf): New target.
17565 (xtensa-*-linux*): New target.
17566 * doc/contrib.texi: Add myself.
17568 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
17570 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
17571 purpose register to hold an SImode (or smaller) value.
17573 2002-01-25 Jakub Jelinek <jakub@redhat.com>
17575 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
17577 * crtstuff.c: Likewise.
17579 2002-01-25 Kazu Hirata <kazu@hxi.com>
17581 * config/h8300/h8300.md (negation patterns): Tighten
17582 predicates to register_operand.
17584 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
17586 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
17589 * builtins.c (expand_builtin_prefetch): Same.
17591 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
17593 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
17596 2002-01-24 Kazu Hirata <kazu@hxi.com>
17598 * config/h8300/h8300.c (print_operand): Remove support for
17599 operand character 'A'.
17600 * config/h8300/h8300.md (three anonymous patterns): Replace
17601 operand character 'A' with either 'T' or 'S'.
17603 2002-01-24 Kazu Hirata <kazu@hxi.com>
17605 * config/h8300/h8300.c (print_operand): Remove support for
17606 operand character 'U'.
17608 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
17610 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
17612 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
17614 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
17615 values to be assigned to the stack pointer.
17617 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
17619 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
17620 to const_double needs to be done right for big-endian systems.
17622 2002-01-24 Jason Merrill <jason@redhat.com>
17625 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
17626 to can_throw_internal.
17628 2002-01-23 Richard Henderson <rth@redhat.com>
17630 * fold-const.c (fold): Change UINT_MAX test to check vs precision
17631 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
17633 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
17635 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
17636 (symGOT2reg): Use them, then set as GOT value as unchanging.
17637 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
17638 as a temporary, if possible.
17639 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
17640 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
17642 2002-01-23 Kazu Hirata <kazu@hxi.com>
17644 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
17645 accept to accept 0x80 as operands[2].
17647 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
17649 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
17651 2002-01-23 Richard Henderson <rth@redhat.com>
17653 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
17655 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
17657 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
17658 (parmlist_or_identifiers_1): Verify that only a parmlist follows
17661 2002-01-23 Richard Henderson <rth@redhat.com>
17663 * expr.c (move_by_pieces_1): Extend size before negation.
17665 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
17666 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
17667 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
17668 * config/m68k/t-m68kelf: Likewise.
17670 2002-01-23 Bob Wilson <bob.wilson@acm.org>
17672 * config/xtensa/elf.h: New file.
17673 * config/xtensa/lib1funcs.asm: New file.
17674 * config/xtensa/lib2funcs.S: New file.
17675 * config/xtensa/linux.h: New file.
17676 * config/xtensa/t-xtensa: New file.
17677 * config/xtensa/xtensa-config.h: New file.
17678 * config/xtensa/xtensa-protos.h: New file.
17679 * config/xtensa/xtensa.c: New file.
17680 * config/xtensa/xtensa.h: New file.
17681 * config/xtensa/xtensa.md: New file.
17682 * config.gcc (xtensa-*-elf*): New target.
17683 (xtensa-*-linux*): New target.
17684 * cse.c (canon_hash): Compare rtx pointers instead of register
17685 numbers. This is required for the Xtensa port.
17686 * integrate.c (copy_insn_list): Handle case where the static
17687 chain is in memory and the memory address has to be copied to
17689 * doc/invoke.texi (Option Summary): Add Xtensa options.
17690 (Xtensa Options): New node.
17691 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
17693 2002-01-23 Zack Weinberg <zack@codesourcery.com>
17695 * diagnostic.c (internal_error): Do ICE suppression only
17696 when ENABLE_CHECKING is not defined.
17698 * c-typeck.c (require_complete_type): Return error_mark_node
17699 if type is error_mark_node.
17701 2002-01-23 Janis Johnson <janis187@us.ibm.com>
17703 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
17704 -Os and issue a warning.
17706 2002-01-23 Zack Weinberg <zack@codesourcery.com>
17708 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
17709 current (lack of) need for host configuration by hand.
17711 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
17712 references. Documentation of some target macros moved from
17713 hostconfig.texi to tm.texi.
17715 2002-01-23 Will Cohen <wcohen@redhat.com>
17717 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
17720 2002-01-23 Kazu Hirata <kazu@hxi.com>
17722 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
17725 2002-01-23 Jason Merrill <jason@redhat.com>
17727 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
17729 * function.c (assign_parms): Don't put args of inline functions
17730 into registers when not optimizing.
17732 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
17734 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
17735 (prologue_use): New pattern.
17736 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
17737 preference to gen_rtx_USE.
17738 (thumb_expand_prologue): Use gen_prologue_use in preference to
17740 (thumb_expand_epilogue): Use gen_prologue_use in preference to
17743 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
17745 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
17747 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
17750 * doc/extend.texi: Correct documentation of __alignof__.
17752 2002-01-22 Zack Weinberg <zack@codesourcery.com>
17754 * params.h: Rename arguments of DEFPARAM so that it will be
17755 recognized as a translation keyword.
17757 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
17759 * extend.texi: Document altivec functions.
17760 Fix N-bit adjectives in X86 builtin documentation.
17762 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
17764 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
17765 auto_inc_dec values.
17767 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
17769 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
17771 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
17773 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
17775 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
17777 2002-01-22 Richard Henderson <rth@redhat.com>
17779 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
17780 copy_insn not copy_rtx.
17782 2002-01-23 Alan Modra <amodra@bigpond.net.au>
17784 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
17785 "nonzero" as that might add "1" bits. Ensure "constop" is
17786 properly sign extened.
17787 (force_to_mode): Tweak for sign extended constop.
17789 2002-01-22 Richard Henderson <rth@redhat.com>
17791 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
17792 for_each_rtx instead of assuming we're already looking at the MEM.
17793 (split_small_symbolic_mem_operand): Likewise.
17794 * config/alpha/alpha.h (PREDICATE_CODES): Update.
17795 * config/alpha/alpha.md (small symbolic memory splitters): Update.
17797 2002-01-22 Richard Henderson <rth@redhat.com>
17799 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
17800 sequence number for the literal.
17801 (divmoddi_internal_er): Likewise.
17803 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
17806 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
17807 in LIBICONV variable.
17808 * configure: Regenerated.
17810 2002-01-22 Krister Walfridsson <cato@df.lth.se>
17812 * dependence.c (build_def_use): Remove array_idx.
17814 * dwarfout.c (last_filename): Remove.
17815 (output_compile_unit_die): Remove last_filename.
17817 2002-01-22 Roger Sayle <roger@eyesopen.com>
17818 Richard Henderson <rth@redhat.com>
17821 * fold-const.c (fold): Optimize unsigned comparisons against
17822 UINT_MAX (and similar unsigned constants).
17824 2002-01-22 Janis Johnson <janis187@us.ibm.com>
17826 * Makefile.in (loop.o): Depend on OPTABS_H.
17827 * loop.c (emit_prefetch_instructions): Check the prefetch operand
17828 against the predicate.
17831 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
17832 for the address operand.
17834 2002-01-22 Richard Henderson <rth@redhat.com>
17836 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
17838 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
17841 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
17842 preprocessor flags.
17844 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
17846 * config.gcc (x86_64-*-netbsd*): New target.
17847 * config/i386/netbsd64.h: New file.
17849 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
17851 * regrename.c (kill_value): Fix typo.
17853 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
17855 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
17857 * config/rs6000/rs6000.h: Same.
17859 * function.c (instantiate_virtual_regs): Remove
17860 STARTING_FRAME_PHASE.
17861 (assign_stack_local_1): Same.
17862 Calculate frame phase.
17864 2002-01-22 Nick Clifton <nickc@redhat.com>
17866 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
17867 variable declaration to outer scope in order to simplify
17869 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
17870 arm_hard_regno_mode_ok.
17871 * config/arm/arm-protos.h: Add a prototype for
17872 arm_hard_regno_mode_ok.
17873 * config/arm/arm.c (soft_df_operand): Remove now redundant
17874 check for DImode values using IP_REGNUM.
17875 (nonimmediate_soft_df_operand): Remove now redundant check for
17876 DImode values using IP_REGNUM.
17877 (arm_hard_regno_mode_ok): New function. New check: make sure
17878 that DImode values are not stored in IP_REGNUM.
17880 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
17882 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
17884 2002-01-22 Jason Merrill <jason@redhat.com>
17886 * c-semantics.c (genrtl_compound_stmt): Only check nesting
17887 consistency if this COMPOUND_STMT is scoped.
17889 2002-01-22 Kazu Hirata <kazu@hxi.com>
17891 * predict.c: Fix formatting.
17892 * print-tree.c: Likewise.
17893 * protoize.c: Likewise.
17894 * real.h: Likewise.
17896 * sbitmap.h: Likewise.
17897 * scan.c: Likewise.
17898 * sched-deps.c: Likewise.
17899 * sched-vis.c: Likewise.
17900 * sdbout.c: Likewise.
17901 * sibcall.c: Likewise.
17903 * ssa-ccp.c: Likewise.
17904 * ssa-dce.c: Likewise.
17905 * stmt.c: Likewise.
17906 * stor-layout.c: Likewise.
17907 * system.h: Likewise.
17909 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17911 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
17912 if fits in bounds of base type.
17914 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
17915 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
17916 (add_bound_info, default): If can't find a context, make a
17918 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
17920 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
17922 * c-typeck.c (parser_build_binary_op): If result from
17923 build_binary_op is ERROR_MARK just return error_mark_node without
17924 further processing.
17926 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
17928 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
17929 Split a.out-specific bits into...
17930 * config/netbsd-aout.h: ...this.
17931 * config/netbsd-elf.h: New file.
17932 * config/alpha/netbsd-elf.h: Remove.
17933 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
17934 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
17935 (STARTFILE_SPEC): Remove redundant definition.
17936 (ENDFILE_SPEC): Likewise.
17937 (LINK_SPEC): Likewise.
17938 (CPP_SPEC): Likewise.
17939 (ASM_SPEC): Likewise.
17940 (LIB_SPEC): Likewise.
17941 (SWITCH_TAKES_ARG): Likewise.
17942 (TARGET_MEM_FUNCTIONS): Likewise.
17943 (CPP_PREDEFINES): Redefine.
17944 (ASM_FINAL_SPEC): Remove redefinition.
17945 (ASM_COMMENT_START): Redefine.
17946 (FUNCTION_PROFILER): Define.
17947 (TARGET_VERSION): Redefine.
17948 Comment and formatting cleanup.
17949 * config/i386/netbsd.h: Include <netbsd-aout.h>.
17950 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
17951 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
17952 big- or little-endian.
17953 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
17954 * config.gcc (*-*-netbsd*): Add definitions common to all
17956 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
17957 gnu_ld definitions. Add netbsd-elf.h to and remove
17958 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
17959 tmake_file, and don't lose previous tmake_file contents.
17960 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
17961 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
17962 gnu_ld definitions. Add netbsd-elf.h to tm_file.
17963 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
17964 (mipsel-*-netbsd*): Rename this to...
17965 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
17966 mips/little.h to tm_file for mips*el-*.
17967 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
17968 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
17969 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
17971 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
17973 * pa-protos.h (reg_before_reload_operand): New function prototype.
17974 * pa.c (reg_before_reload_operand): New function implementation.
17975 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
17976 contraints to "*m".
17978 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17980 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
17982 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
17984 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
17985 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
17986 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
17987 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
17988 (ENDFILE_SPEC): Undefine.
17989 (STARTFILE_SPEC): Redefine for PA.
17991 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17993 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
17995 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
17997 * config.gcc: Add entries to supported PowerPC --with-cpu
18000 2002-01-21 Jakub Jelinek <jakub@redhat.com>
18002 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
18003 true for 64-bit mode only SSE registers in 32-bit mode.
18005 2002-01-21 Kazu Hirata <kazu@hxi.com>
18007 * unwind-dw2.c: Fix formatting.
18008 * unwind-dw2-fde.c: Likewise.
18009 * unwind-dw2-fde.h: Likewise.
18010 * unwind-pe.h: Likewise.
18011 * varasm.c: Likewise.
18012 * varray.h: Likewise.
18014 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
18016 Remove workaround for register stack overwrite bug in mmix.
18017 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
18018 support for TARGET_REG_STACK_FILL_BUG.
18019 * config/mmix/mmix.h: Remove member has_call_without_parameters.
18020 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
18022 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
18023 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
18024 -mno-reg-stack-fill-bug-workaround.
18025 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
18026 machine member has_call_without_parameters.
18027 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
18028 -mreg-stack-fill-bug-workaround and
18029 -mno-reg-stack-fill-bug-workaround.
18030 (MMIX Options): Ditto.
18032 2002-01-21 Kazu Hirata <kazu@hxi.com>
18034 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
18036 Remove redundant code.
18038 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
18040 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
18041 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
18042 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
18043 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
18044 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
18045 out target macro definitions and non-target-specific comments
18046 mostly taken from old versions of the manual.
18048 2002-01-20 Kazu Hirata <kazu@hxi.com>
18050 * config/h8300/h8300.h: Fix comment formatting.
18051 * config/ia64/aix.h: Likewise.
18052 * config/ia64/ia64-protos.h: Likewise.
18053 * config/ia64/ia64.c: Likewise.
18054 * config/ia64/ia64.h: Likewise.
18055 * config/ia64/ia64intrin.h: Likewise.
18056 * config/ia64/linux.h: Likewise.
18057 * config/ia64/unwind-aix.c: Likewise.
18058 * config/ia64/unwind-ia64.c: Likewise.
18060 2002-01-20 Kazu Hirata <kazu@hxi.com>
18062 * config/h8300/h8300.c: Revise comments about shift code.
18064 2002-01-20 Kazu Hirata <kazu@hxi.com>
18066 * config/h8300/h8300.c (function_arg): Update a comment.
18068 2002-01-20 Kazu Hirata <kazu@hxi.com>
18070 * config/h8300/h8300.md: Update the comments at the beginning
18073 2002-01-20 Kazu Hirata <kazu@hxi.com>
18075 * config/i370/i370.c: Fix comment formatting.
18076 * config/i370/i370.h: Likewise.
18077 * config/i370/i370.md: Likewise.
18078 * config/i370/linux.h: Likewise.
18080 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18082 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
18084 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
18085 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
18086 in incomplete case.
18088 2002-01-20 Graham Stott <grahams@redhat.com>
18090 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
18092 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
18094 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
18096 2002-01-19 Tom Rix <trix@redhat.com>
18098 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
18100 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
18102 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
18104 * function.c (assign_stack_local_1): Adjust x_frame_offset with
18105 STARTING_FRAME_PHASE.
18106 (STARTING_FRAME_PHASE): New.
18107 (instantiate_virtual_regs): Check saneness of
18108 STARTING_FRAME_PHASE.
18110 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
18112 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
18114 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
18116 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
18118 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
18119 be used for bootstrapping GCC 3.0.
18121 2002-01-18 Kazu Hirata <kazu@hxi.com>
18123 * config/h8300/h8300.md: Fix an insn length.
18125 2002-01-18 Kazu Hirata <kazu@hxi.com>
18127 * bitmap.h: Fix comment formatting.
18128 * combine.c: Likewise.
18129 * cppfiles.c: Likewise.
18130 * c-pragma.h: Likewise.
18131 * c-typeck.c: Likewise.
18133 * dwarf2out.c: Likewise.
18134 * function.c: Likewise.
18136 * genattrtab.c: Likewise.
18137 * gthr-win32.h: Likewise.
18138 * haifa-sched.c: Likewise.
18139 * predict.c: Likewise.
18140 * rtlanal.c: Likewise.
18142 * unwind-dw2-fde.h: Likewise.
18143 * unwind-pe.h: Likewise.
18144 * vmsdbgout.c: Likewise.
18146 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18148 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
18149 if type_required and passed decl.
18151 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
18153 * config.gcc (cpu_type): Include altivec.h in powerpc
18157 * config/rs6000/altivec.h: New.
18159 2002-01-17 David Edelsohn <edelsohn@gnu.org>
18161 * doc/install.texi (*-ibm-aix*): Update assembler and exception
18162 handling information.
18163 * doc/trouble.texi (Interoperation): Add libstdc++ information
18165 (Misunderstandings): Add template instantiation and static template
18166 member information for AIX.
18168 2002-01-17 Jason Merrill <jason@redhat.com>
18170 * dbxout.c (dbxout_type): Support const and volatile.
18172 * except.c (add_partial_entry): Remove backwards compatibility code.
18173 (end_protect_partials): Likewise.
18175 2002-01-17 Jakub Jelinek <jakub@redhat.com>
18177 * config/ia64/ia64.md (prologue_use): New.
18178 * config/ia64/ia64.c (ia64_expand_prologue): Use
18179 gen_prologue_use instead of gen_rtx_USE.
18180 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
18181 as CODE_FOR_pred_rel_mutex.
18182 (ia64_sched_reorder2): Likewise.
18184 2002-01-16 Eric Christopher <echristo@redhat.com>
18186 * config/mips/r3900.h: Reformat.
18187 (SUBTARGET_CPP_SIZE_SPEC): Remove.
18188 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
18189 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
18190 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
18191 * config/mips/t-elf: Remove mips3 multilib.
18193 2002-01-16 H.J. Lu <hjl@gnu.org>
18195 * config/mips/linux.h: Include "mips/abi64.h".
18197 2002-01-16 H.J. Lu <hjl@gnu.org>
18199 * config/mips/t-linux: New.
18201 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
18203 * config/mips/linux.h: Don't include "gofast.h".
18204 (INIT_SUBTARGET_OPTABS): Removed.
18206 2002-01-16 Kazu Hirata <kazu@hxi.com>
18208 * config/h8300/h8300-protos.h: Replace emit_a_shift with
18210 * config/h8300/h8300.c: Likewise.
18211 * config/h8300/h8300.md: Likewise.
18213 2002-01-16 Kazu Hirata <kazu@hxi.com>
18215 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
18216 spaces after an opcode name.
18217 (pushqi1_h8300hs): Likewise.
18218 (pushhi1_h8300hs): Likewise.
18220 2002-01-16 Kazu Hirata <kazu@hxi.com>
18222 * doc/extend.texi: Replace "option" with "attribute"
18225 2002-01-16 Jakub Jelinek <jakub@redhat.com>
18227 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
18228 (and:DI () (const_int -8)).
18229 (split_small_symbolic_mem_operand): Split
18230 (mem (and:DI () (const_int -8)).
18232 2002-01-16 Jakub Jelinek <jakub@redhat.com>
18235 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
18236 same way as TYPE_IMUL.
18237 (ultrasparc_sched_reorder): Likewise.
18238 * config/sparc/sparc.md (type): Add comment to update
18239 ultrasparc_sched_reorder when making changes.
18241 2002-01-16 Kazu Hirata <kazu@hxi.com>
18243 * doc/invoke.texi: Change the dump file name of block
18244 reordering pass from 28.bbro to 29.bbro.
18245 Mention -dk option.
18247 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
18249 * i386.md (minsf splitter): Fix pasto.
18251 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
18253 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
18254 to frame pointer initialisation instruction.
18255 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
18256 initialisation instruction.
18257 (soft_df_operand): Do not accept the IP register.
18258 (nonimmediate_soft_df_operand): Do not accept the IP register.
18260 2002-01-16 Jakub Jelinek <jakub@redhat.com>
18263 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
18264 MASK_V8 being both set.
18266 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
18268 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
18269 insn for GOT register; add REG_MAYBE_DEAD notes instead.
18270 config/s390/s390.md (call, call_value): Add GOT register to
18271 CALL_INSN_FUNCTION_USAGE where needed.
18272 (call_exp, call_value_exp): New.
18274 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
18276 * config/arm/arm.c: General formatting tidy up.
18278 2002-01-16 Graham Stott <grahams@redhat.com>
18280 * calls.c (try_to_integrate): Use "(size_t)" intermediate
18281 cast and when casting an integer literal to "rtx" pointer.
18282 (expand_call): Likewise.
18283 * flow.c (try_pre_increment): Likewise.
18284 (find_use_as_address): Likewise.
18285 * integrate.c (expand_iline_function): Likewise.
18286 * regmove.c (try_auto_increment): Likewise.
18288 2002-01-16 Graham Stott <grahams@redhat.com>
18290 * sched-rgn.c (passed): Use sbitmap_free.
18291 (header): Likewise.
18293 (in_queue): Likewise.
18294 (in_stack): Likewise.
18296 2002-01-15 Eric Christopher <echristo@redhat.com>
18298 * flow.c (propagate_one_insn): Change to use fatal_insn.
18300 2002-01-15 Kazu Hirata <kazu@hxi.com>
18302 * expmed.c (extract_fixed_bit_field): Remove unused code.
18303 * system.h: Poison SLOW_ZERO_EXTEND.
18304 * doc/tm.texi: Remove.
18305 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
18306 * config/arm/arm.h: Likewise.
18307 * config/avr/avr.h: Likewise.
18308 * config/clipper/clipper.h: Likewise.
18309 * config/convex/convex.h: Likewise.
18310 * config/d30v/d30v.h: Likewise.
18311 * config/dsp16xx/dsp16xx.h: Likewise.
18312 * config/elxsi/elxsi.h: Likewise.
18313 * config/fr30/fr30.h: Likewise.
18314 * config/h8300/h8300.h: Likewise.
18315 * config/i370/i370.h: Likewise.
18316 * config/i386/i386.h: Likewise.
18317 * config/m68k/m68k.h: Likewise.
18318 * config/mips/mips.h: Likewise.
18319 * config/ns32k/ns32k.h: Likewise.
18320 * config/pdp11/pdp11.h: Likewise.
18321 * config/pj/pj.h: Likewise.
18322 * config/s390/s390.h: Likewise.
18323 * config/sh/sh.h: Likewise.
18324 * config/stormy16/stormy16.h: Likewise.
18325 * config/v850/v850.h: Likewise.
18326 * config/vax/vax.h: Likewise.
18327 * config/we32k/we32k.h: Likewise.
18329 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
18331 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
18332 (altivec_lvsl): Change constraint to b.
18333 (altivec_lvsr): Same.
18334 (altivec_lvebx): Same.
18335 (altivec_lvehx): Same.
18336 (altivec_lvewx): Same.
18337 (altivec_lvxl): Same.
18338 (altivec_lvx): Same.
18339 (altivec_stvx): Add parallel.
18340 (altivec_stvxl): Same.
18341 (altivec_stvehx): Same.
18342 (altivec_stvebx): Same.
18343 (altivec_stvebx): Same.
18345 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
18347 * config.gcc: Change altivec.h to altivec-defs.h.
18349 * config/rs6000/altivec.h: Delete.
18351 * config/rs6000/altivec-defs.h: Add.
18353 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
18355 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
18358 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
18359 less than or equal to eight bytes.
18361 * vax.md (andsi3): Remove constraints and change SET destination
18362 operand type to nonimmediate_operand.
18363 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
18364 when it is a CONST_INT.
18366 2002-01-15 Jason Merrill <jason@redhat.com>
18368 * c-common.def (FILE_STMT): New code.
18369 * c-common.c (statement_code_p): It's a statement.
18370 * c-common.h (stmt_tree_s): Add x_last_filename.
18371 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
18372 (last_expr_filename): New macro.
18373 * c-semantics.c (begin_stmt_tree): Initialize it.
18374 (add_stmt): If the filename changed, also insert a
18376 (expand_stmt): Handle seeing one.
18378 2002-01-15 Eric Christopher <echristo@redhat.com>
18380 * flow.c (propagate_one_insn): Add error message and print out
18381 insn for debugging.
18383 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
18385 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
18386 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
18387 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
18388 TRAMPOLINE_ALIGNMENT.
18389 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
18391 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
18392 PCC_BITFIELD_TYPE_MATTERS.
18393 * config/interix.h (STDC_VALUE): Remove. Use
18394 STDC_0_IN_SYSTEM_HEADERS.
18395 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
18396 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
18397 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
18399 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
18401 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
18402 not work on this platform currently.
18404 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
18406 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
18407 readonly_warning in _().
18409 2002-01-15 Douglas B Rupp <rupp@gnat.com>
18411 * gcc.c (delete_if_ordinary): Backout previous change.
18413 2002-01-15 Kazu Hirata <kazu@hxi.com>
18415 * config/h8300/h8300.c (print_operand): Remove support for
18416 unused operand characters.
18418 * read-rtl.c: Fix formatting.
18419 * real.c: Likewise.
18420 * recog.c: Likewise.
18421 * regclass.c: Likewise.
18422 * regmove.c: Likewise.
18423 * reg-stack.c: Likewise.
18424 * reload1.c: Likewise.
18425 * rtlanal.c: Likewise.
18427 2002-01-15 Kazu Hirata <kazu@hxi.com>
18429 * config/i386/i386.c: Fix formatting.
18431 2002-01-15 Jakub Jelinek <jakub@redhat.com>
18433 * c-typeck.c (process_init_element): Don't save_expr
18434 COMPOUND_LITERAL_EXPR if just its initializer will be used.
18436 2002-01-15 David Edelsohn <edelsohn@gnu.org>
18438 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
18439 emit optional traceback table if optimize_size or TARGET_ELF.
18440 * config/rs6000/rs6000.md (prefetch): New.
18442 2002-01-15 Andreas Jaeger <aj@suse.de>
18444 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
18446 2002-01-15 Kazu Hirata <kazu@hxi.com>
18448 * mips-tfile.c: Fix formatting.
18450 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
18452 * unroll.c (final_reg_note_copy): Fix previous commit.
18454 2002-01-14 Kazu Hirata <kazu@hxi.com>
18456 * config/h8300/h8300-protos.h: Remove the prototype for
18458 * config/h8300/h8300.c (eq_operator): Remove.
18460 2002-01-14 Richard Henderson <rth@redhat.com>
18462 * config/i386/i386.md (prefetch): Tidy.
18463 (prefetch_3dnow): Fix locality operand.
18465 2002-01-14 Richard Henderson <rth@redhat.com>
18467 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
18468 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
18470 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
18472 * reload1.c (reload_combine): Pass reg_sum replacement through
18473 copy_rtx in loop performing multiple changes.
18475 2002-01-14 Jakub Jelinek <jakub@redhat.com>
18477 * except.c (remove_unreachable_regions): New.
18478 (free_eh_status): Clear exception_handler_labels.
18479 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
18480 (find_exception_handler_labels): Don't add the same label more than
18482 (remove_exception_handler_label): Don't die if
18483 find_exception_handler_labels hasn't been called for the current
18486 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
18488 * toplev.c (rest_of_compilation): Rebuild jump labels after
18491 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
18493 * doc/extend.texi: Move documentation of X86 built-in functions
18495 * doc/invoke.texi: From here.
18496 * doc/sourcebuild.texi: Document location of documentation for
18497 machine built-in functions.
18499 2002-01-13 Christopher Faylor <cgf@redhat.com>
18501 * cppfiles.c (TEST_THRESHOLD): New macro.
18502 (SHOULD_MMAP): Ditto.
18503 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
18506 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
18508 * unroll.c (final_reg_note_copy): Properly handle
18510 (unroll_loops): Fix LOOP_CONDITION heuristics.
18512 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
18514 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
18515 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
18517 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
18519 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
18522 2002-01-14 Tom Rix <trix@redhat.com>
18524 * config/rs6000/rs6000.md: Fix typo with sradi.
18526 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
18528 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
18529 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
18530 (clrstrdi, clrstrsi): Adapt callers.
18532 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
18534 (movti splitter): Never use register 0 as base register.
18536 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
18538 * combine.c (simplify_shift_const): Always generate new rtx
18539 for shift expression instead of reusing given expression.
18541 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18543 * config/alpha/alpha.c (alpha_expand_mov): Don't call
18544 alpha_legitimize_address unless mode is Pmode.
18546 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
18548 * doc/md.texi (Modifiers): Document the '*' constraint for the
18551 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
18552 * doc/extend.texi (Function Attributes): 'interrupt' is valid
18555 2002-01-13 Richard Henderson <rth@redhat.com>
18557 * reload.c (find_reloads): Use a hard reg destination as reload reg
18558 for an input reload of the source.
18560 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
18562 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
18565 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
18567 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
18568 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
18570 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
18572 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18574 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
18576 2002-01-12 Tom Rix <trix@redhat.com>
18578 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
18581 2002-01-12 Richard Henderson <rth@redhat.com>
18583 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
18585 * doc/invoke.texi: Update Alpha options.
18587 * doc/invoke.texi: Update i386 built-in function lists.
18589 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
18591 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
18592 referencing outside.
18594 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18596 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
18597 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
18598 offsets, and change line folding.
18599 * optabs.c (expand_binop): Remove warnings.
18600 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
18602 2002-01-12 Graham Stott <grahams@redhat.com>
18604 * attribs.c (handle_deprecated_attribute): constify WHAT.
18605 * diagnostic.c (warn_deprecated_use): Add braces, fixes
18606 dangling else warning and constify WHAT.
18607 * except.h (struct function, struct inline_remap): Move
18608 struct tag forward defs before all prototypes.
18609 (duplicate_eh_regions): Whitespace.
18611 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
18613 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
18614 MODE_BASE_REG_CLASS.
18615 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
18617 2002-01-12 Richard Henderson <rth@redhat.com>
18619 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
18620 (ix86_expand_vector_move): New.
18621 (bdesc_2arg): Remove andps, andnps, orps, xorps.
18622 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
18623 Remove old prefetch builtins. Special case the logicals removed above.
18624 (ix86_expand_builtin): Likewise.
18625 (safe_vector_operand): Use V4SFmode, not TImode.
18626 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
18627 (ix86_expand_timode_binop_builtin): New.
18628 * config/i386/i386-protos.h: Update.
18629 * config/i386/i386.h (enum ix86_builtins): Update.
18630 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
18631 Use ix86_expand_vector_move in vector move expanders.
18632 (movti_internal, movti_rex64): Add xorps alternative.
18633 (sse_clrv4sf): Rename and adjust from sse_clrti.
18634 (prefetch): Don't work so hard.
18635 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
18636 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
18637 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
18639 2002-01-11 Richard Henderson <rth@redhat.com>
18641 * config/i386/mmintrin.h: New file.
18642 * config/i386/xmmintrin.h: New file.
18643 * config.gcc (i?86-*-*): Add extra_headers.
18644 * simplify-rtx.c (simplify_unary_operation): Handle saturating
18646 (simplify_binary_operation): Handle saturating arithmetic codes.
18647 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
18648 not the lowpart subreg.
18649 (ix86_expand_builtin): Return a TImode dummy register instead of 0
18651 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
18653 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18655 * conflict.c (conflict_graph_compute): Free regsets when finished.
18656 * ssa.c (compute_coalesced_reg_partition): Likewise.
18658 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
18660 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
18661 every where we allocate a register.
18663 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18665 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
18666 * lcm.c (compute_earliest, compute_farthest): Likewise.
18668 2002-01-11 Janis Johnson <janis187@us.ibm.com>
18670 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
18672 2002-01-11 Janis Johnson <janis187@us.ibm.com>
18674 * doc/rtl.texi (Insns): Fix 2 typos.
18676 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
18678 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
18679 options. Use @table @gcctabopt for MMIX options. Add index
18680 entries for MMIX options. Start new paragraph with first
18681 heading of the machine-dependent options.
18683 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
18686 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
18687 * combine.c (force_to_mode): Same.
18688 * reload1.c (clear_reload_reg_in_use): Same.
18690 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
18692 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
18695 2002-01-11 Andreas Jaeger <aj@suse.de>,
18696 Brad Lucier <lucier@math.purdue.edu>
18698 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
18701 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
18703 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
18704 Protect with IN_LIBGCC.
18705 (LINK_EH_SPEC): Add required trailing space.
18707 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
18709 * c-tree.h: Move function declarations so that they are listed
18710 under the filename which contains them.
18711 (check_identifier, finish_decl_top_level,
18712 lookup_name_current_level_global, shadow_record_fields): Remove.
18714 2002-01-11 Andreas Jaeger <aj@suse.de>
18716 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
18719 2002-01-10 Richard Henderson <rth@redhat.com>
18721 * config/alpha/alpha.c (print_operand): Add 'J'.
18722 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
18723 new operand with the sequence number for the lituse. When splitting
18724 the insns, use gen_movdi_er_high_g and generate a sequence number.
18725 (gen_movdi_er_high_g): Print the sequence number if non-zero.
18727 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
18729 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
18730 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
18732 (altivec_expand_builtin): Same.
18733 (altivec_expand_stv_builtin): New.
18735 * config/rs6000/rs6000.h (rs6000_builtins): Same.
18737 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
18738 ("altivec_lvehx"): New.
18739 ("altivec_lvewx"): New.
18740 ("altivec_lvxl"): New.
18741 ("altivec_lvx"): New.
18742 ("altivec_stvx"): New.
18743 ("altivec_stvebx"): New.
18744 ("altivec_stvehx"): New.
18745 ("altivec_stvewx"): New.
18746 ("altivec_stvxl"): New.
18748 2002-01-10 Richard Henderson <rth@redhat.com>
18750 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
18751 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
18752 care not to delete instructions twice.
18754 2002-01-10 Zack Weinberg <zack@codesourcery.com>
18756 * toplev.c: Don't declare environ (it's not used anywhere).
18757 * configure.in: Don't check for declaration of environ.
18758 * config/i386/xm-mingw32.h: Don't #define environ.
18759 * config.in, configure: Regenerate.
18761 2002-01-10 Zack Weinberg <zack@codesourcery.com>
18763 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
18764 * configure: Regenerate.
18766 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
18767 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
18768 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
18770 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
18771 LIMITS_H_TEST here, not in m68k/x-next.
18772 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
18773 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
18775 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
18776 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
18777 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
18779 * config/i386/x-djgpp: Renamed i386/t-djgpp.
18780 * config/m88k/x-dolph: Renamed m88k/t-dolph.
18781 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
18782 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
18783 replacement of quadlib.asm with quadlib.c.
18785 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
18786 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
18787 config/rs6000/xm-beos.h: Delete file.
18789 * config.gcc: Update to match above changes.
18791 2002-01-10 Kazu Hirata <kazu@hxi.com>
18793 * config/h8300/h8300.h: Fix comment typos.
18794 * config/h8300/h8300.md: Likewise.
18795 * config/h8300/lib1funcs.asm: Likewise.
18797 2002-01-10 Dale Johannesen <dalej@apple.com>
18799 PR optimization/5269
18800 * unroll.c (precondition_loop_p): Make *increment be the correct
18801 sign when n_iterations known, to avoid confusing caller.
18803 2002-01-10 Kazu Hirata <kazu@hxi.com>
18805 * doc/extend.texi (deprecated): Fix a typo.
18807 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
18809 * basic-block.h (update_br_prob_note): Declare.
18810 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
18811 (try_forward_edges): Care negative frequencies and update note.
18812 (outgoing_edges_match): Tweek conditional merging heuristics.
18813 (try_crossjump_to_edge): use update_br_prob_note.
18814 * cfglayout.c (fixup_reorder_chain): Likewise.
18815 * cfrtl.c (update_br_prob_note): New.
18816 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
18818 * i386.c (ix86_decompose_address): Return -1 if address contains
18820 (legitimate_address_p): Require ix86_decompose_address to return 1.
18822 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
18823 (cprop_insn): Likewise.
18825 2002-01-10 Kazu Hirata <kazu@hxi.com>
18827 * toplev.c: Fix formatting.
18828 * tree.c: Likewise.
18829 * tree-dump.c: Likewise.
18830 * unroll.c: Likewise.
18831 * unwind-dw2.c: Likewise.
18832 * unwind-dw2-fde.c: Likewise.
18833 * unwind-dw2-fde-glibc.c: Likewise.
18834 * unwind-sjlj.c: Likewise.
18836 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
18838 * doc/invoke.texi: Document PDP-11 options.
18840 2002-01-10 Kazu Hirata <kazu@hxi.com>
18842 * config/h8300/h8300.h: Fix formatting.
18844 2002-01-10 Ira Ruben <ira@apple.com>
18846 Add __attribute__ ((deprecated)).
18847 * extend.texi: Document __attribute__ ((deprecated)).
18848 * invoke.texi: Document -Wno-deprecated-declarations.
18849 * testsuite/g++.dg/other/deprecated.C: New C++ test.
18850 * testsuite/gcc.dg/deprecated.c: New C test.
18851 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
18852 (c_common_attribute_table): Add "deprecated" entry.
18853 (handle_deprecated_attribute): New function.
18854 * c-decl.c (deprecated_states): New enum.
18855 deprecated_state: State of "deprecated" handling.
18856 (start_decl): Set deprecated_state based on attributes.
18857 (grokdeclarator): Test for deprecated uses, propagate attribute.
18858 * c-typeck.c (build_component_ref): Test for deprecated fields.
18859 (build_external_ref): Test for deprecated primaries.
18860 * diagnostic.c (warn_deprecated_use) New function to issue
18861 warnings about __attribute__ ((depricated)) references.
18862 * flags.h (warn_deprecated_decl): Extern declared for
18863 -W[no-]deprecated-declarations option.
18864 * print-tree.c (print_node): Show deprecated flag status.
18865 * toplev.c (warn_deprecated_decl): Defined.
18866 (W_options): Added "deprecated-declaration".
18867 * toplev.h (warn_deprecated_use): Extern declared.
18868 * tree.h (struct tree_common): Define deprecated_flag.
18869 (TREE_DEPRECATED): New macro to access flag.
18870 * cp/call.c (build_call): Test for deprecated calls.
18871 * cp/class.c (add_implicitly_declared_members): Set global
18872 flag to tell grokdeclarator to not issue deprecated warnings.
18873 * cp/cp-tree.h: Add extern for adding_implicit_members.
18874 * cp/decl.c (deprecated_states): New enum.
18875 (start_decl): Set deprecated_state based on attributes.
18876 (grokdeclarator): Test for deprecated uses, propagate attribute.
18877 * cp/lex.c (do_identifier): Test for deprecated primaries.
18878 * cp/typeck.c (build_component_ref): Test for deprecated fields.
18880 2002-01-10 Ira Ruben <ira@apple.com>
18882 Fix to assign attributes to inline member functions.
18883 * cp/decl.c (start_method): Handle attrlist.
18885 2002-01-10 Kazu Hirata <kazu@hxi.com>
18887 * combine.c (expand_field_assignment): Use subreg_lsb().
18889 2002-01-10 David Edelsohn <edelsohn@gnu.org>
18891 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
18892 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
18893 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
18894 Recurse for any operand of AND as long as constant is non-zero.
18896 2002-01-10 Kazu Hirata <kazu@hxi.com>
18898 * config/h8300/h8300.md: Remove constraints from expanders.
18900 2002-01-10 Kazu Hirata <kazu@hxi.com>
18902 * varasm.c: Fix formatting.
18903 * varray.c: Likewise.
18904 * vmsdbgout.c: Likewise.
18905 * xcoffout.c: Likewise.
18907 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
18909 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
18910 update edge probabilities to match.
18912 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
18914 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
18916 * doc/languages.texi, doc/sourcebuild.texi: New files.
18917 * doc/configfiles.texi: Make a subsubsection. Update.
18918 * doc/configterms.texi: Add @node. Remove warning that this isn't
18919 instructions for building GCC.
18920 * doc/makefile.texi: Make a subsection.
18921 * doc/gccint.texi: Update.
18923 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
18925 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
18927 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
18929 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
18931 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
18933 * optabs.c (expand_fix): Look for wider integer modes first.
18935 * i386.md (mov?f): Avoid the fake const double trick for medium
18937 (min?f*/max?f*): Prohibit memory operands for i387 variant.
18938 (fop_df_4): Disable for SSE compilation.
18940 2002-01-10 Graham Stott <grahams@redhat.com>
18942 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
18943 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
18945 2002-01-10 Richard Henderson <rth@redhat.com>
18947 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
18949 2002-01-10 Richard Henderson <rth@redhat.com>
18951 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
18952 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
18954 2002-01-10 Kazu Hirata <kazu@hxi.com>
18956 * combine.c (can_combine_p): Fix a comment typo.
18958 2002-01-09 Zack Weinberg <zack@codesourcery.com>
18960 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
18961 empty list correctly. Change loop index $t to $f for
18962 consistency with rest of Makefile.
18964 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
18966 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
18967 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
18969 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
18970 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
18971 (altivec_init_builtins): Same.
18972 (altivec_expand_unop_builtin): Return NULL_RTX on error.
18973 (altivec_expand_binop_builtin): Same.
18974 (altivec_expand_ternop_builtin): Same.
18977 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
18978 ("altivec_vctuxs"): Fix typo.
18979 ("altivec_vnmsubfp"): Same.
18980 ("altivec_dssall"): New.
18981 ("altivec_mfvscr"): New.
18982 ("altivec_dss"): New.
18983 ("altivec_lvsl"): New.
18984 ("altivec_lvsr"): New.
18985 ("altivec_dstt"): New.
18986 ("altivec_dstst"): New.
18987 ("altivec_dststt"): New.
18988 ("altivec_dst"): New.
18990 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
18991 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
18993 2002-01-09 Richard Henderson <rth@redhat.com>
18995 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
18997 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
18999 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
19001 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
19003 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
19005 2002-01-09 Kazu Hirata <kazu@hxi.com>
19007 * read-rtl.c: Fix formatting.
19008 * real.c: Likewise.
19009 * regclass.c: Likewise.
19010 * regrename.c: Likewise.
19011 * reg-stack.c: Likewise.
19012 * reload1.c: Likewise.
19013 * reload.c: Likewise.
19016 2002-01-09 Kazu Hirata <kazu@hxi.com>
19018 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
19019 to extract items in the expr_list chain.
19021 2002-01-09 Richard Henderson <rth@redhat.com>
19023 * config/vax/vax.c (vax_rtx_cost): Never abort.
19025 * config/vax/vax.h (REAL_ARITHMETIC): Define.
19027 2002-01-09 Jan Hubicka <jh@suse.cz>
19029 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
19031 2002-01-09 Richard Henderson <rth@redhat.com>
19033 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
19034 Unify code from various alternatives.
19036 2002-01-09 Richard Henderson <rth@redhat.com>
19038 * regrename.c (copy_value): Ignore the copy if the source register
19039 is present in the value chain with a narrower mode.
19041 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
19043 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
19044 for the c4x target. Also improve layout.
19046 2002-01-09 Richard Henderson <rth@redhat.com>
19048 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
19049 * config/m32r/m32r.md (and ior xor splitters): Swap operands
19050 to match insn patterns.
19052 2002-01-09 Richard Henderson <rth@redhat.com>
19054 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
19055 (copyprop_hardreg_forward_1): Likewise.
19057 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
19059 * pa.md (decrement_and_branch_until_zero): Change predicate for
19060 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
19062 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
19064 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
19065 gets undefined. For Darwin.
19067 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
19069 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
19071 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19073 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
19075 2002-01-08 Richard Henderson <rth@redhat.com>
19077 * regrename.c (copy_value): Ignore overlapping copies.
19079 2002-01-08 Richard Henderson <rth@redhat.com>
19081 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
19082 as needed to avoid shared structure.
19084 2002-01-08 Kazu Hirata <kazu@hxi.com>
19086 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
19089 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
19091 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
19092 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
19093 documentation of obsolete macros.
19094 * system.h: Poison these macros.
19095 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
19096 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
19097 config/c4x/c4x.h, config/clipper/clipper.h,
19098 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
19099 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
19100 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
19101 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
19102 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
19103 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
19104 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
19105 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
19106 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
19107 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
19108 config/sparc/sparc.h, config/stormy16/stormy16.h,
19109 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
19110 definitions and commented out definitions of obsolete macros.
19111 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
19112 of MAX_INT_TYPE_SIZE.
19114 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
19116 * config/s390/s390.c (s390_preferred_reload_class): Never
19117 return ADDR_REGS if it isn't a subset of the given class.
19118 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
19119 FP_REGS, but all superclasses as well.
19121 * config/s390/s390.c (s390_function_profiler): Fix thinko.
19123 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
19124 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
19125 must not be a const_int.
19127 2002-01-08 Richard Henderson <rth@redhat.com>
19129 * Makefile.in (toplev.o): Depend on options.h.
19130 (gcc.o): Depend on specs.h.
19132 2002-01-08 Jakub Jelinek <jakub@redhat.com>
19134 * expr.c (store_expr): Convert VOIDmode constants back to target's
19137 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
19139 * doc/invoke.texi: Markup gcc as @command. Refer to
19140 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
19141 of http://gcc.gnu.org/thanks.html.
19143 2002-01-08 Dale Johannesen <dalej@apple.com>
19145 * config/rs6000/rs6000.md: Add missing int register
19146 target case to movdf_low.
19148 2002-01-08 Zack Weinberg <zack@codesourcery.com>
19150 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
19151 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
19152 (cppinit.o): Depend on except.h.
19153 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
19154 s-specs): New rules.
19156 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
19157 Don't create specs.h/options.h/gencheck.h here. Remove
19158 unnecessary variable settings from last argument of AC_OUTPUT.
19159 * config.in, configure: Regenerate.
19160 * intl.c: Hardcode package name as "gcc".
19162 * cppinit.c: Include except.h.
19163 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
19165 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
19166 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
19167 (!)USING_SJLJ_EXCEPTIONS.
19168 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
19170 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
19172 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
19173 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
19174 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
19175 documentation of obsolete macros.
19176 * system.h: Poison these macros.
19177 * config/d30v/d30v.h, config/ns32k/encore.h,
19178 config/stormy16/stormy16.h: Remove definitions and commented out
19179 definitions of obsolete macros.
19181 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
19183 * objc/objc-act.c (handle_class_ref): Mark the declaration of
19184 %sobjc_class_ref_%s as used - to prevent unwanted compiler
19187 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
19189 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
19190 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
19191 to insn adjusting stack/frame pointer.
19192 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
19193 accept operands that cause the insn to be non-splittable.
19195 2002-01-08 Graham Stott <grahams@redhat.com>
19197 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
19198 (C_TYPE_FIELDS_VOLATILE): Likewise.
19199 (C_TYPE_BEING_DEFINED): Likewise.
19200 (C_IS_RESERVED_WORD): Likewise.
19201 (C_TYPE_VARIABLE_SIZE): Likewise.
19202 (C_DECL_VARIABLE_SIZE): Likewise.
19203 (C_MISSING_PROTOTYPE_WARNED): Likewise.
19204 (C_SET_EXP_ORIGINAL_CODE): Likewise.
19205 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
19207 (C_DECL_ANTICIPATED): Likewise.
19208 (c_build_type_variant): Add parenthesis.
19210 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
19212 * gcc.c (option_map): Remove --version.
19213 (process_command): Handle -fversion following the GNU Coding
19214 Standards. Partially addresses PR other/704.
19216 2002-01-08 Graham Stott <grahams@redhat.com>
19218 * combine.c (combine_instructions): Fix typo.
19220 2002-01-08 Graham Stott <grahams@redhat.com>
19222 * debug.h: Use "tree" and "rtx" throughout.
19224 * debug.c: Likewise.
19226 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
19228 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
19229 constant pool, use the pool's version of the symbol instead.
19231 2002-01-07 Richard Henderson <rth@redhat.com>
19233 * regrename.c (find_oldest_value_reg): Ignore the value chain if
19234 the original register was copied in a mode with a fewer number of
19235 hard registers than the desired mode.
19236 (copyprop_hardreg_forward_1): Likewise.
19237 (debug_value_data): Fix loop test.
19238 * toplev.c (parse_options_and_default_flags): Reenable
19239 -fcprop-registers at -O1.
19241 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
19243 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
19244 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
19246 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
19249 * config/rs6000/rs6000.md: Add altivec predicate patterns.
19251 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
19253 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
19254 (pa_output_function_prologue): Output local label at the beginning of
19255 the prologue when profiling.
19256 (hppa_profile_hook): Use the local label rather than the function label.
19257 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
19259 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
19261 * config/rs6000/rs6000.c (print_operand): Remove extra space.
19262 (altivec_expand_unop_builtin): Fix thinko.
19263 (altivec_expand_binop_builtin): Same.
19264 (altivec_expand_ternop_builtin): Same.
19265 (altivec_expand_builtin): Same.
19267 2002-01-07 Richard Henderson <rth@redhat.com>
19269 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
19271 2002-01-07 Jason Merrill <jason@redhat.com>
19273 * unwind-dw2.c (execute_cfa_program): Use < again.
19275 2002-01-07 Jakub Jelinek <jakub@redhat.com>
19277 * predict.c (combine_predictions_for_insn): Avoid division by zero.
19279 2002-01-07 Jakub Jelinek <jakub@redhat.com>
19281 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
19282 Don't allow -1 - x -> ~x simplifications in the first pass.
19284 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
19286 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
19288 (altivec_expand_binop_builtin): Same.
19289 (altivec_expand_unop_builtin): Same.
19290 (print_operand): Fix typo.
19291 (bdesc_1arg): Add vupk* variants.
19293 * rs6000.h (rs6000_builtins): Add vupk* enums.
19295 * rs6000.md: Add altivec_vupk* variants.
19297 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
19299 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
19300 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
19301 and last update dates.
19303 2002-01-07 Janis Johnson <janis187@us.ibm.com>
19305 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
19307 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
19309 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
19310 * config/avr/avr.h (CPP_SPEC): Likewise.
19311 (LINK_SPEC): Likewise.
19312 (CRT_BINUTILS_SPECS): Likewise.
19313 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
19314 * doc/invoke.texi (AVR Options): Document them.
19316 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
19318 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
19321 2002-01-07 Graham Stott <grahams@redhat.com>
19323 * config/i386/i386.h: Update copyright date.
19324 (HALF_PIC_PTR): Add parenthesis.
19325 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
19326 (CONSTANT_ALIGNMENT): Add parenthesis.
19327 (DATA_ALIGNMENT): Likewise.
19328 (LOCAL_ALIGNMENT): Likewise.
19329 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
19330 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
19331 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
19332 (HARD_REGNO_NREGS): Add paranethesis.
19333 (VALID_SSE_REG_MODE): Whitespace.
19334 (VALID_MMX_REG_MODE): Whitespace.
19335 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
19336 (ix86_hard_regno_mode_ok): Add parenthesis.
19337 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
19338 (RETURN_IN_MEMORY): Whitespace.
19339 (N_REG_CLASSES): Add parenthesis.
19340 (INTEGER_CLASS_P): Add parenthesis and wrap.
19341 (FLOAT_CLASS_P): Likewise.
19342 (SSE_CLASS_P): Likewise.
19343 (MMX_CLASS_P): Likewise.
19344 (MAYBE_INTEGER_CLASS_P): Likewise.
19345 (MAYBE_FLOAT_CLASS_P): Likewise.
19346 (MAYBE_SSE_CLASS_P): Likewise.
19347 (MAYBE_MMX_CLASS_P): Likewise.
19348 (Q_CLASS_P): Likewise.
19349 (GENERAL_REGNO_P): Uppercase macro parameter.
19350 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
19351 (FP_REGNO_P): Likewise.
19352 (ANY_FP_REGNO_P): Uppercase macro parameter.
19353 (SSE_REGNO_P): Likewise.
19354 (SSE_REGNO): Likewise.
19355 (SSE_REG_P): Likewise.
19356 (SSE_FLOAT_MODE_P): Likewise.
19357 (MMX_REGNO_P): Likewise.
19358 (MMX_REG_P):Likewise.
19359 (STACK_REG_P): Likewise.
19360 (NON_STACK_REG_P): Likewise.
19361 (STACK_TOP_P): Likewise.
19362 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
19363 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
19364 (SECONDARY_MEMORY_NEEDED): Likewise.
19365 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
19366 (MD_ASM_CLOBBERS): Whitespace and wrap.
19367 (MUST_PASS_IN_STACK): Whitespace and wrap.
19368 (RETURN_POPS_ARGS): Add parenthesis.
19369 (INIT_CUMULATIVE_ARGS): Likewise.
19370 (FUNCTION_ARG): Likewise.
19371 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
19372 (SETUP_INCOMING_VARARGS): Likewise.
19373 (BUILD_VA_LIST_TYPE): Add parenthesis.
19374 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
19376 (EXPAND_BUILTIN_VA_ARG): Likewise.
19377 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
19378 (INITIALIZE_TRAMPOLINE): Add parenthesis.
19379 (INITIAL_ELIMINATION_OFFSET): Likewise.
19380 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
19381 (REGNO_OK_FOR_BASE_P): Likewise.
19382 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
19383 (REGNO_OK_FOR_DIREG_P): Likewise.
19384 (REG_OK_FOR_INDEX_P): Whitespace.
19385 (REG_OK_FOR_BASE_P): Whitespace.
19386 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
19388 (FIND_BASE_TERM): Fix typo.
19389 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
19390 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
19391 (SYMBOLIC_CONST; Whitespace.
19392 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
19393 (ENCODE_SECTION_INFO): Whitespace.
19394 (FINALIZE_PIC): Remove do { ... } while (0).
19395 (PROMOTE_MODE): Wrap in do { ... } while (0).
19396 (CONST_COSTS): Whitespace.
19397 (RTX_COSTS): Add paramethesis, whitespace and wrap.
19398 (REGISTER_MOVE_COST): Add parenthesis.
19399 (MEMORY_MOVE_COST): Likewise.
19400 (EXTRA_CC_MODES): Whitespace.
19401 (SELECT_CC_MODE): Add parenthesis and whitespace.
19402 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
19403 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
19404 (ASM_OUTPUT_LABEL): Add paramethesis.
19405 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
19406 (ASM_OUTPUT_REG_POP): Likewise.
19407 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
19408 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
19410 * config/i386/i386.c: Update copyright.
19411 (CHECK_STACK_LIMIT): Add parenthesis.
19412 (AT_BP): Uppercase macro parameter.
19413 (x86_64_int_parameter_registers): Constify.
19414 (x86_64_int_return_registers): Likewise.
19415 (ix86_compare_op0): Use rtx.
19416 (construct_container): Constify INTREG parameter.
19417 (function_arg): Use rtx.
19419 * diagnostic.h: Update copyright date.
19420 (output_buffer_state): Add parenthesis.
19421 (output_buffer_format_args): Likewise.
19423 * combine.c (combine_instructions): Replace XEXP (links, 0)
19426 2002-01-06 H.J. Lu <hjl@gnu.org>
19428 * cfgcleanup.c (thread_jump): Fix 2 typos.
19430 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
19432 * config.gcc: Add support for --enable-altivec.
19434 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
19436 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
19438 2002-01-06 Jakub Jelinek <jakub@redhat.com>
19440 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
19441 __objc_class_name_*.
19443 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
19445 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
19447 2002-01-06 Richard Henderson <rth@redhat.com>
19449 * reorg.c (emit_delay_sequence): Remove death notes, not merely
19450 nop them out. Increment label reference count for REG_LABEL.
19451 (fill_slots_from_thread): Frob label reference count around
19452 delete_related_insns.
19454 2002-01-05 Richard Henderson <rth@redhat.com>
19456 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
19459 2002-01-05 Richard Henderson <rth@redhat.com>
19461 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
19462 * integrate.c (output_inline_function): Likewise.
19463 * toplev.c (rest_of_compilation): Do it here instead. Move call
19464 to remove_unnecessary_notes after emitting abstract instance.
19465 Force an emitted nested function to have its parent emited as well.
19466 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
19468 (rtl_for_decl_location): Do not look at reload data structures
19469 before reload has run.
19471 2002-01-05 Kazu Hirata <kazu@hxi.com>
19473 * cse.c: Fix formatting.
19474 * dwarf2asm.c: Likewise.
19475 * dwarf2out.c: Likewise.
19476 * explow.c: Likewise.
19477 * expmed.c: Likewise.
19478 * function.c: Likewise.
19479 * gcov.c: Likewise.
19480 * gencheck.c: Likewise.
19481 * genrecog.c: Likewise.
19482 * ggc-common.c: Likewise.
19483 * ggc-page.c: Likewise.
19484 * global.c: Likewise.
19486 2002-01-05 Kazu Hirata <kazu@hxi.com>
19488 * combine.c: Fix formatting.
19490 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
19493 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
19495 2002-01-05 David Edelsohn <edelsohn@gnu.org>
19497 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
19498 as 1 for __powerpc64__ as well.
19500 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
19502 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
19505 2002-01-05 Daniel Berlin <dan@dberlin.org>
19507 * lcm.c: Revert change, due to performance regression it causes on
19508 SPEC because it's slightly more conservative (sigh, I hate
19511 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
19513 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
19515 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
19517 * doc/cppinternals.texi: Update.
19519 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
19521 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
19522 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
19524 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
19525 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
19526 kludge for pre-october-14th mmix versions to handle new-found bug
19527 with PUSHJ/PUSHGO and the register stack.
19528 * config/mmix/mmix.h (struct machine_function): Rename member
19529 has_call_value_without_parameters to has_call_without_parameters.
19530 All referers changed.
19531 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
19532 TARGET_MASK_BRANCH_PREDICT): New macros.
19533 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
19534 -mno-reg-stack-fill-bug-workaround.
19535 * config/mmix/mmix.md ("call"): Set struct machine member
19536 has_call_without_parameters.
19538 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
19540 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
19542 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
19544 * cfgcleanup.c: Include tm_p.h
19545 (mark_effect): Fix handling of hard register; fix handling of SET
19547 2002-01-04 Kazu Hirata <kazu@hxi.com>
19549 * config/h8300/h8300.md (anonymous patterns): Check that
19550 operands are registers before using REGNO on them.
19552 2002-01-03 Roland McGrath <roland@frob.com>
19554 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
19556 2002-01-04 Jakub Jelinek <jakub@redhat.com>
19558 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
19559 * c-common.h (genrtl_expr_stmt_value): Likewise.
19560 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
19561 (expand_expr_stmt_value): Add maybe_last argument.
19562 Don't warn about statement with no effect if it is the last statement
19563 in expression statement.
19564 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
19565 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
19566 expand_expr_stmt_value.
19567 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
19568 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
19569 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
19570 as maybe_last to expand_expr_stmt_value.
19572 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
19574 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
19575 be passed in, do not build it.
19576 (c_begin_if_stmt): New function.
19577 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
19578 * c-common.h (c_expand_start_cond): Update prototype.
19579 (c_begin_if_stmt): Prototype new function.
19580 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
19581 * c-parse.in (if_prefix): Use c_begin_if_stmt,
19582 c_begin_while_stmt and c_finish_while_stmt_cond.
19584 2002-01-04 William Cohen <wcohen@redhat.com>
19586 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
19587 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
19588 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
19589 * config/pa/som.h (ASM_FILE_START): Likewise.
19591 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
19593 * lcm.c: Include df.h.
19594 Add available_transfer_function prototype.
19595 (compute_available): Rework to use iterative dataflow framework.
19596 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
19597 with bb_info in df.h
19598 (available_transfer_function): New function.
19600 * Makefile.in (lcm.o): add df.h to dependencies.
19602 2002-01-04 Richard Henderson <rth@redhat.com>
19604 * config/alpha/alpha.c (some_operand): Accept HIGH.
19605 (input_operand): Likewise; accept simple references to globals.
19606 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
19607 (alpha_const_double_ok_for_letter_p): Likewise.
19608 (alpha_extra_constraint): Likewise.
19609 (alpha_preferred_reload_class): Likewise. Do not force
19610 symbolic constants to memory.
19611 (alpha_legitimate_address_p): Accept simple references
19612 to small_symbolic_operand.
19613 (alpha_legitimize_address): New arg scratch. Be prepared to be
19614 called when no_new_pseudos. Emit simple symbolic references.
19615 Split integers into low, high, and rest.
19616 (alpha_expand_mov): Use alpha_legitimize_address.
19617 (some_small_symbolic_mem_operand): New.
19618 (split_small_symbolic_mem_operand): New.
19619 * config/alpha/alpha-protos.h: Update.
19620 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
19621 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
19622 (EXTRA_CONSTRAINT): Likewise.
19623 (PREFERRED_RELOAD_CLASS): Likewise.
19624 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
19625 (PREDICATE_CODES): Update.
19626 * config/alpha/alpha.md: New post-reload splitters to convert
19627 simplfied symbolic operands to the form that references $29.
19628 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
19629 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
19631 2002-01-03 Richard Henderson <rth@redhat.com>
19633 * local-alloc.c (function_invariant_p): Update commentary.
19635 2002-01-04 H.J. Lu <hjl@gnu.org>
19637 * toplev.c (rest_of_compilation): Fix a typo when calling
19640 2002-01-03 Kazu Hirata <kazu@hxi.com>
19642 * c-common.c: Fix formatting.
19643 * diagnostic.c: Likewise.
19644 * doloop.c: Likewise.
19645 * dwarf2out.c: Likewise.
19647 2002-01-03 Kazu Hirata <kazu@hxi.com>
19649 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
19650 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
19652 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
19654 * cpperror.c: Update comments and copyright.
19655 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
19656 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
19658 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
19660 * collect2.c (main): Use strcmp when testing for "-shared".
19662 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
19664 * cppmacro.c: Don't include intl.h. Update comments.
19665 (new_number_token): Allocate enough buffer for 64-bit unsigned
19666 integers; update prototype.
19667 * cppmain.c: Update comments.
19669 2002-01-03 William Cohen <wcohen@redhat.com>
19671 * function.h (struct function): Add profile.
19672 (current_function_profile): New.
19673 doc/extend.texi: Update documentation.
19674 * final.c (final_start_function): Use current_function_profile
19675 instead of profile_flag.
19676 (profile_after_prologue): Likewise.
19677 * function.c (expand_function_start): Likewise.
19678 (expand_function_start): Likewise.
19679 * config/alpha/alpha.c (direct_call_operand):
19680 (alpha_does_function_need_gp): Likewise.
19681 (alpha_expand_prologue): Likewise.
19682 * config/arm/arm.c (arm_expand_prologue): Likewise.
19683 thumb_expand_prologue: Likewise.
19684 * config/d30v/d30v.c (d30v_stack_info): Likewise.
19685 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
19686 (fr30_expand_prologue): Likewise.
19687 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
19688 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
19689 * config/i386/i386.h (FINALIZE_PIC): Likewise.
19690 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
19691 * config/i960/i960.c (i960_output_function_prologue): Likewise.
19692 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
19693 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
19694 (m32r_expand_prologue): Likewise.
19695 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
19696 (m88k_expand_prologue): Likewise.
19697 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
19698 * config/mips/mips.c (compute_frame_size): Likewise.
19699 (mips_expand_prologue): Likewise.
19700 (mips_can_use_return_insn): Likewise.
19701 * config/pa/elf.h (ASM_FILE_START): Likewise.
19702 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
19703 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
19704 * config/pa/som.h (ASM_FILE_START): Likewise.
19705 * config/romp/romp.c (romp_using_r14): Likewise.
19706 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
19707 (rs6000_stack_info): Likewise.
19708 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
19709 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
19710 * config/v850/v850.c (compute_register_save_size): Likewise.
19712 2002-01-03 Jakub Jelinek <jakub@redhat.com>
19714 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
19715 gen_lowpart_common fails, use gen_lowpart_SUBREG.
19717 2002-01-03 Turly O'Connor <turly@apple.com>
19719 * darwin.c (machopic_output_possible_stub_label): Don't generate
19720 stub routines for pseudo-stubs which we've just defined.
19722 2002-01-03 Kazu Hirata <kazu@hxi.com>
19724 * builtins.c: Fix formatting.
19725 * c-typeck.c: Likewise.
19726 * combine.c: Likewise.
19727 * expr.c: Likewise.
19728 * loop.c: Likewise.
19730 2002-01-03 Andreas Schwab <schwab@suse.de>
19732 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
19733 and return true if _cpp_push_next_buffer pushed a new include
19735 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
19736 _cpp_pop_file_buffer did not push a new file.
19737 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
19739 2002-01-02 Eric Christopher <echristo@redhat.com>
19741 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
19742 FIND_REG_INC_NOTE call. Update copyright.
19743 * loop.c (canonicalize_condition): Ditto.
19744 * reorg.c (delete_scheduled_jump): Ditto.
19746 2002-01-03 Kazu Hirata <kazu@hxi.com>
19748 * gcse.c: Fix formatting.
19750 2002-01-03 Graham Stott <grahams@redhat.com>
19752 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
19753 forward defs for struct tags rtx_def, union_tree, rtvec_def
19754 also output corresponding typedefs for rtx, tree, and rtvec.
19756 * system.h: Move forward defs for struct tags rtx_def, union_tree,
19757 rtvec_def along with corresponding typedefs for rtx, tree, and
19758 rtvec to config.h, hconfig.h, tconfig.h.
19760 2002-01-03 Graham Stott <grahams@redhat.com>
19762 * tree.h: Update copyright date.
19763 (IS_EXPR_CODE_CLASS): Add parenthesis.
19764 (TREE_SET_CODE): Add whitespace.
19765 (TREE_CHECK): Add parenthesis.
19766 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
19767 (CST_OR_CONSTRUCTOR_CHECK):
19768 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
19769 (TREE_SYMBOL_REFERENCED): Whitespace.
19770 (INT_CST_LT): Likewise.
19771 (INT_CST_LT_UNSIGNED): Likewise.
19772 (tree_real_cst): Unwrap comment.
19773 (tree_string): Likewise.
19774 (tree_complex): Likewise.
19775 (IDENTIFIER_POINTER): correct cast.
19776 (SAVE_EXPR_CONTEXT): Whitespace.
19777 (EXPR_WFL_FILENAME_NODE): Likewise.
19778 (EXPR_WFL_FILENAME): Remove parenthesis.
19779 (DECL_ORIGIN): Add parenthesis.
19780 (DECL_FROM_INLINE): Use NULL_TREE.
19781 (build_int_2): Whitespace.
19782 (build_type_variant): Add parenthesis.
19784 * gcc/jcf-parse.c: Update copyright date.
19785 (yyparse): Constify resource_filename.
19787 2002-01-03 Graham Stott <grahams@redhat.com>
19789 * rtl.h: Update copyright date.
19790 (RTL_CHECK1): Wrap long line.
19791 (RTL_CHECK2): Likewise.
19792 (RTL_CHECKC1): Wrap long line and whitespace.
19793 (RTL_CHECKC2): Likewise.
19794 (XWINT): Whitespace.
19800 (XBITMAP): Likewise.
19802 (XBBDEF): Likewise.
19804 (X0WINT): Likewise.
19806 (X0UINT): Likewise.
19810 (X0MODE): Likewise.
19811 (X0BITMAP): Likewise.
19812 (X0TREE): Likewise.
19813 (X0BBDEF): Likewise.
19814 (X0ADVFLAGS): Likewise.
19815 (X0CSELIB): Likewise.
19816 (X0MEMATTR): Likewise.
19817 (XCWINT): Likewise.
19819 (XCUINT): Likewise.
19823 (XCMODE): Likewise.
19824 (XCBITMAP): Likewise.
19825 (XCTREE): Likewise.
19826 (XCBBDEF): Likewise.
19827 (XCADVFLAGS): Likewise.
19828 (XCCSELIB): Likewise.
19829 (XC2EXP): Likewise.
19830 (INSN_UID): Likewise.
19831 (PREV_INSN): Likewise.
19832 (PATTERN): Likewise.
19833 (INSN_CODE): Likewise.
19834 (PUT_REG_NOTE_KIND): Likewise.
19835 (CODE_LABEL_NUMBER): Likewise.
19836 (NOTE_SOURCE_FILE): Likewise.
19837 (NOTE_BLOCK): Likewise.
19838 (NOTE_EH_HANDLER): Likewise.
19839 (NOTE_RANGE_INFO): Likewise.
19840 (NOTE_LIVE_INFO): Likewise.
19841 (NOTE_BASIC_BLOCK): Likewise.
19842 (NOTE_EXPECTED_VALUE): Likewise.
19843 (NOTE_LINE_NUMBER): Likewise.
19844 (LABEL_NAME): Likewise.
19845 (LABEL_NUSES): Likewise.
19846 (LABEL_ALTERNATE_NAME): Likewise.
19847 (ADDRESSOF_DECL): Likewise.
19848 (JUMP_LABEL): Likewise.
19849 (LABEL_NEXTREF): Likewise.
19851 (ORIGINAL_REGNO: Likewise.
19852 (HARD_REGISTER_NUM_P): Add parenthesis.
19853 (SUBREG_REG): Whitespace.
19854 (SUBREG_BYTE): Likewise.
19855 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
19856 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
19857 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
19858 (ASM_OPERANDS_INPUT_VEC): Likewise.
19859 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
19860 (ASM_OPERANDS_INPUT): Likewise.
19861 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
19862 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
19863 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
19864 (ASM_OPERANDS_INPUT_MODE): Likewise.
19865 (ASM_OPERANDS_SOURCE_FILE): Likewise.
19866 (ASM_OPERANDS_SOURCE_LINE): Likewise.
19867 (MEM_SET_IN_STRUCT_P): Minor reformat.
19868 (TRAP_CONDITION): Whitespace.
19869 (TRAP_CODE): Likewise.
19870 (COND_EXEC_TEST): Likewise.
19871 (COND_EXEC_CODE): Likewise.
19872 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
19873 (PHI_NODE_P): Add parenthesis.
19874 (plus_constant): Whitespace and add parenthesis.
19876 2002-01-03 Kazu Hirata <kazu@hxi.com>
19878 * config/avr/avr.c: Fix comment typos.
19879 * config/c4x/c4x.md: Likewise.
19880 * config/dsp16xx/dsp16xx.h: Likewise.
19881 * config/dsp16xx/dsp16xx.md: Likewise.
19882 * config/i386/i386.md: Likewise.
19883 * config/ia64/ia64.c: Likewise.
19884 * config/m32r/m32r.h: Likewise.
19885 * config/m68hc11/m68hc11.md: Likewise.
19886 * config/mmix/mmix.c: Likewise.
19887 * config/mn10200/mn10200.c: Likewise.
19888 * config/romp/romp.c: Likewise.
19889 * config/sh/sh.c: Likewise.
19890 * config/stormy16/stormy16.c: Likewise.
19891 * config/stormy16/stormy16.h: Likewise.
19892 * config/stormy16/stormy16.md: Likewise.
19894 2002-01-03 Graham Stott <grahams@redhat.com>
19896 * loop.h: Update copyright date.
19897 (LOOP_MOVABLES): Fix typo.
19898 (LOOP_REGS): Likewise.
19899 (LOOP_IVS): Likewise.
19901 2002-01-03 Graham Stott <grahams@redhat.com>
19903 * cppinit.c: Update copyright date.
19904 Don't include output.h
19905 * Makefile.in: Update copyright date.
19908 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
19911 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
19912 (-pthread) Add to RS/6000 options.
19914 2002-01-02 Kazu Hirata <kazu@hxi.com>
19916 * except.c: Fix comment typos.
19917 * loop.c: Likewise.
19918 * varasm.c: Likewise.
19919 * doc/tm.texi: Fix a typo.
19921 2002-01-02 Jakub Jelinek <jakub@redhat.com>
19923 * c-typeck.c (output_init_element): Allow initializing static storage
19924 duration objects with compound literals.
19926 2002-01-02 Richard Henderson <rth@redhat.com>
19928 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
19931 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19933 * gcc.c (default_compilers): Const-ify.
19934 * mips-tdump.c (stab_names): Likewise.
19935 * mips-tfile.c (map_coff_types, map_coff_storage,
19936 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
19937 pseudo_ops_t, pseudo_ops): Likewise.
19938 * protoize.c (default_include): Likewise
19940 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
19941 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
19942 Add array size in declaration.
19943 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
19944 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
19945 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
19946 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
19947 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
19948 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
19949 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
19950 emtens, make_nan): Const-ify.
19951 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
19952 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
19954 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
19956 * config.gcc (ia64-*-*): Set extra_headers.
19957 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
19958 * config/alpha/t-osf: Remove.
19959 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
19961 2002-01-02 David Edelsohn <edelsohn@gnu.org>
19963 * config/rs6000/t-aix43: Revert previous change.
19965 2002-01-02 Jason Merrill <jason@redhat.com>
19967 * c-decl.c (c_expand_body): Call outlining_inline_function when
19968 emitting an inline function out of line.
19970 2002-01-02 Richard Henderson <rth@redhat.com>
19972 * dwarf2out.c (limbo_die_node): Add created_for member.
19973 (new_die): New argument created_for. Update all callers.
19974 (mark_limbo_die_list): New.
19975 (dwarf2out_init): Register limbo_die_list as a root.
19976 (dwarf2out_finish): Force insert limbo dies into their function
19979 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
19982 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
19984 2002-01-02 Kazu Hirata <kazu@hxi.com>
19986 * config/h8300/fixunssfsi.c: Update copyright.
19989 * config/h8300/h8300.c: Update copyright.
19990 Eliminate warnings.
19992 2002-01-02 Kazu Hirata <kazu@hxi.com>
19994 * config/romp/romp.c: Fix comment formatting.
19995 * config/romp/romp.h: Likewise.
19996 * config/romp/romp.md: Likewise.
19997 * config/s390/s390.c: Likewise.
19998 * config/stormy16/stormy16.c: Likewise.
19999 * config/stormy16/stormy16.h: Likewise.
20001 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
20003 * c-common.h (genrtl_expr_stmt_value): Declare.
20004 * c-semantics.c (genrtl_goto_stmt): Redirect to...
20005 (genrtl_goto_stmt_value): ... this new function. Pass new
20006 argument down to expand_expr_stmt_value, taking
20007 TREE_ADDRESSABLE into account.
20008 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
20009 STMT_EXPR as addressable, i.e., one whose result we want.
20010 * expr.c (expand_expr): Don't save expression statement value
20011 of labeled_blocks or loop_exprs.
20012 * stmt.c (expand_expr_stmt): Redirect to...
20013 (expand_expr_stmt_value): ... this new function. Use new
20014 argument to tell whether to save expression value.
20015 (expand_end_stmt_expr): Reset last_expr_type and
20016 last_expr_value if we don't have either.
20017 * tree-inline.c (declare_return_variable): Mark its use
20018 statement as addressable.
20019 * tree.h: Document new use of TREE_ADDRESSABLE.
20020 (expand_expr_stmt_value): Declare.
20022 2002-01-01 Tom Rix <trix@redhat.com>
20024 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
20025 rs6000_emit_allocate_stack.
20027 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
20029 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
20030 ${srcdir}/ginclude/ to every entry in extra_headers.
20031 * configure: Regenerate.
20032 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
20033 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
20034 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
20035 * ginclude/proto.h: Rename to config/convex/proto.h.
20037 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20039 * attribs.c (handle_vector_size_attribute): Use host_integerp
20040 and tree_int_cst; remove warnings.
20041 * caller-save.c (insert_restore): Add cast to get rid of warning.
20042 (insert_save): Likewise.
20043 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
20044 * regmove.c (find_matches): Add temporary var to kill a warning.
20046 2002-01-01 Douglas B Rupp <rupp@gnat.com>
20048 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
20049 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
20050 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
20051 (vms-dwarf2eh.o): Add Makefile rule.
20052 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
20053 * config/alpha/vms-dwarf2eh.asm: New file.
20055 * gcc.c (delete_if_ordinary): Delete all versions.
20057 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
20059 * config/mmix/mmix.md: Update FIXME to not mention
20061 (MMIX_rJ_REGNUM): New define_constants constant.
20062 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
20063 "*movdicc_real"): Adjust contraints formatting.
20064 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
20065 for branch prediction.
20066 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
20068 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
20069 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
20070 number. Delete related FIXMEs.
20071 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
20072 from number to MMIX_rJ_REGNUM.
20073 (TARGET_MASK_BRANCH_PREDICT): New.
20074 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
20075 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
20076 value. Add -mbranch-predict and -mno-branch-predict.
20077 (TARGET_VERSION): Drop date.
20078 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
20079 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
20080 for finding out global symbols.
20081 (mmix_asm_output_labelref): Revert condition for global symbol.
20082 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
20083 (mmix_print_operand_punct_valid_p): A '+' is valid.
20085 See ChangeLog.6 for earlier changes.