2002-09-30 David S. Miller <davem@redhat.com>
[official-gcc.git] / gcc / ChangeLog
blob9a5c5e9c7e8bf12b76d586aca434595eb40cc297
1 2002-09-30  David S. Miller  <davem@redhat.com>
3         PR middle-end/7151
4         * config/sparc/sparc.md (movdi_insn_sp32_v9): Accept 'e' regs.
5         (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
7 2002-10-01  Roger Sayle  <roger@eyesopen.com>
9         * unroll.c (loop_iterations): Revert 2002-09-08 change.
11 2002-10-01  Richard Henderson  <rth@redhat.com>
13         * real.c (real_to_decimal): Crop trailing zeros for DIGITS < 0.
14         (real_to_hexadecimal): Likewise.
15         * print-rtl.c (print_rtx): If we are linked with real.c, don't
16         dump the XWINT fields of a floating point CONST_DOUBLE.
18 2002-10-01  Jason Thorpe  <thorpej@wasabisystems.com>
20         * config/vax/elf.h (FUNCTION_PROFILER): Fix __mcount call.
22 2002-10-01  Richard Henderson  <rth@redhat.com>
24         * calls.c (precompute_register_parameters): Force non-legitimate
25         constants into pseudos.
27 2002-10-01  Nick Clifton  <nickc@redhat.com>
29         * config/rs6000/spe.md (spe_evrlwi): Add missing third operand
30         to assembler template.
32 2002-10-01  Richard Henderson  <rth@redhat.com>
34         * dwarf2out.c (loc_descriptor_from_tree): Relax requirement
35         for TLS debug info to !DECL_EXTERNAL.
37 2002-10-01  Matt Thomas  <matt@3am-software.com>
38             Jason Thorpe  <thorpej@wasabisystems.com>
40         * config.gcc (vax-*-netbsdelf*): Enable configuration.
41         * config/elfos.h (PCC_BITFIELD_TYPE_MATTERS): Define only 
42         if not already defined.
43         * config/vax/elf.h: New file.
44         * config/vax/netbsd-elf.h: New file.
45         * config/vax/vax.c: Include "debug.h".
46         (vax_output_function_prologue): Add dwarf2 support.  Use
47         MAIN_NAME_P when checking for VMS_TARGET stack adjust.
48         * config/vax/vax.h (CONST_OK_FOR_LETTER_P): Add cases for
49         'J' [0..63], 'K' [-128..127], 'L' [-32768..32767],
50         'M' [0..255], 'N' [0..65535], and, 'O' [-63..-1].
51         (VAX_ISTREAM_SYNC): Remove.
52         (INITIALIZE_TRAMPOLINE): Use gen_sync_istream.
53         (JUMP_TABLES_IN_TEXT_SECTION): Define.
54         (ASM_OUTPUT_REG_POP): Use reg_names for the stack pointer.
55         (ASM_OUTPUT_ADDR_VEC_ELT): Use ASM_GENERATE_INTERNAL_LABEL
56         and assemble_name.
57         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
58         (PRINT_OPERAND_PUNCT_VALID_P): Accept '|'.
59         (PRINT_OPERAND): Output REGISTER_PREFIX for '|'.
60         (INCOMING_RETURN_ADDR_RTX): Define.
61         * config/vax/vax.md (VUNSPEC_BLOCKAGE)
62         (VUNSPEC_SYNC_ISTREAM): Define.
63         (blockage): Use VUNSPEC_BLOCKAGE.
64         (sync_istream): New insn.
66 2002-10-01  Richard Henderson  <rth@redhat.com>
68         * config/vax/vax.md (call_pop, *call_pop, call_value_pop)
69         (*call_value_pop, call, call_value): Add dwarf2 EH support.
70         (*call): New insn.
72 2002-10-01  Nathan Sidwell  <nathan@codesourcery.com>
74         PR c/8083
75         * c-typeck.c (build_c_cast): Warn about type punning which breaks
76         type based aliasing.
78 2002-10-01  Mark Mitchell  <mark@codesourcery.com>
80         * stor-layout.c (update_alignment_for_field): New function.
81         (place_union_field): Use it.
82         (place_field): Likewise.
83         
84 2002-10-01  Nathan Sidwell  <nathan@codesourcery.com>
86         PR other/8077
87         * gcc.c (cc1_options): Add space on -auxbase-strip.
89 2002-10-01  Jim Wilson  <wilson@redhat.com>
91         * config/v850/v850.h (EPILOGUE_USES): Define.
93 2002-09-30  Andrew Haley  <aph@redhat.com>
95         * flow.c (insn_dead_p): When using non-call-exceptions, don't 
96         eliminate insns that may trap.
97         * cse.c (insn_live_p): Likewise.
99 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
101         * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
102         (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
103         * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
104         * config/mips/mips.md: Apply same renaming here.
106 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
108         * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
109         (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
110         * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
111         * config/mips/mips.md (define_attr cpu): Remove r4320.
112         Remove vr4320 scheduler and uses of TARGET_MIPS4320.
114 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
116         * config/mips/mips.c (mips16_strings): New variable.
117         (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
118         symbol in mips16_strings.  Free the list.
119         (mips_encode_section_info): Keep track of local strings.
121 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
123         * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
124         (sordered_df, sordered_sf): Remove.
125         * config/mips/mips.c (get_float_compare_codes): New fn.
126         (gen_int_relational, gen_conditional_move): Use it.
128 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
130         * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
131         * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
132         * config/mips/mips.c (fcc_register_operand): New function.
133         (mips_emit_fcc_reload): New function, extracted from reload_incc.
134         (override_options): Allow TFmode values in float registers
135         if ISA_HAS_8CC.
136         * cnfig/mips/mips.md (reload_incc): Change destination prediate
137         to fcc_register_operand.  Remove misleading source constraint.
138         Use mips_emit_fcc_reload.
139         (reload_outcc): Duplicate reload_incc.
141 2002-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
143         * longlong.h: Partially synchronize with GMP-4.1 version:
144         Use i370 definitions also for s390.
145         Add generic definition of umul_ppmm in terms of smul_ppmm.
146         [s390] (umul_ppmm): Remove.
147         [s390] (smul_ppmm): Fix incorrect assembler constraints.
148         [s390] (smul_ppmm, sdiv_qrnnd): Rename __xx to __x.
150 2002-09-30  Bob Wilson  <bob.wilson@acm.org>
152         * config/xtensa/xtensa.h (REG_CLASS_NAMES, REG_CLASS_CONTENTS):
153         Add new RL_REGS register class.
154         (PREFERRED_RELOAD_CLASS, PREFERRED_OUTPUT_RELOAD_CLASS):
155         Call xtensa_preferred_reload_class for both input and output reloads.
156         * config/xtensa/xtensa.c (xtensa_regno_to_class): Use new RL_REGS class.
157         (xtensa_preferred_reload_class): Handle output reloads; use RL_REGS
158         instead of either AR_REGS or GR_REGS classes.
159         (xtensa_secondary_reload_class): Use new RL_REGS class.
160         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class): Update.
162 2002-09-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
164         * pa.c (hppa_encode_label): Don't drop '*' from function labels.
165         (pa_strip_name_encoding): Strip '@' and '*', in that order.
166         * pa.h (ASM_OUTPUT_LABELREF): Output user_label_prefix except when
167         there is a '*' prefix in NAME.
169 Mon Sep 30 21:33:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
171         * reload.c (push_reload): Handle subregs and secondary memory.
172         * reload1.c (gen_reload): Likewise.
174         * jump.c (reg_or_subregno): New function.
175         * rtl.h (reg_or_subregno): Declare
176         * unroll.c (find_splittable_givs): Handle subregs.
178 2002-09-30  Mark Mitchell  <mark@codesourcery.com>
180         * store-layout.c (finish_record_layout): Add free_p parameter.
181         (layout_type): Pass it.
182         * tree.h (finish_record_layout): Update prototype.
184 Mon Sep 30 14:57:18 CEST 2002  Jan Hubicka  <jh@suse.cz>
186         * i386.h (TARGET_CPP_CPU_BUILTINS): Define __SSE_MATH__.
188         * gcse.c (cprop_jump): Check that the register has not
189         been modified
190         (cprop_jump): Likewise.
192 2002-09-30  Richard Earnshaw  <rearnsha@arm.com>
194         * arm.h (BASE_REG_CLASS): Always return LO_REGS for Thumb.
195         (MODE_BASE_REG_CLASS, case Thumb): Only return BASE_REGS if we know
196         that we have a SImode access, and only then if reload hasn't completed;
197         for all other cases, use LO_REGS.
199 2002-09-29  Richard Henderson  <rth@redhat.com>
201         * real.c (real_from_string): Apply sign last.  Tidy exponent handling.
203 2002-09-29  Richard Henderson  <rth@redhat.com>
205         PR c/8002
206         * combine.c (force_to_mode): Handle FLOAT_MODE destinations
207         for CONST_INT.
209 2002-09-29  David Edelsohn  <edelsohn@gnu.org>
211         * real.h (ibm_extended_format): Declare.
212         * real.c (encode_ibm_extended, decode_ibm_extended): New
213         functions.
215 2002-09-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
217         * darwin-protos.h (darwin_asm_output_dwarf_delta): Prototype.
219         * ia64.c (ia64_hpux_asm_file_end): Const-ify.
221 2002-09-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
223         * expmed.c (extract_bit_field): Fix bit-field extraction from SUBREGs.
225 2002-09-29  Kazu Hirata  <kazu@cs.umass.edu>
227         * builtins.def: Fix comment formatting.
228         * c-common.def: Likewise.
229         * cfgcleanup.c: Likewise.
230         * combine.c: Likewise.
231         * gengtype.c: Likewise.
232         * params.def: Likewise.
233         * predict.def: Likewise.
234         * rtl.def: Likewise.
235         * stab.def: Likewise.
236         * stor-layout.c: Likewise.
237         * tree.def: Likewise.
238         * config/darwin.c: Likewise.
239         * config/darwin.h: Likewise.
240         * config/dbxcoff.h: Likewise.
241         * config/elfos.h: Likewise.
242         * config/fp-bit.c: Likewise.
243         * config/freebsd-spec.h: Likewise.
244         * config/interix.h: Likewise.
245         * config/libgloss.h: Likewise.
246         * config/linux-aout.h: Likewise.
247         * config/linux.h: Likewise.
248         * config/lynx-ng.h: Likewise.
249         * config/lynx.h: Likewise.
250         * config/netbsd-aout.h: Likewise.
251         * config/netbsd.h: Likewise.
252         * config/netware.h: Likewise.
253         * config/psos.h: Likewise.
254         * config/ptx4.h: Likewise.
256 2002-09-28  Kazu Hirata  <kazu@cs.umass.edu>
258         * ChangeLog.4: Fix typos.
259         * ChangeLog.6: Likewise.
260         * FSFChangeLog.10: Likewise.
261         * genattrtab.c: Fix comment typos.
262         * haifa-sched.c: Likewise.
263         * real.c: Likewise.
264         * tree.h: Likewise.
265         * config/arm/arm.c: Likewise.
266         * config/arm/crti.asm: Likewise.
267         * config/arm/crtn.asm: Likewise.
268         * config/frv/frv.c: Likewise.
269         * config/frv/frv.md: Likewise.
270         * config/h8300/h8300.md: Likewise.
271         * config/i386/rtemself.h: Likewise.
272         * config/ia64/unwind-ia64.c: Likewise.
273         * config/ip2k/ip2k.h: Likewise.
274         * config/m88k/m88k.c: Likewise.
275         * config/m88k/m88k.md: Likewise.
276         * config/mips/sr71k.md: Likewise.
277         * config/mmix/mmix.c: Likewise.
278         * config/rs6000/rs6000.c: Likewise.
279         * config/sh/sh.md: Likewise.
281 2002-09-26  Theodore A. Roth  <troth@verinet.com>
283         * config/avr/avr.c: Eliminate use of _PC_ in pc relative insns.
284         * config/avr/avr.md: Ditto.
286 2002-09-27  Alexander N. Kabaev <ak03@gte.com>
288         PR preprocessor/8055
289         * cppmacro.c (stringify_arg): Do not overflow the buffer
290         with the terminating NUL when the argument to be stringified
291         has no tokens.
293 2002-09-27  Richard Henderson  <rth@redhat.com>
295         * unroll.c (simplify_cmp_and_jump_insns): New.
296         (unroll_loop): Use it.  Use simplify_gen_foo+force_operand
297         instead of expand_simple_foo.
299 2002-09-27  Richard Henderson  <rth@redhat.com>
301         PR optimization/7520
302         * cfganal.c (flow_active_insn_p): New.
303         (forwarder_block_p): Use it.
305 2002-09-27  Richard Henderson  <rth@redhat.com>
307         * emit-rtl.c (active_insn_p): Revert last change.
309 2002-09-27  Jakub Jelinek  <jakub@redhat.com>
311         * doc/extend.texi (tls_model): Document.
312         * varasm.c (decl_tls_model): New.
313         * c-common.c (handle_tls_model_attribute): New.
314         (c_common_attribute_table): Add tls_model.
315         * config/alpha/alpha.c (alpha_encode_section_info): Use
316         decl_tls_model.
317         * flags.h (enum tls_model, flag_tls_default): Move...
318         * tree.h (enum tls_model, flag_tls_default): ...here.
319         (decl_tls_model): New prototype.
320         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
321         * config/i386/i386.c (ix86_encode_section_info): Likewise.
322         * config/i386/i386.md (tls_global_dynamic, tls_local_dynamic_base):
323         Allow !flag_pic.
325 2002-09-27  Kazu Hirata  <kazu@cs.umass.edu>
327         * LANGUAGES: Follow spelling conventions.
328         * rtl.def: Likewise.
329         * sbitmap.c: Likewise.
330         * sched-int.h: Likewise.
331         * sched-rgn.c: Likewise.
332         * sibcall.c: Likewise.
333         * simplify-rtx.c: Likewise.
334         * ssa.c: Likewise.
335         * stab.def: Likewise.
336         * stmt.c: Likewise.
337         * stor-layout.c: Likewise.
338         * target.h: Likewise.
339         * timevar.c: Likewise.
340         * toplev.c: Likewise.
341         * tree-dump.c: Likewise.
342         * tree-inline.c: Likewise.
343         * tree.c: Likewise.
344         * tree.def: Likewise.
345         * tree.h: Likewise.
346         * unroll.c: Likewise.
347         * varasm.c: Likewise.
348         * vmsdbgout.c: Likewise.
349         * treelang/treelang.texi: Likewise.
350         * treelang/treetree.c: Likewise.
352 2002-09-27  Kazu Hirata  <kazu@cs.umass.edu>
354         * config/h8300/h8300.c (compute_saved_regs): Use a macro
355         instead of a hard register number.
356         (get_shift_alg): Use an enumerated type instead of numbers.
357         (h8300_shift_needs_scratch_p): Likewise.
359 2002-09-26  David S. Miller  <davem@redhat.com>
361         PR optimization/7335
362         * calls.c (emit_library_call_value_1): Passing args by reference
363         converts a CONST function into a PURE one.
365 2002-09-26  David Edelsohn  <edelsohn@gnu.org>
367         * dbxout.c (FORCE_TEXT): Switch to current_function_decl, not
368         text_section.
369         * xcoffout.h (DBX_STATIC_BLOCK_START): Remove explicit change to
370         text section.
371         * config/rs6000/rs6000.c (rs6000_override_options): Allow
372         function-sections and data-sections functionality on AIX.
374 2002-09-26  David Edelsohn  <edelsohn@gnu.org>
375             Dale Johannesen  <dalej@apple.com>
377         * config/rs6000/rs6000.c (rs6000_emit_move): Insert zero-extend
378         in RTL for sub-word loads from memory.
380 2002-09-26  Richard Henderson  <rth@redhat.com>
382         PR c/7160
383         * sched-deps.c (sched_analyze_insn): Make clobber insns depend
384         on call insns.
386 2002-09-26  Richard Henderson  <rth@redhat.com>
388         * emit-rtl.c (const_double_htab_eq): Remove unused variable.
390 2002-09-26  Chris Lattner  <sabre@nondot.org>
392         * ssa.c (rename_insn_1): Handle RENAME_NO_RTX correctly when
393         handling undefined values.
395 2002-09-26  Richard Henderson  <rth@redhat.com>
397         PR opt/7520
398         * emit-rtl.c (active_insn_p): Consider a clobber of the
399         function return value to be active even after reload.
401 2002-09-27  Alan Modra  <amodra@bigpond.net.au>
403         * doloop.c (doloop_modify_runtime <biv skips initial incr>): Adjust
404         by absolute loop increment, not loop increment.
406 2002-09-26  Kazu Hirata  <kazu@cs.umass.edu>
408         * c-common.h: Follow spelling conventions.
409         * cpplex.c: Likewise.
410         * cpplib.h: Likewise.
411         * gthr-dce.h: Likewise.
412         * gthr-posix.h: Likewise.
413         * optabs.c: Likewise.
414         * output.h: Likewise.
415         * profile.c: Likewise.
416         * protoize.c: Likewise.
417         * ra-rewrite.c: Likewise.
418         * real.c: Likewise.
419         * recog.c: Likewise.
420         * reg-stack.c: Likewise.
421         * regclass.c: Likewise.
422         * regmove.c: Likewise.
423         * reload.c: Likewise.
424         * reload.h: Likewise.
425         * reload1.c: Likewise.
426         * reorg.c: Likewise.
427         * resource.c: Likewise.
428         * rtl.h: Likewise.
429         * rtlanal.c: Likewise.
431 2002-09-26  Steve Ellcey  <sje@cup.hp.com>
433         * config/ia64/ia64.c (ia64_expand_load_address): Ensure correct mode
434         for symbol address.
436 2002-09-24  Eric Christopher  <echristo@redhat.com>
438         * config/mips/elf.h: Add HANDLE_SYSV_PRAGMA.
439         * config/mips/elf64.h: Ditto.
441 2002-09-24  Eric Christopher  <echristo@redhat.com>
443         * except.c (expand_builtin_extract_return_address): Handle case
444         where Pmode != ptr_mode.
446 2002-09-26  Steve Ellcey  <sje@cup.hp.com>
448         * config/ia64/hpux.h (ASM_OUTPUT_EXTERNAL_LIBCALL): New
450 2002-09-26  Steve Ellcey  <sje@cup.hp.com>
452         * config/ia64/hpux.h (TARGET_DEFAULT): Include TARGET_ILP32.
454 2002-09-26  Igor Shevlyakov <igor@microunity.com>
456         * combine.c (simplify_set): Don't call to force_to_mode if size
457         of integer type is larger than HOST_BITS_PER_WIDE_INT.
459 2002-09-26  Janis Johnson  <janis187@us.ibm.com>
461         * Makefile.in (qmtest-g++): Fix file path.
463 2002-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
465         * expr.c (expand_expr) [MINUS_EXPR]: Convert A - const to
466         A + (-const) on RTX level, even for unsigned types.
468 2002-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
470         * reload.c (dup_replacements): New function.
471         (find_reloads): Use it to duplicate replacements at the top level
472         of match_dup operands.
474 2002-09-26  Miles Bader  <miles@gnu.org>
476         * v850.md ("length"): Change default value to 4.
478 2002-09-26  Kazu Hirata  <kazu@cs.umass.edu>
480         * ChangeLog.1: Follow spelling conventions.
481         * ChangeLog.4: Likewise.
482         * ChangeLog.6: Likewise.
483         * FSFChangeLog.11: Likewise.
484         * doc/cpp.texi: Likewise.
485         * doc/invoke.texi: Likewise.
486         * doc/tm.texi: Likewise.
488 2002-09-26  Nick Clifton  <nickc@redhat.com>
490         * config.gcc: Add x prefix to v850e case for handling
491         --with-cpu=v850e.
493 2002-09-25  David S. Miller  <davem@redhat.com>
495         PR target/7842
496         * config/sparc/sparc.c (set_extends): SImode ASHIFT does not
497         extend.
499 2002-09-25  Richard Henderson  <rth@redhat.com>
501         * emit-rtl.c (const_double_htab_eq): Distinguish integer and
502         fp CONST_DOUBLE; use real_identical.
504 2002-09-25  Mark Mitchell  <mark@codesourcery.com>
506         * doc/invoke.texi: Add more -Wabi examples.
508 2002-09-25  Richard Sandiford  <rsandifo@redhat.com>
510         * config/mips/mips.h (TARGET_MIPS4100): Add missing bracket.
512 2002-09-24  Denis Chertykov  <denisc@overta.ru>
514         * config/ip2k/ip2k.c (function_epilogue): Fix wrong numbers in
515         cases of optimizing "add sp,w" to "inc sp".
517 2002-09-24  Adam Nemet  <anemet@lnxw.com>
519         * config/arm/arm.c (thumb_unexpanded_epilogue): Don't generate
520         epilogue for naked functions.
522 2002-09-24  Adam Nemet  <anemet@lnxw.com>
523             Nick Clifton  <nickc@redhat.com>
525         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Remove.
526         (FUNCTION_PROFILER): Only invoke THUMB_FUNCTION_PROFILER if it
527         is defined.
529 2002-09-24  Ulrich Weigand  <uweigand@de.ibm.com>
531         * config/s390/s390.c (preferred_la_operand_p): New function.
532         * config/s390/s390-protos.h (preferred_la_operand_p): Declare it.
533         * config/s390/s390.md ("addaddr_esame", "*la_ccclobber"): Replace by ...
534         ("*la_64_cc", "*la_31_cc", splitters): ... these.
535         ("*la_31"): Deactivate for TARGET_64BIT.
536         ("*la_31_and", "*la_31_and_cc"): New.
538 2002-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
540         * real.h (real_value): Make `exp' explicitly signed.
542 2002-09-24  Kazu Hirata  <kazu@cs.umass.edu>
544         * config/elfos.h: Follow spelling conventions.
545         * config/alpha/alpha.h: Likewise.
546         * config/arc/arc.h: Likewise.
547         * config/arm/arm.md: Likewise.
548         * config/avr/avr.h: Likewise.
549         * config/cris/cris.md: Likewise.
550         * config/d30v/d30v.h: Likewise.
551         * config/frv/frv.c: Likewise.
552         * config/frv/frv.h: Likewise.
553         * config/h8300/h8300.c: Likewise.
554         * config/h8300/h8300.h: Likewise.
555         * config/h8300/h8300.md: Likewise.
556         * config/i386/cygwin.h: Likewise.
557         * config/i386/i386.h: Likewise.
558         * config/i386/sysv3.h: Likewise.
559         * config/i960/i960.h: Likewise.
560         * config/ia64/ia64.h: Likewise.
561         * config/ia64/ia64.md: Likewise.
562         * config/ip2k/ip2k.h: Likewise.
563         * config/m32r/m32r.h: Likewise.
564         * config/m68k/m68k.h: Likewise.
565         * config/m88k/m88k.h: Likewise.
566         * config/mcore/mcore.c: Likewise.
567         * config/mcore/mcore.h: Likewise.
568         * config/mcore/mcore.md: Likewise.
569         * config/mips/mips.h: Likewise.
570         * config/mmix/mmix.h: Likewise.
571         * config/mmix/mmix.md: Likewise.
572         * config/ns32k/netbsd.h: Likewise.
573         * config/ns32k/ns32k.h: Likewise.
574         * config/ns32k/ns32k.md: Likewise.
575         * config/pa/pa.h: Likewise.
576         * config/romp/romp.h: Likewise.
577         * config/rs6000/rs6000.h: Likewise.
578         * config/rs6000/rs6000.md: Likewise.
579         * config/sparc/sparc.h: Likewise.
580         * config/stormy16/stormy-abi: Likewise.
581         * config/stormy16/stormy16.h: Likewise.
582         * config/vax/vax.h: Likewise.
584 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
586         * version.c (version_string): Now const char[].
587         * version.h: Update to match.
589 2002-09-23  Richard Henderson  <rth@redhat.com>
591         * config/i386/i386.h (MASK_ACCUMULATE_OUTGOING_ARGS_SET, MASK_MMX_SET,
592         MASK_SSE_SET, MASK_SSE2_SET, MASK_3DNOW_SET, MASK_3DNOW_A_SET): Kill.
593         (TARGET_SWITCHES): Don't reference them.
594         * config/i386/i386.c (override_options): Use target_flags_explicit
595         to examine bits set by the user.
597 2002-09-23  Dale Johannesen  <dalej@apple.com>
599         * dbxout.c (dbxout_parms):  Set current_sym_code for params
600         passed on stack by invisible reference.
602 2002-09-23  Richard Earnshaw  <rearnsha@arm.com>
604         * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Always allocate
605         at least one byte of space.
607 2002-09-23  Mark Mitchell  <mark@codesourcery.com>
609         * c-common.h (flag_abi_version): Fix typo in comment.
610         * doc/invoke.texi (flag_abi_version): Document default value.
612 2002-09-23  Hans-Peter Nilsson  <hp@axis.com>
614         * doc/extend.texi (Extended Asm): Clarify that overlap between
615         asm-declared register variables used in an asm and the asm clobber
616         list is not allowed.
617         * stmt.c (decl_conflicts_with_clobbers_p): New function.
618         (expand_asm_operands): Keep track of clobbered registers.  Call
619         decl_conflicts_with_clobbers_p for each input and output operand.
620         If no conflicts found before, also do conflict sanity check when
621         emitting clobbers.
623 2002-09-23  Richard Henderson  <rth@redhat.com>
625         * c-common.c (cpp_define_data_format): Remove.
626         (cb_register_builtins): Don't define __WCHAR_BIT__, __SHRT_BIT__,
627         __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
628         __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
629         * doc/cpp.texi: Don't document them either.
630         (__SCHAR_MAX__, __SHRT_MAX__, __INT_MAX__, __LONG_MAX__,
631         __LONG_LONG_MAX__): Document.
632         (__TARGET_FLOAT_FORMAT__): Remove.
634 2002-09-23  Richard Henderson  <rth@redhat.com>
636         * real.c (do_multiply): Normalize U before addition.
638 2002-09-23  Mark Mitchell  <mark@codesourcery.com>
640         * c-common.c (flag_abi_version): New variable.
641         * c-common.h (flag_abi_version): Declare it.
642         * c-opts.c (missing_arg): Add -fabi-version.
643         (c_common_decode_option): Process -fabi-version.
644         * doc/invoke.texi (-fabi-version): Document it.
645         (-Wabi): Add information about bit-fields in unions.
647 2002-09-22  Jason Thorpe  <thorpej@wasabisystems.com>
649         * config/mips/netbsd.h (SUBTARGET_ASM_SPEC): Always pass -KPIC
650         unless -fno-pic or -fno-PIC is specified.
652 2002-09-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
654         * c-common.c (preprocessing_trad_p): Define.
655         * pa-hiux.h, pa-hpux.h, pa-hpux7.h (CPP_PREDEFINES): Delete.
656         (TARGET_OS_CPP_BUILTINS, SUBTARGET_SWITCHES): Define.
657         * pa-hpux10.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC): Define.
658         * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define.
659         * pa-linux.h (CPP_PREDEFINES): Delete.
660         (TARGET_OS_CPP_BUILTINS, CPP_SPEC): Define.
661         * pa32-linux.h, pa64-linux.h (CPP_SPEC): Delete.
662         * pa-osf.h, pa-pro-end.h, rtems.h (CPP_PREDEFINES): Delete.
663         (TARGET_OS_CPP_BUILTINS): Define.
664         * pa.h (MASK_SIO, TARGET_SIO, TARGET_PA_10): Define.
665         (TARGET_SWITCHES): Reformat.  Use N_() macro.  Add SUBTARGET_SWITCHES.
666         (SUBTARGET_SWITCHES): Provide default definition.
667         (TARGET_OPTIONS): Reformat.  Use N_() macro.
668         (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC, CPP_64BIT_SPEC,
669         CPP_CPU_DEFAULT_SPEC, CPP_64BIT_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS,
670         EXTRA_SPECS, CPP_SPEC, CPLUSPLUS_CPP_SPEC, CPP_PREDEFINES): Delete.
671         (TARGET_CPU_CPP_BUILTINS): Define.
672         (TARGET_OS_CPP_BUILTINS): Define for BSD-like systems.
673         * doc/invoke.texi (msio, mwsio): Document new hppa options.
674         * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Document macro
675         preprocessing_trad_p().
677 2002-09-22  Jason Thorpe  <thorpej@wasabisystems.com>
679         * doc/install.texi: Document behavior of --with-headers and
680         --with-libs when arguments are omitted.
682 2002-09-22  Kazu Hirata  <kazu@cs.umass.edu>
684         * dbxout.c: Follow spelling conventions.
685         * defaults.h: Likewise.
686         * df.c: Likewise.
687         * diagnostic.h: Likewise.
688         * doloop.c: Likewise.
689         * dwarf2out.c: Likewise.
690         * dwarfout.c: Likewise.
691         * emit-rtl.c: Likewise.
692         * except.c: Likewise.
693         * explow.c: Likewise.
694         * expmed.c: Likewise.
695         * expr.c: Likewise.
696         * expr.h: Likewise.
697         * flags.h: Likewise.
698         * flow.c: Likewise.
699         * fold-const.c: Likewise.
700         * function.c: Likewise.
701         * function.h: Likewise.
702         * gcc.c: Likewise.
703         * gcov-io.h: Likewise.
704         * gcov.c: Likewise.
705         * gcse.c: Likewise.
706         * genattrtab.c: Likewise.
707         * genconfig.c: Likewise.
708         * genrecog.c: Likewise.
709         * ggc-page.c: Likewise.
710         * ggc.h: Likewise.
711         * global.c: Likewise.
712         * gthr-win32.h: Likewise.
713         * integrate.c: Likewise.
714         * jump.c: Likewise.
715         * langhooks.c: Likewise.
716         * langhooks.h: Likewise.
717         * line-map.h: Likewise.
718         * local-alloc.c: Likewise.
719         * longlong.h: Likewise.
720         * loop.c: Likewise.
721         * loop.h: Likewise.
723 Tue Aug 27 22:26:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
725         * i386.h (BIGGEST_FIELD_ALIGNMENT): Set proper default for x86_64.
727 Tue Aug 27 20:07:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
729         * i386.c (overwrite_options): Set -mpreferred-stack-boundary to 128
730         for -Os/TARGET_64BIT too.
732 2002-09-21  Kazu Hirata  <kazu@cs.umass.edu>
734         * ChangeLog: Follow spelling conventions.
735         * ChangeLog.0: Likewise.
736         * ChangeLog.1: Likewise.
737         * ChangeLog.2: Likewise.
738         * ChangeLog.3: Likewise.
739         * ChangeLog.4: Likewise.
740         * ChangeLog.5: Likewise.
741         * ChangeLog.6: Likewise.
742         * FSFChangeLog.10: Likewise.
743         * FSFChangeLog.11: Likewise.
744         * alias.c: Likewise.
745         * basic-block.h: Likewise.
746         * c-aux-info.c: Likewise.
747         * c-common.c: Likewise.
748         * c-common.h: Likewise.
749         * c-decl.c: Likewise.
750         * c-format.c: Likewise.
751         * c-semantics.c: Likewise.
752         * c-typeck.c: Likewise.
753         * calls.c: Likewise.
754         * cfganal.c: Likewise.
755         * cfgloop.c: Likewise.
756         * collect2.c: Likewise.
757         * combine.c: Likewise.
758         * conflict.c: Likewise.
759         * cppexp.c: Likewise.
760         * cppfiles.c: Likewise.
761         * cpphash.h: Likewise.
762         * cppinit.c: Likewise.
763         * cpplex.c: Likewise.
764         * cpplib.c: Likewise.
765         * cpplib.h: Likewise.
766         * cppmacro.c: Likewise.
767         * cse.c: Likewise.
769 2002-09-21  Richard Earnshaw  <rearnsha@arm.com>
771         * netbsd-aout.h (NETBSD_LINK_SPEC_AOUT): New, takes old definition of
772         LINK_SPEC.
773         (LINK_SPEC): Define to NETBSD_LINK_SPEC_AOUT.
774         * arm/netbsd.h (SUBTARGET_EXTRA_SEPCS): Add NETBSD_LINK_SPEC_AOUT.
775         (LINK_SPEC): Rework to use NETBSD_LINK_SPEC_AOUT).
777 2002-09-21  Richard Earnshaw  <rearnsha@arm.com>
779         PR opt/7930
780         * cse.c (fold_rtx): Calculate old_cost before we fold each
781         operand.
783 2002-09-21  Richard Henderson  <rth@redhat.com>
785         * c-common.c (cpp_define_data_format): Remove __GCC_LITTLE_ENDIAN__,
786         __GCC_BIG_ENDIAN__, __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
787         __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
788         __TARGET_USES_VAX_F_FLOAT__, __TARGET_USES_VAX_D_FLOAT__,
789         __TARGET_USES_VAX_G_FLOAT__, __TARGET_USES_VAX_H_FLOAT__.
790         * doc/cpp.texi: Don't document them.
792 2002-09-21  Richard Henderson  <rth@redhat.com>
794         * c-common.c (builtin_define_float_constants): Use real_format
795         to get the floating-point parameters.
797 2002-09-21  Richard Henderson  <rth@redhat.com>
799         * real.c (struct real_format): Move to real.h.
800         (real_format_for_mode): Rename from fmt_for_mode; update all users;
801         initialize with ieee defaults.
802         (real_to_target_fmt, real_from_target_fmt): New.
803         (ieee_single_format, ieee_double_format, ieee_extended_motorola_format,
804         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
805         ieee_quad_format, i370_single_format, i370_double_format,
806         c4x_single_format, c4x_extended_format): Rename from s/_format//.
807         (ieee_quad_format): Fix emin.
808         (format_for_size, init_real_once): Remove.
809         * real.h (struct real_format): Move from real.c.
810         (real_format_for_mode): Declare.
811         (real_to_target_fmt, real_from_target_fmt): Declare.
812         (ieee_single_format, ieee_double_format, ieee_extended_motorola_format,
813         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
814         ieee_quad_format, vax_f_format, vax_d_format, vax_g_format,
815         i370_single_format, i370_double_format, c4x_single_format,
816         c4x_extended_format): Declare.
817         * toplev.c (do_compile): Don't call init_real_once.
819         * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): Remove.
820         * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Remove.
822         * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Define.
823         * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): 64, if vax mode.
824         * config/alpha/alpha.c (override_options): Set real_format_for_mode
825         for VAX, if enabled.
827         * config/c4x/c4x.c (c4x_override_options): Set real_format_for_mode
828         for C4X.
830         * config/i370/i370.h (OVERRIDE_OPTIONS): New.
831         * config/i370/i370.c (override_options): New.
832         * config/i370/i370-protos.h: Update.
834         * config/i386/i386.c (override_options): Set real_format_for_mode
835         for Intel 80-bit extended.
836         * config/i386/i386.h (INTEL_EXTENDED_IEEE_FORMAT): Remove.
838         * config/i960/i960.h (LONG_DOUBLE_TYPE_SIZE): Mind -mlong-double-64.
839         (OVERRIDE_OPTIONS): Move code...
840         * config/i960/i960.c (i960_initialize): ... here.  Set
841         real_format_for_mode for Intel 80-bit extended.
843         * config/ia64/ia64.c (ia64_override_options): Set real_format_for_mode
844         for Intel 80-bit extended, if enabled.
846         * config/m68k/m68k.c (override_options): Set real_format_for_mode
847         for Motorola 96-bit extended.
849         * config/vax/vax.h (OVERRIDE_OPTIONS): New.
850         * config/vax/vax.c (override_options): New.
851         * config/vax/vax-protos.h: Update.
853 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
855         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Add
856         #if TARGET_MACHO.
858         * config/rs6000/rs6000.md (floatdisf2_internal2): Combine
859         insns.  Supply missing clobber of scratch reg.
861 2002-09-20  Kazu Hirata  <kazu@cs.umass.edu>
863         * config/m32r/m32r.c: Follow spelling conventions.
864         * config/m32r/m32r.h: Likewise.
865         * config/m32r/m32r.md: Likewise.
866         * config/m68k/m68k.c: Likewise.
867         * config/m88k/m88k.c: Likewise.
868         * config/mcore/mcore.c: Likewise.
869         * config/mips/mips.c: Likewise.
870         * config/mips/mips.h: Likewise.
871         * config/mmix/mmix.c: Likewise.
872         * config/mn10200/mn10200.c: Likewise.
873         * config/ns32k/ns32k.h: Likewise.
874         * config/pa/pa.c: Likewise.
875         * config/pa/pa64-linux.h: Likewise.
876         * config/pdp11/pdp11.h: Likewise.
877         * config/romp/romp.c: Likewise.
878         * config/romp/romp.h: Likewise.
879         * config/rs6000/eabi.asm: Likewise.
880         * config/rs6000/linux64.h: Likewise.
881         * config/rs6000/rs6000.c: Likewise.
882         * config/rs6000/rs6000.h: Likewise.
883         * config/rs6000/rs6000.md: Likewise.
884         * config/rs6000/sysv4.h: Likewise.
885         * config/rs6000/xcoff.h: Likewise.
887 2002-09-20  Jim Wilson  <wilson@redhat.com>
889         * config/v850/v850/lib1funcs.asm (__muldi3): Change r5 to r28.
891 2002-09-20  Jakub Jelinek  <jakub@redhat.com>
893         * config/i386/i386.md (UNSPEC_GOTNTPOFF, UNSPEC_INDNTPOFF): New.
894         * config/i386/i386.c (legitimate_pic_address_disp_p): Handle
895         UNSPEC_GOTNTPOFF and UNSPEC_INDNTPOFF like UNSPEC_GOTTPOFF.
896         (legitimate_address_p): Likewise.
897         (legitimize_address): Use @gotntpoff and @indntpoff.
898         (output_pic_addr_const): Handle UNSPEC_GOTNTPOFF and UNSPEC_INDNTPOFF.
899         (output_addr_const_extra): Likewise.
901 2002-09-20  Jim Wilson  <wilson@redhat.com>
903         * combine.c (try_combine): When split an instruction pair, where the
904         first has a sign_extend src, verify that the src and dest modes match.
906 2002-09-20  Richard Henderson  <rth@redhat.com>
908         * config/mips/mips.c (dfhigh, dflow, sfhigh, sflow): Remove.
909         (override_options): Do not initialize them.
910         (mips_const_double_ok): Allow no fp constants except zero,
911         and not even that for mips16.
912         (const_float_1_operand): Use dconst1.
913         * config/mips/mips.md (movsf, movsf_internal1, movsf_internal2,
914         movdf, movdf_internal1, movdf_internal1a, movdf_internal2):
915         Don't allow arbitrary constants; fix predicates and C constraint.
917 2002-09-20  Neil Booth  <neil@daikokuya.co.uk>
919         * cppmacro.c: Don't warn about function-like macros without
920         '(' during pre-expansion.
922 2002-09-20  Jim Wilson  <wilson@redhat.com>
924         * config/v850/v850.c (current_function_anonymous_args): Delete.
925         (expand_prologue): Use current_function_args_info.anonymous_args.
926         (expand_epilogue): Delete use of current_function_anonymous_args.
927         * config/v850/v850.h (struct cum_arg): Add anonymous_args field.
928         (INIT_CUMULATIVE_ARGS): Clear anonymous_args field.
929         (current_function_anonymous_args): Delete extern declaration.
930         (SETUP_INCOMING_VARARGS): Set anonymous_args field.
932 2002-09-20  Geoffrey Keating  <geoffk@apple.com>
934         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update for change
935         to load_macho_picbase.
936         * config/rs6000/rs6000.md: Document Darwin-specific unspec IDs.
937         (load_macho_picbase): Take the symbol to use as a parameter.
938         (macho_correct_pic): New insn.
939         (builtin_setjmp_reciever): On Darwin, restore the PIC register.
941         * config/rs6000/rs6000.h (ELIMINABLE_REGS): Use
942         RS6000_PIC_OFFSET_TABLE_REGNUM rather than hardcoding 30.
943         (CAN_ELIMINATE): Likewise.
944         (INITIAL_ELIMINATION_OFFSET): Likewise.
945         (TOC_REGISTER): Likewise.
947 2002-09-20  Richard Henderson  <rth@redhat.com>
949         * real.c (real_hash): New.
950         * real.h: Declare it.
951         * cse.c (canon_hash): Use it.
952         * cselib.c (hash_rtx): Likewise.
953         * emit-rtl.c (const_double_htab_hash): Likewise.
954         * rtl.h (CONST_DOUBLE_REAL_VALUE): New.
955         * varasm.c (struct rtx_const): Reduce vector size; separate
956         integer and fp vectors.
957         (HASHBITS): Remove.
958         (const_hash_1): Rename from const_hash.  Use real_hash.  Do not
959         take modulus MAX_HASH_TABLE.
960         (const_hash): New.  Do take modulus MAX_HASH_TABLE.
961         (output_constant_def): Do not take modulus MAX_HASH_TABLE.
962         (SYMHASH): Don't use HASHBITS.
963         (decode_rtx_const): Copy only active bits from REAL_VALUE_TYPE.
964         Fix CONST_VECTOR thinko wrt fp vectors.  Fix kind comparison.
965         (simplify_subtraction): Fix kind comparison.
966         (const_hash_rtx): Return unsigned int.  Don't use HASHBITS.
967         Use a union to pun integer array.
968         * config/rs6000/rs6000.c (rs6000_hash_constant): Use real_hash;
969         only hash two words of integral CONST_DOUBLE.
971 2002-09-20  Steve Ellcey  <sje@cup.hp.com>
973         * config/ia64/hpux.h (STARTFILE_SPEC): Modify.
974         (STARTFILE_PREFIX_SPEC): New.
975         (LINK_SPEC): Modify.
976         (LIB_SPEC): Modify.
977         (LIBGCC_SPEC): New.
979 2002-09-20  Jakub Jelinek  <jakub@redhat.com>
981         * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
982         UNSPEC_NTPOFF and UNSPEC_DTPOFF to be offsetted by constant.
984 2002-09-20  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
986         * config/arm/arm.md (sign_extract_onebit, not_signextract_onebit):
987         Add clobber of the condition code register.
989 2002-09-20  Richard Henderson  <rth@redhat.com>
991         * real.c (do_fix_trunc): Static.
992         (encode_ieee_single, encode_ieee_double, encode_ieee_extended,
993         encode_ieee_quad, encode_vax_f, encode_vax_d, encode_vax_g,
994         encode_i370_single, encode_i370_double, encode_c4x_single,
995         encode_c4x_extended): Add default abort case.
997 2002-09-20  Richard Henderson  <rth@redhat.com>
999         * real.h (enum real_value_class, SIGNIFICAND_BITS, EXP_BITS,
1000         MAX_EXP, SIGSZ, SIG_MSB, struct real_value): Move from real.c.
1001         (struct realvaluetype): Remove.
1002         (REAL_VALUE_TYPE): Use struct real_value.
1003         (REAL_VALUE_TYPE_SIZE): Use SIGNIFICAND_BITS.
1004         (test_real_width): New.
1005         * real.c: Global replace struct real_value with REAL_VALUE_TYPE.
1006         (real_arithmetic): Avoid hoops for REAL_VALUE_TYPE parameters.
1007         (real_compare, real_exponent, real_ldexp, real_isinf, real_isnan,
1008         real_isneg, real_isnegzero, real_identical, exact_real_inverse,
1009         real_to_integer, real_to_integer2, real_to_decimal,
1010         real_to_hexadecimal, real_from_string, real_from_integer,
1011         real_inf, real_nan, real_2expN, real_convert, real_to_target,
1012         real_from_target): Likewise.
1013         * tree.h (struct tree_real_cst): Use real_value not realvaluetype.
1014         * gengtype-yacc.y (bitfieldopt): Accept an ID as well.
1016 2002-09-20  Richard Henderson  <rth@redhat.com>
1018         * real.h (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT,
1019         IBM_FLOAT_FORMAT, C4X_FLOAT_FORMAT, TARGET_FLOAT_FORMAT): Move ...
1020         * defaults.h: ... here.
1021         * config/arm/arm.h, config/avr/avr.h, config/d30v/d30v.h,
1022         config/fr30/fr30.h, config/frv/frv.h, config/ia64/ia64.h,
1023         config/ip2k/ip2k.h, config/mips/mips.h, config/stormy16/stormy16.h,
1024         config/xtensa/xtensa.h (TARGET_FLOAT_FORMAT): Remove.
1026 2002-09-20  Hans-Peter Nilsson  <hp@bitrange.com>
1028         * config/mmix/mmix.md ("negdf2"): Rewrite.
1029         ("*expanded_negdf2"): New.
1031 2002-09-19  Jim Wilson  <wilson@redhat.com>
1033         * combine.c (simplify_set): When optimizing a subreg src with a
1034         cc0 dest, use GET_MODE (src) for mask instead of inner_mode.
1036 2002-09-19  Dale Johannesen <dalej@apple.com>
1037         * combine.c (make_extraction): Don't create
1038         invalid subreg.
1040 2002-09-19  Ulrich Weigand  <uweigand@de.ibm.com>
1042         * config/s390/s390.c (addr_generation_dependency_p): Handle SUBREG
1043         and STRICT_LOW_PART within SET_DEST.
1044         * config/s390/s390.md ("*extractqi", "*extracthi"): New insns with
1045         splitters, replacing pre-reload splitters.
1046         ("*zero_extendhisi2_31", "*zero_extendqisi2_31",
1047         "*zero_extendqihi2_31"): New insns.
1048         ("*zero_extendqihi2_64"): Do not clobber CC.
1050 2002-09-19  Steve Ellcey  <sje@cup.hp.com>
1052         * config/ia64/hpux.h (CTORS_SECTION_ASM_OP): New.
1053         (DTORS_SECTION_ASM_OP): Ditto.
1054         (READONLY_DATA_SECTION_ASM_OP): Moved.
1055         (DATA_SECTION_ASM_OP): New.
1056         (SDATA_SECTION_ASM_OP): New.
1057         (BSS_SECTION_ASM_OP): New.
1058         (SBSS_SECTION_ASM_OP): New.
1059         (TEXT_SECTION_ASM_OP): New.
1061 2002-09-19  Kazu Hirata  <kazu@cs.umass.edu>
1063         * config/fp-bit.c: Follow spelling conventions.
1064         * config/d30v/d30v.c: Likewise.
1065         * config/d30v/d30v.h: Likewise.
1066         * config/fr30/fr30.c: Likewise.
1067         * config/fr30/fr30.h: Likewise.
1068         * config/fr30/fr30.md: Likewise.
1069         * config/frv/frv.c: Likewise.
1070         * config/frv/frv.h: Likewise.
1071         * config/h8300/h8300.c: Likewise.
1072         * config/h8300/lib1funcs.asm: Likewise.
1073         * config/i370/i370.c: Likewise.
1074         * config/i386/i386.h: Likewise.
1075         * config/i386/i386.md: Likewise.
1076         * config/i386/pentium.md: Likewise.
1077         * config/i386/winnt.c: Likewise.
1078         * config/i960/i960.c: Likewise.
1079         * config/ia64/ia64.h: Likewise.
1080         * config/ip2k/ip2k.c: Likewise.
1081         * config/ip2k/ip2k.h: Likewise.
1082         * config/ip2k/ip2k.md: Likewise.
1083         * config/ip2k/libgcc.S: Likewise.
1085 2002-09-19  Stephen Clarke <stephen.clarke@superh.com>
1087         * config/sh/sh.h (UNSPEC_GOTOFF_P): Define.
1088         (GOTOFF_P): Extend to allow gotoff plus constant.
1090 2002-09-18  Richard Henderson  <rth@redhat.com>
1092         * ifcvt.c (noce_process_if_block): Correctly detect X modified
1093         with INSN_B before COND_EARLIEST.  Don't check A and B for
1094         modification in condition range.  Reorder INSN_B for A==B properly.
1095         (if_convert): Iterate until no matches for a block.
1097 2002-09-18  Richard Henderson  <rth@redhat.com>
1099         * calls.c (store_one_arg): Rename default_align to parm_align;
1100         always adjust parm_align for downward padding.
1102 2002-09-18  Richard Henderson  <rth@redhat.com>
1104         * toplev.c (backend_init): Move init_real_once invocation ...
1105         (do_compile): ... here.
1107 2002-09-18  Richard Henderson  <rth@redhat.com>
1109         * sibcall.c (optimize_sibling_and_tail_recursive_call): Also remove
1110         RTX_UNCHANGING_P markers for successful tail-recursive replacement.
1112 2002-09-18  Richard Henderson  <rth@redhat.com>
1114         * real.c (round_for_format): Collect sticky as unsigned long, not bool.
1116 2002-09-19  Alan Modra  <amodra@bigpond.net.au>
1118         * config/rs6000/rs6000.md: (floatdisf2): Rename to
1119         floatdisf2_internal1.
1120         (floatdisf2): New define_expand.
1121         (floatdisf2_internal2): Likewise.
1123 2002-09-18  Richard Henderson  <rth@redhat.com>
1125         * real.c (sticky_rshift_significand): Collect sticky as
1126         unsigned long, not bool.
1128 2002-09-18  Ulrich Weigand  <uweigand@de.ibm.com>
1130         * config/s390/s390.c (s390_address_cost): New function.
1131         config/s390/s390-protos.h (s390_address_cost): Add prototype.
1132         config/s390/s390.h (ADDRESS_COST): Call s390_address_cost.
1133         (RTX_COST): Use COSTS_N_INSNS.
1135 2002-09-18  Douglas Rupp  <rupp@gnat.com>
1136             Donn Terry  <donnte@microsoft.com>
1138         * stor-layout.c (place_field): Handle alignment of whole
1139         structures when MSVC compatible bitfields are involved.
1140         Change method of computing location of MS bitfields to
1141         be compatible with #pragma pack(n).
1143         * tree.h (record_layout_info): Add new field
1144         remaining_in_alignment.
1146         * doc/tm.texi: (TARGET_MS_BITFIELD_LAYOUT_P): Update.
1147         (pragma pack): Add paragraph on MSVC bit-field packing.
1149 2002-09-18  Richard Earnshaw  (reanrsha@arm.com)
1151         PR optimization/7967
1152         * arm.md (ne_zeroextractsi): Add clobber of the condition code
1153         register.
1155 2002-09-18  Kazu Hirata  <kazu@cs.umass.edu>
1157         * config/s390/s390.c: Follow spelling conventions.
1158         * config/sh/lib1funcs.asm: Likewise.
1159         * config/sh/sh.c: Likewise.
1160         * config/sh/sh.h: Likewise.
1161         * config/sparc/sparc.c: Likewise.
1162         * config/sparc/sparc.h: Likewise.
1163         * config/sparc/sparc.md: Likewise.
1164         * config/stormy16/stormy16.c: Likewise.
1165         * config/stormy16/stormy16.h: Likewise.
1166         * config/v850/v850.c: Likewise.
1167         * config/v850/v850.h: Likewise.
1168         * config/vax/vax.c: Likewise.
1169         * config/vax/vax.h: Likewise.
1171 2002-09-18  Nick Clifton  <nickc@redhat.com>
1173         * config/rs60000/rs6000.c (rs6000_emit_move): Handle V1DImode moves.
1174         * config/rs60000/rs6000.c (SPE_VECTOR_MODE): Include V1DImode.
1175         * config/rs6000/spe.md (movv1di, movv1di_internal): New patterns.
1177 2002-09-17  Zack Weinberg  <zack@codesourcery.com>
1179         * ABOUT-GCC-NLS: Remove reference to enquire, and out-of-date
1180         statement that the only translation is to en_UK.
1182 2002-09-17  Kazu Hirata  <kazu@cs.umass.edu>
1184         * config/alpha/alpha.c: Follow spelling conventions.
1185         * config/alpha/alpha.h: Likewise.
1186         * config/alpha/alpha.md: Likewise.
1187         * config/arc/arc.h: Likewise.
1188         * config/arm/arm.c: Likewise.
1189         * config/arm/arm.h: Likewise.
1190         * config/arm/arm.md: Likewise.
1191         * config/arm/pe.c: Likewise.
1192         * config/arm/unknown-elf.h: Likewise.
1193         * config/avr/avr.c: Likewise.
1194         * config/avr/avr.h: Likewise.
1195         * config/c4x/c4x.c: Likewise.
1196         * config/cris/cris.c: Likewise.
1197         * config/cris/cris.h: Likewise.
1199 2002-09-17  Samuel Figueroa  <figueroa@apple.com>
1201         * final.c (final_scan_insn): Use new macro ASM_OUTPUT_ALIGN_WITH_NOP.
1202         * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP) New macro.
1203         * doc/tm.texi (ASM_OUTPUT_ALIGN_WITH_NOP) New description.
1205 2002-09-17  Dale Johannesen  <dalej@apple.com>
1207         * cfgcleanup.c (try_forward_edges):  Do not forward a
1208         branch to just after a loop exit before loop optimization;
1209         this interfered with doloop detection.
1211 2002-09-17  Nick Clifton  <nickc@redhat.com>
1213         * config/arm/arm.c (output_return_instruction): Do not
1214         writeback the stack pointer when it is being loaded.
1215         (arm_output_epilogue): Likewise.
1217 2002-09-17  Kazu Hirata  <kazu@cs.umass.edu>
1219         * optabs.c (prepare_cmp_insn): Let emit_library_call_value
1220         generate a pseudo reg that receives the result of a libcall.
1221         (prepare_float_lib_cmp): Likewise.
1223 2002-09-17  Steve Ellcey  <sje@cup.hp.com>
1225         * config/ia64/elf.h: Remove CPP_PREDEFINES.
1227 Tue Sep 17 13:58:04 2002  Nicola Pero  <n.pero@mi.flashnet.it>
1229         Fix PR/7014 and related objc bugs:
1230         * c-typeck.c (comp_target_types): Added a reflexive argument.
1231         Pass it to ObjC when/if calling objc_comptypes().  Updated all
1232         callers to provide the appropriate reflexive argument.
1233         * objc/objc-act.c (objc_comptypes): Carefully checked and fixed
1234         typechecking for all cases of comparisons and assignments,
1235         particularly the obscure and less common ones involving protocols.
1237 2002-09-17  Nick Clifton  <nickc@redhat.com>
1239         * machmode.def (V1DImode): New mode.  A single element vector.
1240         * tree.h (TI_UV1DI_TYPE, TI_V1DI_TYPE): New tree_index enums.
1241         (unsigned_V1DI_type_node, V1D1_type_node): New type nodes.
1242         * tree.c (build_common_tree_nodes_2): Build
1243         unsigned_V1DI_type_node and V1D1_type_node.
1244         * c-common.c (c_common_type_for_mode): Return
1245         unsigned_V1DI_type_node or V1D1_type_node for V1DImode.
1246         * rtl.c (class_narrowest_): Start integer vector nodes with V1DImode.
1248 Tue Sep 17 13:40:13 2002  Nicola Pero  <n.pero@mi.flashnet.it>
1250         * doc/objc.texi (Constant string objects): Extended documentation
1251         to make clear that the constant string class ivar layout is
1252         completely fixed.
1254 2002-09-17  Roger Sayle  <roger@eyesopen.com>
1256         * cfgrtl.c (flow_delete_block_noexpunge): Delete orphaned
1257         NOTE_INSN_LOOP_CONT notes when deleting basic blocks.
1259 2002-09-16  Richard Henderson  <rth@redhat.com>
1261         * expr.c (emit_block_move): Set memory block size as appropriate
1262         for the copy.
1264 2002-09-16  Richard Henderson  <rth@redhat.com>
1266         PR fortran/3924
1267         * sdbout.c (sdbout_symbol): Don't handle offsets from a symbol.
1269 2002-09-16  Richard Henderson  <rth@redhat.com>
1271         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust SIZE
1272         as well as OFFSET for BITPOS.
1274 2002-09-16  Jeff Garzik  <jgarzik@mandrakesoft.com>
1276         * config.gcc: Treat winchip_c6-*|winchip2-*|c3-* as pentium-mmx.
1277         * config/i386/i386.c (processor_alias_table): Add winchip-c6,
1278         winchip2 and c3.
1279         * doc/invoke.texi: Mention new aliases.
1281 2002-09-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1283         * calls.c (store_one_arg): Set default alignment for BLKmode arguments
1284         to BITS_PER_UNIT when ARGS_GROW_DOWNWARD and the padding direction is
1285         downward.
1286         * function.c (pad_below):  Always compile.
1287         (locate_and_pad_parm): If defined ARGS_GROW_DOWNWARD, pad argument to
1288         alignment when it is not in a register or REG_PARM_STACK_SPACE is true.
1289         Pad below when the argument is not in a register and the padding
1290         direction is downward.
1292         * pa-64.h (MUST_PASS_IN_STACK): Move define to pa.h.
1293         (PAD_VARARGS_DOWN): Define.
1294         * pa.c (function_arg_padding): Revise padding directions to make them
1295         compatible with the 32 and 64-bit runtime architecture documentation.
1296         (hppa_va_arg):  Add code to handle variable and size zero arguments
1297         passed by reference on TARGET_64BIT.  Reformat.
1298         (function_arg): Use a PARALLEL for BLKmode and aggregates args on
1299         TARGET_64BIT.  Use a DImode PARALLEL for BLKmode args 5 to 8 bytes
1300         wide when !TARGET_64BIT.  Move forward check for mode==VOIDmode.
1301         Add comments.
1302         * pa.h (MAX_PARM_BOUNDARY): Correct define for TARGET_64BIT.
1303         (RETURN_IN_MEMORY): Return size zero types in memory.
1304         (FUNCTION_VALUE): Return TFmode in general registers.
1305         (MUST_PASS_IN_STACK): Define.
1306         (FUNCTION_ARG_BOUNDARY): Simplify.
1307         (FUNCTION_ARG_PASS_BY_REFERENCE): Pass variable and zero sized types
1308         by reference.
1309         (FUNCTION_ARG_CALLEE_COPIES): Define to FUNCTION_ARG_PASS_BY_REFERENCE.
1311 2002-09-16  Richard Henderson  <rth@redhat.com>
1313         * real.c (do_fix_trunc): New.
1314         (real_arithmetic): Call it.
1315         * simplify-rtx.c (simplify_unary_operation): Handle FIX
1316         with a floating-point result mode.
1318 2002-09-16  Richard Henderson  <rth@redhat.com>
1320         * builtin-types.def (BT_FN_FLOAT_CONST_STRING): New.
1321         (BT_FN_DOUBLE_CONST_STRING, BT_FN_LONG_DOUBLE_CONST_STRING): New.
1322         * builtins.def (__builtin_nan, __builtin_nanf, __builtin_nanl): New.
1323         (__builtin_nans, __builtin_nansf, __builtin_nansl): New.
1324         * builtins.c (fold_builtin_nan): New.
1325         (fold_builtin): Call it.
1326         * real.c (real_nan): Parse a non-empty string.
1327         (round_for_format): Fix NaN significand truncation.
1328         * real.h (real_nan): Return bool.
1329         * doc/extend.texi: Document new builtins.
1331 2002-09-16  Jason Merrill  <jason@redhat.com>
1332             Danny Smith  <dannysmith@users.sourceforge.net>
1334         * config/i386/winnt.c (ix86_handle_dll_attribute): Set
1335         DECL_EXTERN and TREE_PUBLIC for dllimported variables here...
1336         (i386_pe_mark_dllimport): Not here.
1338 2002-09-16  Nathan Sidwell  <nathan@codesourcery.com>
1340         * c-semantics.c (genrtl_do_stmt): Cope with NULL cond.
1342 2002-09-16  Geoffrey Keating  <geoffk@redhat.com>
1344         * config/rs6000/rs6000.c (build_mask64_2_operands): Suppress
1345         warnings about unused operands when HOST_BITS_PER_WIDE_INT is
1346         < 64.
1347         (rs6000_emit_cmove): Use real_isinf not target_isinf.
1349 2002-09-16  Kazu Hirata  <kazu@cs.umass.edu>
1351         * calls.c (emit_library_call_value_1): Don't refer to
1352         hard_libcall_value.
1353         * optabs.c (prepare_float_lib_cmp): Likewise.
1355 2002-09-16  Geoffrey Keating  <geoffk@apple.com>
1357         * ggc-common.c (ggc_mark_rtx_children_1): Update for changed name
1358         mangling.
1360         The following changes are merged from pch-branch:
1362         * doc/gty.texi (GTY Options): Document %a.
1363         * gengtype.c (do_scalar_typedef): New function.
1364         (process_gc_options): Handle `length' option.
1365         (set_gc_used_type): A pointer to an array of structures doesn't
1366         qualify as a pointer to a structure.
1367         (output_escaped_param): Add `%a' escape.
1368         (write_gc_structure_fields): Allow 'desc' on array of unions.
1369         (main): Define `uint8', `jword' and `JCF_u2' as scalars; use
1370         do_scalar_typedef.
1372         * gengtype.c (enum rtx_code): Make global.
1373         (rtx_format): Make global.
1374         (rtx_next): New.
1375         (gen_rtx_next): New.
1376         (write_rtx_next): New.
1377         (adjust_field_rtx_def): Skip fields marked by chain_next.
1378         (open_base_files): Delete redundant prototype.
1379         (write_enum_defn): New.
1380         (output_mangled_typename): Correct abort call.
1381         (write_gc_marker_routine_for_structure): Handle chain_next and
1382         chain_prev options.
1383         (finish_root_table): Don't output redundant \n.
1384         (main): Call gen_rtx_next, write_rtx_next, write_enum_defn.
1385         * c-tree.h (union lang_tree_node): Add chain_next option.
1387         * gengtype.h (NUM_PARAM): New definition.
1388         (struct type): For TYPE_PARAM_STRUCT, allow multiple parameters.
1389         * gengtype.c (find_param_structure): New.
1390         (adjust_field_type): Handle param<n>_is option.
1391         (process_gc_options): Detect use_params option.  Update callers.
1392         (set_gc_used_type): Add 'param' parameter, update callers.  Handle
1393         'use_params' option.
1394         (open_base_files): Add splay-tree.h to list of files included.
1395         (output_mangled_typename): New.
1396         (write_gc_structure_fields): Update 'param' parameter to support
1397         multiple parameters.  Change name mangling.  Allow parameterized
1398         fields to have an apparent scalar type.  Handle param<n>_is options,
1399         use_param option.
1400         (write_gc_marker_routine_for_structure): Update for change to name
1401         mangling.  Better guess the output file for parameterized types.
1402         (write_gc_types): Update for change to name mangling.
1403         (write_gc_root): Update for change to name mangling.  Handle (ignore)
1404         param<n>_is options.
1405         * doc/gty.texi (GTY Options): Add description of param<n>_is
1406         options, use_params option.
1407         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
1408         * gengtype-lex.l: Produce token for param<n>_is.
1409         * gengtype-yacc.y: Parse param<n>_is.
1411         * gengtype.c (adjust_field_tree_exp): Don't name a variable 'rindex'.
1413         * rtl.c: Update comment describing rtx_format.
1414         * rtl.h (union rtunion): Separate definition and typedef.
1415         (struct rtx_def): Use gengtype to mark.
1416         * Makefile.in (gengtype.o): Also depend on rtl.def.
1417         * ggc.h (ggc_mark_rtx_children): Delete prototype.
1418         (ggc_mark_rtx): Change to alias of gengtype-generated routine.
1419         * ggc-common.c (ggc_mark_rtx_children): Delete.
1420         (ggc_mark_rtx_children_1): Delete.
1421         (gt_ggc_m_rtx_def): Delete.
1422         * gengtype.c (adjust_field_rtx_def): New.
1423         (adjust_field_type): Call adjust_field_rtx_def.
1424         (write_gc_structure_fields): Add 'default' case to switch if none
1425         is specified; remove unused code.
1427         * tree.h (struct tree_exp): Update for change to meaning
1428         of special.
1429         * gengtype.c (adjust_field_tree_exp): New function.
1430         (adjust_field_type): Handle `tree_exp' special here.
1431         (write_gc_structure_fields): Don't handle `tree_exp' special here.
1432         Handle new `dot' option.
1434         * gengtype.h: Make `info' a pointer-to-const.
1435         * gengtype-yacc.y (yacc_ids): Use xasprintf.
1437         * gengtype.c (write_gc_structure_fields): Remove implementation
1438         of `always' option, add `default' option.
1439         * doc/gty.texi (GTY Options): Remove documentation of `always',
1440         add `default'.
1442 2002-09-16  Hans-Peter Nilsson  <hp@bitrange.com>
1444         * output.h: Remove #ifdef RTX_CODE and #ifdef TREE_CODE.
1446 2002-09-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1448         * m68hc11.md (addhi_sp): Fix uninitialized variable bug.
1450         * c4x-c.c, c4x.c, darwin.c, i370-c.c, m32r.c: Include tm_p.h
1451         instead of the *-protos.h file directly.
1452         * t-c4x, t-i370, t-v850: Depend on $(TM_P_H).
1453         * darwin.c (machopic_output_stub): Move prototype ...
1454         * darwin-protos.h (machopic_output_stub): ... here.
1455         * rs6000-protos.h (machopic_output_stub): Don't declare.
1457 2002-09-16  Richard Henderson  <rth@redhat.com>
1459         * c-common.c (builtin_define_float_constants): Emit __FOO_DENORM_MIN__.
1461 2002-09-16  Richard Henderson  <rth@redhat.com>
1463         * real.c, real.h: Rewrite from scratch.
1465         * Makefile.in (simplify-rtx.o): Depend on TREE_H.
1466         (paranoia): New target.
1467         * builtins.c (fold_builtin_inf): Use new real.h interface.
1468         * c-common.c (builtin_define_with_hex_fp_value): Likewise.
1469         * c-lex.c (interpret_float): Likewise.
1470         * emit-rtl.c (gen_lowpart_common): Likewise.
1471         * optabs.c (expand_float): Use real_2expN.
1472         * config/ia64/ia64.md (divsi3, udivsi3): Likewise.
1473         * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): New.
1474         (FLOAT_WORDS_BIG_ENDIAN): New.
1475         * cse.c (find_comparison_args): Don't pass FLOAT_STORE_FLAG_VALUE
1476         directly to REAL_VALUE_NEGATIVE.
1477         * loop.c (canonicalize_condition): Likewise.
1478         * simplify-rtx.c: Include tree.h.
1479         (simplify_unary_operation): Don't handle FIX and UNSIGNED_FIX
1480         with floating-point result modes.
1481         * toplev.c (backend_init): Call init_real_once.
1483         * fold-const.c (force_fit_type): Don't call CHECK_FLOAT_VALUE.
1484         * tree.c (build_real): Likewise.
1485         * config/alpha/alpha.c, config/vax/vax.c (float_strings,
1486         float_values, inited_float_values, check_float_value): Remove.
1487         * config/alpha/alpha.h, config/m68hc11/m68hc11.h,
1488         config/m88k/m88k.h, config/vax/vax.h (CHECK_FLOAT_VALUE): Remove.
1489         * doc/tm.texi (CHECK_FLOAT_VALUE): Remove.
1490         (VAX_HALFWORD_ORDER): Remove.
1492 2002-09-16  Ulrich Weigand  <uweigand@de.ibm.com>
1494         * config/s390/s390.c: (legitimize_la_operand): Remove, replace by ...
1495         (s390_load_address): ... this new function.
1496         (s390_decompose_address): Allow the argument pointer and all
1497         virtual registers as 'pointer' registers.
1498         (s390_expand_plus_operand): Use s390_load_address.
1499         config/s390/s390.md (movti, movdi, movdf splitters): Likewise.
1500         ("force_la_31"): New insn pattern.
1501         config/s390/s390-protos.h (legitimize_la_operand): Remove.
1502         (s390_load_address): Add prototype.
1504         * config/s390/s390.c: Include "optabs.h".
1505         (s390_expand_movstr, s390_expand_clrstr, s390_expand_cmpstr): New.
1506         config/s390/s390-protos.h (s390_expand_movstr, s390_expand_clrstr,
1507         s390_expand_cmpstr): Add prototypes.
1508         config/s390/s390.md ("movstrdi", "movstrsi"): Call s390_expand_movstr.
1509         ("movstrdi_short"): Rename to "movstr_short_64".  Change predicates
1510         for operands 0 and 1 to "memory_operand".  Add type attribute.
1511         ("movstrsi_short"): Rename to "movstr_short_31".  Change predicates
1512         for operands 0 and 1 to "memory_operand".  Add type attribute.
1513         ("movstrdi_long", "movstrsi_long"): Remove.
1514         ("movstrdi_64"): Rename to "movstr_long_64". Add type attribute.
1515         ("movstrsi_31"): Rename to "movstr_long_31". Add type attribute.
1516         ("clrstrdi", "clrstrsi"): Call s390_expand_clrstr.
1517         ("clrstrsico"): Remove, replace by ...
1518         ("clrstr_short_64", "clrstr_short_31"): ... these new patterns.
1519         ("clrstrsi_64"): Rename to "clrstr_long_64".
1520         ("clrstrsi_31"): Rename to "clrstr_long_31".
1521         ("cmpstrdi", "cmpstrsi"): Call s390_expand_cmpstr.
1522         ("cmpstr_const"): Remove, replace by ...
1523         ("cmpstr_short_64", "cmpstr_short_31"): ... these new patterns.
1524         ("cmpstr_64"): Rename to "cmpstr_long_64".
1525         ("cmpstr_31"): Rename to "cmpstr_long_31".
1527 2002-09-16  Kazu Hirata  <kazu@cs.umass.edu>
1529         * ABOUT-NLS: Follow spelling conventions.
1530         * ChangeLog: Likewise.
1531         * ChangeLog.1: Likewise.
1532         * ChangeLog.2: Likewise.
1533         * ChangeLog.3: Likewise.
1534         * ChangeLog.4: Likewise.
1535         * ChangeLog.5: Likewise.
1536         * ChangeLog.6: Likewise.
1537         * FSFChangeLog.10: Likewise.
1538         * FSFChangeLog.11: Likewise.
1539         * c-common.c: Likewise.
1540         * c-lex.c: Likewise.
1541         * c-objc-common.c: Likewise.
1542         * cppexp.c: Likewise.
1543         * cppinit.c: Likewise.
1544         * cpplex.c: Likewise.
1545         * doloop.c: Likewise.
1546         * flow.c: Likewise.
1547         * function.c: Likewise.
1548         * integrate.c: Likewise.
1549         * loop.c: Likewise.
1550         * reg-stack.c: Likewise.
1551         * reload.h: Likewise.
1552         * ssa.c: Likewise.
1554 2002-09-15  Kazu Hirata  <kazu@cs.umass.edu>
1556         * ChangeLog: Follow spelling conventions.
1557         * ChangeLog.0: Likewise.
1558         * ChangeLog.1: Likewise.
1559         * ChangeLog.2: Likewise.
1560         * ChangeLog.4: Likewise.
1561         * ChangeLog.6: Likewise.
1562         * config.gcc: Likewise.
1563         * dwarfout.c: Likewise.
1564         * reload1.c: Likewise.
1565         * simplify-rtx.c: Likewise.
1566         * unwind-sjlj.c: Likewise.
1567         * config/avr/avr.h: Likewise.
1568         * config/d30v/d30v.h: Likewise.
1569         * config/frv/frv.c: Likewise.
1570         * config/frv/frv.h: Likewise.
1571         * config/ip2k/ip2k.h: Likewise.
1572         * config/m88k/m88k-move.sh: Likewise.
1573         * config/stormy16/stormy16.c: Likewise.
1574         * config/stormy16/stormy16.h: Likewise.
1575         * doc/extend.texi: Likewise.
1576         * doc/interface.texi: Likewise.
1577         * doc/invoke.texi: Likewise.
1578         * doc/md.texi: Likewise.
1579         * doc/rtl.texi: Likewise.
1580         * doc/tm.texi: Likewise.
1581         * doc/trouble.texi: Likewise.
1582         * ginclude/float.h: Likewise.
1583         * treelang/treelang.texi: Likewise.
1585 2002-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1587         * i386-protos.h (i386_pe_dllexport_name_p,
1588         i386_pe_dllimport_name_p, i386_pe_unique_section,
1589         i386_pe_declare_function_type, i386_pe_record_external_function,
1590         i386_pe_record_exported_symbol, i386_pe_asm_file_end): Add
1591         prototype.
1592         * i386/t-cygwin (winnt.o): Depend on $(TM_P_H).
1593         * i386/t-interix (winnt.o): Likewise.
1595         * v850-protos.h (v850_output_addr_const_extra): Prototype.
1597 2002-09-15  Jason Thorpe  <thorpej@wasabisystems.com>
1599         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Add
1600         MIPS ABI CPP macros.
1601         (TARGET_CPU_CPP_BUILTINS): Redefine.
1602         (SUBTARGET_EXTRA_SPECS): Remove subtarget_endian_default.
1603         (SUBTARGET_ENDIAN_DEFAULT_SPEC): Remove.
1605 2002-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1607         * ia64/aix.h (TARGET_OS_CPP_BUILTINS): Fix typo.
1609 2002-09-15  Kazu Hirata  <kazu@cs.umass.edu>
1611         * ChangeLog: Follow spelling conventions.
1612         * ChangeLog.0: Likewise.
1613         * ChangeLog.1: Likewise.
1614         * ChangeLog.2: Likewise.
1615         * ChangeLog.3: Likewise.
1616         * ChangeLog.4: Likewise.
1617         * ChangeLog.5: Likewise.
1618         * ChangeLog.6: Likewise.
1619         * FSFChangeLog.10: Likewise.
1620         * FSFChangeLog.11: Likewise.
1621         * c-common.c: Likewise.
1622         * c-common.h: Likewise.
1623         * c-format.c: Likewise.
1624         * c-opts.c: Likewise.
1625         * cpplib.c: Likewise.
1626         * langhooks.h: Likewise.
1627         * real.c: Likewise.
1628         * reg-stack.c: Likewise.
1629         * toplev.c: Likewise.
1630         * config/arm/arm.c: Likewise.
1631         * config/arm/arm.md: Likewise.
1632         * config/arm/linux-gas.h: Likewise.
1633         * config/arm/netbsd.h: Likewise.
1634         * config/c4x/c4x.c: Likewise.
1635         * config/c4x/c4x.h: Likewise.
1636         * config/c4x/c4x.md: Likewise.
1637         * config/c4x/libgcc.S: Likewise.
1638         * config/fr30/fr30.md: Likewise.
1639         * config/frv/frv.md: Likewise.
1640         * config/ia64/ia64.md: Likewise.
1641         * config/mips/mips.h: Likewise.
1642         * config/mn10300/mn10300.c: Likewise.
1643         * config/stormy16/stormy16.c: Likewise.
1644         * config/v850/v850.md: Likewise.
1645         * doc/extend.texi: Likewise.
1646         * doc/invoke.texi: Likewise.
1647         * doc/md.texi: Likewise.
1649 2002-09-15  Jason Thorpe  <thorpej@wasabisystems.com>
1651         * config/netbsd.h (LIB_SPEC): Include the appropriate pthread
1652         library if -pthread is specified.
1654 2002-09-15  Jason Thorpe  <thorpej@wasabisystems.com>
1656         * config.gcc (*-*-netbsd*): Set thread_file to 'posix'
1657         for --enable-threads=yes and --enable-threads=posix.
1659 2002-09-15  Kazu Hirata  <kazu@cs.umass.edu>
1661         * config/sparc/cypress.md: Replace Sparc with SPARC.
1662         * config/sparc/freebsd.h: Likewise.
1663         * config/sparc/gmon-sol2.c: Likewise.
1664         * config/sparc/hypersparc.md: Likewise.
1665         * config/sparc/lb1spc.asm: Likewise.
1666         * config/sparc/lb1spl.asm: Likewise.
1667         * config/sparc/linux.h: Likewise.
1668         * config/sparc/linux64.h: Likewise.
1669         * config/sparc/lynx.h: Likewise.
1670         * config/sparc/sol2.h: Likewise.
1671         * config/sparc/sparc-modes.def: Likewise.
1672         * config/sparc/sparc.c: Likewise.
1673         * config/sparc/sparc.h: Likewise.
1674         * config/sparc/sparc.md: Likewise.
1675         * config/sparc/sparclet.md: Likewise.
1676         * config/sparc/supersparc.md: Likewise.
1677         * config/sparc/sysv4.h: Likewise.
1678         * config/sparc/vxsim.h: Likewise.
1679         * config/sparc/vxsparc64.h: Likewise.
1681 2002-09-14  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1683         * config/avr/avr.c (output.h): Move after inclusion of tree.h.
1685 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
1687         * ChangeLog: Follow spelling conventions.
1688         * ChangeLog.0: Likewise.
1689         * ChangeLog.2: Likewise.
1690         * ChangeLog.3: Likewise.
1691         * ChangeLog.4: Likewise.
1692         * ChangeLog.5: Likewise.
1693         * ChangeLog.6: Likewise.
1694         * cppfiles.c: Likewise.
1695         * cppinit.c: Likewise.
1696         * cpplib.h: Likewise.
1697         * cse.c: Likewise.
1698         * debug.h: Likewise.
1699         * df.c: Likewise.
1700         * dominance.c: Likewise.
1701         * hashtable.c: Likewise.
1702         * hashtable.h: Likewise.
1703         * loop.c: Likewise.
1704         * config/arm/README-interworking: Likewise.
1705         * config/arm/arm.c: Likewise.
1706         * config/arm/arm.h: Likewise.
1707         * config/arm/arm.md: Likewise.
1708         * config/dsp16xx/dsp16xx.h: Likewise.
1709         * config/frv/frv.c: Likewise.
1710         * config/frv/frv.h: Likewise.
1711         * config/ip2k/ip2k.h: Likewise.
1712         * config/rs6000/rs6000.c: Likewise.
1713         * config/stormy16/stormy-abi: Likewise.
1714         * config/stormy16/stormy16.h: Likewise.
1715         * config/v850/v850.c: Likewise.
1717 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
1719         * loop.c: Fix a comment typo.
1721 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
1723         * config/fr30/fr30.h: Fix comment typos.
1724         * config/frv/frv.c: Likewise.
1725         * config/i386/xmmintrin.h: Likewise.
1726         * config/mips/mips.c: Likewise.
1727         * config/sh/sh.c: Likewise.
1729 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
1731         * haifa-sched.c: Follow spelling conventions.
1732         * regclass.c: Likewise.
1733         * regrename.c: Likewise.
1734         * config/fp-bit.c: Likewise.
1735         * config/frv/frv.h: Likewise.
1736         * config/m88k/m88k.c: Likewise.
1737         * config/mcore/mcore.c: Likewise.
1738         * config/rs6000/darwin.h: Likewise.
1739         * config/rs6000/gnu.h: Likewise.
1740         * config/rs6000/linux.h: Likewise.
1741         * config/rs6000/linux64.h: Likewise.
1742         * config/rs6000/rs6000.c: Likewise.
1743         * config/rs6000/rs6000.h: Likewise.
1744         * config/sh/sh.c: Likewise.
1745         * config/sparc/sparc.c: Likewise.
1746         * config/sparc/ultra1_2.md: Likewise.
1748 2002-09-14  Stephane Carrez  <stcarrez@nerim.fr>
1750         * config/m68hc11/m68hc11.md ("movdi_internal"): Allow any offsetable
1751         memory operand when source is 0 (K constraint).
1752         ("movsi_internal"): Likewise.
1753         ("movdf_internal"): Likewise.
1754         ("movsf_internal"): Likewise.
1756 2002-09-14  Alan Modra  <amodra@bigpond.net.au>
1758         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Use
1759         targetm.binds_local_p to set SYMBOL_REF_FLAG.
1760         (rs6000_xcoff_encode_section_info): Likewise.
1761         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1763 2002-09-10  Theodore A. Roth  <troth@verinet.com>
1765         * gcc/config/avr/avr.h: Set default options for C++ for avr.
1767 2002-09-13  Richard Henderson  <rth@redhat.com>
1769         * Makefile.in (toplev.o): Depend on real.h.
1770         (print-rtl.o, varasm.o, ifcvt.o): Likewise.
1772 2002-09-14  Alan Modra  <amodra@bigpond.net.au>
1774         * doc/tm.texi (DBX_OUTPUT_NFUN): Describe.
1775         * dbxout.c (dbxout_function_end): Use DBX_OUTPUT_NFUN.
1776         * config/rs6000/linux64.h (DBX_OUTPUT_NFUN): Define.
1778 2002-09-13  Nathan Sidwell  <nathan@codesourcery.com>
1780         * ggc-common.c (ggc_mark_roots): Don't iterate NULL hash tables.
1782 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
1784         * config.gcc (ia64*-*-aix*, ia64*-*-elf*, ia64*-*-freebsd*,
1785         ia64*-*-linux*): Set extra_parts.
1786         * config/ia64/t-aix (EXTRA_PARTS): Remove.
1787         * config/ia64/t-ia64 (EXTRA_PARTS): Remove.
1789 2002-09-13  Kazu Hirata  <kazu@cs.umass.edu>
1791         * config/h8300/fixunssfsi.c: Replace H8/S with H8S.
1792         * config/h8300/h8300.c: Likewise.
1793         * config/h8300/h8300.h: Likewise.
1794         * config/h8300/h8300.md: Likewise.
1795         * doc/invoke.texi: Likewise.
1797 2002-09-13  Kazu Hirata  <kazu@cs.umass.edu>
1799         * config/h8300/h8300.c (h8300_init_once): Fix formatting.
1801 2002-09-13  Matt Austern  <austern@apple.com>
1803         * cp/cp-tree.h, cp/tree.c: New function non_cast_lvalue_p.
1804         * cp/call.c: Change call-by-const-reference mechanism to use
1805         non_cast_lvalue_p when deciding whether the create a temporary.
1806         We need a temporary when passing, e.g. (long) x by const ref.
1807         * testsuite/g++.dg/other/constref[12].C: New, regression tests for
1808         passing a cast expression to a function by const reference.
1810 2002-09-13  Richard Henderson  <rth@redhat.com>
1812         * config/alpha/alpha.md (attr type): Add callpal.
1813         (imb, trap, load_tp, set_tp): Use it.
1814         * config/alpha/ev4.md (ev4_callpal): New.
1815         * config/alpha/ev5.md (ev5_callpal): New.
1816         * config/alpha/ev6.md (ev6_ibr): Handle callpal.
1817         * config/alpha/alpha.c (alphaev4_insn_pipe): Handle TYPE_CALLPAL.
1818         (alphaev5_insn_pipe): Likewise.
1820 2002-09-13  Andreas Jaeger  <aj@suse.de>
1822         * Makefile.in (print-rtl.o): Depend on CONFIG_H.
1824 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
1826         * config/ia64/t-hpux (LIBGCC1_TEST, STMP_FIXPROTO,
1827         LIB2ADDEH): New, set to NULL.
1828         (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL, SHLIB_MKMAP): New.
1830 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
1832         * config/ia64/quadlib.c (_U_Qfcmp): Make extern.
1833         (_U_Qfcnvfxt_quad_to_sgl): Remove declaration.
1834         (_U_Qfeq, _U_Qfne, _U_Qfgt, _U_Qfge, U_Qflt, U_Qfle, _U_Qfcomp):
1835         Add declarations.
1836         (_U_Qfneg): Remove.
1838 2002-09-13 Dhananjay Deshpande  <dhananjayd@kpit.com>
1840         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Add support
1841         for H8/300, H8S aa:8 mode.
1842         (TINY_CONSTANT_ADDRESS_P): Add support for H8S aa:16 mode.
1843         * config/h8300/h8300.c (h8300_adjust_insn_length): Adjust length
1844         for H8/300 aa:8 mode.
1846 2002-09-13  Hartmut Penner  <hpenner@de.ibm.com>
1848         * config/s390/s390.md ("trap", "conditional_trap", "*trap"): New
1849         insns.
1851 2002-09-12  Richard Henderson  <rth@redhat.com>
1853         * Makefile.in (HOST_PRINT): Use print-rtl1.o
1854         (print-rtl.o): Don't define GENERATOR_FILE.
1855         (print-rtl1.o): Rename from $(BUILD_PREFIX_1)print-rtl.o.
1856         * print-rtl.c (print_rtx): Include CONST_DOUBLE fp decimal output
1857         unless GENERATOR_FILE.
1859 2002-09-12  Stan Shebs  <shebs@apple.com>
1861         * config/darwin.h (USER_LABEL_PREFIX): Define here...
1862         * config/i386/darwin.h: ... instead of here.
1864         * target.h (struct gcc_target): New field
1865         terminate_dw2_eh_frame_info.
1866         * target-def.h (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
1867         (TARGET_INITIALIZER): Add it.
1868         * dwarf2out.c (output_call_frame_info): Use target hook.
1869         * dwarf2asm.c (dw2_asm_output_delta): Use macro
1870         ASM_OUTPUT_DWARF_DELTA if defined.
1871         * doc/tm.texi (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Document.
1872         (ASM_OUTPUT_DWARF_DELTA): Ditto.
1873         (ASM_OUTPUT_DWARF_OFFSET): Ditto.
1874         (ASM_OUTPUT_DWARF_PCREL): Ditto.
1875         * config.gcc (i[34567]86-*-darwin*): Define extra_parts.
1876         (powerpc-*-darwin*): Ditto.
1877         * crtstuff.c [OBJECT_FORMAT_MACHO]: Update the Mach-O bits
1878         to work correctly for Darwin.
1879         * config/darwin.h (OBJECT_FORMAT_MACHO): Define.
1880         (STARTFILE_SPEC): Add crtbegin.o.
1881         (ENDFILE_SPEC): Define.
1882         (EXTRA_SECTION_FUNCTIONS): Put gcc_except_tab in data segment.
1883         (ASM_PREFERRED_EH_DATA_FORMAT): Handle more cases.
1884         (ASM_OUTPUT_DWARF_DELTA): Define.
1885         (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
1886         * config/darwin.c (darwin_asm_output_dwarf_delta): New function.
1888 2002-09-13  Alan Modra  <amodra@bigpond.net.au>
1890         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Remove "if"
1891         nesting.  Correct test for non-PowerPC64 ELF ABI_AIX.
1892         * config/rs6000/rs6000.md (load_toc_v4_PIC*): Disable when ABI_AIX.
1894 2002-09-12  Zack Weinberg  <zack@codesourcery.com>
1896         * toplev.c: Move default definition of USER_LABEL_PREFIX...
1897         * defaults.h: ... here.
1899 2002-09-12  Richard Henderson  <rth@redhat.com>
1901         * vax.c: Include tree.h earlier.
1903 2002-09-12  Stan Shebs  <shebs@apple.com>
1905         * config/darwin.c (machopic_finish): Remove #if 0 chunks.
1906         (machopic_operand_p): Ditto.
1908 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
1910         * config/arm/arm.c (arm_compute_initial_elimination_offset):
1911         Fix a comment typo.
1913 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
1915         * toplev.c (do_abort): Fix a comment typo.
1917 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
1919         * cselib.c: Fix comment formatting.
1920         * gengtype.c: Likewise.
1922 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
1924         * config/h8300/h8300.md (udivmodqi4): Do not use an expander.
1925         (udivmodhi4): Likewise.
1927 2002-09-12  Graham Stott  <graham.stott@btinternet.com>
1928             Roger Sayle  <roger@eyesopen.com>
1930         * i386.c (any_fp_register_operand, fp_register_operand,
1931         register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand):
1932         New predicate functions.
1933         * i386-protos.h:  Add their prototypes.
1934         * i386.h: Add them to PREDICATE_CODES.
1935         * i386.md ("*pushsf_rex64"+2, "*pushsf_rex64"+3, "*pushdf_integer"+1,
1936         "*pushdf_integer"+2, "*pushtf_integer"+1, "*pushtf_integer"+2,
1937         "*pushtf_integer"+3, "*pushtf_integer"+4, "*dummy_extendsfdf2"+1,
1938         "*dummy_extendsfdf2"+2, "*dummy_extendsfxf2"+1,
1939         "*dummy_extendsftf2"+1, "*dummy_extendsftf2"+2,
1940         "*dummy_extenddfxf2"+1, "*dummy_extenddftf2"+1,
1941         "*dummy_extenddftf2"+2, "*negsf2_if"+1, "*negsf2_if"+2,
1942         "*negdf2_if_rex64"+1, "*negdf2_if_rex64"+2, "*negxf2_if"+1,
1943         "*negxf2_if"+2, "*negtf2_if"+1, "*negtf2_if"+2, "*abssf2_if"+1,
1944         "*abssf2_if"+2, "*absdf2_if_rex64"+1, "*absdf2_if_rex64"+2,
1945         "*absxf2_if"+1, "*absxf2_if"+2, "*abstf2_if"+1, "*abstf2_if"+2):
1946         Use these new predicates to simplify and correct the use of
1947         FP_REG_P, ANY_FP_REG_P, FP_REGNO_P and any ANY_FP_REGNO_P.
1949 2002-09-12  Jason Merrill  <jason@redhat.com>
1951         * diagnostic.c (output_add_identifier): New fn.
1952         * diagnostic.h: Declare it.
1954         * calls.c (store_one_arg): Use size_in_bytes to determine the
1955         amount of space to push.
1957 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
1959         * config/sparc/linux64.h (STARTFILE_SPEC32): Fix a typo.
1961 2002-09-12  Ulrich Weigand  <uweigand@de.ibm.com>
1963         * config/s390/s390-modes.def (CCAPmode, CCANmode): New CC modes.
1964         * config/s390/s390.c (s390_match_ccmode_set): Support new CC modes.
1965         (s390_select_ccmode): Likewise.
1966         (s390_branch_condition_mask): Likewise.
1967         (optimization_options): Do not set flag_branch_on_count.
1968         (s390_split_branches): Handle doloop branches.
1969         (s390_chunkify_pool): Likewise.
1970         * config/s390/s390.md ("*adddi3_imm_cc", "*addsi3_imm_cc"): New insns.
1971         ("doloop_end"): New expander.
1972         ("doolop_si", "*doloop_si_long", "doloop_di", "*doloop_di_long",
1973         associated splitters): New.
1975 2002-09-11  Hartmut Penner  <hpenner@de.ibm.com>
1977         * fold-const.c (make_range): Only narrow to signed range if
1978         the signed range is smaller than the unsigned range.
1980 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
1982         * emit-rtl.c (set_mem_size): New function.
1983         * expr.h (set_mem_size): Declare.
1984         * config/rs6000/rs6000.c (expand_block_move_mem): Exterminate.
1985         (expand_block_move): Instead, use adjust_address and
1986         replace_equiv_address to generate proper aliasing info.
1987         Move common code out of conditionals.  Localize vars.
1989 2002-09-09  Eric Botcazou  ebotcazou@libertysurf.fr
1991         * optabs.c (expand_binop): Minor cleanup.
1992         (expand_twoval_binop): Convert CONST_INTs like in expand_binop.
1994 2002-09-11  Dan Nicolaescu  <dann@ics.uci.edu>
1996         * print-tree.c (print_node): Print the restrict qualifier.
1998 2002-09-11  Janis Johnson  <janis187@us.ibm.com>
2000         * doc/install.texi: Fix typos.
2002 2002-09-11  Zack Weinberg  <zack@codesourcery.com>
2004         * Makefile.in: Remove all references to s-under and underscore.c.
2005         * collect2.c, tlink.c: Change all uses of prepends_underscore
2006         to look directly at USER_LABEL_PREFIX.
2008 2002-09-11  David Edelsohn  <edelsohn@gnu.org>
2010         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Append
2011         alignment to csect.
2012         (rs6000_xcoff_unique_section): Only set section name for public
2013         data.
2014         (rs6000_xcoff_section_type_flags): Store log2 alignment in flags.
2015         * config/rs6000/xcoff.h (TARGET_ASM_SELECT_SECTION): Remove
2016         duplicate definition.
2018 2002-09-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2020         * pa.md (extzv): Check predicates before emitting extzv_32.
2021         (insv): Likewise.
2023 2002-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
2025         * config/s390/s390.h (MOVE_MAX): Define to correct value.
2026         (MAX_MOVE_MAX): Define.
2027         (MOVE_BY_PIECES_P): Define.
2028         (CLEAR_BY_PIECES_P): Define.
2030 2002-09-10  Denis Chertykov  <denisc@overta.ru>
2032         * config/avr/avr.md (movstrhi): Use right operands for conversion.
2034 2002-09-10  Richard Earnshaw  <rearnsha@arm.com>
2036         PR c/7873
2037         * arm.md (insv): Use reg_or_int_operand for operand[3].
2039 2002-09-10  David Edelsohn  <edelsohn@gnu.org>
2041         * rs6000.c (rs6000_assemble_visibility): Protect declaration
2042         inside macro.  Correct function definition typo.
2043         (rs6000_xcoff_section_type_flags): New function.
2044         (TARGET_SECTION_TYPE_FLAGS): Remove definition.
2045         (rs6000_elf_section_type_flags): Call default_section_type_flags_1
2046         with appropriate PIC test.
2047         (rs6000_xcoff_select_section): Use decl_readonly_section_1 to
2048         determine readonly.
2049         (rs6000_binds_local_p): Combine PIC flags.
2050         * sysv4.h (TARGET_SECTION_TYPE_FLAGS): Define.
2051         * xcoff.h (TARGET_SECTION_TYPE_FLAGS): Define.
2053 2002-09-09  Per Bothner  <per@bothner.com>
2055         * print-tree.c (print_node):  In a STRING_CST, escape non-ascii
2056         characters, and only print TREE_STRING_LENGTH chars.
2058 2002-09-09  Steve Ellcey  <sje@cup.hp.com>
2060         * config/ia64/hpux.h (TARGET_HPUX_LD): New, define true.
2061         (ASM_FILE_END) New.
2062         * config/ia64/ia64.h (TARGET_HPUX_LD): New, define false.
2063         * config/ia64/ia64-protos.h (ia64_hpux_asm_file_end): New.
2064         * config/ia64/ia64.c (ia64_asm_output_external): Create list
2065         of external functions if TARGET_HPUX_LD is true.
2066         (ia64_hpux_add_extern_decl): New, routine to put names on
2067         list of external functions.
2068         (ia64_hpux_asm_file_end): Put out declarations for external
2069         functions if and only if they are used.
2071 2002-09-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2073         * pa.md (exception_receiver, builtin_setjmp_receiver): Add blockage
2074         on TARGET_64BIT before pic register restore.
2076 2002-09-09  David Edelsohn  <edelsohn@gnu.org>
2078         * doc/tm.texi (TARGET_HAVE_SRODATA_SECTION): New description.
2079         (TARGET_HAVE_TLS): New description.
2081 2002-09-09  Janis Johnson  <janis187@us.ibm.com>
2083         * doc/extend.texi (Statement Exprs): Fix broken link.
2085 2002-09-09  Denis Chertykov  <denisc@overta.ru>
2087         * config/avr/avr.md (movstrhi, clrstrhi): Use gen_int_mode for
2088         right conversion of operands[1].
2090 2002-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
2092         * config/s390/s390.md ("*tmdi_reg", "*tmsi_reg"): Do not mark as
2093         commutative.  Use "nonimmediate_operand" instead of "register_operand"
2094         as predicate for operand 0.  Move to after the "*tmXX_mem" insns.
2096         ("*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem"): Do not mark
2097         as commutative.
2099         ("*anddi3_ni", "*andsi3_ni", "*iordi3_ni", "*iorsi3_ni"): Do not
2100         mark as commutative.  Use "nonimmediate_operand" instead of
2101         "register_operand" as predicate for operand 1.
2103         ("movstrictsi"): Fix typo in insn name.
2105 2002-09-09  Jan Hubicka  <jh@suse.cz>
2107         * i386.c (index_register_operand): New.
2108         * i386.h (predicate_codes): Add new predicate.
2109         * i386.md (lea_general_*): Use index_regsiter_operand
2110         (ashift to lea splitter): Do not produce invalid leas
2111         (ashift to mov+ashift split): New.
2113 2002-09-09  Nick Clifton  <nickc@redhat.com>
2115         * config/fr30/fr30.c (output.h): Move after inclusion of tree.h.
2116         Fix folding marks.
2118 2002-09-09  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
2119             J"orn Rennecke <joern.rennecke@superh.com>
2121         * sh/sh.h (OVERRIDE_OPTIONS): align_functions is in bytes, not bits.
2123 2002-09-09  Alan Modra  <amodra@bigpond.net.au>
2125         * config/rs6000/rs6000.c (rs6000_binds_local_p): Return bool.
2126         (function_ok_for_sibcall): Use binds_local_p.  Respect longcall
2127         attributes.
2129 2002-09-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2131         * fr30.c (fr30_print_operand): Fix bug in output of CONST_DOUBLE.
2133 2002-09-08  Richard Henderson  <rth@redhat.com>
2135         * dwarf2.h (DW_OP_call_ref): Rename from DW_OP_calli.
2136         (DW_OP_GNU_push_tls_address): New.
2137         (DW_OP_lo_user): Fix.
2138         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): New.
2139         (dwarf_stack_op_name): Handle it, plus other dwarf3 opcodes.
2140         (size_of_loc_descr): Likewise.
2141         (output_loc_operands): Handle INTERNAL_DW_OP_tls_addr.
2142         (add_AT_location_description): Take a dw_loc_descr_ref not an rtx.
2143         (loc_descriptor_from_tree): Handle TLS variables.
2144         (rtl_for_decl_location): Do avoid_constant_pool_reference here ...
2145         (add_location_or_const_value_attribute): ... not here.  Defer
2146         to loc_descriptor_from_tree for TLS variables.
2148         * config/i386/i386.h (ASM_OUTPUT_DWARF_DTPREL): New.
2149         * config/i386/i386.c (i386_output_dwarf_dtprel): New.
2150         * config/i386/i386-protos.h: Update.
2152 2002-09-08  Roger Sayle  <roger@eyesopen.com>
2154         PR optimization/6405
2155         * unroll.c (loop_iterations): last_loop_insn should be the previous
2156         non-note instruction before loop->end.
2157         * loop.c (strength_reduce): The conditional jump is the last
2158         non-note instruction before loop->end (as above).
2160 2002-09-08  Roger Sayle  <roger@eyesopen.com>
2162         * combine.c (try_combine): Handle the case that undobuf.other_insn
2163         has been turned into a return or unconditional jump, by inserting
2164         a BARRIER if necessary.
2165         (simplify_set):  Test if a condition code setter has a constant
2166         comparison at compile time, if so convert this insn to a no-op move
2167         and update/simplify the condition code user (undobuf.other_insn).
2169 2002-09-08  Krister Walfridsson  <cato@df.lth.se>
2171         * config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Redefine.
2172         (CLEAR_INSN_CACHE): Define.
2174 2002-09-08  Kazu Hirata  <kazu@cs.umass.edu>
2176         * basic-block.h: Fix comment formatting.
2177         * c-common.c: Likewise.
2178         * c-common.h: Likewise.
2179         * c-lex.c: Likewise.
2180         * c-pretty-print.c: Likewise.
2181         * cfglayout.c: Likewise.
2182         * cfgloop.c: Likewise.
2183         * defaults.h: Likewise.
2184         * et-forest.c: Likewise.
2185         * explow.c: Likewise.
2186         * function.h: Likewise.
2187         * gcov.c: Likewise.
2188         * genattrtab.c: Likewise.
2189         * gengtype.c: Likewise.
2190         * ifcvt.c: Likewise.
2191         * libgcc2.c: Likewise.
2192         * loop.c: Likewise.
2193         * profile.c: Likewise.
2194         * ra-build.c: Likewise.
2195         * real.c: Likewise.
2196         * rtl.h: Likewise.
2197         * tracer.c: Likewise.
2198         * tree-inline.c: Likewise.
2199         * varasm.c: Likewise.
2201 2002-09-08  Jan Hubicka  <jh@suse.cz>
2203         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix array_ref
2204         handling.
2206         * loop.c (loop_gics_reduce):  Emit addition after.
2208 2002-09-08  Alan Modra  <amodra@bigpond.net.au>
2210         * varasm.c (default_assemble_visibility): Rename from
2211         assemble_visibility.
2212         * output.h: Here too.
2213         * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): And here.
2214         * config/rs6000/rs6000.c (rs6000_assemble_visibility): And here.
2216 2002-09-08  Alan Modra  <amodra@bigpond.net.au>
2218         * reload.c (find_reloads <p constraint>): Pass operand_mode to
2219         find_reloads_address.
2221 2002-09-08  Kazu Hirata  <kazu@cs.umass.edu>
2223         * config/h8300/h8300.md (udivmodqi4): Enable on H8/300.
2224         (anonymous pattern): Likewise.
2226 2002-09-07  Scott Snyder  <snyder@fnal.gov>
2228         PR target/7374
2229         * config/alpha/alpha.md (abstf2): Fix typo: 'neg' for 'abs'.
2231 2002-09-07  Roger Sayle  <roger@eyesopen.com>
2233         * basic-block.h (struct loop): Remove unused cont_dominator field.
2235 2002-09-07  Igor Shevlyakov <igor@microunity.com>
2237         * varasm.c (decode_rtx_const): Don't check undefined field for
2238         CONST_VECTOR.
2240 2002-09-07  Glen Nakamura  <glen@imodulo.com>
2242         PR opt/7814
2243         * sched-deps.c (sched_analyze_insn): Make sure to add insn
2244         to reg_last->sets after flushing the dependency lists to guarantee
2245         that subsequent clobbers will be dependent on it.
2247 2002-09-07  Igor Shevlyakov <igor@microunity.com>
2249         * combine.c (simplify_shift_const): Calculate rotate count
2250         correctly for vector operands.
2252 2002-09-07  Ansgar Esztermann  <ansgar@thphy.uni-duesseldorf.de>
2254         * c-typeck.c (c_tree_expr_nonnegative_p): New function.
2255         (build_binary_op): Call c_tree_expr_nonnegative_p rather than
2256         tree_expr_nonnegative_p.
2257         (build_conditional_expr): Likewise.
2258         * c-tree.h (c_tree_expr_nonnegative_p): Declare.
2260 2002-09-07  Richard Henderson  <rth@redhat.com>
2262         * builtins.def (inf, inff, infl): Mark const.
2263         (huge_val, huge_valf, huge_vall): Likewise.
2264         (BUILT_IN_GETEXP, BUILT_IN_GETMAN): Remove.
2266         * real.c (ereal_inf): Clear E before use.
2268 2002-09-07  Kazu Hirata  <kazu@cs.umass.edu>
2270         * config/h8300/h8300.md (udivmodqi4): Split the pattern into
2271         an expander and an anonymous pattern.  Zero out the upper half
2272         of the dividend in the expander.
2273         (udivmodqi4): Likewise.
2275 2002-09-07  Kazu Hirata  <kazu@cs.umass.edu>
2277         * config/h8300/h8300.c: Fix formatting.
2278         * config/h8300/h8300.h: Likewise.
2279         * config/h8300/h8300.md: Likewise.
2281 2002-09-07  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2283         * cfgcleanup.c (try_crossjump_to_edge): Fix updating of liveness
2284         information.
2286 2002-09-07  Graham Stott  <graham.stott@btinternet.con>
2288        * rtlanal.c (dead_or_set_regno_p): Fix typo.
2290 2002-09-07  Alan Modra  <amodra@bigpond.net.au>
2292         * config/rs6000/linux64.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2294         * doc/tm.texi (TARGET_ASM_ASSEMBLE_VISIBILITY): Describe.
2295         * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
2296         (TARGET_ASM_OUT): Add the above here.
2297         * target.h (struct gcc_target): Add "visibility" field.
2298         * varasm.c (maybe_assemble_visibility): Call targetm visibility func.
2299         * config/rs6000/rs6000.c (rs6000_assemble_visibility): New function.
2300         (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
2301         (rs6000_legitimize_reload_address, first_reg_to_save): Formatting.
2303 2002-09-06  Ziemowit Laski <zlaski@apple.com>
2305         * c-lang.c (objc_is_id): New stub.
2306         * c-tree.h (objc_is_id): New forward declaration.
2307         * c-typeck.c (build_c_cast): Do not strip protocol
2308         qualifiers from 'id' type.
2309         * objc/objc-act.c (objc_comptypes): Correct handling
2310         of protocol qualifiers.
2311         (objc_is_id): New.
2313 Fri Sep  6 13:10:08 2002  Jeffrey A Law  (law@redhat.com)
2315         * pentium.md (pentium-firstvboth): Fix typo.
2317 2002-09-06      Dhananjay Deshpande <dhananjayd@kpit.com>
2319         * h8300.c (enum shift_alg): Move to earlier in h8300.c.
2320         (enum shift_type, enum h8_cpu): Likewise.
2321         (INL, ROT, LOP, SPC macros): Likewise.
2322         (shift_alg_qi, shift_alg_hi, shift_alg_si): Likewise.  Lose
2323         const designator.
2324         (h8300_init_once): Update shift_alg_{qi,hi,si} to use more
2325         space efficient algorithms when optimize for codesize.
2327 Fri Sep  6 16:35:32 2002  Nicola Pero  <n.pero@mi.flashnet.it>
2329         Fix PR/1727 and long-standing failing testcase
2330         objc/formal-protocol-6.m.
2331         * objc-act.c (build_protocol_expr): If compiling for the GNU
2332         runtime, create a list of Protocol statically allocated instances
2333         if it doesn't exist, then add the Protocol object to this same
2334         list.
2335         (get_objc_string_decl): Fixed typo/bug - TREE_VALUE had been used
2336         instead of TREE_CHAIN.
2338 Fri Sep  6 16:17:33 2002  Nicola Pero  <n.pero@mi.flashnet.it>
2340         * objc/objc-act.c (dump_interface): Enlarged the char * buffer to
2341         10k.  Fixed category dumping - print out category names with the
2342         proper syntax.  Print '@end\n' and not '\n@end' at the end of the
2343         interface.
2344         (finish_objc): Fixed the -gen-decls option.  It was printing out
2345         only the last class.  Dump an interface declaration of all classes
2346         being compiled instead.
2348 2002-09-06  Jason Thorpe  <thorpej@wasabisystems.com>
2350         * config/arm/arm-protos.h (arm_gen_return_addr_mask): New
2351         prototype.
2352         * config/arm/arm.c (arm_gen_return_addr_mask): New function.
2353         * config/arm/arm.h (MASK_RETURN_ADDR): Use arm_gen_return_addr_mask
2354         if not APCS26 and not Thumb or ARMv4-or-higher.  Use gen_int_mode
2355         rather than GEN_INT.
2356         * config/arm/arm.md (UNSPEC_CHECK_ARCH): Define.
2357         (return_addr_mask, *check_arch2): New.
2359 2002-09-06  Ulrich Weigand  <uweigand@de.ibm.com>
2361         * config/s390/s390.md ("*adddi3_cc", "*adddi3_cconly",
2362         "*adddi3_cconly2", "*adddi3_64", "*adddi3_31", "adddi3",
2363         "*addsi3_carry1_cc", "*addsi3_carry1_cconly",
2364         "*addsi3_carry2_cc", "*addsi3_carry2_cconly",
2365         "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2", "addsi3",
2366         "adddf3", "*adddf3", "*adddf3_ibm",
2367         "addsf3", "*addsf3", "*addsf3_ibm",
2368         "muldi3", "mulsi3", "mulsidi3",
2369         "muldf3", "*muldf3", "*muldf3_ibm",
2370         "mulsf3", "*mulsf3", "*mulsf3_ibm",
2371         "*anddi3_cc", "*anddi3_cconly", "anddi3",
2372         "*andsi3_cc", "*andsi3_cconly", "andsi3",
2373         "*iordi3_cc", "*iordi3_cconly", "iordi3",
2374         "*iorsi3_cc", "*iorsi3_cconly", "iorsi3",
2375         "*xordi3_cc", "*xordi3_cconly", "xordi3",
2376         "*xorsi3_cc", "*xorsi3_cconly", "xorsi3"): Use "nonimmediate_operand"
2377         instead of "register_operand" as predicate for "%0" operand.
2379 2002-09-06  Jakub Jelinek  <jakub@redhat.com>
2381         * configure.in (HAVE_AS_OFFSETABLE_LO10): Use -xarch=v9
2382         unconditionally when gcc_cv_as_flags64 checks are gone.
2383         * configure: Rebuilt.
2385 2002-09-06  Alan Modra  <amodra@bigpond.net.au>
2387         * config/rs6000/rs6000.md (extzvsi_internal2): Revert most of
2388         2002-07-26 change.  Comment.
2390 2002-09-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2392         * frv.c (frv_unique_section, frv_select_section,
2393         frv_select_rtx_section): Delete.
2394         (frv_in_small_data_p): New.
2395         (TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_SECTION,
2396         TARGET_ASM_SELECT_RTX_SECTION): Delete.
2397         (TARGET_IN_SMALL_DATA_P): Define.
2399 2002-09-05  Dale Johannesen  <dalej@apple.com>
2401         * reload1.c (reload):  Retain only those memory clobbers
2402         added for variable-array handling.
2404 2002-09-05  Jason Thorpe  <thorpej@wasabisystems.com>
2406         * config/arm/arm.c (arm_return_in_memory): Implement ATPCS
2407         return-in-memory rules.
2408         * config/arm/arm.h (ARM_FLAG_ATPCS, TARGET_ATPCS): Define.
2410 2002-09-05  David Edelsohn  <edelsohn@gnu.org>
2412         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Delete.
2413         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Delete.
2415 2002-09-05  Jason Thorpe  <thorpej@wasabisystems.com>
2417         * real.c: Avoid parse error if FLOAT_WORDS_BIG_ENDIAN is
2418         not a compile-time constant for the non-IBM case.
2419         * config/arm/arm-protos.h (arm_float_words_big_endian): New
2420         prototype.
2421         * config/arm/arm.c (arm_float_words_big_endian): New function.
2422         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __VFP_FP__
2423         if TARGET_VFP  and not TARGET_HARD_FLOAT.
2424         (ARM_FLAG_VFP, TARGET_VFP): Define.
2425         (FLOAT_WORDS_BIG_ENDIAN): Use arm_float_words_big_endian.
2427 2002-09-05  David Edelsohn  <edelsohn@gnu.org>
2429         * doc/install.texi: Correct text of s390-*-linux* and s390x-*-linux*
2430         URLs.  Fix AIX wording.
2432 2002-09-05  Stan Shebs  <shebs@apple.com>
2434         * config/rs6000/rs6000.c (rs6000_override_options): Make -fpic and
2435         -fPIC equivalent on Darwin.
2437 Thu Sep  5 16:27:47 2002  J"orn Rennecke <joern.rennecke@superh.com>
2439         * sh.c (sh_expand_builtin): Return early if encountering an
2440         error_mark for a type.
2442 2002-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
2444         * config/s390/s390.c (s390_expand_plus_operand): Do not require
2445         double-word scratch register.
2446         config/s390/s390.md ("reload_indi", "reload_insi"): Adapt.
2448         ("*tmqi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem",
2449         "*cli"): Replace s_operand by memory_operand.
2450         ("cmpstrdi", "cmpstrsi"): Replace s_operand by general_operand.
2452 2002-09-05  Kazu Hirata  <kazu@cs.umass.edu>
2454         * config/h8300/h8300.c (asm_file_start): Add a missing
2455         semicolon.
2457 2002-09-04  Krister Walfridsson  <cato@df.lth.se>
2459         * config/i386/i386.h (GOT_SYMBOL_NAME): Define.
2460         * config/i386/i386.c (output_set_got): Use GOT_SYMBOL_NAME.
2461         (ix86_output_addr_diff_elt) Likewise.
2462         (x86_output_mi_thunk) Likewise.
2463         * config/i386/netbsd.h (GOT_SYMBOL_NAME): Redefine.
2465 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2467         * frv.c (frv_encode_section_info): Fix error in last change.
2469 2002-09-04  David Edelsohn  <edelsohn@gnu.org>
2471         * config/rs6000/rs6000.c (rs6000_flag_pic): New variable.
2472         (rs6000_elf_encode_section_info): ATTRIBUTE_UNUSED.
2473         (TARGET_BINDS_LOCAL_P): Define.
2474         (rs6000_override_options): Save original flag_pic value.
2475         (rs6000_elf_select_section): Call default_elf_select_section_1.
2476         (rs6000_elf_unique_section): Call default_unique_section_1.
2477         (rs6000_elf_in_small_data_p): New function.
2478         (rs6000_xcoff_asm_named_section): Determine storage mapping class.
2479         (rs6000_xcoff_select_section): Update based on defaults.
2480         (rs6000_xcoff_unique_section): Set to basic name if not common.
2481         (rs6000_binds_local_p): New function.
2482         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
2483         targetm.have_srodata_section if SDATA_EABI.
2484         (TARGET_IN_SMALL_DATA_P): Define.
2486 2002-09-04  Dale Johannesen  <dalej@apple.com>
2488         * varasm.c (struct rtx_const, decode_rtx_const):
2489         Make veclo and vechi fields not share storage.
2491 Thu Sep  5 00:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
2493         * loop.c (scan_loop): Don't mark separate insns out of a libcall
2494         for moving.
2495         (move_movables): Abort if we see the first insn of a libcall.
2497 2002-09-04  Richard Henderson  <rth@redhat.com>
2499         * builtin-types.def (BT_FN_FLOAT): New.
2500         (BT_FN_DOUBLE, BT_FN_LONG_DOUBLE): New.
2501         * builtins.def (BUILT_IN_INF, BUILT_IN_INFF, BUILT_IN_INFL,
2502         BUILT_IN_HUGE_VAL, BUILT_IN_HUGE_VALF, BUILT_IN_HUGE_VALL): New.
2503         * builtins.c (fold_builtin_inf): New.
2504         (fold_builtin): Call it.
2505         * real.c (ereal_inf): New.
2506         * real.h: Declare it.
2507         * doc/extend.texi: Document new builtins.
2509 2002-09-04  Richard Henderson  <rth@redhat.com>
2511         * cse.c (cse_insn): Avoid subreg games if the equivalence
2512         is already in the proper mode.
2514 2002-09-04  Eric Botcazou  <ebotcazou@multimania.com>
2516         PR c/7102
2517         * optabs.c (expand_binop): Convert CONST_INTs in all cases.
2519 2002-09-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2521         * pa.md (setccfp0, setccfp1): New patterns.
2523 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2525         * frv-protos.h (frv_init_builtins, frv_expand_builtin,
2526         frv_select_section, frv_select_rtx_section,
2527         frv_encode_section_info, frv_unique_section): Delete.
2528         * frv.c: Update for target hooks.
2529         * frv.h (STRIP_NAME_ENCODING, SLOW_ZERO_EXTEND, SELECT_SECTION,
2530         SELECT_RTX_SECTION, ENCODE_SECTION_INFO, UNIQUE_SECTION,
2531         EASY_DIV_EXPR, MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): Delete.
2533 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2535         * ip2k-protos.h (function_prologue, function_epilogue,
2536         encode_section_info): Update to match target hook specification.
2537         * ip2k.c: Wrap `MDR' code in IP2K_MD_REORG_PASS.
2538         (function_prologue, function_epilogue, encode_section_info):
2539         Update to match target hook specification.
2540         * ip2k.h (SELECT_SECTION, SELECT_RTX_SECTION, ASM_OPEN_PAREN,
2541         ASM_CLOSE_PAREN, EASY_DIV_EXPR): Delete.
2542         (NOTICE_UPDATE_CC): Cast to void.
2543         * ip2k.md: Add defaults in switch statements.
2545 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
2547         * doc/trouble.texi (Interoperation): Update information about C++ ABI
2548         issues.
2550 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
2552         * config/sparc/t-netbsd64: Disable multilib for now.
2554 2002-09-04  David Edelsohn  <edelsohn@gnu.org>
2556         * target-def.h (TARGET_HAVE_SRODATA_SECTION): New macro.
2557         * target.h (gcc_target): Add have_srodata_section member.
2558         * varasm.c (section_category): Add SECCAT_SRODATA.
2559         (categorize_decl_for_section): Return SECCAT_SRODATA for sdata if
2560         READONLY_SDATA_SECTION defined.
2561         (decl_readonly_section_1): True for SECCAT_SRODATA also.
2562         (default_elf_select_section_1): Map SECCAT_SRODATA to .sdata2.
2563         (default_unique_section_1): Likewise.
2565 2002-09-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2567         * expr.c (emit_group_load): Revise to allow splitting TCmode source
2568         into DImode pieces.
2570         * pa-64.h (LONG_DOUBLE_TYPE_SIZE): Define to 128.
2571         * pa64-regs.h (CLASS_CANNOT_CHANGE_MODE_P): Inhibit changes from SImode
2572         for floating-point register class.
2573         * pa.c (function_arg): Fix handling of modes wider than one word for
2574         TARGET_64BIT.
2576 Wed Sep  4 18:48:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
2578         * combine.c (make_compound_operation): Don't generate zero / sign
2579         extensions in floating point modes.
2581 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
2583         * doc/c-tree.texi: Fix overfull hboxes.
2584         * doc/cppopts.texi: Ditto.
2585         * doc/extend.texi: Ditto.
2586         * doc/gty.texi: Ditto.
2587         * doc/invoke.texi: Ditto.
2588         * doc/makefile.texi: Ditto.
2589         * doc/rtl.texi: Ditto.
2590         * doc/standards.texi: Ditto.
2591         * doc/tm.texi: Ditto.
2593 2002-09-04  Richard Henderson  <rth@redhat.com>
2595         * c-common.c (builtin_define_with_hex_fp_value): New.
2596         (builtin_define_float_constants): Use it.  Fix H_FLOAT mant_dig.
2598 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
2600         * doc/invoke.texi (-fshort-wchar): Move to Code Generation Options.
2601         (-fpcc-struct-return, -freg-struct-return, -fshort-enums,
2602         -fshort-double, -fshort-wchar, -fpack-struct, -fleading-underscore):
2603         Warn that these options can break ABI compatibility.
2605 2002-09-04  Richard Henderson  <rth@redhat.com>
2607         * real.c (ereal_to_decimal): Add digits parameter.
2608         * real.h (REAL_VALUE_TO_DECIMAL): Remove format; add digits parameter.
2609         * c-pretty-print.c (pp_c_real_literal): Update call.
2610         * print-rtl.c (print_rtx): Likewise.
2611         * print-tree.c (print_node_brief, print_node): Likewise.
2612         * sched-vis.c (print_value): Likewise.
2613         * config/arc/arc.c (arc_print_operand): Likewise.
2614         * config/c4x/c4x.c (c4x_print_operand): Likewise.
2615         * config/i370/i370.h (PRINT_OPERAND): Likewise.
2616         * config/i386/i386.c (print_operand): Likewise.
2617         * config/i960/i960.c (i960_print_operand): Likewise.
2618         * config/ip2k/ip2k.c (asm_output_float): Likewise.
2619         * config/m32r/m32r.c (m32r_print_operand): Likewise.
2620         * config/m68hc11/m68hc11.c (print_operand): Likewise.
2621         * config/m68k/hp320.h (PRINT_OPERAND, ASM_OUTPUT_FLOAT_OPERAND,
2622         ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
2623         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND,
2624         ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
2625         * config/m68k/sun2o4.h (ASM_OUTPUT_FLOAT_OPERAND,
2626         ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
2627         * config/m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND,
2628         ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
2629         * config/mips/mips.c (print_operand): Likewise.
2630         * config/ns32k/ns32k.c (print_operand): Likewise.
2631         * config/pdp11/pdp11.h (PRINT_OPERAND): Likewise.
2632         * config/vax/vax.h (PRINT_OPERAND): Likewise.
2633         * doc/tm.texi (REAL_VALUE_TO_DECIMAL): Update docs.
2635 2002-09-04  Bob Wilson  <bob.wilson@acm.org>
2637         * config/xtensa/elf.h (TARGET_SECTION_TYPE_FLAGS): Define to
2638         xtensa_multibss_section_type_flags.
2639         * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Define.
2641 2002-09-04  Richard Henderson  <rth@redhat.com>
2643         * doc/install-old.texi: Don't mention enquire.
2644         * doc/sourcebuild.texi: Update float.h description.
2646 Wed Sep  4 11:22:14 2002  J"orn Rennecke <joern.rennecke@superh.com>
2648         * sh.md (mperm_w_little, mperm_w_big): Supply mode for zero_extract.
2650 2002-09-03  David Edelsohn  <edelsohn@gnu.org>
2652         * varasm.c (default_section_type_flags): Append _1 to name with
2653         shlib parameter.  Use original name to call new function with
2654         implicit flag_pic.
2655         (decl_readonly_section): Likewise.
2656         (default_elf_select_section): Likewise.
2657         (default_unique_section): Likewise.
2658         (default_bind_local_p): Likewise.
2659         (categorize_decl_for_section): Add shlib parameter to use in place
2660         of implicit flag_pic.
2661         * output.h: Declare new functions with _1 and shlib argument.
2663 2002-09-03  Janis Johnson  <janis187@us.ibm.com>
2665         * doc/install.texi: Fix typos, formatting problems, and obvious
2666         overfull/underfull boxes.
2668         * Makefile.in (TEXI_GCC_FILES): Add compat.texi.
2669         * doc/gcc.texi (Top): Add new chapter, Binary Compatibility, and
2670         include its file, compat.texi.
2671         * doc/compat.texi: New file with new chapter, Binary Compatibility.
2673 2002-09-03  Neil Booth  <neil@daikokuya.co.uk>
2675         Debian BTS Bug #157416
2676         * cpphash.h (FIRST, LAST, CUR, RLIMIT): Fix definitions.
2677         * cpplib.c (destringize_and_run): Kludge around getting
2678         tokens from in-progress macros.
2679         (_cpp_do__Pragma): Simplify.
2681 2002-09-03  Steve Ellcey  <sje@cup.hp.com>
2683         * config/ia64/ia64.h (EXTRA_SPECS): Remove cpp_cpu.
2684         (CPP_CPU_SPEC): Remove.
2685         (TARGET_CPU_CPP_BUILTINS): New.
2686         * config/ia64/hpux.h (CPP_PREDEFINES): Remove.
2687         (CPP_SPEC): Remove.
2688         (TARGET_OS_CPP_BUILTINS): New.
2689         * config/ia64/linux.h (CPP_PREDEFINES): Remove.
2690         (TARGET_OS_CPP_BUILTINS): New.
2691         * config/ia64/aix.h (CPP_SPEC): Move some stuff to
2692         TARGET_OS_CPP_BUILTINS.
2693         (CPP_PREDEFINES): Remove.
2694         (CPLUSPLUS_CPP_SPEC): Remove.
2695         (TARGET_OS_CPP_BUILTINS): New.
2697 2002-09-03  Richard Henderson  <rth@redhat.com>
2699         * Makefile.in (USER_H): Add ginclude/float.h.
2700         (FLOAT_H): Remove.
2701         (stmp-int-hdrs, install-mkheaders): Don't handle FLOAT_H.
2702         (mostlyclean): Don't remove float.h intermediate files.
2703         (distclean): Don't remove float.h.
2704         * config.gcc: Remove all float_format references.
2705         * configure.in (float_format, float_h_file): Remove.
2707         * c-common.c: Include tree-inline.h.
2708         (builtin_define_with_int_value): New.
2709         (builtin_define_type_precision): Use it.
2710         (builtin_define_float_constants): New.
2711         (cb_register_builtins): Use it.  Define __FLT_RADIX__ and
2712         __FLT_EVAL_METHOD__.
2713         * defaults.h (TARGET_FLT_EVAL_METHOD): New.
2714         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): New.
2715         * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): New.
2716         * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Mention moto 96-bit format.
2717         (TARGET_FLT_EVAL_METHOD): New.
2719         * config/float-c4x.h, config/float-i128.h, config/float-i32.h,
2720         config/float-i386.h, config/float-i64.h, config/float-m68k.h,
2721         config/float-sh.h, config/float-sparc.h, config/float-vax.h: Remove.
2722         * ginclude/float.h: New.
2724 2002-09-03  Stan Shebs  <shebs@apple.com>
2726         * config/darwin.h (WARN_FOUR_CHAR_CONSTANTS): Remove, never used.
2727         (DWARF2_DEBUGGING_INFO): Remove until assembler accepts Dwarf-2.
2728         (PREFERRED_DEBUGGING_TYPE): Ditto.
2729         (ASM_OUTPUT_IDENT): Remove empty definition.
2731 2002-09-03  Steve Ellcey  <sje@cup.hp.com>
2733         * config.gcc (ia64*-*-hpux*): Add ia64-c.o to c_target and
2734         cxx_target.
2735         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Register pragma
2736         handling routine for builtin pragma.
2737         * config/ia64/ia64-protos.h (ia64_hpux_handle_builtin_pragma):
2738         Registered pragma handling routine.
2739         * ia64-c.c (ia64_hpux_handle_builtin_pragma): Ditto.
2740         (ia64_hpux_add_pragma_builtin) New subroutine used by above.
2741         If builtin pragma seen for math routine and C89 conformance is
2742         requested use different math function in order to set errno.
2743         * t-ia64 (ia64-c.o): Add new rule for new file.
2745 2002-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
2747         * config/s390/s390.md ("movti"): Add Q->Q alternative.
2748         ("*movdi_64", "*movdi_31", "*movsi", "movhi", "movqi_64",
2749         "movqi", "*movdf_64", "*movdf_31", "*movsf"): Likewise.
2751         ("*movti_ss", "*movdi_ss", "*movsi_ss", "*movdf_ss",
2752         "*movsf_ss"): Remove.
2754 2002-09-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2756         * pa32-regs.h (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P):
2757         Delete macros.
2759 2002-09-03   Arati Dikey  <aratid@kpit.com>
2761         * h8300.c (asm_file_start): Corrected optimization comment.
2763 2002-09-03  Stan Shebs  <shebs@apple.com>
2765         * c-lang.c (recognize_objc_keyword): Remove, no longer used.
2766         * c-tree.h (recognize_objc_keyword): Remove decl.
2767         * c-typeck.c (comp_target_types): Update a comment.
2769 2002-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
2771         * config/s390/s390.c (s390_decompose_address): Remove STRICT parameter
2772         and register validity checks.
2773         (general_s_operand): Adapt to s390_decompose_address interface change.
2774         (q_constraint): Likewise.
2775         (s390_expand_plus_operand): Likewise.
2776         (legitimiate_address_p): Likewise.
2777         (legitimate_la_operand_p): Likewise.
2778         (legitimize_la_operand): Likewise.
2779         (print_operand_address): Likewise.
2780         (print_operand): Likewise.
2782 Tue Sep  3 11:32:14 2002  Nicola Pero  <n.pero@mi.flashnet.it>
2784         PR objc/5956:
2785         * objc/objc-act.c (build_typed_selector_reference): Fix typo which
2786         was causing the new selector never to match the existing ones
2787         (Patch by Alexander Malmberg <alexander@malmberg.org>).
2789 2002-09-03  Graham Stott  <graham.stott@btinternet.com>
2791         * config/i386/i386.md ("femms"): Add "memory" attr "none".
2793 2002-09-03  Graham Stott  <graham.stott@btinternet.com>
2795         * expr.c (expand_expr): Remove extraneous comment and code.
2797 2002-08-31  Richard Henderson  <rth@redhat.com>
2799         * expr.c (block_move_libcall_safe_for_call_parm): Fix thinko.
2801 2002-08-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2803         * pa.c (pa_globalize_label): Add ATTRIBUTE_UNUSED to prototype.
2805 2002-08-30  Richard Henderson  <rth@redhat.com>
2807         PR opt/7515
2808         * c-objc-common.c: Include target.h.
2809         (c_cannot_inline_tree_fn): Don't auto-inline functions that
2810         don't bind locally.  Factor setting DECL_UNINLINABLE.
2811         * Makefile.in (c-objc-common.o): Update.
2813 2002-08-30  Janis Johnson  <janis187@us.ibm.com>
2815         * doc/install.texi (Configuration, Building): Fix a typo and
2816         some formatting directives.
2818 2002-08-30  Paul Koning <pkoning@equallogic.com>
2820         * doc/c-tree.texi (RDIV_EXPR): Fix typo.
2821         * doc/rtl.texi (post_modify): Remove misplaced text, remove "not
2822         implemented" note.
2823         * doc/md.texi (IP2K): Move machine-specific constraints before MIPS
2824         for alphabetic order.
2825         * doc/tm.texi (TARGET_FLOAT_FORMAT): Update description for
2826         VAX_FLOAT_FORMAT.  Remove reference to HOST_FLOAT_FORMAT.
2827         (VAX_HALFWORD_ORDER): Document.
2828         (LARGEST_EXPONENT_IS_NORMAL): Remove note about being only for
2829         IEEE float format.
2830         (TARGET_SCHED_ISSUE_RATE): Reword reference to MAX_DFA_ISSUE_RATE.
2831         (ASM_OUTPUT_LABEL_REF): Fix font.
2832         (CASE_VECTOR_SHORTEN_MODE): Ditto.
2834 2002-08-30  Denis Chertykov  <denisc@overta.ru>
2836         * config/ip2k/ip2k.c (ip2k_set_compare): Remove all const_double
2837         stuff.
2838         (ip2k_gen_unsigned_comp_branch): Handle CONST_INT and
2839         CONST_DOUBLE constants.
2841 2002-08-30  Jason Thorpe  <thorpej@wasabisystems.com>
2843         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Move language-
2844         related defines to...
2845         (SUBTARGET_LANGUAGE_CPP_BUILTINS): ...here.
2846         * config/alpha/netbsd.h (SUBTARGET_LANGUAGE_CPP_BUILTINS): Redefine
2847         as a no-op.
2849 2002-08-30  Krister Walfridsson  <cato@df.lth.se>
2851         * config/arm/arm.c (arm_asm_output_labelref): New function.
2852         * config/arm/arm.h (ASM_OUTPUT_LABELREF): Call arm_asm_output_labelref.
2853         * config/arm/arm-protos.h: Add prototype for arm_asm_output_labelref.
2855 2002-08-29  Rodney Brown  <rbrown64@csc.com.au>
2857         * doc/install.texi (Specific, alpha*-dec-osf*): Add "virtual
2858         memory exhausted" workarounds.
2860 2002-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2862         * diagnostic.c (fancy_abort): Don't repeat "internal error".
2863         * toplev.c (crash_signal): Likewise.
2865 Fri Aug 30 00:33:37 2002  Nicola Pero  <n.pero@mi.flashnet.it>
2867         * doc/cpp.texi (__NEXT_RUNTIME__): Extended documentation.
2868         * doc/invoke.texi (-fnext-runtime, -Wno-protocol, -Wselector):
2869         Extended, updated documentation.
2870         (-Wundeclared-selector): Documented.
2872 2002-08-29  Jason Thorpe  <thorpej@wasabisystems.com>
2874         * config/chorus.h: Consistently define *_DEBUGGING_INFO with
2875         the value 1.  Do not undef before defining.
2876         * config/darwin.h: Likewise.
2877         * config/dbx.h: Likewise.
2878         * config/dbxcoff.h: Likewise.
2879         * config/dbxelf.h: Likewise.
2880         * config/elfos.h: Likewise.
2881         * config/interix.h: Likewise.
2882         * config/lynx-ng.h: Likewise.
2883         * config/lynx.h: Likewise.
2884         * config/netware.h: Likewise.
2885         * config/psos.h: Likewise.
2886         * config/svr3.h: Likewise.
2887         * config/alpha/alpha.h: Likewise.
2888         * config/alpha/elf.h: Likewise.
2889         * config/alpha/vms.h: Likewise.
2890         * config/arc/arc.h: Likewise.
2891         * config/arm/aout.h: Likewise.
2892         * config/arm/coff.h: Likewise.
2893         * config/c4x/c4x.h: Likewise.
2894         * config/h8300/h8300.h: Likewise.
2895         * config/i386/cygwin.h: Likewise.
2896         * config/i386/djgpp.h: Likewise.
2897         * config/i386/gas.h: Likewise.
2898         * config/i386/gstabs.h: Likewise.
2899         * config/i386/i386-coff.h: Likewise.
2900         * config/i386/i386-interix.h: Likewise.
2901         * config/i386/sco5.h: Likewise.
2902         * config/i386/svr3dbx.h: Likewise.
2903         * config/i386/sysv3.h: Likewise.
2904         * config/i386/win32.h: Likewise.
2905         * config/i386/x86-64.h: Likewise.
2906         * config/i960/i960.h: Likewise.
2907         * config/ia64/ia64.h: Likewise.
2908         * config/ip2k/ip2k.h: Likewise.
2909         * config/m32r/m32r.h: Likewise.
2910         * config/m68k/3b1.h: Likewise.
2911         * config/m68k/3b1g.h: Likewise.
2912         * config/m68k/ccur-GAS.h: Likewise.
2913         * config/m68k/coff.h: Likewise.
2914         * config/m68k/hp2bsd.h: Likewise.
2915         * config/m68k/hp310g.h: Likewise.
2916         * config/m68k/hp320g.h: Likewise.
2917         * config/m68k/hp3bsd.h: Likewise.
2918         * config/m68k/hp3bsd44.h: Likewise.
2919         * config/m68k/linux-aout.h: Likewise.
2920         * config/m68k/m68k-aout.h: Likewise.
2921         * config/m68k/mot3300.h: Likewise.
2922         * config/m68k/netbsd.h: Likewise.
2923         * config/m68k/openbsd.h: Likewise.
2924         * config/m68k/pbb.h: Likewise.
2925         * config/m68k/plexus.h: Likewise.
2926         * config/m68k/sun2.h: Likewise.
2927         * config/m68k/sun3.h: Likewise.
2928         * config/m68k/tower-as.h: Likewise.
2929         * config/m68k/vxm68k.h: Likewise.
2930         * config/m88k/aout-dbx.h: Likewise.
2931         * config/m88k/m88k-aout.h: Likewise.
2932         * config/mcore/mcore-elf.h: Likewise.
2933         * config/mcore/mcore-pe.h: Likewise.
2934         * config/mips/elf.h: Likewise.
2935         * config/mips/elf64.h: Likewise.
2936         * config/mips/iris5gas.h: Likewise.
2937         * config/mips/iris6.h: Likewise.
2938         * config/mips/mips.h: Likewise.
2939         * config/mips/sni-gas.h: Likewise.
2940         * config/mmix/mmix.h: Likewise.
2941         * config/ns32k/netbsd.h: Likewise.
2942         * config/pa/pa64-hpux.h: Likewise.
2943         * config/romp/romp.h: Likewise.
2944         * config/rs6000/sysv4.h: Likewise.
2945         * config/rs6000/xcoff.h: Likewise.
2946         * config/sh/coff.h: Likewise.
2947         * config/sh/elf.h: Likewise.
2948         * config/sparc/linux64.h: Likewise.
2949         * config/sparc/liteelf.h: Likewise.
2950         * config/sparc/netbsd.h: Likewise.
2951         * config/sparc/openbsd.h: Likewise.
2952         * config/sparc/pbd.h: Likewise.
2953         * config/sparc/sp64-elf.h: Likewise.
2954         * config/sparc/sp86x-elf.h: Likewise.
2955         * config/sparc/sparc.h: Likewise.
2956         * config/vax/vax.h: Likewise.
2957         * config/vax/vaxv.h: Likewise.
2959 2002-08-29  "Dhananjay R. Deshpande" <dhananjayd@kpit.com>
2961         * h8300.c (shift_alg_hi): Various tweaks to improve performance
2962         of HImode shifts.
2963         (get_shift_alg): Corresponding changes.
2965 2002-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2967         * som.h (ALWAYS_STRIP_DOTDOT): Define to 1.
2969 2002-08-29  Richard Henderson  <rth@redhat.com>
2971         * expr.h (enum block_op_methods): New.
2972         (emit_block_move): Update prototype.
2973         * expr.c (block_move_libcall_safe_for_call_parm): New.
2974         (emit_block_move_via_loop): New.
2975         (emit_block_move): Use them.  New argument METHOD.
2976         (emit_push_insn): Always respect the given alignment.
2977         (expand_assignment): Update call to emit_block_move.
2978         (store_expr, store_field, expand_expr): Likewise.
2979         * builtins.c (expand_builtin_apply): Likewise.
2980         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
2981         * function.c (expand_function_end): Likewise.
2982         * config/sh/sh.c (sh_initialize_trampoline): Likewise.
2983         * config/sparc/sparc.c (sparc_va_arg): Likewise.
2984         * calls.c (expand_call, emit_library_call_value_1): Likewise.
2985         (save_fixed_argument_area): Use emit_block_move with
2986         BLOCK_OP_CALL_PARM instead of move_by_pieces.
2987         (restore_fixed_argument_area): Likewise.
2988         (store_one_arg): Fix alignment parameter to emit_push_insn.
2990 2002-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2992         * install.texi (hppa64-hp-hpux11*): Document installation procedure.
2994 2002-08-29  Catherine Moore  <clm@redhat.com>
2996         * config/v850/v850.h (MULDI3_LIBCALL, UCMPDI2_LIBCALL, CMPDI2_LIBCALL,
2997         NEGDI2_LIBCALL, INIT_TARGET_OPTABS, MASK_STRICT_ALIGN): Define.
2998         (PREDICATE_CODES): Include new predicates.
2999         (RTX_COSTS): Handle UMOD and UDIV.  Tune MULT for v850e.
3000         (TARGET_SWITCHES):  Add strict-align.
3001         (TARGET_STRICT_ALIGN): New.
3002         (MASK_DEFAULT, STRICT_ALIGNMENT):  Redefine.
3003         * config/v850/t-v850 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
3004         Define.
3005         (LIB1ASMFUNCS): Add v850_negdi2, v850_cmpdi2, v850_ucmpdi2,
3006         v850_muldi3.
3007         * config/v850/lib1funcs.asm (L_callt_save_r2_r29, L_return_r2_r29,
3008         L_callt_save_r2_r31, L_return_r2_r31,
3009         L_save_all_interrupt): Change addi to add.
3010         (L_save_interrupt, L_return_interrupt): Rework.
3011         (__return_r31):  Correct .size directive.
3012         (mulsi3, divsi3, udivsi3, umodsi3, modsi3): Tune for v850e.
3013         (v850_negdi2, v850_cmpdi2, v850_ucmpdi2, v850_muldi3):
3014         New routines.
3015         * config/v850/v850.c (expand_prologue): Call
3016         gen_callt_save_interrupt, gen_callt_restore_all_interrupt,
3017         gen_callt_return_interrupt and gen_callt_save_all_interrupt.
3018         (reg_or_int9_operand): New predicate.
3019         (reg_or_const_operand): New routine.
3020         * config/v850/v850.md (return_interrupt): Changed from
3021         restore_interrupt.
3022         (callt_save_all_interrupt): Changed from save_all_interrupt_v850e.
3023         (callt_save_interrupt): Change save sequence.
3024         (callt_return_interrupt): New.
3025         (save_interrupt): Don't use runtime function for LONG_CALLS
3026         and TARGET_PROLOG_FUNCTION.
3027         (save_all_interrupt): Likewise.
3028         (mulsi3): Use new predicate.
3029         (moviscc): Disallow some combination of constants.
3030         Fix define_split for sasf insns, so that it will not generate bad
3031         code if operand0 and operand5 are the same.
3032         * config/v850/v850-protos.h: Prototype new predicates.
3034 2002-08-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3036         * c-common.c (builtin_define_type_precision): New function.
3037         (cb_register_builtins): Use it.  Define __WCHAR_UNSIGNED__ is
3038         wchar_t is unsigned in C++.
3039         * doc/cpp.texi (Common Predefined Macros): Document
3040         __WCHAR_UNSIGNED__, __CHAR_BIT__, __WCHAR_BIT__, __SHRT_BIT__,
3041         __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
3042         __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
3044 2002-08-28  Sylvain Pion <pion@cs.nyu.edu>
3046         * doc/invoke.texi (-Wreorder): Remove remaining pieces from the generic
3047         section.  Mention that it is enabled by -Wall.
3048         (-Wall): Mention that there can be language-specific warnings as well.
3049         (-Wctor-dtor-privacy): Mention that it is enabled by default.
3050         (-Wnon-virtual-dtor): Mention that it is enabled by -Wall.
3052 Wed Aug 28 15:35:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
3054         * sh.c (calc_live_regs): Save FPSCR_REG in an interrupt handler
3055         if it is ever live.
3057         * sh.c (sh_handle_interrupt_handler_attribute): Reject interrupt_handler
3058         attribute for SHCOMPACT.
3060         * sh.h (OVERRIDE_OPTIONS): If align_function isn't set, set it
3061         appropriately.
3062         (FUNCTION_BOUNDARY): Specify only the minimum alignment required
3063         by the ABI.
3065         * sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Also handle TImode case.
3067 2002-08-28  Jason Thorpe  <thorpej@wasabisystems.com>
3069         * config.gcc (mips*-*-netbsd*): Set target_cpu_default to
3070         "MASK_GAS|MASK_ABICALLS".
3071         * config/mips/netbsd.h (TARGET_ENDIAN_DEFAULT)
3072         (TARGET_DEFAULT): Remove.
3073         (MACHINE_TYPE): Undefine before defining.
3074         (DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE): Remove.
3076 2002-08-27  Mark Mitchell  <mark@codesourcery.com>
3078         * c-common.c (warn_abi): New variable.
3079         * c-common.h (warn_abi): Likewise.
3080         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Wabi.
3081         (c_common_decode_option): Handle it.
3082         * doc/invoke.texi: Document -Wabi.
3084 Tue Aug 27 23:03:52 2002  Nicola Pero  <n.pero@mi.flashnet.it>
3086         * c-common.c (warn_undeclared_selector): New variable.
3087         * c-common.h (warn_undeclared_selector): Idem.
3088         * c-opts.c (c_common_decode_option): Set warn_undeclared_selector
3089         to on when -Wundeclared-selector is found.
3090         (COMMAND_LINE_OPTIONS): Added -Wundeclared-selector.
3091         * objc/objc-act.c (build_selector_expr): If
3092         warn_undeclared_selector is set, check that the selector has
3093         already been defined, and emit a warning if not.
3095 2002-08-27  Nick Clifton  <nickc@redhat.com>
3096             Catherine Moore  <clm@redhat.com>
3097             Jim Wilson  <wilson@cygnus.com>
3099         * config.gcc: Add v850e-*-* target.
3100         Add --with-cpu= support for v850.
3101         * config/v850/lib1funcs.asm: Add v850e callt functions.
3102         * config/v850/v850.h: Add support for v850e target.
3103         * config/v850/v850.c: Add functions to support v850e target.
3104         * config/v850/v850-protos.h: Add prototypes for new functions in v850.c.
3105         * config/v850/v850.md: Add patterns for v850e instructions.
3106         * doc/invoke.texi: Document new v850e command line switches.
3108 Tue Aug 27 18:30:47 2002  J"orn Rennecke <joern.rennecke@superh.com>
3109                           Aldy Hernandez <aldyh at redhat dot com>
3111         * doc/tm.texi: Applied numerous fixes to the automaton based
3112         scheduler descrition.
3114 Tue Aug 27 19:51:05 CEST 2002  Jan Hubicka  <jh@suse.cz>
3116         * i386.c (classify_argument): Handle variable sized objects.
3118 Tue Aug 27 19:18:16 CEST 2002  Jan Hubicka  <jh@suse.cz>
3120         * i386.c (ix86_expand_int_movcc): Fix RTL sharing problem
3122 Tue Aug 27 18:01:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
3124         * libgcc2.c (__bb_exit_func): Properly write the summarized statistics.
3126 Tue Aug 27 18:00:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
3128         * i386.c (classify_argument): Properly compute word size of the analyzed object.
3130 Tue Aug 27 14:39:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
3132         * sh.md (attribute type): Add types mt_group, fload, pcfload, fpul_gp,
3133         mac_gp ftrc_s and cwb.  Add / Adjust definitions in individual insn
3134         accordingly.
3135         (attribute insn_class): Provide default definitions based on type.
3136         Remove all insn-specific settings.
3137         (various function units): Remove old SH4 scheduling.
3138         (branch_zero, dfp_comp, late_fp_use, any_fp_comp, any_int_load):
3139         New attributes.  Set them where appropriate.
3140         (cpu unit FS): Don't define / use.
3141         (F3, load_store): New cpu units.
3142         (F01): New reservation.
3143         (all insn_reservations): Make dependent on sh4 pipeline model.
3144         Fix latencies.
3145         (nil, reg_mov, freg_mov, sh4_fpul_gp, sh4_call): New insn_reservations.
3146         (sh4_mac_gp, fp_arith_ftrc, arith3, arith3b): Likewise.
3147         (mt insn_reservation): Use type mt_group.
3148         (insn_reservation load_store): Split into sh4_load, sh4_load_si,
3149         sh4_fload and sh4_store.
3150         (insn_reservation branch_zero and branch): Replace with sh4_branch.
3151         (insn_reservation branch_far): Replace with sh4_return.
3152         (insn_reservation return_from_exp): Rename to:
3153         (sh4_return_from_exp).  Change to be just d_lock*5.
3154         (insn_reservation lds_to_pr): Rename to:
3155         (sh4_lds_to_pr).  Change to be just d_lock*2.
3156         (insn_reservation ldsmem_to_pr, sts_from_pr): Change to be just
3157         d_lock*2.
3158         (insn_reservation prload_mem): Rename to:
3159         (sh4_prstore_mem).  Change to d_lock*2,nothing,memory.
3160         (insn_reservation fpscr_store): Rename to:
3161         (fpscr_load).  Change to d_lock,nothing,F1*3.
3162         (insn_reservation fpscr_store_mem): Rename to:
3163         (fpscr_load_mem).  Change to d_lock,nothing,(F1+memory),F1*2.
3164         (insn_reservation multi): Change to
3165         d_lock,(d_lock+f1_1),(f1_1|f1_2)*3,F2.
3166         (insn_reservation fp_arith): Change to issue,F01,F2.
3167         (insn_reservation fp_div: Change to issue,F01+F3,F2+F3,F3*7,F1+F3,F2.
3168         (insn_reservation dp_float): Change to issue,F01,F1+F2,F2.
3169         (insn_reservation fp_double_arith): Change to issue,F01,F1+F2,fpu*4,F2.
3170         (insn_reservation fp_double_cmp): Change to
3171         d_lock,(d_lock+F01),F1+F2,F2.
3172         (insn_reservation dp_div): Change to
3173         issue,F01+F3,F1+F2+F3,F2+F3,F3*16,F1+F3,(fpu+F3)*2,F2.
3174         * sh.c (flow_dependent_p, flow_dependent_p_1): New functions.
3175         (sh_adjust_cost, SHcompact): Differentiate between different
3176         kinds of dependencies.  Drop factor of ten for superscalar.
3177         Use new instruction types.  Add new exception rules.
3179         * sh.md (mulhisi3, umulhisi3: Add a REG_EQUAL note.
3181         * sh.md (mperm_w): Add DONE.
3183 2002-08-27  David Edelsohn  <edelsohn@gnu.org>
3185         * longlong.h: Import current PowerPC defintion from GMP-4.1.
3187         * config/rs6000/rs6000.h (MIN_UNITS_PER_WORD): Add IN_LIBGCC2 case.
3189         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Undef before define.
3191 Tue Aug 27 13:53:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
3193         * sh.h (MAX_FIXED_MODE_SIZE): Define.
3195 2002-08-27  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
3197         * doc/cpp.texi (Common Predefined Macros): Don't mess with table
3198         delimiter.
3200 2002-08-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3202         * c-common.c (cpp_define_data_format): New function.
3203         (cb_register_builtins): Call it.
3205         * doc/cpp.texi (Common Predefined Macros): Document
3206         __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
3207         __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
3208         __TARGET_FLOAT_FORMAT__, __TARGET_USES_VAX_F_FLOAT__,
3209         __TARGET_USES_VAX_D_FLOAT__, __TARGET_USES_VAX_G_FLOAT__,
3210         __TARGET_USES_VAX_H_FLOAT__.
3212 2002-08-26  Ziemowit Laski <zlaski@apple.com>
3214         * objc/objc-act.c (get_super_receiver): If inside a class method
3215         of a category, cast the receiver to 'id' before accessing the 'isa'
3216         field so that <objc/objc-class.h> is not needed.  For NeXT runtime.
3218 2002-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
3220         * config/s390/s390-protos.h (s390_function_prologue,
3221         s390_function_epilogue): Remove.
3222         config/s390/s390.c (s390_function_prologue, s390_function_epilogue,
3223         TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
3225         config/s390/s390.c (s390_machine_dependent_recorg): New function.
3226         config/s390/s390-protos.h (s390_machine_dependent_reorg): Declare it.
3227         config/s390/s390.h (MACHINE_DEPENDENT_REORG): Call it.
3228         config/s390/s390.c (s390_split_branches, s390_chunkify_pool): Adapt
3229         to being called from MACHINE_DEPENDENT_REORG.  Update regs_ever_live.
3231         config/s390/s390.c (s390_frame_info): Inline save_fprs_p.  Always
3232         assume BASE_REGISTER and RETURN_REGNUM need to be saved.
3233         (s390_emit_prologue): Assume RETURN_REGNUM to be saved iff
3234         function is not a leaf function.  Use save_gprs and restore_gprs.
3235         (s390_emit_epilogue): Likewise.
3236         (save_gprs, restore_gprs): New functions.
3237         (struct s390_frame): Remove return_reg_saved_p member.
3238         (save_fprs_p): Remove.
3239         (s390_optimize_prolog): New function.
3240         (s390_legitimate_reload_constant): Remove now unnecessary check.
3242         (s390_function_count): Remove.
3243         (s390_output_symbolic_const): Replace s390_function_count by
3244         current_function_funcdef_no.
3245         (s390_output_constant_pool): Likewise.
3247         (legitimize_pic_address): Use regs_ever_live to track PIC register
3248         instead of current_function_uses_pic_offset_table.
3249         (s390_emit_prologue): Likewise.
3250         config/s390/s390.md ("call", "call_value"): Likewise.
3252 2002-08-26  Neil Booth  <neil@daikokuya.co.uk>
3254         * c-opts.c (find_opt): Don't complain about wrong languages
3255         here.  Return exact matches even for wrong language.
3256         (c_common_decode_option): Complain about wrong languages
3257         here.
3259 2002-08-24  Stuart Hastings  <stuart@apple.com>
3261         * function.h (struct function): Add flag
3262         all_throwers_are_sibcalls.
3263         * except.c (set_nothrow_function_flags): Replaces
3264         nothrow_function_p. Set new flag.
3265         * except.h (set_nothrow_function_flags): Replaces
3266         nothrow_function_p.
3267         * dwarf2out.c (struct dw_fde_struct): Add flag
3268         all_throwers_are_sibcalls.
3269         (output_call_frame_info): Test it.
3270         (dwarf2out_begin_prologue) Propagate it from cfun to
3271         dw_fde_struct.
3272         * toplev.c (rest_of_compilation): Update calls to
3273         nothrow_function_p.
3275 2002-08-23  Zack Weinberg  <zack@codesourcery.com>
3277         * ggc-page.c (compute_inverse): Short circuit calculation for
3278         object sizes larger than half a page.
3280 2002-08-23  David Edelsohn  <edelsohn@gnu.org>
3282         * config/rs6000/rs6000.c (rs6000_elf_select_section): Treat
3283         DEFAULT_ABI == ABI_AIX like PIC.  Test PIC & reloc for readonly
3284         default.
3285         (rs6000_elf_unique_section): Likewise.
3287 2002-08-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3289         * ns32k.c (ns32k_globalize_label): Delete.
3290         * ns32k.h (ASM_OUTPUT_LABEL, TARGET_ASM_GLOBALIZE_LABEL): Delete.
3292 2002-08-23  Alan Modra  <amodra@bigpond.net.au>
3294         * config/rs6000/rs6000.c (output_mi_thunk): Don't determine insns
3295         for loading delta with num_insns_constant_wide.  Calculate
3296         delta_low, delta_high without using a conditional.
3298 2002-08-22  Jason Merrill  <jason@redhat.com>
3300         * c-common.h (RETURN_STMT_EXPR): Rename from RETURN_EXPR.
3301         * c-common.def: Adjust.
3302         * c-dump.c (c_dump_tree): Adjust.
3303         * c-semantics.c (genrtl_return_stmt): Adjust.
3304         * c-pretty-print.c (pp_c_statement): Adjust.
3305         * tree-inline.c (copy_body_r): Adjust.
3307 2002-08-22  Zack Weinberg  <zack@codesourcery.com>
3309         * ggc-page.c: Avoid division in ggc_set_mark.
3310         (DIV_MULT, DIV_SHIFT, OFFSET_TO_BIT, inverse_table,
3311         compute_inverse): New.
3312         (ggc_set_mark, ggc_marked_p): Use OFFSET_TO_BIT.
3313         (init_ggc): Initialize inverse_table.
3315 2002-08-22  Tom Tromey  <tromey@redhat.com>
3317         * doc/install.texi (Configuration): Document --datadir.
3319 2002-08-22  Alexandre Oliva  <aoliva@redhat.com>
3321         * Makefile.in ($(BUILD_PREFIX_1)varray.o): Depend on $(GGC_H).
3323 2002-08-22  Hans-Peter Nilsson  <hp@bitrange.com>
3325         * gengtype-lex.l (ID): Allow underscore as first character.
3327 2002-08-21  David Edelsohn  <edelsohn@gnu.org>
3329         * config/rs6000/rs6000.c (rs6000_xcoff_asm_globalize_label): New
3330         function.
3331         (rs6000_xcoff_asm_named_section): Rename.
3332         * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
3334 2002-08-21  Tom Tromey  <tromey@redhat.com>
3336         For PR java/6005 and PR java/7611:
3337         * fold-const.c (fold_truthop): Use can_use_bit_fields_p.
3338         (fold): Likewise.
3339         * langhooks.c (lhd_can_use_bit_fields_p): New function.
3340         * langhooks-def.h (lhd_can_use_bit_fields_p): Declare.
3341         (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): New define.
3342         (LANG_HOOKS_INITIALIZER): Use it.
3343         * langhooks.h (struct lang_hooks) [can_use_bit_fields_p]: New
3344         field.
3346 2002-08-21  Stan Shebs  <shebs@apple.com>
3348         * tree.c (finish_vector_type): Fix a typo in a comment.
3349         * Makefile.in: Fix "the the" stutters in comments.
3350         * genautomata.c: Ditto.
3351         * ifcvt.c: Ditto.
3352         * regrename.c: Ditto.
3353         * config/alpha/alpha.c: Ditto.
3354         * config/alpha/vms-crt0-64.c: Ditto.
3355         * config/alpha/vms-crt0.c: Ditto.
3356         * config/alpha/vms-psxcrt0-64.c: Ditto.
3357         * config/alpha/vms-psxcrt0.c: Ditto.
3358         * config/d30v/d30v.h: Ditto.
3359         * config/fr30/fr30.h: Ditto.
3360         * config/rs6000/rs6000.c: Ditto.
3361         * config/stormy16/stormy16.h: Ditto.
3362         * doc/md.texi: Ditto.
3364 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3366         * cppinit.c (remove_dup_nonsys_dirs): Fix warning and return value.
3368 2002-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
3370         * c-decl.c (grokdeclarator): Make invalid combinations with long,
3371         short, signed or unsigned into hard errors.  Fixes PR c/4319.
3372         Also make duplicate modifiers such as "short short" into hard
3373         errors.
3375 2002-08-21  Andrew Pinski <pinskia@physics.uc.edu>
3376             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3378         * doc/tm.texi (TARGET_ASM_GLOBALIZE_LABEL): Move '@end deftypefn'
3379         to the actual end.  Add '@end table' and '@table @code'.
3381 2002-08-20  Geoffrey Keating  <geoffk@redhat.com>
3383         * doc/tm.texi (Label Output): Add missing '@end deftypefn'.
3385         * unroll.c (biv_total_increment): Don't try to compute the total
3386         increment for FP BIVs.
3388 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3390         * alpha.c (TARGET_ASM_GLOBALIZE_LABEL): Define for unicosmk.
3391         * alpha/elf.h (ASM_OUTPUT_EXTERNAL_LIBCALL,
3392         ASM_OUTPUT_ALIGNED_BSS): Use target hook.
3393         * alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS): Likewise.
3394         * alpha/unicosmk.h (ASM_GLOBALIZE_LABEL): Delete.
3395         * arm/aof.h (ASM_GLOBALIZE_LABEL): Likewise.
3396         (GLOBAL_ASM_OP): Define.
3397         * arm.c (aof_globalize_label): New function.
3398         (TARGET_ASM_GLOBALIZE_LABEL): Define for AOF.
3399         * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
3400         * c4x.c (c4x_globalize_label): New function.
3401         (TARGET_ASM_GLOBALIZE_LABEL): Define for c4x.
3402         * c4x.h (ASM_GLOBALIZE_LABEL): Delete.
3403         (GLOBAL_ASM_OP): Define.
3404         * cris/aout.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
3405         * darwin-protos.h (darwin_globalize_label): Declare.
3406         * darwin.c (darwin_globalize_label): New function.
3407         * darwin.h (ASM_DECLARE_CLASS_REFERENCE): Use target hook.
3408         (ASM_GLOBALIZE_LABEL): Delete.
3409         (GLOBAL_ASM_OP, TARGET_ASM_GLOBALIZE_LABEL): Define.
3410         * dsp16xx.c (asm_output_common): Use target hook.
3411         * elfos.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
3412         * frv.h (ASM_GLOBALIZE_LABEL): Delete.
3413         (GLOBAL_ASM_OP): Define.
3414         * i370.c (i370_globalize_label): New function.
3415         (TARGET_ASM_GLOBALIZE_LABEL): Define for i370.
3416         * i370.h (ASM_GLOBALIZE_LABEL): Delete.
3417         * i386.c (ix86_asm_file_end): Use target hook.
3418         * i386/sco5.h (ASM_GLOBALIZE_LABEL): Don't undef.
3419         (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
3420         * ia64.c (ia64_asm_output_external): Likewise.
3421         * ia64/sysv4.h: Update comment.
3422         * m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
3423         * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3424         * mips/iris5.h (ASM_OUTPUT_WEAK_ALIAS): Use target hook.
3425         * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3426         * mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use target hook.
3427         * mmix-protos.h (mmix_asm_globalize_label): Delete.
3428         * mmix.c (mmix_asm_globalize_label): Likewise.
3429         * mmix.h (ASM_GLOBALIZE_LABEL): Likewise.
3430         (GLOBAL_ASM_OP): Define.
3431         * ns32k.c (ns32k_globalize_label): New function.
3432         * ns32k.h (TARGET_ASM_GLOBALIZE_LABEL): Define for ns32k.
3433         (ASM_GLOBALIZE_LABEL): Delete.
3434         * pa/pa-linux.h (ASM_GLOBALIZE_LABEL): Don't undef.
3435         (TARGET_ASM_GLOBALIZE_LABEL): Undefine.
3436         * pa.c (pa_globalize_label): New function.
3437         * pa.h (ASM_GLOBALIZE_LABEL): Delete.
3438         (TARGET_ASM_GLOBALIZE_LABEL): Define for pa.
3439         * rs6000/darwin.h (ASM_GLOBALIZE_LABEL): Delete.
3440         (GLOBAL_ASM_OP): Define.
3441         (TARGET_ASM_GLOBALIZE_LABEL): Undef.
3442         * rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
3443         * rs6000/xcoff.h (ASM_GLOBALIZE_LABEL): Delete.
3444         (GLOBAL_ASM_OP): Define.
3445         * v850.c (v850_output_aligned_bss): Use target hook.
3446         * vax.c (vms_globalize_label): New function.
3447         (TARGET_ASM_GLOBALIZE_LABEL): Define for vms.
3448         * vax/vms.h (ASM_GLOBALIZE_LABEL): Delete.
3449         (GLOBAL_ASM_OP): Define.
3450         * defaults.h (ASM_GLOBALIZE_LABEL): Delete.
3451         * doc/tm.texi: Update docs.
3452         * dwarf2out.c (default_eh_frame_section, output_die_symbol): Use
3453         target hook.
3454         * final.c (output_alternate_entry_point): Likewise.
3455         * hooks.c (hook_FILEptr_constcharptr_void): New function.
3456         * hooks.h (hook_FILEptr_constcharptr_void): Declare.
3457         * output.h (assemble_global): Delete.
3458         (default_globalize_label): Declare.
3459         * system.h (ASM_GLOBALIZE_LABEL): Poison.
3460         * target-def.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
3461         (TARGET_ASM_OUT): Add TARGET_ASM_GLOBALIZE_LABEL.
3462         * target.h (gcc_target): Add globalize_label member.
3463         * varasm.c (asm_output_bss, asm_output_aligned_bss,
3464         globalize_decl): Use target hook.
3465         (assemble_global): Delete.
3466         (default_globalize_label): New function.
3468 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3470         * dsp16xx.h (dsp16xx_umulhi3_libcall): Delete.
3472 2002-08-20  Devang Patel  <dpatel@apple.com>
3473         * tree.c (get_qualified_type): Add TYPE_CONTEXT check.
3475 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3477         * arc.c (output_shift): Use stdio instead of asm_fprintf.
3478         * arm.c (thumb_output_function_prologue): Likewise.
3479         * avr.c (print_operand): Likewise.
3480         * c4x.c (c4x_print_operand): Likewise.
3481         * c4x.h (ASM_OUTPUT_INTERNAL_LABEL, TRAMPOLINE_TEMPLATE,
3482         ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Likewise.
3483         * cris.c (cris_target_asm_function_prologue,
3484         cris_asm_output_mi_thunk): Likewise.
3485         * h8300.c (print_operand): Likewise.
3486         * h8300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
3487         * ip2k.c (print_operand): Likewise.  Fix format specifier.
3488         * m68hc11.c (asm_print_register, print_operand,
3489         print_operand_address): Use stdio instead of asm_fprintf.
3490         (print_operand_address): Fix format specifier.
3491         * m68hc11.h (FUNCTION_PROFILER, ASM_OUTPUT_ADDR_DIFF_ELT,
3492         ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ALIGN): Use stdio instead of
3493         asm_fprintf.
3494         * m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
3495         * m68k/atari.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
3496         * m68k.c (m68k_output_function_prologue,
3497         m68k_output_function_epilogue, print_operand): Likewise.
3498         * mmix.c (mmix_asm_output_mi_thunk, mmix_asm_weaken_label):
3499         Likewise.  Fix format specifier.
3500         * mn10200.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
3501         * mn10300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
3502         * v850.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
3504 2002-08-15  Eric Christopher  <echristo@redhat.com>
3505             Jeff Knaggs  <jknaggs@redhat.com>
3507         * config.gcc (mipsisa64sr71k-elf): New target.
3508         * config/mips/sr71k.md: New file.
3509         * config/mips/mips.md: Use it.
3510         (rot*): Add sr71k specifics.
3511         * config/mips/t-sr71k: New file.
3512         * config/mips/mips.h (sr71k): New cpu.
3513         (TARGET_SR71K): Use it.
3514         (TUNE_SR71K): Ditto.
3515         (GENERATE_BRANCHLIKELY): Ditto.
3516         (ISA_HAS_MULHI, ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC,
3517         ISA_HAS_ROTR_SIISA_HAS_ROTR_DI): Ditto.
3518         * config/mips/mips.c (sr71k): New cpu.
3519         (mips_use_dfa_pipeline_interface): Use.
3521 2002-08-15  Eric Christopher  <echristo@redhat.com>
3522             Richard Sandiford <rsandifo@redhat.com>
3523             Aldy Hernandez  <aldyh@redhat.com>
3524             Graham Stott    <grahams@redhat.com>
3525             Michael Meissner  <meissner@redhat.com>
3526             Gavin Romig-Koch  <gavin@redhat.com>
3527             Ken Raeburn  <raeburn@cygnus.com>
3528             Alexandre Oliva <aoliva@redhat.com>
3530         * config.gcc (mips64vr-elf): New target.
3531         * config/mips/5400.md: New file.
3532         * config/mips/5500.md: Ditto.
3533         * config/mips/mips.md: Use them.
3534         (frsqrt): New.
3535         * config/mips/mips.c (vr4111, vr4121, vr4320, vr5400, vr5500): New
3536         cpus.
3537         (mips_issue_rate): Use them.
3538         (mips_use_dfa_pipeline_interface): New function. Use for 5400 and 5500.
3539         (TARGET_SCHEDUSE_DFA_PIPELINE_INTERFACE): Define. Use above.
3540         * config/mips/mips.h (vr4111, vr4121, vr4320, vr5400, vr5500): New
3541         cpus.
3542         (TARGET_MIPSx): Use them.
3543         (TUNE_MIPSx): Ditto.
3544         (GETNATE_MULT3_SI): Ditto.
3545         (ISA_HAS_BRANCHLIKELY): Ditto.
3546         (ISA_HAS_CONDMOVE): Ditto.
3547         (ISA_HAS_NMADD_NMSUB): Ditto.
3548         (ISA_HAS_MULHI): New. Ditto.
3549         (ISA_HAS_MULS): Ditto.
3550         (ISA_HAS_MSAC): Ditto.
3551         (ISA_HAS_MACC): Ditto.
3552         (ISA_HAS_ROTR_SI): Ditto.
3553         (ISA_HAS_ROTR_DI): Ditto.
3554         (RTX_COSTS): Use.
3556 2002-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3558         * cppinit.c (remove_dup_dir): Add head_ptr argument to handle removal
3559         at head.
3560         (remove_dup_nonsys_dirs): New function.
3561         (remove_dup_dirs): Change argument head to head_ptr.  Remove warnings.
3562         (merge_include_chains): Remove non-system include directories from
3563         quote and bracket include chains when they duplicate equivalent system
3564         directories.
3565         * doc/cpp.texi (-I): Update.
3566         * doc/cppopts.texi (-I): Update.
3567         * doc/install.texi (--with-local-prefix): Further document usage of
3568         this option.
3569         * doc/invoke.texi (-I): Update.
3571 2002-08-20  Richard Henderson  <rth@redhat.com>
3573         * expr.c (TARGET_MEM_FUNCTIONS): Transform to boolean.
3574         (emit_block_move): Split out subroutines.
3575         (emit_block_move_via_movstr): New.
3576         (emit_block_move_via_libcall): New.  Emit bcopy via normal call also.
3577         (emit_block_move_libcall_fn): New.  Construct function prototype for
3578         bcopy as well.
3579         (clear_storage): Split out subroutines.
3580         (clear_storage_via_clrstr): New.
3581         (clear_storage_via_libcall): New. Emit bzero as a normal call also.
3582         (clear_storage_libcall_fn): New.  Construct function prototype for
3583         bzero as well.
3584         (emit_push_insn): Use emit_block_move.
3585         (expand_assignment): Booleanize TARGET_MEM_FUNCTIONS.
3586         (store_constructor): Likewise.
3588 2002-08-19  Ziemowit Laski  <zlaski@apple.com>
3590         * objc/objc-act.c (building_objc_message_expr): Rename to
3591         current_objc_message_selector.
3593 2002-08-19  Ziemowit Laski  <zlaski@apple.com>
3595         * objc/objc-act.c (build_ivar_chain): Remove.
3596         (objc_copy_list): Likewise.
3597         (get_class_ivars): Inline call to removed build_ivar_chain
3598         function.  Save off a clean copy of ivars in the CLASS_OWN_IVARS
3599         slot; use that slot (rather than CLASS_IVARS) when accessing
3600         ivars for base classes.  Call copy_list and chainon instead of
3601         objc_copy_list.
3602         (build_private_template): Call get_class_ivars instead of
3603         build_ivar_chain.
3604         (start_class): Allocate room for the CLASS_OWN_IVARS slot.
3605         (continue_class): Call get_class_ivars instead of
3606         build_ivar_chain.
3607         (encode_field_decl): Check for DECL_BIT_FIELD_TYPE instead
3608         of DECL_BIT_FIELD (which may have been cleared).
3609         * objc/objc-act.h (CLASS_OWN_IVARS): New accessor macro.
3611 2002-08-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3613         * genautomata.c (output_translate_vect, output_state_ainsn_table,
3614         output_min_issue_delay_table): Mark variable with ATTRIBUTE_UNUSED
3615         in output file.
3616         (output_internal_min_issue_delay_func): Initialize variable in
3617         output file.
3619 2002-08-19  Alexandre Oliva  <aoliva@redhat.com>
3621         * Makefile.in (GCC_FOR_TARGET): Prepend STAGE_CC_WRAPPER.
3622         (stage2_build, stage3_build, stage4_build): Likewise, to CC.
3624 2002-08-19  Geoffrey Keating  <geoffk@redhat.com>
3625             Steve Ellcey  <sje@cup.hp.com>
3627         * machmode.h (SCALAR_INT_MODE_P): New macro to test for
3628         scaler integer mode (MODE_INT or MODE_PARTIAL_INT).
3629         * explow.c (trunc_int_for_mode): Abort when the mode is not
3630         a scaler integer mode.
3631         * combine.c (expand_compound_operation): Don't expand Vector
3632         or Complex modes into shifts.
3633         (expand_field_assignment): Don't do bitwise arithmatic and
3634         shifts on Vector or Complex modes.
3635         (simplify_comparison): Don't call trunc_int_for_mode
3636         for VOIDmode.
3637         * recog.c (general_operand): Likewise.
3638         (immediate_operand): Likewise.
3639         (nonmemory_operand): Likewise.
3641 2002-08-19  David Edelsohn  <edelsohn@gnu.org>
3643         * config/rs6000/rs6000.c (rs6000_emit_set_const): Inline
3644         multi-instruction SImode constant.  Add REG_EQUAL note.
3645         * config/rs6000/rs6000.md (movsi splitter): Use
3646         rs6000_emit_set_const.
3648 2002-08-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3650         * tree-inline.c (initialize_inlined_parameters): Wrap variable in
3651         the macro test controlling its use.
3653 2002-08-18  H.J. Lu  (hjl@gnu.org)
3655         * config.gcc (*-*-linux*): Set extra_parts="crtbegin.o
3656         crtbeginS.o crtbeginT.o crtend.o crtendS.o", gas=yes and
3657         gnu_ld=yes.
3658         (alpha*-*-linux*, cris-*-linux*, i370-*-linux*,
3659         i[34567]86-*-linux*, x86_64-*-linux*, mips*-*-linux*,
3660         s390-*-linux*, s390x-*-linux*, sparc-*-linux*, sparc64-*-linux*,
3661         xtensa-*-linux*): Remove setting extra_parts, gas, and gnu_ld
3662         here.
3663         (cris-*-linux*): Remove setting thread_file here.
3665 2002-08-18  Neil Booth  <neil@daikokuya.co.uk>
3667         PR preprocessor/7602
3668         * cppinit.c (path_include): Treat the system environment
3669         variables as being cxx_aware.
3671 2002-08-17  Joseph S. Myers  <jsm@polyomino.org.uk>
3673         * c-decl.c (flexible_array_type_p): New function.
3674         (grokdeclarator, finish_struct): Use it.
3675         * doc/extend.texi: Document constraints on use of structures with
3676         flexible array members.
3678 2002-08-17  Richard Sandiford  <rsandifo@redhat.com>
3680         * config/mips/t-coff, config/mips/t-elf, config/mips/t-isa3264,
3681         config/mips/t-r3900 (MULTILIB_MATCHES): Define.
3682         * config/mips/mips.h (ASM_SPEC): Use %(endian_spec).
3684 2002-08-16  Stan Shebs  <shebs@apple.com>
3686         * c-common.c (cb_register_builds): Define __NEXT_RUNTIME__
3687         for ObjC with -fnext-runtime.
3688         * doc/cpp.texi: Document it.
3690 2002-08-16  Janis Johnson  <janis187@us.ibm.com>
3692         * doc/install.texi (Final installation): Replace links to individual
3693         build status pages with a link to a common page that lists them all.
3695 2002-08-16  Sylvain Pion <pion@cs.nyu.edu>
3697         * doc/invoke.texi: Fix typo.
3699 2002-08-16  David Edelsohn  <edelsohn@gnu.org>
3701         * doc/install.texi (*-ibm-aix*): Explain AIX shared object versioning.
3703 2002-08-16  Andrew Haley  <aph@redhat.com>
3705         * tree-inline.c: Add includes for Java inliner.
3706         (remap_decl): Don't handle anonymous types for Java.
3707         (remap_block): Add handling for Java trees.
3708         (copy_scope_stmt): Conditionalize for non-Java use only.
3709         (copy_body_r): Handle Java trees.  Add handling for
3710         LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, Java blocks.
3711         (initialize_inlined_parameters):  Handle Java trees.
3712         (declare_return_variable): Likewise.
3713         (expand_call_inline): Handle Java trees.
3714         (walk_tree): Likewise.
3715         (copy_tree_r): Don't handle SCOPE_STMTs for Java.
3716         (add_stmt_to_compound): New function.
3718 2002-08-15  Richard Henderson  <rth@redhat.com>
3720         * Makefile.in (LOOSE_WARN): Remove -fno-common.
3721         (NOCOMMON_FLAG): New substitution point.
3722         (GCC_WARN_CFLAGS): Include it.
3723         * configure.in (ac_checking): Set nocommon_flag.
3724         (nocommon_flag): New substitution point.
3726 2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
3728         * c-tree.h (skip_evaluation): Move declaration...
3729         * c-common.h: ... here.
3730         * c-typeck.c (build_external_ref): Don't assemble_external nor
3731         mark a tree as used if skip_evaluation is set.
3732         * c-parse.in (typeof): New non-terminal to set skip_evaluation
3733         around TYPEOF.
3734         (typespec_nonreserved_nonattr): Use it.
3736 2002-08-15  Douglas B Rupp  <rupp@gnat.com>
3738         * dbxout.c (dbx_debug_hooks): Update end_prologue, end_epilogue.
3739         (xcoff_debug_hooks): Update end_prologue.
3740         * debug.c (do_nothing_debug_hooks): Update end_prologue, end_epilogue.
3741         * debug.h (end_prologue): Add file arg.
3742         (end_epilogue): Add line and file args.
3743         (dwarf2out_end_epilogue): Add line and file args.
3744         (vmsdbgout_after_prologue): Remove.
3745         * dwarf2out.c (dwarf2out_end_epilogue): Add line and file args.
3746         (dwarf2_debug_hooks): Update end_prologue.
3747         * dwarfout.c (dwarfout_end_epilogue): Add line and file args.
3748         (dwarfout_end_prologue): Add file arg.
3749         * final.c (vmsdbgout_after_prologue): Remove
3750         (final_end_function): Update end_epilogue call.
3751         (final_scan_insn): Update end_prologue call.
3752         * sdbout.c (sdbout_end_epilogue): Add line and file args.
3753         (sdbout_end_prologue): Add file arg.
3754         (sdb_debug_hooks): Update end_prologue.
3755         (sdb_begin_prologue): Update sdbout_end_prologue call.
3756         * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_end_prologue,
3757         vmsdbgout_end_function.
3758         (vmsdbgout_end_prologue): New function renamed from
3759         vmsdbgout_after_prologue. Call vmsdbgout_source_line.
3760         (vmsdbgout_end_function): New function.
3761         (vmsdbgout_end_epilogue): Add line and file args. Call
3762         vmsdbgout_source_line.
3763         (write_pclines): Write only valid line numbers.
3764         (write_srccorr): Don't write source correlation records if 0 lines.
3765         * xcoffout.c (xcoffout_end_epilogue): Add line and file args.
3767 2002-08-15  Steve Ellcey  <sje@cup.hp.com>
3769         * gcc/unwind.h (_Unwind_Ptr): Make 64 bits on IA64 HP-UX.
3770         (_Unwind_Internal_Ptr): 32 bit version for use in
3771         read_encoded_value_with_base.
3772         * gcc/unwind-pe.h (read_encoded_value_with_base): Use
3773         _Unwind_Internal_Ptr instead of _Unwind_Ptr in order to get the
3774         right size.
3776 2002-08-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3778         * loop.c (scan_loop, move_movables, count_one_set): Cast to avoid
3779         signed/unsigned warnings.
3781         * regclass.c (init_reg_sets_1, choose_hard_reg_mode,
3782         record_reg_classes): Likewise.
3784         * reload.c (reload_inner_reg_of_subreg, push_reload,
3785         find_reloads_address_1): Likewise.
3787 2002-08-15  David Edelsohn  <edelsohn@gnu.org>
3789         * rs6000.c (output_mi_thunk): Return to function section on
3790         TARGET_ELF.
3792         * rs6000-c.c (rs6000_cpu_cpp_builtins): Define __PPC405__ if PPC405.
3794 2002-08-15  Ulrich Weigand  <uweigand@de.ibm.com>
3796         * config/s390/s390.c (legitimize_address): Optimize loading
3797         of large displacements.
3799 2002-08-14  Douglas B Rupp  <rupp@gnat.com>
3801         * config/alpha/alpha-protos.h: Update.
3803         * config/alpha/alpha.c: (LINKAGE_SYMBOL_REF_P): New macro.
3804         (alpha_legitimate_address_p): Test LINKAGE_SYMBOL_REF_P.
3805         (alpha_linkage_symbol_p): New static function.
3806         (print_operand_address): Print linkage operand.
3808         (alpha_funcs_num, alpha_funcs_tree, alpha_links_tree): New static
3809         variables.
3810         (reloc_kind): New enum.
3811         (struct alpha_funcs): New struct.
3812         (struct alpha_links): Add reloc_kind field. Rename links_kind field.
3814         (alpha_need_linkage): Rewrite.
3815         (alpha_use_linkage): New global function.
3816         (alpha_write_linkage): Rewrite and make static.
3817         (alpha_write_one_linkage): Rewrite
3819         (alpha_start_function): Remove procedure descriptor output.
3820         (alpha_end_function): Write linkages at end of each function.
3822         * config/alpha/alpha.md (call_vms, call_value_vms): Rewrite.
3823         (call_vms_1, call_value_vms_1): Rewrite.
3825         * config/alpha/vms.h (ASM_FILE_END): Remove.
3827 2002-08-14  Richard Henderson  <rth@redhat.com>
3829         * ggc-page.c (RTL_SIZE): New.
3830         (extra_order_size_table): Add specializations for 2 and 10 rtl slots.
3831         * rtl.def (BARRIER, NOTE): Pad to 9 slots.
3833 2002-08-14  Richard Henderson  <rth@redhat.com>
3835         * calls.c: Include target.h.
3836         * Makefile.in (calls.o): Update.
3838         * config/alpha/alpha.c (alpha_end_function): Use targetm.binds_local_p.
3839         * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
3841 2002-08-14  Richard Henderson  <rth@redhat.com>
3843         * Makefile.in (LOOSE_WARN): Add -fno-common.
3844         * c-common.h (constant_string_class_name): Add missing extern.
3846 2002-08-15  Neil Booth  <neil@daikokuya.co.uk>
3848         PR preprocessor/7358
3849         * c-opts.c (check_deps_environment_vars): Ignore main file
3850         for SUNPRO_DEPENDENCIES.
3851         * cppfiles.c (stack_include_file): Ignore main file if
3852         appropriate.
3853         * cpplib.h (struct cpp_options): New member in deps.
3854         * doc/cppenv.texi: Update.
3856 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
3858         PR preprocessor/7526
3859         * cpplib.c (run_directive): Kludge so _Pragma dependency works.
3861 2002-08-14  Nathan Sidwell  <nathan@codesourcery.com>
3863         * doc/invoke.texi (-a): Remove documentation.
3864         (-fprofile-arcs): Remove reference to -a, -ax options.
3865         * doc/gcov.texi (Gcov Data Files): Data might be merged.
3867 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
3869         Fix PR/7566
3870         * c-semantics.c (genrtl_case_label): Don't (mis)use
3871         warning_with_decl.
3873 2002-08-14  Dale Johannesen  <dalej@apple.com>
3875         * explow.c (emit_stack_restore):  Emit memory clobbers
3876         preceding the stack pop, to prevent the scheduler from
3877         moving refs to variable arrays below this pop.
3878         * reload1.c (reload):  Preserve these clobbers for sched2.
3879         * doc/rtl.texi:  Document clobber (mem:BLK (scratch)).
3881 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
3883         * c-opts.c (c_common_post_options): Correct test.
3885 2002-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3887         * m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Fix incorrect argument
3888         order in call to fprintf.
3890 2002-08-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3892         * config/sparc/sol2.h (SUBTARGET_EXTRA_SPECS): Define.
3894 2002-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
3896         * reload.c (find_reloads): Handle constraint letters marked by
3897         EXTRA_ADDRESS_CONSTRAINT and EXTRA_MEMORY_CONSTRAINT.
3898         (alternative_allows_memconst): Likewise.
3899         * reload1.c (maybe_fix_stack_asms): Likewise.
3900         * recog.c (asm_operand_ok, preprocess_constraints,
3901         constrain_operands): Likewise.
3902         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
3903         * local-alloc.c (block_alloc, requires_inout): Likewise.
3904         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
3906         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Provide a default.
3907         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
3908         * doc/tm.texi: Document these two new target macros.
3910         * config/s390/s390.c (s390_expand_plus_operand): Accept already
3911         valid operands.
3912         (q_constraint): New function.
3913         config/s390/s390-protos.h (q_constraint): Declare it.
3914         config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
3915         (EXTRA_MEMORY_CONSTRAINT): New macro.
3917         * config/s390/s390.md: Throughout the machine description,
3918         replace all instances of the constraint combinations 'Qo'
3919         or 'oQ' with simply 'Q'.
3921 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
3923         * config/m68hc11/m68hc11.h (LINK_SPEC): Support -mrelax.
3924         * config/m68hc11/t-m68hc11-gas (LIBGCC2_DEBUG_CFLAGS): Can use -g now.
3925         (LIBGCC2_CFLAGS): Compile with -mrelax.
3927 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
3929         * doc/invoke.texi: Document -minmax for 68HC12.
3931         * config/m68hc11/m68hc11.md ("umaxqi3"): Use TARGET_MIN_MAX.
3932         ("uminqi3"): Likewise.
3933         ("uminhi3", "umaxhi3"): Likewise.
3935         * config/m68hc11/m68hc11.h (MASK_MIN_MAX): Define.
3936         (TARGET_MIN_MAX): Define.
3937         (TARGET_SWITCHES): New option -minmax/-mnominmax.
3939 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
3941         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build __far_trampoline.
3942         (MULTILIB_OPTIONS): Must also generate for -mlong-calls.
3944         * config/m68hc11/larith.asm: Put a mode for ELF ABI flags.
3945         (ret, declare, farsym): New gas macros.
3946         (__premain, exit, abort, _cleanup, memcpy, memset, ___adddi3,
3947         ___subdi3, ___notdi2, __mulhi32, __mulsi3): Use them to use 'rtc'
3948         and declare the symbol far when compiled with -mlong-calls.
3949         (__far_trampoline): New for 68HC12 trampoline code to invoke a
3950         far handler using jsr/bsr.
3952         * config/m68hc11/m68hc11-crt0.S: Put a mode for ELF ABI flags.
3953         (jsr): New macro to transform a 'jsr' into a 'call'.
3955 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
3957         * doc/invoke.texi: Document -mlong-calls for 68HC12.
3959         * config/m68hc11/m68hc11.h (CPP_SPEC): Pass -D__USE_RTC__ when
3960         -mlong-calls is specified.
3961         (ASM_DECLARE_FUNCTION_NAME): Define to generate .far and .interrupt
3962         assembler directives.
3963         (TARGET_LONG_CALL, MASK_LONG_CALL): Declare.
3964         (TARGET_SWITCHES): Add -mlong-calls options.
3965         (current_function_far): Declare.
3967         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset): Take
3968         into account the page register saved on the stack.
3969         (m68hc11_override_options): Take into account -mlong-calls option.
3970         (m68hc11_asm_file_start): Put a mode for the ELF flags ABI.
3972         * config/m68hc11/m68hc11.md ("*return_32bit"): Return rtc
3973         if the function is going to be in 68HC12 banked memory (-mlong-calls).
3974         ("*return_16bit"): Likewise.
3975         ("*return_void"): Likewise.
3976         ("call", "call_value"): Use call for a far function call.
3978 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
3980         * toplev.c (parse_options_and_default_flags): Don't call
3981         post_options here.
3982         (general_init): Initialize GC, pools and tree hash here,
3983         instead of lang_independent_init.
3984         (lang_independent_init): Rename backend_init.
3985         (do_compile): Call post_options hook; exit early if there
3986         have been errors after switch processing.
3987         (toplev_main): Update.
3989 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
3991         * c-pretty-print.h: Guard against multiple inclusion.
3992         Robustify macros.
3993         (pp_c_attributes): Declare.
3994         * c-pretty-print.c (pp_c_attributes): New function.
3996 2002-08-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3998         * m68k.c (m68k_output_function_prologue,
3999         m68k_output_function_epilogue): Delete versions for DPX2/MOTOROLA
4000         and NEWS/MOTOROLA.
4001         * genattrtab.c: Remove dpx2 comment.
4002         * libgcc2.c (__enable_execute_stack): Delete versions for
4003         NeXT/__MACH__, __convex__, __sysV88__, __pyr__ and
4004         sony_news/SYSTYPE_BSD.
4005         * longlong.h: Delete code for __a29k__, _AM29K, __clipper__,
4006         __gmicro__, __i860__, __NeXT__ and __pyr__.
4007         * rtl.h: Remove convex comment.
4008         * varasm.c: Likewise.
4010 2002-08-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4012         * c-opts.c (lang_flags): Const-ify.
4013         * ra-build.c (undef_table): Likewise.
4014         * ra.c (eliminables): Likewise.
4016 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
4018         * tree.h: Guard against multiple inclusion.
4020 2002-08-14  Hans-Peter Nilsson  <hp@bitrange.com>
4022         * reload1.c (reload_cse_simplify): Before checking
4023         REG_FUNCTION_VALUE_P, check REG_P.
4025 2002-08-13  Geoffrey Keating  <geoffk@redhat.com>
4027         * Makefile.in (attribs.o): Remove $(OBSTACK_H) dependency.
4029 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
4031         * c-opts.c (c_common_init_options): Extra braces needed.
4033 Tue Aug 13 17:40:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
4035         * sh.c (sh_init_builtins): Add PARAMS to declaration.
4036         (sh_media_init_builtins, sh_expand_builtin): Likewise.
4037         (sh_expand_unop_v2sf): Use PARAMS for variable declaration.
4038         (sh_expand_binop_v2sf): Likewise.
4039         * sh-protos.h (sh_expand_unop_v2sf): Add PARAMS to declaration.
4040         (sh_expand_binop_v2sf, sh_cfun_interrupt_handler_p): Likewise.
4041         (sh_initialize_trampoline): Likewise.
4043 2002-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
4045         * s390-modes.def [CCL1, CCL2, CCT1, CCT2, CCT3, CCUR, CCSR]: Declare
4046         new condition code modes.
4047         s390.c (s390_match_ccmode_set): Handle those new CC modes.
4048         (s390_select_ccmode): Likewise.
4049         (s390_branch_condition_mask): Likewise.
4051         * s390-protos.h (s390_tm_ccmode): Declare.
4052         s390.c (s390_tm_ccmode): New function.
4053         (s390_match_ccmode): Allow VOIDmode as REQ_MODE.
4055         * s390.md ("*cmpdi_tm2"): Rename to "*tmdi_ext".
4056         ("*cmpsi_tm2"): Rename to "*tmsi_ext".
4057         ("*cmpqi_tm2"): Rename to "*tmqi_ext".
4059         ("*cmpdi_tm_reg", "*cmpdi_tm_mem", "*cmpsi_tm_reg", "*cmpsi_tm_mem",
4060         "*cmphi_tm_sub","*cmphi_cct_0",  "*cmpqi_tm", "*cmpqi_tm_sub",
4061         "*cmpqi_cct_0", "*tm_0"): Remove, replace by ...
4062         ("*tmdi_reg", "*tmsi_reg", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem",
4063         "*tmqi_mem", "*tmhi_full", "*tmqi_full"): ... these new patterns.
4065         ("*ltgr", "*cmpdi_ccs_0_64", "*cmpdi_ccs_0_31", "*ltr", "*icm15",
4066         "*icm15_cconly", "*cmpsi_ccs_0", "*icm3", "*cmphi_ccs_0", "*icm1",
4067         "*cmpqi_ccs_0"): Remove, replace by ...
4068         ("*tstdi_sign", "*tstdi", "*tstdi_cconly", "*tstdi_cconly_31",
4069         "*tstsi", "*tstsi_cconly", "*tstsi_cconly2", "*tsthi", "*tsthi_cconly",
4070         "*tstqi", "*tstqi_cconly"): ... these new patterns.
4072         ("*cmpsidi_ccs"): Remove, replace by ...
4073         ("*cmpsi_ccs_sign"): ... this new pattern.
4074         ("*cmpdi_ccs_sign", "*cmpdi_ccu_zero"): New patterns.
4076         ("*cmpqi_ccu_0", "*cmpqi_ccu_immed"): Remove, replace by ...
4077         ("*cli"): ... this new pattern.
4079         ("*adddi3_sign", "*adddi3_zero_cc", "*adddi3_zero_cconly",
4080         "*adddi3_zero", "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2"):
4081         New patterns.
4082         ("adddi3_64"): Rename to "*adddi3_64".
4083         ("adddi3_31"): Replace by insn and splitter "*adddi3_31".
4084         ("adddi3"): Adapt expander.
4086         ("*addsi3_cc"): Allow "general_operand" for operand 2.
4087         ("*addsi3_carry1_cc", "*addsi3_carry1_cconly",
4088         "*addsi3_carry2_cc", "*addsi3_carry2_cconly"): New patterns.
4090         ("addhi3", "addqi3"): Remove, replace by ...
4091         ("*addsi3_sign", "*addsi3_sub"): ... these new patterns.
4093         ("*subdi3_sign", "*subdi3_zero_cc", "*subdi3_zero_cconly",
4094         "*subdi3_zero", "*subdi3_cc", "*subdi3_cconly"): New patterns.
4095         ("subdi3"): Replace by insn and splitter "*subdi3_31".
4096         ("subdi3"): New expander.
4098         ("*subsi3_borrow_cc", "*subsi3_borrow_cconly"): New patterns.
4100         ("subhi3", "subqi3"): Remove, replace by ...
4101         ("*subsi3_sign", "*subsi3_sub"): ... these new patterns.
4103         ("*muldi3_sign"): New pattern.
4104         ("muldi3"): Do not clobber CC.
4105         ("mulsi3"): Likewise.
4106         ("mulsi_6432"): Likewise.
4108 2002-08-13  Denis Chertykov  <denisc@overta.ru>
4110         * config/avr/avr.md: Call CC_STATUS_INIT in all peepnoles
4111         which can change CC0.
4113 Tue Aug 13 14:49:20 2002  J"orn Rennecke <joern.rennecke@superh.com>
4115         * gcse.c (adjust_libcall_notes): New function.
4116         (do_local_cprop): Use it.  Add fourth parameter.  Changed caller.
4118 2002-08-13  Nathan Sidwell  <nathan@codesourcery.com>
4120         * libgcc2.c (L_bb): Remove unneeded #includes.
4121         (__global_counters, __gthreads_active): Remove unused globals.
4122         (__bb_exit_func): Merge counts into files rather than appending.
4123         * Makefile.in (INTERNAL_CFLAGS): Move COVERAGE_FLAGS from here ...
4124         (ALL_CFLAGS): ... to here.
4126 2002-08-13  Denis Chertykov  <denisc@overta.ru>
4128         * config/ip2k/ip2k.c (commands_in_file): Variable removed.
4129         (function_epilogue): Don't calculate function size.
4130         (ip2k_set_compare): Don't use lookup_const_double.
4131         (asm_file_start): Initialization of commands_in_file removed.
4132         (asm_file_end): Output of commands_in_file removed.
4134         * config/ip2k/ip2k.c (CPP_PREDEFINES): Remove definition of
4135         __INT_MAX__.
4137 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
4139         * c-opts.c (c_common_init_options): Check option array is
4140         sorted if checking enabled.
4142 2002-08-13  Gabriel Dos Reis  <gdr@nerim.net>
4144         * c-pretty-print.c: #include "c-tree.h".
4145         (pp_c_simple_type_specifier): Tweak.
4146         (pp_c_storage_class_specifier): New.
4147         (pp_c_function_specifier): Likewise.
4148         (pp_c_declaration_specifiers): Likewise.
4149         (pp_c_init_declarator): Likewise.
4150         (pp_c_declaration): Likewise.
4151         (pp_c_direct_declarator): Stub.
4152         (pp_c_declarator): Likewise.
4153         (pp_c_parameter_declaration): Likewise.
4155 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
4157         * c-opts.c (deps_seen, deps_file, deferred_count, deferred_size,
4158         handle_deferred_opts, sanitize_cpp_opts, defer_opt,
4159         struct deferred_opt): New.
4160         (COMMAND_LINE_OPTIONS): Add -M*.
4161         (missing_arg): Update.
4162         (c_common_decode_option): Handle -M*.
4163         (c_common_post_options): Handle -M*.  Use sanitize_cpp_opts;
4164         don't call cpp_post_options.
4165         (c_common_finish, check_deps_environment_vars): Update.
4166         * cppfiles.c (stack_include_file, handle_missing_header): Update.
4167         * cpphash.h (CPP_PRINT_DEPS): Remove.
4168         * cppinit.c: Don't include version.h.
4169         (cpp_create_reader): Don't call deps_init.  Initialize
4170         warn_long_long.
4171         (cpp_read_main_file): Init deps if necessary.
4172         (cpp_destroy): Conditionally free deps.
4173         (cpp_finish): Update.
4174         (no_tgt): Remove.
4175         (COMMAND_LINE_OPTIONS, cpp_handle_option): Remove -M*.
4176         (cpp_post_options): Rename post_options.
4177         * cpplib.h (struct cpp_options): Remove some dependency options;
4178         move others to a new structure.
4179         (cpp_post_options): Remove.
4180         (cpp_finish): Comment.
4181         * fix-header.c (read_scan_file): Don't call cpp_post_options.
4183 2002-08-12  Hans-Peter Nilsson  <hp@bitrange.com>
4185         * config/mmix/mmix.md (define_constants): Add MMIX_rR_REGNUM.
4186         ("divdi3", "*divdi3_nonknuth", "moddi3", "*moddi3_nonknuth"): Mark
4187         MMIX_rR_REGNUM as clobbered.
4188         * config/mmix/mmix.h (MMIX_REMAINDER_REGNUM): Use MMIX_rR_REGNUM.
4190 2002-08-12  Gabriel Dos Reis  <gdr@nerim.net>
4192         * diagnostic.h (output_formatted_scalar): Rename from
4193         output_formatted_integer.
4194         * diagnostic.def: Add DK_DEBUG.
4195         * diagnostic.c (output_decimal): Adjust.
4196         (output_long_decimal): Likewise.
4197         (output_unsigned_decimal): Likewise.
4198         (output_octal): Likewise.
4199         (output_long_octal): Likewise.
4200         (output_hexadecimal): Likewise.
4201         (output_long_hexadecimal): Likewise.
4202         * c-pretty-print.c (pp_c_type_specifier): New function.
4203         (pp_c_specifier_qualifier_list): Likewise.
4204         (pp_c_abstract_declarator): Likewise.
4205         (pp_c_char): Replace pp_format_integer with pp_format_scalar.
4207 2002-08-12  David Edelsohn  <edelsohn@gnu.org>
4209         * doc/trouble.texi (Disappointments): Add static constructor and
4210         destructor dependency information for AIX.
4212 2002-08-12  Neil Booth  <neil@daikokuya.co.uk>
4214         * cpphash.h (struct printer): New from cppmain.c.
4215         (cpp_reader): New member.
4216         * cppmain.c (struct printer): Move to cpphash.h.
4217         (options, print): Remove.
4218         (account_for_newlines, print_line, maybe_print_line,
4219         cpp_preprocess_file, setup_callbacks, scan_translation_unit,
4220         scan_translation_unit_trad, cb_line_change, cb_ident,
4221         cb_define, cb_undef, cb_include, cb_file_change, dump_macro,
4222         cb_def_pragma): Make reentrant.
4224 2002-08-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4226         * real.c (ieee_64): Always define.
4227         (ieee_113): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
4228         (dec_h): Not used yet, hide it.
4229         (emdnorm): Mark parameter in ATTRIBUTE_UNUSED.  Guard label with
4230         macro controlling use.
4231         (TFbignan, TFlittlenan): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
4233 Mon Aug 12 12:48:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
4235         * i386.md (tablejump): Sign extend the operand.
4236         * i386.c (classify_argument): Fix missed case from previous patch.
4238 2002-08-12  Neil Booth  <neil@daikokuya.co.uk>
4240         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, c_common_init): Move
4241         to c-copts.c.
4242         (warn_multichar): Die.
4243         (cb_register_builtins): Export.
4244         * c-common.h (warn_multichar, preprocess_file): Remove.
4245         (cb_register_builtins): New.
4246         * c-lang.c (c_init): Remove.
4247         (LANG_HOOKS_INIT): Use c_objc_common_init.
4248         * c-lex.c (init_c_lex): Don't canonicalize filename.
4249         * c-opts.c (in_fname, STDC_0_IN_SYSTEM_HEADERS): New.
4250         (preprocess_file): Make static.  Update for cpplib.
4251         (c_common_decode_option): Remove warn_multichar.  Use in_fname.
4252         (c_common_post_options): Set some cpp options here.
4253         (c_common_init): Move from c-common.c.
4254         * cppinit.c (cpp_post_options): Don't canonicalize in_fname.
4255         * cpplib.h (struct cpp_options): Remove in_fname.
4256         (cpp_preprocess_file): Update.
4257         * cppmain.c (cpp_preprocess_file): Update for new prototypes.
4259 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4261         * config.gcc (mips*-*-netbsd*): Include ${tm_file}.
4263 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4265         * i370.h (TARGET_CPU_CPP_BUILTINS): Remove spurious trailing
4266         backslash in comment preceeding macro definition.
4267         * i370/linux.h (TARGET_OS_CPP_BUILTINS): Likewise.
4268         * i370/mvs.h (TARGET_OS_CPP_BUILTINS): Likewise.
4269         * i370/oe.h (TARGET_OS_CPP_BUILTINS): Likewise.
4271 2002-08-12  Hans-Peter Nilsson  <hp@bitrange.com>
4273         * expr.c (store_expr): In condition for checking if value is
4274         generated in TARGET, move call to expr_size last.
4276 2002-08-11  Neil Booth  <neil@daikokuya.co.uk>
4278         * c-common.c (c_common_init): Call preprocess_file instead.
4279         (c_common_finish): Move to c-opts.c.
4280         * c-common.h (preprocess_file): new.
4281         * c-opts.c (out_fname, out_stream, deps_append, preprocess_file,
4282         check_deps_environment_vars, c_common_finish): New.
4283         (c_common_decode_option): Update for out_fname and dependencies.
4284         * cppinit.c (init_dependency_output, output_deps): Remove.
4285         (cpp_destroy): Update prototype.
4286         (cpp_add_dependency_target): New.
4287         (cpp_read_main_file): Don't overlay a buffer.
4288         (cpp_finish): Take a deps output stream and write deps to it.
4289         Return the error count.
4290         (cpp_post_options): Don't canonicalize out_fname, or do anything
4291         with dependencies.
4292         * cpplib.h (struct cpp_options): Remove out_fname and
4293         preprocess_only.
4294         (cpp_add_dependency_target): New.
4295         (cpp_destroy, cpp_finish, cpp_preprocess_file): Update.
4296         * cppmain.c (cpp_preprocess_file): Update prototype.  Don't
4297         set preprocess_only.  Don't handle the output stream directly.
4299 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4301         * dsp16xx.c (print_operand): Fix format specifier.
4302         * dsp16xx.md: Avoid automatic aggregate initialization.
4303         * frv.h (REG_CLASS_FROM_LETTER): Avoid char as array index.
4304         * h8300.c (emit_a_rotate, h8300_adjust_insn_length): Avoid U
4305         integer constant modifier.
4306         * ip2k.c (ip2k_set_compare): Avoid signed/unsigned warning.
4307         * mmix-protos.h (mmix_use_simple_return): Move outside TREE_CODE
4308         guards.
4309         * sh/netbsd-elf.h (FUNCTION_PROFILER): Fix format specifier.
4310         * v850.c (v850_select_section): Mark parameter with
4311         ATTRIBUTE_UNUSED.
4312         * global.c (global_alloc): Const-ify.
4313         * ra-colorize.c (hardregset_to_string): Fix format specifier.
4315 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4317         * darwin-c.c (darwin_pragma_options): Const-ify.
4318         * darwin.c (machopic_non_lazy_ptr_name,
4319         machopic_validate_stub_or_non_lazy_ptr): Likewise.
4320         (machopic_indirect_data_reference): Wrap variables in macros
4321         controlling their use.
4322         (machopic_finish, update_non_lazy_ptrs, update_stubs): Const-ify.
4323         (machopic_select_section): Use parentheses around && within ||.
4324         * i386/darwin.h (ASM_OUTPUT_ALIGN): Avoid ambiguous-else.
4326 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4328         * ip2k.c (mdr_resequence_xy_yx, mdr_propagate_reg_equivs,
4329         mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
4330         ip2k_adjust_stack_ref, mdr_try_move_pushes, mdr_try_propagate_clr,
4331         ip2k_xexp_not_uses_reg_for_mem, mdr_try_propagate_move,
4332         mdr_try_remove_redundant_insns, track_w_reload,
4333         mdr_try_wreg_elim): Make function static to match prototype.
4334         * mmix.c (mmix_target_asm_function_epilogue): Likewise.  Mark
4335         parameter with ATTRIBUTE_UNUSED.
4337 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4339         * arc.c (arc_init): Don't use ISO C style function definitions.
4340         * arm.c (count_insns_for_constant, thumb_far_jump_used_p,
4341         arm_get_strip_length, arm_strip_name_encoding): Likewise.
4342         * avr.h (progmem_section): Likewise.
4343         * h8300.c h8300_asm_insn_count): Likewise.
4344         * m32r.c (init_idents): Likewise.
4345         * s390.c (s390_split_branches, s390_chunkify_pool): Likewise.
4346         * sh.c (sh_cfun_interrupt_handler_p): Likewise.
4347         * xtensa.c (xtensa_build_va_list): Likewise.
4349 2002-08-11  Neil Booth  <neil@daikokuya.co.uk>
4351         * c-common.h (enum c_language_kind): Emphasize that clk_c is 0.
4352         * c-opts.c (parse_option): Rename find_opt.
4353         (set_std_c99): New function.
4354         (COMMAND_LINE_OPTIONS): Handle -remap and -o.  Remove OPT_std_bad.
4355         (missing_arg): Remove OPT_std_bad.  Handle -o.
4356         (c_common_decode_option): Handle input and output file names,
4357         -o and -remap.  Clean up -std= handling.
4358         * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_o and OPT_remap.
4359         (cpp_handle_option): Similarly.  Don't handle filenames.
4361 Sun Aug 11 14:43:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
4363         * i386.c (classify_argument): Fix computing of field's offsets.
4365 2002-08-11  Andreas Jaeger  <aj@suse.de>
4367         PR target/7531:
4368         * doc/invoke.texi (i386 and x86-64 Options): Document -mcmodel.
4370 2002-08-10  Ziemowit Laski  <zlaski@apple.com>
4372         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Replace
4373         reference to clk_objective_c with flag_objc.
4374         * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS):
4375         Likewise.
4376         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Likewise.
4378 2002-08-10  Neil Booth  <neil@daikokuya.co.uk>
4380         * c-opts.c (set_std_cxx98, set_std_c89): New.
4381         (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
4382         (c_common_decode_option): Handle new switches from cppinit.c.
4383         Add -std=gnu++98.
4384         * cppinit.c (set_lang): Rename cpp_set_lang.  Export.
4385         (no_arg, no_num): Remove.
4386         (COMMAND_LINE_OPTIONS): Move more to c-opts.c.  Drop all lang-
4387         switches apart from -lang-objc and lang-asm.
4388         (cpp_handle_option): Similarly.
4389         * cpplib.h (cpp_set_lang): New.
4390         * doc/cppopts.texi, doc/invoke.texi: Document -std=c++98,
4391         -std=gnu++98.
4392         * objc/lang-specs.h: Remove -ansi.
4394 Sat Aug 10 19:59:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
4395                                Graham Stott
4397         * cfg.c (redirect_edge_succ_nodup): Avoid overflows due to roundoff
4398         errors.
4400 2002-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4402         * emit-rtl.c (emit_jump_insn_before, emit_call_insn_before,
4403         emit_jump_insn): Fix uninitialized variable.
4404         * gcov.c (init_line_info): Likewise.
4405         * genautomata.c (transform_3): Add braces around ambiguous
4406         else.
4407         * ifcvt.c (cond_exec_process_insns): Mark parameter with
4408         ATTRIBUTE_UNUSED.
4409         * ra-build.c (parts_to_webs_1): Fix uninitialized variable.
4410         * regrename.c (copyprop_hardreg_forward): Fix uninitialized
4411         variable.
4413         * gengtype.c (write_gc_structure_fields): Avoid signed/unsigned
4414         warnings in output files.
4416 2002-08-09  Ziemowit Laski  <zlaski@apple.com>
4418         * c-common.c (flag_objc): New.
4419         * c-common.h (c_language_kind): Get rid of clk_objective_c
4420         enum value.
4421         (flag_objc): New extern declaration.
4422         * c-decl.c (implicitly_declare): Call objc_check_decl
4423         instead of maybe_objc_check_decl.
4424         (finish_decl): Likewise.
4425         (grokfield): Likewise.
4426         (finish_struct): Likewise.
4427         * c-lang.c (maybe_objc_check_decl): Rename to objc_check_decl.
4428         (maybe_objc_comptypes): Rename to objc_comptypes.
4429         (maybe_building_objc_message_expr): Rename to
4430         objc_message_selector.
4431         * c-lex.c (lex_charconst): Remove uses of clk_objective_c,
4432         replace with flag_objc as needed.
4433         * c-opts.c (c_common_init_options): Likewise.
4434         (c_common_decode_option): Likewise.
4435         * c-parse.in (init_reswords): Likewise.
4436         * c-tree.h (maybe_objc_check_decl): Rename to objc_check_decl.
4437         (maybe_objc_comptypes): Rename to objc_comptypes.
4438         (maybe_building_objc_message_expr): Rename to
4439         objc_message_selector.
4440         * c-typeck.c (comptypes): Call objc_comptypes instead of
4441         maybe_objc_comptypes, and/or objc_message_selector instead of
4442         maybe_building_objc_message_expr.
4443         (comp_target_types): Likewise.
4444         (convert_for_assignment): Likewise.
4445         (warn_for_assignment): Likewise.
4446         * cppinit.c (init_builtins): Set __OBJC__ manifest constant
4447         independently of those for other languages.
4448         * objc/objc-act.c (maybe_objc_comptypes): Delete.
4449         (maybe_objc_check_decl): Delete.
4450         (maybe_building_objc_message_expr): Rename to
4451         objc_message_selector.
4452         * objc/objc-lang.c (objc_init_options): Use clk_c instead of
4453         clk_objective_c; set flag_objc flag.
4455 2002-08-09  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
4457         * ifcvt.c (find_if_case_2): Test correct basic block for size.
4459 2002-08-09  Dale Johannesen  <dalej@apple.com>
4461         * config/rs6000/rs6000.md: Add sibcall patterns.
4462         * config/rs6000/rs6000.h (FUNCTION_OK_FOR_SIBCALL):  Define.
4463         * config/rs6000/rs6000.c (rs6000_ra_ever_killed):
4464         Rewritten to handle sibcalls.
4465         * config/rs6000/rs6000.c (function_ok_for_sibcall):  New.
4466         * config/rs6000/rs6000-protos.h (function_ok_for_sibcall):  New.
4468 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
4470         * profile.c (da_file_name): New static var.
4471         (init_branch_prob): Initialize it.
4472         (end_branch_prob): Remove da file.
4474         * Makefile.in (stage1_build): Pass empty COVERAGE_FLAGS.
4475         * configure.in (coverage_flags): Default to nothing.
4476         * configure: Rebuilt.
4478 2002-08-09  Neil Booth  <neil@daikokuya.co.uk>
4480         * Makefile.in (c-opts.o): Update
4481         * c-opts.c: Include intl.h.
4482         (print_help): Move from cppinit.c.  Remove unused options.
4483         (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
4484         (missing_arg): Complain for switches without an argument.
4485         (c_common_decode_option): Reject missing joined arguments.
4486         Handle new switches from cppinit.c.
4487         * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
4488         (cpp_handle_option): Similarly.
4489         (print_help): Moved to c-opts.c.
4490         * cpplib.h (struct cpp_options): Remove help_only.
4491         * gcc.c (cpp_unique_options): Remove -$.
4492         * doc/cppopts.texi: Undocument -h.
4494 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
4496         * config/i386/i386.c (legitimate_constant_p): UNSPEC_TP is not
4497         legitimate constant.
4498         (legitimate_pic_operand_p): Neither pic operand.
4499         (legitimate_address_p): But legitimate address.
4500         (get_thread_pointer): Generate MEM/u instead of CONST around
4501         UNSPEC_TP.
4502         (print_operand): Remove printing of UNSPEC_TP.
4503         (print_operand_address): And print it here.
4505 2002-08-08  Devang Patel  <dpatel@apple.com>
4507         * objc/objc-act.c (build_selector_translation_table): Issue warning,
4508         when  -Wselector is used,if method for which selector is being
4509         created does not exist.
4511 2002-08-08  Stephen Clarke <stephen.clarke@superh.com>
4513         * config/sh/sh.c (prepare_move_operands): Only call
4514         target_reg_operand if TARGET_SHMEDIA.
4516 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
4518         * config/rs6000/rs6000.h, config/rs6000/aix.h,
4519         config/rs6000/darwin.h, config/rs6000/linux64.h: Revert last
4520         two patches.
4521         * config/rs6000/sysv4.h: Likewise, remove #undef ADJUST_FIELD_ALIGN.
4523 2002-08-08  Lars Brinkhoff  <lars@nocrew.org>
4524             Richard Henderson  <rth@redhat.com>
4526         * emit-rtl.c (gen_rtx_REG): After reload, only return
4527         frame_pointer_rtx or hard_frame_pointer_rtx if frame_pointer_needed.
4529 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
4531         * config/rs6000/rs6000-protos.h (rs6000_field_alignment): Remove.
4532         * config/rs6000/rs6000.c (rs6000_field_alignment): Move...
4533         * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): ...inline into the
4534         macro.
4536 2002-08-08  Adam Nemet  <anemet@lnxw.com>
4538         * config/arm/arm.c (thumb_unexpanded_epilogue): Stack the PIC
4539         register.
4540         (thumb_expand_prologue): Likewise.
4541         (thumb_output_function_prologue): Likewise.
4542         * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Account for
4543         the additional push of the PIC register.
4545 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
4547         * configure.in (enable_coverage): New enable switch.
4548         * configure: Rebuilt.
4549         * Makefile.in (COVERAGE_FLAGS, coverageexts): New variables.
4550         (INTERNAL_CFLAGS): Append COVERAGE_FLAGS.
4551         (ALL_FLAGS): Reorder so INTERNAL_CFLAGS comes after CFLAGS.
4552         (mostlyclean): Remove coverage files.
4553         * doc/install.texi: Document enable_coverage.
4555         * cp/Make-lang.in (c++.mostlyclean): Remove coverage files.
4556         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
4557         * f/Make-lang.in (f.mostlyclean): Remove coverage files.
4558         * java/Make-lang.in (java.mostlyclean): Remove coverage files.
4559         * objc/Make-lang.in (objc.mostlyclean): Remove coverage files.
4560         * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage
4561         files.
4563 2002-08-08  Neil Booth  <neil@daikokuya.co.uk>
4565         * c-opts.c (cpp_opts): New.
4566         (COMMAND_LINE_OPTIONS): Add switches from cppinit.c.
4567         (c_common_decode_options): Handle cpplib switches.
4568         (c_common_init_options): Set cpp_opts.
4569         * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
4570         (cpp_handle_option): Similarly.
4572 2002-08-08  David Edelsohn  <edelsohn@gnu.org>
4574         * config/rs6000/aix.h (TARGET_ALTIVEC): Define to 0.
4575         (TARGET_ALTIVEC_ABI): Same.
4576         (TARGET_ALTIVEC_VRSAVE): Same.
4578         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Check
4579         icode not CODE_FOR_nothing.  Change switch to if.
4581 2002-08-08  Alan Modra  <amodra@bigpond.net.au>
4583         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Pass -mpower4 when cpu=power4.
4585 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
4587         * stor-layout.c (place_union_field): For bitfields if
4588         PCC_BITFIELD_TYPE_MATTERS and TYPE_USER_ALIGN, set record's
4589         TYPE_USER_ALIGN.
4591 2002-08-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4593         * pa.c (struct deferred_plabel): Constify name field.
4595 2002-08-07  Neil Booth  <neil@daikokuya.co.uk>
4597         * cppmacro.c (_cpp_builtin_macro_text): Remove unused variable.
4599 2002-08-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4601         * configure.in (PREFIX_INCLUDE_DIR): Don't define if prefix and
4602         local_prefix are the same.
4603         * configure: Rebuilt.
4605 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
4606             Richard Henderson  <rth@redhat.com>
4608         * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
4609         to type_align when PCC_BITFIELD_TYPE_MATTERS.  Only apply
4610         ADJUST_FIELD_ALIGN if not DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
4611         (place_field): Likewise.
4612         * config/i386/i386.c (x86_field_alignment): Don't check
4613         DECL_USER_ALIGN here.
4614         * config/rs6000/rs6000.c (rs6000_field_alignment): New.
4615         * config/rs6000/rs6000-protos.h (rs6000_field_alignment): New
4616         prototype.
4617         * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): Define.
4618         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Remove.
4619         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Remove.
4620         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Remove.
4621         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove.
4622         * doc/tm.texi (ADJUST_FIELD_ALIGN): Update description.
4624 2002-08-07  Neil Booth  <neil@daikokuya.co.uk>
4626         * Makefile.in (c-opts.o, c-common.o, C_AND_OBJC_OBJS): Update.
4627         * c-common.c: Don't include tree-inline.h.
4628         (c_common_init_options, c_common_post_options): Move to c-opts.c.
4629         * c-common.h (c_common_decode_option): New.
4630         * c-decl.c (c_decode_option): Remove.
4631         * c-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
4632         * c-opts.c: New file.
4633         * c-tree.h (c_decode_option): Remove.
4634         * doc/passes.texi: Update.
4635         * objc/objc-act.c (objc_decode_option): Remove.
4636         * objc/objc-act.h (objc_decode_option): Remove.
4637         * objc/ojbc-lang.c (LANG_HOOKS_DECODE_OPTION): Use
4638         c_common_decode_option.
4640 2002-08-07  Chris Demetriou  <cgd@broadcom.com>
4642         * config/mips/mips.md (sunlt_sf, suneq_sf, sunle_sf): Remove
4643         dependency on TARGET_DOUBLE_FLOAT.
4645 2002-08-07  Stephen Clarke <stephen.clarke@superh.com>
4647         * config/sh/lib1funcs.asm (GCC_shcompact_incoming_args): Don't
4648         overwrite callee-save registers.  Fix comment.
4650 2002-08-06  Chris Demetriou  <cgd@broadcom.com>
4652         * config/mips/mips.c (override_options): Set MASK_BRANCHLIKELY
4653         in target_flags based on ISA, if it was not set on the command
4654         line.  Warn if MASK_BRANCHLIKLEY is set but the ISA does not
4655         support Branch Likely instructions.
4656         * config/mips/mips.h (MASK_BRANCHLIKLEY): New macro.
4657         (TARGET_BRANCHLIKELY): Likewise.
4658         (TARGET_SWITCHES): Add -mbranch-likely and -mno-branch-likely.
4659         (GENERATE_BRANCHLIKELY): Use TARGET_BRANCHLIKELY rather than
4660         ISA_HAS_BRANCHLIKELY.
4661         (ISA_HAS_BRANCHLIKELY): Do not include MIPS16 check.
4662         * doc/invoke.texi: Document new MIPS -mbranch-likely and
4663         -mno-branch-likely options.
4665 2002-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4667         * ip2k.c (ip2k_set_compare): Add missing iteration variable.
4669         * Makefile.in (dummy-conditions.o): Depend on $(HCONFIG_H) not
4670         $(GCONFIG_H).
4672 2002-08-06  Aldy Hernandez  <aldyh@redhat.com>
4674         * c-decl.c (duplicate_decls): Error out for incompatible TLS
4675         declarations.
4677         * testsuite/gcc.dg/tls/diag-3.c: New.
4679 2002-08-06  Dale Johannesen  <dalej@apple.com>
4681         * c-common.c (fname_decl): Use line number 0 for
4682         __func__, to avoid confusing debuggers.
4684 2002-08-06  Nathan Sidwell  <nathan@codesourcery.com>
4686         * gcov.c: Tidy.
4687         (struct line_info, struct coverage): New structures.
4688         (gcov_file_name, gcov_file): Remove globals.
4689         (output_data): Take source file parameter. Fix memory leak. Break
4690         up into ...
4691         (init_line_info, output_line_info, make_gcov_file_name,
4692         accumulate_branch_counts): ... here.
4693         (calculate_branch_probs, function_summary): Adjust.
4694         (main): Adjust.
4695         (function_*): Remove global variables.
4697 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
4699         * dwarf2out.c: Remove unused macros.
4701 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
4703         * function.c (TRAMPOLINE_ALIGNMENT): Always defined.
4705 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
4707         * cppinit.c (struct lang_flags): Rename trigraphs std.
4708         (set_lang): Update.
4709         * cpplib.h (struct cpp_options): New member std.
4710         * cppmacro.c (_cpp_builtin_macro_text): Use std.
4711         (collect_args): Flag whether to swallow a possible future
4712         comma pasted with varargs.
4713         (replace_args): Use this flag.
4714         * doc/cpp.texi: Update varargs extension documentation.
4716 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
4718         * config/i386/mmintrin.h (__m64): Make the type 64-bit aligned.
4720 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
4722         * config/i386/i386.c (x86_field_alignment): Apply min for all MODE_INT
4723         and MODE_CLASS_INT modes.
4725 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
4727         * config.gcc (*-*-linux*): Default to --enable-threads=posix if no
4728         --{enable,disable}-threads is given to configure.
4729         (alpha*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux*,
4730         x86_64-*-linux*, ia64*-*-linux*, m68k-*-linux*, mips*-*-linux*,
4731         powerpc-*-linux-gnualtivec*, powerpc-*-linux*, s390-*-linux*,
4732         s390x-*-linux*, sh-*-linux*, sparc-*-linux*, sparc64-*-linux*):
4733         Remove thread_file setting here.
4735 2002-08-06  David Edelsohn  <edelsohn@gnu.org>
4737         * doc/install.texi (Binaries): Update Bull Freeware URL.
4739 2002-08-06  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4741         * doc/gcc.texi (Top): Rename Index to Keyword Index.
4743 2002-08-05  Nathan Sidwell  <nathan@codesourcery.com>
4745         * gcov.c (output_data): Round to % to nearest, tweak formatting.
4747 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
4749         * fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one
4750         of the operands into MINUS_EXPR if code is PLUS_EXPR.
4752 2002-08-05  Douglas B Rupp  <rupp@gnat.com>
4754         * config.gcc (i[34567]86-*-interix*): Replace interix.o with winnt.o
4755         * config/i386/i386-interix.h (TARGET_NOP_FUN_DLLIMPORT,
4756         drectve_section): Define.
4757         * config/i386/t-interix: Replace interix.o rule with winnt.o.
4758         * config/i386/interix.c: Remove.
4760 2002-08-05  Geoffrey Keating  <geoffk@redhat.com>
4762         * attribs.c: Don't include obstack.h.
4763         * builtins.c: Likewise.
4764         * cfganal.c: Likewise.
4765         * cfgbuild.c: Likewise.
4766         * cfgcleanup.c: Likewise.
4767         * emit-rtl.c: Likewise.
4768         * loop.c: Likewise.
4769         * stmt.c: Likewise.
4771         * Makefile.in (s-gtype): Re-add dependency on $(GTFILES).
4773 2002-08-05  Gabriel Dos Reis  <gdr@nerim.net>
4775         * doc/c-tree.texi (Expression trees): Document VA_ARG_EXPR
4777 2002-08-04  Chris Demetriou  <cgd@broadcom.com>
4779         * doc/invoke.texi: Remove duplicated paragraph describing
4780         TARGET_SWITCHES.
4782 2002-08-04  Geoffrey Keating  <geoffk@redhat.com>
4784         * Makefile.in (sdbout.o): Doesn't need $(OBSTACK_H).
4785         * collect2.h (permanent_obstack): Delete declaration.
4786         * collect2.c (permanent_obstack): Delete definition.
4787         (main): Don't initialize permanent_obstack.  Use xstrdup instead.
4788         * expr.c: Don't include obstack.h.
4789         (permanent_obstack): Delete declaration.
4790         * function.c: Don't include obstack.h.
4791         (permanent_obstack): Delete declaration.
4792         * integrate.c: Don't include obstack.h.
4793         (function_maybepermanent_obstack): Delete declaration.
4794         * print-tree.c (debug_tree): Use x*alloc not permalloc.
4795         * sdbout.c (gen_fake_label): Use x*alloc not permalloc.
4796         * tlink.c (pfgets): Use xstrdup not permanent_obstack.
4797         * toplev.c (lang_independent_init): Rename init_obstacks to init_ttree.
4798         * tree.h: Rename init_obstacks to init_ttree.  Remove declarations
4799         of permalloc, expralloc, perm_calloc.
4800         * tree.c (permanent_obstack): Delete definition.
4801         (init_ttree): Rename from init_obstacks.
4802         (permalloc): Delete.
4803         (perm_calloc): Delete.
4804         (dump_tree_statistics): Don't print information about
4805         permanent_obstack.
4806         * varasm.c (assemble_start_function): Use xstrdup instead of
4807         permalloc/strcpy.
4808         (assemble_variable): Likewise.
4809         * config/alpha/alpha.c (unicosmk_need_dex): Use xmalloc instead of
4810         permalloc.
4811         (unicosmk_add_extern): Likewise.
4812         * config/c4x/c4x.c (c4x_external_ref): Likewise.
4813         (c4x_global_label): Likewise.
4814         * config/frv/frv.c (frv_encode_section_info): Likewise.
4815         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
4816         (i386_pe_record_exported_symbol): Likewise.
4817         * config/mips/mips.c (mips_output_external): Likewise.
4818         (mips_output_external_libcall): Likewise.
4819         * config/pa/pa.c: (permanent_obstack): Delete declaration.
4820         (output_call): Use ggc_strdup instead of allocating on
4821         permanent_obstack.
4822         * config/romp/romp.c: Include ggc.h.
4823         (get_symref): Don't declare permanent_obstack, use ggc_strdup
4824         intead of permanent_obstack.
4825         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use concat
4826         instead of permalloc.
4827         * config/rs6000/rs6000.c (rs6000_gen_section_name): Use xmalloc
4828         instead of permalloc
4829         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Use concat
4830         instead of permalloc.
4831         * config/vax/vax.c (vms_check_external): Use xmalloc instead of
4832         permalloc.
4834 2002-08-04  Bernd Schmidt  <bernds@redhat.com>
4836         Contribute a port developed primarily by Michael Meissner,
4837         Catherine Moore, and Richard Sandiford <rsandifo@redhat.com>.
4838         * config.gcc: Add frv-elf target.
4839         * config/frv/cmovd.c: New file.
4840         * config/frv/cmovh.c: New file.
4841         * config/frv/cmovw.c: New file.
4842         * config/frv/frv-abi.h: New file.
4843         * config/frv/frv-asm.h: New file.
4844         * config/frv/frv-modes.def: New file.
4845         * config/frv/frv-protos.h: New file.
4846         * config/frv/frv.c: New file.
4847         * config/frv/frv.h: New file.
4848         * config/frv/frv.md: New file.
4849         * config/frv/frvbegin.c: New file.
4850         * config/frv/frvend.c: New file.
4851         * config/frv/lib1funcs.asm: New file.
4852         * config/frv/media.h: New file.
4853         * config/frv/modi.c: New file.
4854         * config/frv/t-frv: New file.
4855         * config/frv/uitod.c: New file.
4856         * config/frv/uitof.c: New file.
4857         * config/frv/ulltod.c: New file.
4858         * config/frv/ulltof.c: New file.
4859         * config/frv/umodi.c: New file.
4860         * config/frv/xm-frv.h: New file.
4862         * config/frv/media.h: Removed again.
4864 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
4866         * gcov.c (bb_file_time): New static variable.
4867         (object_directory): May also be object file.
4868         (preserve_paths): New static variable.
4869         (print_usage): Adjust.
4870         (options): Adjust.
4871         (process_args): Adjust.
4872         (open_files): Simplify. Cope when OBJECT_DIRECTORY is an object
4873         file. Find modification date on bb file.
4874         (read_profile): Don't rewind a NULL file.
4875         (format_hwint): New static function.
4876         (function_summary): Use format_hwint.
4877         (output_data): SOURCE_FILE_NAME is never relative to
4878         OBJECT_DIRECTORY. Use format_hwint. Adjust gcov file name
4879         mangling. Adjust output format to make it more machine readable.
4880         * doc/gcov.texi: Document & clarify semantics.
4882 2002-08-04  Joseph S. Myers  <jsm@polyomino.org.uk>
4884         * doc/include/gcc-common.texi (version-GCC): Increase to 3.3.
4886 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
4888         * gcc.c (cc1_options): Pass output file as auxbase when
4889         appropriate.
4890         * profile.c (init_branch_prob): FILENAME has already had ending
4891         stripped.
4892         * final.c (end_final): Likewise.
4893         * toplev.c (aux_base_name): New global.
4894         (compile_file): Pass aux_base_name to init init_branch_prob and
4895         end_final.
4896         (independent_decode_option, case 'a'): New auxinfo options.
4897         (case 'd'): Protect against mising basename.
4898         (do_compile): Initialize aux_base_name.
4899         * toplev.h (aux_base_name): New global.
4900         * doc/invoke.texi: Adjust documentation.
4902 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
4904         * config/i386/i386.c (x86_field_alignment): Remove duplicate test
4905         of TARGET_ALIGN_DOUBLE.
4907 2002-08-04  Gabriel Dos Reis  <gdr@nerim.net>
4909         * diagnostic.c (inform): New function.
4910         * diagnostic.h (inform): Declare.
4912 2002-08-03  David Edelsohn  <edelsohn@gnu.org>
4914         * config/rs6000/rs6000.md (movsi_internal1): Add nop mnemonic.
4915         (movhi_internal): Same.
4916         (movqi_internal): Same.
4917         (movdi_internal64): Same.
4919         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_FLOAT): Add mcpu=405.
4921         * config/rs6000/xcoff.h (SKIP_ASM_OP): Define.
4922         (ASM_OUTPUT_SKIP): Use it.  SIZE unsigned.
4923         (COMMON_ASM_OP): Define.
4924         (ASM_OUTPUT_ALIGNED_COMMON): Use it.  SIZE unsigned.
4925         Use ALIGN parameter.
4926         (LOCAL_COMMON_ASM_OP): Define.
4927         (ASM_OUTPUT_LOCAL): Use it.  SIZE unsigned.
4929 2002-08-03  Roger Sayle  <roger@eyesopen.com>
4931         * builtins.def: Define new builtin functions exp, expf, expl,
4932         log, logf and logl (and their __builtin_* variants).
4933         * optabs.h (enum optab_index): Add new OTI_exp and OTI_log.
4934         Define exp_optab and log_optab.
4935         * optabs.c (init_optans): Initialize exp_optab and log_optab.
4936         * genopinit.c (optabs): Implement exp_optab and log_optab
4937         using exp?f2 and log?f2 patterns.
4938         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP*
4939         and BUILT_IN_LOG* using exp_optab and log_optab respectively.
4940         (expand_builtin): Ignore the new builtins (and all cos and
4941         sin variants) when not optimizing.  Expand new builtins via
4942         expand_builtin_mathfn when flag_unsafe_math_optimizations.
4944         * doc/extend.texi: Document new exp and log builtins.
4945         * doc/md.texi: Document new exp?f2 and log?f2 patterns
4946         (and previously undocumented cos?f2 and sin?f2 patterns).
4948 2002-08-03  Jason Merrill  <jason@redhat.com>
4950         * explow.c (int_expr_size): New fn.
4951         * expr.c (expand_expr) [CONSTRUCTOR]: Use it.
4952         * expr.h: Declare it.
4954 2002-08-02  Krister Walfridsson  <cato@df.lth.se>
4956         * Makefile.in (gengtype-lex.o, gengtype-yacc.o): Add path to
4957         gengtype-* dependencies.
4959 2002-08-02  Eric Christopher  <echristo@redhat.com>
4961         * config.gcc (mips*-*-linux*): Fix ordering of tm_file.
4962         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Change
4963         #ifndef to #undef.
4964         (TARGET_MEM_FUNCTIONS): Define instead of define to 1.
4966 2002-08-02  David Edelsohn  <edelsohn@gnu.org>
4968         PR optimize/7067
4969         * config/rs6000/rs6000.h (RTX_COSTS): Artificially make MULT
4970         small if optimizing for size.
4972 2002-08-02  Daniel Jacobowitz  <drow@mvista.com>
4974         * configure.in (FORBUILD): Use $build_alias.
4975         * configure: Regenerated.
4977 2002-08-02  Richard Sandiford  <rsandifo@redhat.com>
4979         * config.gcc: Don't include mips/abi64.h in $tm_file.
4980         * hard-reg-set.h (call_really_used_regs): Declare.
4981         * config/mips/abi64.h: Remove file.
4982         * config/mips/linux.h,
4983         * config/mips/iris6.h: Don't include it.
4984         * config/mips/mips-protos.h (mips_conditional_register_usage): Declare.
4985         * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Use it.
4986         (REG_PARM_STACK_SPACE, STACK_BOUNDARY, STRICT_ARGUMENT_NAMING,
4987         FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_PADDING,
4988         FUNCTION_ARG_CALLEE_COPIES, MUST_PASS_IN_STACK, MIPS_STACK_ALIGN):
4989         Bring across definitions from abi64.h.
4990         (GP_ARG_LAST, FP_ARG_LAST): Use MAX_ARGS_IN_REGISTERS.
4991         (BIGGEST_MAX_ARGS_IN_REGISTERS): New.
4992         (struct mips_args): Use it.
4993         * config/mips/mips.c (mips_conditional_register_usage): Define.
4995 2002-08-02  Jason Merrill  <jason@redhat.com>
4997         * langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.
4998         * langhooks.c (lhd_expr_size): Define default.
4999         * langhooks.h (struct lang_hooks): Add expr_size.
5000         * explow.c (expr_size): Call it.
5001         * expr.c (store_expr): Don't copy an expression of size zero.
5002         (expand_expr) [CONSTRUCTOR]: Use expr_size to calculate how much
5003         to store.
5004         * Makefile.in (builtins.o): Depend on langhooks.h.
5006 2002-08-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5008         * Makefile.in (ra-debug.o): Depend on $(TM_P_H).
5009         * ra-debug.c: Include "tm_p.h".
5010         * ra-rewrite.c (is_partly_live_1): Change return type to bool.
5012 2002-08-02  Toon Moene  <toon@moene.indiv.nluug.nl>
5014         * simplify-rtx.c (simplify_binary_operation): x * 1 is allowed
5015         when not honoring signalling NaNs.
5016         (simplify_ternary_operation): a == b has a definite value
5017         when not honoring NaNs.
5019 2002-08-02  Jason Merrill  <jason@redhat.com>
5021         * gdbinit.in (pct): New macro.
5023 2002-08-01  Stan Shebs  <shebs@apple.com>
5024             Andreas Tobler  <toa@pop.agri.ch>
5026         * ginclude/stddef.h (_BSD_SIZE_T_DEFINED_): Define if not defined,
5027         plays nice with Darwin headers.
5028         (_BSD_RUNE_T_DEFINED_): Likewise.
5030 2002-08-01  Zack Weinberg  <zack@codesourcery.com>
5032         * c-common.c (c_common_init): -Wtraditional also implies -Wlong-long.
5033         * cppinit.c (cpp_post_options): Likewise.
5035         * cppexp.c (cpp_classify_number): Suppress -Wtraditional
5036         warning about 'LL' suffix (but not 'ULL' etc) when
5037         -Wno-long-long is in effect.
5039         * cppmacro.c (_cpp_builtin_macro_text) [BT_TIME, BT_DATE]:
5040         Check for failing time()/localtime(), issue a warning, and
5041         make __TIME__ and __DATE__ expand to fallback strings.
5043         * doc/cpp.texi, doc/extend.texi: Document behavior of __DATE__
5044         and __TIME__ when the date and time cannot be determined.
5046 2002-08-02  Alan Modra  <amodra@bigpond.net.au>
5048         * config/rs6000/rs6000.c (output_cbranch): Hint differently for power4.
5050 2002-08-01  Daniel Jacobowitz  <drow@mvista.com>
5052         * Makefile.in ($(BUILD_PREFIX_1)ggc-none.o): Use $(GGC_H).
5054 2002-08-01  Chris Demetriou  <cgd@broadcom.com>
5056         * config.gcc (mipsisa64sb1-*-elf*): New configuration.
5057         (mipsisa64sb1el-*-elf*): Likewise.
5058         * config/mips/mips.c (mips_cpu_info_table): Add sb1.
5059         * config/mips/mips.h (processor_type): Add PROCESSOR_SB1.
5060         (TARGET_SB1, TUNE_SB1): New macros.
5061         * doc/invoke.texi: Add sb1 to documentation for MIPS -march and
5062         -mtune flags.
5064 2002-08-01  David Edelsohn  <edelsohn@gnu.org>
5066         * varasm.c (asm_emit_uninitialized): Return false if global BSS
5067         and ASM_EMIT_BSS not supported by target.
5068         (assemble_variable): Do not duplicate uninitialized logic.
5069         Fall through if asm_emit_uninitialized failed.
5071 2002-08-01  Chris Demetriou  <cgd@broadcom.com>
5073         * config/mips/mips.h (BRANCH_LIKELY_P): Remove unused macro.
5075 2002-08-02  Alan Modra  <amodra@bigpond.net.au>
5077         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Define.
5078         (DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC): Define.
5080         * config/rs6000/rs6000.c (output_toc): Don't use lshift_double when
5081         HOST_BITS_PER_WIDE_INT == 64.
5083 2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5085         * df.c (df_insn_table_realloc): Change parameter to unsigned.
5086         * optabs.c (expand_binop): Make variable unsigned.
5087         * simplify-rtx.c (simplify_subreg): Likewise.
5088         * unroll.c (unroll_loop): Cast to avoid signed/unsigned warnings.
5090 2002-08-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5092         * c-common.c (cb_register_builtins): Always define __GXX_ABI_VERSION.
5094 2002-08-01  Richard Henderson  <rth@redhat.com>
5096         * toplev.c (parse_options_and_default_flags): Don't set
5097         flag_reorder_blocks for -Os.
5099         * config/avr/avr.c (avr_optimization_options): Remove.
5100         * config/avr/avr.h (OPTIMIZATION_OPTIONS): Remove.
5101         * config/m68hc11/m68hc11.c (m68hc11_optimization_options): Remove.
5102         * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Remove.
5104 2002-08-01  H.J. Lu <hjl@gnu.org>
5105             Richard Henderson  <rth@redhat.com>
5107         * output.h (DECL_READONLY_SECTION): Remove.
5108         (decl_readonly_section): Declare.
5109         * varasm.c (decl_readonly_section): New.
5110         (default_section_type_flags, default_select_section): Use it.
5111         * config/arm/pe.c (arm_pe_unique_section): Likewise.
5112         * config/i386/interix.c (i386_pe_unique_section): Likewise.
5113         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
5114         * config/mcore/mcore.c (mcore_unique_section): Likewise.
5115         * config/mips/mips.c (mips_unique_section): Likewise.
5117 2002-08-01  Richard Henderson  <rth@redhat.com>
5119         * integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it
5120         refers to a subroutine parameter.
5122 2002-08-01  Jakub Jelinek  <jakub@redhat.com>
5124         * varasm.c (assemble_visibility): Strip name encoding.
5126 2002-08-01  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
5128         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE): Correct earlier patch.
5129         (RETURN_ADDR_RTX): Cannot determine return address for FRAME > 0
5130         when there is no frame pointer.
5131         (INITIAL_FRAME_POINTER_OFFSET): Count stack space for saved fp
5132         registers properly.
5133         * config/ns32k/__unorddf2.c: New file.
5134         * config/ns32k/__unordsf2.c: New file.
5135         * config/ns32k/t-ns32k: New file.
5136         * config.gcc (ns32k-*-netbsd*): Use it.
5138 2002-08-01  Aldy Hernandez  <aldyh@redhat.com>
5140         * config/rs6000/rs6000.h (SPU_CONST_OFFSET_OK): Change to 0xff.
5142 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
5144         * c-common.c (__GXX_ABI_VERSION): Correct spelling.
5146 2002-08-01  Benjamin Kosnik  <bkoz@redhat.com>
5148         * c-common.c (cb_register_builtins): Set __GXX_ABI_VERSION__ to 102.
5150 2002-08-01  Richard Sandiford  <rsandifo@redhat.com>
5152         * config/mips/mips.md: Add [!]TARGET_MIPS16 to sgtu conditions.
5154 2002-08-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5156         * gcse.c (expr_hash_table_size, n_exprs, set_hash_table_size,
5157         n_sets): Removed.
5158         (expr_hash_table, set_hash_table): Type changed to ...
5159         (struct hash_table): New type.
5160         (hash_scan_insn, hash_scan_set, hash_scan_clobber, hash_scan_call,
5161         insert_expr_in_table, insert_set_in_table, compute_hash_table,
5162         dump_hash_table, lookup_expr, lookup_set, compute_local_properties,
5163         compute_ae_gen, compute_ae_kill): Modified to pass the table explicitly.
5164         (alloc_set_hash_table, alloc_expr_hash_table): Merged to ...
5165         (alloc_hash_table): New.
5166         (free_set_hash_table, free_expr_hash_table): Merged to ...
5167         (free_hash_table): New.
5168         (compute_set_hash_table, compute_expr_hash_table): Merged to ...
5169         (compute_hash_table_work): New.
5170         (classic_gcse, one_classic_gcse_pass, compute_cprop_data,
5171         find_avail_set, one_cprop_pass, find_bypass_set, compute_pre_data,
5172         pre_edge_insert, pre_insert_copies, pre_delete, pre_gcse,
5173         one_pre_gcse_pass, compute_transpout, compute_code_hoist_vbeinout,
5174         hoist_code, one_code_hoisting_pass,
5175         trim_ld_motion_mems): Altered due to changed type of hash tables.
5177 2002-08-01  Zack Weinberg  <zack@codesourcery.com>
5179         * final.c (output_alternate_entry_point):
5180         If ASM_OUTPUT_TYPE_DIRECTIVE is defined, use it.
5182 2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5184         * objc/objc-act.c (encode_complete_bitfield): Add prototype and
5185         avoid ISO C style function definition.
5187         * expr.c (expand_assignment): Delete unused variable.
5189 2002-08-01  Toon Moene  <toon@moene.indiv.nluug.nl>
5191         * c-common.c (cb_register_builtins): Set
5192         __FINITE_MATH_ONLY__ to 1 if -ffinite-math-only
5193         is given, and to 0 otherwise.
5194         * combine.c (simplify_if_then_else): HONOR_NANS
5195         implies FLOAT_MODE_P.
5197 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
5199         * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_dollar.
5200         (cpp_handle_option): Don't handle it.
5201         (print_help): Update.
5202         * doc/cppopts.texi: Update.
5204 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
5206         * c-common.c (cb_register_builtins): If C++, define
5207         __EXCEPTIONS, __DEPRECATED and __GXX_ABI_VERSION as appropriate.
5208         * gcc.c (cpp_unique_options): Remove __GXX_ABI_VERSION.
5210         * lang-specs.h: Simplify in accordance with new code in
5211         c-common.c.
5213 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
5215         * c-common.c: Define all C/ObjC/C++ warning and flag variables.
5216         * c-common.h: Declare all C/ObjC/C++ warning and flag variables.
5217         * c-decl.c: Move all warning and flag variables to c-common.c.
5218         * c-format.c: Move all warning variables to c-common.c.
5219         * c-tree.h: Move all warning and flag declarations to c-common.h.
5220         * objc/objc-act.c: Move all warning variables to c-common.c.
5221         (flag_warn_protocol): Rename warn_protocol.
5223 2002-07-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5225         * pa-linux.h (GLOBAL_ASM_OP): Fix typo.
5227 2002-07-31  Graham Stott  <graham.stott@btinternet.com>
5229         * config/stormy16/stormy16.h (BSS_SECTION_ASM_OP): Add missing
5230         .section prefix.
5232 2002-07-31  Stan Shebs  <shebs@apple.com>
5234         * config.gcc (i[34567]86-*-darwin*): New configuration.
5235         * config/darwin.h (TARGET_ENCODE_SECTION_INFO): Undefine before
5236         defining.
5237         (TARGET_ENCODE_SECTION_INFO): Ditto.
5238         (ASM_PREFERRED_EH_DATA_FORMAT): Ditto.
5239         * config/darwin.c (machopic_indirect_data_reference): Remove
5240         setting of RTX_UNCHANGING_P.
5241         (machopic_legitimize_pic_address): Move RTX_UNCHANGING_P up so as
5242         not to be applied to sums.
5243         * config/i386/t-darwin: New file.
5244         * config/i386/darwin.h: New file.
5245         * config/i386/i386.h (TARGET_MACHO): Add default definition.
5246         * config/i386/i386.md (tablejump): Add TARGET_MACHO case.
5247         * config/i386/i386.c (output_set_got): For Mach-O, output Mach-O
5248         label and not the GOT add.
5249         (constant_address_p): For Mach-O, seeing a CONST is enough.
5250         (legitimate_pic_address_disp_p): Add a Mach-O case.
5251         (legitimate_address_p): Also test machopic_operand_p if Mach-O.
5252         (legitimize_pic_address): Use generic Mach-O code to legitimize.
5253         (output_pic_addr_const): Suppress @PLT if Mach-O, and parens
5254         if outputting a difference.
5255         (ix86_output_addr_diff_elt): Add Mach-O case.
5256         (ix86_expand_move): Similarly.
5257         (ix86_expand_call): Similarly.
5258         (current_machopic_label_num): New global.
5259         (machopic_output_stub): New function.
5260         (ix86_value_regno): New function.
5261         (ix86_function_value): Use it instead of VALUE_REGNO.
5262         (ix86_libcall_value): Ditto.
5263         * config/i386/unix.h (VALUE_REGNO): Remove.
5265 2002-07-31  Graham Stott  <grahas@btinternet.com>
5267         * config/rs6000/rs6000.c(rs6000_hash_constant): Fix
5268         hash for LABEL_REF's.
5270 2002-07-31  Graham Stott  <grahams@btinternet.com>
5272         * config/rs6000/rs6000.c (spe_init_builtins,
5273         altivec_init_builtins, rs6000_common_init_builtins):
5274         Replace ANSI with K&R function def.
5276 2002-07-31  David Edelsohn  <edelsohn@gnu.org>
5278         * rs6000.c (validate_condition_mode): Test flag_finite_math_only
5279         for CCFPmode.
5281 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
5283         * config/mips/crtn.asm: Don't use __mips16 to determine the
5284         return-address offset.  Define RA to a suitable temporary
5285         register for the return address.
5287 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
5289         * config/mips/mips.md (eh_set_lr_si, eh_set_lr_di): Change
5290         constraints to 'd'.
5292 2002-07-30  Chris Demetriou  <cgd@broadcom.com>
5294         * config/mips/elf.h (STARTFILE_SPEC): Define differently if
5295         default ABI is MEABI.  (Undoes incorrect change in Eric Christopher's
5296         patch on 2002-07-29.)
5297         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
5299 2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5301         * alpha.h, arc.h, arm/aout.h, avr.h, cris.h, d30v.h, dsp16xx.h,
5302         fr30.h, h8300.h, i370.h, i386/sco5.h, i386/unix.h, i960.h, ia64.h,
5303         ip2k.h, m32r.h, mcore.h, mips.h, mn10200.h, mn10300.h, ns32k.h,
5304         openbsd.h, pa/pa-linux.h, pdp11.h, romp.h, rs6000/sysv4.h,
5305         s390/linux.h, sh.h, sparc.h, stormy16.h, v850.h, vax.h, xtensa.h:
5306         (ASM_GLOBALIZE_LABEL): Delete.
5307         (GLOBAL_ASM_OP): Define.
5309         * m68hc11.h, m68k.h, m88k.h (ASM_GLOBALIZE_LABEL): Delete.
5311         * defaults.h (ASM_GLOBALIZE_LABEL): Provide a default.
5312         * doc/tm.texi (ASM_GLOBALIZE_LABEL): Update docs.
5314 2002-07-30  Geoffrey Keating  <geoffk@redhat.com>
5316         * doc/extend.texi (Hints implementation): Document that GCC
5317         mostly ignores `register'.
5319 2002-07-30  Toon Moene  <toon@moene.indiv.nluug.nl>
5321         * flags.h: Declare flag_finite_math_only.
5322         Use it in definition of HONOR_NANS and
5323         HONOR_INFINITIES.
5324         * c-common.c (cb_register_builtins): Emit
5325         __FINITE_MATH_ONLY__ when flag_finite_math_only
5326         is set.
5327         * combine.c (simplify_if_then_else): If
5328         flag_finite_math_only is set, a == b has a
5329         definite value.
5330         * toplev.c: Initialize flag_finite_math_only.
5331         (set_flags_fast_math): Set it on -ffast-math.
5332         (flag_fast_math_set_p): Test it.
5333         * doc/invoke.texi: Document -ffinite-math-only.
5335 2002-07-30  Richard Henderson  <rth@redhat.com>
5337         * ifcvt.c (noce_get_alt_condition): Use reg_overlap_mentioned_p.
5338         (noce_process_if_block): Likewise.
5340 2002-07-30  Bernd Schmidt  <bernds@redhat.com>
5342         * ifcvt.c (cond_exec_process_if_block): Fix a merging error.
5343         Bail out early if false_expr is NULL and we'd crash due to this.
5344         * genemit.c (gen_expand): Recognize return insns even if the return
5345         appears in a parallel.
5346         * libgcc2.c: Expand macro DECLARE_LIBRARY_RENAMES if it is defined.
5347         * config/fp-bit.c: Likewise.
5348         * doc/tm.texi: Document it.
5350 2002-07-30  David Edelsohn  <edelsohn@gnu.org>
5351             Zack Weinberg  <zack@codesourcery.com>
5353         * rs6000.c (rs6000_expand_unop_builtin): Check icode not
5354         CODE_FOR_nothing.  Change switch to if.
5355         (rs6000_expand_binop_builtin): Same.
5356         (rs6000_expand_builtin): Expand builtin if target support enabled.
5357         (rs6000_init_builtins): Init builtin if target support enabled.
5358         (rs6000_common_init_builtins): Check icode not CODE_FOR_nothing.
5360 2002-07-30  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5362         * gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101.
5364 2002-07-30  Richard Sandiford  <rsandifo@redhat.com>
5366         * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Fix typo.
5368 Tue Jul 30 18:31:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
5370         * sh.md (cond_delay_slot): New attribute.
5371         (cbranch delay): Use it for anulled-true case.
5372         (stuff_delay_slot): New pattern.
5373         * sh.c (print_operand, case '.'): Don't print .s / /s fore zero-length
5374         delay slot insn.
5375         (gen_far_branch): Emit stuff_delay_slot pattern.
5377 Tue Jul 30 11:21:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
5379         * unroll.c (copy_loop_body): Don't copy NOTE_INSN_LOOP_CONT.
5381 2002-07-30  Kazu Hirata  <kazu@cs.umass.edu>
5383         * fold-const.c: Fix comment typos.
5384         * gcse.c: Likewise.
5385         * reload1.c: Likewise.
5387 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
5389         * config/rs6000/rs6000.md: Disallow CCEQ compare with crnor/crnot
5390         for TARGET_SPE.
5392 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
5394         * c-pretty-print.h (pp_c_statement): Declare.
5395         * c-pretty-print.c (pp_c_postfix_expression): #if 0 support for SRCLOC.
5396         (pp_c_statement): Define.
5398 2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5400         * alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h,
5401         darwin.h, dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i960.h,
5402         ip2k.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mips.h,
5403         mn10200.h, mn10300.h, ns32k.h, pa/pa-linux.h, pdp11.h, romp.h,
5404         rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h,
5405         v850.h, vax.h, xtensa.h (ASM_OUTPUT_LABEL): Delete definition.
5407         * defaults.h (ASM_OUTPUT_LABEL): Provide a default.
5408         * doc/tm.texi (ASM_OUTPUT_LABEL): Update docs.
5410 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
5412         * c-pretty-print.c (pp_c_primary_expression): Handle STMT_EXPR.
5413         (pp_c_postfix_expression): Handle ARROW_EXPR, FFS_EXPR,
5414         COMPOUND_LITERAL_EXPR, VA_ARG_EXPR.
5415         (pp_c_expression): Update.
5417 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5419         * alpha/vms-cc.c (preprocess_args, main): Use xstrdup and/or
5420         concat in lieu of xmalloc/strcpy/memcpy/sprintf.
5421         * alpha/vms-ld.c (main): Likewise.
5422         * dsp16xx.c (double_reg_to_memory): Likewise.
5423         * mcore.c (mcore_expand_prolog): Likewise.
5424         * cppfiles.c (read_name_map): Likewise.
5425         * gensupport.c (process_rtx, identify_predicable_attribute,
5426         alter_test_for_insn): Likewise.
5427         * vmsdbgout.c (write_rtnbeg, vmsdbgout_init): Likewise.
5429 2002-07-29  Roger Sayle  <roger@eyesopen.com>
5431         * builtins.c (expand_builtin):  Change the default behavior to
5432         only issue an error if the builtin function doesn't have a
5433         fallback library call.  Remove several cases handled by the
5434         new default.
5436 2002-07-29  John David Anglin  <dave@hiauly1.hia.nrc>
5438         * real.c (ieee_24, ieee_53, ieee_64, ieee_113): Define only if the
5439         floating point format of the target is IEEE.
5440         * (dec_f, dec_d, dec_g, dec_h): Define only if the floating point
5441         format of the target is DEC.
5443 2002-07-29  Richard Henderson  <rth@redhat.com>
5445         * unroll.c (verify_addresses): Remove.
5446         (find_splittable_givs): Never split DEST_ADDR givs.
5448 2002-07-29  Geoffrey Keating  <geoffk@redhat.com>
5450         * doc/gty.texi (GGC Roots): Clarify that the list of syntaxes
5451         is exhaustive.
5452         (Files): Improve documentation on generated source files.
5454         * doc/extend.texi (Translation implementation): Document what
5455         diagnostics look like.
5456         (Identifiers implementation): Document that there's normally no
5457         limit on identifier names.
5458         (Integers implementation): Document two's complement.
5459         (Hints implementation): Document that GCC honors 'inline', mostly.
5460         (Preprocessing directives implementation): Document that GCC
5461         requires the current time.
5463 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
5465         * c-pretty-print.h (struct c_pretty_print_info): Add new member.
5466         (pp_initializer): New macro.
5467         (pp_c_initializer): Declare.
5468         * c-pretty-print.c (pp_c_primary_expression): HAndle TARGET_EXPR.
5469         (pp_c_initializer): Define.
5470         (pp_c_initializer_list): New function.
5471         (pp_c_postfix_expression): Handle ABS_EXPR, COMPLEX_CST,
5472         VECTOR_CST, CONSTRUCTOR.
5473         (pp_c_unary_expression): Handle CONJ_EXPR, REALPART_EXPR,
5474         IMAGPART_EXPR.
5475         (pp_c_cast_expression): Handle FLOAT_EXPR.
5476         (pp_c_assignment_expression): Handle INIT_EXPR.
5477         (pp_c_expression): Update.
5479 2002-07-30  Neil Booth  <neil@daikokuya.co.uk>
5481         * objc/objc-act.c (objc_init): Return immediately if filename
5482         is NULL.
5484 2002-07-29  Eric Christopher  <echristo@redhat.com>
5486         * config/mips/elf.h: Remove ecoff.h and gofast includes.
5487         (DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Define unconditionally.
5488         (SDB_DEBUGGING_INFO): Undefine.
5489         (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
5490         (PUT_SDB_SIZE): Remove.
5491         (SUBTARGET_ASM_DEBUGGING_SPEC): Redefine.
5492         (STARTFILE_SPEC): Add isa3264 define.
5493         * config/mips/elf64.h: Ditto.  Move TARGET_MEM_FUNCTIONS from here...
5494         * config/mips/ecoff.h: Remove. and here...
5495         * config/mips/iris3.h: and here...
5496         * config/mips/sni-svr4.h: and here...
5497         * config/mips/mips.h: To here. Remove OBJECT_FORMAT_ROSE ifdefs.
5498         Add assembler -mmdebug options for non-dwarf debugging.
5499         * config/mips/r3900.h: Remove debug info defines.
5500         * config/mips/isa32-linux.h: Remove, move functionality to config.gcc.
5501         * config/mips/isa3264.h: Ditto.
5502         * config/mips/t-isa3264: Fix up for file removal and gofast configure
5503         change.
5504         * config/mips/t-elf: Ditto.
5505         * config/mips/t-ecoff: Ditto.
5506         * config/mips/t-r3900: Ditto.
5507         * config/mips/t-iris5-6: Ditto.
5508         * config/mips/t-isa3264: Ditto.
5509         * config/mips/t-linux: Remove.
5510         * config/mips/t-netbsd: Remove.
5511         * config/mips/t-mips: New file.
5512         * config/mips/t-gofast: Ditto.
5513         * config/mips/netbsd.h: Remove unnecessary undefines.
5514         * config/mips/linux.h: Remove #include of mips.h.
5515         * config.gcc: Add mips.h include for elf targets. Remove tm_file
5516         for ecoff. Add gofast configure option for mips.
5518 2002-07-29  Chris Demetriou  <cgd@broadcom.com>
5520         * configure.in (mips*-*-*): Add a test to see if MIPS libgloss
5521         linker scripts use STARTUP directives consistently.
5522         * configure: Regenerate.
5523         * config.in: Regenerate.
5524         * config/mips/elf.h (STARTFILE_SPEC): Define conditionally, based
5525         on whether HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is defined.
5526         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
5527         * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine if
5528         HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is set; the result
5529         will be the same.
5531 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
5533         * config/rs6000/rs6000.md ("cpu"): Add ppc8540 to attribute.
5535 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
5537         * config/rs6000/rs6000.h (RTX_COSTS): Add MULT case for 8540.
5539 2002-07-29  Aldy Hernandez  <aldy@quesejoda.com>
5541         * config/rs6000/rs6000.md: Move altivec patterns from here...
5543         * config/rs6000/altivec.md: ...to here.
5545 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
5547         * config/rs6000/spe.md ("spe_evmra"): Change to unspec.
5549 2002-07-29  Richard Henderson  <rth@redhat.com>
5551         * emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from
5552         set_mem_attributes and add BITPOS argument.  Subtract it from
5553         OFFSET when same is adjusted.
5554         (set_mem_attributes): New wrapper function.
5555         * expr.c (expand_assignment): Use set_mem_attributes_minus_bitpos;
5556         remove offset adjustment hack.
5557         * expr.h (set_mem_attributes_minus_bitpos): Declare.
5559 2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
5561         * Makefile.in (C_OBJS): Include c-pretty-print.o
5562         (c-pretty-print.o): Add depency rule.
5563         * pretty-print.h: Add more macros.
5564         * c-pretty-print.c: New file.
5565         * c-pretty-print.h: Likewise.
5567 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
5569         * config/rs6000/spe.h (__internal_ev_mwhgumian): Cast vector
5570         constants to __ev64_s32__.
5571         (__internal_ev_mwhgsmian): Same.
5572         (__internal_ev_mwhgsmfan): Same.
5573         (__internal_ev_mwhgssfan): Same.
5574         (__internal_ev_mwhgumiaa): Same.
5575         (__internal_ev_mwhgsmiaa): Same.
5576         (__internal_ev_mwhgsmfaa): Same.
5577         (__internal_ev_mwhgssfaa): Same.
5579 2002-07-29  David Edelsohn  <edelsohn@gnu.org>
5581         * varasm.c (assemble_variable): Narrow test for uninitialized
5582         without BSS target support.
5584 2002-07-29  Nathan Sidwell  <nathan@codesourcery.com>
5586         * profile.c: Add file comment describing the overall algorithm and
5587         structures.
5588         (struct edge_info): Add comments.
5589         (struct bb_info): Add comments.
5590         * basic-block.h (EDGE_*): Add comments.
5591         * doc/gcov.texi (Gcov Data Files): Document bit flags.
5593 2002-07-29  Bob Wilson  <bob.wilson@acm.org>
5595         * config/xtensa/elf.h, config/xtensa/linux.h
5596         (TARGET_OS_CPP_BUILTINS): Define.
5597         (CPP_PREDEFINES): Remove.
5598         * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define.
5599         (CPP_SPEC): Remove.
5601 2002-07-29  Zack Weinberg  <zack@codesourcery.com>
5603         * gensupport.c: Include hashtab.h.
5604         (insn_elision, condition_table, hash_c_test, cmp_c_test,
5605         maybe_eval_c_test): New routines and data structures to
5606         support insn elision.
5607         (init_md_reader): Read and initialize the condition_table.
5608         (read_md_rtx): Discard insn patterns whose C test is provably
5609         always false.
5610         * gensupport.h: Declare new functions and data structures.
5612         * genconditions.c, dummy-conditions.c: New files.
5613         * Makefile.in: Build genconditions; run it to construct
5614         insn-conditions.c; build that and link it into most gen*
5615         programs.
5616         (HOST_SUPPORT, HOST_EARLY_SUPPORT): New variables.
5617         (GEN): Delete, unused.
5618         (STAGESTUFF): Update.
5620         * gencodes.c: (gen_insn): #define CODE_FOR_xxx equal to
5621         CODE_FOR_nothing for all elided patterns.
5622         (main): Tweaked to support this.
5623         * genflags.c (gen_proto): Emit a static inline generator
5624         function here for all elided patterns, which simply returns
5625         NULL_RTX.
5626         (gen_insn): Do not define HAVE_xxx for elided patterns.
5627         (main): Tweaked to support this.  No need to forward-declare
5628         struct rtx_def.
5629         * genrecog.c: Do not bother emitting the C test if it's known
5630         to be true at compile time.
5632 2002-07-29  Mike Stump  <mrs@apple.com>
5634         * config.gcc (target_gtfiles): Initialize, as otherwise cross
5635         compilers hosted on powerpc-apple-darwin6.0 won't even build.
5637 2002-07-29  Richard Earnshaw  <rearnsha@arm.com>
5639         * arm.md (sibcall, sibcall_value): Add RETURN as part of the pattern,
5640         remove clobber of LR.
5641         (sibcall_insn, sibcall_value_insn): Update accordingly.
5642         (sibcall_epilogue): Remove debugging comment from assembler stream.
5644 2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
5646         * pretty-print.h: Define more macros.
5647         * diagnostic.h (output_formatted_integer): Moved from...
5648         * diagnostic.c: ... here.
5650 2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5652         * stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use ASM_OUTPUT_LABEL_REF.
5654 2002-07-28  Zack Weinberg  <zack@codesourcery.com>
5656         * defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two
5657         arguments.  Always use ".-symbol" as expression argument.
5658         * doc/tm.texi: Update to match.  Document requirement for
5659         ".size symbol, .-symbol" to be acceptable to assembler.
5661         * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
5662         config/arm/elf.h, config/avr/avr.h, config/cris/aout.h,
5663         config/i386/freebsd-aout.h, config/i386/sco5.h,
5664         config/ip2k/ip2k.h, config/m88k/m88k.h, config/xtensa/elf.h,
5665         config/xtensa/linux.h:  Update uses of ASM_OUTPUT_MEASURED_SIZE.
5667 2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5669         * Makefile.in (gengtype-lex.c): Fix error in last change.
5671         * alpha/freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing
5672         backslash.
5674         * Makefile.in (vmsdbgout.o): Depend on function.h.
5676         * vmsdbgout.c: Include function.h.
5678 2002-07-28  Alan Modra  <amodra@bigpond.net.au>
5680         * prefix.c (update_path): Don't strip single `.' path components
5681         unless stripping a later `..' component.  Exit loop as soon as
5682         a valid path is found.
5684 2002-07-27  Roger Sayle  <roger@eyesopen.com>
5686         * builtins.def [DEF_GCC_BUILTIN]: Require an explicit ATTRS
5687         argument.  Mark BUILT_IN_RETURN, BUILT_IN_EH_RETURN,
5688         BUILT_IN_LONGJMP and BUILT_IN_TRAP as noreturn, the ISO C99
5689         floating point unordered comparisons (e.g. __builtin_isgreater)
5690         as const, and leave the remaining GCC_BUILTINs unchanged.
5692         * c-decl.c (builtin_function): No need to explicitly mark
5693         BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.
5695 2002-07-27  Roger Sayle  <roger@eyesopen.com>
5697         * Makefile.in: rtlanal.o now depends upon real.h.
5699         * flags.h [flag_signaling_nans]: New flag.
5700         [HONOR_SNANS]: New macro.
5702         * toplev.c [flag_signaling_nans]: Initialize to false.
5703         (f_options): Add processing for "-fsignaling-nans".
5704         (set_fast_math_flags): Clear flag_signaling_nans with -ffast-math.
5705         (process_options): flag_signaling_nans implies flag_trapping_math.
5707         * c-common.c (cb_register_builtins): Define __SUPPORT_SNAN__
5708         when -fsignaling-nans.  First step to implementing WG14's N965.
5710         * fold-const.c (fold) [MULT_EXPR]: Conditionalize transforming
5711         1.0 * x into x, and -1.0 * x into -x on !HONOR_SNANS.
5712         [RDIV_EXPR]: Conditionalize x/1.0 into x on !HONOR_SNANS.
5714         * simplify-rtx.c (simplify_relational_operation): Conditionalize
5715         transforming abs(x) < 0.0 into false on !HONOR_SNANS.
5717         * rtlanal.c: #include real.c for TARGET_FLOAT_FORMAT definitions
5718         required by HONOR_SNANS.  (may_trap_p): Floating point DIV, MOD,
5719         UDIV, UMOD, GE, GT, LE, LT and COMPARE may always trap with
5720         -fsignaling_nans.  EQ and NE only trap for flag_signaling_nans
5721         not flag_trapping_math (i.e. HONOR_SNANS but not HONOR_NANS).
5723         * doc/invoke.texi: Document new -fsignaling-nans compiler option.
5725 2002-07-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5727         * Makefile.in (gengtype-lex.c): Work around a bug in flex.
5728         * gengtype-lex.l (YY_USE_PROTOS): Undef.
5729         (YY_DECL): Define.
5731 2002-07-27  Roger Sayle  <roger@eyesopen.com>
5733         * doc/invoke.texi: Document that both -fno-builtin-foo and
5734         -fno-builtin are supported by the g++ front-end.
5736 2002-07-27  Stan Shebs  <shebs@apple.com>
5738         * configure.in: Rename config_gtfiles to target_gtfiles.
5739         * configure: Regenerate.
5740         * doc/gty.texi: Update reference.
5741         * config.gcc (powerpc-*-darwin*): Set target_gtfiles
5742         instead of appending to it.
5744 2002-07-25  Aldy Hernandez  <aldyh@redhat.com>
5746         * config/rs6000/rs6000.c (function_arg_advance): SPE vararg
5747         vectors are split into two registers.
5748         (function_arg): Same.
5750 Thu Jul 26 23:00:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
5752         * pa.md (extv): Check predicates before emitting extv_32.
5754 2002-07-27  Alan Modra  <amodra@bigpond.net.au>
5756         * config/rs6000/rs6000.c (rs6000_traceback_name): New var.
5757         (rs6000_traceback): New var.
5758         (rs6000_override_options): Set rs6000_traceback.
5759         (rs6000_output_function_epilogue): Implement traceback options.
5760         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add "traceback=".
5761         (rs6000_traceback_name): Declare.
5763         * config/rs6000/rs6000.c (output_profile_hook): Don't generate profile
5764         label reference when NO_PROFILE_COUNTERS.
5766 2002-07-26  Jason Merrill  <jason@redhat.com>
5768         * function.c (assign_parms): Handle frontend-directed pass by
5769         invisible reference.
5771 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
5773         * doc/cppopts.texi: Update.
5775 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
5777         * cppmacro.c (_cpp_create_definition): Don't attempt redefinition
5778         warnings on assertions.
5780 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
5782         * c-common.h (RID_AND, RID_AND_EQ, RID_NOT, RID_NOT_EQ,
5783         RID_OR, RID_OR_EQ, RID_XOR, RID_XOR_EQ, RID_BITAND, RID_BITOR,
5784         RID_COMPL): Remove.
5785         * c-parse.in (rid_to_yy): Similarly.
5787 2002-07-26  Jason Merrill  <jason@redhat.com>
5789         * c-dump.c: Resurrect.
5790         * tree-dump.c: Move C-specific stuff to c-dump.c.
5791         * c-common.h: Declare c_dump_tree.
5792         * c-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN): Define.
5793         * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
5794         (c-dump.o): New rule.
5796 2002-07-26  Alan Modra  <amodra@bigpond.net.au>
5798         * config/rs6000/rs6000.md: Enable patterns using rlwinm for
5799         PowerPC64.  Replace "T" and "S" constraints with "n" when the
5800         predicate will do.  Formatting fixes.
5801         (extzvsi_internal2): Use "andi.", "andis." and attr type of "compare"
5802         as for extzvsi_internal1.
5804 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
5806         * dwarfout.c (VERSION_ASM_OP, DERIV_BEGIN_LABEL_FMT,
5807         DERIV_END_LABEL_FMT): Remove.
5808         (SL_BEGIN_LABEL_FMT, SL_END_LABEL_FMT): Move.
5810 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
5812         * objc/objc-act.c (UTAG_STATICS, UTAG_PROTOCOL_LIST, USERTYPE):
5813         Remove.
5815 2002-07-25  Stan Shebs  <shebs@apple.com>
5817         * config/rs6000/rs6000.c (rs6000_emit_prologue): Remove unused
5818         local var dwarfp.
5819         (output_compiler_stub): Remove unused locals.
5820         (output_call): Always initialize line number.
5822 Thu Jul 25 20:34:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
5824         * sh.h (LOAD_EXTEND_OP): QImode zero-extends on SHmedia.
5825         * sh.md (truncdiqi2, movqi_media): Likewise.
5827 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
5829         * gcse.c (obstack_chunk_alloc): Remove.
5830         (gcse_alloc): Fix to count allocated bytes.
5831         * collect2.c (SYMBOL__MAIN): Remove.
5833 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
5835         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Only used if
5836         HAVE_TARGET_EXECUTABLE_SUFFIX.
5838 Thu Jul 25 18:57:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
5840         * rtl.h (mem_attrs): Spell out more clearly the roles of ALIGN,
5841         SIZE, EXPR and OFFSET.
5843 2002-07-25  Richard Henderson  <rth@redhat.com>
5845         * emit-rtl.c (set_mem_attributes): Fix size and alignment thinkos
5846         in ARRAY_REF of DECL_P case.
5848 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
5850         * doc/invoke.texi: Document -mabi=meabi, and expand on the EABI
5851         description.  Document -mips32, -mips64, and the associated -march
5852         values.  Describe the "mipsN" arguments to -march.  Say that the
5853         -mipsN options are equivalent to -march.  Reword the description
5854         of default type sizes.
5855         * toplev.h (target_flags_explicit): Declare.
5856         * toplev.c (target_flags_explicit): New var.
5857         (set_target_switch): Update target_flags_explicit.
5858         * config/mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Undefine.
5859         * config/mips/elf64.h (MIPS_ISA_DEFAULT): Undefine.
5860         * config/mips/iris6.h (SUBTARGET_ASM_SPEC): -mabi=64 implies -mips3.
5861         * config/mips/isa3264.h (MIPS_ENABLE_EMBEDDED_O32): Undefine.
5862         * config/mips/mips.h (mips_cpu_info): New struct.
5863         (mips_cpu_string, mips_explicit_type_size_string): Remove.
5864         (mips_cpu_info_table, mips_arch_info, mips_tune_info): Declare.
5865         (MIPS_CPP_SET_PROCESSOR): New macro.
5866         (TARGET_CPP_BUILTINS): Declare a macro for each supported processor.
5867         Define _MIPS_ARCH and _MIPS_TUNE.
5868         (MIPS_ISA_DEFAULT): Don't provide a default value.  Instead...
5869         (MIPS_CPU_STRING_DEFAULT): Set to "from-abi" if neither it nor
5870         MIPS_ISA_DEFAULT were already defined.
5871         (MULTILIB_DEFAULTS): Add MULTILIB_ABI_DEFAULT.
5872         (TARGET_OPTIONS): Remove -mcpu and -mexplicit-type-size.
5873         (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New.
5874         (GAS_ASM_SPEC): Remove -march, -mcpu, -mgp* and -mabi rules.
5875         (ABI_GAS_ASM_SPEC): Remove.
5876         (MULTILIB_ABI_DEFAULT, ASM_ABI_DEFAULT_SPEC): New macros.
5877         (ASM_SPEC): Add -mgp32, -mgp64, -march, -mabi=eabi and -mabi=o64.
5878         Invoke %(asm_abi_default_spec) if no ABI was specified.
5879         (CC1_SPEC): Remove ISA -> register-size rules.
5880         (EXTRA_SPECS): Remove abi_gas_asm_spec.  Add asm_abi_default_spec.
5881         * config/mips/mips.c (mips_arch_info, mips_tune_info): New vars.
5882         (mips_cpu_string, mips_explicit_type_size_string): Remove.
5883         (mips_cpu_info_table): New array.
5884         (mips_set_architecture, mips_set_tune): New fns.
5885         (override_options): Rework to make -mipsN equivalent to -march.
5886         Detect more erroneous cases, including those removed from CC1_SPEC.
5887         Don't change the ABI based on architecture, or vice versa.
5888         Unify logic with GAS.
5889         (mips_asm_file_start): Get architecture name from mips_arch_info.
5890         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
5891         (mips_parse_cpu): Take the name of the option as argument.  Handle
5892         'from-abi'.  Raise an error if the option is wrong.
5893         (mips_cpu_info_from_isa): New fn.
5895 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
5897         * config/mips/mips.md (tablejump_mips161): Use gen_rtx_LABEL_REF.
5898         (tablejump_mips162): Likewise.
5900 Thu Jul 25 10:23:41 2002  J"orn Rennecke <joern.rennecke@superh.com>
5902         * simpify-rtx.c (simplify_subreg): Don't pass MODE_CC mode to
5903         int_mode_for_mode.
5905 2002-07-25  Gabriel Dos Reis  <gdr@nerim.net>
5907         * c-common.c (c_sizeof_or_alignof_type): Take a third argument for
5908         complaining.
5909         * c-common.h (c_sizeof): Adjust definition.
5910         (c_alignof): Likewise.
5911         * c-tree.h (c_sizeof_nowarn): Now macro.
5912         * c-typeck.c (c_sizeof_nowarn): Remove definition.
5914 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
5916         * c-decl.c (c_decode_option): No need to handle switches
5917         cpplib handles.
5919 2002-07-24  Zack Weinberg  <zack@codesourcery.com>
5921         * defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
5922         ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
5923         * doc/tm.texi: Document them.  Also document SIZE_ASM_OP,
5924         TYPE_ASM_OP, and TYPE_OPERAND_FMT.
5926         * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
5927         config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
5928         config/cris/aout.h, config/i386/freebsd-aout.h,
5929         config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
5930         config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
5931         config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
5932         config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
5933         config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
5934         config/xtensa/elf.h, config/xtensa/linux.h:
5935         Use the new macros.
5936         Where possible, remove redundant definitions of SIZE_ASM_OP,
5937         TYPE_ASM_OP, and TYPE_OPERAND_FMT.
5939 2002-07-24  Aldy Hernandez  <aldyh@redhat.com>
5941         * config/rs6000/eabi.h: Define TARGET_SPE_ABI, TARGET_SPE,
5942         TARGET_ISEL, and TARGET_FPRS.
5944         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5945         -mabi=spe, -mabi=no-spe, and -misel=.
5947         * config/rs6000/rs6000-protos.h: Add output_isel.
5948         Move vrsave_operation prototype here.
5950         * config/rs6000/rs6000.md (sminsi3): Allow pattern for TARGET_ISEL.
5951         (smaxsi3): Same.
5952         (uminsi3): Same.
5953         (umaxsi3): Same.
5954         (abssi2_nopower): Disallow when TARGET_ISEL.
5955         (*ne0): Same.
5956         (negsf2): Change to expand and rename old pattern to *negsf2.
5957         (abssf2): Change to expand and rename old pattern to *abssf2.
5959         New expanders: fix_truncsfsi2, floatunssisf2, floatsisf2,
5960         fixunssfsi2.
5962         Change patterns that check for TARGET_HARD_FLOAT or
5963         TARGET_SOFT_FLOAT to also check TARGET_FPRS.
5965         * config/rs6000/rs6000.c: New globals: rs6000_spe_abi,
5966         rs6000_isel, rs6000_fprs, rs6000_isel_string.
5967         (rs6000_override_options): Add 8540 case to
5968         processor_target_table.
5969         Set rs6000_isel for the 8540.
5970         Call rs6000_parse_isel_option.
5971         (enable_mask_for_builtins): New.
5972         (rs6000_parse_isel_option): New.
5973         (rs6000_parse_abi_options): Add spe and no-spe.
5974         (easy_fp_constant): Treat !TARGET_FPRS as soft-float.
5975         (rs6000_legitimize_address): Check for TARGET_FPRS when checking
5976         for TARGET_HARD_FLOAT.
5977         Add case for SPE_VECTOR_MODE.
5978         (rs6000_legitimize_reload_address): Handle SPE vector modes.
5979         (rs6000_legitimate_address): Disallow PRE_INC/PRE_DEC for SPE
5980         vector modes.
5981         Check for TARGET_FPRS when checking for TARGET_HARD_FLOAT.
5982         (rs6000_emit_move): Check for TARGET_FPRS.
5983         Add cases for SPE vector modes.
5984         (function_arg_boundary): Return 64 for SPE vector modes.
5985         (function_arg_advance): Check for TARGET_FPRS and
5986         Handle SPE vectors.
5987         (function_arg): Same.
5988         (setup_incoming_varargs): Check for TARGET_FPRS.
5989         (rs6000_va_arg): Same.
5990         (struct builtin_description): Un-constify mask field.  Move up in
5991         file.
5992         (bdesc_2arg): Un-constify and add SPE builtins.
5993         (bdesc_1arg): Same.
5994         (bdesc_spe_predicates): New.
5995         (bdesc_spe_evsel): New.
5996         (rs6000_expand_unop_builtin): Add SPE 5-bit literal builtins.
5997         (rs6000_expand_binop_builtin): Same.
5998         (bdesc_2arg_spe): New.
5999         (spe_expand_builtin): New.
6000         (spe_expand_predicate_builtin): New.
6001         (spe_expand_evsel_builtin): New.
6002         (rs6000_expand_builtin): Call spe_expand_builtin for SPE.
6003         (rs6000_init_builtins): Initialize SPE builtins.  Call
6004         rs6000_common_init_builtins.
6005         (altivec_init_builtins): Move all non-altivec builtin code to...
6006         (rs6000_common_init_builtins): ...here.  New function.
6007         (branch_positive_comparison_operator): Allow NE code for SPE.
6008         (ccr_bit): Return correct ccr bit for SPE fp.
6009         (print_operand): Emit crnor in 'D' case for SPE.
6010         New case 't'.
6011         Add SPE code for 'y' case.
6012         (rs6000_generate_compare): Generate rtl for SPE fp.
6013         (output_cbranch): Handle SPE hard floats.
6014         (rs6000_emit_cmove): Handle isel.
6015         (rs6000_emit_int_cmove): New.
6016         (output_isel): New.
6017         (rs6000_stack_info): Adjust stack frame so GPRs are saved in
6018         64-bits for SPE.
6019         (debug_stack_info): Add SPE info.
6020         (gen_frame_mem_offset): New.
6021         (rs6000_emit_prologue): Save GPRs in 64-bits for SPE abi.
6022         Change mode of frame pointer, when saving it, to Pmode.
6023         (rs6000_emit_epilogue): Restore GPRs in 64-bits for SPE abi.
6024         Misc cleanups and use gen_frame_mem_offset when appropriate.
6026         * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_PPC8540.
6027         (TARGET_SPE_ABI): New.
6028         (TARGET_SPE): New.
6029         (TARGET_ISEL): New.
6030         (TARGET_FPRS): New.
6031         (FIXED_SCRATCH): New.
6032         (RTX_COSTS): Add PROCESSOR_PPC8540.
6033         (ASM_CPU_SPEC): Add case for 8540.
6034         (TARGET_OPTIONS): Add isel= case.
6035         (rs6000_spe_abi): New.
6036         (rs6000_isel): New.
6037         (rs6000_fprs): New.
6038         (rs6000_isel_string): New.
6039         (UNITS_PER_SPE_WORD): New.
6040         (LOCAL_ALIGNMENT): Adjust for SPE.
6041         (HARD_REGNO_MODE_OK): Same.
6042         (DATA_ALIGNMENT): Same.
6043         (MEMBER_TYPE_FORCES_BLK): New.
6044         (FIRST_PSEUDO_REGISTER): Set to 113.
6045         (FIXED_REGISTERS): Add SPE registers.
6046         (reg_class): Same.
6047         (REG_CLASS_NAMES): Same.
6048         (REG_CLASS_CONTENTS): Same.
6049         (REGNO_REG_CLASS): Same.
6050         (REGISTER_NAMES): Same.
6051         (DEBUG_REGISTER_NAMES): Same.
6052         (ADDITIONAL_REGISTER_NAMES): Same.
6053         (CALL_USED_REGISTERS): Same.
6054         (CALL_REALLY_USED_REGISTERS): Same.
6055         (SPE_ACC_REGNO): New.
6056         (SPEFSCR_REGNO): New.
6057         (SPE_SIMD_REGNO_P): New.
6058         (HARD_REGNO_NREGS): Adjust for SPE.
6059         (VECTOR_MODE_SUPPORTED_P): Same.
6060         (REGNO_REG_CLASS): Same.
6061         (FUNCTION_VALUE): Same.
6062         (LIBCALL_VALUE): Same.
6063         (LEGITIMATE_OFFSET_ADDRESS_P): Same.
6064         (SPE_VECTOR_MODE): New.
6065         (CONDITIONAL_REGISTER_USAGE): Disable FPRs when target does FP on
6066         the GPRs.  Set FIXED_SCRATCH fixed in SPE case.
6067         (rs6000_stack): Add spe_gp_size, spe_padding_size,
6068         spe_gp_save_offset.
6069         (USE_FP_FOR_ARG_P): Check for TARGET_FPRS.
6070         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
6071         (SPE_CONST_OFFSET_OK): New.
6072         (rs6000_builtins): Add SPE builtins.
6074         * testsuite/gcc.dg/ppc-spe.c: New.
6076         * config/rs6000/eabispe.h: New.
6078         * config/rs6000/spe.h: New.
6080         * config/rs600/spe.md: New.
6082         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
6083         __SIMD__ for TARGET_SPE.
6085         * config.gcc: Add powerpc-*-eabispe* case.
6086         Add spe.h to user headers for powerpc.
6088 2002-07-24  Chris Demetriou  <cgd@broadcom.com>
6090         * config/mips/elf.h (STARTFILE_SPEC): Undo previous change.
6091         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
6092         * config/mips/isa3264.h (STARTFILE_SPEC): Likewise.
6094 2002-07-24  Richard Henderson  <rth@redhat.com>
6096         * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Use GOTO_SUBROUTINE_EXPR
6097         form when not optimizing.
6099 2002-07-24  David Mosberger  <davidm@hpl.hp.com>
6101         * config/ia64/ia64.c (gen_thread_pointer): Fix typo in marking
6102         thread_pointer_rtx as unchanging.
6104 2002-07-24  Michael Matz  <matz@suse.de>
6106         * ra-colorize.c (INV_REG_ALLOC_ORDER): New macro.
6107         (free_reg): Use it.
6109 2002-07-24  Richard Earnshaw  <rearnsha@arm.com>
6111         * arm.md (arm_buneq, arm_bltgt): put '\' before ';' in output
6112         pattern.
6113         (arm_buneq_reversed, arm_bltgt_reversed): Likewise.
6114         (movsicc, movsfcc, movdfcc): FAIL if UNEQ or LTGT.
6116 2002-07-24  Chris Demetriou  <cgd@broadcom.com>
6118         * config/mips/elf.h (STARTFILE_SPEC): Never include crt0.o.
6119         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
6120         * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine.
6122 Wed Jul 24 17:59:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
6124         * toplev.c (rest_of_compilation): Dump loops before clobbering
6125         the structure.
6127 Wed Jul 24 17:23:16 CEST 2002  Jan Hubicka  <jh@suse.cz>
6129         * rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.
6131 2002-07-24  Frank van der Linden  <fvdl@wasabisystems.com>
6133         PR optimization/7291
6134         * config/i386/i386.c (ix86_expand_clrstr): Fix bzero alignment
6135         problem on x86_64.
6137 2002-07-24  Gabriel Dos Reis  <gdr@nerim.net>
6139         * pretty-print.h: Add macros from cp/error.c
6141 2002-07-24  Alan Modra  <amodra@bigpond.net.au>
6143         * config/rs6000/rs6000-protos.h (mask_operand_wrap): Declare.
6144         (mask64_2_operand): Declare.
6145         (build_mask64_2_operands): Declare.
6146         (and64_2_operand): Declare.
6147         (extract_MB): Declare.
6148         (extract_ME): Declare.
6149         * config/rs6000/rs6000.c (mask64_operand): Allow all ones.  Remove
6150         CONST_DOUBLE code.
6151         (mask_operand_wrap): New insn predicate.
6152         (mask64_2_operand): Likewise.
6153         (and64_2_operand): Likewise.
6154         (build_mask64_2_operands): New function.
6155         (extract_MB): New function.
6156         (extract_ME): New function.
6157         (print_operand <case m,M>): Use extract_MB and extract_ME.
6158         (print_operand <case S>): Allow all ones.  Remove CONST_DOUBLE support.
6159         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 't'.
6160         (PREDICATE_CODES): Add and64_2_operand, mask_operand_wrap and
6161         mask64_2_operand.  Remove CONST_DOUBLE from mask64_operand.
6162         * config/rs6000/rs6000.md (andsi3_internal3): New
6163         (andsi3_internal3+1): Enable split for powerpc64.
6164         (andsi3_internal3+2): New split.
6165         (andsi3_internal4): Renamed old andsi3_internal3.
6166         (andsi3_internal5): New.
6167         (andsi3_internal5+1): Enable split for powerpc64.
6168         (andsi3_internal5+2): New split.
6169         (andsi3_internal6, andsi3_internal7, andsi3_internal8): New.
6170         (anddi3): Handle 't' constraint.
6171         (anddi3+1): New split.
6172         (anddi3_internal2): Handle 't' constraint.
6173         (anddi3_internal2+1): New split.
6174         (anddi3_internal3): Handle 't' constraint.
6175         (anddi3_internal3+1): New split.
6177 2002-07-24  Alan Modra  <amodra@bigpond.net.au>
6179         * config/rs6000/rs6000.md: Remove scratch reg on insns using
6180         addze and similar (plus (comparison r1 r2) r3) insns.  Add
6181         missing scratch reg in one case.  Formatting fixes.
6183 2002-07-24  Neil Booth  <neil@daikokuya.co.uk>
6185         * cppexp.c (parse_defined): Mark macro used.
6186         * cpphash.h (struct cpp_macro): New member "used".
6187         (_cpp_mark_macro_used, _cpp_warn_if_unused_macro): New.
6188         (struct cpp_reader): New member.
6189         * cppinit.c (cpp_finish_options): Set first_unused_line.
6190         (cpp_finish): Warn of unused macros if requested.
6191         (OPT_TABLE): New switches.
6192         (cpp_handle_option): Handle them.
6193         * cpplib.c (do_undef): Warn if macro unused.
6194         (do_ifdef, do_ifndef): Mark macro used.
6195         * cpplib.h (struct cpp_options): New member.
6196         * cppmacro.c (_cpp_warn_if_unused_macro): New.
6197         (enter_macro_context): Mark macro used.
6198         (_cpp_create_definition): Mark macro unused; warn if unused
6199         when redefined.
6200         * cpptrad.c (scan_out_logcial_line, push_replacement_text):
6201         Mark macros used.
6202         * doc/cppopts.texi: Update.
6204 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
6206         * dwarf2out.c (SECTION_ASM_OP,
6207         ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
6208         * system.h (SECTION_ASM_OP): Poison.
6209         * tree.c (FILE_FUNCTION_PREFIX_LEN): Remove.
6210         * config/alpha/alpha-interix.h, config/mips/linux.h
6211         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
6212         * config/mmix/mmix-protos.h, config/mmix/mmix.c
6213         (mmix_asm_output_define_label_difference_symbol): Remove.
6214         * config/mmix/mmix.h
6215         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
6216         * doc/tm.texi: Remove documentation.
6218 Tue Jul 23 21:49:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
6220         * recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
6221         (constrain_operands): Likewise.
6222         * regclass.c (record_reg_classes): Likewise.
6223         * reload.c (find_reloads): Likewise.
6224         * doc/md.texi: Likewise.
6226         * reload.c (find_reloads_toplev): Use simplify_gen_subreg.
6227         * simplify-rtx.c (simplify_subreg): When converting to a non-int
6228         mode, try to convert to an integer mode of matching size first.
6230         * simplify-rtx.x (simplify_subreg): When constructing a CONST_VECTOR
6231         from individual subregs, check that each subreg has been generated
6232         sucessfully.
6234 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
6236         * genautomata.c (VLA_HWINT_SHORTEN, VLA_HWINT_LAST): Remove.
6237         * df.c (HANDLE_SUBREG, FOR_EACH_BB_IN_BITMAP_REV,
6238         FOR_EACH_BB_IN_SBITMAP): Remove.
6239         * gcse.c (NEVER_SET, FOLLOW_BACK_EDGES): Remove.
6240         * haifa-sched.c (DONE_PRIORITY, MAX_PRIORITY, TAIL_PRIORITY,
6241         LAUNCH_PRIORITY, DONE_PRIORITY_P, LOW_PRIORITY_P): Remove.
6242         * loop.c (PREFETCH_BLOACK_IN_LOOP_MIN,
6243         PREFETCH_LIMIT_TO_SIMULTANEOUS): Remove.
6244         * regrename.c (REGNO_MODE_OK_FOR_BASE_P): Remove.
6246 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
6248         * pretty-print.h: New file.
6250 2002-07-23      Paul Koning     <pkoning@equallogic.com>
6252         * real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
6253         (LARGEST_EXPONENT_IS_NORMAL): Ditto.
6254         (VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
6255         (TARGET_G_FLOAT): Default to 0 if not defined.
6256         (ieeetoe): New, common routine to convert target format floats
6257         to internal form.
6258         (e24toe, e53toe): Change to use ieeetoe, distinguish DEC
6259         vs. others.
6260         (e113toe): Change to use ieeetoe.
6262 2002-07-23  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
6264         * real.c (REAL_WORDS_BIG_ENDIAN): Make sure it is 0 for DEC and 1 for
6265         IBM.
6266         (e53toe): Assume IEEE if non of DEC, IBM and C4X is defined.
6267         (e64toe): Remove special cases for DEC and IBM. Remove support for
6268         ARM_EXTENDED_IEEE_FORMAT.
6269         (e24toe): Remove special cases for DEC.
6270         (significand_size): Simplify. Indent.
6271         (ieee_format, ieee_24, ieee_53, ieee_64, ieee_113): New.
6272         (etoieee, toieee): New.
6273         (etoe113, toe113, etoe64, toe64, etoe53, toe53, etoe24, toe24): Use
6274         etoieee and toieee for IEEE arithmetic.
6276 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
6278         * doc/extend.texi: Say ISO C90, not ISO C89.
6279         * doc/invoke.texi: Likewise.
6280         * doc/standards.texi: Likewise.
6282 2002-07-23  Steve Ellcey  <sje@cup.hp.com>
6284         * gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
6285         Fix permutation of conversion and plus/mult.
6286         * gcc/builtins.c (expand_builtin_memcpy) Ensure return pointer is
6287         ptr_mode and not Pmode when POINTERS_EXTEND_UNSIGNED is defined.
6288         (expand_builtin_strncpy) Ditto.
6289         (expand_builtin_memset) Ditto.
6291 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
6293         Fix PR/7363:
6294         * c-common.c (c_sizeof_or_alignof_type): New function.
6295         (c_alignof): Remove definition.
6296         * c-common.h (c_sizeof, c_alignof): Define as macros.
6297         (c_sizeof_or_alignof_type): Declare.
6298         (my_friendly_assert): Moved from cp/cp-tree.h
6299         * c-typeck.c (c_sizeof): Remove definition.
6301 2002-07-23  Jan Hubicka  <jh@suse.cz>
6303         * gcse.c (try_replace_reg): Use num_changes_pending.
6304         * recog.c (num_changes_pending): New function.
6305         (validate_replace_src): Use validate_repalce_src_group.
6306         (validate_replace_src_group): New.
6307         * recog.h (validate_repalce_src_group): New.
6308         (num_changes_pending): Likewise.
6310 Tue Jul 23 12:16:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
6312         * calls.c (emit_library_call_value_1): If
6313         FUNCTION_ARG_PASS_BY_REFERENCE is true, pretend this is neither
6314         libcall, const call nor pure call.
6316 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
6318         * config/m88k/m88k.h (SECTION_ASM_OP): Remove.
6320 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
6322         * vmsdbgout.c (SECTION_ASM_OP): Remove.
6324 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
6326         * config/i386/i386.c (AT_BP): Remove.
6328 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
6330         * defaults.h (obstack_chunk_alloc, obstack_chunk_free):
6331         Default definition.
6332         * gcse.c: Don't define obstack_chunk_free.
6333         * collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
6334         flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
6335         integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
6336         reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
6337         Don't define obstack macros.
6339 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
6341         PR target/6744
6342         * config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace
6343         ASM_OPERANDS instructions.
6345 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
6347         PR target/7361
6348         * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
6349         constant addresses only on 68HC12.
6351 2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
6353         * cppfiles.c (stack_include_file): Correct test of whether
6354         a dependency should be output.
6356 2002-07-22  David Edelsohn  <edelsohn@gnu.org>
6358         * collect2.c (is_ctor_dtor): Add other possible JOINER values.
6360 2002-07-22  Richard Earnshaw  <rearnsha@arm.com>
6362         * arm.md (movqi): If optimizing and we can create pseudos, use
6363         a ZERO_EXTEND to load from memory, then copy the result into the
6364         target.
6365         (movhi): Likewise, but only for ARMv4.
6367 2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
6369         * ssa-ccp.c (PHI_PARMS): Remove.
6371 2002-07-22  Richard Sandiford  <rsandifo@redhat.com>
6373         * config/mips/mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS
6374         on big-endian targets.
6376 2002-07-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6378         * hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
6379         HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
6380         HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
6381         New formatting macros.
6383         * ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
6385 Mon Jul 22 15:27:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
6387         * rtlanal.c (subreg_regno_offset): Return correct offset for
6388         big endian paradoxical subregs.
6390         * optabs.c (expand_vector_unop): Don't expand using sub_optab
6391         if we got the wrong mode.
6393         * hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
6394         * genrecog.c (write_switch, write_cond): Use it.
6395         * genemit.c (gen_exp): Likewise.
6397 2002-07-22  Jakub Jelinek  <jakub@redhat.com>
6399         * c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
6401 2002-07-22  Jakub Jelinek  <jakub@redhat.com>
6403         * c-decl.c (build_compound_literal): Defer compound literal decls
6404         until until file end to emit them only if they are actually used.
6406 2002-07-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6408         * ra-build.c (check_conflict_numbers): Hide unused function.
6409         (livethrough_conflicts_bb): Avoid automatic aggregate
6410         initialization.
6411         (parts_to_webs_1): Avoid `U' integer constant modifier.
6412         (conflicts_between_webs): Wrap a variable in the macro controlling
6413         its usage.
6414         * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
6415         (dump_igraph, dump_graph_cost): Avoid string concatenation
6416         (dump_static_insn_cost): Avoid automatic aggregate
6417         initialization.
6418         * ra-rewrite.c (insert_stores): Avoid automatic aggregate
6419         initialization.
6420         (dump_cost): Avoid string concatenation
6422 2002-07-21  Richard Henderson  <rth@redhat.com>
6424         * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
6425         GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
6427 2002-07-21  Richard Henderson  <rth@redhat.com>
6429         * unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
6430         that are not unrolled completely.
6432 2002-07-21  Richard Henderson  <rth@redhat.com>
6434         * loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
6435         * loop.c (strength_reduce): Update.
6436         * toplev.c (rest_of_compilation): Do unrolling in the first
6437         loop pass, not the second.
6439 2002-07-21  Richard Henderson  <rth@redhat.com>
6441         * emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
6442         when flag_argument_noalias == 2.
6443         * alias.c (nonoverlapping_memrefs_p): Handle that.
6444         * print-rtl.c (print_mem_expr): Likewise.
6446 2002-07-21  Hartmut Schirmer  <hartmut.schirmer@arcor.de>
6448         * libgcc2.c (__divdi3, __moddi3): Use unary minus operator
6449         instead of __negdi2 directly.
6451 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
6453         * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
6454         * function.c (SYMBOL__MAIN): Remove definition.
6455         * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
6456         * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
6457         * profile.c (GCOV_INDEX_TO_BB): Remove.
6458         * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
6459         * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
6461 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
6463         * c-lex.c (GET_ENVIRONMENT): Remove.
6464         * collect2.c (GET_ENV_PATH_LIST): Remove.
6465         (prefix_from_env): Use GET_ENVIRONMENT.
6466         * cppinit.c (GET_ENV_PATH_LIST): Remove.
6467         (init_standard_includes): Use GET_ENVIRONMENT.
6468         * defaults.h (GET_ENVIRONMENT): Define here if not already.
6469         * gcc.c (GET_ENV_PATH_LIST): Remove.
6470         (make_relative_prefix, process_command): Update.
6471         * protoize.c (GET_ENV_PATH_LIST): Remove.
6472         (do_processing): Update.
6474 2002-07-21  Gabriel Dos Reis  <gdr@nerim.net>
6476         * c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
6477         (grokdeclarator): Likewise.
6478         * c-format.c (C_STD_NAME): Likewise.
6479         * c-lex.c (interpret_integer): Likewise.
6480         * c-typeck.c (build_array_ref): Likewise.
6481         * cpplex.c (_cpp_lex_direct): Likewise.
6482         * toplev.c (documented_lang_options): Likewise.
6484 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
6486         * c-format.c (T99_I, T99_UI): Remove.
6488 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
6490         * c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
6492 Sun Jul 21 21:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
6494         * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
6495         do_local_cprop.
6497 2002-07-21  Andreas Jaeger  <aj@suse.de>
6499         * reload1.c (fixup_abnormal_edges): Remove unused variable.
6501 2002-07-21  Bernd Schmidt  <bernds@redhat.com>
6503         Improvements for the ifcvt pass from Michael Meissner, with patches
6504         by Richard Sandiford <rsandifo@redhat.com>
6505         * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
6506         * ifcvt.c (cond_exec_changed_p): New static variable.
6507         (last_active_insn): New function, renamed from last_active_insn_p
6508         and changed to return the last active insn in a basic block. All
6509         callers updated.
6510         (block_fallthru): New function.
6511         (cond_exec_process_insns): New argument CE_INFO.  Pass it to
6512         IFCVT_MODIFY_INSN.  All callers updated.
6513         Return false if START or END are NULL.
6514         Handle case where we're processing an insn that is already
6515         conditional.
6517         (noce_process_if_block): CE_INFO argument rather than
6518         multiple args containing the involved basic blocks.  All callers
6519         changed.
6520         (process_if_block, merge_if_block, find_if_block,
6521         cond_exec_process_if_block): Likewise.
6523         (cond_exec_process_if_block): New arg DO_MULTIPLE_P.  All callers
6524         changed.
6525         Use new function last_active_insn to simplify some code.
6526         New code to handle multiple tests.
6527         Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
6528         cond_exec_changed_p to TRUE.
6530         (process_if_block): New code to handle multiple tests.
6531         (merge_if_block): Likewise.
6532         (find_if_header): New arg PASS.  Changed to return the currently
6533         processed basic block or NULL instead of true/false. All callers
6534         changed.
6535         Call IFCVT_INIT_EXTRA_FIELDS.
6536         (block_jumps_and_fallthru_p): New function.
6537         (find_if_block): Discover opportunities to convert multiple tests.
6538         Add additional debugging output.
6539         Update the ce_info structure before returning.
6541         (if_convert): Run multiple passes of if-conversion.
6542         * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
6543         IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
6544         IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
6545         these macros.
6547 Sun Jul 21 00:54:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
6549         * gcse.c: Include cselib.h
6550         (constptop_register): Break out from ...
6551         (cprop_insn): ... here; kill basic_block argument.
6552         (do_local_cprop, local_cprop_pass): New functions.
6553         (one_cprop_pass): Call local_cprop_pass.
6555 2002-07-20  Roger Sayle  <roger@eyesopen.com>
6557         * simplify-rtx.c (simplify_relational_operation): Optimize
6558         abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
6560 2002-07-20  Michae Matz  <matz@suse.de>
6562         * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
6564 2002-07-20  Neil Booth  <neil@daikokuya.co.uk>
6566         * cppexp.c (struct op): Add token pointer.
6567         (check_promotion, CHECK_PROMOTION): New.
6568         (optab): Update.
6569         (_cpp_parse_expr): Update, use token pointer of struct op.
6570         (reduce): Warn about change of sign owing to promotion.
6571         * cppinit.c (cpp_handle_option): New warning if -Wall.
6572         * cpplib.h (struct cpp_options): New member.
6574 2002-07-19  David Edelsohn  <edelsohn@gnu.org>
6576         * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
6577         fpu list.  Separate Power4 compare and delayed_compare.  Correct
6578         Power4 fpcompare.
6579         (fix_truncdfsi2_internal): Restore FPR preference.
6580         * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
6581         mcpu?power4, mcpu?604e.  Remove mpower, mpower2, mpowerpc.
6583 2002-07-19  Momchil Velikov <velco@fadata.bg>
6585         * reload1.c (reload_as_needed): Duplicate oldpat.
6587 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
6589         PR optimization/7130
6590         * loop.h (struct loop_info): Add "preconditioned".
6591         * unroll.c (unroll_loop): Set it.
6592         * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
6594 2002-07-19  Zack Weinberg  <zack@codesourcery.com>
6596         * rtl.def (CODE_LABEL): Remove slot 8.
6597         * rtl.h (struct rtx_def): Document new uses of jump and call fields.
6598         (LABEL_ALTERNATE_NAME): Delete.
6599         (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
6600         * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
6602         * final.c (output_alternate_entry_point): New.
6603         (final_scan_insn): Use it instead of
6604         ASM_OUTPUT_ALTERNATE_LABEL_NAME.  Do not consider possibility
6605         of a case label being an alternate entry point.
6607         * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
6608         * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
6609         Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
6610         (field deleted).
6611         * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
6613         * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
6614         LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
6615         * doc/tm.texi: Delete documentation of
6616         ASM_OUTPUT_ALTERNATE_LABEL_NAME.
6618 2002-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6620         * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
6621         (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
6622         (LINK_SPEC): Define.
6623         (STARTFILE_SPEC): Define.
6624         (ENDFILE_SPEC): Define.
6626         * config/mips/iris6-o32.h (LINK_SPEC): Move ...
6627         * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
6629         * config/mips/iris6-o32-gas.h: New file.
6630         * config.gcc (mips-sgi-irix6*o32): Use it.
6632         * config/mips/t-iris5-gas: New file.
6633         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
6635 2002-07-19  Neil Booth  <neil@daikokuya.co.uk>
6637         * cppexp.c (ALWAYS_EVAL): Remove.
6638         (optab, reduce): Always evaluate.
6639         (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
6640         only if not skipping evaluation.
6642 2002-07-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6644         * config/avr/avr.c (debug_hard_reg_set): Remove.
6646 2002-07-19  Chris Demetriou  <cgd@broadcom.com>
6648         * gcc.c (cpp_options): Include "%1" (cc1_spec).
6650 2002-07-19  Richard Henderson  <rth@redhat.com>
6652         * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
6654 2002-07-19  Alan Modra  <amodra@bigpond.net.au>
6656         * prefix.c (update_path): Don't zap single `.' path components
6657         unless followed by another `.' and fix typo last patch.
6659 2002-07-18  Neil Booth  <neil@daikokuya.co.uk>
6661         * cppexp.c (cpp_num_mul): Remove unused parameter.
6662         (UNARY, BINARY, OTHER, binary_handler): Remove.
6663         (ALWAYS_EVAL): New.
6664         (optab): Update.
6665         (reduce): Refactor to a large switch, don't use a function
6666         pointer.
6668 2002-07-18  Bo Thorsen  <bo@berlioz.suse.de>
6670         * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
6672 Thu Jul 18 19:39:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
6674         * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
6675         (sh_expand_binop_v2sf): Likewise.
6676         * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
6677         (int_gpr_dest, trunc_hi_operand): New functions.
6678         * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
6679         trunc_hi_operand.
6680         (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
6681         * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
6682         (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
6683         (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
6684         (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
6685         (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
6686         (extendhisi2_media+1, extendqisi2_media+1): Likewise.
6687         (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
6688         (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
6689         (movsf_ie+1): Likewise.
6690         (loaddi_trunc): Use int_gpr_dest predicate.
6691         (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
6692         (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
6693         (casesi_worker_0+[12], casesi_worker): Likewise.
6694         (shcompact_preserve_incoming_args): Likewise.
6695         (mov_nop): Use any_register_operand predicate.
6696         (mperm_w0): Use trunc_hi_operand predicate.
6698 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6700         * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
6701         * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
6702         numbering.
6704 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6706         * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
6708 2002-07-18  Richard Henderson  <rth@redhat.com>
6710         PR optimization/7147
6711         * ifcvt.c (noce_get_condition): Make certain that the condition
6712         is valid at JUMP.
6714 Thu Jul 18 13:44:51 2002  J"orn Rennecke <joern.rennecke@superh.com>
6716         * sh.c (barrier_align, push): Shut up compiler warnings.
6717         (initial_elimination_offset,sh_media_init_builtins): Likewise.
6718         (reg_no_subreg_operand): Delete.
6720 2002-07-17  Bo Thorsen  <bo@suse.de>
6722         * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
6723         (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
6724         (STARTFILE_SPEC): Remove hardcoded library paths.
6725         (ENDFILE_SPEC): Likewise.
6727 Thu Jul 18 09:38:59 CEST 2002  Jan Hubicka  <jh@suse.cz>
6729         * gcse.c (hoist_expr_reaches_here_p):  Stop once expr_bb is reached.
6731         * gcse.c (try_replace_reg): Do not return false positives.
6733 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
6735         * prefix.c: (update_path): Strip ".." components when prior dir
6736         doesn't exist.  Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
6738         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
6739         (ASM_OUTPUT_REG_POP): Likewise.
6741 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
6743         * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
6744         adjustments to first_reg for profiling case.
6745         (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
6746         Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
6747         Save static chain reg to sp + 12 on ABI_AIX_NODESC.
6748         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
6749         (ASM_OUTPUT_REG_POP): Define.
6750         * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
6751         (ASM_OUTPUT_REG_POP): Undef.
6753 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
6755         * cpplib.c (do_sccs): Handle #sccs on all systems.
6756         * system.h (SCCS_DIRECTIVE): Poison.
6757         * config/darwin.h, config/freebsd.h, config/netbsd.h,
6758         config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
6759         config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
6760         config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
6761         config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
6762         config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
6763         config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
6764         config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
6765         Remove all references to SCCS_DIRECTIVE.
6766         * doc/cpp.texi, doc/tm.texi: Update.
6768 Wed Jul 17 19:23:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
6770         * regrename.c (maybe_mode_change): New function.
6771         (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
6773 2002-07-17  Rodney Brown  <rbrown64@csc.com.au>
6775         * config/i386/i386.c (ix86_expand_int_movcc): In the general case
6776         suppress addition when either ct or cf are zero.
6778 2002-06-17  Eric Botcazou <ebotcazou@multimania.com>
6779             Glen Nakamura <glen@imodulo.com>
6781         PR optimization/6713
6782         * loop.c (loop_givs_rescan): Explicitly delete the insn that
6783         sets a non-replaceable giv after issuing the new one.
6785 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
6787         * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
6788         eval_token): Clarify and correct use of "bool" variables.
6789         * cpplib.h (struct cpp_options): Similarly.
6790         * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
6791         * cpptrad.c (recursive_macro): Similarly.
6793 Wed Jul 17 17:08:06 2002  J"orn Rennecke <joern.rennecke@superh.com>
6795         * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
6796         SHmedia code.
6798         * sh.md (cmpgtudi_media): Remove spurious @.
6800         * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
6801         * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
6803         * config/sh/lib1funcs.asm (init_trampoline): New entry point.
6804         * sh-protos.h (sh_initialize_trampoline): Declare.
6805         * sh.c (sh_initialize_trampoline): New function.
6806         * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
6807         (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
6808         (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
6809         (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
6810         * sh.md (initialize_trampoline, double_shori): New patterns.
6811         (initialize_trampoline_compact): Likewise.
6812         (shmedia32_initialize_trampoline_big): Remove.
6813         (shmedia32_initialize_trampoline_little): Likewise.
6815         * sh-protos.h (binary_float_operator): Remove declaration.
6816         (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
6817         * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
6818         (unary_float_operator, sh_expand_unop_v2sf): New functions.
6819         (sh_expand_binop_v2sf): Likewise.
6820         (zero_vec_operand): Delete.
6821         (SH_BLTIN_UDI): New builtin shared signature define.  Renumbered
6822         all non-shared ones.
6823         (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
6824         Enable nsb and byterev.
6825         * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
6826         (HARD_REGNO_MODE_OK): Allow TImode in fp regs.  Allow V2SFmode
6827         in general regs.
6828         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
6829         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.  Remove clause for
6830         immediate operands.
6831         (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
6832         Add DF_HI_REGS.
6833         (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
6834         lowpart fp regs - only for big endian for now.
6835         (LEGITIMATE_CONSTANT_P): Don't allow nonzero float vectors
6836         when FPU is in use.
6837         (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
6838         (LOAD_EXTEND_OP): NIL for SImode.
6839         (REGISTER_MOVE_COST): Add DF_HI_REGS.  Const for moves between
6840         general and fp registers is 4.
6841         PREDICATE_CODES: Amend binary_float_operator entry.
6842         Remove zero_vec_operand.  Add unary_float_operator.
6843         * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
6844         subreg SET_DEST.
6845         (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
6846         (truncdiqi2): Do sign extension.
6847         (movsi_media, movdi_media): Allow to use r63 to an fp register.
6848         (movdf_media, movsf_media): Likewise.
6849         (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
6850         Collapse to one define_insn_and_split.  Allow immediate sources.
6851         (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
6852         (movv4sf_i): Allow immediate sources.  Use simplify_gen_subreg.
6853         (movv4sf): Allow immediate sources.
6854         (movsf_media_nofpu+1): Don't split moves to FP registers.
6855         (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
6856         (movv8qi_i+3): Check against CONST0_RTX.
6857         (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
6858         for input and output operands.  Fix argument 3 to gen_mextr_rl.
6859         (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
6860         (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
6861         (mshf0_w, fipr, ftrv): Likewise.
6862         (mshfhi_l_di): Now insn_and_split.  Can handle FP regs.
6864 2002-07-17  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
6866         * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
6867         NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively.  All uses changed.
6868         * arm.c: Similarly.
6870 2002-07-17  Richard Sandiford  <rsandifo@redhat.com>
6872         * config/mips/mips-protos.h (mips_sign_extend): Declare.
6873         * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
6874         (TARGET_SWITCHES): Remove debugh.
6875         (ISA_HAS_TRUNC_W): New macro.
6876         (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
6877         (PREDICATE_CODES): Remove se_nonimmediate_operand.
6878         * config/mips/mips.c (movdi_operand): Allow sign-extensions of
6879         any SImode move_operand.
6880         (se_nonimmediate_operand): Remove.
6881         (mips_sign_extend): New.
6882         (mips_move_2words): Use it for sign-extended source operands.
6883         (override_options): Allow integers to be put into single FPRs.
6884         (mips_secondary_reload_class): Handle integers in float registers.
6885         * config/mips/mips.md (extendsidi2): Turn into a define_expand.
6886         (fix_truncsfsi2, fix_truncdfsi2): Likewise.
6887         (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
6888         (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
6889         (fix_truncdfdi2): Provide only a single alternative, in which the
6890         integer is in a float register.  Depend on TARGET_FLOAT64 rather
6891         than TARGET_64BIT.
6892         (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
6893         (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
6894         (movdi_internal2): Don't allow the source operand to be sign-extended.
6895         Add alternatives for float registers.
6896         (*movdi_internal2_extend): New.  Version of movdi_internal2 that
6897         allows sign-extension.
6898         (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
6899         (movsi_internal2): Rename to movsi_internal.  Add alternatives for
6900         float registers.  Remove TARGET_DEBUG_H_MODE test.
6901         (movhi_internal1): Rename to movhi_internal.  Don't check
6902         TARGET_DEBUG_H_MODE.  Fix transposed *d and *f source constraints.
6903         (movqi_internal1): Rename to movqi_internal and remove
6904         TARGET_DEBUG_H_MODE dependency.
6905         (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
6907 2002-07-16  Jim Wilson  <wilson@redhat.com>
6909         * toplev.c (lang_dependent_init): Create function context for
6910         init_expr_once.
6912 2002-07-16  Hans-Peter Nilsson  <hp@axis.com>
6914         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
6915         --gc-sections if -r.
6916         * config/cris/cris.h: Ditto.
6918 2002-07-16  Rodney Brown  <rbrown64@csc.com.au>
6920         * config/i386/i386.c (ix86_expand_int_movcc): In the case where
6921         the comparison directly gives a mask suppress addition when cf is
6922         zero by complementing the mask.
6924 2002-07-16  Nathanael Nerode  <neroden@gcc.gnu.org>
6926         * Makefile.in: Delete references to enquire.
6927         * enquire.c: Move to contrib.
6929 2002-07-16  Stan Shebs  <shebs@apple.com>
6931         * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
6932         config/rs6000/darwin.h.
6933         (ASM_OUTPUT_SKIP): Ditto.
6934         (TEXT_SECTION_ASM_OP): Ditto.
6935         (DATA_SECTION_ASM_OP): Ditto.
6936         (ASM_APP_ON): Define.
6937         (ASM_APP_OFF): Define.
6938         * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
6939         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
6941         * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
6942         (machopic_function_base_name): Declare result to be const.
6943         (machopic_non_lazy_ptr_name): Ditto.
6944         (machopic_stub_name): Ditto.
6945         * config/darwin-protos.h: Ditto for the prototypes.
6947 Wed Jul 17 00:22:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
6949         * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
6951 Wed Jul 17 00:20:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
6953         * i386.md (prefetch): Fix for 64bit mode.
6954         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
6956 Wed Jul 17 00:19:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
6958         * i386.h (MACHINE_DEPENDENT_REORG): New macro.
6959         * i386.c (x86_machine_dependent_reorg): New function.
6960         * i386-protos.h (x86_machine_dependent_reorg): Declare.
6962 2002-07-16  Zack Weinberg  <zack@codesourcery.com>
6964         * builtins.c (std_expand_builtin_va_start): Remove unused
6965         first argument.
6966         (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
6967         std_expand_builtin_va_start with just two arguments.
6968         * expr.h: Update prototypes.
6970         * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
6971         arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
6972         i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
6973         m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
6974         mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
6975         rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
6976         s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
6977         sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
6978         xtensa-protos.h, xtensa.h, xtensa.c:  Remove unused first
6979         argument from all implementations of EXPAND_BUILTIN_VA_START
6980         and all uses of std_expand_builtin_va_start.
6982 Tue Jul 16 19:32:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
6984         * regrename.c (copy_value): Don't record high part copies.
6986 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
6988         * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
6989         (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
6990         * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
6992 2002-07-16  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
6994         * doc/invoke.texi (NS32K Options): Document -mieee-compare option
6996         * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
6997         into addsi3 using register class "x" and "y".
6999         * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
7000         "earlyclobber" constraint modifier for some alternative.
7002         * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
7003         (*ble, *blt): Flag to indicate bCOND and sCOND should check for
7004         unordered.
7005         config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
7007         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
7008         (TARGET_SWITCHES): Add -mieee-compare option.
7009         (OVERRIDE_OPTIONS): 32332 is a subset of
7010         32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
7011         (TARGET_SWITCHES): Fix description of bit-field option.
7012         * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
7013         -mieee-compare option. Remove 32332 flag.
7015 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
7017         * explow.c (convert_memory_address): Remove special handling
7018         when POINTERS_EXTEND_UNSIGNED < 0.
7019         * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
7020         (movedi_symbolic): Fix typo.
7021         (load_fptr): Remove mode restriction so it works for SI and DI.
7022         (load_fptr_internal1): Ditto.
7023         (load_gprel): Ditto.
7024         (load_symptr_internal1): Ditto.
7025         (call_pic): Ditto.
7026         * config/ia64.c (call_operand): Modify mode check.
7027         (ia64_expand_load_address): Handle DI and SI addresses and symbols.
7028         (ia64_expand_move): Ditto.
7029         (ia64_assemble_integer): Handle SImode function pointers.
7030         (ia64_expand_fetch_and_op): Handle SImode mem addresses.
7031         (ia64_expand_op_and_fetch): Ditto.
7032         (ia64_expand_compare_and_swap): Ditto.
7033         (ia64_expand_lock_test_and_set): Ditto.
7034         (ia64_expand_lock_release): Ditto.
7036 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
7038         * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
7040 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
7041             Richard Earnshaw  <rearnsha@arm.com>
7043         * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
7044         CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF.  Simplify logic.
7046 2002-07-16  Richard Earnshaw  <rearnsha@arm.com>
7048         * arm.md (stack_tie): New insn.  Use an idiom that the alias code
7049         understands to be a memory clobber.
7050         * arm.c (arm_expand_prologue): Use it.
7052 2002-07-16  Daniel Berlin  <dberlin@dberlin.org>
7054         * ra-rewrite.c: #include reload.h, insn-config.h
7055         * ra-build.c: #include reload.h
7056         * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
7057         depend on reload.h, insn-config.h.
7059 Tue Jul 16 11:57:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
7061         * expr.c (emit_move_insn_1): Handle arbitrary moves that are
7062         the same size as a word.
7064         * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
7065         BYTES_BIG_ENDIAN into account.
7067 Tue Jul 16 12:22:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
7069         * i386.md (prefetch): Fix for 64bit mode.
7070         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
7072         * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
7074 2002-07-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7076         * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
7078 2002-07-15  Zack Weinberg  <zack@codesourcery.com>
7080         * ginclude/varargs.h: Replace with stub which issues #error.
7081         * ginclude/stdarg.h: __builtin_stdarg_start is renamed
7082         __builtin_va_start.
7084         * builtins.def (BUILT_IN_VARARGS_START): Delete.
7085         (BUILT_IN_VA_START): New.
7086         * builtins.c (expand_builtin_va_start): Eliminate first
7087         argument and code to implement pre-ISO varargs.
7088         (std_expand_builtin_va_start): Ignore first argument; it is
7089         always 1.
7090         (expand_builtin): Handle BUILT_IN_VA_START and
7091         BUILT_IN_STDARG_START identically.  Delete
7092         BUILT_IN_VARARGS_START case.
7094         * function.c (assign_parms): Delete hide_last_arg and all
7095         its uses.
7096         (mark_varargs): Delete function.
7097         * function.h (struct function): Delete 'varargs' bit.
7098         (current_function_varargs): Delete macro.
7099         * tree.h: Don't declare mark_varargs.
7101         * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
7102         (c_expand_body): Don't call mark_varargs.
7103         * c-objc-common.c: Handle BUILT_IN_VA_START and
7104         BUILT_IN_STDARG_START identically.  Delete
7105         BUILT_IN_VARARGS_START case.
7106         * c-tree.h: Don't declare c_mark_varargs.
7107         * c-parse.in: Remove grammar rules for '&...' (which has been
7108         commented out since before 2.7.2) and for '...' in K+R
7109         argument declarations.
7111         * builtins.c, function.c, integrate.c, sibcall.c,
7112         config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
7113         config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
7114         config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
7115         config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
7116         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
7117         config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
7118         config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
7119         config/stormy16/stormy16.c: Delete all references to
7120         current_function_varargs, and code predicated on that flag.
7122         * config/alpha/alpha.c (alpha_va_start),
7123         config/arc/arc.c (arc_va_start),
7124         config/i386/i386.c (ix86_va_start),
7125         config/mips/mips.c (mips_va_start),
7126         config/mn10300/mn10300.c (mn10300_va_start),
7127         config/rs6000/rs6000.c (rs6000_va_start),
7128         config/s390/s390.c (s390_va_start),
7129         config/sh/sh.c (sh_va_start),
7130         Ignore first argument; it is always 1.
7132         * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
7133         * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
7134         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
7135         Delete m68hc11_va_start.
7136         * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
7137         No need to define EXPAND_BUILTIN_VA_START.
7139         * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
7140         doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
7142 2002-07-15  Eric Botcazou  <ebotcazou@multimania.com>
7144         PR optimization/7153
7145         * regmove.c (optimize_reg_copy_3): Don't optimize if the register
7146         dies in more than one insn.
7148 2002-07-15  Jason Thorpe  <thorpej@wasabisystems.com>
7150         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
7152 2002-07-15  Michael Matz  <matz@suse.de>,
7153             Daniel Berlin  <dberlin@dberlin.org>,
7154             Denis Chertykov  <denisc@overta.ru>
7156         Add a new register allocator.
7158         * ra.c: New file.
7159         * ra.h: New file.
7160         * ra-build.c: New file.
7161         * ra-colorize.c: New file.
7162         * ra-debug.c: New file.
7163         * ra-rewrite.c: New file.
7165         * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
7166         (ra-rewrite.o): New .o files for libbackend.a.
7167         (GTFILES): Add basic-block.h.
7169         * toplev.c (flag_new_regalloc): New.
7170         (f_options): New option "new-ra".
7171         (rest_of_compilation): Call initialize_uninitialized_subregs()
7172         only for the old allocator.  If flag_new_regalloc is set, call
7173         new allocator, instead of local_alloc(), global_alloc() and
7174         friends.
7176         * doc/invoke.texi: Document -fnew-ra.
7177         * basic-block.h (FOR_ALL_BB): New.
7178         * config/rs6000/rs6000.c (print_operand): Write small constants
7179         as @l+80.
7181         * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
7182         (df_reg_table_realloc): Make size at least as large as max_reg_num().
7183         (df_insn_table_realloc): Size argument now is absolute, not relative.
7184         Changed all callers.
7186         * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
7187         * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
7189         2002-06-20  Michael Matz  <matz@suse.de>
7191         * df.h (struct ref.id): Make unsigned.
7192         * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
7194         2002-06-13  Michael Matz  <matz@suse.de>
7196         * df.h (DF_REF_MODE_CHANGE): New flag.
7197         * df.c (df_def_record_1, df_uses_record): Set this flag for refs
7198         involving subregs with invalid mode changes, when
7199         CLASS_CANNOT_CHANGE_MODE is defined.
7201         2002-05-07  Michael Matz  <matz@suse.de>
7203         * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
7205         2002-05-03  Michael Matz  <matz@suse.de>
7207         * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
7209         Sat Feb  2 18:58:07 2002  Denis Chertykov  <denisc@overta.ru>
7211         * regclass.c (regclass): Work with all regs which have sets or
7212         refs.
7213         (reg_scan_mark_refs): Count regs inside (clobber ...).
7215         2002-01-04  Michael Matz  <matzmich@cs.tu-berlin.de>
7217         * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
7218         (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
7219         add new refs.
7220         (df_bb_refs_update): Don't clear insns_modified here, ...
7221         (df_analyse): ... but here.
7223         * sbitmap.c (dump_sbitmap_file): New.
7224         (debug_sbitmap): Use it.
7226         * sbitmap.h (dump_sbitmap_file): Add prototype.
7228         2001-08-07  Daniel Berlin  <dan@cgsoftware.com>
7230         * df.c (df_insn_modify): Grow the UID table if necessary, rather
7231         than assume all emits go through df_insns_modify.
7233         2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
7235         * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
7236         increase REG_N_REFS (like flow does), so that regclass doesn't
7237         think a reg is useless, and thus, not calculate a class, when it
7238         really should have.
7240         2001-01-28  Daniel Berlin  <dberlin@redhat.com>
7242         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
7243         dataflow analysis.
7245 2002-07-15  Jakub Jelinek  <jakub@redhat.com>
7247         PR middle-end/7245
7248         * config/i386/i386.c (const_int_1_31_operand): New.
7249         * config/i386/i386.h (PREDICATE_CODES): Add it.
7250         * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
7251         ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
7252         lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
7254 2002-07-14  Alan Modra  <amodra@bigpond.net.au>
7256         PR target/7282
7257         * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
7258         (floatunssidf2): Likewise.
7259         (floatsidf_ppc64): New insn_and_split.
7260         (floatunssidf_ppc64): Likewise.
7262 2002-07-14  Andreas Jaeger  <aj@suse.de>
7264         * config.gcc (sh64): Remove unused
7265         target_requires_64bit_host_wide_int.
7267 2002-07-12  Roger Sayle  <roger@eyesopen.com>
7269         * expr.c [CLEAR_RATIO]: New macro defining the maximum number
7270         of move instructions to use when clearing memory, c.f. MOVE_RATIO.
7271         [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
7272         whether clear_by_pieces should be used to clear storage.
7273         (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
7275         * doc/tm.texi: Document these two new target macros.
7277 2002-07-12  Stephane Carrez  <stcarrez@nerim.fr>
7279         * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
7280         the scratch register.
7281         ("*movhi2_push"): Accept Z_REG because a split pattern can make use
7282         of it, forbid reload to use it.
7284 2002-07-12  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7286         * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
7287         usage on 64-bit hosts, return value was truncated to 32 bits.
7289 Fri Jul 12 00:49:36 2002  J"orn Rennecke <joern.rennecke@superh.com>
7291         * simplify-rtx.c (simplify_subreg): Handle floating point
7292         CONST_DOUBLEs.  When an integer subreg of a smaller mode than
7293         the element mode is requested, compute a subreg with an
7294         integer mode of the same size as the element mode first.
7296 Thu Jul 11 22:02:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
7298         * combine.c (try_combine): When converting a paradoxical subreg
7299         to an extension, take LOAD_EXTEND_OP into account.
7301 2002-07-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7303         * config.gcc (mips-sgi-irix6*o32): New configuration.
7305         * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
7306         configurations.
7307         * configure: Regenerate.
7309         * config/mips/iris6-o32-as.h: New file.
7310         * config/mips/iris6-o32.h: New file.
7312         * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
7313         (NM_FLAGS): Define.
7314         (HAVE_AS_SHF_MERGE): Undefine.
7316         * config/mips/t-iris5-as: New file.
7317         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
7319         * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
7320         SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
7321         SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
7322         dp-bit.c, fp-bit.c): Move ...
7323         * config/mips/t-iris5-6: ... here.
7324         New file, shared by IRIX 5 and IRIX 6.
7325         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
7326         mips-sgi-irix5*): Use it.
7328         * config/mips/iris6.h: Remove duplicate comment.
7330         * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
7331         !TARGET_IRIX6]: Define.
7332         (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
7334         * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
7336 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7338         * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
7339         and delete code to force constant to register.
7340         * pa-protos.h (adddi3_operand): Add prototype.
7341         * pa.c (adddi3_operand): New function.
7343 2002-07-11  Roger Sayle  <roger@eyesopen.com>
7345         * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
7346         non-ANSI builtin functions.
7348 Thu Jul 11 11:31:12 2002  J"orn Rennecke <joern.rennecke@superh.com>
7350         * rtl.h (gen_rtx_CONST_VECTOR): Declare.
7351         * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
7352         * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
7353         (gen_const_vector_0): Use it.
7355 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7357         * pa.md (adddi3): For 32-bit targets, force constants to a register
7358         if they don't fit in an 11-bit immediate.  Change insn predicate to
7359         arith11_operand.  Remove comment.
7360         * pa.c (cint_ok_for_move): Fix comment.
7361         (emit_move_sequence):  Don't directly split DImode constants on 32-bit
7362         targets.
7364 2002-07-11  Tim Josling  <tej@melbpc.org.au>
7366         Remove front end hard coding from gengtype.c.
7368         * Makefile.in
7369         (STAGESTUFF): add gtyp-gen.h
7370         (GTFILES): Remove front end specific files.
7371         (GTFILES_FILES_LANGS): New, from configure..
7372         (GTFILES_FILES_FILES): Likewise.
7373         (GTFILES_LANG_DIR_NAMES): Likewise.
7374         (GTFILES_SRCDIR): Likewise.
7375         (gtyp-gen.h): Build from configure information.
7376         (s-gtype): Remove command line parameters from gengtype.
7377         (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
7378         (mostlyclean): Delete files generated by and for gengtype.
7380         * c-config-lang.in: New file.
7382         * configure.in (all_gtfiles_files_langs): New. Accumulate files
7383         for each language.
7384         (all_gtfiles_files_files): New. Accumulate language for each file
7385         accumulated.
7386         (gtfiles): Pick up value for C.
7387         (srcdir): AC-SUBST this variable.
7388         (all_gtfiles_files_langs): AC-SUBST this variable.
7389         (all_gtfiles_files_files): AC-SUBST this variable.
7391         * configure: Regenerate.
7393         * gengtype-lex.l (parse_file): Make parameter const.
7395         * gengtype.c (toplevel): include gtyp-gen.h.
7396         (BASE_FILE_<language> unnamed enum): Delete.
7397         (lang_names): Delete (replaced by gtyp-gen.h)
7398         (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
7399         all references.
7400         (NUM_GT_FILES): New.
7401         (NUM_LANG_FILES): New.
7402         (srcdir_len): New.
7403         (NUM_BASE_FILES): Change calculation.
7404         (open_base_files): Change prototype to avoid warning.
7405         (startswith): Delete.
7406         (get_file_basename): Iterate through generated language list not
7407         hard coded list.
7408         (get_base_file_bitmap): Use generated list of files and languages.
7409         (close_output_files): Add prototype to rmove warning.
7410         (main): Iterate through list of generated files from gtyp-gen.h
7411         rather than command line paramaters.  Ignore duplicated file
7412         names.
7414         * gengtype.h (parse_file): Amend prototype for const parameter.
7416         * doc/sourcebuild.texi: Document gtfiles variable.
7418         * doc/gty.texi: Document changes to gtfiles variable for front
7419         ends.
7421         * objc/config-lang.in (gtfiles): Add files needed for objc front
7422         end.
7424 2002-07-10  Roger Sayle  <roger@eyesopen.com>
7426         PR c/2454
7427         * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
7428         to SUBREGs of MEMs.  (num_sign_bit_copies): Likewise.
7430 2002-07-10  Roger Sayle  <roger@eyesopen.com>
7431             Zack Weinberg <zack@codesourcery.com>
7433         * builtins.def: Make the argument types of abort and exit
7434         independent of the front-end.
7436 2002-07-11  Alan Modra  <amodra@bigpond.net.au>
7438         * config/rs6000/linux64.h (ASM_SPEC): Define.
7440 2002-07-10  Aldy Hernandez  <aldyh@redhat.com>
7442         * config/rs6000/rs6000.c (emit_frame_save): New.
7443         (rs6000_frame_related): Replace reg2 before reg.
7444         (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
7445         and eh_return registers.
7447 2002-07-10  Toon Moene  <toon@moene.indiv.nluug.nl>
7449         Revert all patches for optimization of Complex .op. Real.
7450         * complex_part_zero_p: Remove
7451         * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
7452         with x.
7453         * expand_cmplxdiv_wide: Ditto.
7454         * expand_binop: Ditto.
7456 2002-07-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7458         * config/avr/avr.md: Fix two 0x80000000 constants to make them
7459         negative also on 64-bit hosts.
7461         Default to -fno-reorder-blocks when optimizing for size.
7462         * config/avr/avr-protos.h (avr_optimization_options): Declare.
7463         * config/avr/avr.c (avr_optimization_options): New function.
7464         * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
7466         Optimize returning from simple functions.
7467         * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
7468         * config/avr/avr.c (avr_simple_epilogue): New function.
7469         * config/avr/avr.md (return): New insn.
7471 2002-07-10  Douglas B Rupp  <rupp@gnat.com>
7473         * config/i386/i386.c  (ix86_svr3_asm_out_constructor): Add
7474         HAS_INIT_SECTION to protection.
7476 2002-07-10  Mark Mitchell  <mark@codesourcery.com>
7478         * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
7479         deprecated.
7481 Wed Jul 10 19:50:03 2002  J"orn Rennecke <joern.rennecke@superh.com>
7483         * combine.c (gen_lowpart_for_combine): Handle vector modes.
7484         Supply non-VOID mode to simplify_gen_subreg.
7486 Wed Jul 10 18:48:55 CEST 2002  Jan Hubicka  <jh@suse.cz>
7488         * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
7490 2002-07-10  Jeffrey A Law  <law@redhat.com>
7492         * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
7493         as appropriate.
7495         * mn10200.c (expand_epilogue): Fix test to determine which scratch
7496         register to use.
7498 Wed Jul 10 16:06:00 2002  J"orn Rennecke <joern.rennecke@superh.com>
7500         * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
7501         Get mode from dest.
7502         If simplify_gen_subreg fails, try next equivalent.
7504 2002-07-09  Gabriel Dos Reis  <gdr@codesourcery.com>
7506         * diagnostic.h: #include location.h
7507         (location_t): Move definition to..
7508         * location.h: ... here.  New file.
7509         * tree.h: #include location.h
7510         (DECL_SOURCE_LOCATION): New macro.
7511         (DECL_SOURCE_FILE): Use.
7512         (DECL_SOURCE_LINE): Likewise.
7513         (struct tree_decl): REplace filename and linenum with locus.
7514         * Makefile.in (TREE_H): add location.h
7515         (diagnostic.o): Depends on gt-location.h
7516         (gt-location.h): Depends on s-gtype
7518 2002-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
7520         * config/rs6000/aix.h: Convert CPP_PREDEFINES to
7521         TARGET_OS_CPP_BUILTINS.
7522         * config/rs6000/aix31.h: Likewise.
7523         * config/rs6000/aix41.h: Likewise.
7524         * config/rs6000/aix43.h: Likewise.
7525         * config/rs6000/aix51.h: Likewise.
7526         * config/rs6000/beos.h: Likewise.
7527         * config/rs6000/darwin.h: Likewise.
7528         * config/rs6000/eabi.h: Likewise.
7529         * config/rs6000/eabisim.h: Likewise.
7530         * config/rs6000/linux.h: Likewise.
7531         * config/rs6000/linux64.h: Likewise.
7532         * config/rs6000/lynx.h: Likewise.
7533         * config/rs6000/mach.h: Likewise.
7534         * config/rs6000/rtems.h: Likewise.
7535         * config/rs6000/sysv4.h: Likewise.
7536         * config/rs6000/vxppc.h: Likewise.
7538 2002-07-09 Devang Patel <dpatel@apple.com>
7539         * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
7540         Do not allow ObjC objects as a parameter type for Objective-C methods.
7541         My previous patch restricted  'struct' also.
7543 2002-07-09  Neil Booth  <neil@daikokuya.co.uk>
7545         * cpperror.c (cpp_error): Default to directive_line within
7546         directives here.
7547         * cppexp.c (cpp_interpret_integer): Only use traditional
7548         number semantics in directives.
7549         * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
7550         (do_include_common): Similarly.
7551         * cpptrad.c (scan_out_logical_line): Implement accurate
7552         quoting of <> in #include.
7553         * doc/cpp.texi: Update.
7555 Tue Jul  9 22:37:44 2002  Stephen Clarke <stephen.clarke@superh.com>
7556                           J"orn Rennecke <joern.rennecke@superh.com>
7558         * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
7559         * sh.md (attribute issues): Replace with:
7560         (attribute pipe_model).  All users changed.
7561         (attribute type): Change pt / ptabs to pt_media / ptabs_media.
7562         All users changed.
7563         (function units sh5issue, sh5fds): New.
7564         (attribute is_mac_media): New.
7565         (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
7566         (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
7567         (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
7568         (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
7569         (call_media, call_value_media, sibcall_media): Likewise.
7570         (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
7571         (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
7572         (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
7573         (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
7574         (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
7575         (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
7576         (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
7577         (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
7578         (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
7579         (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
7580         (truncdfsf2_media): Likewise.
7581         (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
7582         (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
7584 Tue Jul  9 21:39:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
7586         * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
7587         * sh.c (general_extend_operand, inqhi_operand): New functions.
7588         * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
7589         alternatives using 'N' modifier.  Add type.
7590         (adddi3z_media): Likewise.  Enable generator function generation.
7591         (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
7592         exact predicates / constraints.  Add type.
7593         (subsi3): Allow 0 for SHMEDIA.
7594         (udivsi3_i4_media): Use match_operand for input values
7595         rather than hard registers.
7596         (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
7597         unnecessarily through hard registers.  Keep copies of pseudo
7598         registers outside of the libcall sequence.
7599         (mulsidi3_media, umulsidi3_media): Use more exact predicates.  Add type.
7600         (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
7601         (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
7602         (extendhidi2, extendqidi2): Likewise.
7603         (andsi3_compact): Name.
7604         (andcdi3): Enable generator function generation.
7605         (zero_extendhisi2, zero_extendqisi2): Rename to
7606         (zero_extendhisi2_compact, zero_extendqisi2_compact).
7607         (extendhisi2, extendqisi2): Rename to
7608         (extendhisi2_compact, extendqisi2_compact).
7609         (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
7610         (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
7611         (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
7612         (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
7613         (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
7614         (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
7615         (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
7616         (shmedia32_initialize_trampoline_big): Likewise.
7617         (shmedia32_initialize_trampoline_little): Likewise.
7618         (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
7619         (negdi2): Remove spurious T clobber.
7620         (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
7621         (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
7622         (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
7623         (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
7624         (ic_invalidate_line_media): Write back data cache before invalidating
7625         instruction cache.  Add type.
7626         (movsf_media): Sign-extend when the destination is a general
7627         purpose register.  Add type.
7628         (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
7629         (casesi_worker_0+1): Only increment ref count for proper label.
7630         (casesi_worker_0+2): Likewise.
7632 2002-07-09  Mark Mitchell  <mark@codesourcery.com>
7634         * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
7636 2002-07-09  Steve Ellcey  <sje@cup.hp.com>
7638         * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
7639         from Pmode to ptr_mode.
7640         (get_exception_pointer): Ditto.
7641         (connect_post_landing_pads): Ditto.
7642         (dw2_build_landing_pads): Ditto.
7644 2002-07-08  Steve Ellcey  <sje@cup.hp.com>
7645         * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
7646         * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
7647         (handle_pragma_redefine_extname): Change to use new function.
7649 2002-07-08  Roger Sayle  <roger@eyesopen.com>
7651         * combine.c (combine_simplify_rtx): Add an explicit cast
7652         to avoid signed/unsigned comparison warning.
7653         (simplify_if_then_else): Likewise.
7654         (extended_count): Likewise.
7655         (simplify_shift_const): Likewise.
7656         (simplify_comparison): Likewise.
7658 2002-07-08  Richard Sandiford  <rsandifo@redhat.com>
7660         * config/mips/mips.md: Add imadd type.  Update scheduler description
7661         to use imadd as well as imul.
7662         (*mul_acc_si, *madsi): Change imul alternatives to imadd.
7663         (*mul_acc_di, *mul_acc_64bit_di): Likewise.
7664         (*mul_sub_si): Likewise for first alternative.  Change second
7665         alternative from imul to multi.
7667 2002-07-07  Neil Booth  <neil@daikokuya.co.uk>
7669         * c-common.c (c_common_post_options): Update prototype;
7670         don't init backends if preprocessing only.
7671         * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
7672         * langhooks.h (struct lang_hooks): Update post_options to
7673         return a boolean.
7674         * toplev.c (parse_options_and_default_flags, do_compile,
7675         lang_independent_init): Update prototypes.  Allow the
7676         front end to specify that there is no need to initialize
7677         the back end.
7678         (general_init): Move call to hex_init here...
7679         (toplev_main): ...from here.  Pass flag for back end init
7680         suppression.
7682 Sun Jul  7 20:38:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
7684         * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
7685         (PREDICATE_CODES): Add entries for equality_comparison_operator,
7686         greater_comparison_operator and less_comparison_operator.
7687         * sh.c (print_operand): Add '\'' code.  Make 'o' handle
7688         more operators.
7689         (equality_comparison_operator): New function.
7690         (greater_comparison_operator, less_comparison_operator): Likewise.
7691         * sh.md (beq_media_i): Disable generator function generation.
7692         Use match_operator to handle a whole class of comparisons.  Add
7693         modifier in output template to provide branch prediction.  Add type.
7694         (bgt_media_i, ble_media_i): Likewise.  Allow zero operands.
7695         (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
7696         (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
7697         (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
7699 2002-07-07  Hans-Peter Nilsson  <hp@bitrange.com>
7701         Emit MMIX function prologue and epilogue as rtl.
7702         * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
7703         not unprototyped get_hard_reg_initial_val.
7704         ("call_value", "nonlocal_goto_receiver"): Ditto.
7705         ("return"): Make define_expand.  Move real insn to...
7706         ("*expanded_return"): New pattern.
7707         ("prologue", "epilogue"): New define_expands.
7708         * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
7709         (struct machine_function): New member in_prologue.
7710         (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
7711         (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
7712         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
7713         (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
7714         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
7715         (LOCAL_REGNO): Define.  Adjust comment.
7716         * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
7717         Consider regs_ever_live[MMIX_rJ_REGNUM], not just
7718         leaf_function_p.
7719         (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
7720         the prologue.
7721         (mmix_target_asm_function_prologue): Make static.  Just mark that
7722         the prologue is being emitted.  Move guts to...
7723         (mmix_expand_prologue): New function.  Adjust for emitting
7724         prologue as rtl.  For sizes, use HOST_WIDE_INT only.
7725         (mmix_target_asm_function_epilogue): Make static.  Simply emit a
7726         \n.  Move guts to...
7727         (mmix_expand_epilogue): New function.  Adjust for emitting
7728         epilogue as rtl.  For sizes, use HOST_WIDE_INT only.
7729         (mmix_target_asm_function_end_prologue): Mark that the prologue
7730         has ended.
7731         (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
7732         (mmix_conditional_register_usage): Improve comments.
7733         (mmix_local_regno): New function.
7734         (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
7735         * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
7736         (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
7737         (mmix_get_hard_reg_initial_val): Ditto.
7739 2002-07-06  Andreas Jaeger  <aj@suse.de>
7741         * toplev.c (set_fast_math_flags): Don't use ISO C style function
7742         definitions.
7743         * gengtype.c (open_base_files): Likewise.
7744         (close_output_files): Likewise.
7745         * tracer.c (find_best_predecessor): Likewise.
7746         (find_best_successor): Likewise.
7747         (ignore_bb_p): Likewise.
7749 2002-07-05  Roger Sayle  <roger@eyesopen.com>
7751         PR c++/7099
7752         * builtin-attrs.def: Define new attribute lists for use in
7753         builtins.def.
7754         * builtins.def [DEF_BUILTIN]: Modify to take an additional
7755         ATTRS argument, an enumerated value defined in builtin-attrs.def
7756         that represents the attribute list for the builtins.  Modify
7757         all builtin functions to pass an appropriate attribute list.
7758         Specify "abort", "exit", "_exit" and "_Exit" builtins here with
7759         their required noreturn attributes.
7760         * tree.h (enum_builtin_function): Ignore the additional parameter
7761         to DEF_BUILTIN.
7762         * builtins.c (built_in_names): Likewise.
7763         * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
7764         argument with a tree representing the functions attribute list.
7765         Pass this "attrs" argument to builtin_function.  No longer handle
7766         the noreturn_p processing manually.
7767         (built_in_attributes): Move the definitions from builtin-attrs.def
7768         before c_common_nodes_and_builtins.
7769         (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
7770         DEF_BUILTIN, passing it to both builtin_function and the changed
7771         builtin_function_2.
7773         * doc/extend.texi: Document __builtin_abort, __builtin_exit,
7774         __builtin__exit and __builtin__Exit.
7776 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
7778         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
7779         QI mode registers in soft registers.
7780         ("zero_extendqihi2"): Do not take into account soft registers
7781         for register allocation (use '*' constraint).
7783 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
7785         * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
7786         it is dead.
7787         ("*ashrsi3"): Likewise.
7788         ("*lshrsi3"): Likewise.
7790 2002-07-05  Vladimir Makarov  <vmakarov@redhat.com>
7792         * genautomata.c (output_max_insn_queue_index_def): Take latencies
7793         into account.
7795 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
7797         * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
7798         address computation and memory moves.
7800 2002-07-03  Mark Mitchell  <mark@codesourcery.com>
7802         PR c++/6706
7803         * dwarfout.c (output_reg_number): Fix warning message.
7804         (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
7805         before using it.
7807 2002-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7809         * gcc/gcc.c (asm_debug): Move initialization ...
7810         (init_spec): ... here.
7812 2002-07-05  Nathan Sidwell  <nathan@codesourcery.com>
7814         * c-parse.in (extdef): Append ';'.
7815         (old_style_parm_decls): Append ';'.
7817 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
7819         * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
7820         gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
7821         to gcc_cv_as_gstabs_flag.
7822         * configure: Rebuilt.
7824 2002-07-04  Geoffrey Keating  <geoffk@redhat.com>
7826         * ggc.h (ggc_add_root): Document as obsolete.
7828 Thu Jul  4 07:58:01 2002  J"orn Rennecke <joern.rennecke@superh.com>
7830         * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
7831         (mshflo_w): Likewise.
7833 Thu Jul  4 07:36:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
7835         * simplify-rtx.c (simplify_subreg): Reduce problem of finding
7836         vector mode subregs of constants to finding integer mode
7837         subregs of constants.
7838         * cse.c (cse_insn): Use simplify_gen_subreg.
7839         * convert.c (convert_to_integer): Don't strip a NOP_EXPR
7840         From a vector mode expression of different size than the
7841         target mode.
7843 2002-07-03  Eric Christopher  <echristo@redhat.com>
7845         * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
7846         * config/mips/mips.h: Remove deprecated -m<processor> options
7847         and cc1_cpu_spec associated.
7848         (CONSTANT_ADDRESS_P): Fix last patch.
7849         (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
7850         * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
7851         sunge_sf): Remove.
7853 2002-07-03  Stan Shebs  <shebs@apple.com>
7855         * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
7856         (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
7857         (CPP_SPEC): Remove insertion of APPLE_CC definition.
7859 2002-07-03  Roger Sayle  <roger@eyesopen.com>
7861         * combine.c (struct_undo): Change types of recorded substitutions
7862         to be either "int" or "rtx", instead of "unsigned int" and "rtx".
7863         (do_SUBST_INT): Change types of the substitution from unsigned int
7864         to int, to avoid compilation warning from SUBST_INT's only caller.
7866         (make_extraction): Add cast to avoid compilation warning.
7867         (force_to_mode): Remove cast to avoid compilation warning.
7869 2002-07-03  Eric Botcazou  <ebotcazou@multimania.com>
7870             Jeff Law  <law@redhat.com>
7872         * i386.md (length_immediate attribute): Fix typo.
7873         (length_address attribute): Likewise.
7874         (modrm attribute): Set it to 0 for immediate call instructions.
7875         (jcc_1 pattern): Set modrm attribute to 0.
7876         (jcc_2 pattern ): Likewise.
7877         (jump pattern): Likewise.
7878         (doloop_end_internal pattern): Explicitly set length.
7879         (leave pattern): Fix typo.
7880         (leave_rex64 pattern): Likewise.
7882 2002-07-03  David Edelsohn  <edelsohn@gnu.org>
7884         * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
7885         in FPR as preference.
7886         (fctiwz): Same.
7887         (floatdidf2, fix_truncdfdi2): Same.
7888         (floatdisf2, floatditf2, fix_trunctfdi2): Same.
7889         (floatditf2): Same.
7890         (floatsitf2, fix_trunctfsi2): SImode in GPR.
7891         (ctrdi): Remove FPR alternative and splitter.
7893 2002-07-03  Will Cohen  <wcohen@redhat.com>
7895         * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
7897 Wed Jul  3 10:24:16 2002  J"orn Rennecke <joern.rennecke@superh.com>
7899         * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
7900         than UNITS_PER_WORD, unless this is little endian and the first unit
7901         in this word.  Let extract_bit_field decide how to load an element.
7902         Force arguments to matching mode.
7903         (expand_vector_unop): Likewise.
7905         * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
7906         consist of word_mode elements.
7907         * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
7908         BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
7909         (build_unary_op): Allow vector types for BIT_NOT_EPR.
7910         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
7911         CONST_VECTOR.
7912         * optabs.c (expand_vector_binop): Try to perform operation in
7913         smaller vector modes with same inner size.  Add handling of AND, IOR
7914         and XOR.  Reject expansion to inner-mode sized scalars when using
7915         OPTAB_DIRECT.  Use simplify_gen_subreg on constants.
7916         (expand_vector_unop): Try to perform operation in smaller vector
7917         modes with same inner size.  Add handling of one's complement.
7918         When there is no vector negate operation, try a vector subtract
7919         operation.  Use simplify_gen_subreg on constants.
7920         * simplify-rtx.c (simplify_subreg): Add capability to convert vector
7921         constants into smaller vectors with same inner mode, and to
7922         integer CONST_DOUBLEs.
7924 2002-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7926         * c-parse.in (parsing_iso_function_signature): New variable.
7927         (extdef_1): New, copied from...
7928         (extdef): ... here.  Reset parsing_iso_function_signature.
7929         (old_style_parm_decls):  Reset parsing_iso_function_signature.
7930         (old_style_parm_decls_1): New, copied from old_style_parm_decls.
7931         Warn about ISO C style function definitions.
7932         (nested_function, notype_nested_function): Reset
7933         parsing_iso_function_signature.
7934         (parmlist_2): Set parsing_iso_function_signature.
7936         * doc/invoke.texi (-Wtraditional): Document new behavior.
7938 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
7940         * config.gcc (mips*el-*-*): Use tm_defines to set
7941         TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
7942         * config/mips/little.h: Remove.
7944 2002-07-02 Devang Patel <dpatel@apple.com>
7946         * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
7947         object as parameter. Prevent something like 'NSObject' to be
7948         used as the type for a method argument.
7950 2002-07-03  Neil Booth  <neil@daikokuya.co.uk>
7952         * cpptrad.c: Update comment.
7954 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
7956         * doc/cpp.texi: Update for traditional preprocessing changes.
7957         * goc/cppopts.texi: Similarly.
7959 2002-07-02  Ziemowit Laski  <zlaski@apple.com>
7961         * c-parse.in (designator): Enable designated initializers if ObjC.
7962         (objcmessageexpr): Remove references to objc_receiver_context.
7963         * objc/objc-act.h (objc_receiver_context): Remove decl.
7964         * objc/objc-act.c (objc_receiver_context): Remove.
7965         (lookup_objc_ivar): Test objc_method_context instead of
7966         objc_receiver_context.
7968 Tue Jul  2 18:45:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
7970         * sh.c (print_operand, case 'N'): Allow zero vector.
7971         (arith_reg_or_0_operand): Likewise.
7972         (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
7973         * sh.h (CONST_COSTS): 0 has 0 cost.  Check OUTER_CODE for
7974         IOR, XOR, PLUS and SET and take their respective constant
7975         ranges into account.
7976         (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
7977         * sh.md (subdi3, subdi3_media): Allow zero operand.
7978         (movv8qi_i+3): Only vector that is not split is the zero vector.
7979         Fix operand 3 to simplify_subreg.
7980         (movv2si_i): Split alternative 1.
7981         (mshfhi_l_di_rev+1): New splitter.
7983 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
7985         PR preprocessor/7029
7986         * cppinit.c (cpp_handle_option):  Suppress warnings with an
7987         implicit "-w" for "-M" and "-MM".
7988         * doc/cppopts.texi: Update.
7990 2002-07-01  Roger Sayle  <roger@eyesopen.com>
7992         * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
7993         identifier "bzero" to "memset".  Pass extra NULL_TREE argument to
7994         builtin_function.
7996 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
7998         * README.Portability: Fix typos.
8000 2002-07-01  Hans-Peter Nilsson  <hp@axis.com>
8002         PR target/7177
8003         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
8004         of indirections for register inside sign-extended mem part.
8006 2002-07-01  Roger Sayle  <roger@eyesopen.com>
8008         * tree.h:  Modify builtin_function interface to take an extra
8009         argument ATTRS, which is a tree representing an attribute list.
8011         * c-decl.c (builtin_function): Accept additional parameter.
8012         * objc/objc-act.c (builtin_function): Likewise.
8013         * f/com.c (builtin_function): Likewise.
8014         * java/decl.c (builtin_function): Likewise.
8015         * ada/utils.c (builtin_function): Likewise.
8016         * cp/decl.c (builtin_function): Likewise.
8017         (builtin_function_1): Likewise.
8019         * c-common.c (c_common_nodes_and_builtins): Pass an additional
8020         NULL_TREE argument to builtin_function.  (builtin_function_2):
8021         Likewise.
8022         * cp/call.c (build_java_interface_fn_ref): Likewise.
8023         * objc/objc-act.c (synth_module_prologue): Likewise.
8024         * java/decl.c (java_init_decl_processing): Likewise.
8025         * f/com.c (ffe_com_init_0): Likewise.
8027         * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
8028         NULL_TREE argument to builtin_function.
8029         * config/arm/arm.c (def_builtin): Likewise.
8030         * config/c4x/c4x.c (c4x_init_builtins): Likewise.
8031         * config/i386/i386.c (def_builtin): Likewise.
8032         * config/ia64/ia64.c (def_builtin): Likewise.
8033         * config/rs6000/rs6000.c (def_builtin): Likewise.
8035 2002-07-01  Zack Weinberg  <zack@codesourcery.com>
8037         * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
8038         * config/mips/t-isa3264: Likewise.
8039         * config/mmix/t-mmix: Likewise.
8041 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8043         * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
8045 2002-07-01  Roger Sayle  <roger@eyesopen.com>
8047         PR opt/4046
8048         * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
8049         A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
8050         B are truth values.
8052 2002-07-01  Nathanael Nerode  <neroden@gcc.gnu.org>
8054         * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
8056 2002-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
8058         * README.Portability (Function prototypes): Give an example of
8059         declaring and defining a function with no arguments.
8061         * README.Portability (Function prototypes): Document new
8062         variable-argument function macros.
8064 Mon Jul  1 19:55:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
8066         * sh.c (langhooks.h): Include.
8067         (sh_init_builtins, sh_media_init_builtins): New functions.
8068         (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
8069         (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
8070         (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
8071         (builtin_description): New struct tag.
8072         (signature_args, bdesc): New arrays.
8073         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
8074         (print_operand): Add 'N' modifier.
8075         * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
8076         (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
8077         (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
8078         (CONST_COSTS): Add special case for SHmedia AND.
8079         (PREDICATE_CODES): Add and_operand, arith_reg_dest,
8080         extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
8081         sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
8082         target_operand can also be const or unspec.
8083         * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
8084         (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
8085         (attribute type): Add new types.
8086         (anddi3): Add splitter.
8087         (movdi_const_16bit+1): Add code to handle vector constants and
8088         bitmasks efficiently.
8089         (shori_media): Have generator function made.
8090         (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
8091         (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
8092         (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
8093         (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
8094         (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
8095         (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
8096         (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
8097         (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
8098         (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
8099         (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
8100         (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
8101         (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
8102         (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
8103         (mshflo_b,  mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
8104         (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
8105         (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
8106         (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
8107         (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
8108         (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
8109         (ftrv): Likewise.
8111         (fpu_switch+1, fpu_switch+2): Remove constraint.
8113 2002-07-01  Aldy Hernandez  <aldyh@redhat.com>
8115         * tree.c (build_function_type_list): Update function comment.
8116         Rename first argument to return_type.
8118 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
8120         * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
8121         tradcif.y and related files.
8123 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
8125         * cpptrad.c (skip_whitespace): Pass pointer to prior char.
8127 2002-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8129         * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
8131 See ChangeLog.7 for earlier changes.