1 2002-09-29 Richard Henderson <rth@redhat.com>
3 * combine.c (force_to_mode): Handle FLOAT_MODE destinations
6 2002-09-29 David Edelsohn <edelsohn@gnu.org>
8 * real.h (ibm_extended_format): Declare.
9 * real.c (encode_ibm_extended, decode_ibm_extended): New
12 2002-09-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14 * darwin-protos.h (darwin_asm_output_dwarf_delta): Prototype.
16 * ia64.c (ia64_hpux_asm_file_end): Const-ify.
18 2002-09-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
20 * expmed.c (extract_bit_field): Fix bit-field extraction from SUBREGs.
22 2002-09-29 Kazu Hirata <kazu@cs.umass.edu>
24 * builtins.def: Fix comment formatting.
25 * c-common.def: Likewise.
26 * cfgcleanup.c: Likewise.
27 * combine.c: Likewise.
28 * gengtype.c: Likewise.
29 * params.def: Likewise.
30 * predict.def: Likewise.
33 * stor-layout.c: Likewise.
35 * config/darwin.c: Likewise.
36 * config/darwin.h: Likewise.
37 * config/dbxcoff.h: Likewise.
38 * config/elfos.h: Likewise.
39 * config/fp-bit.c: Likewise.
40 * config/freebsd-spec.h: Likewise.
41 * config/interix.h: Likewise.
42 * config/libgloss.h: Likewise.
43 * config/linux-aout.h: Likewise.
44 * config/linux.h: Likewise.
45 * config/lynx-ng.h: Likewise.
46 * config/lynx.h: Likewise.
47 * config/netbsd-aout.h: Likewise.
48 * config/netbsd.h: Likewise.
49 * config/netware.h: Likewise.
50 * config/psos.h: Likewise.
51 * config/ptx4.h: Likewise.
53 2002-09-28 Kazu Hirata <kazu@cs.umass.edu>
55 * ChangeLog.4: Fix typos.
56 * ChangeLog.6: Likewise.
57 * FSFChangeLog.10: Likewise.
58 * genattrtab.c: Fix comment typos.
59 * haifa-sched.c: Likewise.
62 * config/arm/arm.c: Likewise.
63 * config/arm/crti.asm: Likewise.
64 * config/arm/crtn.asm: Likewise.
65 * config/frv/frv.c: Likewise.
66 * config/frv/frv.md: Likewise.
67 * config/h8300/h8300.md: Likewise.
68 * config/i386/rtemself.h: Likewise.
69 * config/ia64/unwind-ia64.c: Likewise.
70 * config/ip2k/ip2k.h: Likewise.
71 * config/m88k/m88k.c: Likewise.
72 * config/m88k/m88k.md: Likewise.
73 * config/mips/sr71k.md: Likewise.
74 * config/mmix/mmix.c: Likewise.
75 * config/rs6000/rs6000.c: Likewise.
76 * config/sh/sh.md: Likewise.
78 2002-09-26 Theodore A. Roth <troth@verinet.com>
80 * config/avr/avr.c: Eliminate use of _PC_ in pc relative insns.
81 * config/avr/avr.md: Ditto.
83 2002-09-27 Alexander N. Kabaev <ak03@gte.com>
86 * cppmacro.c (stringify_arg): Do not overflow the buffer
87 with the terminating NUL when the argument to be stringified
90 2002-09-27 Richard Henderson <rth@redhat.com>
92 * unroll.c (simplify_cmp_and_jump_insns): New.
93 (unroll_loop): Use it. Use simplify_gen_foo+force_operand
94 instead of expand_simple_foo.
96 2002-09-27 Richard Henderson <rth@redhat.com>
99 * cfganal.c (flow_active_insn_p): New.
100 (forwarder_block_p): Use it.
102 2002-09-27 Richard Henderson <rth@redhat.com>
104 * emit-rtl.c (active_insn_p): Revert last change.
106 2002-09-27 Jakub Jelinek <jakub@redhat.com>
108 * doc/extend.texi (tls_model): Document.
109 * varasm.c (decl_tls_model): New.
110 * c-common.c (handle_tls_model_attribute): New.
111 (c_common_attribute_table): Add tls_model.
112 * config/alpha/alpha.c (alpha_encode_section_info): Use
114 * flags.h (enum tls_model, flag_tls_default): Move...
115 * tree.h (enum tls_model, flag_tls_default): ...here.
116 (decl_tls_model): New prototype.
117 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
118 * config/i386/i386.c (ix86_encode_section_info): Likewise.
119 * config/i386/i386.md (tls_global_dynamic, tls_local_dynamic_base):
122 2002-09-27 Kazu Hirata <kazu@cs.umass.edu>
124 * LANGUAGES: Follow spelling conventions.
126 * sbitmap.c: Likewise.
127 * sched-int.h: Likewise.
128 * sched-rgn.c: Likewise.
129 * sibcall.c: Likewise.
130 * simplify-rtx.c: Likewise.
132 * stab.def: Likewise.
134 * stor-layout.c: Likewise.
135 * target.h: Likewise.
136 * timevar.c: Likewise.
137 * toplev.c: Likewise.
138 * tree-dump.c: Likewise.
139 * tree-inline.c: Likewise.
141 * tree.def: Likewise.
143 * unroll.c: Likewise.
144 * varasm.c: Likewise.
145 * vmsdbgout.c: Likewise.
146 * treelang/treelang.texi: Likewise.
147 * treelang/treetree.c: Likewise.
149 2002-09-27 Kazu Hirata <kazu@cs.umass.edu>
151 * config/h8300/h8300.c (compute_saved_regs): Use a macro
152 instead of a hard register number.
153 (get_shift_alg): Use an enumerated type instead of numbers.
154 (h8300_shift_needs_scratch_p): Likewise.
156 2002-09-26 David S. Miller <davem@redhat.com>
159 * calls.c (emit_library_call_value_1): Passing args by reference
160 converts a CONST function into a PURE one.
162 2002-09-26 David Edelsohn <edelsohn@gnu.org>
164 * dbxout.c (FORCE_TEXT): Switch to current_function_decl, not
166 * xcoffout.h (DBX_STATIC_BLOCK_START): Remove explicit change to
168 * config/rs6000/rs6000.c (rs6000_override_options): Allow
169 function-sections and data-sections functionality on AIX.
171 2002-09-26 David Edelsohn <edelsohn@gnu.org>
172 Dale Johannesen <dalej@apple.com>
174 * config/rs6000/rs6000.c (rs6000_emit_move): Insert zero-extend
175 in RTL for sub-word loads from memory.
177 2002-09-26 Richard Henderson <rth@redhat.com>
180 * sched-deps.c (sched_analyze_insn): Make clobber insns depend
183 2002-09-26 Richard Henderson <rth@redhat.com>
185 * emit-rtl.c (const_double_htab_eq): Remove unused variable.
187 2002-09-26 Chris Lattner <sabre@nondot.org>
189 * ssa.c (rename_insn_1): Handle RENAME_NO_RTX correctly when
190 handling undefined values.
192 2002-09-26 Richard Henderson <rth@redhat.com>
195 * emit-rtl.c (active_insn_p): Consider a clobber of the
196 function return value to be active even after reload.
198 2002-09-27 Alan Modra <amodra@bigpond.net.au>
200 * doloop.c (doloop_modify_runtime <biv skips initial incr>): Adjust
201 by absolute loop increment, not loop increment.
203 2002-09-26 Kazu Hirata <kazu@cs.umass.edu>
205 * c-common.h: Follow spelling conventions.
206 * cpplex.c: Likewise.
207 * cpplib.h: Likewise.
208 * gthr-dce.h: Likewise.
209 * gthr-posix.h: Likewise.
210 * optabs.c: Likewise.
211 * output.h: Likewise.
212 * profile.c: Likewise.
213 * protoize.c: Likewise.
214 * ra-rewrite.c: Likewise.
217 * reg-stack.c: Likewise.
218 * regclass.c: Likewise.
219 * regmove.c: Likewise.
220 * reload.c: Likewise.
221 * reload.h: Likewise.
222 * reload1.c: Likewise.
224 * resource.c: Likewise.
226 * rtlanal.c: Likewise.
228 2002-09-26 Steve Ellcey <sje@cup.hp.com>
230 * config/ia64/ia64.c (ia64_expand_load_address): Ensure correct mode
233 2002-09-24 Eric Christopher <echristo@redhat.com>
235 * config/mips/elf.h: Add HANDLE_SYSV_PRAGMA.
236 * config/mips/elf64.h: Ditto.
238 2002-09-24 Eric Christopher <echristo@redhat.com>
240 * except.c (expand_builtin_extract_return_address): Handle case
241 where Pmode != ptr_mode.
243 2002-09-26 Steve Ellcey <sje@cup.hp.com>
245 * config/ia64/hpux.h (ASM_OUTPUT_EXTERNAL_LIBCALL): New
247 2002-09-26 Steve Ellcey <sje@cup.hp.com>
249 * config/ia64/hpux.h (TARGET_DEFAULT): Include TARGET_ILP32.
251 2002-09-26 Igor Shevlyakov <igor@microunity.com>
253 * combine.c (simplify_set): Don't call to force_to_mode if size
254 of integer type is larger than HOST_BITS_PER_WIDE_INT.
256 2002-09-26 Janis Johnson <janis187@us.ibm.com>
258 * Makefile.in (qmtest-g++): Fix file path.
260 2002-09-26 Ulrich Weigand <uweigand@de.ibm.com>
262 * expr.c (expand_expr) [MINUS_EXPR]: Convert A - const to
263 A + (-const) on RTX level, even for unsigned types.
265 2002-09-26 Ulrich Weigand <uweigand@de.ibm.com>
267 * reload.c (dup_replacements): New function.
268 (find_reloads): Use it to duplicate replacements at the top level
269 of match_dup operands.
271 2002-09-26 Miles Bader <miles@gnu.org>
273 * v850.md ("length"): Change default value to 4.
275 2002-09-26 Kazu Hirata <kazu@cs.umass.edu>
277 * ChangeLog.1: Follow spelling conventions.
278 * ChangeLog.4: Likewise.
279 * ChangeLog.6: Likewise.
280 * FSFChangeLog.11: Likewise.
281 * doc/cpp.texi: Likewise.
282 * doc/invoke.texi: Likewise.
283 * doc/tm.texi: Likewise.
285 2002-09-26 Nick Clifton <nickc@redhat.com>
287 * config.gcc: Add x prefix to v850e case for handling
290 2002-09-25 David S. Miller <davem@redhat.com>
293 * config/sparc/sparc.c (set_extends): SImode ASHIFT does not
296 2002-09-25 Richard Henderson <rth@redhat.com>
298 * emit-rtl.c (const_double_htab_eq): Distinguish integer and
299 fp CONST_DOUBLE; use real_identical.
301 2002-09-25 Mark Mitchell <mark@codesourcery.com>
303 * doc/invoke.texi: Add more -Wabi examples.
305 2002-09-25 Richard Sandiford <rsandifo@redhat.com>
307 * config/mips/mips.h (TARGET_MIPS4100): Add missing bracket.
309 2002-09-24 Denis Chertykov <denisc@overta.ru>
311 * config/ip2k/ip2k.c (function_epilogue): Fix wrong numbers in
312 cases of optimizing "add sp,w" to "inc sp".
314 2002-09-24 Adam Nemet <anemet@lnxw.com>
316 * config/arm/arm.c (thumb_unexpanded_epilogue): Don't generate
317 epilogue for naked functions.
319 2002-09-24 Adam Nemet <anemet@lnxw.com>
320 Nick Clifton <nickc@redhat.com>
322 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Remove.
323 (FUNCTION_PROFILER): Only invoke THUMB_FUNCTION_PROFILER if it
326 2002-09-24 Ulrich Weigand <uweigand@de.ibm.com>
328 * config/s390/s390.c (preferred_la_operand_p): New function.
329 * config/s390/s390-protos.h (preferred_la_operand_p): Declare it.
330 * config/s390/s390.md ("addaddr_esame", "*la_ccclobber"): Replace by ...
331 ("*la_64_cc", "*la_31_cc", splitters): ... these.
332 ("*la_31"): Deactivate for TARGET_64BIT.
333 ("*la_31_and", "*la_31_and_cc"): New.
335 2002-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
337 * real.h (real_value): Make `exp' explicitly signed.
339 2002-09-24 Kazu Hirata <kazu@cs.umass.edu>
341 * config/elfos.h: Follow spelling conventions.
342 * config/alpha/alpha.h: Likewise.
343 * config/arc/arc.h: Likewise.
344 * config/arm/arm.md: Likewise.
345 * config/avr/avr.h: Likewise.
346 * config/cris/cris.md: Likewise.
347 * config/d30v/d30v.h: Likewise.
348 * config/frv/frv.c: Likewise.
349 * config/frv/frv.h: Likewise.
350 * config/h8300/h8300.c: Likewise.
351 * config/h8300/h8300.h: Likewise.
352 * config/h8300/h8300.md: Likewise.
353 * config/i386/cygwin.h: Likewise.
354 * config/i386/i386.h: Likewise.
355 * config/i386/sysv3.h: Likewise.
356 * config/i960/i960.h: Likewise.
357 * config/ia64/ia64.h: Likewise.
358 * config/ia64/ia64.md: Likewise.
359 * config/ip2k/ip2k.h: Likewise.
360 * config/m32r/m32r.h: Likewise.
361 * config/m68k/m68k.h: Likewise.
362 * config/m88k/m88k.h: Likewise.
363 * config/mcore/mcore.c: Likewise.
364 * config/mcore/mcore.h: Likewise.
365 * config/mcore/mcore.md: Likewise.
366 * config/mips/mips.h: Likewise.
367 * config/mmix/mmix.h: Likewise.
368 * config/mmix/mmix.md: Likewise.
369 * config/ns32k/netbsd.h: Likewise.
370 * config/ns32k/ns32k.h: Likewise.
371 * config/ns32k/ns32k.md: Likewise.
372 * config/pa/pa.h: Likewise.
373 * config/romp/romp.h: Likewise.
374 * config/rs6000/rs6000.h: Likewise.
375 * config/rs6000/rs6000.md: Likewise.
376 * config/sparc/sparc.h: Likewise.
377 * config/stormy16/stormy-abi: Likewise.
378 * config/stormy16/stormy16.h: Likewise.
379 * config/vax/vax.h: Likewise.
381 2002-09-23 Zack Weinberg <zack@codesourcery.com>
383 * version.c (version_string): Now const char[].
384 * version.h: Update to match.
386 2002-09-23 Richard Henderson <rth@redhat.com>
388 * config/i386/i386.h (MASK_ACCUMULATE_OUTGOING_ARGS_SET, MASK_MMX_SET,
389 MASK_SSE_SET, MASK_SSE2_SET, MASK_3DNOW_SET, MASK_3DNOW_A_SET): Kill.
390 (TARGET_SWITCHES): Don't reference them.
391 * config/i386/i386.c (override_options): Use target_flags_explicit
392 to examine bits set by the user.
394 2002-09-23 Dale Johannesen <dalej@apple.com>
396 * dbxout.c (dbxout_parms): Set current_sym_code for params
397 passed on stack by invisible reference.
399 2002-09-23 Richard Earnshaw <rearnsha@arm.com>
401 * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Always allocate
402 at least one byte of space.
404 2002-09-23 Mark Mitchell <mark@codesourcery.com>
406 * c-common.h (flag_abi_version): Fix typo in comment.
407 * doc/invoke.texi (flag_abi_version): Document default value.
409 2002-09-23 Hans-Peter Nilsson <hp@axis.com>
411 * doc/extend.texi (Extended Asm): Clarify that overlap between
412 asm-declared register variables used in an asm and the asm clobber
414 * stmt.c (decl_conflicts_with_clobbers_p): New function.
415 (expand_asm_operands): Keep track of clobbered registers. Call
416 decl_conflicts_with_clobbers_p for each input and output operand.
417 If no conflicts found before, also do conflict sanity check when
420 2002-09-23 Richard Henderson <rth@redhat.com>
422 * c-common.c (cpp_define_data_format): Remove.
423 (cb_register_builtins): Don't define __WCHAR_BIT__, __SHRT_BIT__,
424 __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
425 __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
426 * doc/cpp.texi: Don't document them either.
427 (__SCHAR_MAX__, __SHRT_MAX__, __INT_MAX__, __LONG_MAX__,
428 __LONG_LONG_MAX__): Document.
429 (__TARGET_FLOAT_FORMAT__): Remove.
431 2002-09-23 Richard Henderson <rth@redhat.com>
433 * real.c (do_multiply): Normalize U before addition.
435 2002-09-23 Mark Mitchell <mark@codesourcery.com>
437 * c-common.c (flag_abi_version): New variable.
438 * c-common.h (flag_abi_version): Declare it.
439 * c-opts.c (missing_arg): Add -fabi-version.
440 (c_common_decode_option): Process -fabi-version.
441 * doc/invoke.texi (-fabi-version): Document it.
442 (-Wabi): Add information about bit-fields in unions.
444 2002-09-22 Jason Thorpe <thorpej@wasabisystems.com>
446 * config/mips/netbsd.h (SUBTARGET_ASM_SPEC): Always pass -KPIC
447 unless -fno-pic or -fno-PIC is specified.
449 2002-09-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
451 * c-common.c (preprocessing_trad_p): Define.
452 * pa-hiux.h, pa-hpux.h, pa-hpux7.h (CPP_PREDEFINES): Delete.
453 (TARGET_OS_CPP_BUILTINS, SUBTARGET_SWITCHES): Define.
454 * pa-hpux10.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC): Define.
455 * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define.
456 * pa-linux.h (CPP_PREDEFINES): Delete.
457 (TARGET_OS_CPP_BUILTINS, CPP_SPEC): Define.
458 * pa32-linux.h, pa64-linux.h (CPP_SPEC): Delete.
459 * pa-osf.h, pa-pro-end.h, rtems.h (CPP_PREDEFINES): Delete.
460 (TARGET_OS_CPP_BUILTINS): Define.
461 * pa.h (MASK_SIO, TARGET_SIO, TARGET_PA_10): Define.
462 (TARGET_SWITCHES): Reformat. Use N_() macro. Add SUBTARGET_SWITCHES.
463 (SUBTARGET_SWITCHES): Provide default definition.
464 (TARGET_OPTIONS): Reformat. Use N_() macro.
465 (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC, CPP_64BIT_SPEC,
466 CPP_CPU_DEFAULT_SPEC, CPP_64BIT_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS,
467 EXTRA_SPECS, CPP_SPEC, CPLUSPLUS_CPP_SPEC, CPP_PREDEFINES): Delete.
468 (TARGET_CPU_CPP_BUILTINS): Define.
469 (TARGET_OS_CPP_BUILTINS): Define for BSD-like systems.
470 * doc/invoke.texi (msio, mwsio): Document new hppa options.
471 * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Document macro
472 preprocessing_trad_p().
474 2002-09-22 Jason Thorpe <thorpej@wasabisystems.com>
476 * doc/install.texi: Document behavior of --with-headers and
477 --with-libs when arguments are omitted.
479 2002-09-22 Kazu Hirata <kazu@cs.umass.edu>
481 * dbxout.c: Follow spelling conventions.
482 * defaults.h: Likewise.
484 * diagnostic.h: Likewise.
485 * doloop.c: Likewise.
486 * dwarf2out.c: Likewise.
487 * dwarfout.c: Likewise.
488 * emit-rtl.c: Likewise.
489 * except.c: Likewise.
490 * explow.c: Likewise.
491 * expmed.c: Likewise.
496 * fold-const.c: Likewise.
497 * function.c: Likewise.
498 * function.h: Likewise.
500 * gcov-io.h: Likewise.
503 * genattrtab.c: Likewise.
504 * genconfig.c: Likewise.
505 * genrecog.c: Likewise.
506 * ggc-page.c: Likewise.
508 * global.c: Likewise.
509 * gthr-win32.h: Likewise.
510 * integrate.c: Likewise.
512 * langhooks.c: Likewise.
513 * langhooks.h: Likewise.
514 * line-map.h: Likewise.
515 * local-alloc.c: Likewise.
516 * longlong.h: Likewise.
520 Tue Aug 27 22:26:35 CEST 2002 Jan Hubicka <jh@suse.cz>
522 * i386.h (BIGGEST_FIELD_ALIGNMENT): Set proper default for x86_64.
524 Tue Aug 27 20:07:01 CEST 2002 Jan Hubicka <jh@suse.cz>
526 * i386.c (overwrite_options): Set -mpreferred-stack-boundary to 128
527 for -Os/TARGET_64BIT too.
529 2002-09-21 Kazu Hirata <kazu@cs.umass.edu>
531 * ChangeLog: Follow spelling conventions.
532 * ChangeLog.0: Likewise.
533 * ChangeLog.1: Likewise.
534 * ChangeLog.2: Likewise.
535 * ChangeLog.3: Likewise.
536 * ChangeLog.4: Likewise.
537 * ChangeLog.5: Likewise.
538 * ChangeLog.6: Likewise.
539 * FSFChangeLog.10: Likewise.
540 * FSFChangeLog.11: Likewise.
542 * basic-block.h: Likewise.
543 * c-aux-info.c: Likewise.
544 * c-common.c: Likewise.
545 * c-common.h: Likewise.
546 * c-decl.c: Likewise.
547 * c-format.c: Likewise.
548 * c-semantics.c: Likewise.
549 * c-typeck.c: Likewise.
551 * cfganal.c: Likewise.
552 * cfgloop.c: Likewise.
553 * collect2.c: Likewise.
554 * combine.c: Likewise.
555 * conflict.c: Likewise.
556 * cppexp.c: Likewise.
557 * cppfiles.c: Likewise.
558 * cpphash.h: Likewise.
559 * cppinit.c: Likewise.
560 * cpplex.c: Likewise.
561 * cpplib.c: Likewise.
562 * cpplib.h: Likewise.
563 * cppmacro.c: Likewise.
566 2002-09-21 Richard Earnshaw <rearnsha@arm.com>
568 * netbsd-aout.h (NETBSD_LINK_SPEC_AOUT): New, takes old definition of
570 (LINK_SPEC): Define to NETBSD_LINK_SPEC_AOUT.
571 * arm/netbsd.h (SUBTARGET_EXTRA_SEPCS): Add NETBSD_LINK_SPEC_AOUT.
572 (LINK_SPEC): Rework to use NETBSD_LINK_SPEC_AOUT).
574 2002-09-21 Richard Earnshaw <rearnsha@arm.com>
577 * cse.c (fold_rtx): Calculate old_cost before we fold each
580 2002-09-21 Richard Henderson <rth@redhat.com>
582 * c-common.c (cpp_define_data_format): Remove __GCC_LITTLE_ENDIAN__,
583 __GCC_BIG_ENDIAN__, __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
584 __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
585 __TARGET_USES_VAX_F_FLOAT__, __TARGET_USES_VAX_D_FLOAT__,
586 __TARGET_USES_VAX_G_FLOAT__, __TARGET_USES_VAX_H_FLOAT__.
587 * doc/cpp.texi: Don't document them.
589 2002-09-21 Richard Henderson <rth@redhat.com>
591 * c-common.c (builtin_define_float_constants): Use real_format
592 to get the floating-point parameters.
594 2002-09-21 Richard Henderson <rth@redhat.com>
596 * real.c (struct real_format): Move to real.h.
597 (real_format_for_mode): Rename from fmt_for_mode; update all users;
598 initialize with ieee defaults.
599 (real_to_target_fmt, real_from_target_fmt): New.
600 (ieee_single_format, ieee_double_format, ieee_extended_motorola_format,
601 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
602 ieee_quad_format, i370_single_format, i370_double_format,
603 c4x_single_format, c4x_extended_format): Rename from s/_format//.
604 (ieee_quad_format): Fix emin.
605 (format_for_size, init_real_once): Remove.
606 * real.h (struct real_format): Move from real.c.
607 (real_format_for_mode): Declare.
608 (real_to_target_fmt, real_from_target_fmt): Declare.
609 (ieee_single_format, ieee_double_format, ieee_extended_motorola_format,
610 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
611 ieee_quad_format, vax_f_format, vax_d_format, vax_g_format,
612 i370_single_format, i370_double_format, c4x_single_format,
613 c4x_extended_format): Declare.
614 * toplev.c (do_compile): Don't call init_real_once.
616 * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): Remove.
617 * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Remove.
619 * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Define.
620 * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): 64, if vax mode.
621 * config/alpha/alpha.c (override_options): Set real_format_for_mode
624 * config/c4x/c4x.c (c4x_override_options): Set real_format_for_mode
627 * config/i370/i370.h (OVERRIDE_OPTIONS): New.
628 * config/i370/i370.c (override_options): New.
629 * config/i370/i370-protos.h: Update.
631 * config/i386/i386.c (override_options): Set real_format_for_mode
632 for Intel 80-bit extended.
633 * config/i386/i386.h (INTEL_EXTENDED_IEEE_FORMAT): Remove.
635 * config/i960/i960.h (LONG_DOUBLE_TYPE_SIZE): Mind -mlong-double-64.
636 (OVERRIDE_OPTIONS): Move code...
637 * config/i960/i960.c (i960_initialize): ... here. Set
638 real_format_for_mode for Intel 80-bit extended.
640 * config/ia64/ia64.c (ia64_override_options): Set real_format_for_mode
641 for Intel 80-bit extended, if enabled.
643 * config/m68k/m68k.c (override_options): Set real_format_for_mode
644 for Motorola 96-bit extended.
646 * config/vax/vax.h (OVERRIDE_OPTIONS): New.
647 * config/vax/vax.c (override_options): New.
648 * config/vax/vax-protos.h: Update.
650 2002-09-21 Alan Modra <amodra@bigpond.net.au>
652 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Add
655 * config/rs6000/rs6000.md (floatdisf2_internal2): Combine
656 insns. Supply missing clobber of scratch reg.
658 2002-09-20 Kazu Hirata <kazu@cs.umass.edu>
660 * config/m32r/m32r.c: Follow spelling conventions.
661 * config/m32r/m32r.h: Likewise.
662 * config/m32r/m32r.md: Likewise.
663 * config/m68k/m68k.c: Likewise.
664 * config/m88k/m88k.c: Likewise.
665 * config/mcore/mcore.c: Likewise.
666 * config/mips/mips.c: Likewise.
667 * config/mips/mips.h: Likewise.
668 * config/mmix/mmix.c: Likewise.
669 * config/mn10200/mn10200.c: Likewise.
670 * config/ns32k/ns32k.h: Likewise.
671 * config/pa/pa.c: Likewise.
672 * config/pa/pa64-linux.h: Likewise.
673 * config/pdp11/pdp11.h: Likewise.
674 * config/romp/romp.c: Likewise.
675 * config/romp/romp.h: Likewise.
676 * config/rs6000/eabi.asm: Likewise.
677 * config/rs6000/linux64.h: Likewise.
678 * config/rs6000/rs6000.c: Likewise.
679 * config/rs6000/rs6000.h: Likewise.
680 * config/rs6000/rs6000.md: Likewise.
681 * config/rs6000/sysv4.h: Likewise.
682 * config/rs6000/xcoff.h: Likewise.
684 2002-09-20 Jim Wilson <wilson@redhat.com>
686 * config/v850/v850/lib1funcs.asm (__muldi3): Change r5 to r28.
688 2002-09-20 Jakub Jelinek <jakub@redhat.com>
690 * config/i386/i386.md (UNSPEC_GOTNTPOFF, UNSPEC_INDNTPOFF): New.
691 * config/i386/i386.c (legitimate_pic_address_disp_p): Handle
692 UNSPEC_GOTNTPOFF and UNSPEC_INDNTPOFF like UNSPEC_GOTTPOFF.
693 (legitimate_address_p): Likewise.
694 (legitimize_address): Use @gotntpoff and @indntpoff.
695 (output_pic_addr_const): Handle UNSPEC_GOTNTPOFF and UNSPEC_INDNTPOFF.
696 (output_addr_const_extra): Likewise.
698 2002-09-20 Jim Wilson <wilson@redhat.com>
700 * combine.c (try_combine): When split an instruction pair, where the
701 first has a sign_extend src, verify that the src and dest modes match.
703 2002-09-20 Richard Henderson <rth@redhat.com>
705 * config/mips/mips.c (dfhigh, dflow, sfhigh, sflow): Remove.
706 (override_options): Do not initialize them.
707 (mips_const_double_ok): Allow no fp constants except zero,
708 and not even that for mips16.
709 (const_float_1_operand): Use dconst1.
710 * config/mips/mips.md (movsf, movsf_internal1, movsf_internal2,
711 movdf, movdf_internal1, movdf_internal1a, movdf_internal2):
712 Don't allow arbitrary constants; fix predicates and C constraint.
714 2002-09-20 Neil Booth <neil@daikokuya.co.uk>
716 * cppmacro.c: Don't warn about function-like macros without
717 '(' during pre-expansion.
719 2002-09-20 Jim Wilson <wilson@redhat.com>
721 * config/v850/v850.c (current_function_anonymous_args): Delete.
722 (expand_prologue): Use current_function_args_info.anonymous_args.
723 (expand_epilogue): Delete use of current_function_anonymous_args.
724 * config/v850/v850.h (struct cum_arg): Add anonymous_args field.
725 (INIT_CUMULATIVE_ARGS): Clear anonymous_args field.
726 (current_function_anonymous_args): Delete extern declaration.
727 (SETUP_INCOMING_VARARGS): Set anonymous_args field.
729 2002-09-20 Geoffrey Keating <geoffk@apple.com>
731 * config/rs6000/rs6000.c (rs6000_emit_prologue): Update for change
732 to load_macho_picbase.
733 * config/rs6000/rs6000.md: Document Darwin-specific unspec IDs.
734 (load_macho_picbase): Take the symbol to use as a parameter.
735 (macho_correct_pic): New insn.
736 (builtin_setjmp_reciever): On Darwin, restore the PIC register.
738 * config/rs6000/rs6000.h (ELIMINABLE_REGS): Use
739 RS6000_PIC_OFFSET_TABLE_REGNUM rather than hardcoding 30.
740 (CAN_ELIMINATE): Likewise.
741 (INITIAL_ELIMINATION_OFFSET): Likewise.
742 (TOC_REGISTER): Likewise.
744 2002-09-20 Richard Henderson <rth@redhat.com>
746 * real.c (real_hash): New.
747 * real.h: Declare it.
748 * cse.c (canon_hash): Use it.
749 * cselib.c (hash_rtx): Likewise.
750 * emit-rtl.c (const_double_htab_hash): Likewise.
751 * rtl.h (CONST_DOUBLE_REAL_VALUE): New.
752 * varasm.c (struct rtx_const): Reduce vector size; separate
753 integer and fp vectors.
755 (const_hash_1): Rename from const_hash. Use real_hash. Do not
756 take modulus MAX_HASH_TABLE.
757 (const_hash): New. Do take modulus MAX_HASH_TABLE.
758 (output_constant_def): Do not take modulus MAX_HASH_TABLE.
759 (SYMHASH): Don't use HASHBITS.
760 (decode_rtx_const): Copy only active bits from REAL_VALUE_TYPE.
761 Fix CONST_VECTOR thinko wrt fp vectors. Fix kind comparison.
762 (simplify_subtraction): Fix kind comparison.
763 (const_hash_rtx): Return unsigned int. Don't use HASHBITS.
764 Use a union to pun integer array.
765 * config/rs6000/rs6000.c (rs6000_hash_constant): Use real_hash;
766 only hash two words of integral CONST_DOUBLE.
768 2002-09-20 Steve Ellcey <sje@cup.hp.com>
770 * config/ia64/hpux.h (STARTFILE_SPEC): Modify.
771 (STARTFILE_PREFIX_SPEC): New.
776 2002-09-20 Jakub Jelinek <jakub@redhat.com>
778 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
779 UNSPEC_NTPOFF and UNSPEC_DTPOFF to be offsetted by constant.
781 2002-09-20 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
783 * config/arm/arm.md (sign_extract_onebit, not_signextract_onebit):
784 Add clobber of the condition code register.
786 2002-09-20 Richard Henderson <rth@redhat.com>
788 * real.c (do_fix_trunc): Static.
789 (encode_ieee_single, encode_ieee_double, encode_ieee_extended,
790 encode_ieee_quad, encode_vax_f, encode_vax_d, encode_vax_g,
791 encode_i370_single, encode_i370_double, encode_c4x_single,
792 encode_c4x_extended): Add default abort case.
794 2002-09-20 Richard Henderson <rth@redhat.com>
796 * real.h (enum real_value_class, SIGNIFICAND_BITS, EXP_BITS,
797 MAX_EXP, SIGSZ, SIG_MSB, struct real_value): Move from real.c.
798 (struct realvaluetype): Remove.
799 (REAL_VALUE_TYPE): Use struct real_value.
800 (REAL_VALUE_TYPE_SIZE): Use SIGNIFICAND_BITS.
801 (test_real_width): New.
802 * real.c: Global replace struct real_value with REAL_VALUE_TYPE.
803 (real_arithmetic): Avoid hoops for REAL_VALUE_TYPE parameters.
804 (real_compare, real_exponent, real_ldexp, real_isinf, real_isnan,
805 real_isneg, real_isnegzero, real_identical, exact_real_inverse,
806 real_to_integer, real_to_integer2, real_to_decimal,
807 real_to_hexadecimal, real_from_string, real_from_integer,
808 real_inf, real_nan, real_2expN, real_convert, real_to_target,
809 real_from_target): Likewise.
810 * tree.h (struct tree_real_cst): Use real_value not realvaluetype.
811 * gengtype-yacc.y (bitfieldopt): Accept an ID as well.
813 2002-09-20 Richard Henderson <rth@redhat.com>
815 * real.h (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT,
816 IBM_FLOAT_FORMAT, C4X_FLOAT_FORMAT, TARGET_FLOAT_FORMAT): Move ...
817 * defaults.h: ... here.
818 * config/arm/arm.h, config/avr/avr.h, config/d30v/d30v.h,
819 config/fr30/fr30.h, config/frv/frv.h, config/ia64/ia64.h,
820 config/ip2k/ip2k.h, config/mips/mips.h, config/stormy16/stormy16.h,
821 config/xtensa/xtensa.h (TARGET_FLOAT_FORMAT): Remove.
823 2002-09-20 Hans-Peter Nilsson <hp@bitrange.com>
825 * config/mmix/mmix.md ("negdf2"): Rewrite.
826 ("*expanded_negdf2"): New.
828 2002-09-19 Jim Wilson <wilson@redhat.com>
830 * combine.c (simplify_set): When optimizing a subreg src with a
831 cc0 dest, use GET_MODE (src) for mask instead of inner_mode.
833 2002-09-19 Dale Johannesen <dalej@apple.com>
834 * combine.c (make_extraction): Don't create
837 2002-09-19 Ulrich Weigand <uweigand@de.ibm.com>
839 * config/s390/s390.c (addr_generation_dependency_p): Handle SUBREG
840 and STRICT_LOW_PART within SET_DEST.
841 * config/s390/s390.md ("*extractqi", "*extracthi"): New insns with
842 splitters, replacing pre-reload splitters.
843 ("*zero_extendhisi2_31", "*zero_extendqisi2_31",
844 "*zero_extendqihi2_31"): New insns.
845 ("*zero_extendqihi2_64"): Do not clobber CC.
847 2002-09-19 Steve Ellcey <sje@cup.hp.com>
849 * config/ia64/hpux.h (CTORS_SECTION_ASM_OP): New.
850 (DTORS_SECTION_ASM_OP): Ditto.
851 (READONLY_DATA_SECTION_ASM_OP): Moved.
852 (DATA_SECTION_ASM_OP): New.
853 (SDATA_SECTION_ASM_OP): New.
854 (BSS_SECTION_ASM_OP): New.
855 (SBSS_SECTION_ASM_OP): New.
856 (TEXT_SECTION_ASM_OP): New.
858 2002-09-19 Kazu Hirata <kazu@cs.umass.edu>
860 * config/fp-bit.c: Follow spelling conventions.
861 * config/d30v/d30v.c: Likewise.
862 * config/d30v/d30v.h: Likewise.
863 * config/fr30/fr30.c: Likewise.
864 * config/fr30/fr30.h: Likewise.
865 * config/fr30/fr30.md: Likewise.
866 * config/frv/frv.c: Likewise.
867 * config/frv/frv.h: Likewise.
868 * config/h8300/h8300.c: Likewise.
869 * config/h8300/lib1funcs.asm: Likewise.
870 * config/i370/i370.c: Likewise.
871 * config/i386/i386.h: Likewise.
872 * config/i386/i386.md: Likewise.
873 * config/i386/pentium.md: Likewise.
874 * config/i386/winnt.c: Likewise.
875 * config/i960/i960.c: Likewise.
876 * config/ia64/ia64.h: Likewise.
877 * config/ip2k/ip2k.c: Likewise.
878 * config/ip2k/ip2k.h: Likewise.
879 * config/ip2k/ip2k.md: Likewise.
880 * config/ip2k/libgcc.S: Likewise.
882 2002-09-19 Stephen Clarke <stephen.clarke@superh.com>
884 * config/sh/sh.h (UNSPEC_GOTOFF_P): Define.
885 (GOTOFF_P): Extend to allow gotoff plus constant.
887 2002-09-18 Richard Henderson <rth@redhat.com>
889 * ifcvt.c (noce_process_if_block): Correctly detect X modified
890 with INSN_B before COND_EARLIEST. Don't check A and B for
891 modification in condition range. Reorder INSN_B for A==B properly.
892 (if_convert): Iterate until no matches for a block.
894 2002-09-18 Richard Henderson <rth@redhat.com>
896 * calls.c (store_one_arg): Rename default_align to parm_align;
897 always adjust parm_align for downward padding.
899 2002-09-18 Richard Henderson <rth@redhat.com>
901 * toplev.c (backend_init): Move init_real_once invocation ...
902 (do_compile): ... here.
904 2002-09-18 Richard Henderson <rth@redhat.com>
906 * sibcall.c (optimize_sibling_and_tail_recursive_call): Also remove
907 RTX_UNCHANGING_P markers for successful tail-recursive replacement.
909 2002-09-18 Richard Henderson <rth@redhat.com>
911 * real.c (round_for_format): Collect sticky as unsigned long, not bool.
913 2002-09-19 Alan Modra <amodra@bigpond.net.au>
915 * config/rs6000/rs6000.md: (floatdisf2): Rename to
916 floatdisf2_internal1.
917 (floatdisf2): New define_expand.
918 (floatdisf2_internal2): Likewise.
920 2002-09-18 Richard Henderson <rth@redhat.com>
922 * real.c (sticky_rshift_significand): Collect sticky as
923 unsigned long, not bool.
925 2002-09-18 Ulrich Weigand <uweigand@de.ibm.com>
927 * config/s390/s390.c (s390_address_cost): New function.
928 config/s390/s390-protos.h (s390_address_cost): Add prototype.
929 config/s390/s390.h (ADDRESS_COST): Call s390_address_cost.
930 (RTX_COST): Use COSTS_N_INSNS.
932 2002-09-18 Douglas Rupp <rupp@gnat.com>
933 Donn Terry <donnte@microsoft.com>
935 * stor-layout.c (place_field): Handle alignment of whole
936 structures when MSVC compatible bitfields are involved.
937 Change method of computing location of MS bitfields to
938 be compatible with #pragma pack(n).
940 * tree.h (record_layout_info): Add new field
941 remaining_in_alignment.
943 * doc/tm.texi: (TARGET_MS_BITFIELD_LAYOUT_P): Update.
944 (pragma pack): Add paragraph on MSVC bit-field packing.
946 2002-09-18 Richard Earnshaw (reanrsha@arm.com)
949 * arm.md (ne_zeroextractsi): Add clobber of the condition code
952 2002-09-18 Kazu Hirata <kazu@cs.umass.edu>
954 * config/s390/s390.c: Follow spelling conventions.
955 * config/sh/lib1funcs.asm: Likewise.
956 * config/sh/sh.c: Likewise.
957 * config/sh/sh.h: Likewise.
958 * config/sparc/sparc.c: Likewise.
959 * config/sparc/sparc.h: Likewise.
960 * config/sparc/sparc.md: Likewise.
961 * config/stormy16/stormy16.c: Likewise.
962 * config/stormy16/stormy16.h: Likewise.
963 * config/v850/v850.c: Likewise.
964 * config/v850/v850.h: Likewise.
965 * config/vax/vax.c: Likewise.
966 * config/vax/vax.h: Likewise.
968 2002-09-18 Nick Clifton <nickc@redhat.com>
970 * config/rs60000/rs6000.c (rs6000_emit_move): Handle V1DImode moves.
971 * config/rs60000/rs6000.c (SPE_VECTOR_MODE): Include V1DImode.
972 * config/rs6000/spe.md (movv1di, movv1di_internal): New patterns.
974 2002-09-17 Zack Weinberg <zack@codesourcery.com>
976 * ABOUT-GCC-NLS: Remove reference to enquire, and out-of-date
977 statement that the only translation is to en_UK.
979 2002-09-17 Kazu Hirata <kazu@cs.umass.edu>
981 * config/alpha/alpha.c: Follow spelling conventions.
982 * config/alpha/alpha.h: Likewise.
983 * config/alpha/alpha.md: Likewise.
984 * config/arc/arc.h: Likewise.
985 * config/arm/arm.c: Likewise.
986 * config/arm/arm.h: Likewise.
987 * config/arm/arm.md: Likewise.
988 * config/arm/pe.c: Likewise.
989 * config/arm/unknown-elf.h: Likewise.
990 * config/avr/avr.c: Likewise.
991 * config/avr/avr.h: Likewise.
992 * config/c4x/c4x.c: Likewise.
993 * config/cris/cris.c: Likewise.
994 * config/cris/cris.h: Likewise.
996 2002-09-17 Samuel Figueroa <figueroa@apple.com>
998 * final.c (final_scan_insn): Use new macro ASM_OUTPUT_ALIGN_WITH_NOP.
999 * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP) New macro.
1000 * doc/tm.texi (ASM_OUTPUT_ALIGN_WITH_NOP) New description.
1002 2002-09-17 Dale Johannesen <dalej@apple.com>
1004 * cfgcleanup.c (try_forward_edges): Do not forward a
1005 branch to just after a loop exit before loop optimization;
1006 this interfered with doloop detection.
1008 2002-09-17 Nick Clifton <nickc@redhat.com>
1010 * config/arm/arm.c (output_return_instruction): Do not
1011 writeback the stack pointer when it is being loaded.
1012 (arm_output_epilogue): Likewise.
1014 2002-09-17 Kazu Hirata <kazu@cs.umass.edu>
1016 * optabs.c (prepare_cmp_insn): Let emit_library_call_value
1017 generate a pseudo reg that receives the result of a libcall.
1018 (prepare_float_lib_cmp): Likewise.
1020 2002-09-17 Steve Ellcey <sje@cup.hp.com>
1022 * config/ia64/elf.h: Remove CPP_PREDEFINES.
1024 Tue Sep 17 13:58:04 2002 Nicola Pero <n.pero@mi.flashnet.it>
1026 Fix PR/7014 and related objc bugs:
1027 * c-typeck.c (comp_target_types): Added a reflexive argument.
1028 Pass it to ObjC when/if calling objc_comptypes(). Updated all
1029 callers to provide the appropriate reflexive argument.
1030 * objc/objc-act.c (objc_comptypes): Carefully checked and fixed
1031 typechecking for all cases of comparisons and assignments,
1032 particularly the obscure and less common ones involving protocols.
1034 2002-09-17 Nick Clifton <nickc@redhat.com>
1036 * machmode.def (V1DImode): New mode. A single element vector.
1037 * tree.h (TI_UV1DI_TYPE, TI_V1DI_TYPE): New tree_index enums.
1038 (unsigned_V1DI_type_node, V1D1_type_node): New type nodes.
1039 * tree.c (build_common_tree_nodes_2): Build
1040 unsigned_V1DI_type_node and V1D1_type_node.
1041 * c-common.c (c_common_type_for_mode): Return
1042 unsigned_V1DI_type_node or V1D1_type_node for V1DImode.
1043 * rtl.c (class_narrowest_): Start integer vector nodes with V1DImode.
1045 Tue Sep 17 13:40:13 2002 Nicola Pero <n.pero@mi.flashnet.it>
1047 * doc/objc.texi (Constant string objects): Extended documentation
1048 to make clear that the constant string class ivar layout is
1051 2002-09-17 Roger Sayle <roger@eyesopen.com>
1053 * cfgrtl.c (flow_delete_block_noexpunge): Delete orphaned
1054 NOTE_INSN_LOOP_CONT notes when deleting basic blocks.
1056 2002-09-16 Richard Henderson <rth@redhat.com>
1058 * expr.c (emit_block_move): Set memory block size as appropriate
1061 2002-09-16 Richard Henderson <rth@redhat.com>
1064 * sdbout.c (sdbout_symbol): Don't handle offsets from a symbol.
1066 2002-09-16 Richard Henderson <rth@redhat.com>
1068 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust SIZE
1069 as well as OFFSET for BITPOS.
1071 2002-09-16 Jeff Garzik <jgarzik@mandrakesoft.com>
1073 * config.gcc: Treat winchip_c6-*|winchip2-*|c3-* as pentium-mmx.
1074 * config/i386/i386.c (processor_alias_table): Add winchip-c6,
1076 * doc/invoke.texi: Mention new aliases.
1078 2002-09-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
1080 * calls.c (store_one_arg): Set default alignment for BLKmode arguments
1081 to BITS_PER_UNIT when ARGS_GROW_DOWNWARD and the padding direction is
1083 * function.c (pad_below): Always compile.
1084 (locate_and_pad_parm): If defined ARGS_GROW_DOWNWARD, pad argument to
1085 alignment when it is not in a register or REG_PARM_STACK_SPACE is true.
1086 Pad below when the argument is not in a register and the padding
1087 direction is downward.
1089 * pa-64.h (MUST_PASS_IN_STACK): Move define to pa.h.
1090 (PAD_VARARGS_DOWN): Define.
1091 * pa.c (function_arg_padding): Revise padding directions to make them
1092 compatible with the 32 and 64-bit runtime architecture documentation.
1093 (hppa_va_arg): Add code to handle variable and size zero arguments
1094 passed by reference on TARGET_64BIT. Reformat.
1095 (function_arg): Use a PARALLEL for BLKmode and aggregates args on
1096 TARGET_64BIT. Use a DImode PARALLEL for BLKmode args 5 to 8 bytes
1097 wide when !TARGET_64BIT. Move forward check for mode==VOIDmode.
1099 * pa.h (MAX_PARM_BOUNDARY): Correct define for TARGET_64BIT.
1100 (RETURN_IN_MEMORY): Return size zero types in memory.
1101 (FUNCTION_VALUE): Return TFmode in general registers.
1102 (MUST_PASS_IN_STACK): Define.
1103 (FUNCTION_ARG_BOUNDARY): Simplify.
1104 (FUNCTION_ARG_PASS_BY_REFERENCE): Pass variable and zero sized types
1106 (FUNCTION_ARG_CALLEE_COPIES): Define to FUNCTION_ARG_PASS_BY_REFERENCE.
1108 2002-09-16 Richard Henderson <rth@redhat.com>
1110 * real.c (do_fix_trunc): New.
1111 (real_arithmetic): Call it.
1112 * simplify-rtx.c (simplify_unary_operation): Handle FIX
1113 with a floating-point result mode.
1115 2002-09-16 Richard Henderson <rth@redhat.com>
1117 * builtin-types.def (BT_FN_FLOAT_CONST_STRING): New.
1118 (BT_FN_DOUBLE_CONST_STRING, BT_FN_LONG_DOUBLE_CONST_STRING): New.
1119 * builtins.def (__builtin_nan, __builtin_nanf, __builtin_nanl): New.
1120 (__builtin_nans, __builtin_nansf, __builtin_nansl): New.
1121 * builtins.c (fold_builtin_nan): New.
1122 (fold_builtin): Call it.
1123 * real.c (real_nan): Parse a non-empty string.
1124 (round_for_format): Fix NaN significand truncation.
1125 * real.h (real_nan): Return bool.
1126 * doc/extend.texi: Document new builtins.
1128 2002-09-16 Jason Merrill <jason@redhat.com>
1129 Danny Smith <dannysmith@users.sourceforge.net>
1131 * config/i386/winnt.c (ix86_handle_dll_attribute): Set
1132 DECL_EXTERN and TREE_PUBLIC for dllimported variables here...
1133 (i386_pe_mark_dllimport): Not here.
1135 2002-09-16 Nathan Sidwell <nathan@codesourcery.com>
1137 * c-semantics.c (genrtl_do_stmt): Cope with NULL cond.
1139 2002-09-16 Geoffrey Keating <geoffk@redhat.com>
1141 * config/rs6000/rs6000.c (build_mask64_2_operands): Suppress
1142 warnings about unused operands when HOST_BITS_PER_WIDE_INT is
1144 (rs6000_emit_cmove): Use real_isinf not target_isinf.
1146 2002-09-16 Kazu Hirata <kazu@cs.umass.edu>
1148 * calls.c (emit_library_call_value_1): Don't refer to
1150 * optabs.c (prepare_float_lib_cmp): Likewise.
1152 2002-09-16 Geoffrey Keating <geoffk@apple.com>
1154 * ggc-common.c (ggc_mark_rtx_children_1): Update for changed name
1157 The following changes are merged from pch-branch:
1159 * doc/gty.texi (GTY Options): Document %a.
1160 * gengtype.c (do_scalar_typedef): New function.
1161 (process_gc_options): Handle `length' option.
1162 (set_gc_used_type): A pointer to an array of structures doesn't
1163 qualify as a pointer to a structure.
1164 (output_escaped_param): Add `%a' escape.
1165 (write_gc_structure_fields): Allow 'desc' on array of unions.
1166 (main): Define `uint8', `jword' and `JCF_u2' as scalars; use
1169 * gengtype.c (enum rtx_code): Make global.
1170 (rtx_format): Make global.
1172 (gen_rtx_next): New.
1173 (write_rtx_next): New.
1174 (adjust_field_rtx_def): Skip fields marked by chain_next.
1175 (open_base_files): Delete redundant prototype.
1176 (write_enum_defn): New.
1177 (output_mangled_typename): Correct abort call.
1178 (write_gc_marker_routine_for_structure): Handle chain_next and
1180 (finish_root_table): Don't output redundant \n.
1181 (main): Call gen_rtx_next, write_rtx_next, write_enum_defn.
1182 * c-tree.h (union lang_tree_node): Add chain_next option.
1184 * gengtype.h (NUM_PARAM): New definition.
1185 (struct type): For TYPE_PARAM_STRUCT, allow multiple parameters.
1186 * gengtype.c (find_param_structure): New.
1187 (adjust_field_type): Handle param<n>_is option.
1188 (process_gc_options): Detect use_params option. Update callers.
1189 (set_gc_used_type): Add 'param' parameter, update callers. Handle
1190 'use_params' option.
1191 (open_base_files): Add splay-tree.h to list of files included.
1192 (output_mangled_typename): New.
1193 (write_gc_structure_fields): Update 'param' parameter to support
1194 multiple parameters. Change name mangling. Allow parameterized
1195 fields to have an apparent scalar type. Handle param<n>_is options,
1197 (write_gc_marker_routine_for_structure): Update for change to name
1198 mangling. Better guess the output file for parameterized types.
1199 (write_gc_types): Update for change to name mangling.
1200 (write_gc_root): Update for change to name mangling. Handle (ignore)
1201 param<n>_is options.
1202 * doc/gty.texi (GTY Options): Add description of param<n>_is
1203 options, use_params option.
1204 * ggc.h (ggc_mark_rtx): Update for changed name mangling.
1205 * gengtype-lex.l: Produce token for param<n>_is.
1206 * gengtype-yacc.y: Parse param<n>_is.
1208 * gengtype.c (adjust_field_tree_exp): Don't name a variable 'rindex'.
1210 * rtl.c: Update comment describing rtx_format.
1211 * rtl.h (union rtunion): Separate definition and typedef.
1212 (struct rtx_def): Use gengtype to mark.
1213 * Makefile.in (gengtype.o): Also depend on rtl.def.
1214 * ggc.h (ggc_mark_rtx_children): Delete prototype.
1215 (ggc_mark_rtx): Change to alias of gengtype-generated routine.
1216 * ggc-common.c (ggc_mark_rtx_children): Delete.
1217 (ggc_mark_rtx_children_1): Delete.
1218 (gt_ggc_m_rtx_def): Delete.
1219 * gengtype.c (adjust_field_rtx_def): New.
1220 (adjust_field_type): Call adjust_field_rtx_def.
1221 (write_gc_structure_fields): Add 'default' case to switch if none
1222 is specified; remove unused code.
1224 * tree.h (struct tree_exp): Update for change to meaning
1226 * gengtype.c (adjust_field_tree_exp): New function.
1227 (adjust_field_type): Handle `tree_exp' special here.
1228 (write_gc_structure_fields): Don't handle `tree_exp' special here.
1229 Handle new `dot' option.
1231 * gengtype.h: Make `info' a pointer-to-const.
1232 * gengtype-yacc.y (yacc_ids): Use xasprintf.
1234 * gengtype.c (write_gc_structure_fields): Remove implementation
1235 of `always' option, add `default' option.
1236 * doc/gty.texi (GTY Options): Remove documentation of `always',
1239 2002-09-16 Hans-Peter Nilsson <hp@bitrange.com>
1241 * output.h: Remove #ifdef RTX_CODE and #ifdef TREE_CODE.
1243 2002-09-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1245 * m68hc11.md (addhi_sp): Fix uninitialized variable bug.
1247 * c4x-c.c, c4x.c, darwin.c, i370-c.c, m32r.c: Include tm_p.h
1248 instead of the *-protos.h file directly.
1249 * t-c4x, t-i370, t-v850: Depend on $(TM_P_H).
1250 * darwin.c (machopic_output_stub): Move prototype ...
1251 * darwin-protos.h (machopic_output_stub): ... here.
1252 * rs6000-protos.h (machopic_output_stub): Don't declare.
1254 2002-09-16 Richard Henderson <rth@redhat.com>
1256 * c-common.c (builtin_define_float_constants): Emit __FOO_DENORM_MIN__.
1258 2002-09-16 Richard Henderson <rth@redhat.com>
1260 * real.c, real.h: Rewrite from scratch.
1262 * Makefile.in (simplify-rtx.o): Depend on TREE_H.
1263 (paranoia): New target.
1264 * builtins.c (fold_builtin_inf): Use new real.h interface.
1265 * c-common.c (builtin_define_with_hex_fp_value): Likewise.
1266 * c-lex.c (interpret_float): Likewise.
1267 * emit-rtl.c (gen_lowpart_common): Likewise.
1268 * optabs.c (expand_float): Use real_2expN.
1269 * config/ia64/ia64.md (divsi3, udivsi3): Likewise.
1270 * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): New.
1271 (FLOAT_WORDS_BIG_ENDIAN): New.
1272 * cse.c (find_comparison_args): Don't pass FLOAT_STORE_FLAG_VALUE
1273 directly to REAL_VALUE_NEGATIVE.
1274 * loop.c (canonicalize_condition): Likewise.
1275 * simplify-rtx.c: Include tree.h.
1276 (simplify_unary_operation): Don't handle FIX and UNSIGNED_FIX
1277 with floating-point result modes.
1278 * toplev.c (backend_init): Call init_real_once.
1280 * fold-const.c (force_fit_type): Don't call CHECK_FLOAT_VALUE.
1281 * tree.c (build_real): Likewise.
1282 * config/alpha/alpha.c, config/vax/vax.c (float_strings,
1283 float_values, inited_float_values, check_float_value): Remove.
1284 * config/alpha/alpha.h, config/m68hc11/m68hc11.h,
1285 config/m88k/m88k.h, config/vax/vax.h (CHECK_FLOAT_VALUE): Remove.
1286 * doc/tm.texi (CHECK_FLOAT_VALUE): Remove.
1287 (VAX_HALFWORD_ORDER): Remove.
1289 2002-09-16 Ulrich Weigand <uweigand@de.ibm.com>
1291 * config/s390/s390.c: (legitimize_la_operand): Remove, replace by ...
1292 (s390_load_address): ... this new function.
1293 (s390_decompose_address): Allow the argument pointer and all
1294 virtual registers as 'pointer' registers.
1295 (s390_expand_plus_operand): Use s390_load_address.
1296 config/s390/s390.md (movti, movdi, movdf splitters): Likewise.
1297 ("force_la_31"): New insn pattern.
1298 config/s390/s390-protos.h (legitimize_la_operand): Remove.
1299 (s390_load_address): Add prototype.
1301 * config/s390/s390.c: Include "optabs.h".
1302 (s390_expand_movstr, s390_expand_clrstr, s390_expand_cmpstr): New.
1303 config/s390/s390-protos.h (s390_expand_movstr, s390_expand_clrstr,
1304 s390_expand_cmpstr): Add prototypes.
1305 config/s390/s390.md ("movstrdi", "movstrsi"): Call s390_expand_movstr.
1306 ("movstrdi_short"): Rename to "movstr_short_64". Change predicates
1307 for operands 0 and 1 to "memory_operand". Add type attribute.
1308 ("movstrsi_short"): Rename to "movstr_short_31". Change predicates
1309 for operands 0 and 1 to "memory_operand". Add type attribute.
1310 ("movstrdi_long", "movstrsi_long"): Remove.
1311 ("movstrdi_64"): Rename to "movstr_long_64". Add type attribute.
1312 ("movstrsi_31"): Rename to "movstr_long_31". Add type attribute.
1313 ("clrstrdi", "clrstrsi"): Call s390_expand_clrstr.
1314 ("clrstrsico"): Remove, replace by ...
1315 ("clrstr_short_64", "clrstr_short_31"): ... these new patterns.
1316 ("clrstrsi_64"): Rename to "clrstr_long_64".
1317 ("clrstrsi_31"): Rename to "clrstr_long_31".
1318 ("cmpstrdi", "cmpstrsi"): Call s390_expand_cmpstr.
1319 ("cmpstr_const"): Remove, replace by ...
1320 ("cmpstr_short_64", "cmpstr_short_31"): ... these new patterns.
1321 ("cmpstr_64"): Rename to "cmpstr_long_64".
1322 ("cmpstr_31"): Rename to "cmpstr_long_31".
1324 2002-09-16 Kazu Hirata <kazu@cs.umass.edu>
1326 * ABOUT-NLS: Follow spelling conventions.
1327 * ChangeLog: Likewise.
1328 * ChangeLog.1: Likewise.
1329 * ChangeLog.2: Likewise.
1330 * ChangeLog.3: Likewise.
1331 * ChangeLog.4: Likewise.
1332 * ChangeLog.5: Likewise.
1333 * ChangeLog.6: Likewise.
1334 * FSFChangeLog.10: Likewise.
1335 * FSFChangeLog.11: Likewise.
1336 * c-common.c: Likewise.
1337 * c-lex.c: Likewise.
1338 * c-objc-common.c: Likewise.
1339 * cppexp.c: Likewise.
1340 * cppinit.c: Likewise.
1341 * cpplex.c: Likewise.
1342 * doloop.c: Likewise.
1344 * function.c: Likewise.
1345 * integrate.c: Likewise.
1347 * reg-stack.c: Likewise.
1348 * reload.h: Likewise.
1351 2002-09-15 Kazu Hirata <kazu@cs.umass.edu>
1353 * ChangeLog: Follow spelling conventions.
1354 * ChangeLog.0: Likewise.
1355 * ChangeLog.1: Likewise.
1356 * ChangeLog.2: Likewise.
1357 * ChangeLog.4: Likewise.
1358 * ChangeLog.6: Likewise.
1359 * config.gcc: Likewise.
1360 * dwarfout.c: Likewise.
1361 * reload1.c: Likewise.
1362 * simplify-rtx.c: Likewise.
1363 * unwind-sjlj.c: Likewise.
1364 * config/avr/avr.h: Likewise.
1365 * config/d30v/d30v.h: Likewise.
1366 * config/frv/frv.c: Likewise.
1367 * config/frv/frv.h: Likewise.
1368 * config/ip2k/ip2k.h: Likewise.
1369 * config/m88k/m88k-move.sh: Likewise.
1370 * config/stormy16/stormy16.c: Likewise.
1371 * config/stormy16/stormy16.h: Likewise.
1372 * doc/extend.texi: Likewise.
1373 * doc/interface.texi: Likewise.
1374 * doc/invoke.texi: Likewise.
1375 * doc/md.texi: Likewise.
1376 * doc/rtl.texi: Likewise.
1377 * doc/tm.texi: Likewise.
1378 * doc/trouble.texi: Likewise.
1379 * ginclude/float.h: Likewise.
1380 * treelang/treelang.texi: Likewise.
1382 2002-09-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1384 * i386-protos.h (i386_pe_dllexport_name_p,
1385 i386_pe_dllimport_name_p, i386_pe_unique_section,
1386 i386_pe_declare_function_type, i386_pe_record_external_function,
1387 i386_pe_record_exported_symbol, i386_pe_asm_file_end): Add
1389 * i386/t-cygwin (winnt.o): Depend on $(TM_P_H).
1390 * i386/t-interix (winnt.o): Likewise.
1392 * v850-protos.h (v850_output_addr_const_extra): Prototype.
1394 2002-09-15 Jason Thorpe <thorpej@wasabisystems.com>
1396 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Add
1397 MIPS ABI CPP macros.
1398 (TARGET_CPU_CPP_BUILTINS): Redefine.
1399 (SUBTARGET_EXTRA_SPECS): Remove subtarget_endian_default.
1400 (SUBTARGET_ENDIAN_DEFAULT_SPEC): Remove.
1402 2002-09-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1404 * ia64/aix.h (TARGET_OS_CPP_BUILTINS): Fix typo.
1406 2002-09-15 Kazu Hirata <kazu@cs.umass.edu>
1408 * ChangeLog: Follow spelling conventions.
1409 * ChangeLog.0: Likewise.
1410 * ChangeLog.1: Likewise.
1411 * ChangeLog.2: Likewise.
1412 * ChangeLog.3: Likewise.
1413 * ChangeLog.4: Likewise.
1414 * ChangeLog.5: Likewise.
1415 * ChangeLog.6: Likewise.
1416 * FSFChangeLog.10: Likewise.
1417 * FSFChangeLog.11: Likewise.
1418 * c-common.c: Likewise.
1419 * c-common.h: Likewise.
1420 * c-format.c: Likewise.
1421 * c-opts.c: Likewise.
1422 * cpplib.c: Likewise.
1423 * langhooks.h: Likewise.
1425 * reg-stack.c: Likewise.
1426 * toplev.c: Likewise.
1427 * config/arm/arm.c: Likewise.
1428 * config/arm/arm.md: Likewise.
1429 * config/arm/linux-gas.h: Likewise.
1430 * config/arm/netbsd.h: Likewise.
1431 * config/c4x/c4x.c: Likewise.
1432 * config/c4x/c4x.h: Likewise.
1433 * config/c4x/c4x.md: Likewise.
1434 * config/c4x/libgcc.S: Likewise.
1435 * config/fr30/fr30.md: Likewise.
1436 * config/frv/frv.md: Likewise.
1437 * config/ia64/ia64.md: Likewise.
1438 * config/mips/mips.h: Likewise.
1439 * config/mn10300/mn10300.c: Likewise.
1440 * config/stormy16/stormy16.c: Likewise.
1441 * config/v850/v850.md: Likewise.
1442 * doc/extend.texi: Likewise.
1443 * doc/invoke.texi: Likewise.
1444 * doc/md.texi: Likewise.
1446 2002-09-15 Jason Thorpe <thorpej@wasabisystems.com>
1448 * config/netbsd.h (LIB_SPEC): Include the appropriate pthread
1449 library if -pthread is specified.
1451 2002-09-15 Jason Thorpe <thorpej@wasabisystems.com>
1453 * config.gcc (*-*-netbsd*): Set thread_file to 'posix'
1454 for --enable-threads=yes and --enable-threads=posix.
1456 2002-09-15 Kazu Hirata <kazu@cs.umass.edu>
1458 * config/sparc/cypress.md: Replace Sparc with SPARC.
1459 * config/sparc/freebsd.h: Likewise.
1460 * config/sparc/gmon-sol2.c: Likewise.
1461 * config/sparc/hypersparc.md: Likewise.
1462 * config/sparc/lb1spc.asm: Likewise.
1463 * config/sparc/lb1spl.asm: Likewise.
1464 * config/sparc/linux.h: Likewise.
1465 * config/sparc/linux64.h: Likewise.
1466 * config/sparc/lynx.h: Likewise.
1467 * config/sparc/sol2.h: Likewise.
1468 * config/sparc/sparc-modes.def: Likewise.
1469 * config/sparc/sparc.c: Likewise.
1470 * config/sparc/sparc.h: Likewise.
1471 * config/sparc/sparc.md: Likewise.
1472 * config/sparc/sparclet.md: Likewise.
1473 * config/sparc/supersparc.md: Likewise.
1474 * config/sparc/sysv4.h: Likewise.
1475 * config/sparc/vxsim.h: Likewise.
1476 * config/sparc/vxsparc64.h: Likewise.
1478 2002-09-14 Marek Michalkiewicz <marekm@amelek.gda.pl>
1480 * config/avr/avr.c (output.h): Move after inclusion of tree.h.
1482 2002-09-14 Kazu Hirata <kazu@cs.umass.edu>
1484 * ChangeLog: Follow spelling conventions.
1485 * ChangeLog.0: Likewise.
1486 * ChangeLog.2: Likewise.
1487 * ChangeLog.3: Likewise.
1488 * ChangeLog.4: Likewise.
1489 * ChangeLog.5: Likewise.
1490 * ChangeLog.6: Likewise.
1491 * cppfiles.c: Likewise.
1492 * cppinit.c: Likewise.
1493 * cpplib.h: Likewise.
1495 * debug.h: Likewise.
1497 * dominance.c: Likewise.
1498 * hashtable.c: Likewise.
1499 * hashtable.h: Likewise.
1501 * config/arm/README-interworking: Likewise.
1502 * config/arm/arm.c: Likewise.
1503 * config/arm/arm.h: Likewise.
1504 * config/arm/arm.md: Likewise.
1505 * config/dsp16xx/dsp16xx.h: Likewise.
1506 * config/frv/frv.c: Likewise.
1507 * config/frv/frv.h: Likewise.
1508 * config/ip2k/ip2k.h: Likewise.
1509 * config/rs6000/rs6000.c: Likewise.
1510 * config/stormy16/stormy-abi: Likewise.
1511 * config/stormy16/stormy16.h: Likewise.
1512 * config/v850/v850.c: Likewise.
1514 2002-09-14 Kazu Hirata <kazu@cs.umass.edu>
1516 * loop.c: Fix a comment typo.
1518 2002-09-14 Kazu Hirata <kazu@cs.umass.edu>
1520 * config/fr30/fr30.h: Fix comment typos.
1521 * config/frv/frv.c: Likewise.
1522 * config/i386/xmmintrin.h: Likewise.
1523 * config/mips/mips.c: Likewise.
1524 * config/sh/sh.c: Likewise.
1526 2002-09-14 Kazu Hirata <kazu@cs.umass.edu>
1528 * haifa-sched.c: Follow spelling conventions.
1529 * regclass.c: Likewise.
1530 * regrename.c: Likewise.
1531 * config/fp-bit.c: Likewise.
1532 * config/frv/frv.h: Likewise.
1533 * config/m88k/m88k.c: Likewise.
1534 * config/mcore/mcore.c: Likewise.
1535 * config/rs6000/darwin.h: Likewise.
1536 * config/rs6000/gnu.h: Likewise.
1537 * config/rs6000/linux.h: Likewise.
1538 * config/rs6000/linux64.h: Likewise.
1539 * config/rs6000/rs6000.c: Likewise.
1540 * config/rs6000/rs6000.h: Likewise.
1541 * config/sh/sh.c: Likewise.
1542 * config/sparc/sparc.c: Likewise.
1543 * config/sparc/ultra1_2.md: Likewise.
1545 2002-09-14 Stephane Carrez <stcarrez@nerim.fr>
1547 * config/m68hc11/m68hc11.md ("movdi_internal"): Allow any offsetable
1548 memory operand when source is 0 (K constraint).
1549 ("movsi_internal"): Likewise.
1550 ("movdf_internal"): Likewise.
1551 ("movsf_internal"): Likewise.
1553 2002-09-14 Alan Modra <amodra@bigpond.net.au>
1555 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Use
1556 targetm.binds_local_p to set SYMBOL_REF_FLAG.
1557 (rs6000_xcoff_encode_section_info): Likewise.
1558 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1560 2002-09-10 Theodore A. Roth <troth@verinet.com>
1562 * gcc/config/avr/avr.h: Set default options for C++ for avr.
1564 2002-09-13 Richard Henderson <rth@redhat.com>
1566 * Makefile.in (toplev.o): Depend on real.h.
1567 (print-rtl.o, varasm.o, ifcvt.o): Likewise.
1569 2002-09-14 Alan Modra <amodra@bigpond.net.au>
1571 * doc/tm.texi (DBX_OUTPUT_NFUN): Describe.
1572 * dbxout.c (dbxout_function_end): Use DBX_OUTPUT_NFUN.
1573 * config/rs6000/linux64.h (DBX_OUTPUT_NFUN): Define.
1575 2002-09-13 Nathan Sidwell <nathan@codesourcery.com>
1577 * ggc-common.c (ggc_mark_roots): Don't iterate NULL hash tables.
1579 2002-09-13 Steve Ellcey <sje@cup.hp.com>
1581 * config.gcc (ia64*-*-aix*, ia64*-*-elf*, ia64*-*-freebsd*,
1582 ia64*-*-linux*): Set extra_parts.
1583 * config/ia64/t-aix (EXTRA_PARTS): Remove.
1584 * config/ia64/t-ia64 (EXTRA_PARTS): Remove.
1586 2002-09-13 Kazu Hirata <kazu@cs.umass.edu>
1588 * config/h8300/fixunssfsi.c: Replace H8/S with H8S.
1589 * config/h8300/h8300.c: Likewise.
1590 * config/h8300/h8300.h: Likewise.
1591 * config/h8300/h8300.md: Likewise.
1592 * doc/invoke.texi: Likewise.
1594 2002-09-13 Kazu Hirata <kazu@cs.umass.edu>
1596 * config/h8300/h8300.c (h8300_init_once): Fix formatting.
1598 2002-09-13 Matt Austern <austern@apple.com>
1600 * cp/cp-tree.h, cp/tree.c: New function non_cast_lvalue_p.
1601 * cp/call.c: Change call-by-const-reference mechanism to use
1602 non_cast_lvalue_p when deciding whether the create a temporary.
1603 We need a temporary when passing, e.g. (long) x by const ref.
1604 * testsuite/g++.dg/other/constref[12].C: New, regression tests for
1605 passing a cast expression to a function by const reference.
1607 2002-09-13 Richard Henderson <rth@redhat.com>
1609 * config/alpha/alpha.md (attr type): Add callpal.
1610 (imb, trap, load_tp, set_tp): Use it.
1611 * config/alpha/ev4.md (ev4_callpal): New.
1612 * config/alpha/ev5.md (ev5_callpal): New.
1613 * config/alpha/ev6.md (ev6_ibr): Handle callpal.
1614 * config/alpha/alpha.c (alphaev4_insn_pipe): Handle TYPE_CALLPAL.
1615 (alphaev5_insn_pipe): Likewise.
1617 2002-09-13 Andreas Jaeger <aj@suse.de>
1619 * Makefile.in (print-rtl.o): Depend on CONFIG_H.
1621 2002-09-13 Steve Ellcey <sje@cup.hp.com>
1623 * config/ia64/t-hpux (LIBGCC1_TEST, STMP_FIXPROTO,
1624 LIB2ADDEH): New, set to NULL.
1625 (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL, SHLIB_MKMAP): New.
1627 2002-09-13 Steve Ellcey <sje@cup.hp.com>
1629 * config/ia64/quadlib.c (_U_Qfcmp): Make extern.
1630 (_U_Qfcnvfxt_quad_to_sgl): Remove declaration.
1631 (_U_Qfeq, _U_Qfne, _U_Qfgt, _U_Qfge, U_Qflt, U_Qfle, _U_Qfcomp):
1635 2002-09-13 Dhananjay Deshpande <dhananjayd@kpit.com>
1637 * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Add support
1638 for H8/300, H8S aa:8 mode.
1639 (TINY_CONSTANT_ADDRESS_P): Add support for H8S aa:16 mode.
1640 * config/h8300/h8300.c (h8300_adjust_insn_length): Adjust length
1641 for H8/300 aa:8 mode.
1643 2002-09-13 Hartmut Penner <hpenner@de.ibm.com>
1645 * config/s390/s390.md ("trap", "conditional_trap", "*trap"): New
1648 2002-09-12 Richard Henderson <rth@redhat.com>
1650 * Makefile.in (HOST_PRINT): Use print-rtl1.o
1651 (print-rtl.o): Don't define GENERATOR_FILE.
1652 (print-rtl1.o): Rename from $(BUILD_PREFIX_1)print-rtl.o.
1653 * print-rtl.c (print_rtx): Include CONST_DOUBLE fp decimal output
1654 unless GENERATOR_FILE.
1656 2002-09-12 Stan Shebs <shebs@apple.com>
1658 * config/darwin.h (USER_LABEL_PREFIX): Define here...
1659 * config/i386/darwin.h: ... instead of here.
1661 * target.h (struct gcc_target): New field
1662 terminate_dw2_eh_frame_info.
1663 * target-def.h (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
1664 (TARGET_INITIALIZER): Add it.
1665 * dwarf2out.c (output_call_frame_info): Use target hook.
1666 * dwarf2asm.c (dw2_asm_output_delta): Use macro
1667 ASM_OUTPUT_DWARF_DELTA if defined.
1668 * doc/tm.texi (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Document.
1669 (ASM_OUTPUT_DWARF_DELTA): Ditto.
1670 (ASM_OUTPUT_DWARF_OFFSET): Ditto.
1671 (ASM_OUTPUT_DWARF_PCREL): Ditto.
1672 * config.gcc (i[34567]86-*-darwin*): Define extra_parts.
1673 (powerpc-*-darwin*): Ditto.
1674 * crtstuff.c [OBJECT_FORMAT_MACHO]: Update the Mach-O bits
1675 to work correctly for Darwin.
1676 * config/darwin.h (OBJECT_FORMAT_MACHO): Define.
1677 (STARTFILE_SPEC): Add crtbegin.o.
1678 (ENDFILE_SPEC): Define.
1679 (EXTRA_SECTION_FUNCTIONS): Put gcc_except_tab in data segment.
1680 (ASM_PREFERRED_EH_DATA_FORMAT): Handle more cases.
1681 (ASM_OUTPUT_DWARF_DELTA): Define.
1682 (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
1683 * config/darwin.c (darwin_asm_output_dwarf_delta): New function.
1685 2002-09-13 Alan Modra <amodra@bigpond.net.au>
1687 * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Remove "if"
1688 nesting. Correct test for non-PowerPC64 ELF ABI_AIX.
1689 * config/rs6000/rs6000.md (load_toc_v4_PIC*): Disable when ABI_AIX.
1691 2002-09-12 Zack Weinberg <zack@codesourcery.com>
1693 * toplev.c: Move default definition of USER_LABEL_PREFIX...
1694 * defaults.h: ... here.
1696 2002-09-12 Richard Henderson <rth@redhat.com>
1698 * vax.c: Include tree.h earlier.
1700 2002-09-12 Stan Shebs <shebs@apple.com>
1702 * config/darwin.c (machopic_finish): Remove #if 0 chunks.
1703 (machopic_operand_p): Ditto.
1705 2002-09-12 Kazu Hirata <kazu@cs.umass.edu>
1707 * config/arm/arm.c (arm_compute_initial_elimination_offset):
1710 2002-09-12 Kazu Hirata <kazu@cs.umass.edu>
1712 * toplev.c (do_abort): Fix a comment typo.
1714 2002-09-12 Kazu Hirata <kazu@cs.umass.edu>
1716 * cselib.c: Fix comment formatting.
1717 * gengtype.c: Likewise.
1719 2002-09-12 Kazu Hirata <kazu@cs.umass.edu>
1721 * config/h8300/h8300.md (udivmodqi4): Do not use an expander.
1722 (udivmodhi4): Likewise.
1724 2002-09-12 Graham Stott <graham.stott@btinternet.com>
1725 Roger Sayle <roger@eyesopen.com>
1727 * i386.c (any_fp_register_operand, fp_register_operand,
1728 register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand):
1729 New predicate functions.
1730 * i386-protos.h: Add their prototypes.
1731 * i386.h: Add them to PREDICATE_CODES.
1732 * i386.md ("*pushsf_rex64"+2, "*pushsf_rex64"+3, "*pushdf_integer"+1,
1733 "*pushdf_integer"+2, "*pushtf_integer"+1, "*pushtf_integer"+2,
1734 "*pushtf_integer"+3, "*pushtf_integer"+4, "*dummy_extendsfdf2"+1,
1735 "*dummy_extendsfdf2"+2, "*dummy_extendsfxf2"+1,
1736 "*dummy_extendsftf2"+1, "*dummy_extendsftf2"+2,
1737 "*dummy_extenddfxf2"+1, "*dummy_extenddftf2"+1,
1738 "*dummy_extenddftf2"+2, "*negsf2_if"+1, "*negsf2_if"+2,
1739 "*negdf2_if_rex64"+1, "*negdf2_if_rex64"+2, "*negxf2_if"+1,
1740 "*negxf2_if"+2, "*negtf2_if"+1, "*negtf2_if"+2, "*abssf2_if"+1,
1741 "*abssf2_if"+2, "*absdf2_if_rex64"+1, "*absdf2_if_rex64"+2,
1742 "*absxf2_if"+1, "*absxf2_if"+2, "*abstf2_if"+1, "*abstf2_if"+2):
1743 Use these new predicates to simplify and correct the use of
1744 FP_REG_P, ANY_FP_REG_P, FP_REGNO_P and any ANY_FP_REGNO_P.
1746 2002-09-12 Jason Merrill <jason@redhat.com>
1748 * diagnostic.c (output_add_identifier): New fn.
1749 * diagnostic.h: Declare it.
1751 * calls.c (store_one_arg): Use size_in_bytes to determine the
1752 amount of space to push.
1754 2002-09-12 Jakub Jelinek <jakub@redhat.com>
1756 * config/sparc/linux64.h (STARTFILE_SPEC32): Fix a typo.
1758 2002-09-12 Ulrich Weigand <uweigand@de.ibm.com>
1760 * config/s390/s390-modes.def (CCAPmode, CCANmode): New CC modes.
1761 * config/s390/s390.c (s390_match_ccmode_set): Support new CC modes.
1762 (s390_select_ccmode): Likewise.
1763 (s390_branch_condition_mask): Likewise.
1764 (optimization_options): Do not set flag_branch_on_count.
1765 (s390_split_branches): Handle doloop branches.
1766 (s390_chunkify_pool): Likewise.
1767 * config/s390/s390.md ("*adddi3_imm_cc", "*addsi3_imm_cc"): New insns.
1768 ("doloop_end"): New expander.
1769 ("doolop_si", "*doloop_si_long", "doloop_di", "*doloop_di_long",
1770 associated splitters): New.
1772 2002-09-11 Hartmut Penner <hpenner@de.ibm.com>
1774 * fold-const.c (make_range): Only narrow to signed range if
1775 the signed range is smaller than the unsigned range.
1777 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1779 * emit-rtl.c (set_mem_size): New function.
1780 * expr.h (set_mem_size): Declare.
1781 * config/rs6000/rs6000.c (expand_block_move_mem): Exterminate.
1782 (expand_block_move): Instead, use adjust_address and
1783 replace_equiv_address to generate proper aliasing info.
1784 Move common code out of conditionals. Localize vars.
1786 2002-09-09 Eric Botcazou ebotcazou@libertysurf.fr
1788 * optabs.c (expand_binop): Minor cleanup.
1789 (expand_twoval_binop): Convert CONST_INTs like in expand_binop.
1791 2002-09-11 Dan Nicolaescu <dann@ics.uci.edu>
1793 * print-tree.c (print_node): Print the restrict qualifier.
1795 2002-09-11 Janis Johnson <janis187@us.ibm.com>
1797 * doc/install.texi: Fix typos.
1799 2002-09-11 Zack Weinberg <zack@codesourcery.com>
1801 * Makefile.in: Remove all references to s-under and underscore.c.
1802 * collect2.c, tlink.c: Change all uses of prepends_underscore
1803 to look directly at USER_LABEL_PREFIX.
1805 2002-09-11 David Edelsohn <edelsohn@gnu.org>
1807 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Append
1809 (rs6000_xcoff_unique_section): Only set section name for public
1811 (rs6000_xcoff_section_type_flags): Store log2 alignment in flags.
1812 * config/rs6000/xcoff.h (TARGET_ASM_SELECT_SECTION): Remove
1813 duplicate definition.
1815 2002-09-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
1817 * pa.md (extzv): Check predicates before emitting extzv_32.
1820 2002-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1822 * config/s390/s390.h (MOVE_MAX): Define to correct value.
1823 (MAX_MOVE_MAX): Define.
1824 (MOVE_BY_PIECES_P): Define.
1825 (CLEAR_BY_PIECES_P): Define.
1827 2002-09-10 Denis Chertykov <denisc@overta.ru>
1829 * config/avr/avr.md (movstrhi): Use right operands for conversion.
1831 2002-09-10 Richard Earnshaw <rearnsha@arm.com>
1834 * arm.md (insv): Use reg_or_int_operand for operand[3].
1836 2002-09-10 David Edelsohn <edelsohn@gnu.org>
1838 * rs6000.c (rs6000_assemble_visibility): Protect declaration
1839 inside macro. Correct function definition typo.
1840 (rs6000_xcoff_section_type_flags): New function.
1841 (TARGET_SECTION_TYPE_FLAGS): Remove definition.
1842 (rs6000_elf_section_type_flags): Call default_section_type_flags_1
1843 with appropriate PIC test.
1844 (rs6000_xcoff_select_section): Use decl_readonly_section_1 to
1846 (rs6000_binds_local_p): Combine PIC flags.
1847 * sysv4.h (TARGET_SECTION_TYPE_FLAGS): Define.
1848 * xcoff.h (TARGET_SECTION_TYPE_FLAGS): Define.
1850 2002-09-09 Per Bothner <per@bothner.com>
1852 * print-tree.c (print_node): In a STRING_CST, escape non-ascii
1853 characters, and only print TREE_STRING_LENGTH chars.
1855 2002-09-09 Steve Ellcey <sje@cup.hp.com>
1857 * config/ia64/hpux.h (TARGET_HPUX_LD): New, define true.
1859 * config/ia64/ia64.h (TARGET_HPUX_LD): New, define false.
1860 * config/ia64/ia64-protos.h (ia64_hpux_asm_file_end): New.
1861 * config/ia64/ia64.c (ia64_asm_output_external): Create list
1862 of external functions if TARGET_HPUX_LD is true.
1863 (ia64_hpux_add_extern_decl): New, routine to put names on
1864 list of external functions.
1865 (ia64_hpux_asm_file_end): Put out declarations for external
1866 functions if and only if they are used.
1868 2002-09-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
1870 * pa.md (exception_receiver, builtin_setjmp_receiver): Add blockage
1871 on TARGET_64BIT before pic register restore.
1873 2002-09-09 David Edelsohn <edelsohn@gnu.org>
1875 * doc/tm.texi (TARGET_HAVE_SRODATA_SECTION): New description.
1876 (TARGET_HAVE_TLS): New description.
1878 2002-09-09 Janis Johnson <janis187@us.ibm.com>
1880 * doc/extend.texi (Statement Exprs): Fix broken link.
1882 2002-09-09 Denis Chertykov <denisc@overta.ru>
1884 * config/avr/avr.md (movstrhi, clrstrhi): Use gen_int_mode for
1885 right conversion of operands[1].
1887 2002-09-09 Ulrich Weigand <uweigand@de.ibm.com>
1889 * config/s390/s390.md ("*tmdi_reg", "*tmsi_reg"): Do not mark as
1890 commutative. Use "nonimmediate_operand" instead of "register_operand"
1891 as predicate for operand 0. Move to after the "*tmXX_mem" insns.
1893 ("*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem"): Do not mark
1896 ("*anddi3_ni", "*andsi3_ni", "*iordi3_ni", "*iorsi3_ni"): Do not
1897 mark as commutative. Use "nonimmediate_operand" instead of
1898 "register_operand" as predicate for operand 1.
1900 ("movstrictsi"): Fix typo in insn name.
1902 2002-09-09 Jan Hubicka <jh@suse.cz>
1904 * i386.c (index_register_operand): New.
1905 * i386.h (predicate_codes): Add new predicate.
1906 * i386.md (lea_general_*): Use index_regsiter_operand
1907 (ashift to lea splitter): Do not produce invalid leas
1908 (ashift to mov+ashift split): New.
1910 2002-09-09 Nick Clifton <nickc@redhat.com>
1912 * config/fr30/fr30.c (output.h): Move after inclusion of tree.h.
1915 2002-09-09 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
1916 J"orn Rennecke <joern.rennecke@superh.com>
1918 * sh/sh.h (OVERRIDE_OPTIONS): align_functions is in bytes, not bits.
1920 2002-09-09 Alan Modra <amodra@bigpond.net.au>
1922 * config/rs6000/rs6000.c (rs6000_binds_local_p): Return bool.
1923 (function_ok_for_sibcall): Use binds_local_p. Respect longcall
1926 2002-09-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1928 * fr30.c (fr30_print_operand): Fix bug in output of CONST_DOUBLE.
1930 2002-09-08 Richard Henderson <rth@redhat.com>
1932 * dwarf2.h (DW_OP_call_ref): Rename from DW_OP_calli.
1933 (DW_OP_GNU_push_tls_address): New.
1934 (DW_OP_lo_user): Fix.
1935 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): New.
1936 (dwarf_stack_op_name): Handle it, plus other dwarf3 opcodes.
1937 (size_of_loc_descr): Likewise.
1938 (output_loc_operands): Handle INTERNAL_DW_OP_tls_addr.
1939 (add_AT_location_description): Take a dw_loc_descr_ref not an rtx.
1940 (loc_descriptor_from_tree): Handle TLS variables.
1941 (rtl_for_decl_location): Do avoid_constant_pool_reference here ...
1942 (add_location_or_const_value_attribute): ... not here. Defer
1943 to loc_descriptor_from_tree for TLS variables.
1945 * config/i386/i386.h (ASM_OUTPUT_DWARF_DTPREL): New.
1946 * config/i386/i386.c (i386_output_dwarf_dtprel): New.
1947 * config/i386/i386-protos.h: Update.
1949 2002-09-08 Roger Sayle <roger@eyesopen.com>
1951 PR optimization/6405
1952 * unroll.c (loop_iterations): last_loop_insn should be the previous
1953 non-note instruction before loop->end.
1954 * loop.c (strength_reduce): The conditional jump is the last
1955 non-note instruction before loop->end (as above).
1957 2002-09-08 Roger Sayle <roger@eyesopen.com>
1959 * combine.c (try_combine): Handle the case that undobuf.other_insn
1960 has been turned into a return or unconditional jump, by inserting
1961 a BARRIER if necessary.
1962 (simplify_set): Test if a condition code setter has a constant
1963 comparison at compile time, if so convert this insn to a no-op move
1964 and update/simplify the condition code user (undobuf.other_insn).
1966 2002-09-08 Krister Walfridsson <cato@df.lth.se>
1968 * config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Redefine.
1969 (CLEAR_INSN_CACHE): Define.
1971 2002-09-08 Kazu Hirata <kazu@cs.umass.edu>
1973 * basic-block.h: Fix comment formatting.
1974 * c-common.c: Likewise.
1975 * c-common.h: Likewise.
1976 * c-lex.c: Likewise.
1977 * c-pretty-print.c: Likewise.
1978 * cfglayout.c: Likewise.
1979 * cfgloop.c: Likewise.
1980 * defaults.h: Likewise.
1981 * et-forest.c: Likewise.
1982 * explow.c: Likewise.
1983 * function.h: Likewise.
1985 * genattrtab.c: Likewise.
1986 * gengtype.c: Likewise.
1987 * ifcvt.c: Likewise.
1988 * libgcc2.c: Likewise.
1990 * profile.c: Likewise.
1991 * ra-build.c: Likewise.
1994 * tracer.c: Likewise.
1995 * tree-inline.c: Likewise.
1996 * varasm.c: Likewise.
1998 2002-09-08 Jan Hubicka <jh@suse.cz>
2000 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix array_ref
2003 * loop.c (loop_gics_reduce): Emit addition after.
2005 2002-09-08 Alan Modra <amodra@bigpond.net.au>
2007 * varasm.c (default_assemble_visibility): Rename from
2008 assemble_visibility.
2009 * output.h: Here too.
2010 * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): And here.
2011 * config/rs6000/rs6000.c (rs6000_assemble_visibility): And here.
2013 2002-09-08 Alan Modra <amodra@bigpond.net.au>
2015 * reload.c (find_reloads <p constraint>): Pass operand_mode to
2016 find_reloads_address.
2018 2002-09-08 Kazu Hirata <kazu@cs.umass.edu>
2020 * config/h8300/h8300.md (udivmodqi4): Enable on H8/300.
2021 (anonymous pattern): Likewise.
2023 2002-09-07 Scott Snyder <snyder@fnal.gov>
2026 * config/alpha/alpha.md (abstf2): Fix typo: 'neg' for 'abs'.
2028 2002-09-07 Roger Sayle <roger@eyesopen.com>
2030 * basic-block.h (struct loop): Remove unused cont_dominator field.
2032 2002-09-07 Igor Shevlyakov <igor@microunity.com>
2034 * varasm.c (decode_rtx_const): Don't check undefined field for
2037 2002-09-07 Glen Nakamura <glen@imodulo.com>
2040 * sched-deps.c (sched_analyze_insn): Make sure to add insn
2041 to reg_last->sets after flushing the dependency lists to guarantee
2042 that subsequent clobbers will be dependent on it.
2044 2002-09-07 Igor Shevlyakov <igor@microunity.com>
2046 * combine.c (simplify_shift_const): Calculate rotate count
2047 correctly for vector operands.
2049 2002-09-07 Ansgar Esztermann <ansgar@thphy.uni-duesseldorf.de>
2051 * c-typeck.c (c_tree_expr_nonnegative_p): New function.
2052 (build_binary_op): Call c_tree_expr_nonnegative_p rather than
2053 tree_expr_nonnegative_p.
2054 (build_conditional_expr): Likewise.
2055 * c-tree.h (c_tree_expr_nonnegative_p): Declare.
2057 2002-09-07 Richard Henderson <rth@redhat.com>
2059 * builtins.def (inf, inff, infl): Mark const.
2060 (huge_val, huge_valf, huge_vall): Likewise.
2061 (BUILT_IN_GETEXP, BUILT_IN_GETMAN): Remove.
2063 * real.c (ereal_inf): Clear E before use.
2065 2002-09-07 Kazu Hirata <kazu@cs.umass.edu>
2067 * config/h8300/h8300.md (udivmodqi4): Split the pattern into
2068 an expander and an anonymous pattern. Zero out the upper half
2069 of the dividend in the expander.
2070 (udivmodqi4): Likewise.
2072 2002-09-07 Kazu Hirata <kazu@cs.umass.edu>
2074 * config/h8300/h8300.c: Fix formatting.
2075 * config/h8300/h8300.h: Likewise.
2076 * config/h8300/h8300.md: Likewise.
2078 2002-09-07 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2080 * cfgcleanup.c (try_crossjump_to_edge): Fix updating of liveness
2083 2002-09-07 Graham Stott <graham.stott@btinternet.con>
2085 * rtlanal.c (dead_or_set_regno_p): Fix typo.
2087 2002-09-07 Alan Modra <amodra@bigpond.net.au>
2089 * config/rs6000/linux64.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2091 * doc/tm.texi (TARGET_ASM_ASSEMBLE_VISIBILITY): Describe.
2092 * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
2093 (TARGET_ASM_OUT): Add the above here.
2094 * target.h (struct gcc_target): Add "visibility" field.
2095 * varasm.c (maybe_assemble_visibility): Call targetm visibility func.
2096 * config/rs6000/rs6000.c (rs6000_assemble_visibility): New function.
2097 (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
2098 (rs6000_legitimize_reload_address, first_reg_to_save): Formatting.
2100 2002-09-06 Ziemowit Laski <zlaski@apple.com>
2102 * c-lang.c (objc_is_id): New stub.
2103 * c-tree.h (objc_is_id): New forward declaration.
2104 * c-typeck.c (build_c_cast): Do not strip protocol
2105 qualifiers from 'id' type.
2106 * objc/objc-act.c (objc_comptypes): Correct handling
2107 of protocol qualifiers.
2110 Fri Sep 6 13:10:08 2002 Jeffrey A Law (law@redhat.com)
2112 * pentium.md (pentium-firstvboth): Fix typo.
2114 2002-09-06 Dhananjay Deshpande <dhananjayd@kpit.com>
2116 * h8300.c (enum shift_alg): Move to earlier in h8300.c.
2117 (enum shift_type, enum h8_cpu): Likewise.
2118 (INL, ROT, LOP, SPC macros): Likewise.
2119 (shift_alg_qi, shift_alg_hi, shift_alg_si): Likewise. Lose
2121 (h8300_init_once): Update shift_alg_{qi,hi,si} to use more
2122 space efficient algorithms when optimize for codesize.
2124 Fri Sep 6 16:35:32 2002 Nicola Pero <n.pero@mi.flashnet.it>
2126 Fix PR/1727 and long-standing failing testcase
2127 objc/formal-protocol-6.m.
2128 * objc-act.c (build_protocol_expr): If compiling for the GNU
2129 runtime, create a list of Protocol statically allocated instances
2130 if it doesn't exist, then add the Protocol object to this same
2132 (get_objc_string_decl): Fixed typo/bug - TREE_VALUE had been used
2133 instead of TREE_CHAIN.
2135 Fri Sep 6 16:17:33 2002 Nicola Pero <n.pero@mi.flashnet.it>
2137 * objc/objc-act.c (dump_interface): Enlarged the char * buffer to
2138 10k. Fixed category dumping - print out category names with the
2139 proper syntax. Print '@end\n' and not '\n@end' at the end of the
2141 (finish_objc): Fixed the -gen-decls option. It was printing out
2142 only the last class. Dump an interface declaration of all classes
2143 being compiled instead.
2145 2002-09-06 Jason Thorpe <thorpej@wasabisystems.com>
2147 * config/arm/arm-protos.h (arm_gen_return_addr_mask): New
2149 * config/arm/arm.c (arm_gen_return_addr_mask): New function.
2150 * config/arm/arm.h (MASK_RETURN_ADDR): Use arm_gen_return_addr_mask
2151 if not APCS26 and not Thumb or ARMv4-or-higher. Use gen_int_mode
2152 rather than GEN_INT.
2153 * config/arm/arm.md (UNSPEC_CHECK_ARCH): Define.
2154 (return_addr_mask, *check_arch2): New.
2156 2002-09-06 Ulrich Weigand <uweigand@de.ibm.com>
2158 * config/s390/s390.md ("*adddi3_cc", "*adddi3_cconly",
2159 "*adddi3_cconly2", "*adddi3_64", "*adddi3_31", "adddi3",
2160 "*addsi3_carry1_cc", "*addsi3_carry1_cconly",
2161 "*addsi3_carry2_cc", "*addsi3_carry2_cconly",
2162 "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2", "addsi3",
2163 "adddf3", "*adddf3", "*adddf3_ibm",
2164 "addsf3", "*addsf3", "*addsf3_ibm",
2165 "muldi3", "mulsi3", "mulsidi3",
2166 "muldf3", "*muldf3", "*muldf3_ibm",
2167 "mulsf3", "*mulsf3", "*mulsf3_ibm",
2168 "*anddi3_cc", "*anddi3_cconly", "anddi3",
2169 "*andsi3_cc", "*andsi3_cconly", "andsi3",
2170 "*iordi3_cc", "*iordi3_cconly", "iordi3",
2171 "*iorsi3_cc", "*iorsi3_cconly", "iorsi3",
2172 "*xordi3_cc", "*xordi3_cconly", "xordi3",
2173 "*xorsi3_cc", "*xorsi3_cconly", "xorsi3"): Use "nonimmediate_operand"
2174 instead of "register_operand" as predicate for "%0" operand.
2176 2002-09-06 Jakub Jelinek <jakub@redhat.com>
2178 * configure.in (HAVE_AS_OFFSETABLE_LO10): Use -xarch=v9
2179 unconditionally when gcc_cv_as_flags64 checks are gone.
2180 * configure: Rebuilt.
2182 2002-09-06 Alan Modra <amodra@bigpond.net.au>
2184 * config/rs6000/rs6000.md (extzvsi_internal2): Revert most of
2185 2002-07-26 change. Comment.
2187 2002-09-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2189 * frv.c (frv_unique_section, frv_select_section,
2190 frv_select_rtx_section): Delete.
2191 (frv_in_small_data_p): New.
2192 (TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_SECTION,
2193 TARGET_ASM_SELECT_RTX_SECTION): Delete.
2194 (TARGET_IN_SMALL_DATA_P): Define.
2196 2002-09-05 Dale Johannesen <dalej@apple.com>
2198 * reload1.c (reload): Retain only those memory clobbers
2199 added for variable-array handling.
2201 2002-09-05 Jason Thorpe <thorpej@wasabisystems.com>
2203 * config/arm/arm.c (arm_return_in_memory): Implement ATPCS
2204 return-in-memory rules.
2205 * config/arm/arm.h (ARM_FLAG_ATPCS, TARGET_ATPCS): Define.
2207 2002-09-05 David Edelsohn <edelsohn@gnu.org>
2209 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Delete.
2210 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Delete.
2212 2002-09-05 Jason Thorpe <thorpej@wasabisystems.com>
2214 * real.c: Avoid parse error if FLOAT_WORDS_BIG_ENDIAN is
2215 not a compile-time constant for the non-IBM case.
2216 * config/arm/arm-protos.h (arm_float_words_big_endian): New
2218 * config/arm/arm.c (arm_float_words_big_endian): New function.
2219 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __VFP_FP__
2220 if TARGET_VFP and not TARGET_HARD_FLOAT.
2221 (ARM_FLAG_VFP, TARGET_VFP): Define.
2222 (FLOAT_WORDS_BIG_ENDIAN): Use arm_float_words_big_endian.
2224 2002-09-05 David Edelsohn <edelsohn@gnu.org>
2226 * doc/install.texi: Correct text of s390-*-linux* and s390x-*-linux*
2227 URLs. Fix AIX wording.
2229 2002-09-05 Stan Shebs <shebs@apple.com>
2231 * config/rs6000/rs6000.c (rs6000_override_options): Make -fpic and
2232 -fPIC equivalent on Darwin.
2234 Thu Sep 5 16:27:47 2002 J"orn Rennecke <joern.rennecke@superh.com>
2236 * sh.c (sh_expand_builtin): Return early if encountering an
2237 error_mark for a type.
2239 2002-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2241 * config/s390/s390.c (s390_expand_plus_operand): Do not require
2242 double-word scratch register.
2243 config/s390/s390.md ("reload_indi", "reload_insi"): Adapt.
2245 ("*tmqi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem",
2246 "*cli"): Replace s_operand by memory_operand.
2247 ("cmpstrdi", "cmpstrsi"): Replace s_operand by general_operand.
2249 2002-09-05 Kazu Hirata <kazu@cs.umass.edu>
2251 * config/h8300/h8300.c (asm_file_start): Add a missing
2254 2002-09-04 Krister Walfridsson <cato@df.lth.se>
2256 * config/i386/i386.h (GOT_SYMBOL_NAME): Define.
2257 * config/i386/i386.c (output_set_got): Use GOT_SYMBOL_NAME.
2258 (ix86_output_addr_diff_elt) Likewise.
2259 (x86_output_mi_thunk) Likewise.
2260 * config/i386/netbsd.h (GOT_SYMBOL_NAME): Redefine.
2262 2002-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2264 * frv.c (frv_encode_section_info): Fix error in last change.
2266 2002-09-04 David Edelsohn <edelsohn@gnu.org>
2268 * config/rs6000/rs6000.c (rs6000_flag_pic): New variable.
2269 (rs6000_elf_encode_section_info): ATTRIBUTE_UNUSED.
2270 (TARGET_BINDS_LOCAL_P): Define.
2271 (rs6000_override_options): Save original flag_pic value.
2272 (rs6000_elf_select_section): Call default_elf_select_section_1.
2273 (rs6000_elf_unique_section): Call default_unique_section_1.
2274 (rs6000_elf_in_small_data_p): New function.
2275 (rs6000_xcoff_asm_named_section): Determine storage mapping class.
2276 (rs6000_xcoff_select_section): Update based on defaults.
2277 (rs6000_xcoff_unique_section): Set to basic name if not common.
2278 (rs6000_binds_local_p): New function.
2279 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
2280 targetm.have_srodata_section if SDATA_EABI.
2281 (TARGET_IN_SMALL_DATA_P): Define.
2283 2002-09-04 Dale Johannesen <dalej@apple.com>
2285 * varasm.c (struct rtx_const, decode_rtx_const):
2286 Make veclo and vechi fields not share storage.
2288 Thu Sep 5 00:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
2290 * loop.c (scan_loop): Don't mark separate insns out of a libcall
2292 (move_movables): Abort if we see the first insn of a libcall.
2294 2002-09-04 Richard Henderson <rth@redhat.com>
2296 * builtin-types.def (BT_FN_FLOAT): New.
2297 (BT_FN_DOUBLE, BT_FN_LONG_DOUBLE): New.
2298 * builtins.def (BUILT_IN_INF, BUILT_IN_INFF, BUILT_IN_INFL,
2299 BUILT_IN_HUGE_VAL, BUILT_IN_HUGE_VALF, BUILT_IN_HUGE_VALL): New.
2300 * builtins.c (fold_builtin_inf): New.
2301 (fold_builtin): Call it.
2302 * real.c (ereal_inf): New.
2303 * real.h: Declare it.
2304 * doc/extend.texi: Document new builtins.
2306 2002-09-04 Richard Henderson <rth@redhat.com>
2308 * cse.c (cse_insn): Avoid subreg games if the equivalence
2309 is already in the proper mode.
2311 2002-09-04 Eric Botcazou <ebotcazou@multimania.com>
2314 * optabs.c (expand_binop): Convert CONST_INTs in all cases.
2316 2002-09-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2318 * pa.md (setccfp0, setccfp1): New patterns.
2320 2002-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2322 * frv-protos.h (frv_init_builtins, frv_expand_builtin,
2323 frv_select_section, frv_select_rtx_section,
2324 frv_encode_section_info, frv_unique_section): Delete.
2325 * frv.c: Update for target hooks.
2326 * frv.h (STRIP_NAME_ENCODING, SLOW_ZERO_EXTEND, SELECT_SECTION,
2327 SELECT_RTX_SECTION, ENCODE_SECTION_INFO, UNIQUE_SECTION,
2328 EASY_DIV_EXPR, MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): Delete.
2330 2002-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2332 * ip2k-protos.h (function_prologue, function_epilogue,
2333 encode_section_info): Update to match target hook specification.
2334 * ip2k.c: Wrap `MDR' code in IP2K_MD_REORG_PASS.
2335 (function_prologue, function_epilogue, encode_section_info):
2336 Update to match target hook specification.
2337 * ip2k.h (SELECT_SECTION, SELECT_RTX_SECTION, ASM_OPEN_PAREN,
2338 ASM_CLOSE_PAREN, EASY_DIV_EXPR): Delete.
2339 (NOTICE_UPDATE_CC): Cast to void.
2340 * ip2k.md: Add defaults in switch statements.
2342 2002-09-04 Janis Johnson <janis187@us.ibm.com>
2344 * doc/trouble.texi (Interoperation): Update information about C++ ABI
2347 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2349 * config/sparc/t-netbsd64: Disable multilib for now.
2351 2002-09-04 David Edelsohn <edelsohn@gnu.org>
2353 * target-def.h (TARGET_HAVE_SRODATA_SECTION): New macro.
2354 * target.h (gcc_target): Add have_srodata_section member.
2355 * varasm.c (section_category): Add SECCAT_SRODATA.
2356 (categorize_decl_for_section): Return SECCAT_SRODATA for sdata if
2357 READONLY_SDATA_SECTION defined.
2358 (decl_readonly_section_1): True for SECCAT_SRODATA also.
2359 (default_elf_select_section_1): Map SECCAT_SRODATA to .sdata2.
2360 (default_unique_section_1): Likewise.
2362 2002-09-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2364 * expr.c (emit_group_load): Revise to allow splitting TCmode source
2367 * pa-64.h (LONG_DOUBLE_TYPE_SIZE): Define to 128.
2368 * pa64-regs.h (CLASS_CANNOT_CHANGE_MODE_P): Inhibit changes from SImode
2369 for floating-point register class.
2370 * pa.c (function_arg): Fix handling of modes wider than one word for
2373 Wed Sep 4 18:48:10 2002 J"orn Rennecke <joern.rennecke@superh.com>
2375 * combine.c (make_compound_operation): Don't generate zero / sign
2376 extensions in floating point modes.
2378 2002-09-04 Janis Johnson <janis187@us.ibm.com>
2380 * doc/c-tree.texi: Fix overfull hboxes.
2381 * doc/cppopts.texi: Ditto.
2382 * doc/extend.texi: Ditto.
2383 * doc/gty.texi: Ditto.
2384 * doc/invoke.texi: Ditto.
2385 * doc/makefile.texi: Ditto.
2386 * doc/rtl.texi: Ditto.
2387 * doc/standards.texi: Ditto.
2388 * doc/tm.texi: Ditto.
2390 2002-09-04 Richard Henderson <rth@redhat.com>
2392 * c-common.c (builtin_define_with_hex_fp_value): New.
2393 (builtin_define_float_constants): Use it. Fix H_FLOAT mant_dig.
2395 2002-09-04 Janis Johnson <janis187@us.ibm.com>
2397 * doc/invoke.texi (-fshort-wchar): Move to Code Generation Options.
2398 (-fpcc-struct-return, -freg-struct-return, -fshort-enums,
2399 -fshort-double, -fshort-wchar, -fpack-struct, -fleading-underscore):
2400 Warn that these options can break ABI compatibility.
2402 2002-09-04 Richard Henderson <rth@redhat.com>
2404 * real.c (ereal_to_decimal): Add digits parameter.
2405 * real.h (REAL_VALUE_TO_DECIMAL): Remove format; add digits parameter.
2406 * c-pretty-print.c (pp_c_real_literal): Update call.
2407 * print-rtl.c (print_rtx): Likewise.
2408 * print-tree.c (print_node_brief, print_node): Likewise.
2409 * sched-vis.c (print_value): Likewise.
2410 * config/arc/arc.c (arc_print_operand): Likewise.
2411 * config/c4x/c4x.c (c4x_print_operand): Likewise.
2412 * config/i370/i370.h (PRINT_OPERAND): Likewise.
2413 * config/i386/i386.c (print_operand): Likewise.
2414 * config/i960/i960.c (i960_print_operand): Likewise.
2415 * config/ip2k/ip2k.c (asm_output_float): Likewise.
2416 * config/m32r/m32r.c (m32r_print_operand): Likewise.
2417 * config/m68hc11/m68hc11.c (print_operand): Likewise.
2418 * config/m68k/hp320.h (PRINT_OPERAND, ASM_OUTPUT_FLOAT_OPERAND,
2419 ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
2420 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND,
2421 ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
2422 * config/m68k/sun2o4.h (ASM_OUTPUT_FLOAT_OPERAND,
2423 ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
2424 * config/m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND,
2425 ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
2426 * config/mips/mips.c (print_operand): Likewise.
2427 * config/ns32k/ns32k.c (print_operand): Likewise.
2428 * config/pdp11/pdp11.h (PRINT_OPERAND): Likewise.
2429 * config/vax/vax.h (PRINT_OPERAND): Likewise.
2430 * doc/tm.texi (REAL_VALUE_TO_DECIMAL): Update docs.
2432 2002-09-04 Bob Wilson <bob.wilson@acm.org>
2434 * config/xtensa/elf.h (TARGET_SECTION_TYPE_FLAGS): Define to
2435 xtensa_multibss_section_type_flags.
2436 * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Define.
2438 2002-09-04 Richard Henderson <rth@redhat.com>
2440 * doc/install-old.texi: Don't mention enquire.
2441 * doc/sourcebuild.texi: Update float.h description.
2443 Wed Sep 4 11:22:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
2445 * sh.md (mperm_w_little, mperm_w_big): Supply mode for zero_extract.
2447 2002-09-03 David Edelsohn <edelsohn@gnu.org>
2449 * varasm.c (default_section_type_flags): Append _1 to name with
2450 shlib parameter. Use original name to call new function with
2452 (decl_readonly_section): Likewise.
2453 (default_elf_select_section): Likewise.
2454 (default_unique_section): Likewise.
2455 (default_bind_local_p): Likewise.
2456 (categorize_decl_for_section): Add shlib parameter to use in place
2457 of implicit flag_pic.
2458 * output.h: Declare new functions with _1 and shlib argument.
2460 2002-09-03 Janis Johnson <janis187@us.ibm.com>
2462 * doc/install.texi: Fix typos, formatting problems, and obvious
2463 overfull/underfull boxes.
2465 * Makefile.in (TEXI_GCC_FILES): Add compat.texi.
2466 * doc/gcc.texi (Top): Add new chapter, Binary Compatibility, and
2467 include its file, compat.texi.
2468 * doc/compat.texi: New file with new chapter, Binary Compatibility.
2470 2002-09-03 Neil Booth <neil@daikokuya.co.uk>
2472 Debian BTS Bug #157416
2473 * cpphash.h (FIRST, LAST, CUR, RLIMIT): Fix definitions.
2474 * cpplib.c (destringize_and_run): Kludge around getting
2475 tokens from in-progress macros.
2476 (_cpp_do__Pragma): Simplify.
2478 2002-09-03 Steve Ellcey <sje@cup.hp.com>
2480 * config/ia64/ia64.h (EXTRA_SPECS): Remove cpp_cpu.
2481 (CPP_CPU_SPEC): Remove.
2482 (TARGET_CPU_CPP_BUILTINS): New.
2483 * config/ia64/hpux.h (CPP_PREDEFINES): Remove.
2485 (TARGET_OS_CPP_BUILTINS): New.
2486 * config/ia64/linux.h (CPP_PREDEFINES): Remove.
2487 (TARGET_OS_CPP_BUILTINS): New.
2488 * config/ia64/aix.h (CPP_SPEC): Move some stuff to
2489 TARGET_OS_CPP_BUILTINS.
2490 (CPP_PREDEFINES): Remove.
2491 (CPLUSPLUS_CPP_SPEC): Remove.
2492 (TARGET_OS_CPP_BUILTINS): New.
2494 2002-09-03 Richard Henderson <rth@redhat.com>
2496 * Makefile.in (USER_H): Add ginclude/float.h.
2498 (stmp-int-hdrs, install-mkheaders): Don't handle FLOAT_H.
2499 (mostlyclean): Don't remove float.h intermediate files.
2500 (distclean): Don't remove float.h.
2501 * config.gcc: Remove all float_format references.
2502 * configure.in (float_format, float_h_file): Remove.
2504 * c-common.c: Include tree-inline.h.
2505 (builtin_define_with_int_value): New.
2506 (builtin_define_type_precision): Use it.
2507 (builtin_define_float_constants): New.
2508 (cb_register_builtins): Use it. Define __FLT_RADIX__ and
2509 __FLT_EVAL_METHOD__.
2510 * defaults.h (TARGET_FLT_EVAL_METHOD): New.
2511 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): New.
2512 * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): New.
2513 * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Mention moto 96-bit format.
2514 (TARGET_FLT_EVAL_METHOD): New.
2516 * config/float-c4x.h, config/float-i128.h, config/float-i32.h,
2517 config/float-i386.h, config/float-i64.h, config/float-m68k.h,
2518 config/float-sh.h, config/float-sparc.h, config/float-vax.h: Remove.
2519 * ginclude/float.h: New.
2521 2002-09-03 Stan Shebs <shebs@apple.com>
2523 * config/darwin.h (WARN_FOUR_CHAR_CONSTANTS): Remove, never used.
2524 (DWARF2_DEBUGGING_INFO): Remove until assembler accepts Dwarf-2.
2525 (PREFERRED_DEBUGGING_TYPE): Ditto.
2526 (ASM_OUTPUT_IDENT): Remove empty definition.
2528 2002-09-03 Steve Ellcey <sje@cup.hp.com>
2530 * config.gcc (ia64*-*-hpux*): Add ia64-c.o to c_target and
2532 * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Register pragma
2533 handling routine for builtin pragma.
2534 * config/ia64/ia64-protos.h (ia64_hpux_handle_builtin_pragma):
2535 Registered pragma handling routine.
2536 * ia64-c.c (ia64_hpux_handle_builtin_pragma): Ditto.
2537 (ia64_hpux_add_pragma_builtin) New subroutine used by above.
2538 If builtin pragma seen for math routine and C89 conformance is
2539 requested use different math function in order to set errno.
2540 * t-ia64 (ia64-c.o): Add new rule for new file.
2542 2002-09-03 Ulrich Weigand <uweigand@de.ibm.com>
2544 * config/s390/s390.md ("movti"): Add Q->Q alternative.
2545 ("*movdi_64", "*movdi_31", "*movsi", "movhi", "movqi_64",
2546 "movqi", "*movdf_64", "*movdf_31", "*movsf"): Likewise.
2548 ("*movti_ss", "*movdi_ss", "*movsi_ss", "*movdf_ss",
2549 "*movsf_ss"): Remove.
2551 2002-09-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
2553 * pa32-regs.h (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P):
2556 2002-09-03 Arati Dikey <aratid@kpit.com>
2558 * h8300.c (asm_file_start): Corrected optimization comment.
2560 2002-09-03 Stan Shebs <shebs@apple.com>
2562 * c-lang.c (recognize_objc_keyword): Remove, no longer used.
2563 * c-tree.h (recognize_objc_keyword): Remove decl.
2564 * c-typeck.c (comp_target_types): Update a comment.
2566 2002-09-03 Ulrich Weigand <uweigand@de.ibm.com>
2568 * config/s390/s390.c (s390_decompose_address): Remove STRICT parameter
2569 and register validity checks.
2570 (general_s_operand): Adapt to s390_decompose_address interface change.
2571 (q_constraint): Likewise.
2572 (s390_expand_plus_operand): Likewise.
2573 (legitimiate_address_p): Likewise.
2574 (legitimate_la_operand_p): Likewise.
2575 (legitimize_la_operand): Likewise.
2576 (print_operand_address): Likewise.
2577 (print_operand): Likewise.
2579 Tue Sep 3 11:32:14 2002 Nicola Pero <n.pero@mi.flashnet.it>
2582 * objc/objc-act.c (build_typed_selector_reference): Fix typo which
2583 was causing the new selector never to match the existing ones
2584 (Patch by Alexander Malmberg <alexander@malmberg.org>).
2586 2002-09-03 Graham Stott <graham.stott@btinternet.com>
2588 * config/i386/i386.md ("femms"): Add "memory" attr "none".
2590 2002-09-03 Graham Stott <graham.stott@btinternet.com>
2592 * expr.c (expand_expr): Remove extraneous comment and code.
2594 2002-08-31 Richard Henderson <rth@redhat.com>
2596 * expr.c (block_move_libcall_safe_for_call_parm): Fix thinko.
2598 2002-08-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
2600 * pa.c (pa_globalize_label): Add ATTRIBUTE_UNUSED to prototype.
2602 2002-08-30 Richard Henderson <rth@redhat.com>
2605 * c-objc-common.c: Include target.h.
2606 (c_cannot_inline_tree_fn): Don't auto-inline functions that
2607 don't bind locally. Factor setting DECL_UNINLINABLE.
2608 * Makefile.in (c-objc-common.o): Update.
2610 2002-08-30 Janis Johnson <janis187@us.ibm.com>
2612 * doc/install.texi (Configuration, Building): Fix a typo and
2613 some formatting directives.
2615 2002-08-30 Paul Koning <pkoning@equallogic.com>
2617 * doc/c-tree.texi (RDIV_EXPR): Fix typo.
2618 * doc/rtl.texi (post_modify): Remove misplaced text, remove "not
2620 * doc/md.texi (IP2K): Move machine-specific constraints before MIPS
2621 for alphabetic order.
2622 * doc/tm.texi (TARGET_FLOAT_FORMAT): Update description for
2623 VAX_FLOAT_FORMAT. Remove reference to HOST_FLOAT_FORMAT.
2624 (VAX_HALFWORD_ORDER): Document.
2625 (LARGEST_EXPONENT_IS_NORMAL): Remove note about being only for
2627 (TARGET_SCHED_ISSUE_RATE): Reword reference to MAX_DFA_ISSUE_RATE.
2628 (ASM_OUTPUT_LABEL_REF): Fix font.
2629 (CASE_VECTOR_SHORTEN_MODE): Ditto.
2631 2002-08-30 Denis Chertykov <denisc@overta.ru>
2633 * config/ip2k/ip2k.c (ip2k_set_compare): Remove all const_double
2635 (ip2k_gen_unsigned_comp_branch): Handle CONST_INT and
2636 CONST_DOUBLE constants.
2638 2002-08-30 Jason Thorpe <thorpej@wasabisystems.com>
2640 * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Move language-
2641 related defines to...
2642 (SUBTARGET_LANGUAGE_CPP_BUILTINS): ...here.
2643 * config/alpha/netbsd.h (SUBTARGET_LANGUAGE_CPP_BUILTINS): Redefine
2646 2002-08-30 Krister Walfridsson <cato@df.lth.se>
2648 * config/arm/arm.c (arm_asm_output_labelref): New function.
2649 * config/arm/arm.h (ASM_OUTPUT_LABELREF): Call arm_asm_output_labelref.
2650 * config/arm/arm-protos.h: Add prototype for arm_asm_output_labelref.
2652 2002-08-29 Rodney Brown <rbrown64@csc.com.au>
2654 * doc/install.texi (Specific, alpha*-dec-osf*): Add "virtual
2655 memory exhausted" workarounds.
2657 2002-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2659 * diagnostic.c (fancy_abort): Don't repeat "internal error".
2660 * toplev.c (crash_signal): Likewise.
2662 Fri Aug 30 00:33:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
2664 * doc/cpp.texi (__NEXT_RUNTIME__): Extended documentation.
2665 * doc/invoke.texi (-fnext-runtime, -Wno-protocol, -Wselector):
2666 Extended, updated documentation.
2667 (-Wundeclared-selector): Documented.
2669 2002-08-29 Jason Thorpe <thorpej@wasabisystems.com>
2671 * config/chorus.h: Consistently define *_DEBUGGING_INFO with
2672 the value 1. Do not undef before defining.
2673 * config/darwin.h: Likewise.
2674 * config/dbx.h: Likewise.
2675 * config/dbxcoff.h: Likewise.
2676 * config/dbxelf.h: Likewise.
2677 * config/elfos.h: Likewise.
2678 * config/interix.h: Likewise.
2679 * config/lynx-ng.h: Likewise.
2680 * config/lynx.h: Likewise.
2681 * config/netware.h: Likewise.
2682 * config/psos.h: Likewise.
2683 * config/svr3.h: Likewise.
2684 * config/alpha/alpha.h: Likewise.
2685 * config/alpha/elf.h: Likewise.
2686 * config/alpha/vms.h: Likewise.
2687 * config/arc/arc.h: Likewise.
2688 * config/arm/aout.h: Likewise.
2689 * config/arm/coff.h: Likewise.
2690 * config/c4x/c4x.h: Likewise.
2691 * config/h8300/h8300.h: Likewise.
2692 * config/i386/cygwin.h: Likewise.
2693 * config/i386/djgpp.h: Likewise.
2694 * config/i386/gas.h: Likewise.
2695 * config/i386/gstabs.h: Likewise.
2696 * config/i386/i386-coff.h: Likewise.
2697 * config/i386/i386-interix.h: Likewise.
2698 * config/i386/sco5.h: Likewise.
2699 * config/i386/svr3dbx.h: Likewise.
2700 * config/i386/sysv3.h: Likewise.
2701 * config/i386/win32.h: Likewise.
2702 * config/i386/x86-64.h: Likewise.
2703 * config/i960/i960.h: Likewise.
2704 * config/ia64/ia64.h: Likewise.
2705 * config/ip2k/ip2k.h: Likewise.
2706 * config/m32r/m32r.h: Likewise.
2707 * config/m68k/3b1.h: Likewise.
2708 * config/m68k/3b1g.h: Likewise.
2709 * config/m68k/ccur-GAS.h: Likewise.
2710 * config/m68k/coff.h: Likewise.
2711 * config/m68k/hp2bsd.h: Likewise.
2712 * config/m68k/hp310g.h: Likewise.
2713 * config/m68k/hp320g.h: Likewise.
2714 * config/m68k/hp3bsd.h: Likewise.
2715 * config/m68k/hp3bsd44.h: Likewise.
2716 * config/m68k/linux-aout.h: Likewise.
2717 * config/m68k/m68k-aout.h: Likewise.
2718 * config/m68k/mot3300.h: Likewise.
2719 * config/m68k/netbsd.h: Likewise.
2720 * config/m68k/openbsd.h: Likewise.
2721 * config/m68k/pbb.h: Likewise.
2722 * config/m68k/plexus.h: Likewise.
2723 * config/m68k/sun2.h: Likewise.
2724 * config/m68k/sun3.h: Likewise.
2725 * config/m68k/tower-as.h: Likewise.
2726 * config/m68k/vxm68k.h: Likewise.
2727 * config/m88k/aout-dbx.h: Likewise.
2728 * config/m88k/m88k-aout.h: Likewise.
2729 * config/mcore/mcore-elf.h: Likewise.
2730 * config/mcore/mcore-pe.h: Likewise.
2731 * config/mips/elf.h: Likewise.
2732 * config/mips/elf64.h: Likewise.
2733 * config/mips/iris5gas.h: Likewise.
2734 * config/mips/iris6.h: Likewise.
2735 * config/mips/mips.h: Likewise.
2736 * config/mips/sni-gas.h: Likewise.
2737 * config/mmix/mmix.h: Likewise.
2738 * config/ns32k/netbsd.h: Likewise.
2739 * config/pa/pa64-hpux.h: Likewise.
2740 * config/romp/romp.h: Likewise.
2741 * config/rs6000/sysv4.h: Likewise.
2742 * config/rs6000/xcoff.h: Likewise.
2743 * config/sh/coff.h: Likewise.
2744 * config/sh/elf.h: Likewise.
2745 * config/sparc/linux64.h: Likewise.
2746 * config/sparc/liteelf.h: Likewise.
2747 * config/sparc/netbsd.h: Likewise.
2748 * config/sparc/openbsd.h: Likewise.
2749 * config/sparc/pbd.h: Likewise.
2750 * config/sparc/sp64-elf.h: Likewise.
2751 * config/sparc/sp86x-elf.h: Likewise.
2752 * config/sparc/sparc.h: Likewise.
2753 * config/vax/vax.h: Likewise.
2754 * config/vax/vaxv.h: Likewise.
2756 2002-08-29 "Dhananjay R. Deshpande" <dhananjayd@kpit.com>
2758 * h8300.c (shift_alg_hi): Various tweaks to improve performance
2760 (get_shift_alg): Corresponding changes.
2762 2002-08-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
2764 * som.h (ALWAYS_STRIP_DOTDOT): Define to 1.
2766 2002-08-29 Richard Henderson <rth@redhat.com>
2768 * expr.h (enum block_op_methods): New.
2769 (emit_block_move): Update prototype.
2770 * expr.c (block_move_libcall_safe_for_call_parm): New.
2771 (emit_block_move_via_loop): New.
2772 (emit_block_move): Use them. New argument METHOD.
2773 (emit_push_insn): Always respect the given alignment.
2774 (expand_assignment): Update call to emit_block_move.
2775 (store_expr, store_field, expand_expr): Likewise.
2776 * builtins.c (expand_builtin_apply): Likewise.
2777 (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
2778 * function.c (expand_function_end): Likewise.
2779 * config/sh/sh.c (sh_initialize_trampoline): Likewise.
2780 * config/sparc/sparc.c (sparc_va_arg): Likewise.
2781 * calls.c (expand_call, emit_library_call_value_1): Likewise.
2782 (save_fixed_argument_area): Use emit_block_move with
2783 BLOCK_OP_CALL_PARM instead of move_by_pieces.
2784 (restore_fixed_argument_area): Likewise.
2785 (store_one_arg): Fix alignment parameter to emit_push_insn.
2787 2002-08-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
2789 * install.texi (hppa64-hp-hpux11*): Document installation procedure.
2791 2002-08-29 Catherine Moore <clm@redhat.com>
2793 * config/v850/v850.h (MULDI3_LIBCALL, UCMPDI2_LIBCALL, CMPDI2_LIBCALL,
2794 NEGDI2_LIBCALL, INIT_TARGET_OPTABS, MASK_STRICT_ALIGN): Define.
2795 (PREDICATE_CODES): Include new predicates.
2796 (RTX_COSTS): Handle UMOD and UDIV. Tune MULT for v850e.
2797 (TARGET_SWITCHES): Add strict-align.
2798 (TARGET_STRICT_ALIGN): New.
2799 (MASK_DEFAULT, STRICT_ALIGNMENT): Redefine.
2800 * config/v850/t-v850 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
2802 (LIB1ASMFUNCS): Add v850_negdi2, v850_cmpdi2, v850_ucmpdi2,
2804 * config/v850/lib1funcs.asm (L_callt_save_r2_r29, L_return_r2_r29,
2805 L_callt_save_r2_r31, L_return_r2_r31,
2806 L_save_all_interrupt): Change addi to add.
2807 (L_save_interrupt, L_return_interrupt): Rework.
2808 (__return_r31): Correct .size directive.
2809 (mulsi3, divsi3, udivsi3, umodsi3, modsi3): Tune for v850e.
2810 (v850_negdi2, v850_cmpdi2, v850_ucmpdi2, v850_muldi3):
2812 * config/v850/v850.c (expand_prologue): Call
2813 gen_callt_save_interrupt, gen_callt_restore_all_interrupt,
2814 gen_callt_return_interrupt and gen_callt_save_all_interrupt.
2815 (reg_or_int9_operand): New predicate.
2816 (reg_or_const_operand): New routine.
2817 * config/v850/v850.md (return_interrupt): Changed from
2819 (callt_save_all_interrupt): Changed from save_all_interrupt_v850e.
2820 (callt_save_interrupt): Change save sequence.
2821 (callt_return_interrupt): New.
2822 (save_interrupt): Don't use runtime function for LONG_CALLS
2823 and TARGET_PROLOG_FUNCTION.
2824 (save_all_interrupt): Likewise.
2825 (mulsi3): Use new predicate.
2826 (moviscc): Disallow some combination of constants.
2827 Fix define_split for sasf insns, so that it will not generate bad
2828 code if operand0 and operand5 are the same.
2829 * config/v850/v850-protos.h: Prototype new predicates.
2831 2002-08-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
2833 * c-common.c (builtin_define_type_precision): New function.
2834 (cb_register_builtins): Use it. Define __WCHAR_UNSIGNED__ is
2835 wchar_t is unsigned in C++.
2836 * doc/cpp.texi (Common Predefined Macros): Document
2837 __WCHAR_UNSIGNED__, __CHAR_BIT__, __WCHAR_BIT__, __SHRT_BIT__,
2838 __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
2839 __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
2841 2002-08-28 Sylvain Pion <pion@cs.nyu.edu>
2843 * doc/invoke.texi (-Wreorder): Remove remaining pieces from the generic
2844 section. Mention that it is enabled by -Wall.
2845 (-Wall): Mention that there can be language-specific warnings as well.
2846 (-Wctor-dtor-privacy): Mention that it is enabled by default.
2847 (-Wnon-virtual-dtor): Mention that it is enabled by -Wall.
2849 Wed Aug 28 15:35:17 2002 J"orn Rennecke <joern.rennecke@superh.com>
2851 * sh.c (calc_live_regs): Save FPSCR_REG in an interrupt handler
2854 * sh.c (sh_handle_interrupt_handler_attribute): Reject interrupt_handler
2855 attribute for SHCOMPACT.
2857 * sh.h (OVERRIDE_OPTIONS): If align_function isn't set, set it
2859 (FUNCTION_BOUNDARY): Specify only the minimum alignment required
2862 * sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Also handle TImode case.
2864 2002-08-28 Jason Thorpe <thorpej@wasabisystems.com>
2866 * config.gcc (mips*-*-netbsd*): Set target_cpu_default to
2867 "MASK_GAS|MASK_ABICALLS".
2868 * config/mips/netbsd.h (TARGET_ENDIAN_DEFAULT)
2869 (TARGET_DEFAULT): Remove.
2870 (MACHINE_TYPE): Undefine before defining.
2871 (DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE): Remove.
2873 2002-08-27 Mark Mitchell <mark@codesourcery.com>
2875 * c-common.c (warn_abi): New variable.
2876 * c-common.h (warn_abi): Likewise.
2877 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Wabi.
2878 (c_common_decode_option): Handle it.
2879 * doc/invoke.texi: Document -Wabi.
2881 Tue Aug 27 23:03:52 2002 Nicola Pero <n.pero@mi.flashnet.it>
2883 * c-common.c (warn_undeclared_selector): New variable.
2884 * c-common.h (warn_undeclared_selector): Idem.
2885 * c-opts.c (c_common_decode_option): Set warn_undeclared_selector
2886 to on when -Wundeclared-selector is found.
2887 (COMMAND_LINE_OPTIONS): Added -Wundeclared-selector.
2888 * objc/objc-act.c (build_selector_expr): If
2889 warn_undeclared_selector is set, check that the selector has
2890 already been defined, and emit a warning if not.
2892 2002-08-27 Nick Clifton <nickc@redhat.com>
2893 Catherine Moore <clm@redhat.com>
2894 Jim Wilson <wilson@cygnus.com>
2896 * config.gcc: Add v850e-*-* target.
2897 Add --with-cpu= support for v850.
2898 * config/v850/lib1funcs.asm: Add v850e callt functions.
2899 * config/v850/v850.h: Add support for v850e target.
2900 * config/v850/v850.c: Add functions to support v850e target.
2901 * config/v850/v850-protos.h: Add prototypes for new functions in v850.c.
2902 * config/v850/v850.md: Add patterns for v850e instructions.
2903 * doc/invoke.texi: Document new v850e command line switches.
2905 Tue Aug 27 18:30:47 2002 J"orn Rennecke <joern.rennecke@superh.com>
2906 Aldy Hernandez <aldyh at redhat dot com>
2908 * doc/tm.texi: Applied numerous fixes to the automaton based
2909 scheduler descrition.
2911 Tue Aug 27 19:51:05 CEST 2002 Jan Hubicka <jh@suse.cz>
2913 * i386.c (classify_argument): Handle variable sized objects.
2915 Tue Aug 27 19:18:16 CEST 2002 Jan Hubicka <jh@suse.cz>
2917 * i386.c (ix86_expand_int_movcc): Fix RTL sharing problem
2919 Tue Aug 27 18:01:45 CEST 2002 Jan Hubicka <jh@suse.cz>
2921 * libgcc2.c (__bb_exit_func): Properly write the summarized statistics.
2923 Tue Aug 27 18:00:11 CEST 2002 Jan Hubicka <jh@suse.cz>
2925 * i386.c (classify_argument): Properly compute word size of the analyzed object.
2927 Tue Aug 27 14:39:09 2002 J"orn Rennecke <joern.rennecke@superh.com>
2929 * sh.md (attribute type): Add types mt_group, fload, pcfload, fpul_gp,
2930 mac_gp ftrc_s and cwb. Add / Adjust definitions in individual insn
2932 (attribute insn_class): Provide default definitions based on type.
2933 Remove all insn-specific settings.
2934 (various function units): Remove old SH4 scheduling.
2935 (branch_zero, dfp_comp, late_fp_use, any_fp_comp, any_int_load):
2936 New attributes. Set them where appropriate.
2937 (cpu unit FS): Don't define / use.
2938 (F3, load_store): New cpu units.
2939 (F01): New reservation.
2940 (all insn_reservations): Make dependent on sh4 pipeline model.
2942 (nil, reg_mov, freg_mov, sh4_fpul_gp, sh4_call): New insn_reservations.
2943 (sh4_mac_gp, fp_arith_ftrc, arith3, arith3b): Likewise.
2944 (mt insn_reservation): Use type mt_group.
2945 (insn_reservation load_store): Split into sh4_load, sh4_load_si,
2946 sh4_fload and sh4_store.
2947 (insn_reservation branch_zero and branch): Replace with sh4_branch.
2948 (insn_reservation branch_far): Replace with sh4_return.
2949 (insn_reservation return_from_exp): Rename to:
2950 (sh4_return_from_exp). Change to be just d_lock*5.
2951 (insn_reservation lds_to_pr): Rename to:
2952 (sh4_lds_to_pr). Change to be just d_lock*2.
2953 (insn_reservation ldsmem_to_pr, sts_from_pr): Change to be just
2955 (insn_reservation prload_mem): Rename to:
2956 (sh4_prstore_mem). Change to d_lock*2,nothing,memory.
2957 (insn_reservation fpscr_store): Rename to:
2958 (fpscr_load). Change to d_lock,nothing,F1*3.
2959 (insn_reservation fpscr_store_mem): Rename to:
2960 (fpscr_load_mem). Change to d_lock,nothing,(F1+memory),F1*2.
2961 (insn_reservation multi): Change to
2962 d_lock,(d_lock+f1_1),(f1_1|f1_2)*3,F2.
2963 (insn_reservation fp_arith): Change to issue,F01,F2.
2964 (insn_reservation fp_div: Change to issue,F01+F3,F2+F3,F3*7,F1+F3,F2.
2965 (insn_reservation dp_float): Change to issue,F01,F1+F2,F2.
2966 (insn_reservation fp_double_arith): Change to issue,F01,F1+F2,fpu*4,F2.
2967 (insn_reservation fp_double_cmp): Change to
2968 d_lock,(d_lock+F01),F1+F2,F2.
2969 (insn_reservation dp_div): Change to
2970 issue,F01+F3,F1+F2+F3,F2+F3,F3*16,F1+F3,(fpu+F3)*2,F2.
2971 * sh.c (flow_dependent_p, flow_dependent_p_1): New functions.
2972 (sh_adjust_cost, SHcompact): Differentiate between different
2973 kinds of dependencies. Drop factor of ten for superscalar.
2974 Use new instruction types. Add new exception rules.
2976 * sh.md (mulhisi3, umulhisi3: Add a REG_EQUAL note.
2978 * sh.md (mperm_w): Add DONE.
2980 2002-08-27 David Edelsohn <edelsohn@gnu.org>
2982 * longlong.h: Import current PowerPC defintion from GMP-4.1.
2984 * config/rs6000/rs6000.h (MIN_UNITS_PER_WORD): Add IN_LIBGCC2 case.
2986 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Undef before define.
2988 Tue Aug 27 13:53:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
2990 * sh.h (MAX_FIXED_MODE_SIZE): Define.
2992 2002-08-27 Gabriel Dos Reis <gdr@soliton.integrable-solutions.net>
2994 * doc/cpp.texi (Common Predefined Macros): Don't mess with table
2997 2002-08-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2999 * c-common.c (cpp_define_data_format): New function.
3000 (cb_register_builtins): Call it.
3002 * doc/cpp.texi (Common Predefined Macros): Document
3003 __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
3004 __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
3005 __TARGET_FLOAT_FORMAT__, __TARGET_USES_VAX_F_FLOAT__,
3006 __TARGET_USES_VAX_D_FLOAT__, __TARGET_USES_VAX_G_FLOAT__,
3007 __TARGET_USES_VAX_H_FLOAT__.
3009 2002-08-26 Ziemowit Laski <zlaski@apple.com>
3011 * objc/objc-act.c (get_super_receiver): If inside a class method
3012 of a category, cast the receiver to 'id' before accessing the 'isa'
3013 field so that <objc/objc-class.h> is not needed. For NeXT runtime.
3015 2002-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3017 * config/s390/s390-protos.h (s390_function_prologue,
3018 s390_function_epilogue): Remove.
3019 config/s390/s390.c (s390_function_prologue, s390_function_epilogue,
3020 TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
3022 config/s390/s390.c (s390_machine_dependent_recorg): New function.
3023 config/s390/s390-protos.h (s390_machine_dependent_reorg): Declare it.
3024 config/s390/s390.h (MACHINE_DEPENDENT_REORG): Call it.
3025 config/s390/s390.c (s390_split_branches, s390_chunkify_pool): Adapt
3026 to being called from MACHINE_DEPENDENT_REORG. Update regs_ever_live.
3028 config/s390/s390.c (s390_frame_info): Inline save_fprs_p. Always
3029 assume BASE_REGISTER and RETURN_REGNUM need to be saved.
3030 (s390_emit_prologue): Assume RETURN_REGNUM to be saved iff
3031 function is not a leaf function. Use save_gprs and restore_gprs.
3032 (s390_emit_epilogue): Likewise.
3033 (save_gprs, restore_gprs): New functions.
3034 (struct s390_frame): Remove return_reg_saved_p member.
3035 (save_fprs_p): Remove.
3036 (s390_optimize_prolog): New function.
3037 (s390_legitimate_reload_constant): Remove now unnecessary check.
3039 (s390_function_count): Remove.
3040 (s390_output_symbolic_const): Replace s390_function_count by
3041 current_function_funcdef_no.
3042 (s390_output_constant_pool): Likewise.
3044 (legitimize_pic_address): Use regs_ever_live to track PIC register
3045 instead of current_function_uses_pic_offset_table.
3046 (s390_emit_prologue): Likewise.
3047 config/s390/s390.md ("call", "call_value"): Likewise.
3049 2002-08-26 Neil Booth <neil@daikokuya.co.uk>
3051 * c-opts.c (find_opt): Don't complain about wrong languages
3052 here. Return exact matches even for wrong language.
3053 (c_common_decode_option): Complain about wrong languages
3056 2002-08-24 Stuart Hastings <stuart@apple.com>
3058 * function.h (struct function): Add flag
3059 all_throwers_are_sibcalls.
3060 * except.c (set_nothrow_function_flags): Replaces
3061 nothrow_function_p. Set new flag.
3062 * except.h (set_nothrow_function_flags): Replaces
3064 * dwarf2out.c (struct dw_fde_struct): Add flag
3065 all_throwers_are_sibcalls.
3066 (output_call_frame_info): Test it.
3067 (dwarf2out_begin_prologue) Propagate it from cfun to
3069 * toplev.c (rest_of_compilation): Update calls to
3072 2002-08-23 Zack Weinberg <zack@codesourcery.com>
3074 * ggc-page.c (compute_inverse): Short circuit calculation for
3075 object sizes larger than half a page.
3077 2002-08-23 David Edelsohn <edelsohn@gnu.org>
3079 * config/rs6000/rs6000.c (rs6000_elf_select_section): Treat
3080 DEFAULT_ABI == ABI_AIX like PIC. Test PIC & reloc for readonly
3082 (rs6000_elf_unique_section): Likewise.
3084 2002-08-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3086 * ns32k.c (ns32k_globalize_label): Delete.
3087 * ns32k.h (ASM_OUTPUT_LABEL, TARGET_ASM_GLOBALIZE_LABEL): Delete.
3089 2002-08-23 Alan Modra <amodra@bigpond.net.au>
3091 * config/rs6000/rs6000.c (output_mi_thunk): Don't determine insns
3092 for loading delta with num_insns_constant_wide. Calculate
3093 delta_low, delta_high without using a conditional.
3095 2002-08-22 Jason Merrill <jason@redhat.com>
3097 * c-common.h (RETURN_STMT_EXPR): Rename from RETURN_EXPR.
3098 * c-common.def: Adjust.
3099 * c-dump.c (c_dump_tree): Adjust.
3100 * c-semantics.c (genrtl_return_stmt): Adjust.
3101 * c-pretty-print.c (pp_c_statement): Adjust.
3102 * tree-inline.c (copy_body_r): Adjust.
3104 2002-08-22 Zack Weinberg <zack@codesourcery.com>
3106 * ggc-page.c: Avoid division in ggc_set_mark.
3107 (DIV_MULT, DIV_SHIFT, OFFSET_TO_BIT, inverse_table,
3108 compute_inverse): New.
3109 (ggc_set_mark, ggc_marked_p): Use OFFSET_TO_BIT.
3110 (init_ggc): Initialize inverse_table.
3112 2002-08-22 Tom Tromey <tromey@redhat.com>
3114 * doc/install.texi (Configuration): Document --datadir.
3116 2002-08-22 Alexandre Oliva <aoliva@redhat.com>
3118 * Makefile.in ($(BUILD_PREFIX_1)varray.o): Depend on $(GGC_H).
3120 2002-08-22 Hans-Peter Nilsson <hp@bitrange.com>
3122 * gengtype-lex.l (ID): Allow underscore as first character.
3124 2002-08-21 David Edelsohn <edelsohn@gnu.org>
3126 * config/rs6000/rs6000.c (rs6000_xcoff_asm_globalize_label): New
3128 (rs6000_xcoff_asm_named_section): Rename.
3129 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
3131 2002-08-21 Tom Tromey <tromey@redhat.com>
3133 For PR java/6005 and PR java/7611:
3134 * fold-const.c (fold_truthop): Use can_use_bit_fields_p.
3136 * langhooks.c (lhd_can_use_bit_fields_p): New function.
3137 * langhooks-def.h (lhd_can_use_bit_fields_p): Declare.
3138 (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): New define.
3139 (LANG_HOOKS_INITIALIZER): Use it.
3140 * langhooks.h (struct lang_hooks) [can_use_bit_fields_p]: New
3143 2002-08-21 Stan Shebs <shebs@apple.com>
3145 * tree.c (finish_vector_type): Fix a typo in a comment.
3146 * Makefile.in: Fix "the the" stutters in comments.
3147 * genautomata.c: Ditto.
3149 * regrename.c: Ditto.
3150 * config/alpha/alpha.c: Ditto.
3151 * config/alpha/vms-crt0-64.c: Ditto.
3152 * config/alpha/vms-crt0.c: Ditto.
3153 * config/alpha/vms-psxcrt0-64.c: Ditto.
3154 * config/alpha/vms-psxcrt0.c: Ditto.
3155 * config/d30v/d30v.h: Ditto.
3156 * config/fr30/fr30.h: Ditto.
3157 * config/rs6000/rs6000.c: Ditto.
3158 * config/stormy16/stormy16.h: Ditto.
3159 * doc/md.texi: Ditto.
3161 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
3163 * cppinit.c (remove_dup_nonsys_dirs): Fix warning and return value.
3165 2002-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
3167 * c-decl.c (grokdeclarator): Make invalid combinations with long,
3168 short, signed or unsigned into hard errors. Fixes PR c/4319.
3169 Also make duplicate modifiers such as "short short" into hard
3172 2002-08-21 Andrew Pinski <pinskia@physics.uc.edu>
3173 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3175 * doc/tm.texi (TARGET_ASM_GLOBALIZE_LABEL): Move '@end deftypefn'
3176 to the actual end. Add '@end table' and '@table @code'.
3178 2002-08-20 Geoffrey Keating <geoffk@redhat.com>
3180 * doc/tm.texi (Label Output): Add missing '@end deftypefn'.
3182 * unroll.c (biv_total_increment): Don't try to compute the total
3183 increment for FP BIVs.
3185 2002-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3187 * alpha.c (TARGET_ASM_GLOBALIZE_LABEL): Define for unicosmk.
3188 * alpha/elf.h (ASM_OUTPUT_EXTERNAL_LIBCALL,
3189 ASM_OUTPUT_ALIGNED_BSS): Use target hook.
3190 * alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS): Likewise.
3191 * alpha/unicosmk.h (ASM_GLOBALIZE_LABEL): Delete.
3192 * arm/aof.h (ASM_GLOBALIZE_LABEL): Likewise.
3193 (GLOBAL_ASM_OP): Define.
3194 * arm.c (aof_globalize_label): New function.
3195 (TARGET_ASM_GLOBALIZE_LABEL): Define for AOF.
3196 * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
3197 * c4x.c (c4x_globalize_label): New function.
3198 (TARGET_ASM_GLOBALIZE_LABEL): Define for c4x.
3199 * c4x.h (ASM_GLOBALIZE_LABEL): Delete.
3200 (GLOBAL_ASM_OP): Define.
3201 * cris/aout.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
3202 * darwin-protos.h (darwin_globalize_label): Declare.
3203 * darwin.c (darwin_globalize_label): New function.
3204 * darwin.h (ASM_DECLARE_CLASS_REFERENCE): Use target hook.
3205 (ASM_GLOBALIZE_LABEL): Delete.
3206 (GLOBAL_ASM_OP, TARGET_ASM_GLOBALIZE_LABEL): Define.
3207 * dsp16xx.c (asm_output_common): Use target hook.
3208 * elfos.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
3209 * frv.h (ASM_GLOBALIZE_LABEL): Delete.
3210 (GLOBAL_ASM_OP): Define.
3211 * i370.c (i370_globalize_label): New function.
3212 (TARGET_ASM_GLOBALIZE_LABEL): Define for i370.
3213 * i370.h (ASM_GLOBALIZE_LABEL): Delete.
3214 * i386.c (ix86_asm_file_end): Use target hook.
3215 * i386/sco5.h (ASM_GLOBALIZE_LABEL): Don't undef.
3216 (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
3217 * ia64.c (ia64_asm_output_external): Likewise.
3218 * ia64/sysv4.h: Update comment.
3219 * m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
3220 * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3221 * mips/iris5.h (ASM_OUTPUT_WEAK_ALIAS): Use target hook.
3222 * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3223 * mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use target hook.
3224 * mmix-protos.h (mmix_asm_globalize_label): Delete.
3225 * mmix.c (mmix_asm_globalize_label): Likewise.
3226 * mmix.h (ASM_GLOBALIZE_LABEL): Likewise.
3227 (GLOBAL_ASM_OP): Define.
3228 * ns32k.c (ns32k_globalize_label): New function.
3229 * ns32k.h (TARGET_ASM_GLOBALIZE_LABEL): Define for ns32k.
3230 (ASM_GLOBALIZE_LABEL): Delete.
3231 * pa/pa-linux.h (ASM_GLOBALIZE_LABEL): Don't undef.
3232 (TARGET_ASM_GLOBALIZE_LABEL): Undefine.
3233 * pa.c (pa_globalize_label): New function.
3234 * pa.h (ASM_GLOBALIZE_LABEL): Delete.
3235 (TARGET_ASM_GLOBALIZE_LABEL): Define for pa.
3236 * rs6000/darwin.h (ASM_GLOBALIZE_LABEL): Delete.
3237 (GLOBAL_ASM_OP): Define.
3238 (TARGET_ASM_GLOBALIZE_LABEL): Undef.
3239 * rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
3240 * rs6000/xcoff.h (ASM_GLOBALIZE_LABEL): Delete.
3241 (GLOBAL_ASM_OP): Define.
3242 * v850.c (v850_output_aligned_bss): Use target hook.
3243 * vax.c (vms_globalize_label): New function.
3244 (TARGET_ASM_GLOBALIZE_LABEL): Define for vms.
3245 * vax/vms.h (ASM_GLOBALIZE_LABEL): Delete.
3246 (GLOBAL_ASM_OP): Define.
3247 * defaults.h (ASM_GLOBALIZE_LABEL): Delete.
3248 * doc/tm.texi: Update docs.
3249 * dwarf2out.c (default_eh_frame_section, output_die_symbol): Use
3251 * final.c (output_alternate_entry_point): Likewise.
3252 * hooks.c (hook_FILEptr_constcharptr_void): New function.
3253 * hooks.h (hook_FILEptr_constcharptr_void): Declare.
3254 * output.h (assemble_global): Delete.
3255 (default_globalize_label): Declare.
3256 * system.h (ASM_GLOBALIZE_LABEL): Poison.
3257 * target-def.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
3258 (TARGET_ASM_OUT): Add TARGET_ASM_GLOBALIZE_LABEL.
3259 * target.h (gcc_target): Add globalize_label member.
3260 * varasm.c (asm_output_bss, asm_output_aligned_bss,
3261 globalize_decl): Use target hook.
3262 (assemble_global): Delete.
3263 (default_globalize_label): New function.
3265 2002-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3267 * dsp16xx.h (dsp16xx_umulhi3_libcall): Delete.
3269 2002-08-20 Devang Patel <dpatel@apple.com>
3270 * tree.c (get_qualified_type): Add TYPE_CONTEXT check.
3272 2002-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3274 * arc.c (output_shift): Use stdio instead of asm_fprintf.
3275 * arm.c (thumb_output_function_prologue): Likewise.
3276 * avr.c (print_operand): Likewise.
3277 * c4x.c (c4x_print_operand): Likewise.
3278 * c4x.h (ASM_OUTPUT_INTERNAL_LABEL, TRAMPOLINE_TEMPLATE,
3279 ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Likewise.
3280 * cris.c (cris_target_asm_function_prologue,
3281 cris_asm_output_mi_thunk): Likewise.
3282 * h8300.c (print_operand): Likewise.
3283 * h8300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
3284 * ip2k.c (print_operand): Likewise. Fix format specifier.
3285 * m68hc11.c (asm_print_register, print_operand,
3286 print_operand_address): Use stdio instead of asm_fprintf.
3287 (print_operand_address): Fix format specifier.
3288 * m68hc11.h (FUNCTION_PROFILER, ASM_OUTPUT_ADDR_DIFF_ELT,
3289 ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ALIGN): Use stdio instead of
3291 * m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
3292 * m68k/atari.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
3293 * m68k.c (m68k_output_function_prologue,
3294 m68k_output_function_epilogue, print_operand): Likewise.
3295 * mmix.c (mmix_asm_output_mi_thunk, mmix_asm_weaken_label):
3296 Likewise. Fix format specifier.
3297 * mn10200.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
3298 * mn10300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
3299 * v850.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
3301 2002-08-15 Eric Christopher <echristo@redhat.com>
3302 Jeff Knaggs <jknaggs@redhat.com>
3304 * config.gcc (mipsisa64sr71k-elf): New target.
3305 * config/mips/sr71k.md: New file.
3306 * config/mips/mips.md: Use it.
3307 (rot*): Add sr71k specifics.
3308 * config/mips/t-sr71k: New file.
3309 * config/mips/mips.h (sr71k): New cpu.
3310 (TARGET_SR71K): Use it.
3311 (TUNE_SR71K): Ditto.
3312 (GENERATE_BRANCHLIKELY): Ditto.
3313 (ISA_HAS_MULHI, ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC,
3314 ISA_HAS_ROTR_SIISA_HAS_ROTR_DI): Ditto.
3315 * config/mips/mips.c (sr71k): New cpu.
3316 (mips_use_dfa_pipeline_interface): Use.
3318 2002-08-15 Eric Christopher <echristo@redhat.com>
3319 Richard Sandiford <rsandifo@redhat.com>
3320 Aldy Hernandez <aldyh@redhat.com>
3321 Graham Stott <grahams@redhat.com>
3322 Michael Meissner <meissner@redhat.com>
3323 Gavin Romig-Koch <gavin@redhat.com>
3324 Ken Raeburn <raeburn@cygnus.com>
3325 Alexandre Oliva <aoliva@redhat.com>
3327 * config.gcc (mips64vr-elf): New target.
3328 * config/mips/5400.md: New file.
3329 * config/mips/5500.md: Ditto.
3330 * config/mips/mips.md: Use them.
3332 * config/mips/mips.c (vr4111, vr4121, vr4320, vr5400, vr5500): New
3334 (mips_issue_rate): Use them.
3335 (mips_use_dfa_pipeline_interface): New function. Use for 5400 and 5500.
3336 (TARGET_SCHEDUSE_DFA_PIPELINE_INTERFACE): Define. Use above.
3337 * config/mips/mips.h (vr4111, vr4121, vr4320, vr5400, vr5500): New
3339 (TARGET_MIPSx): Use them.
3340 (TUNE_MIPSx): Ditto.
3341 (GETNATE_MULT3_SI): Ditto.
3342 (ISA_HAS_BRANCHLIKELY): Ditto.
3343 (ISA_HAS_CONDMOVE): Ditto.
3344 (ISA_HAS_NMADD_NMSUB): Ditto.
3345 (ISA_HAS_MULHI): New. Ditto.
3346 (ISA_HAS_MULS): Ditto.
3347 (ISA_HAS_MSAC): Ditto.
3348 (ISA_HAS_MACC): Ditto.
3349 (ISA_HAS_ROTR_SI): Ditto.
3350 (ISA_HAS_ROTR_DI): Ditto.
3353 2002-08-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
3355 * cppinit.c (remove_dup_dir): Add head_ptr argument to handle removal
3357 (remove_dup_nonsys_dirs): New function.
3358 (remove_dup_dirs): Change argument head to head_ptr. Remove warnings.
3359 (merge_include_chains): Remove non-system include directories from
3360 quote and bracket include chains when they duplicate equivalent system
3362 * doc/cpp.texi (-I): Update.
3363 * doc/cppopts.texi (-I): Update.
3364 * doc/install.texi (--with-local-prefix): Further document usage of
3366 * doc/invoke.texi (-I): Update.
3368 2002-08-20 Richard Henderson <rth@redhat.com>
3370 * expr.c (TARGET_MEM_FUNCTIONS): Transform to boolean.
3371 (emit_block_move): Split out subroutines.
3372 (emit_block_move_via_movstr): New.
3373 (emit_block_move_via_libcall): New. Emit bcopy via normal call also.
3374 (emit_block_move_libcall_fn): New. Construct function prototype for
3376 (clear_storage): Split out subroutines.
3377 (clear_storage_via_clrstr): New.
3378 (clear_storage_via_libcall): New. Emit bzero as a normal call also.
3379 (clear_storage_libcall_fn): New. Construct function prototype for
3381 (emit_push_insn): Use emit_block_move.
3382 (expand_assignment): Booleanize TARGET_MEM_FUNCTIONS.
3383 (store_constructor): Likewise.
3385 2002-08-19 Ziemowit Laski <zlaski@apple.com>
3387 * objc/objc-act.c (building_objc_message_expr): Rename to
3388 current_objc_message_selector.
3390 2002-08-19 Ziemowit Laski <zlaski@apple.com>
3392 * objc/objc-act.c (build_ivar_chain): Remove.
3393 (objc_copy_list): Likewise.
3394 (get_class_ivars): Inline call to removed build_ivar_chain
3395 function. Save off a clean copy of ivars in the CLASS_OWN_IVARS
3396 slot; use that slot (rather than CLASS_IVARS) when accessing
3397 ivars for base classes. Call copy_list and chainon instead of
3399 (build_private_template): Call get_class_ivars instead of
3401 (start_class): Allocate room for the CLASS_OWN_IVARS slot.
3402 (continue_class): Call get_class_ivars instead of
3404 (encode_field_decl): Check for DECL_BIT_FIELD_TYPE instead
3405 of DECL_BIT_FIELD (which may have been cleared).
3406 * objc/objc-act.h (CLASS_OWN_IVARS): New accessor macro.
3408 2002-08-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3410 * genautomata.c (output_translate_vect, output_state_ainsn_table,
3411 output_min_issue_delay_table): Mark variable with ATTRIBUTE_UNUSED
3413 (output_internal_min_issue_delay_func): Initialize variable in
3416 2002-08-19 Alexandre Oliva <aoliva@redhat.com>
3418 * Makefile.in (GCC_FOR_TARGET): Prepend STAGE_CC_WRAPPER.
3419 (stage2_build, stage3_build, stage4_build): Likewise, to CC.
3421 2002-08-19 Geoffrey Keating <geoffk@redhat.com>
3422 Steve Ellcey <sje@cup.hp.com>
3424 * machmode.h (SCALAR_INT_MODE_P): New macro to test for
3425 scaler integer mode (MODE_INT or MODE_PARTIAL_INT).
3426 * explow.c (trunc_int_for_mode): Abort when the mode is not
3427 a scaler integer mode.
3428 * combine.c (expand_compound_operation): Don't expand Vector
3429 or Complex modes into shifts.
3430 (expand_field_assignment): Don't do bitwise arithmatic and
3431 shifts on Vector or Complex modes.
3432 (simplify_comparison): Don't call trunc_int_for_mode
3434 * recog.c (general_operand): Likewise.
3435 (immediate_operand): Likewise.
3436 (nonmemory_operand): Likewise.
3438 2002-08-19 David Edelsohn <edelsohn@gnu.org>
3440 * config/rs6000/rs6000.c (rs6000_emit_set_const): Inline
3441 multi-instruction SImode constant. Add REG_EQUAL note.
3442 * config/rs6000/rs6000.md (movsi splitter): Use
3443 rs6000_emit_set_const.
3445 2002-08-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3447 * tree-inline.c (initialize_inlined_parameters): Wrap variable in
3448 the macro test controlling its use.
3450 2002-08-18 H.J. Lu (hjl@gnu.org)
3452 * config.gcc (*-*-linux*): Set extra_parts="crtbegin.o
3453 crtbeginS.o crtbeginT.o crtend.o crtendS.o", gas=yes and
3455 (alpha*-*-linux*, cris-*-linux*, i370-*-linux*,
3456 i[34567]86-*-linux*, x86_64-*-linux*, mips*-*-linux*,
3457 s390-*-linux*, s390x-*-linux*, sparc-*-linux*, sparc64-*-linux*,
3458 xtensa-*-linux*): Remove setting extra_parts, gas, and gnu_ld
3460 (cris-*-linux*): Remove setting thread_file here.
3462 2002-08-18 Neil Booth <neil@daikokuya.co.uk>
3464 PR preprocessor/7602
3465 * cppinit.c (path_include): Treat the system environment
3466 variables as being cxx_aware.
3468 2002-08-17 Joseph S. Myers <jsm@polyomino.org.uk>
3470 * c-decl.c (flexible_array_type_p): New function.
3471 (grokdeclarator, finish_struct): Use it.
3472 * doc/extend.texi: Document constraints on use of structures with
3473 flexible array members.
3475 2002-08-17 Richard Sandiford <rsandifo@redhat.com>
3477 * config/mips/t-coff, config/mips/t-elf, config/mips/t-isa3264,
3478 config/mips/t-r3900 (MULTILIB_MATCHES): Define.
3479 * config/mips/mips.h (ASM_SPEC): Use %(endian_spec).
3481 2002-08-16 Stan Shebs <shebs@apple.com>
3483 * c-common.c (cb_register_builds): Define __NEXT_RUNTIME__
3484 for ObjC with -fnext-runtime.
3485 * doc/cpp.texi: Document it.
3487 2002-08-16 Janis Johnson <janis187@us.ibm.com>
3489 * doc/install.texi (Final installation): Replace links to individual
3490 build status pages with a link to a common page that lists them all.
3492 2002-08-16 Sylvain Pion <pion@cs.nyu.edu>
3494 * doc/invoke.texi: Fix typo.
3496 2002-08-16 David Edelsohn <edelsohn@gnu.org>
3498 * doc/install.texi (*-ibm-aix*): Explain AIX shared object versioning.
3500 2002-08-16 Andrew Haley <aph@redhat.com>
3502 * tree-inline.c: Add includes for Java inliner.
3503 (remap_decl): Don't handle anonymous types for Java.
3504 (remap_block): Add handling for Java trees.
3505 (copy_scope_stmt): Conditionalize for non-Java use only.
3506 (copy_body_r): Handle Java trees. Add handling for
3507 LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, Java blocks.
3508 (initialize_inlined_parameters): Handle Java trees.
3509 (declare_return_variable): Likewise.
3510 (expand_call_inline): Handle Java trees.
3511 (walk_tree): Likewise.
3512 (copy_tree_r): Don't handle SCOPE_STMTs for Java.
3513 (add_stmt_to_compound): New function.
3515 2002-08-15 Richard Henderson <rth@redhat.com>
3517 * Makefile.in (LOOSE_WARN): Remove -fno-common.
3518 (NOCOMMON_FLAG): New substitution point.
3519 (GCC_WARN_CFLAGS): Include it.
3520 * configure.in (ac_checking): Set nocommon_flag.
3521 (nocommon_flag): New substitution point.
3523 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
3525 * c-tree.h (skip_evaluation): Move declaration...
3526 * c-common.h: ... here.
3527 * c-typeck.c (build_external_ref): Don't assemble_external nor
3528 mark a tree as used if skip_evaluation is set.
3529 * c-parse.in (typeof): New non-terminal to set skip_evaluation
3531 (typespec_nonreserved_nonattr): Use it.
3533 2002-08-15 Douglas B Rupp <rupp@gnat.com>
3535 * dbxout.c (dbx_debug_hooks): Update end_prologue, end_epilogue.
3536 (xcoff_debug_hooks): Update end_prologue.
3537 * debug.c (do_nothing_debug_hooks): Update end_prologue, end_epilogue.
3538 * debug.h (end_prologue): Add file arg.
3539 (end_epilogue): Add line and file args.
3540 (dwarf2out_end_epilogue): Add line and file args.
3541 (vmsdbgout_after_prologue): Remove.
3542 * dwarf2out.c (dwarf2out_end_epilogue): Add line and file args.
3543 (dwarf2_debug_hooks): Update end_prologue.
3544 * dwarfout.c (dwarfout_end_epilogue): Add line and file args.
3545 (dwarfout_end_prologue): Add file arg.
3546 * final.c (vmsdbgout_after_prologue): Remove
3547 (final_end_function): Update end_epilogue call.
3548 (final_scan_insn): Update end_prologue call.
3549 * sdbout.c (sdbout_end_epilogue): Add line and file args.
3550 (sdbout_end_prologue): Add file arg.
3551 (sdb_debug_hooks): Update end_prologue.
3552 (sdb_begin_prologue): Update sdbout_end_prologue call.
3553 * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_end_prologue,
3554 vmsdbgout_end_function.
3555 (vmsdbgout_end_prologue): New function renamed from
3556 vmsdbgout_after_prologue. Call vmsdbgout_source_line.
3557 (vmsdbgout_end_function): New function.
3558 (vmsdbgout_end_epilogue): Add line and file args. Call
3559 vmsdbgout_source_line.
3560 (write_pclines): Write only valid line numbers.
3561 (write_srccorr): Don't write source correlation records if 0 lines.
3562 * xcoffout.c (xcoffout_end_epilogue): Add line and file args.
3564 2002-08-15 Steve Ellcey <sje@cup.hp.com>
3566 * gcc/unwind.h (_Unwind_Ptr): Make 64 bits on IA64 HP-UX.
3567 (_Unwind_Internal_Ptr): 32 bit version for use in
3568 read_encoded_value_with_base.
3569 * gcc/unwind-pe.h (read_encoded_value_with_base): Use
3570 _Unwind_Internal_Ptr instead of _Unwind_Ptr in order to get the
3573 2002-08-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3575 * loop.c (scan_loop, move_movables, count_one_set): Cast to avoid
3576 signed/unsigned warnings.
3578 * regclass.c (init_reg_sets_1, choose_hard_reg_mode,
3579 record_reg_classes): Likewise.
3581 * reload.c (reload_inner_reg_of_subreg, push_reload,
3582 find_reloads_address_1): Likewise.
3584 2002-08-15 David Edelsohn <edelsohn@gnu.org>
3586 * rs6000.c (output_mi_thunk): Return to function section on
3589 * rs6000-c.c (rs6000_cpu_cpp_builtins): Define __PPC405__ if PPC405.
3591 2002-08-15 Ulrich Weigand <uweigand@de.ibm.com>
3593 * config/s390/s390.c (legitimize_address): Optimize loading
3594 of large displacements.
3596 2002-08-14 Douglas B Rupp <rupp@gnat.com>
3598 * config/alpha/alpha-protos.h: Update.
3600 * config/alpha/alpha.c: (LINKAGE_SYMBOL_REF_P): New macro.
3601 (alpha_legitimate_address_p): Test LINKAGE_SYMBOL_REF_P.
3602 (alpha_linkage_symbol_p): New static function.
3603 (print_operand_address): Print linkage operand.
3605 (alpha_funcs_num, alpha_funcs_tree, alpha_links_tree): New static
3607 (reloc_kind): New enum.
3608 (struct alpha_funcs): New struct.
3609 (struct alpha_links): Add reloc_kind field. Rename links_kind field.
3611 (alpha_need_linkage): Rewrite.
3612 (alpha_use_linkage): New global function.
3613 (alpha_write_linkage): Rewrite and make static.
3614 (alpha_write_one_linkage): Rewrite
3616 (alpha_start_function): Remove procedure descriptor output.
3617 (alpha_end_function): Write linkages at end of each function.
3619 * config/alpha/alpha.md (call_vms, call_value_vms): Rewrite.
3620 (call_vms_1, call_value_vms_1): Rewrite.
3622 * config/alpha/vms.h (ASM_FILE_END): Remove.
3624 2002-08-14 Richard Henderson <rth@redhat.com>
3626 * ggc-page.c (RTL_SIZE): New.
3627 (extra_order_size_table): Add specializations for 2 and 10 rtl slots.
3628 * rtl.def (BARRIER, NOTE): Pad to 9 slots.
3630 2002-08-14 Richard Henderson <rth@redhat.com>
3632 * calls.c: Include target.h.
3633 * Makefile.in (calls.o): Update.
3635 * config/alpha/alpha.c (alpha_end_function): Use targetm.binds_local_p.
3636 * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
3638 2002-08-14 Richard Henderson <rth@redhat.com>
3640 * Makefile.in (LOOSE_WARN): Add -fno-common.
3641 * c-common.h (constant_string_class_name): Add missing extern.
3643 2002-08-15 Neil Booth <neil@daikokuya.co.uk>
3645 PR preprocessor/7358
3646 * c-opts.c (check_deps_environment_vars): Ignore main file
3647 for SUNPRO_DEPENDENCIES.
3648 * cppfiles.c (stack_include_file): Ignore main file if
3650 * cpplib.h (struct cpp_options): New member in deps.
3651 * doc/cppenv.texi: Update.
3653 2002-08-14 Neil Booth <neil@daikokuya.co.uk>
3655 PR preprocessor/7526
3656 * cpplib.c (run_directive): Kludge so _Pragma dependency works.
3658 2002-08-14 Nathan Sidwell <nathan@codesourcery.com>
3660 * doc/invoke.texi (-a): Remove documentation.
3661 (-fprofile-arcs): Remove reference to -a, -ax options.
3662 * doc/gcov.texi (Gcov Data Files): Data might be merged.
3664 2002-08-14 Gabriel Dos Reis <gdr@nerim.net>
3667 * c-semantics.c (genrtl_case_label): Don't (mis)use
3670 2002-08-14 Dale Johannesen <dalej@apple.com>
3672 * explow.c (emit_stack_restore): Emit memory clobbers
3673 preceding the stack pop, to prevent the scheduler from
3674 moving refs to variable arrays below this pop.
3675 * reload1.c (reload): Preserve these clobbers for sched2.
3676 * doc/rtl.texi: Document clobber (mem:BLK (scratch)).
3678 2002-08-14 Neil Booth <neil@daikokuya.co.uk>
3680 * c-opts.c (c_common_post_options): Correct test.
3682 2002-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3684 * m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Fix incorrect argument
3685 order in call to fprintf.
3687 2002-08-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3689 * config/sparc/sol2.h (SUBTARGET_EXTRA_SPECS): Define.
3691 2002-08-14 Ulrich Weigand <uweigand@de.ibm.com>
3693 * reload.c (find_reloads): Handle constraint letters marked by
3694 EXTRA_ADDRESS_CONSTRAINT and EXTRA_MEMORY_CONSTRAINT.
3695 (alternative_allows_memconst): Likewise.
3696 * reload1.c (maybe_fix_stack_asms): Likewise.
3697 * recog.c (asm_operand_ok, preprocess_constraints,
3698 constrain_operands): Likewise.
3699 * regclass.c (record_operand_costs, record_reg_classes): Likewise.
3700 * local-alloc.c (block_alloc, requires_inout): Likewise.
3701 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
3703 * defaults.h (EXTRA_MEMORY_CONSTRAINT): Provide a default.
3704 (EXTRA_ADDRESS_CONSTRAINT): Likewise.
3705 * doc/tm.texi: Document these two new target macros.
3707 * config/s390/s390.c (s390_expand_plus_operand): Accept already
3709 (q_constraint): New function.
3710 config/s390/s390-protos.h (q_constraint): Declare it.
3711 config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
3712 (EXTRA_MEMORY_CONSTRAINT): New macro.
3714 * config/s390/s390.md: Throughout the machine description,
3715 replace all instances of the constraint combinations 'Qo'
3716 or 'oQ' with simply 'Q'.
3718 2002-08-14 Stephane Carrez <stcarrez@nerim.fr>
3720 * config/m68hc11/m68hc11.h (LINK_SPEC): Support -mrelax.
3721 * config/m68hc11/t-m68hc11-gas (LIBGCC2_DEBUG_CFLAGS): Can use -g now.
3722 (LIBGCC2_CFLAGS): Compile with -mrelax.
3724 2002-08-14 Stephane Carrez <stcarrez@nerim.fr>
3726 * doc/invoke.texi: Document -minmax for 68HC12.
3728 * config/m68hc11/m68hc11.md ("umaxqi3"): Use TARGET_MIN_MAX.
3729 ("uminqi3"): Likewise.
3730 ("uminhi3", "umaxhi3"): Likewise.
3732 * config/m68hc11/m68hc11.h (MASK_MIN_MAX): Define.
3733 (TARGET_MIN_MAX): Define.
3734 (TARGET_SWITCHES): New option -minmax/-mnominmax.
3736 2002-08-14 Stephane Carrez <stcarrez@nerim.fr>
3738 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build __far_trampoline.
3739 (MULTILIB_OPTIONS): Must also generate for -mlong-calls.
3741 * config/m68hc11/larith.asm: Put a mode for ELF ABI flags.
3742 (ret, declare, farsym): New gas macros.
3743 (__premain, exit, abort, _cleanup, memcpy, memset, ___adddi3,
3744 ___subdi3, ___notdi2, __mulhi32, __mulsi3): Use them to use 'rtc'
3745 and declare the symbol far when compiled with -mlong-calls.
3746 (__far_trampoline): New for 68HC12 trampoline code to invoke a
3747 far handler using jsr/bsr.
3749 * config/m68hc11/m68hc11-crt0.S: Put a mode for ELF ABI flags.
3750 (jsr): New macro to transform a 'jsr' into a 'call'.
3752 2002-08-14 Stephane Carrez <stcarrez@nerim.fr>
3754 * doc/invoke.texi: Document -mlong-calls for 68HC12.
3756 * config/m68hc11/m68hc11.h (CPP_SPEC): Pass -D__USE_RTC__ when
3757 -mlong-calls is specified.
3758 (ASM_DECLARE_FUNCTION_NAME): Define to generate .far and .interrupt
3759 assembler directives.
3760 (TARGET_LONG_CALL, MASK_LONG_CALL): Declare.
3761 (TARGET_SWITCHES): Add -mlong-calls options.
3762 (current_function_far): Declare.
3764 * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset): Take
3765 into account the page register saved on the stack.
3766 (m68hc11_override_options): Take into account -mlong-calls option.
3767 (m68hc11_asm_file_start): Put a mode for the ELF flags ABI.
3769 * config/m68hc11/m68hc11.md ("*return_32bit"): Return rtc
3770 if the function is going to be in 68HC12 banked memory (-mlong-calls).
3771 ("*return_16bit"): Likewise.
3772 ("*return_void"): Likewise.
3773 ("call", "call_value"): Use call for a far function call.
3775 2002-08-14 Neil Booth <neil@daikokuya.co.uk>
3777 * toplev.c (parse_options_and_default_flags): Don't call
3779 (general_init): Initialize GC, pools and tree hash here,
3780 instead of lang_independent_init.
3781 (lang_independent_init): Rename backend_init.
3782 (do_compile): Call post_options hook; exit early if there
3783 have been errors after switch processing.
3784 (toplev_main): Update.
3786 2002-08-14 Gabriel Dos Reis <gdr@nerim.net>
3788 * c-pretty-print.h: Guard against multiple inclusion.
3790 (pp_c_attributes): Declare.
3791 * c-pretty-print.c (pp_c_attributes): New function.
3793 2002-08-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3795 * m68k.c (m68k_output_function_prologue,
3796 m68k_output_function_epilogue): Delete versions for DPX2/MOTOROLA
3798 * genattrtab.c: Remove dpx2 comment.
3799 * libgcc2.c (__enable_execute_stack): Delete versions for
3800 NeXT/__MACH__, __convex__, __sysV88__, __pyr__ and
3801 sony_news/SYSTYPE_BSD.
3802 * longlong.h: Delete code for __a29k__, _AM29K, __clipper__,
3803 __gmicro__, __i860__, __NeXT__ and __pyr__.
3804 * rtl.h: Remove convex comment.
3805 * varasm.c: Likewise.
3807 2002-08-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3809 * c-opts.c (lang_flags): Const-ify.
3810 * ra-build.c (undef_table): Likewise.
3811 * ra.c (eliminables): Likewise.
3813 2002-08-14 Gabriel Dos Reis <gdr@nerim.net>
3815 * tree.h: Guard against multiple inclusion.
3817 2002-08-14 Hans-Peter Nilsson <hp@bitrange.com>
3819 * reload1.c (reload_cse_simplify): Before checking
3820 REG_FUNCTION_VALUE_P, check REG_P.
3822 2002-08-13 Geoffrey Keating <geoffk@redhat.com>
3824 * Makefile.in (attribs.o): Remove $(OBSTACK_H) dependency.
3826 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
3828 * c-opts.c (c_common_init_options): Extra braces needed.
3830 Tue Aug 13 17:40:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
3832 * sh.c (sh_init_builtins): Add PARAMS to declaration.
3833 (sh_media_init_builtins, sh_expand_builtin): Likewise.
3834 (sh_expand_unop_v2sf): Use PARAMS for variable declaration.
3835 (sh_expand_binop_v2sf): Likewise.
3836 * sh-protos.h (sh_expand_unop_v2sf): Add PARAMS to declaration.
3837 (sh_expand_binop_v2sf, sh_cfun_interrupt_handler_p): Likewise.
3838 (sh_initialize_trampoline): Likewise.
3840 2002-08-13 Ulrich Weigand <uweigand@de.ibm.com>
3842 * s390-modes.def [CCL1, CCL2, CCT1, CCT2, CCT3, CCUR, CCSR]: Declare
3843 new condition code modes.
3844 s390.c (s390_match_ccmode_set): Handle those new CC modes.
3845 (s390_select_ccmode): Likewise.
3846 (s390_branch_condition_mask): Likewise.
3848 * s390-protos.h (s390_tm_ccmode): Declare.
3849 s390.c (s390_tm_ccmode): New function.
3850 (s390_match_ccmode): Allow VOIDmode as REQ_MODE.
3852 * s390.md ("*cmpdi_tm2"): Rename to "*tmdi_ext".
3853 ("*cmpsi_tm2"): Rename to "*tmsi_ext".
3854 ("*cmpqi_tm2"): Rename to "*tmqi_ext".
3856 ("*cmpdi_tm_reg", "*cmpdi_tm_mem", "*cmpsi_tm_reg", "*cmpsi_tm_mem",
3857 "*cmphi_tm_sub","*cmphi_cct_0", "*cmpqi_tm", "*cmpqi_tm_sub",
3858 "*cmpqi_cct_0", "*tm_0"): Remove, replace by ...
3859 ("*tmdi_reg", "*tmsi_reg", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem",
3860 "*tmqi_mem", "*tmhi_full", "*tmqi_full"): ... these new patterns.
3862 ("*ltgr", "*cmpdi_ccs_0_64", "*cmpdi_ccs_0_31", "*ltr", "*icm15",
3863 "*icm15_cconly", "*cmpsi_ccs_0", "*icm3", "*cmphi_ccs_0", "*icm1",
3864 "*cmpqi_ccs_0"): Remove, replace by ...
3865 ("*tstdi_sign", "*tstdi", "*tstdi_cconly", "*tstdi_cconly_31",
3866 "*tstsi", "*tstsi_cconly", "*tstsi_cconly2", "*tsthi", "*tsthi_cconly",
3867 "*tstqi", "*tstqi_cconly"): ... these new patterns.
3869 ("*cmpsidi_ccs"): Remove, replace by ...
3870 ("*cmpsi_ccs_sign"): ... this new pattern.
3871 ("*cmpdi_ccs_sign", "*cmpdi_ccu_zero"): New patterns.
3873 ("*cmpqi_ccu_0", "*cmpqi_ccu_immed"): Remove, replace by ...
3874 ("*cli"): ... this new pattern.
3876 ("*adddi3_sign", "*adddi3_zero_cc", "*adddi3_zero_cconly",
3877 "*adddi3_zero", "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2"):
3879 ("adddi3_64"): Rename to "*adddi3_64".
3880 ("adddi3_31"): Replace by insn and splitter "*adddi3_31".
3881 ("adddi3"): Adapt expander.
3883 ("*addsi3_cc"): Allow "general_operand" for operand 2.
3884 ("*addsi3_carry1_cc", "*addsi3_carry1_cconly",
3885 "*addsi3_carry2_cc", "*addsi3_carry2_cconly"): New patterns.
3887 ("addhi3", "addqi3"): Remove, replace by ...
3888 ("*addsi3_sign", "*addsi3_sub"): ... these new patterns.
3890 ("*subdi3_sign", "*subdi3_zero_cc", "*subdi3_zero_cconly",
3891 "*subdi3_zero", "*subdi3_cc", "*subdi3_cconly"): New patterns.
3892 ("subdi3"): Replace by insn and splitter "*subdi3_31".
3893 ("subdi3"): New expander.
3895 ("*subsi3_borrow_cc", "*subsi3_borrow_cconly"): New patterns.
3897 ("subhi3", "subqi3"): Remove, replace by ...
3898 ("*subsi3_sign", "*subsi3_sub"): ... these new patterns.
3900 ("*muldi3_sign"): New pattern.
3901 ("muldi3"): Do not clobber CC.
3902 ("mulsi3"): Likewise.
3903 ("mulsi_6432"): Likewise.
3905 2002-08-13 Denis Chertykov <denisc@overta.ru>
3907 * config/avr/avr.md: Call CC_STATUS_INIT in all peepnoles
3908 which can change CC0.
3910 Tue Aug 13 14:49:20 2002 J"orn Rennecke <joern.rennecke@superh.com>
3912 * gcse.c (adjust_libcall_notes): New function.
3913 (do_local_cprop): Use it. Add fourth parameter. Changed caller.
3915 2002-08-13 Nathan Sidwell <nathan@codesourcery.com>
3917 * libgcc2.c (L_bb): Remove unneeded #includes.
3918 (__global_counters, __gthreads_active): Remove unused globals.
3919 (__bb_exit_func): Merge counts into files rather than appending.
3920 * Makefile.in (INTERNAL_CFLAGS): Move COVERAGE_FLAGS from here ...
3921 (ALL_CFLAGS): ... to here.
3923 2002-08-13 Denis Chertykov <denisc@overta.ru>
3925 * config/ip2k/ip2k.c (commands_in_file): Variable removed.
3926 (function_epilogue): Don't calculate function size.
3927 (ip2k_set_compare): Don't use lookup_const_double.
3928 (asm_file_start): Initialization of commands_in_file removed.
3929 (asm_file_end): Output of commands_in_file removed.
3931 * config/ip2k/ip2k.c (CPP_PREDEFINES): Remove definition of
3934 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
3936 * c-opts.c (c_common_init_options): Check option array is
3937 sorted if checking enabled.
3939 2002-08-13 Gabriel Dos Reis <gdr@nerim.net>
3941 * c-pretty-print.c: #include "c-tree.h".
3942 (pp_c_simple_type_specifier): Tweak.
3943 (pp_c_storage_class_specifier): New.
3944 (pp_c_function_specifier): Likewise.
3945 (pp_c_declaration_specifiers): Likewise.
3946 (pp_c_init_declarator): Likewise.
3947 (pp_c_declaration): Likewise.
3948 (pp_c_direct_declarator): Stub.
3949 (pp_c_declarator): Likewise.
3950 (pp_c_parameter_declaration): Likewise.
3952 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
3954 * c-opts.c (deps_seen, deps_file, deferred_count, deferred_size,
3955 handle_deferred_opts, sanitize_cpp_opts, defer_opt,
3956 struct deferred_opt): New.
3957 (COMMAND_LINE_OPTIONS): Add -M*.
3958 (missing_arg): Update.
3959 (c_common_decode_option): Handle -M*.
3960 (c_common_post_options): Handle -M*. Use sanitize_cpp_opts;
3961 don't call cpp_post_options.
3962 (c_common_finish, check_deps_environment_vars): Update.
3963 * cppfiles.c (stack_include_file, handle_missing_header): Update.
3964 * cpphash.h (CPP_PRINT_DEPS): Remove.
3965 * cppinit.c: Don't include version.h.
3966 (cpp_create_reader): Don't call deps_init. Initialize
3968 (cpp_read_main_file): Init deps if necessary.
3969 (cpp_destroy): Conditionally free deps.
3970 (cpp_finish): Update.
3972 (COMMAND_LINE_OPTIONS, cpp_handle_option): Remove -M*.
3973 (cpp_post_options): Rename post_options.
3974 * cpplib.h (struct cpp_options): Remove some dependency options;
3975 move others to a new structure.
3976 (cpp_post_options): Remove.
3977 (cpp_finish): Comment.
3978 * fix-header.c (read_scan_file): Don't call cpp_post_options.
3980 2002-08-12 Hans-Peter Nilsson <hp@bitrange.com>
3982 * config/mmix/mmix.md (define_constants): Add MMIX_rR_REGNUM.
3983 ("divdi3", "*divdi3_nonknuth", "moddi3", "*moddi3_nonknuth"): Mark
3984 MMIX_rR_REGNUM as clobbered.
3985 * config/mmix/mmix.h (MMIX_REMAINDER_REGNUM): Use MMIX_rR_REGNUM.
3987 2002-08-12 Gabriel Dos Reis <gdr@nerim.net>
3989 * diagnostic.h (output_formatted_scalar): Rename from
3990 output_formatted_integer.
3991 * diagnostic.def: Add DK_DEBUG.
3992 * diagnostic.c (output_decimal): Adjust.
3993 (output_long_decimal): Likewise.
3994 (output_unsigned_decimal): Likewise.
3995 (output_octal): Likewise.
3996 (output_long_octal): Likewise.
3997 (output_hexadecimal): Likewise.
3998 (output_long_hexadecimal): Likewise.
3999 * c-pretty-print.c (pp_c_type_specifier): New function.
4000 (pp_c_specifier_qualifier_list): Likewise.
4001 (pp_c_abstract_declarator): Likewise.
4002 (pp_c_char): Replace pp_format_integer with pp_format_scalar.
4004 2002-08-12 David Edelsohn <edelsohn@gnu.org>
4006 * doc/trouble.texi (Disappointments): Add static constructor and
4007 destructor dependency information for AIX.
4009 2002-08-12 Neil Booth <neil@daikokuya.co.uk>
4011 * cpphash.h (struct printer): New from cppmain.c.
4012 (cpp_reader): New member.
4013 * cppmain.c (struct printer): Move to cpphash.h.
4014 (options, print): Remove.
4015 (account_for_newlines, print_line, maybe_print_line,
4016 cpp_preprocess_file, setup_callbacks, scan_translation_unit,
4017 scan_translation_unit_trad, cb_line_change, cb_ident,
4018 cb_define, cb_undef, cb_include, cb_file_change, dump_macro,
4019 cb_def_pragma): Make reentrant.
4021 2002-08-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4023 * real.c (ieee_64): Always define.
4024 (ieee_113): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
4025 (dec_h): Not used yet, hide it.
4026 (emdnorm): Mark parameter in ATTRIBUTE_UNUSED. Guard label with
4027 macro controlling use.
4028 (TFbignan, TFlittlenan): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
4030 Mon Aug 12 12:48:20 CEST 2002 Jan Hubicka <jh@suse.cz>
4032 * i386.md (tablejump): Sign extend the operand.
4033 * i386.c (classify_argument): Fix missed case from previous patch.
4035 2002-08-12 Neil Booth <neil@daikokuya.co.uk>
4037 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, c_common_init): Move
4039 (warn_multichar): Die.
4040 (cb_register_builtins): Export.
4041 * c-common.h (warn_multichar, preprocess_file): Remove.
4042 (cb_register_builtins): New.
4043 * c-lang.c (c_init): Remove.
4044 (LANG_HOOKS_INIT): Use c_objc_common_init.
4045 * c-lex.c (init_c_lex): Don't canonicalize filename.
4046 * c-opts.c (in_fname, STDC_0_IN_SYSTEM_HEADERS): New.
4047 (preprocess_file): Make static. Update for cpplib.
4048 (c_common_decode_option): Remove warn_multichar. Use in_fname.
4049 (c_common_post_options): Set some cpp options here.
4050 (c_common_init): Move from c-common.c.
4051 * cppinit.c (cpp_post_options): Don't canonicalize in_fname.
4052 * cpplib.h (struct cpp_options): Remove in_fname.
4053 (cpp_preprocess_file): Update.
4054 * cppmain.c (cpp_preprocess_file): Update for new prototypes.
4056 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4058 * config.gcc (mips*-*-netbsd*): Include ${tm_file}.
4060 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4062 * i370.h (TARGET_CPU_CPP_BUILTINS): Remove spurious trailing
4063 backslash in comment preceeding macro definition.
4064 * i370/linux.h (TARGET_OS_CPP_BUILTINS): Likewise.
4065 * i370/mvs.h (TARGET_OS_CPP_BUILTINS): Likewise.
4066 * i370/oe.h (TARGET_OS_CPP_BUILTINS): Likewise.
4068 2002-08-12 Hans-Peter Nilsson <hp@bitrange.com>
4070 * expr.c (store_expr): In condition for checking if value is
4071 generated in TARGET, move call to expr_size last.
4073 2002-08-11 Neil Booth <neil@daikokuya.co.uk>
4075 * c-common.c (c_common_init): Call preprocess_file instead.
4076 (c_common_finish): Move to c-opts.c.
4077 * c-common.h (preprocess_file): new.
4078 * c-opts.c (out_fname, out_stream, deps_append, preprocess_file,
4079 check_deps_environment_vars, c_common_finish): New.
4080 (c_common_decode_option): Update for out_fname and dependencies.
4081 * cppinit.c (init_dependency_output, output_deps): Remove.
4082 (cpp_destroy): Update prototype.
4083 (cpp_add_dependency_target): New.
4084 (cpp_read_main_file): Don't overlay a buffer.
4085 (cpp_finish): Take a deps output stream and write deps to it.
4086 Return the error count.
4087 (cpp_post_options): Don't canonicalize out_fname, or do anything
4089 * cpplib.h (struct cpp_options): Remove out_fname and
4091 (cpp_add_dependency_target): New.
4092 (cpp_destroy, cpp_finish, cpp_preprocess_file): Update.
4093 * cppmain.c (cpp_preprocess_file): Update prototype. Don't
4094 set preprocess_only. Don't handle the output stream directly.
4096 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4098 * dsp16xx.c (print_operand): Fix format specifier.
4099 * dsp16xx.md: Avoid automatic aggregate initialization.
4100 * frv.h (REG_CLASS_FROM_LETTER): Avoid char as array index.
4101 * h8300.c (emit_a_rotate, h8300_adjust_insn_length): Avoid U
4102 integer constant modifier.
4103 * ip2k.c (ip2k_set_compare): Avoid signed/unsigned warning.
4104 * mmix-protos.h (mmix_use_simple_return): Move outside TREE_CODE
4106 * sh/netbsd-elf.h (FUNCTION_PROFILER): Fix format specifier.
4107 * v850.c (v850_select_section): Mark parameter with
4109 * global.c (global_alloc): Const-ify.
4110 * ra-colorize.c (hardregset_to_string): Fix format specifier.
4112 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4114 * darwin-c.c (darwin_pragma_options): Const-ify.
4115 * darwin.c (machopic_non_lazy_ptr_name,
4116 machopic_validate_stub_or_non_lazy_ptr): Likewise.
4117 (machopic_indirect_data_reference): Wrap variables in macros
4118 controlling their use.
4119 (machopic_finish, update_non_lazy_ptrs, update_stubs): Const-ify.
4120 (machopic_select_section): Use parentheses around && within ||.
4121 * i386/darwin.h (ASM_OUTPUT_ALIGN): Avoid ambiguous-else.
4123 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4125 * ip2k.c (mdr_resequence_xy_yx, mdr_propagate_reg_equivs,
4126 mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
4127 ip2k_adjust_stack_ref, mdr_try_move_pushes, mdr_try_propagate_clr,
4128 ip2k_xexp_not_uses_reg_for_mem, mdr_try_propagate_move,
4129 mdr_try_remove_redundant_insns, track_w_reload,
4130 mdr_try_wreg_elim): Make function static to match prototype.
4131 * mmix.c (mmix_target_asm_function_epilogue): Likewise. Mark
4132 parameter with ATTRIBUTE_UNUSED.
4134 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4136 * arc.c (arc_init): Don't use ISO C style function definitions.
4137 * arm.c (count_insns_for_constant, thumb_far_jump_used_p,
4138 arm_get_strip_length, arm_strip_name_encoding): Likewise.
4139 * avr.h (progmem_section): Likewise.
4140 * h8300.c h8300_asm_insn_count): Likewise.
4141 * m32r.c (init_idents): Likewise.
4142 * s390.c (s390_split_branches, s390_chunkify_pool): Likewise.
4143 * sh.c (sh_cfun_interrupt_handler_p): Likewise.
4144 * xtensa.c (xtensa_build_va_list): Likewise.
4146 2002-08-11 Neil Booth <neil@daikokuya.co.uk>
4148 * c-common.h (enum c_language_kind): Emphasize that clk_c is 0.
4149 * c-opts.c (parse_option): Rename find_opt.
4150 (set_std_c99): New function.
4151 (COMMAND_LINE_OPTIONS): Handle -remap and -o. Remove OPT_std_bad.
4152 (missing_arg): Remove OPT_std_bad. Handle -o.
4153 (c_common_decode_option): Handle input and output file names,
4154 -o and -remap. Clean up -std= handling.
4155 * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_o and OPT_remap.
4156 (cpp_handle_option): Similarly. Don't handle filenames.
4158 Sun Aug 11 14:43:17 CEST 2002 Jan Hubicka <jh@suse.cz>
4160 * i386.c (classify_argument): Fix computing of field's offsets.
4162 2002-08-11 Andreas Jaeger <aj@suse.de>
4165 * doc/invoke.texi (i386 and x86-64 Options): Document -mcmodel.
4167 2002-08-10 Ziemowit Laski <zlaski@apple.com>
4169 * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Replace
4170 reference to clk_objective_c with flag_objc.
4171 * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS):
4173 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Likewise.
4175 2002-08-10 Neil Booth <neil@daikokuya.co.uk>
4177 * c-opts.c (set_std_cxx98, set_std_c89): New.
4178 (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
4179 (c_common_decode_option): Handle new switches from cppinit.c.
4181 * cppinit.c (set_lang): Rename cpp_set_lang. Export.
4182 (no_arg, no_num): Remove.
4183 (COMMAND_LINE_OPTIONS): Move more to c-opts.c. Drop all lang-
4184 switches apart from -lang-objc and lang-asm.
4185 (cpp_handle_option): Similarly.
4186 * cpplib.h (cpp_set_lang): New.
4187 * doc/cppopts.texi, doc/invoke.texi: Document -std=c++98,
4189 * objc/lang-specs.h: Remove -ansi.
4191 Sat Aug 10 19:59:43 CEST 2002 Jan Hubicka <jh@suse.cz>
4194 * cfg.c (redirect_edge_succ_nodup): Avoid overflows due to roundoff
4197 2002-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4199 * emit-rtl.c (emit_jump_insn_before, emit_call_insn_before,
4200 emit_jump_insn): Fix uninitialized variable.
4201 * gcov.c (init_line_info): Likewise.
4202 * genautomata.c (transform_3): Add braces around ambiguous
4204 * ifcvt.c (cond_exec_process_insns): Mark parameter with
4206 * ra-build.c (parts_to_webs_1): Fix uninitialized variable.
4207 * regrename.c (copyprop_hardreg_forward): Fix uninitialized
4210 * gengtype.c (write_gc_structure_fields): Avoid signed/unsigned
4211 warnings in output files.
4213 2002-08-09 Ziemowit Laski <zlaski@apple.com>
4215 * c-common.c (flag_objc): New.
4216 * c-common.h (c_language_kind): Get rid of clk_objective_c
4218 (flag_objc): New extern declaration.
4219 * c-decl.c (implicitly_declare): Call objc_check_decl
4220 instead of maybe_objc_check_decl.
4221 (finish_decl): Likewise.
4222 (grokfield): Likewise.
4223 (finish_struct): Likewise.
4224 * c-lang.c (maybe_objc_check_decl): Rename to objc_check_decl.
4225 (maybe_objc_comptypes): Rename to objc_comptypes.
4226 (maybe_building_objc_message_expr): Rename to
4227 objc_message_selector.
4228 * c-lex.c (lex_charconst): Remove uses of clk_objective_c,
4229 replace with flag_objc as needed.
4230 * c-opts.c (c_common_init_options): Likewise.
4231 (c_common_decode_option): Likewise.
4232 * c-parse.in (init_reswords): Likewise.
4233 * c-tree.h (maybe_objc_check_decl): Rename to objc_check_decl.
4234 (maybe_objc_comptypes): Rename to objc_comptypes.
4235 (maybe_building_objc_message_expr): Rename to
4236 objc_message_selector.
4237 * c-typeck.c (comptypes): Call objc_comptypes instead of
4238 maybe_objc_comptypes, and/or objc_message_selector instead of
4239 maybe_building_objc_message_expr.
4240 (comp_target_types): Likewise.
4241 (convert_for_assignment): Likewise.
4242 (warn_for_assignment): Likewise.
4243 * cppinit.c (init_builtins): Set __OBJC__ manifest constant
4244 independently of those for other languages.
4245 * objc/objc-act.c (maybe_objc_comptypes): Delete.
4246 (maybe_objc_check_decl): Delete.
4247 (maybe_building_objc_message_expr): Rename to
4248 objc_message_selector.
4249 * objc/objc-lang.c (objc_init_options): Use clk_c instead of
4250 clk_objective_c; set flag_objc flag.
4252 2002-08-09 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
4254 * ifcvt.c (find_if_case_2): Test correct basic block for size.
4256 2002-08-09 Dale Johannesen <dalej@apple.com>
4258 * config/rs6000/rs6000.md: Add sibcall patterns.
4259 * config/rs6000/rs6000.h (FUNCTION_OK_FOR_SIBCALL): Define.
4260 * config/rs6000/rs6000.c (rs6000_ra_ever_killed):
4261 Rewritten to handle sibcalls.
4262 * config/rs6000/rs6000.c (function_ok_for_sibcall): New.
4263 * config/rs6000/rs6000-protos.h (function_ok_for_sibcall): New.
4265 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
4267 * profile.c (da_file_name): New static var.
4268 (init_branch_prob): Initialize it.
4269 (end_branch_prob): Remove da file.
4271 * Makefile.in (stage1_build): Pass empty COVERAGE_FLAGS.
4272 * configure.in (coverage_flags): Default to nothing.
4273 * configure: Rebuilt.
4275 2002-08-09 Neil Booth <neil@daikokuya.co.uk>
4277 * Makefile.in (c-opts.o): Update
4278 * c-opts.c: Include intl.h.
4279 (print_help): Move from cppinit.c. Remove unused options.
4280 (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
4281 (missing_arg): Complain for switches without an argument.
4282 (c_common_decode_option): Reject missing joined arguments.
4283 Handle new switches from cppinit.c.
4284 * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
4285 (cpp_handle_option): Similarly.
4286 (print_help): Moved to c-opts.c.
4287 * cpplib.h (struct cpp_options): Remove help_only.
4288 * gcc.c (cpp_unique_options): Remove -$.
4289 * doc/cppopts.texi: Undocument -h.
4291 2002-08-08 Jakub Jelinek <jakub@redhat.com>
4293 * config/i386/i386.c (legitimate_constant_p): UNSPEC_TP is not
4294 legitimate constant.
4295 (legitimate_pic_operand_p): Neither pic operand.
4296 (legitimate_address_p): But legitimate address.
4297 (get_thread_pointer): Generate MEM/u instead of CONST around
4299 (print_operand): Remove printing of UNSPEC_TP.
4300 (print_operand_address): And print it here.
4302 2002-08-08 Devang Patel <dpatel@apple.com>
4304 * objc/objc-act.c (build_selector_translation_table): Issue warning,
4305 when -Wselector is used,if method for which selector is being
4306 created does not exist.
4308 2002-08-08 Stephen Clarke <stephen.clarke@superh.com>
4310 * config/sh/sh.c (prepare_move_operands): Only call
4311 target_reg_operand if TARGET_SHMEDIA.
4313 2002-08-08 Jakub Jelinek <jakub@redhat.com>
4315 * config/rs6000/rs6000.h, config/rs6000/aix.h,
4316 config/rs6000/darwin.h, config/rs6000/linux64.h: Revert last
4318 * config/rs6000/sysv4.h: Likewise, remove #undef ADJUST_FIELD_ALIGN.
4320 2002-08-08 Lars Brinkhoff <lars@nocrew.org>
4321 Richard Henderson <rth@redhat.com>
4323 * emit-rtl.c (gen_rtx_REG): After reload, only return
4324 frame_pointer_rtx or hard_frame_pointer_rtx if frame_pointer_needed.
4326 2002-08-08 Jakub Jelinek <jakub@redhat.com>
4328 * config/rs6000/rs6000-protos.h (rs6000_field_alignment): Remove.
4329 * config/rs6000/rs6000.c (rs6000_field_alignment): Move...
4330 * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): ...inline into the
4333 2002-08-08 Adam Nemet <anemet@lnxw.com>
4335 * config/arm/arm.c (thumb_unexpanded_epilogue): Stack the PIC
4337 (thumb_expand_prologue): Likewise.
4338 (thumb_output_function_prologue): Likewise.
4339 * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Account for
4340 the additional push of the PIC register.
4342 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
4344 * configure.in (enable_coverage): New enable switch.
4345 * configure: Rebuilt.
4346 * Makefile.in (COVERAGE_FLAGS, coverageexts): New variables.
4347 (INTERNAL_CFLAGS): Append COVERAGE_FLAGS.
4348 (ALL_FLAGS): Reorder so INTERNAL_CFLAGS comes after CFLAGS.
4349 (mostlyclean): Remove coverage files.
4350 * doc/install.texi: Document enable_coverage.
4352 * cp/Make-lang.in (c++.mostlyclean): Remove coverage files.
4353 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
4354 * f/Make-lang.in (f.mostlyclean): Remove coverage files.
4355 * java/Make-lang.in (java.mostlyclean): Remove coverage files.
4356 * objc/Make-lang.in (objc.mostlyclean): Remove coverage files.
4357 * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage
4360 2002-08-08 Neil Booth <neil@daikokuya.co.uk>
4362 * c-opts.c (cpp_opts): New.
4363 (COMMAND_LINE_OPTIONS): Add switches from cppinit.c.
4364 (c_common_decode_options): Handle cpplib switches.
4365 (c_common_init_options): Set cpp_opts.
4366 * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
4367 (cpp_handle_option): Similarly.
4369 2002-08-08 David Edelsohn <edelsohn@gnu.org>
4371 * config/rs6000/aix.h (TARGET_ALTIVEC): Define to 0.
4372 (TARGET_ALTIVEC_ABI): Same.
4373 (TARGET_ALTIVEC_VRSAVE): Same.
4375 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Check
4376 icode not CODE_FOR_nothing. Change switch to if.
4378 2002-08-08 Alan Modra <amodra@bigpond.net.au>
4380 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Pass -mpower4 when cpu=power4.
4382 2002-08-08 Jakub Jelinek <jakub@redhat.com>
4384 * stor-layout.c (place_union_field): For bitfields if
4385 PCC_BITFIELD_TYPE_MATTERS and TYPE_USER_ALIGN, set record's
4388 2002-08-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
4390 * pa.c (struct deferred_plabel): Constify name field.
4392 2002-08-07 Neil Booth <neil@daikokuya.co.uk>
4394 * cppmacro.c (_cpp_builtin_macro_text): Remove unused variable.
4396 2002-08-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
4398 * configure.in (PREFIX_INCLUDE_DIR): Don't define if prefix and
4399 local_prefix are the same.
4400 * configure: Rebuilt.
4402 2002-08-07 Jakub Jelinek <jakub@redhat.com>
4403 Richard Henderson <rth@redhat.com>
4405 * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
4406 to type_align when PCC_BITFIELD_TYPE_MATTERS. Only apply
4407 ADJUST_FIELD_ALIGN if not DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
4408 (place_field): Likewise.
4409 * config/i386/i386.c (x86_field_alignment): Don't check
4410 DECL_USER_ALIGN here.
4411 * config/rs6000/rs6000.c (rs6000_field_alignment): New.
4412 * config/rs6000/rs6000-protos.h (rs6000_field_alignment): New
4414 * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): Define.
4415 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Remove.
4416 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Remove.
4417 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Remove.
4418 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove.
4419 * doc/tm.texi (ADJUST_FIELD_ALIGN): Update description.
4421 2002-08-07 Neil Booth <neil@daikokuya.co.uk>
4423 * Makefile.in (c-opts.o, c-common.o, C_AND_OBJC_OBJS): Update.
4424 * c-common.c: Don't include tree-inline.h.
4425 (c_common_init_options, c_common_post_options): Move to c-opts.c.
4426 * c-common.h (c_common_decode_option): New.
4427 * c-decl.c (c_decode_option): Remove.
4428 * c-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
4429 * c-opts.c: New file.
4430 * c-tree.h (c_decode_option): Remove.
4431 * doc/passes.texi: Update.
4432 * objc/objc-act.c (objc_decode_option): Remove.
4433 * objc/objc-act.h (objc_decode_option): Remove.
4434 * objc/ojbc-lang.c (LANG_HOOKS_DECODE_OPTION): Use
4435 c_common_decode_option.
4437 2002-08-07 Chris Demetriou <cgd@broadcom.com>
4439 * config/mips/mips.md (sunlt_sf, suneq_sf, sunle_sf): Remove
4440 dependency on TARGET_DOUBLE_FLOAT.
4442 2002-08-07 Stephen Clarke <stephen.clarke@superh.com>
4444 * config/sh/lib1funcs.asm (GCC_shcompact_incoming_args): Don't
4445 overwrite callee-save registers. Fix comment.
4447 2002-08-06 Chris Demetriou <cgd@broadcom.com>
4449 * config/mips/mips.c (override_options): Set MASK_BRANCHLIKELY
4450 in target_flags based on ISA, if it was not set on the command
4451 line. Warn if MASK_BRANCHLIKLEY is set but the ISA does not
4452 support Branch Likely instructions.
4453 * config/mips/mips.h (MASK_BRANCHLIKLEY): New macro.
4454 (TARGET_BRANCHLIKELY): Likewise.
4455 (TARGET_SWITCHES): Add -mbranch-likely and -mno-branch-likely.
4456 (GENERATE_BRANCHLIKELY): Use TARGET_BRANCHLIKELY rather than
4457 ISA_HAS_BRANCHLIKELY.
4458 (ISA_HAS_BRANCHLIKELY): Do not include MIPS16 check.
4459 * doc/invoke.texi: Document new MIPS -mbranch-likely and
4460 -mno-branch-likely options.
4462 2002-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4464 * ip2k.c (ip2k_set_compare): Add missing iteration variable.
4466 * Makefile.in (dummy-conditions.o): Depend on $(HCONFIG_H) not
4469 2002-08-06 Aldy Hernandez <aldyh@redhat.com>
4471 * c-decl.c (duplicate_decls): Error out for incompatible TLS
4474 * testsuite/gcc.dg/tls/diag-3.c: New.
4476 2002-08-06 Dale Johannesen <dalej@apple.com>
4478 * c-common.c (fname_decl): Use line number 0 for
4479 __func__, to avoid confusing debuggers.
4481 2002-08-06 Nathan Sidwell <nathan@codesourcery.com>
4484 (struct line_info, struct coverage): New structures.
4485 (gcov_file_name, gcov_file): Remove globals.
4486 (output_data): Take source file parameter. Fix memory leak. Break
4488 (init_line_info, output_line_info, make_gcov_file_name,
4489 accumulate_branch_counts): ... here.
4490 (calculate_branch_probs, function_summary): Adjust.
4492 (function_*): Remove global variables.
4494 2002-08-06 Neil Booth <neil@daikokuya.co.uk>
4496 * dwarf2out.c: Remove unused macros.
4498 2002-08-06 Neil Booth <neil@daikokuya.co.uk>
4500 * function.c (TRAMPOLINE_ALIGNMENT): Always defined.
4502 2002-08-06 Neil Booth <neil@daikokuya.co.uk>
4504 * cppinit.c (struct lang_flags): Rename trigraphs std.
4506 * cpplib.h (struct cpp_options): New member std.
4507 * cppmacro.c (_cpp_builtin_macro_text): Use std.
4508 (collect_args): Flag whether to swallow a possible future
4509 comma pasted with varargs.
4510 (replace_args): Use this flag.
4511 * doc/cpp.texi: Update varargs extension documentation.
4513 2002-08-06 Jakub Jelinek <jakub@redhat.com>
4515 * config/i386/mmintrin.h (__m64): Make the type 64-bit aligned.
4517 2002-08-06 Jakub Jelinek <jakub@redhat.com>
4519 * config/i386/i386.c (x86_field_alignment): Apply min for all MODE_INT
4520 and MODE_CLASS_INT modes.
4522 2002-08-06 Jakub Jelinek <jakub@redhat.com>
4524 * config.gcc (*-*-linux*): Default to --enable-threads=posix if no
4525 --{enable,disable}-threads is given to configure.
4526 (alpha*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux*,
4527 x86_64-*-linux*, ia64*-*-linux*, m68k-*-linux*, mips*-*-linux*,
4528 powerpc-*-linux-gnualtivec*, powerpc-*-linux*, s390-*-linux*,
4529 s390x-*-linux*, sh-*-linux*, sparc-*-linux*, sparc64-*-linux*):
4530 Remove thread_file setting here.
4532 2002-08-06 David Edelsohn <edelsohn@gnu.org>
4534 * doc/install.texi (Binaries): Update Bull Freeware URL.
4536 2002-08-06 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4538 * doc/gcc.texi (Top): Rename Index to Keyword Index.
4540 2002-08-05 Nathan Sidwell <nathan@codesourcery.com>
4542 * gcov.c (output_data): Round to % to nearest, tweak formatting.
4544 2002-08-05 Jakub Jelinek <jakub@redhat.com>
4546 * fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one
4547 of the operands into MINUS_EXPR if code is PLUS_EXPR.
4549 2002-08-05 Douglas B Rupp <rupp@gnat.com>
4551 * config.gcc (i[34567]86-*-interix*): Replace interix.o with winnt.o
4552 * config/i386/i386-interix.h (TARGET_NOP_FUN_DLLIMPORT,
4553 drectve_section): Define.
4554 * config/i386/t-interix: Replace interix.o rule with winnt.o.
4555 * config/i386/interix.c: Remove.
4557 2002-08-05 Geoffrey Keating <geoffk@redhat.com>
4559 * attribs.c: Don't include obstack.h.
4560 * builtins.c: Likewise.
4561 * cfganal.c: Likewise.
4562 * cfgbuild.c: Likewise.
4563 * cfgcleanup.c: Likewise.
4564 * emit-rtl.c: Likewise.
4568 * Makefile.in (s-gtype): Re-add dependency on $(GTFILES).
4570 2002-08-05 Gabriel Dos Reis <gdr@nerim.net>
4572 * doc/c-tree.texi (Expression trees): Document VA_ARG_EXPR
4574 2002-08-04 Chris Demetriou <cgd@broadcom.com>
4576 * doc/invoke.texi: Remove duplicated paragraph describing
4579 2002-08-04 Geoffrey Keating <geoffk@redhat.com>
4581 * Makefile.in (sdbout.o): Doesn't need $(OBSTACK_H).
4582 * collect2.h (permanent_obstack): Delete declaration.
4583 * collect2.c (permanent_obstack): Delete definition.
4584 (main): Don't initialize permanent_obstack. Use xstrdup instead.
4585 * expr.c: Don't include obstack.h.
4586 (permanent_obstack): Delete declaration.
4587 * function.c: Don't include obstack.h.
4588 (permanent_obstack): Delete declaration.
4589 * integrate.c: Don't include obstack.h.
4590 (function_maybepermanent_obstack): Delete declaration.
4591 * print-tree.c (debug_tree): Use x*alloc not permalloc.
4592 * sdbout.c (gen_fake_label): Use x*alloc not permalloc.
4593 * tlink.c (pfgets): Use xstrdup not permanent_obstack.
4594 * toplev.c (lang_independent_init): Rename init_obstacks to init_ttree.
4595 * tree.h: Rename init_obstacks to init_ttree. Remove declarations
4596 of permalloc, expralloc, perm_calloc.
4597 * tree.c (permanent_obstack): Delete definition.
4598 (init_ttree): Rename from init_obstacks.
4599 (permalloc): Delete.
4600 (perm_calloc): Delete.
4601 (dump_tree_statistics): Don't print information about
4603 * varasm.c (assemble_start_function): Use xstrdup instead of
4605 (assemble_variable): Likewise.
4606 * config/alpha/alpha.c (unicosmk_need_dex): Use xmalloc instead of
4608 (unicosmk_add_extern): Likewise.
4609 * config/c4x/c4x.c (c4x_external_ref): Likewise.
4610 (c4x_global_label): Likewise.
4611 * config/frv/frv.c (frv_encode_section_info): Likewise.
4612 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
4613 (i386_pe_record_exported_symbol): Likewise.
4614 * config/mips/mips.c (mips_output_external): Likewise.
4615 (mips_output_external_libcall): Likewise.
4616 * config/pa/pa.c: (permanent_obstack): Delete declaration.
4617 (output_call): Use ggc_strdup instead of allocating on
4619 * config/romp/romp.c: Include ggc.h.
4620 (get_symref): Don't declare permanent_obstack, use ggc_strdup
4621 intead of permanent_obstack.
4622 * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use concat
4623 instead of permalloc.
4624 * config/rs6000/rs6000.c (rs6000_gen_section_name): Use xmalloc
4625 instead of permalloc
4626 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Use concat
4627 instead of permalloc.
4628 * config/vax/vax.c (vms_check_external): Use xmalloc instead of
4631 2002-08-04 Bernd Schmidt <bernds@redhat.com>
4633 Contribute a port developed primarily by Michael Meissner,
4634 Catherine Moore, and Richard Sandiford <rsandifo@redhat.com>.
4635 * config.gcc: Add frv-elf target.
4636 * config/frv/cmovd.c: New file.
4637 * config/frv/cmovh.c: New file.
4638 * config/frv/cmovw.c: New file.
4639 * config/frv/frv-abi.h: New file.
4640 * config/frv/frv-asm.h: New file.
4641 * config/frv/frv-modes.def: New file.
4642 * config/frv/frv-protos.h: New file.
4643 * config/frv/frv.c: New file.
4644 * config/frv/frv.h: New file.
4645 * config/frv/frv.md: New file.
4646 * config/frv/frvbegin.c: New file.
4647 * config/frv/frvend.c: New file.
4648 * config/frv/lib1funcs.asm: New file.
4649 * config/frv/media.h: New file.
4650 * config/frv/modi.c: New file.
4651 * config/frv/t-frv: New file.
4652 * config/frv/uitod.c: New file.
4653 * config/frv/uitof.c: New file.
4654 * config/frv/ulltod.c: New file.
4655 * config/frv/ulltof.c: New file.
4656 * config/frv/umodi.c: New file.
4657 * config/frv/xm-frv.h: New file.
4659 * config/frv/media.h: Removed again.
4661 2002-08-04 Nathan Sidwell <nathan@codesourcery.com>
4663 * gcov.c (bb_file_time): New static variable.
4664 (object_directory): May also be object file.
4665 (preserve_paths): New static variable.
4666 (print_usage): Adjust.
4668 (process_args): Adjust.
4669 (open_files): Simplify. Cope when OBJECT_DIRECTORY is an object
4670 file. Find modification date on bb file.
4671 (read_profile): Don't rewind a NULL file.
4672 (format_hwint): New static function.
4673 (function_summary): Use format_hwint.
4674 (output_data): SOURCE_FILE_NAME is never relative to
4675 OBJECT_DIRECTORY. Use format_hwint. Adjust gcov file name
4676 mangling. Adjust output format to make it more machine readable.
4677 * doc/gcov.texi: Document & clarify semantics.
4679 2002-08-04 Joseph S. Myers <jsm@polyomino.org.uk>
4681 * doc/include/gcc-common.texi (version-GCC): Increase to 3.3.
4683 2002-08-04 Nathan Sidwell <nathan@codesourcery.com>
4685 * gcc.c (cc1_options): Pass output file as auxbase when
4687 * profile.c (init_branch_prob): FILENAME has already had ending
4689 * final.c (end_final): Likewise.
4690 * toplev.c (aux_base_name): New global.
4691 (compile_file): Pass aux_base_name to init init_branch_prob and
4693 (independent_decode_option, case 'a'): New auxinfo options.
4694 (case 'd'): Protect against mising basename.
4695 (do_compile): Initialize aux_base_name.
4696 * toplev.h (aux_base_name): New global.
4697 * doc/invoke.texi: Adjust documentation.
4699 2002-08-04 Nathan Sidwell <nathan@codesourcery.com>
4701 * config/i386/i386.c (x86_field_alignment): Remove duplicate test
4702 of TARGET_ALIGN_DOUBLE.
4704 2002-08-04 Gabriel Dos Reis <gdr@nerim.net>
4706 * diagnostic.c (inform): New function.
4707 * diagnostic.h (inform): Declare.
4709 2002-08-03 David Edelsohn <edelsohn@gnu.org>
4711 * config/rs6000/rs6000.md (movsi_internal1): Add nop mnemonic.
4712 (movhi_internal): Same.
4713 (movqi_internal): Same.
4714 (movdi_internal64): Same.
4716 * config/rs6000/t-ppccomm (MULTILIB_MATCHES_FLOAT): Add mcpu=405.
4718 * config/rs6000/xcoff.h (SKIP_ASM_OP): Define.
4719 (ASM_OUTPUT_SKIP): Use it. SIZE unsigned.
4720 (COMMON_ASM_OP): Define.
4721 (ASM_OUTPUT_ALIGNED_COMMON): Use it. SIZE unsigned.
4722 Use ALIGN parameter.
4723 (LOCAL_COMMON_ASM_OP): Define.
4724 (ASM_OUTPUT_LOCAL): Use it. SIZE unsigned.
4726 2002-08-03 Roger Sayle <roger@eyesopen.com>
4728 * builtins.def: Define new builtin functions exp, expf, expl,
4729 log, logf and logl (and their __builtin_* variants).
4730 * optabs.h (enum optab_index): Add new OTI_exp and OTI_log.
4731 Define exp_optab and log_optab.
4732 * optabs.c (init_optans): Initialize exp_optab and log_optab.
4733 * genopinit.c (optabs): Implement exp_optab and log_optab
4734 using exp?f2 and log?f2 patterns.
4735 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP*
4736 and BUILT_IN_LOG* using exp_optab and log_optab respectively.
4737 (expand_builtin): Ignore the new builtins (and all cos and
4738 sin variants) when not optimizing. Expand new builtins via
4739 expand_builtin_mathfn when flag_unsafe_math_optimizations.
4741 * doc/extend.texi: Document new exp and log builtins.
4742 * doc/md.texi: Document new exp?f2 and log?f2 patterns
4743 (and previously undocumented cos?f2 and sin?f2 patterns).
4745 2002-08-03 Jason Merrill <jason@redhat.com>
4747 * explow.c (int_expr_size): New fn.
4748 * expr.c (expand_expr) [CONSTRUCTOR]: Use it.
4749 * expr.h: Declare it.
4751 2002-08-02 Krister Walfridsson <cato@df.lth.se>
4753 * Makefile.in (gengtype-lex.o, gengtype-yacc.o): Add path to
4754 gengtype-* dependencies.
4756 2002-08-02 Eric Christopher <echristo@redhat.com>
4758 * config.gcc (mips*-*-linux*): Fix ordering of tm_file.
4759 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Change
4761 (TARGET_MEM_FUNCTIONS): Define instead of define to 1.
4763 2002-08-02 David Edelsohn <edelsohn@gnu.org>
4766 * config/rs6000/rs6000.h (RTX_COSTS): Artificially make MULT
4767 small if optimizing for size.
4769 2002-08-02 Daniel Jacobowitz <drow@mvista.com>
4771 * configure.in (FORBUILD): Use $build_alias.
4772 * configure: Regenerated.
4774 2002-08-02 Richard Sandiford <rsandifo@redhat.com>
4776 * config.gcc: Don't include mips/abi64.h in $tm_file.
4777 * hard-reg-set.h (call_really_used_regs): Declare.
4778 * config/mips/abi64.h: Remove file.
4779 * config/mips/linux.h,
4780 * config/mips/iris6.h: Don't include it.
4781 * config/mips/mips-protos.h (mips_conditional_register_usage): Declare.
4782 * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Use it.
4783 (REG_PARM_STACK_SPACE, STACK_BOUNDARY, STRICT_ARGUMENT_NAMING,
4784 FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_PADDING,
4785 FUNCTION_ARG_CALLEE_COPIES, MUST_PASS_IN_STACK, MIPS_STACK_ALIGN):
4786 Bring across definitions from abi64.h.
4787 (GP_ARG_LAST, FP_ARG_LAST): Use MAX_ARGS_IN_REGISTERS.
4788 (BIGGEST_MAX_ARGS_IN_REGISTERS): New.
4789 (struct mips_args): Use it.
4790 * config/mips/mips.c (mips_conditional_register_usage): Define.
4792 2002-08-02 Jason Merrill <jason@redhat.com>
4794 * langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.
4795 * langhooks.c (lhd_expr_size): Define default.
4796 * langhooks.h (struct lang_hooks): Add expr_size.
4797 * explow.c (expr_size): Call it.
4798 * expr.c (store_expr): Don't copy an expression of size zero.
4799 (expand_expr) [CONSTRUCTOR]: Use expr_size to calculate how much
4801 * Makefile.in (builtins.o): Depend on langhooks.h.
4803 2002-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4805 * Makefile.in (ra-debug.o): Depend on $(TM_P_H).
4806 * ra-debug.c: Include "tm_p.h".
4807 * ra-rewrite.c (is_partly_live_1): Change return type to bool.
4809 2002-08-02 Toon Moene <toon@moene.indiv.nluug.nl>
4811 * simplify-rtx.c (simplify_binary_operation): x * 1 is allowed
4812 when not honoring signalling NaNs.
4813 (simplify_ternary_operation): a == b has a definite value
4814 when not honoring NaNs.
4816 2002-08-02 Jason Merrill <jason@redhat.com>
4818 * gdbinit.in (pct): New macro.
4820 2002-08-01 Stan Shebs <shebs@apple.com>
4821 Andreas Tobler <toa@pop.agri.ch>
4823 * ginclude/stddef.h (_BSD_SIZE_T_DEFINED_): Define if not defined,
4824 plays nice with Darwin headers.
4825 (_BSD_RUNE_T_DEFINED_): Likewise.
4827 2002-08-01 Zack Weinberg <zack@codesourcery.com>
4829 * c-common.c (c_common_init): -Wtraditional also implies -Wlong-long.
4830 * cppinit.c (cpp_post_options): Likewise.
4832 * cppexp.c (cpp_classify_number): Suppress -Wtraditional
4833 warning about 'LL' suffix (but not 'ULL' etc) when
4834 -Wno-long-long is in effect.
4836 * cppmacro.c (_cpp_builtin_macro_text) [BT_TIME, BT_DATE]:
4837 Check for failing time()/localtime(), issue a warning, and
4838 make __TIME__ and __DATE__ expand to fallback strings.
4840 * doc/cpp.texi, doc/extend.texi: Document behavior of __DATE__
4841 and __TIME__ when the date and time cannot be determined.
4843 2002-08-02 Alan Modra <amodra@bigpond.net.au>
4845 * config/rs6000/rs6000.c (output_cbranch): Hint differently for power4.
4847 2002-08-01 Daniel Jacobowitz <drow@mvista.com>
4849 * Makefile.in ($(BUILD_PREFIX_1)ggc-none.o): Use $(GGC_H).
4851 2002-08-01 Chris Demetriou <cgd@broadcom.com>
4853 * config.gcc (mipsisa64sb1-*-elf*): New configuration.
4854 (mipsisa64sb1el-*-elf*): Likewise.
4855 * config/mips/mips.c (mips_cpu_info_table): Add sb1.
4856 * config/mips/mips.h (processor_type): Add PROCESSOR_SB1.
4857 (TARGET_SB1, TUNE_SB1): New macros.
4858 * doc/invoke.texi: Add sb1 to documentation for MIPS -march and
4861 2002-08-01 David Edelsohn <edelsohn@gnu.org>
4863 * varasm.c (asm_emit_uninitialized): Return false if global BSS
4864 and ASM_EMIT_BSS not supported by target.
4865 (assemble_variable): Do not duplicate uninitialized logic.
4866 Fall through if asm_emit_uninitialized failed.
4868 2002-08-01 Chris Demetriou <cgd@broadcom.com>
4870 * config/mips/mips.h (BRANCH_LIKELY_P): Remove unused macro.
4872 2002-08-02 Alan Modra <amodra@bigpond.net.au>
4874 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Define.
4875 (DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC): Define.
4877 * config/rs6000/rs6000.c (output_toc): Don't use lshift_double when
4878 HOST_BITS_PER_WIDE_INT == 64.
4880 2002-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4882 * df.c (df_insn_table_realloc): Change parameter to unsigned.
4883 * optabs.c (expand_binop): Make variable unsigned.
4884 * simplify-rtx.c (simplify_subreg): Likewise.
4885 * unroll.c (unroll_loop): Cast to avoid signed/unsigned warnings.
4887 2002-08-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4889 * c-common.c (cb_register_builtins): Always define __GXX_ABI_VERSION.
4891 2002-08-01 Richard Henderson <rth@redhat.com>
4893 * toplev.c (parse_options_and_default_flags): Don't set
4894 flag_reorder_blocks for -Os.
4896 * config/avr/avr.c (avr_optimization_options): Remove.
4897 * config/avr/avr.h (OPTIMIZATION_OPTIONS): Remove.
4898 * config/m68hc11/m68hc11.c (m68hc11_optimization_options): Remove.
4899 * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Remove.
4901 2002-08-01 H.J. Lu <hjl@gnu.org>
4902 Richard Henderson <rth@redhat.com>
4904 * output.h (DECL_READONLY_SECTION): Remove.
4905 (decl_readonly_section): Declare.
4906 * varasm.c (decl_readonly_section): New.
4907 (default_section_type_flags, default_select_section): Use it.
4908 * config/arm/pe.c (arm_pe_unique_section): Likewise.
4909 * config/i386/interix.c (i386_pe_unique_section): Likewise.
4910 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
4911 * config/mcore/mcore.c (mcore_unique_section): Likewise.
4912 * config/mips/mips.c (mips_unique_section): Likewise.
4914 2002-08-01 Richard Henderson <rth@redhat.com>
4916 * integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it
4917 refers to a subroutine parameter.
4919 2002-08-01 Jakub Jelinek <jakub@redhat.com>
4921 * varasm.c (assemble_visibility): Strip name encoding.
4923 2002-08-01 Ian Dall <ian@sibyl.beware.dropbear.id.au>
4925 * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE): Correct earlier patch.
4926 (RETURN_ADDR_RTX): Cannot determine return address for FRAME > 0
4927 when there is no frame pointer.
4928 (INITIAL_FRAME_POINTER_OFFSET): Count stack space for saved fp
4930 * config/ns32k/__unorddf2.c: New file.
4931 * config/ns32k/__unordsf2.c: New file.
4932 * config/ns32k/t-ns32k: New file.
4933 * config.gcc (ns32k-*-netbsd*): Use it.
4935 2002-08-01 Aldy Hernandez <aldyh@redhat.com>
4937 * config/rs6000/rs6000.h (SPU_CONST_OFFSET_OK): Change to 0xff.
4939 2002-08-01 Neil Booth <neil@daikokuya.co.uk>
4941 * c-common.c (__GXX_ABI_VERSION): Correct spelling.
4943 2002-08-01 Benjamin Kosnik <bkoz@redhat.com>
4945 * c-common.c (cb_register_builtins): Set __GXX_ABI_VERSION__ to 102.
4947 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
4949 * config/mips/mips.md: Add [!]TARGET_MIPS16 to sgtu conditions.
4951 2002-08-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4953 * gcse.c (expr_hash_table_size, n_exprs, set_hash_table_size,
4955 (expr_hash_table, set_hash_table): Type changed to ...
4956 (struct hash_table): New type.
4957 (hash_scan_insn, hash_scan_set, hash_scan_clobber, hash_scan_call,
4958 insert_expr_in_table, insert_set_in_table, compute_hash_table,
4959 dump_hash_table, lookup_expr, lookup_set, compute_local_properties,
4960 compute_ae_gen, compute_ae_kill): Modified to pass the table explicitly.
4961 (alloc_set_hash_table, alloc_expr_hash_table): Merged to ...
4962 (alloc_hash_table): New.
4963 (free_set_hash_table, free_expr_hash_table): Merged to ...
4964 (free_hash_table): New.
4965 (compute_set_hash_table, compute_expr_hash_table): Merged to ...
4966 (compute_hash_table_work): New.
4967 (classic_gcse, one_classic_gcse_pass, compute_cprop_data,
4968 find_avail_set, one_cprop_pass, find_bypass_set, compute_pre_data,
4969 pre_edge_insert, pre_insert_copies, pre_delete, pre_gcse,
4970 one_pre_gcse_pass, compute_transpout, compute_code_hoist_vbeinout,
4971 hoist_code, one_code_hoisting_pass,
4972 trim_ld_motion_mems): Altered due to changed type of hash tables.
4974 2002-08-01 Zack Weinberg <zack@codesourcery.com>
4976 * final.c (output_alternate_entry_point):
4977 If ASM_OUTPUT_TYPE_DIRECTIVE is defined, use it.
4979 2002-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4981 * objc/objc-act.c (encode_complete_bitfield): Add prototype and
4982 avoid ISO C style function definition.
4984 * expr.c (expand_assignment): Delete unused variable.
4986 2002-08-01 Toon Moene <toon@moene.indiv.nluug.nl>
4988 * c-common.c (cb_register_builtins): Set
4989 __FINITE_MATH_ONLY__ to 1 if -ffinite-math-only
4990 is given, and to 0 otherwise.
4991 * combine.c (simplify_if_then_else): HONOR_NANS
4992 implies FLOAT_MODE_P.
4994 2002-08-01 Neil Booth <neil@daikokuya.co.uk>
4996 * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_dollar.
4997 (cpp_handle_option): Don't handle it.
4998 (print_help): Update.
4999 * doc/cppopts.texi: Update.
5001 2002-08-01 Neil Booth <neil@daikokuya.co.uk>
5003 * c-common.c (cb_register_builtins): If C++, define
5004 __EXCEPTIONS, __DEPRECATED and __GXX_ABI_VERSION as appropriate.
5005 * gcc.c (cpp_unique_options): Remove __GXX_ABI_VERSION.
5007 * lang-specs.h: Simplify in accordance with new code in
5010 2002-08-01 Neil Booth <neil@daikokuya.co.uk>
5012 * c-common.c: Define all C/ObjC/C++ warning and flag variables.
5013 * c-common.h: Declare all C/ObjC/C++ warning and flag variables.
5014 * c-decl.c: Move all warning and flag variables to c-common.c.
5015 * c-format.c: Move all warning variables to c-common.c.
5016 * c-tree.h: Move all warning and flag declarations to c-common.h.
5017 * objc/objc-act.c: Move all warning variables to c-common.c.
5018 (flag_warn_protocol): Rename warn_protocol.
5020 2002-07-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
5022 * pa-linux.h (GLOBAL_ASM_OP): Fix typo.
5024 2002-07-31 Graham Stott <graham.stott@btinternet.com>
5026 * config/stormy16/stormy16.h (BSS_SECTION_ASM_OP): Add missing
5029 2002-07-31 Stan Shebs <shebs@apple.com>
5031 * config.gcc (i[34567]86-*-darwin*): New configuration.
5032 * config/darwin.h (TARGET_ENCODE_SECTION_INFO): Undefine before
5034 (TARGET_ENCODE_SECTION_INFO): Ditto.
5035 (ASM_PREFERRED_EH_DATA_FORMAT): Ditto.
5036 * config/darwin.c (machopic_indirect_data_reference): Remove
5037 setting of RTX_UNCHANGING_P.
5038 (machopic_legitimize_pic_address): Move RTX_UNCHANGING_P up so as
5039 not to be applied to sums.
5040 * config/i386/t-darwin: New file.
5041 * config/i386/darwin.h: New file.
5042 * config/i386/i386.h (TARGET_MACHO): Add default definition.
5043 * config/i386/i386.md (tablejump): Add TARGET_MACHO case.
5044 * config/i386/i386.c (output_set_got): For Mach-O, output Mach-O
5045 label and not the GOT add.
5046 (constant_address_p): For Mach-O, seeing a CONST is enough.
5047 (legitimate_pic_address_disp_p): Add a Mach-O case.
5048 (legitimate_address_p): Also test machopic_operand_p if Mach-O.
5049 (legitimize_pic_address): Use generic Mach-O code to legitimize.
5050 (output_pic_addr_const): Suppress @PLT if Mach-O, and parens
5051 if outputting a difference.
5052 (ix86_output_addr_diff_elt): Add Mach-O case.
5053 (ix86_expand_move): Similarly.
5054 (ix86_expand_call): Similarly.
5055 (current_machopic_label_num): New global.
5056 (machopic_output_stub): New function.
5057 (ix86_value_regno): New function.
5058 (ix86_function_value): Use it instead of VALUE_REGNO.
5059 (ix86_libcall_value): Ditto.
5060 * config/i386/unix.h (VALUE_REGNO): Remove.
5062 2002-07-31 Graham Stott <grahas@btinternet.com>
5064 * config/rs6000/rs6000.c(rs6000_hash_constant): Fix
5065 hash for LABEL_REF's.
5067 2002-07-31 Graham Stott <grahams@btinternet.com>
5069 * config/rs6000/rs6000.c (spe_init_builtins,
5070 altivec_init_builtins, rs6000_common_init_builtins):
5071 Replace ANSI with K&R function def.
5073 2002-07-31 David Edelsohn <edelsohn@gnu.org>
5075 * rs6000.c (validate_condition_mode): Test flag_finite_math_only
5078 2002-07-31 Richard Sandiford <rsandifo@redhat.com>
5080 * config/mips/crtn.asm: Don't use __mips16 to determine the
5081 return-address offset. Define RA to a suitable temporary
5082 register for the return address.
5084 2002-07-31 Richard Sandiford <rsandifo@redhat.com>
5086 * config/mips/mips.md (eh_set_lr_si, eh_set_lr_di): Change
5089 2002-07-30 Chris Demetriou <cgd@broadcom.com>
5091 * config/mips/elf.h (STARTFILE_SPEC): Define differently if
5092 default ABI is MEABI. (Undoes incorrect change in Eric Christopher's
5093 patch on 2002-07-29.)
5094 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
5096 2002-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5098 * alpha.h, arc.h, arm/aout.h, avr.h, cris.h, d30v.h, dsp16xx.h,
5099 fr30.h, h8300.h, i370.h, i386/sco5.h, i386/unix.h, i960.h, ia64.h,
5100 ip2k.h, m32r.h, mcore.h, mips.h, mn10200.h, mn10300.h, ns32k.h,
5101 openbsd.h, pa/pa-linux.h, pdp11.h, romp.h, rs6000/sysv4.h,
5102 s390/linux.h, sh.h, sparc.h, stormy16.h, v850.h, vax.h, xtensa.h:
5103 (ASM_GLOBALIZE_LABEL): Delete.
5104 (GLOBAL_ASM_OP): Define.
5106 * m68hc11.h, m68k.h, m88k.h (ASM_GLOBALIZE_LABEL): Delete.
5108 * defaults.h (ASM_GLOBALIZE_LABEL): Provide a default.
5109 * doc/tm.texi (ASM_GLOBALIZE_LABEL): Update docs.
5111 2002-07-30 Geoffrey Keating <geoffk@redhat.com>
5113 * doc/extend.texi (Hints implementation): Document that GCC
5114 mostly ignores `register'.
5116 2002-07-30 Toon Moene <toon@moene.indiv.nluug.nl>
5118 * flags.h: Declare flag_finite_math_only.
5119 Use it in definition of HONOR_NANS and
5121 * c-common.c (cb_register_builtins): Emit
5122 __FINITE_MATH_ONLY__ when flag_finite_math_only
5124 * combine.c (simplify_if_then_else): If
5125 flag_finite_math_only is set, a == b has a
5127 * toplev.c: Initialize flag_finite_math_only.
5128 (set_flags_fast_math): Set it on -ffast-math.
5129 (flag_fast_math_set_p): Test it.
5130 * doc/invoke.texi: Document -ffinite-math-only.
5132 2002-07-30 Richard Henderson <rth@redhat.com>
5134 * ifcvt.c (noce_get_alt_condition): Use reg_overlap_mentioned_p.
5135 (noce_process_if_block): Likewise.
5137 2002-07-30 Bernd Schmidt <bernds@redhat.com>
5139 * ifcvt.c (cond_exec_process_if_block): Fix a merging error.
5140 Bail out early if false_expr is NULL and we'd crash due to this.
5141 * genemit.c (gen_expand): Recognize return insns even if the return
5142 appears in a parallel.
5143 * libgcc2.c: Expand macro DECLARE_LIBRARY_RENAMES if it is defined.
5144 * config/fp-bit.c: Likewise.
5145 * doc/tm.texi: Document it.
5147 2002-07-30 David Edelsohn <edelsohn@gnu.org>
5148 Zack Weinberg <zack@codesourcery.com>
5150 * rs6000.c (rs6000_expand_unop_builtin): Check icode not
5151 CODE_FOR_nothing. Change switch to if.
5152 (rs6000_expand_binop_builtin): Same.
5153 (rs6000_expand_builtin): Expand builtin if target support enabled.
5154 (rs6000_init_builtins): Init builtin if target support enabled.
5155 (rs6000_common_init_builtins): Check icode not CODE_FOR_nothing.
5157 2002-07-30 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5159 * gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101.
5161 2002-07-30 Richard Sandiford <rsandifo@redhat.com>
5163 * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Fix typo.
5165 Tue Jul 30 18:31:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
5167 * sh.md (cond_delay_slot): New attribute.
5168 (cbranch delay): Use it for anulled-true case.
5169 (stuff_delay_slot): New pattern.
5170 * sh.c (print_operand, case '.'): Don't print .s / /s fore zero-length
5172 (gen_far_branch): Emit stuff_delay_slot pattern.
5174 Tue Jul 30 11:21:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
5176 * unroll.c (copy_loop_body): Don't copy NOTE_INSN_LOOP_CONT.
5178 2002-07-30 Kazu Hirata <kazu@cs.umass.edu>
5180 * fold-const.c: Fix comment typos.
5182 * reload1.c: Likewise.
5184 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
5186 * config/rs6000/rs6000.md: Disallow CCEQ compare with crnor/crnot
5189 2002-07-30 Gabriel Dos Reis <gdr@nerim.net>
5191 * c-pretty-print.h (pp_c_statement): Declare.
5192 * c-pretty-print.c (pp_c_postfix_expression): #if 0 support for SRCLOC.
5193 (pp_c_statement): Define.
5195 2002-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5197 * alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h,
5198 darwin.h, dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i960.h,
5199 ip2k.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mips.h,
5200 mn10200.h, mn10300.h, ns32k.h, pa/pa-linux.h, pdp11.h, romp.h,
5201 rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h,
5202 v850.h, vax.h, xtensa.h (ASM_OUTPUT_LABEL): Delete definition.
5204 * defaults.h (ASM_OUTPUT_LABEL): Provide a default.
5205 * doc/tm.texi (ASM_OUTPUT_LABEL): Update docs.
5207 2002-07-30 Gabriel Dos Reis <gdr@nerim.net>
5209 * c-pretty-print.c (pp_c_primary_expression): Handle STMT_EXPR.
5210 (pp_c_postfix_expression): Handle ARROW_EXPR, FFS_EXPR,
5211 COMPOUND_LITERAL_EXPR, VA_ARG_EXPR.
5212 (pp_c_expression): Update.
5214 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5216 * alpha/vms-cc.c (preprocess_args, main): Use xstrdup and/or
5217 concat in lieu of xmalloc/strcpy/memcpy/sprintf.
5218 * alpha/vms-ld.c (main): Likewise.
5219 * dsp16xx.c (double_reg_to_memory): Likewise.
5220 * mcore.c (mcore_expand_prolog): Likewise.
5221 * cppfiles.c (read_name_map): Likewise.
5222 * gensupport.c (process_rtx, identify_predicable_attribute,
5223 alter_test_for_insn): Likewise.
5224 * vmsdbgout.c (write_rtnbeg, vmsdbgout_init): Likewise.
5226 2002-07-29 Roger Sayle <roger@eyesopen.com>
5228 * builtins.c (expand_builtin): Change the default behavior to
5229 only issue an error if the builtin function doesn't have a
5230 fallback library call. Remove several cases handled by the
5233 2002-07-29 John David Anglin <dave@hiauly1.hia.nrc>
5235 * real.c (ieee_24, ieee_53, ieee_64, ieee_113): Define only if the
5236 floating point format of the target is IEEE.
5237 * (dec_f, dec_d, dec_g, dec_h): Define only if the floating point
5238 format of the target is DEC.
5240 2002-07-29 Richard Henderson <rth@redhat.com>
5242 * unroll.c (verify_addresses): Remove.
5243 (find_splittable_givs): Never split DEST_ADDR givs.
5245 2002-07-29 Geoffrey Keating <geoffk@redhat.com>
5247 * doc/gty.texi (GGC Roots): Clarify that the list of syntaxes
5249 (Files): Improve documentation on generated source files.
5251 * doc/extend.texi (Translation implementation): Document what
5252 diagnostics look like.
5253 (Identifiers implementation): Document that there's normally no
5254 limit on identifier names.
5255 (Integers implementation): Document two's complement.
5256 (Hints implementation): Document that GCC honors 'inline', mostly.
5257 (Preprocessing directives implementation): Document that GCC
5258 requires the current time.
5260 2002-07-30 Gabriel Dos Reis <gdr@nerim.net>
5262 * c-pretty-print.h (struct c_pretty_print_info): Add new member.
5263 (pp_initializer): New macro.
5264 (pp_c_initializer): Declare.
5265 * c-pretty-print.c (pp_c_primary_expression): HAndle TARGET_EXPR.
5266 (pp_c_initializer): Define.
5267 (pp_c_initializer_list): New function.
5268 (pp_c_postfix_expression): Handle ABS_EXPR, COMPLEX_CST,
5269 VECTOR_CST, CONSTRUCTOR.
5270 (pp_c_unary_expression): Handle CONJ_EXPR, REALPART_EXPR,
5272 (pp_c_cast_expression): Handle FLOAT_EXPR.
5273 (pp_c_assignment_expression): Handle INIT_EXPR.
5274 (pp_c_expression): Update.
5276 2002-07-30 Neil Booth <neil@daikokuya.co.uk>
5278 * objc/objc-act.c (objc_init): Return immediately if filename
5281 2002-07-29 Eric Christopher <echristo@redhat.com>
5283 * config/mips/elf.h: Remove ecoff.h and gofast includes.
5284 (DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Define unconditionally.
5285 (SDB_DEBUGGING_INFO): Undefine.
5286 (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
5287 (PUT_SDB_SIZE): Remove.
5288 (SUBTARGET_ASM_DEBUGGING_SPEC): Redefine.
5289 (STARTFILE_SPEC): Add isa3264 define.
5290 * config/mips/elf64.h: Ditto. Move TARGET_MEM_FUNCTIONS from here...
5291 * config/mips/ecoff.h: Remove. and here...
5292 * config/mips/iris3.h: and here...
5293 * config/mips/sni-svr4.h: and here...
5294 * config/mips/mips.h: To here. Remove OBJECT_FORMAT_ROSE ifdefs.
5295 Add assembler -mmdebug options for non-dwarf debugging.
5296 * config/mips/r3900.h: Remove debug info defines.
5297 * config/mips/isa32-linux.h: Remove, move functionality to config.gcc.
5298 * config/mips/isa3264.h: Ditto.
5299 * config/mips/t-isa3264: Fix up for file removal and gofast configure
5301 * config/mips/t-elf: Ditto.
5302 * config/mips/t-ecoff: Ditto.
5303 * config/mips/t-r3900: Ditto.
5304 * config/mips/t-iris5-6: Ditto.
5305 * config/mips/t-isa3264: Ditto.
5306 * config/mips/t-linux: Remove.
5307 * config/mips/t-netbsd: Remove.
5308 * config/mips/t-mips: New file.
5309 * config/mips/t-gofast: Ditto.
5310 * config/mips/netbsd.h: Remove unnecessary undefines.
5311 * config/mips/linux.h: Remove #include of mips.h.
5312 * config.gcc: Add mips.h include for elf targets. Remove tm_file
5313 for ecoff. Add gofast configure option for mips.
5315 2002-07-29 Chris Demetriou <cgd@broadcom.com>
5317 * configure.in (mips*-*-*): Add a test to see if MIPS libgloss
5318 linker scripts use STARTUP directives consistently.
5319 * configure: Regenerate.
5320 * config.in: Regenerate.
5321 * config/mips/elf.h (STARTFILE_SPEC): Define conditionally, based
5322 on whether HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is defined.
5323 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
5324 * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine if
5325 HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is set; the result
5328 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
5330 * config/rs6000/rs6000.md ("cpu"): Add ppc8540 to attribute.
5332 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
5334 * config/rs6000/rs6000.h (RTX_COSTS): Add MULT case for 8540.
5336 2002-07-29 Aldy Hernandez <aldy@quesejoda.com>
5338 * config/rs6000/rs6000.md: Move altivec patterns from here...
5340 * config/rs6000/altivec.md: ...to here.
5342 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
5344 * config/rs6000/spe.md ("spe_evmra"): Change to unspec.
5346 2002-07-29 Richard Henderson <rth@redhat.com>
5348 * emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from
5349 set_mem_attributes and add BITPOS argument. Subtract it from
5350 OFFSET when same is adjusted.
5351 (set_mem_attributes): New wrapper function.
5352 * expr.c (expand_assignment): Use set_mem_attributes_minus_bitpos;
5353 remove offset adjustment hack.
5354 * expr.h (set_mem_attributes_minus_bitpos): Declare.
5356 2002-07-29 Gabriel Dos Reis <gdr@nerim.net>
5358 * Makefile.in (C_OBJS): Include c-pretty-print.o
5359 (c-pretty-print.o): Add depency rule.
5360 * pretty-print.h: Add more macros.
5361 * c-pretty-print.c: New file.
5362 * c-pretty-print.h: Likewise.
5364 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
5366 * config/rs6000/spe.h (__internal_ev_mwhgumian): Cast vector
5367 constants to __ev64_s32__.
5368 (__internal_ev_mwhgsmian): Same.
5369 (__internal_ev_mwhgsmfan): Same.
5370 (__internal_ev_mwhgssfan): Same.
5371 (__internal_ev_mwhgumiaa): Same.
5372 (__internal_ev_mwhgsmiaa): Same.
5373 (__internal_ev_mwhgsmfaa): Same.
5374 (__internal_ev_mwhgssfaa): Same.
5376 2002-07-29 David Edelsohn <edelsohn@gnu.org>
5378 * varasm.c (assemble_variable): Narrow test for uninitialized
5379 without BSS target support.
5381 2002-07-29 Nathan Sidwell <nathan@codesourcery.com>
5383 * profile.c: Add file comment describing the overall algorithm and
5385 (struct edge_info): Add comments.
5386 (struct bb_info): Add comments.
5387 * basic-block.h (EDGE_*): Add comments.
5388 * doc/gcov.texi (Gcov Data Files): Document bit flags.
5390 2002-07-29 Bob Wilson <bob.wilson@acm.org>
5392 * config/xtensa/elf.h, config/xtensa/linux.h
5393 (TARGET_OS_CPP_BUILTINS): Define.
5394 (CPP_PREDEFINES): Remove.
5395 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define.
5398 2002-07-29 Zack Weinberg <zack@codesourcery.com>
5400 * gensupport.c: Include hashtab.h.
5401 (insn_elision, condition_table, hash_c_test, cmp_c_test,
5402 maybe_eval_c_test): New routines and data structures to
5403 support insn elision.
5404 (init_md_reader): Read and initialize the condition_table.
5405 (read_md_rtx): Discard insn patterns whose C test is provably
5407 * gensupport.h: Declare new functions and data structures.
5409 * genconditions.c, dummy-conditions.c: New files.
5410 * Makefile.in: Build genconditions; run it to construct
5411 insn-conditions.c; build that and link it into most gen*
5413 (HOST_SUPPORT, HOST_EARLY_SUPPORT): New variables.
5414 (GEN): Delete, unused.
5415 (STAGESTUFF): Update.
5417 * gencodes.c: (gen_insn): #define CODE_FOR_xxx equal to
5418 CODE_FOR_nothing for all elided patterns.
5419 (main): Tweaked to support this.
5420 * genflags.c (gen_proto): Emit a static inline generator
5421 function here for all elided patterns, which simply returns
5423 (gen_insn): Do not define HAVE_xxx for elided patterns.
5424 (main): Tweaked to support this. No need to forward-declare
5426 * genrecog.c: Do not bother emitting the C test if it's known
5427 to be true at compile time.
5429 2002-07-29 Mike Stump <mrs@apple.com>
5431 * config.gcc (target_gtfiles): Initialize, as otherwise cross
5432 compilers hosted on powerpc-apple-darwin6.0 won't even build.
5434 2002-07-29 Richard Earnshaw <rearnsha@arm.com>
5436 * arm.md (sibcall, sibcall_value): Add RETURN as part of the pattern,
5437 remove clobber of LR.
5438 (sibcall_insn, sibcall_value_insn): Update accordingly.
5439 (sibcall_epilogue): Remove debugging comment from assembler stream.
5441 2002-07-29 Gabriel Dos Reis <gdr@nerim.net>
5443 * pretty-print.h: Define more macros.
5444 * diagnostic.h (output_formatted_integer): Moved from...
5445 * diagnostic.c: ... here.
5447 2002-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5449 * stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use ASM_OUTPUT_LABEL_REF.
5451 2002-07-28 Zack Weinberg <zack@codesourcery.com>
5453 * defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two
5454 arguments. Always use ".-symbol" as expression argument.
5455 * doc/tm.texi: Update to match. Document requirement for
5456 ".size symbol, .-symbol" to be acceptable to assembler.
5458 * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
5459 config/arm/elf.h, config/avr/avr.h, config/cris/aout.h,
5460 config/i386/freebsd-aout.h, config/i386/sco5.h,
5461 config/ip2k/ip2k.h, config/m88k/m88k.h, config/xtensa/elf.h,
5462 config/xtensa/linux.h: Update uses of ASM_OUTPUT_MEASURED_SIZE.
5464 2002-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5466 * Makefile.in (gengtype-lex.c): Fix error in last change.
5468 * alpha/freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing
5471 * Makefile.in (vmsdbgout.o): Depend on function.h.
5473 * vmsdbgout.c: Include function.h.
5475 2002-07-28 Alan Modra <amodra@bigpond.net.au>
5477 * prefix.c (update_path): Don't strip single `.' path components
5478 unless stripping a later `..' component. Exit loop as soon as
5479 a valid path is found.
5481 2002-07-27 Roger Sayle <roger@eyesopen.com>
5483 * builtins.def [DEF_GCC_BUILTIN]: Require an explicit ATTRS
5484 argument. Mark BUILT_IN_RETURN, BUILT_IN_EH_RETURN,
5485 BUILT_IN_LONGJMP and BUILT_IN_TRAP as noreturn, the ISO C99
5486 floating point unordered comparisons (e.g. __builtin_isgreater)
5487 as const, and leave the remaining GCC_BUILTINs unchanged.
5489 * c-decl.c (builtin_function): No need to explicitly mark
5490 BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.
5492 2002-07-27 Roger Sayle <roger@eyesopen.com>
5494 * Makefile.in: rtlanal.o now depends upon real.h.
5496 * flags.h [flag_signaling_nans]: New flag.
5497 [HONOR_SNANS]: New macro.
5499 * toplev.c [flag_signaling_nans]: Initialize to false.
5500 (f_options): Add processing for "-fsignaling-nans".
5501 (set_fast_math_flags): Clear flag_signaling_nans with -ffast-math.
5502 (process_options): flag_signaling_nans implies flag_trapping_math.
5504 * c-common.c (cb_register_builtins): Define __SUPPORT_SNAN__
5505 when -fsignaling-nans. First step to implementing WG14's N965.
5507 * fold-const.c (fold) [MULT_EXPR]: Conditionalize transforming
5508 1.0 * x into x, and -1.0 * x into -x on !HONOR_SNANS.
5509 [RDIV_EXPR]: Conditionalize x/1.0 into x on !HONOR_SNANS.
5511 * simplify-rtx.c (simplify_relational_operation): Conditionalize
5512 transforming abs(x) < 0.0 into false on !HONOR_SNANS.
5514 * rtlanal.c: #include real.c for TARGET_FLOAT_FORMAT definitions
5515 required by HONOR_SNANS. (may_trap_p): Floating point DIV, MOD,
5516 UDIV, UMOD, GE, GT, LE, LT and COMPARE may always trap with
5517 -fsignaling_nans. EQ and NE only trap for flag_signaling_nans
5518 not flag_trapping_math (i.e. HONOR_SNANS but not HONOR_NANS).
5520 * doc/invoke.texi: Document new -fsignaling-nans compiler option.
5522 2002-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5524 * Makefile.in (gengtype-lex.c): Work around a bug in flex.
5525 * gengtype-lex.l (YY_USE_PROTOS): Undef.
5528 2002-07-27 Roger Sayle <roger@eyesopen.com>
5530 * doc/invoke.texi: Document that both -fno-builtin-foo and
5531 -fno-builtin are supported by the g++ front-end.
5533 2002-07-27 Stan Shebs <shebs@apple.com>
5535 * configure.in: Rename config_gtfiles to target_gtfiles.
5536 * configure: Regenerate.
5537 * doc/gty.texi: Update reference.
5538 * config.gcc (powerpc-*-darwin*): Set target_gtfiles
5539 instead of appending to it.
5541 2002-07-25 Aldy Hernandez <aldyh@redhat.com>
5543 * config/rs6000/rs6000.c (function_arg_advance): SPE vararg
5544 vectors are split into two registers.
5545 (function_arg): Same.
5547 Thu Jul 26 23:00:13 2002 J"orn Rennecke <joern.rennecke@superh.com>
5549 * pa.md (extv): Check predicates before emitting extv_32.
5551 2002-07-27 Alan Modra <amodra@bigpond.net.au>
5553 * config/rs6000/rs6000.c (rs6000_traceback_name): New var.
5554 (rs6000_traceback): New var.
5555 (rs6000_override_options): Set rs6000_traceback.
5556 (rs6000_output_function_epilogue): Implement traceback options.
5557 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add "traceback=".
5558 (rs6000_traceback_name): Declare.
5560 * config/rs6000/rs6000.c (output_profile_hook): Don't generate profile
5561 label reference when NO_PROFILE_COUNTERS.
5563 2002-07-26 Jason Merrill <jason@redhat.com>
5565 * function.c (assign_parms): Handle frontend-directed pass by
5566 invisible reference.
5568 2002-07-26 Neil Booth <neil@daikokuya.co.uk>
5570 * doc/cppopts.texi: Update.
5572 2002-07-26 Neil Booth <neil@daikokuya.co.uk>
5574 * cppmacro.c (_cpp_create_definition): Don't attempt redefinition
5575 warnings on assertions.
5577 2002-07-26 Neil Booth <neil@daikokuya.co.uk>
5579 * c-common.h (RID_AND, RID_AND_EQ, RID_NOT, RID_NOT_EQ,
5580 RID_OR, RID_OR_EQ, RID_XOR, RID_XOR_EQ, RID_BITAND, RID_BITOR,
5582 * c-parse.in (rid_to_yy): Similarly.
5584 2002-07-26 Jason Merrill <jason@redhat.com>
5586 * c-dump.c: Resurrect.
5587 * tree-dump.c: Move C-specific stuff to c-dump.c.
5588 * c-common.h: Declare c_dump_tree.
5589 * c-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN): Define.
5590 * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
5591 (c-dump.o): New rule.
5593 2002-07-26 Alan Modra <amodra@bigpond.net.au>
5595 * config/rs6000/rs6000.md: Enable patterns using rlwinm for
5596 PowerPC64. Replace "T" and "S" constraints with "n" when the
5597 predicate will do. Formatting fixes.
5598 (extzvsi_internal2): Use "andi.", "andis." and attr type of "compare"
5599 as for extzvsi_internal1.
5601 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
5603 * dwarfout.c (VERSION_ASM_OP, DERIV_BEGIN_LABEL_FMT,
5604 DERIV_END_LABEL_FMT): Remove.
5605 (SL_BEGIN_LABEL_FMT, SL_END_LABEL_FMT): Move.
5607 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
5609 * objc/objc-act.c (UTAG_STATICS, UTAG_PROTOCOL_LIST, USERTYPE):
5612 2002-07-25 Stan Shebs <shebs@apple.com>
5614 * config/rs6000/rs6000.c (rs6000_emit_prologue): Remove unused
5616 (output_compiler_stub): Remove unused locals.
5617 (output_call): Always initialize line number.
5619 Thu Jul 25 20:34:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
5621 * sh.h (LOAD_EXTEND_OP): QImode zero-extends on SHmedia.
5622 * sh.md (truncdiqi2, movqi_media): Likewise.
5624 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
5626 * gcse.c (obstack_chunk_alloc): Remove.
5627 (gcse_alloc): Fix to count allocated bytes.
5628 * collect2.c (SYMBOL__MAIN): Remove.
5630 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
5632 * gcc.c (TARGET_EXECUTABLE_SUFFIX): Only used if
5633 HAVE_TARGET_EXECUTABLE_SUFFIX.
5635 Thu Jul 25 18:57:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
5637 * rtl.h (mem_attrs): Spell out more clearly the roles of ALIGN,
5638 SIZE, EXPR and OFFSET.
5640 2002-07-25 Richard Henderson <rth@redhat.com>
5642 * emit-rtl.c (set_mem_attributes): Fix size and alignment thinkos
5643 in ARRAY_REF of DECL_P case.
5645 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
5647 * doc/invoke.texi: Document -mabi=meabi, and expand on the EABI
5648 description. Document -mips32, -mips64, and the associated -march
5649 values. Describe the "mipsN" arguments to -march. Say that the
5650 -mipsN options are equivalent to -march. Reword the description
5651 of default type sizes.
5652 * toplev.h (target_flags_explicit): Declare.
5653 * toplev.c (target_flags_explicit): New var.
5654 (set_target_switch): Update target_flags_explicit.
5655 * config/mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Undefine.
5656 * config/mips/elf64.h (MIPS_ISA_DEFAULT): Undefine.
5657 * config/mips/iris6.h (SUBTARGET_ASM_SPEC): -mabi=64 implies -mips3.
5658 * config/mips/isa3264.h (MIPS_ENABLE_EMBEDDED_O32): Undefine.
5659 * config/mips/mips.h (mips_cpu_info): New struct.
5660 (mips_cpu_string, mips_explicit_type_size_string): Remove.
5661 (mips_cpu_info_table, mips_arch_info, mips_tune_info): Declare.
5662 (MIPS_CPP_SET_PROCESSOR): New macro.
5663 (TARGET_CPP_BUILTINS): Declare a macro for each supported processor.
5664 Define _MIPS_ARCH and _MIPS_TUNE.
5665 (MIPS_ISA_DEFAULT): Don't provide a default value. Instead...
5666 (MIPS_CPU_STRING_DEFAULT): Set to "from-abi" if neither it nor
5667 MIPS_ISA_DEFAULT were already defined.
5668 (MULTILIB_DEFAULTS): Add MULTILIB_ABI_DEFAULT.
5669 (TARGET_OPTIONS): Remove -mcpu and -mexplicit-type-size.
5670 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New.
5671 (GAS_ASM_SPEC): Remove -march, -mcpu, -mgp* and -mabi rules.
5672 (ABI_GAS_ASM_SPEC): Remove.
5673 (MULTILIB_ABI_DEFAULT, ASM_ABI_DEFAULT_SPEC): New macros.
5674 (ASM_SPEC): Add -mgp32, -mgp64, -march, -mabi=eabi and -mabi=o64.
5675 Invoke %(asm_abi_default_spec) if no ABI was specified.
5676 (CC1_SPEC): Remove ISA -> register-size rules.
5677 (EXTRA_SPECS): Remove abi_gas_asm_spec. Add asm_abi_default_spec.
5678 * config/mips/mips.c (mips_arch_info, mips_tune_info): New vars.
5679 (mips_cpu_string, mips_explicit_type_size_string): Remove.
5680 (mips_cpu_info_table): New array.
5681 (mips_set_architecture, mips_set_tune): New fns.
5682 (override_options): Rework to make -mipsN equivalent to -march.
5683 Detect more erroneous cases, including those removed from CC1_SPEC.
5684 Don't change the ABI based on architecture, or vice versa.
5685 Unify logic with GAS.
5686 (mips_asm_file_start): Get architecture name from mips_arch_info.
5687 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
5688 (mips_parse_cpu): Take the name of the option as argument. Handle
5689 'from-abi'. Raise an error if the option is wrong.
5690 (mips_cpu_info_from_isa): New fn.
5692 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
5694 * config/mips/mips.md (tablejump_mips161): Use gen_rtx_LABEL_REF.
5695 (tablejump_mips162): Likewise.
5697 Thu Jul 25 10:23:41 2002 J"orn Rennecke <joern.rennecke@superh.com>
5699 * simpify-rtx.c (simplify_subreg): Don't pass MODE_CC mode to
5702 2002-07-25 Gabriel Dos Reis <gdr@nerim.net>
5704 * c-common.c (c_sizeof_or_alignof_type): Take a third argument for
5706 * c-common.h (c_sizeof): Adjust definition.
5707 (c_alignof): Likewise.
5708 * c-tree.h (c_sizeof_nowarn): Now macro.
5709 * c-typeck.c (c_sizeof_nowarn): Remove definition.
5711 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
5713 * c-decl.c (c_decode_option): No need to handle switches
5716 2002-07-24 Zack Weinberg <zack@codesourcery.com>
5718 * defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
5719 ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
5720 * doc/tm.texi: Document them. Also document SIZE_ASM_OP,
5721 TYPE_ASM_OP, and TYPE_OPERAND_FMT.
5723 * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
5724 config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
5725 config/cris/aout.h, config/i386/freebsd-aout.h,
5726 config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
5727 config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
5728 config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
5729 config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
5730 config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
5731 config/xtensa/elf.h, config/xtensa/linux.h:
5733 Where possible, remove redundant definitions of SIZE_ASM_OP,
5734 TYPE_ASM_OP, and TYPE_OPERAND_FMT.
5736 2002-07-24 Aldy Hernandez <aldyh@redhat.com>
5738 * config/rs6000/eabi.h: Define TARGET_SPE_ABI, TARGET_SPE,
5739 TARGET_ISEL, and TARGET_FPRS.
5741 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5742 -mabi=spe, -mabi=no-spe, and -misel=.
5744 * config/rs6000/rs6000-protos.h: Add output_isel.
5745 Move vrsave_operation prototype here.
5747 * config/rs6000/rs6000.md (sminsi3): Allow pattern for TARGET_ISEL.
5751 (abssi2_nopower): Disallow when TARGET_ISEL.
5753 (negsf2): Change to expand and rename old pattern to *negsf2.
5754 (abssf2): Change to expand and rename old pattern to *abssf2.
5756 New expanders: fix_truncsfsi2, floatunssisf2, floatsisf2,
5759 Change patterns that check for TARGET_HARD_FLOAT or
5760 TARGET_SOFT_FLOAT to also check TARGET_FPRS.
5762 * config/rs6000/rs6000.c: New globals: rs6000_spe_abi,
5763 rs6000_isel, rs6000_fprs, rs6000_isel_string.
5764 (rs6000_override_options): Add 8540 case to
5765 processor_target_table.
5766 Set rs6000_isel for the 8540.
5767 Call rs6000_parse_isel_option.
5768 (enable_mask_for_builtins): New.
5769 (rs6000_parse_isel_option): New.
5770 (rs6000_parse_abi_options): Add spe and no-spe.
5771 (easy_fp_constant): Treat !TARGET_FPRS as soft-float.
5772 (rs6000_legitimize_address): Check for TARGET_FPRS when checking
5773 for TARGET_HARD_FLOAT.
5774 Add case for SPE_VECTOR_MODE.
5775 (rs6000_legitimize_reload_address): Handle SPE vector modes.
5776 (rs6000_legitimate_address): Disallow PRE_INC/PRE_DEC for SPE
5778 Check for TARGET_FPRS when checking for TARGET_HARD_FLOAT.
5779 (rs6000_emit_move): Check for TARGET_FPRS.
5780 Add cases for SPE vector modes.
5781 (function_arg_boundary): Return 64 for SPE vector modes.
5782 (function_arg_advance): Check for TARGET_FPRS and
5784 (function_arg): Same.
5785 (setup_incoming_varargs): Check for TARGET_FPRS.
5786 (rs6000_va_arg): Same.
5787 (struct builtin_description): Un-constify mask field. Move up in
5789 (bdesc_2arg): Un-constify and add SPE builtins.
5791 (bdesc_spe_predicates): New.
5792 (bdesc_spe_evsel): New.
5793 (rs6000_expand_unop_builtin): Add SPE 5-bit literal builtins.
5794 (rs6000_expand_binop_builtin): Same.
5795 (bdesc_2arg_spe): New.
5796 (spe_expand_builtin): New.
5797 (spe_expand_predicate_builtin): New.
5798 (spe_expand_evsel_builtin): New.
5799 (rs6000_expand_builtin): Call spe_expand_builtin for SPE.
5800 (rs6000_init_builtins): Initialize SPE builtins. Call
5801 rs6000_common_init_builtins.
5802 (altivec_init_builtins): Move all non-altivec builtin code to...
5803 (rs6000_common_init_builtins): ...here. New function.
5804 (branch_positive_comparison_operator): Allow NE code for SPE.
5805 (ccr_bit): Return correct ccr bit for SPE fp.
5806 (print_operand): Emit crnor in 'D' case for SPE.
5808 Add SPE code for 'y' case.
5809 (rs6000_generate_compare): Generate rtl for SPE fp.
5810 (output_cbranch): Handle SPE hard floats.
5811 (rs6000_emit_cmove): Handle isel.
5812 (rs6000_emit_int_cmove): New.
5814 (rs6000_stack_info): Adjust stack frame so GPRs are saved in
5816 (debug_stack_info): Add SPE info.
5817 (gen_frame_mem_offset): New.
5818 (rs6000_emit_prologue): Save GPRs in 64-bits for SPE abi.
5819 Change mode of frame pointer, when saving it, to Pmode.
5820 (rs6000_emit_epilogue): Restore GPRs in 64-bits for SPE abi.
5821 Misc cleanups and use gen_frame_mem_offset when appropriate.
5823 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_PPC8540.
5824 (TARGET_SPE_ABI): New.
5828 (FIXED_SCRATCH): New.
5829 (RTX_COSTS): Add PROCESSOR_PPC8540.
5830 (ASM_CPU_SPEC): Add case for 8540.
5831 (TARGET_OPTIONS): Add isel= case.
5832 (rs6000_spe_abi): New.
5835 (rs6000_isel_string): New.
5836 (UNITS_PER_SPE_WORD): New.
5837 (LOCAL_ALIGNMENT): Adjust for SPE.
5838 (HARD_REGNO_MODE_OK): Same.
5839 (DATA_ALIGNMENT): Same.
5840 (MEMBER_TYPE_FORCES_BLK): New.
5841 (FIRST_PSEUDO_REGISTER): Set to 113.
5842 (FIXED_REGISTERS): Add SPE registers.
5844 (REG_CLASS_NAMES): Same.
5845 (REG_CLASS_CONTENTS): Same.
5846 (REGNO_REG_CLASS): Same.
5847 (REGISTER_NAMES): Same.
5848 (DEBUG_REGISTER_NAMES): Same.
5849 (ADDITIONAL_REGISTER_NAMES): Same.
5850 (CALL_USED_REGISTERS): Same.
5851 (CALL_REALLY_USED_REGISTERS): Same.
5852 (SPE_ACC_REGNO): New.
5853 (SPEFSCR_REGNO): New.
5854 (SPE_SIMD_REGNO_P): New.
5855 (HARD_REGNO_NREGS): Adjust for SPE.
5856 (VECTOR_MODE_SUPPORTED_P): Same.
5857 (REGNO_REG_CLASS): Same.
5858 (FUNCTION_VALUE): Same.
5859 (LIBCALL_VALUE): Same.
5860 (LEGITIMATE_OFFSET_ADDRESS_P): Same.
5861 (SPE_VECTOR_MODE): New.
5862 (CONDITIONAL_REGISTER_USAGE): Disable FPRs when target does FP on
5863 the GPRs. Set FIXED_SCRATCH fixed in SPE case.
5864 (rs6000_stack): Add spe_gp_size, spe_padding_size,
5866 (USE_FP_FOR_ARG_P): Check for TARGET_FPRS.
5867 (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
5868 (SPE_CONST_OFFSET_OK): New.
5869 (rs6000_builtins): Add SPE builtins.
5871 * testsuite/gcc.dg/ppc-spe.c: New.
5873 * config/rs6000/eabispe.h: New.
5875 * config/rs6000/spe.h: New.
5877 * config/rs600/spe.md: New.
5879 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5880 __SIMD__ for TARGET_SPE.
5882 * config.gcc: Add powerpc-*-eabispe* case.
5883 Add spe.h to user headers for powerpc.
5885 2002-07-24 Chris Demetriou <cgd@broadcom.com>
5887 * config/mips/elf.h (STARTFILE_SPEC): Undo previous change.
5888 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
5889 * config/mips/isa3264.h (STARTFILE_SPEC): Likewise.
5891 2002-07-24 Richard Henderson <rth@redhat.com>
5893 * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Use GOTO_SUBROUTINE_EXPR
5894 form when not optimizing.
5896 2002-07-24 David Mosberger <davidm@hpl.hp.com>
5898 * config/ia64/ia64.c (gen_thread_pointer): Fix typo in marking
5899 thread_pointer_rtx as unchanging.
5901 2002-07-24 Michael Matz <matz@suse.de>
5903 * ra-colorize.c (INV_REG_ALLOC_ORDER): New macro.
5906 2002-07-24 Richard Earnshaw <rearnsha@arm.com>
5908 * arm.md (arm_buneq, arm_bltgt): put '\' before ';' in output
5910 (arm_buneq_reversed, arm_bltgt_reversed): Likewise.
5911 (movsicc, movsfcc, movdfcc): FAIL if UNEQ or LTGT.
5913 2002-07-24 Chris Demetriou <cgd@broadcom.com>
5915 * config/mips/elf.h (STARTFILE_SPEC): Never include crt0.o.
5916 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
5917 * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine.
5919 Wed Jul 24 17:59:12 CEST 2002 Jan Hubicka <jh@suse.cz>
5921 * toplev.c (rest_of_compilation): Dump loops before clobbering
5924 Wed Jul 24 17:23:16 CEST 2002 Jan Hubicka <jh@suse.cz>
5926 * rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.
5928 2002-07-24 Frank van der Linden <fvdl@wasabisystems.com>
5930 PR optimization/7291
5931 * config/i386/i386.c (ix86_expand_clrstr): Fix bzero alignment
5934 2002-07-24 Gabriel Dos Reis <gdr@nerim.net>
5936 * pretty-print.h: Add macros from cp/error.c
5938 2002-07-24 Alan Modra <amodra@bigpond.net.au>
5940 * config/rs6000/rs6000-protos.h (mask_operand_wrap): Declare.
5941 (mask64_2_operand): Declare.
5942 (build_mask64_2_operands): Declare.
5943 (and64_2_operand): Declare.
5944 (extract_MB): Declare.
5945 (extract_ME): Declare.
5946 * config/rs6000/rs6000.c (mask64_operand): Allow all ones. Remove
5948 (mask_operand_wrap): New insn predicate.
5949 (mask64_2_operand): Likewise.
5950 (and64_2_operand): Likewise.
5951 (build_mask64_2_operands): New function.
5952 (extract_MB): New function.
5953 (extract_ME): New function.
5954 (print_operand <case m,M>): Use extract_MB and extract_ME.
5955 (print_operand <case S>): Allow all ones. Remove CONST_DOUBLE support.
5956 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 't'.
5957 (PREDICATE_CODES): Add and64_2_operand, mask_operand_wrap and
5958 mask64_2_operand. Remove CONST_DOUBLE from mask64_operand.
5959 * config/rs6000/rs6000.md (andsi3_internal3): New
5960 (andsi3_internal3+1): Enable split for powerpc64.
5961 (andsi3_internal3+2): New split.
5962 (andsi3_internal4): Renamed old andsi3_internal3.
5963 (andsi3_internal5): New.
5964 (andsi3_internal5+1): Enable split for powerpc64.
5965 (andsi3_internal5+2): New split.
5966 (andsi3_internal6, andsi3_internal7, andsi3_internal8): New.
5967 (anddi3): Handle 't' constraint.
5968 (anddi3+1): New split.
5969 (anddi3_internal2): Handle 't' constraint.
5970 (anddi3_internal2+1): New split.
5971 (anddi3_internal3): Handle 't' constraint.
5972 (anddi3_internal3+1): New split.
5974 2002-07-24 Alan Modra <amodra@bigpond.net.au>
5976 * config/rs6000/rs6000.md: Remove scratch reg on insns using
5977 addze and similar (plus (comparison r1 r2) r3) insns. Add
5978 missing scratch reg in one case. Formatting fixes.
5980 2002-07-24 Neil Booth <neil@daikokuya.co.uk>
5982 * cppexp.c (parse_defined): Mark macro used.
5983 * cpphash.h (struct cpp_macro): New member "used".
5984 (_cpp_mark_macro_used, _cpp_warn_if_unused_macro): New.
5985 (struct cpp_reader): New member.
5986 * cppinit.c (cpp_finish_options): Set first_unused_line.
5987 (cpp_finish): Warn of unused macros if requested.
5988 (OPT_TABLE): New switches.
5989 (cpp_handle_option): Handle them.
5990 * cpplib.c (do_undef): Warn if macro unused.
5991 (do_ifdef, do_ifndef): Mark macro used.
5992 * cpplib.h (struct cpp_options): New member.
5993 * cppmacro.c (_cpp_warn_if_unused_macro): New.
5994 (enter_macro_context): Mark macro used.
5995 (_cpp_create_definition): Mark macro unused; warn if unused
5997 * cpptrad.c (scan_out_logcial_line, push_replacement_text):
5999 * doc/cppopts.texi: Update.
6001 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
6003 * dwarf2out.c (SECTION_ASM_OP,
6004 ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
6005 * system.h (SECTION_ASM_OP): Poison.
6006 * tree.c (FILE_FUNCTION_PREFIX_LEN): Remove.
6007 * config/alpha/alpha-interix.h, config/mips/linux.h
6008 (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
6009 * config/mmix/mmix-protos.h, config/mmix/mmix.c
6010 (mmix_asm_output_define_label_difference_symbol): Remove.
6011 * config/mmix/mmix.h
6012 (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
6013 * doc/tm.texi: Remove documentation.
6015 Tue Jul 23 21:49:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
6017 * recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
6018 (constrain_operands): Likewise.
6019 * regclass.c (record_reg_classes): Likewise.
6020 * reload.c (find_reloads): Likewise.
6021 * doc/md.texi: Likewise.
6023 * reload.c (find_reloads_toplev): Use simplify_gen_subreg.
6024 * simplify-rtx.c (simplify_subreg): When converting to a non-int
6025 mode, try to convert to an integer mode of matching size first.
6027 * simplify-rtx.x (simplify_subreg): When constructing a CONST_VECTOR
6028 from individual subregs, check that each subreg has been generated
6031 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
6033 * genautomata.c (VLA_HWINT_SHORTEN, VLA_HWINT_LAST): Remove.
6034 * df.c (HANDLE_SUBREG, FOR_EACH_BB_IN_BITMAP_REV,
6035 FOR_EACH_BB_IN_SBITMAP): Remove.
6036 * gcse.c (NEVER_SET, FOLLOW_BACK_EDGES): Remove.
6037 * haifa-sched.c (DONE_PRIORITY, MAX_PRIORITY, TAIL_PRIORITY,
6038 LAUNCH_PRIORITY, DONE_PRIORITY_P, LOW_PRIORITY_P): Remove.
6039 * loop.c (PREFETCH_BLOACK_IN_LOOP_MIN,
6040 PREFETCH_LIMIT_TO_SIMULTANEOUS): Remove.
6041 * regrename.c (REGNO_MODE_OK_FOR_BASE_P): Remove.
6043 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
6045 * pretty-print.h: New file.
6047 2002-07-23 Paul Koning <pkoning@equallogic.com>
6049 * real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
6050 (LARGEST_EXPONENT_IS_NORMAL): Ditto.
6051 (VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
6052 (TARGET_G_FLOAT): Default to 0 if not defined.
6053 (ieeetoe): New, common routine to convert target format floats
6055 (e24toe, e53toe): Change to use ieeetoe, distinguish DEC
6057 (e113toe): Change to use ieeetoe.
6059 2002-07-23 Roman Lechtchinsky <rl@cs.tu-berlin.de>
6061 * real.c (REAL_WORDS_BIG_ENDIAN): Make sure it is 0 for DEC and 1 for
6063 (e53toe): Assume IEEE if non of DEC, IBM and C4X is defined.
6064 (e64toe): Remove special cases for DEC and IBM. Remove support for
6065 ARM_EXTENDED_IEEE_FORMAT.
6066 (e24toe): Remove special cases for DEC.
6067 (significand_size): Simplify. Indent.
6068 (ieee_format, ieee_24, ieee_53, ieee_64, ieee_113): New.
6069 (etoieee, toieee): New.
6070 (etoe113, toe113, etoe64, toe64, etoe53, toe53, etoe24, toe24): Use
6071 etoieee and toieee for IEEE arithmetic.
6073 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
6075 * doc/extend.texi: Say ISO C90, not ISO C89.
6076 * doc/invoke.texi: Likewise.
6077 * doc/standards.texi: Likewise.
6079 2002-07-23 Steve Ellcey <sje@cup.hp.com>
6081 * gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
6082 Fix permutation of conversion and plus/mult.
6083 * gcc/builtins.c (expand_builtin_memcpy) Ensure return pointer is
6084 ptr_mode and not Pmode when POINTERS_EXTEND_UNSIGNED is defined.
6085 (expand_builtin_strncpy) Ditto.
6086 (expand_builtin_memset) Ditto.
6088 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
6091 * c-common.c (c_sizeof_or_alignof_type): New function.
6092 (c_alignof): Remove definition.
6093 * c-common.h (c_sizeof, c_alignof): Define as macros.
6094 (c_sizeof_or_alignof_type): Declare.
6095 (my_friendly_assert): Moved from cp/cp-tree.h
6096 * c-typeck.c (c_sizeof): Remove definition.
6098 2002-07-23 Jan Hubicka <jh@suse.cz>
6100 * gcse.c (try_replace_reg): Use num_changes_pending.
6101 * recog.c (num_changes_pending): New function.
6102 (validate_replace_src): Use validate_repalce_src_group.
6103 (validate_replace_src_group): New.
6104 * recog.h (validate_repalce_src_group): New.
6105 (num_changes_pending): Likewise.
6107 Tue Jul 23 12:16:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
6109 * calls.c (emit_library_call_value_1): If
6110 FUNCTION_ARG_PASS_BY_REFERENCE is true, pretend this is neither
6111 libcall, const call nor pure call.
6113 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
6115 * config/m88k/m88k.h (SECTION_ASM_OP): Remove.
6117 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
6119 * vmsdbgout.c (SECTION_ASM_OP): Remove.
6121 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
6123 * config/i386/i386.c (AT_BP): Remove.
6125 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
6127 * defaults.h (obstack_chunk_alloc, obstack_chunk_free):
6129 * gcse.c: Don't define obstack_chunk_free.
6130 * collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
6131 flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
6132 integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
6133 reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
6134 Don't define obstack macros.
6136 2002-07-22 Stephane Carrez <stcarrez@nerim.fr>
6139 * config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace
6140 ASM_OPERANDS instructions.
6142 2002-07-22 Stephane Carrez <stcarrez@nerim.fr>
6145 * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
6146 constant addresses only on 68HC12.
6148 2002-07-22 Neil Booth <neil@daikokuya.co.uk>
6150 * cppfiles.c (stack_include_file): Correct test of whether
6151 a dependency should be output.
6153 2002-07-22 David Edelsohn <edelsohn@gnu.org>
6155 * collect2.c (is_ctor_dtor): Add other possible JOINER values.
6157 2002-07-22 Richard Earnshaw <rearnsha@arm.com>
6159 * arm.md (movqi): If optimizing and we can create pseudos, use
6160 a ZERO_EXTEND to load from memory, then copy the result into the
6162 (movhi): Likewise, but only for ARMv4.
6164 2002-07-22 Neil Booth <neil@daikokuya.co.uk>
6166 * ssa-ccp.c (PHI_PARMS): Remove.
6168 2002-07-22 Richard Sandiford <rsandifo@redhat.com>
6170 * config/mips/mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS
6171 on big-endian targets.
6173 2002-07-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6175 * hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
6176 HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
6177 HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
6178 New formatting macros.
6180 * ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
6182 Mon Jul 22 15:27:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
6184 * rtlanal.c (subreg_regno_offset): Return correct offset for
6185 big endian paradoxical subregs.
6187 * optabs.c (expand_vector_unop): Don't expand using sub_optab
6188 if we got the wrong mode.
6190 * hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
6191 * genrecog.c (write_switch, write_cond): Use it.
6192 * genemit.c (gen_exp): Likewise.
6194 2002-07-22 Jakub Jelinek <jakub@redhat.com>
6196 * c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
6198 2002-07-22 Jakub Jelinek <jakub@redhat.com>
6200 * c-decl.c (build_compound_literal): Defer compound literal decls
6201 until until file end to emit them only if they are actually used.
6203 2002-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6205 * ra-build.c (check_conflict_numbers): Hide unused function.
6206 (livethrough_conflicts_bb): Avoid automatic aggregate
6208 (parts_to_webs_1): Avoid `U' integer constant modifier.
6209 (conflicts_between_webs): Wrap a variable in the macro controlling
6211 * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
6212 (dump_igraph, dump_graph_cost): Avoid string concatenation
6213 (dump_static_insn_cost): Avoid automatic aggregate
6215 * ra-rewrite.c (insert_stores): Avoid automatic aggregate
6217 (dump_cost): Avoid string concatenation
6219 2002-07-21 Richard Henderson <rth@redhat.com>
6221 * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
6222 GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
6224 2002-07-21 Richard Henderson <rth@redhat.com>
6226 * unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
6227 that are not unrolled completely.
6229 2002-07-21 Richard Henderson <rth@redhat.com>
6231 * loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
6232 * loop.c (strength_reduce): Update.
6233 * toplev.c (rest_of_compilation): Do unrolling in the first
6234 loop pass, not the second.
6236 2002-07-21 Richard Henderson <rth@redhat.com>
6238 * emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
6239 when flag_argument_noalias == 2.
6240 * alias.c (nonoverlapping_memrefs_p): Handle that.
6241 * print-rtl.c (print_mem_expr): Likewise.
6243 2002-07-21 Hartmut Schirmer <hartmut.schirmer@arcor.de>
6245 * libgcc2.c (__divdi3, __moddi3): Use unary minus operator
6246 instead of __negdi2 directly.
6248 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
6250 * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
6251 * function.c (SYMBOL__MAIN): Remove definition.
6252 * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
6253 * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
6254 * profile.c (GCOV_INDEX_TO_BB): Remove.
6255 * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
6256 * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
6258 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
6260 * c-lex.c (GET_ENVIRONMENT): Remove.
6261 * collect2.c (GET_ENV_PATH_LIST): Remove.
6262 (prefix_from_env): Use GET_ENVIRONMENT.
6263 * cppinit.c (GET_ENV_PATH_LIST): Remove.
6264 (init_standard_includes): Use GET_ENVIRONMENT.
6265 * defaults.h (GET_ENVIRONMENT): Define here if not already.
6266 * gcc.c (GET_ENV_PATH_LIST): Remove.
6267 (make_relative_prefix, process_command): Update.
6268 * protoize.c (GET_ENV_PATH_LIST): Remove.
6269 (do_processing): Update.
6271 2002-07-21 Gabriel Dos Reis <gdr@nerim.net>
6273 * c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
6274 (grokdeclarator): Likewise.
6275 * c-format.c (C_STD_NAME): Likewise.
6276 * c-lex.c (interpret_integer): Likewise.
6277 * c-typeck.c (build_array_ref): Likewise.
6278 * cpplex.c (_cpp_lex_direct): Likewise.
6279 * toplev.c (documented_lang_options): Likewise.
6281 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
6283 * c-format.c (T99_I, T99_UI): Remove.
6285 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
6287 * c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
6289 Sun Jul 21 21:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
6291 * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
6294 2002-07-21 Andreas Jaeger <aj@suse.de>
6296 * reload1.c (fixup_abnormal_edges): Remove unused variable.
6298 2002-07-21 Bernd Schmidt <bernds@redhat.com>
6300 Improvements for the ifcvt pass from Michael Meissner, with patches
6301 by Richard Sandiford <rsandifo@redhat.com>
6302 * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
6303 * ifcvt.c (cond_exec_changed_p): New static variable.
6304 (last_active_insn): New function, renamed from last_active_insn_p
6305 and changed to return the last active insn in a basic block. All
6307 (block_fallthru): New function.
6308 (cond_exec_process_insns): New argument CE_INFO. Pass it to
6309 IFCVT_MODIFY_INSN. All callers updated.
6310 Return false if START or END are NULL.
6311 Handle case where we're processing an insn that is already
6314 (noce_process_if_block): CE_INFO argument rather than
6315 multiple args containing the involved basic blocks. All callers
6317 (process_if_block, merge_if_block, find_if_block,
6318 cond_exec_process_if_block): Likewise.
6320 (cond_exec_process_if_block): New arg DO_MULTIPLE_P. All callers
6322 Use new function last_active_insn to simplify some code.
6323 New code to handle multiple tests.
6324 Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
6325 cond_exec_changed_p to TRUE.
6327 (process_if_block): New code to handle multiple tests.
6328 (merge_if_block): Likewise.
6329 (find_if_header): New arg PASS. Changed to return the currently
6330 processed basic block or NULL instead of true/false. All callers
6332 Call IFCVT_INIT_EXTRA_FIELDS.
6333 (block_jumps_and_fallthru_p): New function.
6334 (find_if_block): Discover opportunities to convert multiple tests.
6335 Add additional debugging output.
6336 Update the ce_info structure before returning.
6338 (if_convert): Run multiple passes of if-conversion.
6339 * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
6340 IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
6341 IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
6344 Sun Jul 21 00:54:54 CEST 2002 Jan Hubicka <jh@suse.cz>
6346 * gcse.c: Include cselib.h
6347 (constptop_register): Break out from ...
6348 (cprop_insn): ... here; kill basic_block argument.
6349 (do_local_cprop, local_cprop_pass): New functions.
6350 (one_cprop_pass): Call local_cprop_pass.
6352 2002-07-20 Roger Sayle <roger@eyesopen.com>
6354 * simplify-rtx.c (simplify_relational_operation): Optimize
6355 abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
6357 2002-07-20 Michae Matz <matz@suse.de>
6359 * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
6361 2002-07-20 Neil Booth <neil@daikokuya.co.uk>
6363 * cppexp.c (struct op): Add token pointer.
6364 (check_promotion, CHECK_PROMOTION): New.
6366 (_cpp_parse_expr): Update, use token pointer of struct op.
6367 (reduce): Warn about change of sign owing to promotion.
6368 * cppinit.c (cpp_handle_option): New warning if -Wall.
6369 * cpplib.h (struct cpp_options): New member.
6371 2002-07-19 David Edelsohn <edelsohn@gnu.org>
6373 * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
6374 fpu list. Separate Power4 compare and delayed_compare. Correct
6376 (fix_truncdfsi2_internal): Restore FPR preference.
6377 * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
6378 mcpu?power4, mcpu?604e. Remove mpower, mpower2, mpowerpc.
6380 2002-07-19 Momchil Velikov <velco@fadata.bg>
6382 * reload1.c (reload_as_needed): Duplicate oldpat.
6384 2002-07-20 Alan Modra <amodra@bigpond.net.au>
6386 PR optimization/7130
6387 * loop.h (struct loop_info): Add "preconditioned".
6388 * unroll.c (unroll_loop): Set it.
6389 * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
6391 2002-07-19 Zack Weinberg <zack@codesourcery.com>
6393 * rtl.def (CODE_LABEL): Remove slot 8.
6394 * rtl.h (struct rtx_def): Document new uses of jump and call fields.
6395 (LABEL_ALTERNATE_NAME): Delete.
6396 (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
6397 * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
6399 * final.c (output_alternate_entry_point): New.
6400 (final_scan_insn): Use it instead of
6401 ASM_OUTPUT_ALTERNATE_LABEL_NAME. Do not consider possibility
6402 of a case label being an alternate entry point.
6404 * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
6405 * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
6406 Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
6408 * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
6410 * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
6411 LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
6412 * doc/tm.texi: Delete documentation of
6413 ASM_OUTPUT_ALTERNATE_LABEL_NAME.
6415 2002-07-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6417 * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
6418 (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
6419 (LINK_SPEC): Define.
6420 (STARTFILE_SPEC): Define.
6421 (ENDFILE_SPEC): Define.
6423 * config/mips/iris6-o32.h (LINK_SPEC): Move ...
6424 * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
6426 * config/mips/iris6-o32-gas.h: New file.
6427 * config.gcc (mips-sgi-irix6*o32): Use it.
6429 * config/mips/t-iris5-gas: New file.
6430 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
6432 2002-07-19 Neil Booth <neil@daikokuya.co.uk>
6434 * cppexp.c (ALWAYS_EVAL): Remove.
6435 (optab, reduce): Always evaluate.
6436 (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
6437 only if not skipping evaluation.
6439 2002-07-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
6441 * config/avr/avr.c (debug_hard_reg_set): Remove.
6443 2002-07-19 Chris Demetriou <cgd@broadcom.com>
6445 * gcc.c (cpp_options): Include "%1" (cc1_spec).
6447 2002-07-19 Richard Henderson <rth@redhat.com>
6449 * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
6451 2002-07-19 Alan Modra <amodra@bigpond.net.au>
6453 * prefix.c (update_path): Don't zap single `.' path components
6454 unless followed by another `.' and fix typo last patch.
6456 2002-07-18 Neil Booth <neil@daikokuya.co.uk>
6458 * cppexp.c (cpp_num_mul): Remove unused parameter.
6459 (UNARY, BINARY, OTHER, binary_handler): Remove.
6462 (reduce): Refactor to a large switch, don't use a function
6465 2002-07-18 Bo Thorsen <bo@berlioz.suse.de>
6467 * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
6469 Thu Jul 18 19:39:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
6471 * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
6472 (sh_expand_binop_v2sf): Likewise.
6473 * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
6474 (int_gpr_dest, trunc_hi_operand): New functions.
6475 * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
6477 (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
6478 * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
6479 (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
6480 (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
6481 (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
6482 (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
6483 (extendhisi2_media+1, extendqisi2_media+1): Likewise.
6484 (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
6485 (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
6486 (movsf_ie+1): Likewise.
6487 (loaddi_trunc): Use int_gpr_dest predicate.
6488 (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
6489 (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
6490 (casesi_worker_0+[12], casesi_worker): Likewise.
6491 (shcompact_preserve_incoming_args): Likewise.
6492 (mov_nop): Use any_register_operand predicate.
6493 (mperm_w0): Use trunc_hi_operand predicate.
6495 2002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
6497 * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
6498 * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
6501 2002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
6503 * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
6505 2002-07-18 Richard Henderson <rth@redhat.com>
6507 PR optimization/7147
6508 * ifcvt.c (noce_get_condition): Make certain that the condition
6511 Thu Jul 18 13:44:51 2002 J"orn Rennecke <joern.rennecke@superh.com>
6513 * sh.c (barrier_align, push): Shut up compiler warnings.
6514 (initial_elimination_offset,sh_media_init_builtins): Likewise.
6515 (reg_no_subreg_operand): Delete.
6517 2002-07-17 Bo Thorsen <bo@suse.de>
6519 * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
6520 (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
6521 (STARTFILE_SPEC): Remove hardcoded library paths.
6522 (ENDFILE_SPEC): Likewise.
6524 Thu Jul 18 09:38:59 CEST 2002 Jan Hubicka <jh@suse.cz>
6526 * gcse.c (hoist_expr_reaches_here_p): Stop once expr_bb is reached.
6528 * gcse.c (try_replace_reg): Do not return false positives.
6530 2002-07-18 Alan Modra <amodra@bigpond.net.au>
6532 * prefix.c: (update_path): Strip ".." components when prior dir
6533 doesn't exist. Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
6535 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
6536 (ASM_OUTPUT_REG_POP): Likewise.
6538 2002-07-18 Alan Modra <amodra@bigpond.net.au>
6540 * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
6541 adjustments to first_reg for profiling case.
6542 (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
6543 Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
6544 Save static chain reg to sp + 12 on ABI_AIX_NODESC.
6545 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
6546 (ASM_OUTPUT_REG_POP): Define.
6547 * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
6548 (ASM_OUTPUT_REG_POP): Undef.
6550 2002-07-17 Neil Booth <neil@daikokuya.co.uk>
6552 * cpplib.c (do_sccs): Handle #sccs on all systems.
6553 * system.h (SCCS_DIRECTIVE): Poison.
6554 * config/darwin.h, config/freebsd.h, config/netbsd.h,
6555 config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
6556 config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
6557 config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
6558 config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
6559 config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
6560 config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
6561 config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
6562 Remove all references to SCCS_DIRECTIVE.
6563 * doc/cpp.texi, doc/tm.texi: Update.
6565 Wed Jul 17 19:23:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
6567 * regrename.c (maybe_mode_change): New function.
6568 (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
6570 2002-07-17 Rodney Brown <rbrown64@csc.com.au>
6572 * config/i386/i386.c (ix86_expand_int_movcc): In the general case
6573 suppress addition when either ct or cf are zero.
6575 2002-06-17 Eric Botcazou <ebotcazou@multimania.com>
6576 Glen Nakamura <glen@imodulo.com>
6578 PR optimization/6713
6579 * loop.c (loop_givs_rescan): Explicitly delete the insn that
6580 sets a non-replaceable giv after issuing the new one.
6582 2002-07-17 Neil Booth <neil@daikokuya.co.uk>
6584 * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
6585 eval_token): Clarify and correct use of "bool" variables.
6586 * cpplib.h (struct cpp_options): Similarly.
6587 * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
6588 * cpptrad.c (recursive_macro): Similarly.
6590 Wed Jul 17 17:08:06 2002 J"orn Rennecke <joern.rennecke@superh.com>
6592 * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
6595 * sh.md (cmpgtudi_media): Remove spurious @.
6597 * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
6598 * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
6600 * config/sh/lib1funcs.asm (init_trampoline): New entry point.
6601 * sh-protos.h (sh_initialize_trampoline): Declare.
6602 * sh.c (sh_initialize_trampoline): New function.
6603 * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
6604 (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
6605 (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
6606 (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
6607 * sh.md (initialize_trampoline, double_shori): New patterns.
6608 (initialize_trampoline_compact): Likewise.
6609 (shmedia32_initialize_trampoline_big): Remove.
6610 (shmedia32_initialize_trampoline_little): Likewise.
6612 * sh-protos.h (binary_float_operator): Remove declaration.
6613 (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
6614 * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
6615 (unary_float_operator, sh_expand_unop_v2sf): New functions.
6616 (sh_expand_binop_v2sf): Likewise.
6617 (zero_vec_operand): Delete.
6618 (SH_BLTIN_UDI): New builtin shared signature define. Renumbered
6619 all non-shared ones.
6620 (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
6621 Enable nsb and byterev.
6622 * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
6623 (HARD_REGNO_MODE_OK): Allow TImode in fp regs. Allow V2SFmode
6625 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
6626 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise. Remove clause for
6628 (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
6630 (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
6631 lowpart fp regs - only for big endian for now.
6632 (LEGITIMATE_CONSTANT_P): Don't allow nonzero float vectors
6634 (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
6635 (LOAD_EXTEND_OP): NIL for SImode.
6636 (REGISTER_MOVE_COST): Add DF_HI_REGS. Const for moves between
6637 general and fp registers is 4.
6638 PREDICATE_CODES: Amend binary_float_operator entry.
6639 Remove zero_vec_operand. Add unary_float_operator.
6640 * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
6642 (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
6643 (truncdiqi2): Do sign extension.
6644 (movsi_media, movdi_media): Allow to use r63 to an fp register.
6645 (movdf_media, movsf_media): Likewise.
6646 (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
6647 Collapse to one define_insn_and_split. Allow immediate sources.
6648 (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
6649 (movv4sf_i): Allow immediate sources. Use simplify_gen_subreg.
6650 (movv4sf): Allow immediate sources.
6651 (movsf_media_nofpu+1): Don't split moves to FP registers.
6652 (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
6653 (movv8qi_i+3): Check against CONST0_RTX.
6654 (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
6655 for input and output operands. Fix argument 3 to gen_mextr_rl.
6656 (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
6657 (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
6658 (mshf0_w, fipr, ftrv): Likewise.
6659 (mshfhi_l_di): Now insn_and_split. Can handle FP regs.
6661 2002-07-17 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
6663 * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
6664 NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively. All uses changed.
6667 2002-07-17 Richard Sandiford <rsandifo@redhat.com>
6669 * config/mips/mips-protos.h (mips_sign_extend): Declare.
6670 * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
6671 (TARGET_SWITCHES): Remove debugh.
6672 (ISA_HAS_TRUNC_W): New macro.
6673 (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
6674 (PREDICATE_CODES): Remove se_nonimmediate_operand.
6675 * config/mips/mips.c (movdi_operand): Allow sign-extensions of
6676 any SImode move_operand.
6677 (se_nonimmediate_operand): Remove.
6678 (mips_sign_extend): New.
6679 (mips_move_2words): Use it for sign-extended source operands.
6680 (override_options): Allow integers to be put into single FPRs.
6681 (mips_secondary_reload_class): Handle integers in float registers.
6682 * config/mips/mips.md (extendsidi2): Turn into a define_expand.
6683 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
6684 (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
6685 (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
6686 (fix_truncdfdi2): Provide only a single alternative, in which the
6687 integer is in a float register. Depend on TARGET_FLOAT64 rather
6689 (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
6690 (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
6691 (movdi_internal2): Don't allow the source operand to be sign-extended.
6692 Add alternatives for float registers.
6693 (*movdi_internal2_extend): New. Version of movdi_internal2 that
6694 allows sign-extension.
6695 (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
6696 (movsi_internal2): Rename to movsi_internal. Add alternatives for
6697 float registers. Remove TARGET_DEBUG_H_MODE test.
6698 (movhi_internal1): Rename to movhi_internal. Don't check
6699 TARGET_DEBUG_H_MODE. Fix transposed *d and *f source constraints.
6700 (movqi_internal1): Rename to movqi_internal and remove
6701 TARGET_DEBUG_H_MODE dependency.
6702 (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
6704 2002-07-16 Jim Wilson <wilson@redhat.com>
6706 * toplev.c (lang_dependent_init): Create function context for
6709 2002-07-16 Hans-Peter Nilsson <hp@axis.com>
6711 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
6712 --gc-sections if -r.
6713 * config/cris/cris.h: Ditto.
6715 2002-07-16 Rodney Brown <rbrown64@csc.com.au>
6717 * config/i386/i386.c (ix86_expand_int_movcc): In the case where
6718 the comparison directly gives a mask suppress addition when cf is
6719 zero by complementing the mask.
6721 2002-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
6723 * Makefile.in: Delete references to enquire.
6724 * enquire.c: Move to contrib.
6726 2002-07-16 Stan Shebs <shebs@apple.com>
6728 * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
6729 config/rs6000/darwin.h.
6730 (ASM_OUTPUT_SKIP): Ditto.
6731 (TEXT_SECTION_ASM_OP): Ditto.
6732 (DATA_SECTION_ASM_OP): Ditto.
6733 (ASM_APP_ON): Define.
6734 (ASM_APP_OFF): Define.
6735 * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
6736 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
6738 * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
6739 (machopic_function_base_name): Declare result to be const.
6740 (machopic_non_lazy_ptr_name): Ditto.
6741 (machopic_stub_name): Ditto.
6742 * config/darwin-protos.h: Ditto for the prototypes.
6744 Wed Jul 17 00:22:39 CEST 2002 Jan Hubicka <jh@suse.cz>
6746 * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
6748 Wed Jul 17 00:20:48 CEST 2002 Jan Hubicka <jh@suse.cz>
6750 * i386.md (prefetch): Fix for 64bit mode.
6751 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
6753 Wed Jul 17 00:19:20 CEST 2002 Jan Hubicka <jh@suse.cz>
6755 * i386.h (MACHINE_DEPENDENT_REORG): New macro.
6756 * i386.c (x86_machine_dependent_reorg): New function.
6757 * i386-protos.h (x86_machine_dependent_reorg): Declare.
6759 2002-07-16 Zack Weinberg <zack@codesourcery.com>
6761 * builtins.c (std_expand_builtin_va_start): Remove unused
6763 (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
6764 std_expand_builtin_va_start with just two arguments.
6765 * expr.h: Update prototypes.
6767 * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
6768 arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
6769 i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
6770 m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
6771 mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
6772 rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
6773 s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
6774 sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
6775 xtensa-protos.h, xtensa.h, xtensa.c: Remove unused first
6776 argument from all implementations of EXPAND_BUILTIN_VA_START
6777 and all uses of std_expand_builtin_va_start.
6779 Tue Jul 16 19:32:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
6781 * regrename.c (copy_value): Don't record high part copies.
6783 2002-07-16 Steve Ellcey <sje@cup.hp.com>
6785 * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
6786 (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
6787 * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
6789 2002-07-16 Ian Dall <ian@sibyl.beware.dropbear.id.au>
6791 * doc/invoke.texi (NS32K Options): Document -mieee-compare option
6793 * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
6794 into addsi3 using register class "x" and "y".
6796 * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
6797 "earlyclobber" constraint modifier for some alternative.
6799 * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
6800 (*ble, *blt): Flag to indicate bCOND and sCOND should check for
6802 config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
6804 * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
6805 (TARGET_SWITCHES): Add -mieee-compare option.
6806 (OVERRIDE_OPTIONS): 32332 is a subset of
6807 32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
6808 (TARGET_SWITCHES): Fix description of bit-field option.
6809 * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
6810 -mieee-compare option. Remove 32332 flag.
6812 2002-07-16 Steve Ellcey <sje@cup.hp.com>
6814 * explow.c (convert_memory_address): Remove special handling
6815 when POINTERS_EXTEND_UNSIGNED < 0.
6816 * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
6817 (movedi_symbolic): Fix typo.
6818 (load_fptr): Remove mode restriction so it works for SI and DI.
6819 (load_fptr_internal1): Ditto.
6820 (load_gprel): Ditto.
6821 (load_symptr_internal1): Ditto.
6823 * config/ia64.c (call_operand): Modify mode check.
6824 (ia64_expand_load_address): Handle DI and SI addresses and symbols.
6825 (ia64_expand_move): Ditto.
6826 (ia64_assemble_integer): Handle SImode function pointers.
6827 (ia64_expand_fetch_and_op): Handle SImode mem addresses.
6828 (ia64_expand_op_and_fetch): Ditto.
6829 (ia64_expand_compare_and_swap): Ditto.
6830 (ia64_expand_lock_test_and_set): Ditto.
6831 (ia64_expand_lock_release): Ditto.
6833 2002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
6835 * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
6837 2002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
6838 Richard Earnshaw <rearnsha@arm.com>
6840 * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
6841 CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF. Simplify logic.
6843 2002-07-16 Richard Earnshaw <rearnsha@arm.com>
6845 * arm.md (stack_tie): New insn. Use an idiom that the alias code
6846 understands to be a memory clobber.
6847 * arm.c (arm_expand_prologue): Use it.
6849 2002-07-16 Daniel Berlin <dberlin@dberlin.org>
6851 * ra-rewrite.c: #include reload.h, insn-config.h
6852 * ra-build.c: #include reload.h
6853 * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
6854 depend on reload.h, insn-config.h.
6856 Tue Jul 16 11:57:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
6858 * expr.c (emit_move_insn_1): Handle arbitrary moves that are
6859 the same size as a word.
6861 * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
6862 BYTES_BIG_ENDIAN into account.
6864 Tue Jul 16 12:22:44 CEST 2002 Jan Hubicka <jh@suse.cz>
6866 * i386.md (prefetch): Fix for 64bit mode.
6867 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
6869 * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
6871 2002-07-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
6873 * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
6875 2002-07-15 Zack Weinberg <zack@codesourcery.com>
6877 * ginclude/varargs.h: Replace with stub which issues #error.
6878 * ginclude/stdarg.h: __builtin_stdarg_start is renamed
6881 * builtins.def (BUILT_IN_VARARGS_START): Delete.
6882 (BUILT_IN_VA_START): New.
6883 * builtins.c (expand_builtin_va_start): Eliminate first
6884 argument and code to implement pre-ISO varargs.
6885 (std_expand_builtin_va_start): Ignore first argument; it is
6887 (expand_builtin): Handle BUILT_IN_VA_START and
6888 BUILT_IN_STDARG_START identically. Delete
6889 BUILT_IN_VARARGS_START case.
6891 * function.c (assign_parms): Delete hide_last_arg and all
6893 (mark_varargs): Delete function.
6894 * function.h (struct function): Delete 'varargs' bit.
6895 (current_function_varargs): Delete macro.
6896 * tree.h: Don't declare mark_varargs.
6898 * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
6899 (c_expand_body): Don't call mark_varargs.
6900 * c-objc-common.c: Handle BUILT_IN_VA_START and
6901 BUILT_IN_STDARG_START identically. Delete
6902 BUILT_IN_VARARGS_START case.
6903 * c-tree.h: Don't declare c_mark_varargs.
6904 * c-parse.in: Remove grammar rules for '&...' (which has been
6905 commented out since before 2.7.2) and for '...' in K+R
6906 argument declarations.
6908 * builtins.c, function.c, integrate.c, sibcall.c,
6909 config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
6910 config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
6911 config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
6912 config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
6913 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
6914 config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
6915 config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
6916 config/stormy16/stormy16.c: Delete all references to
6917 current_function_varargs, and code predicated on that flag.
6919 * config/alpha/alpha.c (alpha_va_start),
6920 config/arc/arc.c (arc_va_start),
6921 config/i386/i386.c (ix86_va_start),
6922 config/mips/mips.c (mips_va_start),
6923 config/mn10300/mn10300.c (mn10300_va_start),
6924 config/rs6000/rs6000.c (rs6000_va_start),
6925 config/s390/s390.c (s390_va_start),
6926 config/sh/sh.c (sh_va_start),
6927 Ignore first argument; it is always 1.
6929 * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
6930 * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
6931 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
6932 Delete m68hc11_va_start.
6933 * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
6934 No need to define EXPAND_BUILTIN_VA_START.
6936 * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
6937 doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
6939 2002-07-15 Eric Botcazou <ebotcazou@multimania.com>
6941 PR optimization/7153
6942 * regmove.c (optimize_reg_copy_3): Don't optimize if the register
6943 dies in more than one insn.
6945 2002-07-15 Jason Thorpe <thorpej@wasabisystems.com>
6947 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
6949 2002-07-15 Michael Matz <matz@suse.de>,
6950 Daniel Berlin <dberlin@dberlin.org>,
6951 Denis Chertykov <denisc@overta.ru>
6953 Add a new register allocator.
6957 * ra-build.c: New file.
6958 * ra-colorize.c: New file.
6959 * ra-debug.c: New file.
6960 * ra-rewrite.c: New file.
6962 * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
6963 (ra-rewrite.o): New .o files for libbackend.a.
6964 (GTFILES): Add basic-block.h.
6966 * toplev.c (flag_new_regalloc): New.
6967 (f_options): New option "new-ra".
6968 (rest_of_compilation): Call initialize_uninitialized_subregs()
6969 only for the old allocator. If flag_new_regalloc is set, call
6970 new allocator, instead of local_alloc(), global_alloc() and
6973 * doc/invoke.texi: Document -fnew-ra.
6974 * basic-block.h (FOR_ALL_BB): New.
6975 * config/rs6000/rs6000.c (print_operand): Write small constants
6978 * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
6979 (df_reg_table_realloc): Make size at least as large as max_reg_num().
6980 (df_insn_table_realloc): Size argument now is absolute, not relative.
6981 Changed all callers.
6983 * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
6984 * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
6986 2002-06-20 Michael Matz <matz@suse.de>
6988 * df.h (struct ref.id): Make unsigned.
6989 * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
6991 2002-06-13 Michael Matz <matz@suse.de>
6993 * df.h (DF_REF_MODE_CHANGE): New flag.
6994 * df.c (df_def_record_1, df_uses_record): Set this flag for refs
6995 involving subregs with invalid mode changes, when
6996 CLASS_CANNOT_CHANGE_MODE is defined.
6998 2002-05-07 Michael Matz <matz@suse.de>
7000 * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
7002 2002-05-03 Michael Matz <matz@suse.de>
7004 * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
7006 Sat Feb 2 18:58:07 2002 Denis Chertykov <denisc@overta.ru>
7008 * regclass.c (regclass): Work with all regs which have sets or
7010 (reg_scan_mark_refs): Count regs inside (clobber ...).
7012 2002-01-04 Michael Matz <matzmich@cs.tu-berlin.de>
7014 * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
7015 (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
7017 (df_bb_refs_update): Don't clear insns_modified here, ...
7018 (df_analyse): ... but here.
7020 * sbitmap.c (dump_sbitmap_file): New.
7021 (debug_sbitmap): Use it.
7023 * sbitmap.h (dump_sbitmap_file): Add prototype.
7025 2001-08-07 Daniel Berlin <dan@cgsoftware.com>
7027 * df.c (df_insn_modify): Grow the UID table if necessary, rather
7028 than assume all emits go through df_insns_modify.
7030 2001-07-26 Daniel Berlin <dan@cgsoftware.com>
7032 * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
7033 increase REG_N_REFS (like flow does), so that regclass doesn't
7034 think a reg is useless, and thus, not calculate a class, when it
7037 2001-01-28 Daniel Berlin <dberlin@redhat.com>
7039 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
7042 2002-07-15 Jakub Jelinek <jakub@redhat.com>
7045 * config/i386/i386.c (const_int_1_31_operand): New.
7046 * config/i386/i386.h (PREDICATE_CODES): Add it.
7047 * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
7048 ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
7049 lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
7051 2002-07-14 Alan Modra <amodra@bigpond.net.au>
7054 * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
7055 (floatunssidf2): Likewise.
7056 (floatsidf_ppc64): New insn_and_split.
7057 (floatunssidf_ppc64): Likewise.
7059 2002-07-14 Andreas Jaeger <aj@suse.de>
7061 * config.gcc (sh64): Remove unused
7062 target_requires_64bit_host_wide_int.
7064 2002-07-12 Roger Sayle <roger@eyesopen.com>
7066 * expr.c [CLEAR_RATIO]: New macro defining the maximum number
7067 of move instructions to use when clearing memory, c.f. MOVE_RATIO.
7068 [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
7069 whether clear_by_pieces should be used to clear storage.
7070 (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
7072 * doc/tm.texi: Document these two new target macros.
7074 2002-07-12 Stephane Carrez <stcarrez@nerim.fr>
7076 * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
7077 the scratch register.
7078 ("*movhi2_push"): Accept Z_REG because a split pattern can make use
7079 of it, forbid reload to use it.
7081 2002-07-12 Marek Michalkiewicz <marekm@amelek.gda.pl>
7083 * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
7084 usage on 64-bit hosts, return value was truncated to 32 bits.
7086 Fri Jul 12 00:49:36 2002 J"orn Rennecke <joern.rennecke@superh.com>
7088 * simplify-rtx.c (simplify_subreg): Handle floating point
7089 CONST_DOUBLEs. When an integer subreg of a smaller mode than
7090 the element mode is requested, compute a subreg with an
7091 integer mode of the same size as the element mode first.
7093 Thu Jul 11 22:02:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
7095 * combine.c (try_combine): When converting a paradoxical subreg
7096 to an extension, take LOAD_EXTEND_OP into account.
7098 2002-07-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7100 * config.gcc (mips-sgi-irix6*o32): New configuration.
7102 * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
7104 * configure: Regenerate.
7106 * config/mips/iris6-o32-as.h: New file.
7107 * config/mips/iris6-o32.h: New file.
7109 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
7111 (HAVE_AS_SHF_MERGE): Undefine.
7113 * config/mips/t-iris5-as: New file.
7114 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
7116 * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
7117 SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
7118 SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
7119 dp-bit.c, fp-bit.c): Move ...
7120 * config/mips/t-iris5-6: ... here.
7121 New file, shared by IRIX 5 and IRIX 6.
7122 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
7123 mips-sgi-irix5*): Use it.
7125 * config/mips/iris6.h: Remove duplicate comment.
7127 * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
7128 !TARGET_IRIX6]: Define.
7129 (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
7131 * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
7133 2002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
7135 * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
7136 and delete code to force constant to register.
7137 * pa-protos.h (adddi3_operand): Add prototype.
7138 * pa.c (adddi3_operand): New function.
7140 2002-07-11 Roger Sayle <roger@eyesopen.com>
7142 * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
7143 non-ANSI builtin functions.
7145 Thu Jul 11 11:31:12 2002 J"orn Rennecke <joern.rennecke@superh.com>
7147 * rtl.h (gen_rtx_CONST_VECTOR): Declare.
7148 * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
7149 * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
7150 (gen_const_vector_0): Use it.
7152 2002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
7154 * pa.md (adddi3): For 32-bit targets, force constants to a register
7155 if they don't fit in an 11-bit immediate. Change insn predicate to
7156 arith11_operand. Remove comment.
7157 * pa.c (cint_ok_for_move): Fix comment.
7158 (emit_move_sequence): Don't directly split DImode constants on 32-bit
7161 2002-07-11 Tim Josling <tej@melbpc.org.au>
7163 Remove front end hard coding from gengtype.c.
7166 (STAGESTUFF): add gtyp-gen.h
7167 (GTFILES): Remove front end specific files.
7168 (GTFILES_FILES_LANGS): New, from configure..
7169 (GTFILES_FILES_FILES): Likewise.
7170 (GTFILES_LANG_DIR_NAMES): Likewise.
7171 (GTFILES_SRCDIR): Likewise.
7172 (gtyp-gen.h): Build from configure information.
7173 (s-gtype): Remove command line parameters from gengtype.
7174 (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
7175 (mostlyclean): Delete files generated by and for gengtype.
7177 * c-config-lang.in: New file.
7179 * configure.in (all_gtfiles_files_langs): New. Accumulate files
7181 (all_gtfiles_files_files): New. Accumulate language for each file
7183 (gtfiles): Pick up value for C.
7184 (srcdir): AC-SUBST this variable.
7185 (all_gtfiles_files_langs): AC-SUBST this variable.
7186 (all_gtfiles_files_files): AC-SUBST this variable.
7188 * configure: Regenerate.
7190 * gengtype-lex.l (parse_file): Make parameter const.
7192 * gengtype.c (toplevel): include gtyp-gen.h.
7193 (BASE_FILE_<language> unnamed enum): Delete.
7194 (lang_names): Delete (replaced by gtyp-gen.h)
7195 (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
7197 (NUM_GT_FILES): New.
7198 (NUM_LANG_FILES): New.
7200 (NUM_BASE_FILES): Change calculation.
7201 (open_base_files): Change prototype to avoid warning.
7202 (startswith): Delete.
7203 (get_file_basename): Iterate through generated language list not
7205 (get_base_file_bitmap): Use generated list of files and languages.
7206 (close_output_files): Add prototype to rmove warning.
7207 (main): Iterate through list of generated files from gtyp-gen.h
7208 rather than command line paramaters. Ignore duplicated file
7211 * gengtype.h (parse_file): Amend prototype for const parameter.
7213 * doc/sourcebuild.texi: Document gtfiles variable.
7215 * doc/gty.texi: Document changes to gtfiles variable for front
7218 * objc/config-lang.in (gtfiles): Add files needed for objc front
7221 2002-07-10 Roger Sayle <roger@eyesopen.com>
7224 * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
7225 to SUBREGs of MEMs. (num_sign_bit_copies): Likewise.
7227 2002-07-10 Roger Sayle <roger@eyesopen.com>
7228 Zack Weinberg <zack@codesourcery.com>
7230 * builtins.def: Make the argument types of abort and exit
7231 independent of the front-end.
7233 2002-07-11 Alan Modra <amodra@bigpond.net.au>
7235 * config/rs6000/linux64.h (ASM_SPEC): Define.
7237 2002-07-10 Aldy Hernandez <aldyh@redhat.com>
7239 * config/rs6000/rs6000.c (emit_frame_save): New.
7240 (rs6000_frame_related): Replace reg2 before reg.
7241 (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
7242 and eh_return registers.
7244 2002-07-10 Toon Moene <toon@moene.indiv.nluug.nl>
7246 Revert all patches for optimization of Complex .op. Real.
7247 * complex_part_zero_p: Remove
7248 * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
7250 * expand_cmplxdiv_wide: Ditto.
7251 * expand_binop: Ditto.
7253 2002-07-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
7255 * config/avr/avr.md: Fix two 0x80000000 constants to make them
7256 negative also on 64-bit hosts.
7258 Default to -fno-reorder-blocks when optimizing for size.
7259 * config/avr/avr-protos.h (avr_optimization_options): Declare.
7260 * config/avr/avr.c (avr_optimization_options): New function.
7261 * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
7263 Optimize returning from simple functions.
7264 * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
7265 * config/avr/avr.c (avr_simple_epilogue): New function.
7266 * config/avr/avr.md (return): New insn.
7268 2002-07-10 Douglas B Rupp <rupp@gnat.com>
7270 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Add
7271 HAS_INIT_SECTION to protection.
7273 2002-07-10 Mark Mitchell <mark@codesourcery.com>
7275 * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
7278 Wed Jul 10 19:50:03 2002 J"orn Rennecke <joern.rennecke@superh.com>
7280 * combine.c (gen_lowpart_for_combine): Handle vector modes.
7281 Supply non-VOID mode to simplify_gen_subreg.
7283 Wed Jul 10 18:48:55 CEST 2002 Jan Hubicka <jh@suse.cz>
7285 * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
7287 2002-07-10 Jeffrey A Law <law@redhat.com>
7289 * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
7292 * mn10200.c (expand_epilogue): Fix test to determine which scratch
7295 Wed Jul 10 16:06:00 2002 J"orn Rennecke <joern.rennecke@superh.com>
7297 * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
7299 If simplify_gen_subreg fails, try next equivalent.
7301 2002-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
7303 * diagnostic.h: #include location.h
7304 (location_t): Move definition to..
7305 * location.h: ... here. New file.
7306 * tree.h: #include location.h
7307 (DECL_SOURCE_LOCATION): New macro.
7308 (DECL_SOURCE_FILE): Use.
7309 (DECL_SOURCE_LINE): Likewise.
7310 (struct tree_decl): REplace filename and linenum with locus.
7311 * Makefile.in (TREE_H): add location.h
7312 (diagnostic.o): Depends on gt-location.h
7313 (gt-location.h): Depends on s-gtype
7315 2002-07-09 Matt Kraai <kraai@alumni.cmu.edu>
7317 * config/rs6000/aix.h: Convert CPP_PREDEFINES to
7318 TARGET_OS_CPP_BUILTINS.
7319 * config/rs6000/aix31.h: Likewise.
7320 * config/rs6000/aix41.h: Likewise.
7321 * config/rs6000/aix43.h: Likewise.
7322 * config/rs6000/aix51.h: Likewise.
7323 * config/rs6000/beos.h: Likewise.
7324 * config/rs6000/darwin.h: Likewise.
7325 * config/rs6000/eabi.h: Likewise.
7326 * config/rs6000/eabisim.h: Likewise.
7327 * config/rs6000/linux.h: Likewise.
7328 * config/rs6000/linux64.h: Likewise.
7329 * config/rs6000/lynx.h: Likewise.
7330 * config/rs6000/mach.h: Likewise.
7331 * config/rs6000/rtems.h: Likewise.
7332 * config/rs6000/sysv4.h: Likewise.
7333 * config/rs6000/vxppc.h: Likewise.
7335 2002-07-09 Devang Patel <dpatel@apple.com>
7336 * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
7337 Do not allow ObjC objects as a parameter type for Objective-C methods.
7338 My previous patch restricted 'struct' also.
7340 2002-07-09 Neil Booth <neil@daikokuya.co.uk>
7342 * cpperror.c (cpp_error): Default to directive_line within
7344 * cppexp.c (cpp_interpret_integer): Only use traditional
7345 number semantics in directives.
7346 * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
7347 (do_include_common): Similarly.
7348 * cpptrad.c (scan_out_logical_line): Implement accurate
7349 quoting of <> in #include.
7350 * doc/cpp.texi: Update.
7352 Tue Jul 9 22:37:44 2002 Stephen Clarke <stephen.clarke@superh.com>
7353 J"orn Rennecke <joern.rennecke@superh.com>
7355 * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
7356 * sh.md (attribute issues): Replace with:
7357 (attribute pipe_model). All users changed.
7358 (attribute type): Change pt / ptabs to pt_media / ptabs_media.
7360 (function units sh5issue, sh5fds): New.
7361 (attribute is_mac_media): New.
7362 (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
7363 (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
7364 (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
7365 (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
7366 (call_media, call_value_media, sibcall_media): Likewise.
7367 (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
7368 (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
7369 (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
7370 (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
7371 (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
7372 (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
7373 (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
7374 (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
7375 (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
7376 (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
7377 (truncdfsf2_media): Likewise.
7378 (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
7379 (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
7381 Tue Jul 9 21:39:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
7383 * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
7384 * sh.c (general_extend_operand, inqhi_operand): New functions.
7385 * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
7386 alternatives using 'N' modifier. Add type.
7387 (adddi3z_media): Likewise. Enable generator function generation.
7388 (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
7389 exact predicates / constraints. Add type.
7390 (subsi3): Allow 0 for SHMEDIA.
7391 (udivsi3_i4_media): Use match_operand for input values
7392 rather than hard registers.
7393 (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
7394 unnecessarily through hard registers. Keep copies of pseudo
7395 registers outside of the libcall sequence.
7396 (mulsidi3_media, umulsidi3_media): Use more exact predicates. Add type.
7397 (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
7398 (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
7399 (extendhidi2, extendqidi2): Likewise.
7400 (andsi3_compact): Name.
7401 (andcdi3): Enable generator function generation.
7402 (zero_extendhisi2, zero_extendqisi2): Rename to
7403 (zero_extendhisi2_compact, zero_extendqisi2_compact).
7404 (extendhisi2, extendqisi2): Rename to
7405 (extendhisi2_compact, extendqisi2_compact).
7406 (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
7407 (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
7408 (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
7409 (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
7410 (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
7411 (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
7412 (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
7413 (shmedia32_initialize_trampoline_big): Likewise.
7414 (shmedia32_initialize_trampoline_little): Likewise.
7415 (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
7416 (negdi2): Remove spurious T clobber.
7417 (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
7418 (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
7419 (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
7420 (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
7421 (ic_invalidate_line_media): Write back data cache before invalidating
7422 instruction cache. Add type.
7423 (movsf_media): Sign-extend when the destination is a general
7424 purpose register. Add type.
7425 (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
7426 (casesi_worker_0+1): Only increment ref count for proper label.
7427 (casesi_worker_0+2): Likewise.
7429 2002-07-09 Mark Mitchell <mark@codesourcery.com>
7431 * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
7433 2002-07-09 Steve Ellcey <sje@cup.hp.com>
7435 * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
7436 from Pmode to ptr_mode.
7437 (get_exception_pointer): Ditto.
7438 (connect_post_landing_pads): Ditto.
7439 (dw2_build_landing_pads): Ditto.
7441 2002-07-08 Steve Ellcey <sje@cup.hp.com>
7442 * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
7443 * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
7444 (handle_pragma_redefine_extname): Change to use new function.
7446 2002-07-08 Roger Sayle <roger@eyesopen.com>
7448 * combine.c (combine_simplify_rtx): Add an explicit cast
7449 to avoid signed/unsigned comparison warning.
7450 (simplify_if_then_else): Likewise.
7451 (extended_count): Likewise.
7452 (simplify_shift_const): Likewise.
7453 (simplify_comparison): Likewise.
7455 2002-07-08 Richard Sandiford <rsandifo@redhat.com>
7457 * config/mips/mips.md: Add imadd type. Update scheduler description
7458 to use imadd as well as imul.
7459 (*mul_acc_si, *madsi): Change imul alternatives to imadd.
7460 (*mul_acc_di, *mul_acc_64bit_di): Likewise.
7461 (*mul_sub_si): Likewise for first alternative. Change second
7462 alternative from imul to multi.
7464 2002-07-07 Neil Booth <neil@daikokuya.co.uk>
7466 * c-common.c (c_common_post_options): Update prototype;
7467 don't init backends if preprocessing only.
7468 * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
7469 * langhooks.h (struct lang_hooks): Update post_options to
7471 * toplev.c (parse_options_and_default_flags, do_compile,
7472 lang_independent_init): Update prototypes. Allow the
7473 front end to specify that there is no need to initialize
7475 (general_init): Move call to hex_init here...
7476 (toplev_main): ...from here. Pass flag for back end init
7479 Sun Jul 7 20:38:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
7481 * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
7482 (PREDICATE_CODES): Add entries for equality_comparison_operator,
7483 greater_comparison_operator and less_comparison_operator.
7484 * sh.c (print_operand): Add '\'' code. Make 'o' handle
7486 (equality_comparison_operator): New function.
7487 (greater_comparison_operator, less_comparison_operator): Likewise.
7488 * sh.md (beq_media_i): Disable generator function generation.
7489 Use match_operator to handle a whole class of comparisons. Add
7490 modifier in output template to provide branch prediction. Add type.
7491 (bgt_media_i, ble_media_i): Likewise. Allow zero operands.
7492 (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
7493 (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
7494 (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
7496 2002-07-07 Hans-Peter Nilsson <hp@bitrange.com>
7498 Emit MMIX function prologue and epilogue as rtl.
7499 * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
7500 not unprototyped get_hard_reg_initial_val.
7501 ("call_value", "nonlocal_goto_receiver"): Ditto.
7502 ("return"): Make define_expand. Move real insn to...
7503 ("*expanded_return"): New pattern.
7504 ("prologue", "epilogue"): New define_expands.
7505 * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
7506 (struct machine_function): New member in_prologue.
7507 (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
7508 (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
7509 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
7510 (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
7511 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
7512 (LOCAL_REGNO): Define. Adjust comment.
7513 * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
7514 Consider regs_ever_live[MMIX_rJ_REGNUM], not just
7516 (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
7518 (mmix_target_asm_function_prologue): Make static. Just mark that
7519 the prologue is being emitted. Move guts to...
7520 (mmix_expand_prologue): New function. Adjust for emitting
7521 prologue as rtl. For sizes, use HOST_WIDE_INT only.
7522 (mmix_target_asm_function_epilogue): Make static. Simply emit a
7524 (mmix_expand_epilogue): New function. Adjust for emitting
7525 epilogue as rtl. For sizes, use HOST_WIDE_INT only.
7526 (mmix_target_asm_function_end_prologue): Mark that the prologue
7528 (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
7529 (mmix_conditional_register_usage): Improve comments.
7530 (mmix_local_regno): New function.
7531 (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
7532 * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
7533 (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
7534 (mmix_get_hard_reg_initial_val): Ditto.
7536 2002-07-06 Andreas Jaeger <aj@suse.de>
7538 * toplev.c (set_fast_math_flags): Don't use ISO C style function
7540 * gengtype.c (open_base_files): Likewise.
7541 (close_output_files): Likewise.
7542 * tracer.c (find_best_predecessor): Likewise.
7543 (find_best_successor): Likewise.
7544 (ignore_bb_p): Likewise.
7546 2002-07-05 Roger Sayle <roger@eyesopen.com>
7549 * builtin-attrs.def: Define new attribute lists for use in
7551 * builtins.def [DEF_BUILTIN]: Modify to take an additional
7552 ATTRS argument, an enumerated value defined in builtin-attrs.def
7553 that represents the attribute list for the builtins. Modify
7554 all builtin functions to pass an appropriate attribute list.
7555 Specify "abort", "exit", "_exit" and "_Exit" builtins here with
7556 their required noreturn attributes.
7557 * tree.h (enum_builtin_function): Ignore the additional parameter
7559 * builtins.c (built_in_names): Likewise.
7560 * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
7561 argument with a tree representing the functions attribute list.
7562 Pass this "attrs" argument to builtin_function. No longer handle
7563 the noreturn_p processing manually.
7564 (built_in_attributes): Move the definitions from builtin-attrs.def
7565 before c_common_nodes_and_builtins.
7566 (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
7567 DEF_BUILTIN, passing it to both builtin_function and the changed
7570 * doc/extend.texi: Document __builtin_abort, __builtin_exit,
7571 __builtin__exit and __builtin__Exit.
7573 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
7575 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
7576 QI mode registers in soft registers.
7577 ("zero_extendqihi2"): Do not take into account soft registers
7578 for register allocation (use '*' constraint).
7580 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
7582 * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
7584 ("*ashrsi3"): Likewise.
7585 ("*lshrsi3"): Likewise.
7587 2002-07-05 Vladimir Makarov <vmakarov@redhat.com>
7589 * genautomata.c (output_max_insn_queue_index_def): Take latencies
7592 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
7594 * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
7595 address computation and memory moves.
7597 2002-07-03 Mark Mitchell <mark@codesourcery.com>
7600 * dwarfout.c (output_reg_number): Fix warning message.
7601 (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
7604 2002-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7606 * gcc/gcc.c (asm_debug): Move initialization ...
7607 (init_spec): ... here.
7609 2002-07-05 Nathan Sidwell <nathan@codesourcery.com>
7611 * c-parse.in (extdef): Append ';'.
7612 (old_style_parm_decls): Append ';'.
7614 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
7616 * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
7617 gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
7618 to gcc_cv_as_gstabs_flag.
7619 * configure: Rebuilt.
7621 2002-07-04 Geoffrey Keating <geoffk@redhat.com>
7623 * ggc.h (ggc_add_root): Document as obsolete.
7625 Thu Jul 4 07:58:01 2002 J"orn Rennecke <joern.rennecke@superh.com>
7627 * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
7628 (mshflo_w): Likewise.
7630 Thu Jul 4 07:36:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
7632 * simplify-rtx.c (simplify_subreg): Reduce problem of finding
7633 vector mode subregs of constants to finding integer mode
7634 subregs of constants.
7635 * cse.c (cse_insn): Use simplify_gen_subreg.
7636 * convert.c (convert_to_integer): Don't strip a NOP_EXPR
7637 From a vector mode expression of different size than the
7640 2002-07-03 Eric Christopher <echristo@redhat.com>
7642 * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
7643 * config/mips/mips.h: Remove deprecated -m<processor> options
7644 and cc1_cpu_spec associated.
7645 (CONSTANT_ADDRESS_P): Fix last patch.
7646 (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
7647 * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
7650 2002-07-03 Stan Shebs <shebs@apple.com>
7652 * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
7653 (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
7654 (CPP_SPEC): Remove insertion of APPLE_CC definition.
7656 2002-07-03 Roger Sayle <roger@eyesopen.com>
7658 * combine.c (struct_undo): Change types of recorded substitutions
7659 to be either "int" or "rtx", instead of "unsigned int" and "rtx".
7660 (do_SUBST_INT): Change types of the substitution from unsigned int
7661 to int, to avoid compilation warning from SUBST_INT's only caller.
7663 (make_extraction): Add cast to avoid compilation warning.
7664 (force_to_mode): Remove cast to avoid compilation warning.
7666 2002-07-03 Eric Botcazou <ebotcazou@multimania.com>
7667 Jeff Law <law@redhat.com>
7669 * i386.md (length_immediate attribute): Fix typo.
7670 (length_address attribute): Likewise.
7671 (modrm attribute): Set it to 0 for immediate call instructions.
7672 (jcc_1 pattern): Set modrm attribute to 0.
7673 (jcc_2 pattern ): Likewise.
7674 (jump pattern): Likewise.
7675 (doloop_end_internal pattern): Explicitly set length.
7676 (leave pattern): Fix typo.
7677 (leave_rex64 pattern): Likewise.
7679 2002-07-03 David Edelsohn <edelsohn@gnu.org>
7681 * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
7682 in FPR as preference.
7684 (floatdidf2, fix_truncdfdi2): Same.
7685 (floatdisf2, floatditf2, fix_trunctfdi2): Same.
7687 (floatsitf2, fix_trunctfsi2): SImode in GPR.
7688 (ctrdi): Remove FPR alternative and splitter.
7690 2002-07-03 Will Cohen <wcohen@redhat.com>
7692 * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
7694 Wed Jul 3 10:24:16 2002 J"orn Rennecke <joern.rennecke@superh.com>
7696 * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
7697 than UNITS_PER_WORD, unless this is little endian and the first unit
7698 in this word. Let extract_bit_field decide how to load an element.
7699 Force arguments to matching mode.
7700 (expand_vector_unop): Likewise.
7702 * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
7703 consist of word_mode elements.
7704 * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
7705 BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
7706 (build_unary_op): Allow vector types for BIT_NOT_EPR.
7707 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
7709 * optabs.c (expand_vector_binop): Try to perform operation in
7710 smaller vector modes with same inner size. Add handling of AND, IOR
7711 and XOR. Reject expansion to inner-mode sized scalars when using
7712 OPTAB_DIRECT. Use simplify_gen_subreg on constants.
7713 (expand_vector_unop): Try to perform operation in smaller vector
7714 modes with same inner size. Add handling of one's complement.
7715 When there is no vector negate operation, try a vector subtract
7716 operation. Use simplify_gen_subreg on constants.
7717 * simplify-rtx.c (simplify_subreg): Add capability to convert vector
7718 constants into smaller vectors with same inner mode, and to
7719 integer CONST_DOUBLEs.
7721 2002-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7723 * c-parse.in (parsing_iso_function_signature): New variable.
7724 (extdef_1): New, copied from...
7725 (extdef): ... here. Reset parsing_iso_function_signature.
7726 (old_style_parm_decls): Reset parsing_iso_function_signature.
7727 (old_style_parm_decls_1): New, copied from old_style_parm_decls.
7728 Warn about ISO C style function definitions.
7729 (nested_function, notype_nested_function): Reset
7730 parsing_iso_function_signature.
7731 (parmlist_2): Set parsing_iso_function_signature.
7733 * doc/invoke.texi (-Wtraditional): Document new behavior.
7735 2002-07-02 Chris Demetriou <cgd@broadcom.com>
7737 * config.gcc (mips*el-*-*): Use tm_defines to set
7738 TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
7739 * config/mips/little.h: Remove.
7741 2002-07-02 Devang Patel <dpatel@apple.com>
7743 * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
7744 object as parameter. Prevent something like 'NSObject' to be
7745 used as the type for a method argument.
7747 2002-07-03 Neil Booth <neil@daikokuya.co.uk>
7749 * cpptrad.c: Update comment.
7751 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
7753 * doc/cpp.texi: Update for traditional preprocessing changes.
7754 * goc/cppopts.texi: Similarly.
7756 2002-07-02 Ziemowit Laski <zlaski@apple.com>
7758 * c-parse.in (designator): Enable designated initializers if ObjC.
7759 (objcmessageexpr): Remove references to objc_receiver_context.
7760 * objc/objc-act.h (objc_receiver_context): Remove decl.
7761 * objc/objc-act.c (objc_receiver_context): Remove.
7762 (lookup_objc_ivar): Test objc_method_context instead of
7763 objc_receiver_context.
7765 Tue Jul 2 18:45:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
7767 * sh.c (print_operand, case 'N'): Allow zero vector.
7768 (arith_reg_or_0_operand): Likewise.
7769 (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
7770 * sh.h (CONST_COSTS): 0 has 0 cost. Check OUTER_CODE for
7771 IOR, XOR, PLUS and SET and take their respective constant
7772 ranges into account.
7773 (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
7774 * sh.md (subdi3, subdi3_media): Allow zero operand.
7775 (movv8qi_i+3): Only vector that is not split is the zero vector.
7776 Fix operand 3 to simplify_subreg.
7777 (movv2si_i): Split alternative 1.
7778 (mshfhi_l_di_rev+1): New splitter.
7780 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
7782 PR preprocessor/7029
7783 * cppinit.c (cpp_handle_option): Suppress warnings with an
7784 implicit "-w" for "-M" and "-MM".
7785 * doc/cppopts.texi: Update.
7787 2002-07-01 Roger Sayle <roger@eyesopen.com>
7789 * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
7790 identifier "bzero" to "memset". Pass extra NULL_TREE argument to
7793 2002-07-02 Alan Modra <amodra@bigpond.net.au>
7795 * README.Portability: Fix typos.
7797 2002-07-01 Hans-Peter Nilsson <hp@axis.com>
7800 * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
7801 of indirections for register inside sign-extended mem part.
7803 2002-07-01 Roger Sayle <roger@eyesopen.com>
7805 * tree.h: Modify builtin_function interface to take an extra
7806 argument ATTRS, which is a tree representing an attribute list.
7808 * c-decl.c (builtin_function): Accept additional parameter.
7809 * objc/objc-act.c (builtin_function): Likewise.
7810 * f/com.c (builtin_function): Likewise.
7811 * java/decl.c (builtin_function): Likewise.
7812 * ada/utils.c (builtin_function): Likewise.
7813 * cp/decl.c (builtin_function): Likewise.
7814 (builtin_function_1): Likewise.
7816 * c-common.c (c_common_nodes_and_builtins): Pass an additional
7817 NULL_TREE argument to builtin_function. (builtin_function_2):
7819 * cp/call.c (build_java_interface_fn_ref): Likewise.
7820 * objc/objc-act.c (synth_module_prologue): Likewise.
7821 * java/decl.c (java_init_decl_processing): Likewise.
7822 * f/com.c (ffe_com_init_0): Likewise.
7824 * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
7825 NULL_TREE argument to builtin_function.
7826 * config/arm/arm.c (def_builtin): Likewise.
7827 * config/c4x/c4x.c (c4x_init_builtins): Likewise.
7828 * config/i386/i386.c (def_builtin): Likewise.
7829 * config/ia64/ia64.c (def_builtin): Likewise.
7830 * config/rs6000/rs6000.c (def_builtin): Likewise.
7832 2002-07-01 Zack Weinberg <zack@codesourcery.com>
7834 * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
7835 * config/mips/t-isa3264: Likewise.
7836 * config/mmix/t-mmix: Likewise.
7838 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
7840 * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
7842 2002-07-01 Roger Sayle <roger@eyesopen.com>
7845 * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
7846 A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
7849 2002-07-01 Nathanael Nerode <neroden@gcc.gnu.org>
7851 * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
7853 2002-07-01 Matt Kraai <kraai@alumni.cmu.edu>
7855 * README.Portability (Function prototypes): Give an example of
7856 declaring and defining a function with no arguments.
7858 * README.Portability (Function prototypes): Document new
7859 variable-argument function macros.
7861 Mon Jul 1 19:55:17 2002 J"orn Rennecke <joern.rennecke@superh.com>
7863 * sh.c (langhooks.h): Include.
7864 (sh_init_builtins, sh_media_init_builtins): New functions.
7865 (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
7866 (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
7867 (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
7868 (builtin_description): New struct tag.
7869 (signature_args, bdesc): New arrays.
7870 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
7871 (print_operand): Add 'N' modifier.
7872 * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
7873 (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
7874 (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
7875 (CONST_COSTS): Add special case for SHmedia AND.
7876 (PREDICATE_CODES): Add and_operand, arith_reg_dest,
7877 extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
7878 sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
7879 target_operand can also be const or unspec.
7880 * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
7881 (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
7882 (attribute type): Add new types.
7883 (anddi3): Add splitter.
7884 (movdi_const_16bit+1): Add code to handle vector constants and
7885 bitmasks efficiently.
7886 (shori_media): Have generator function made.
7887 (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
7888 (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
7889 (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
7890 (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
7891 (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
7892 (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
7893 (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
7894 (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
7895 (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
7896 (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
7897 (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
7898 (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
7899 (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
7900 (mshflo_b, mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
7901 (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
7902 (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
7903 (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
7904 (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
7905 (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
7908 (fpu_switch+1, fpu_switch+2): Remove constraint.
7910 2002-07-01 Aldy Hernandez <aldyh@redhat.com>
7912 * tree.c (build_function_type_list): Update function comment.
7913 Rename first argument to return_type.
7915 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
7917 * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
7918 tradcif.y and related files.
7920 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
7922 * cpptrad.c (skip_whitespace): Pass pointer to prior char.
7924 2002-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7926 * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
7928 See ChangeLog.7 for earlier changes.