2002-05-03 David S. Miller <davem@redhat.com>
[official-gcc.git] / gcc / ChangeLog
blob121f1fa89d88eab5333bb1433c8c1238d27933d3
1 2002-05-03  David S. Miller  <davem@redhat.com>
3         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
4         checks on it, always defined for Sparc.
6         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
7         Tweak, and add more detailed comments.
9 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
11         * Re-apply patch accidentally reverted with
12         DFA scheduler merge: remove all rules and variables to slurp
13         source files out of libiberty and rebuild them with HOST_CC.
14         ($(HOST_PREFIX_1)varray.o): New rule.
15         (genattrtab rule): Word wrap.
17 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
19         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
20         (CPP_SUBTARGET_SPEC): Define.
21         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
22         cpp_subtarget specs.
23         (CPP_SPEC): Redefine to include %(cpp_subtarget).
25 2002-05-03  David S. Miller  <davem@redhat.com>
27         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
28         * target.h (struct gcc_target): Delete cycle_display member.
30         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
31         (rtx_needs_barrier): Delete reference to cycle_display unspec.
32         (ia64_sched_reorder2): Mention need for cycle display handling
33         once such notes exist.
35 2002-05-03  Richard Henderson  <rth@redhat.com>
37         * real.c (etoasc): Strip most trailing zeros for clarity.
38         * sched-vis.c: Include real.h.
39         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
40         * Makefile.in (sched-vis.o): Add real.h.
42 2002-05-03  David S. Miller  <davem@redhat.com>
44         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
45         no longer needed.
47 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
49         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
50         when we get an out of range literal.
51         (altivec_expand_ternop_builtin): Same.
52         (altivec_expand_unop_builtin): Same.
53         (altivec_expand_builtin): Same, for dss.
54         (altivec_expand_builtin): Use trees instead of rtl when
55         determining literal argument validity.
57 2002-05-03  David S. Miller  <davem@redhat.com>
59         Delete cycle display scheduling hook.
60         * config/ia64/ia64.c (ia64_cycle_display,
61         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
62         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
63         and use emit_insn_before instead of ia64_emit_insn_before.
64         * config/ia64/ia64.md (unspec usage): Delete cycle display.
65         (cycle_display): Delete insn pattern.
66         * config/sparc/sparc.md (unspec usage): Delete cycle display.
67         (cycle_display): Delete insn pattern.
68         * config/sparc/sparc.c (sparc_cycle_display,
69         TARGET_SCHED_CYCLE_DISPLAY): Delete.
70         * doc/md.texi (cycle_display): Don't mention.
71         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
73 2002-05-03  Richard Henderson  <rth@redhat.com>
75         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
76         * recog.h: Declare them.
78         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
79         * config/sparc/sparc.md: Use store_data_bypass_p instead.
80         * config/sparc/sparc-protos.h: Update.
82 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
84         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
85         -D__arch64__.  Add -D_LP64.
86         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
87         from sparc.h.
88         (CPP_ARCH64_SPEC): Likewise.
89         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
90         (NO_BUILTIN_SIZE_TYPE): Undef.
92 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
94         * genautomata.c (min_issue_delay_pass_states): Change return type
95         in the prototype.
96         (min_issue_delay_pass_states): Change the algorithm.
97         (min_issue_delay): Set up min_insn_issue_delay for the state.
98         (output_min_issue_delay_table): Interchange the nested loops and
99         and initiate min_insn_issue_delay for states.
101 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
103         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
104         jump is simplejump.
106 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
108         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
109         sequence.
111 2002-05-03  Richard Henderson  <rth@redhat.com>
113         PR opt/6534
114         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
115         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
116         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
117         code before JUMP, not EARLIEST.
119 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
121         * c-format.c (check_format_info_main): Don't check for presence of
122         parameter for * width until after operand number has been read,
123         and only check for it if format parameters are available.
124         Fixes PR c/6547.
126 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
128         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
129         (LINK_SPEC): Undef before defining.
131 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
133         PR preprocessor/6489
134         * tradcpp.c (fixup_newlines): New.
135         (main, finclude): Use it.
137 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
139         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
140         * config/mips/mips.c (mips_unique_section): Strip encoding from
141         decl name.
143 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
145         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
146         mode.
148 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
150         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
151         (Specific): Removed buildstats references.
152         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
153         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
154         Accomodate Solaris versions beyond 8.
155         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
156         (Specific, *-*-solaris2.8): Removed, obsolete.
158 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
160         PR target/6542
161         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
162         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
163         fill leaf_reg_remap with identity.
164         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
166 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
168         * config/h8300/crti.asm: Remove trailing spaces.
169         * config/h8300/h8300.c: Likewise.
170         * config/h8300/lib1funcs.asm: Likewise.
172 2002-05-02  Jason Merrill  <jason@redhat.com>
174         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
175         * c-decl.c (c_init_decl_processing): Use it.
176         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
177         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
178         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
180 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
182         * regrename.c: Fix formatting.
183         * tree.c: Likewise.
185 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
187         * i386.md (attribute memory): Handle compares properly.
189 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
191         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
192         to none.
194 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
196         * function.c: Fix formatting.
198 2002-05-02  Jan Hubicka  <jh@suse.cz>
200         * haifa-sched.c (schedule_insn): Print table of instructions and
201         reservations.
202         (sched_block): Do not print ready list at verbosity level 1.
203         * sched-vis.c (print_insn): Make global.
204         * sched-ebb.c (ebb_print_insn): Rename from...
205         (print_insn): ... this one.
206         * sched-int.h (print_insn): Declare
208 2002-05-02  Richard Henderson  <rth@redhat.com>
210         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
211         emitted by cycle_display.
213 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
215         * doc/install.texi (*-*-freebsd*): Update to latest status.
217 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
219         PR target/6540
220         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
221         * config/float-sparc.h: Assume 128-bit long double if
222         __LONG_DOUBLE_128__ is defined.
224 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
226         * genattrtab.c (write_function_unit_info): Add a dummy element
227         when num_units == 0.
229 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
231         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
232         TYPE_MODE (double_type_node) instead of DFmode.
234 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
236         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
237         jumps post reload.
238         * toplev.c (rest_of_compilation): Revert Richard's patch.
240 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
242         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
244 2002-05-02  Catherine Moore  <clm@redhat.com>
246         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
248 2002-05-02  Kazu Hirata  <kazu@hxi.com>
250         * combine.c: Fix comment typos.
251         * expr.c: Likewise.
252         * genautomata.c: Likewise.
253         * stmt.c: Likewise.
254         * tree.h: Likewise.
256 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
258         * doc/install.texi: State GNAT version requirements.
260 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
262         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
263         of the frame pointer or arg pointer register which strict register
264         checking is not enabled.
266 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
268         * gcc.dg/altivec-8.c: New.
270         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
271         PRE_INC and PRE_DEC for altivec modes.
273 2002-05-01  Bruce Korb  <bkorb@gnu.org>
275         * fixinc/check.tpl(set-writable): make sure the function exists first
276         * fixinc/inclhack.def(alpha_assert): fix test_text
277         * fixinc/tests/base/assert.h: add in missing result
279 2002-05-01  Jeff Law  <law@redhat.com>
281         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
282         'T' constraint.
284 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
286         * dbxout.c (dbxout_type): Emit size information for range types,
287         as well, but only when using GDB extensions.
289 2002-05-01  Richard Henderson  <rth@redhat.com>
291         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
292         target-independent gnu binutils date test.
294 2002-05-01  Richard Henderson  <rth@redhat.com>
296         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
297         info before expunging the block.
299 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
301         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
302         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
303         -M -or -MM is in effect.
305 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
307         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
308         A29k configurations.
309         * doc/install.texi: Update to match.
311 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
313         PR bootstrap/6514
314         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
315         for duplicates. Always loop over whole list.
317 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
319         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
321 2002-05-01      Joel Sherrill <joel@OARcorp.com>
323         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
324         support routines.
326 2002-05-01      Joel Sherrill <joel@OARcorp.com>
328         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
330 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
332         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
333         (nabs_nopower): Same.
334         (floatdisf2): New pattern.
335         (absdi2): Convert to define_insn_and_split.
336         (nabsdi2): Same.
337         (trunctfsf2): Same.
338         (floatditf2): Same.
339         (floatsitf2): Same.
340         (fix_trunctfdi2): Same.
341         (fix_trunctfsi2): Same.
343 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
345         * doc/install.texi: Update Texinfo version requirement
346         documentation.
348 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
350         PR target/6512, PR target/5628
351         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
352         when memory is not aligned.
353         (movdf_insn_v9only_vis): Likewise.
354         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
355         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
356         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
358 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
360         * gcc.dg/altivec-7.c: New.
362         * config/rs6000/altivec.h: Cleanup.
364 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
366         * doc/invoke.texi (Option Summary): Add -mvrsave=.
367         (RS/6000 and PowerPC Options): Document -mvrsave=.
369         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
370         (rs6000_altivec_vrsave_string): Same.
371         (rs6000_override_options): Call rs6000_parse_vrsave_option.
372         (rs6000_parse_vrsave_option): New.
373         (rs6000_stack_info): Only generate vrsave instructions when
374         TARGET_ALTIVEC_VRSAVE.
376         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
377         (rs6000_altivec_vrsave_string): Define extern.
378         (rs6000_altivec_vrsave): Same.
379         (TARGET_ALTIVEC_VRSAVE): New.
381 2002-04-30  Richard Henderson  <rth@redhat.com>
383         PR opt/6516
384         * toplev.c (rest_of_compilation): Don't run cross-jump before
385         bb-reorder.
387 2002-04-30  Tom Rix  <trix@redhat.com>
389         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
390         check which_alternative.
392 2002-04-30  Kazu Hirata  <kazu@hxi.com>
394         * cpplex.c: Fix comment formatting.
395         * function.c: Likewise.
396         * integrate.c: Likewise.
397         * regrename.c: Likewise.
398         * sibcall.c: Likewise.
399         * simplify-rtx.c: Likewise.
400         * tree-inline.c: Likewise.
402 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
404         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
405         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
406         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
407         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
408         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
409         * pa/x-ada: New file.  Define ADA_CFLAGS.
411 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
413         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
414         from MMIX_LAST_REGISTER_FILE_REGNUM.
415         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
416         (struct machine_function): New member highest_saved_stack_register
417         previously static variable in mmix.c.
418         (MACHINE_DEPENDENT_REORG): Define.
419         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
420         (MMIX_OUTPUT_REGNO): New.
421         (mmix_target_asm_function_prologue): Move calculation of last used
422         saved-stack-register into...
423         (mmix_machine_dependent_reorg): New function.  Update to also handle
424         !TARGET_ABI_GNU.
425         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
426         register names, simplify somewhat by new variable regno.
427         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
428         register.
429         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
430         emitting register names.
431         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
432         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
433         Remove fixed FIXME.
434         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
435         Declare.
437         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
439 2002-04-30  Richard Henderson  <rth@redhat.com>
441         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
442         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
443         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
444         emit_tfmode_cvt): New.
445         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
446         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
447         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
448         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
449         * config/sparc/sparc-protos.h: Update.
451 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
453         * install.texi (Final install): Add to the list of info to include
454         in a report of a successful bootstrap, and add link to 3.1 list.
456 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
458         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
459         (mode): Add vector modes
460         (i387): Kill attribute.
461         (unit): New attribute.
462         (length_immediate): Grok new types.
463         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
464         (modrm): Use "unit".
465         (memory): Handle MMX/SSE properly.
466         (scheduling descriptions): Kill uses of fop1.
467         (sse, mmx, fp patterns): Set type and mode properly.
469 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@cygnus.com)
471         * pa.c (override_options): Default to PA8000 scheduling.
472         * doc/invoke.texi (HP-PA options): Mention newly added 7300
473         scheduling parameter.
475         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
476         handling of double precision multiplies.
478         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
479         fpdiv and fpsqrt instructions.
480         (7200 & 7300 scheduling): Fix typo in handling of
481         store-load and store-store penalties.
483 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
485         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
486         mips.  Add two missing commas.
488 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
490         * doc/contrib.texi (Contributors): Update Paolo Carlini's
491         and Benjamin Kosnik's entries.
493 2002-04-29  David S. Miller  <davem@redhat.com>
495         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
496         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
497         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
498         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
500 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
502         * combine.c (find_split_point): Use gen_int_mode.
504 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
506         Merging code from dfa-branch:
508         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
510         * genautomata.c (output_reserv_sets): Fix typo.
512         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
514         * genautomata.c (output_reserv_sets): Remove
515         next_cycle_output_flag.
517         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
519         * sched-rgn.c (init_ready_list): Make the DFA code handle
520         USE/CLOBBER insns in the same way as the traditional
521         scheduler.
522         (new_ready): Similarly..
524         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
526         * haifa-sched.c (schedule_block): Change the DFA state only after
527         issuing insn.
529         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
531         * pa.c (hppa_use_dfa_pipeline_interface): New function.
532         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
533         (override_options): Add PA7300 scheduling support.
534         (pa_adjust_cost): Update various comments.  Properly
535         handle anti and output dependencies when using the
536         DFA scheduler.
537         (pa_issue_rate): Add PA7300 scheduling support.
538         (pa_can_combine_p): Call extract_insn before calling
539         constrain_operands (taken from mainline tree).
540         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
541         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
542         descriptions using DFA descriptions.  Add PA7300
543         scheduling support.
545         2002-03-30  David S. Miller  <davem@redhat.com>
547         Add UltraSPARC-III DFA scheduling support.
548         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
549         Update FP conditional move on register insn patterns to use it, as
550         appropriate.
551         (define_attr cpu): Add ultrasparc3.
552         (define_attr us3load_type): New, update integer load patterns to
553         set it, as appropriate.
554         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
555         (rest): Add UltraSPARC3 scheduling description.
556         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
557         (PROCESSOR_ULTRASPARC3): New.
558         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
559         ({ASM,CPP}_CPU_SPEC): Likewise.
560         (REGISTER_MOVE_COST): Likewise.
561         (RTX_COSTS): Likewise.
562         * config/sparc/sparc.c (sparc_override_options,
563         sparc_initialize_trampoline, sparc64_initialize_trampoline,
564         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
565         sparc_issue_rate): Likewise.
566         * config/sparc/sol2.h: Likewise.
567         * config/sparc/sol2-sld-64.h: Likewise.
568         * config/sparc/linux64.h: Likewise.
570         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
572         * doc/md.texi: Add comments about usage the latency time for the
573         different dependencies and about case when two or more conditions
574         in different define_insn_reservations returns TRUE for an insn.
576         * doc/md.texi: Add reference for automaton based pipeline
577         description.
579         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
581         * doc/passes.texi: Add missed information about genattrtab.
583         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
585         * genautomata.c (output_automata_list_transition_code): Check
586         automata_list on NULL.
588         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
590         * genautomata.c (output_insn_code_cases,
591         output_automata_list_min_issue_delay_code,
592         output_automata_list_transition_code,
593         output_automata_list_state_alts_code): Comment the functions.
595         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
597         * genautomata.c (automata_list_el_t): New typedef.
598         (get_free_automata_list_el,free_automata_list_el,
599         free_automata_list, automata_list_hash, automata_list_eq_p,
600         initiate_automata_lists, automata_list_start, automata_list_add,
601         automata_list_finish, finish_automata_lists,
602         output_insn_code_cases, output_automata_list_min_issue_delay_code,
603         output_automata_list_transition_code,
604         output_automata_list_state_alts_code, add_automaton_state,
605         form_important_insn_automata_lists): New functions and prototypes.
606         (insn_reserv_decl): Add members important_automata_list and
607         processed_p.
608         (ainsn): Add members important_p.
609         (automata_list_el): New structure.
610         (first_free_automata_list_el, current_automata_list,
611         automata_list_table): New global variables.
612         (create_ainsns): Initiate member important_p.
613         (output_internal_min_issue_delay_func): Generate the switch and
614         call output_insn_code_cases.
615         (output_internal_trans_func, output_internal_state_alts_func):
616         Ditto.
617         (generate): Call initiate_automata_lists.
618         (automaton_states): New global variable.
619         (expand_automata): Call form_important_insn_automata_lists.
620         (write_automata): Call finish_automata_lists.
622         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
624         * genautomata.c (add_excls, add_presence_absence): Check that
625         cpu units in the sets belong the same automaton.
627         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
628         about that cpu units in the sets belong the same automaton.
630         * doc/md.texi: Ditto.
632         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
633                     Nitin Gupta  <niting@noida.hcltech.com>
635         * config/sh/sh.c (sh_use_dfa_interface): New function.
637         (sh_issue_rate): New Function.
638         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
639         TARGET_SCHED_ISSUE_RATE: define.
641         * config/sh/sh.md: Add DFA based pipeline description for SH4.
643         (define_attr insn_class): New attribute used for DFA
644          scheduling.
645         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
646         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
647          cmpeqdi_t): Likewise.
649         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
650          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
651          ex_group.
652         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
654         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
656         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
657         break.
659         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
661         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
662         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
663         necessary.
664         (output_dfa_start_func): Initiate new variable insn_codes_length,
665         (write_automata): Output definition of the new variable.
667         2001-10-02  David S. Miller  <davem@redhat.com>
669         * haifa-sched.c (advance_one_cycle): New function.
670         (schedule_block): Use it.
671         (queue_to_ready): Use it, and also make sure to advance the DFA
672         state on all stall cycles, not just those where insn_queue links
673         are found.
675         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
677         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
678         non-zero if the highest-priority instruction could be scheduled.
679         (choose_ready): Remove last argument from max_issue call.
681         2001-09-28  David S. Miller  <davem@redhat.com>
683         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
684         ultrasparc and 3 for other multi-issue sparcs.
686         2001-09-27  David S. Miller  <davem@redhat.com>
688         * config/sparc/sparc.md (cycle_display): New pattern.
689         * config/sparc/sparc.c (sparc_cycle_display): New.
690         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
692         2001-09-25  David S. Miller  <davem@redhat.com>
694         Convert all of Sparc scheduling to DFA
695         * config/sparc/sparc.md: Kill all define_function_unit
696         directives and replace with DFA equivalent.
697         * config/sparc/sparc.c (ultrasparc_adjust_cost,
698         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
699         ultra_fpmode_conflict_exists, ultra_find_type,
700         ultra_build_types_avail, ultra_flush_pipeline,
701         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
702         ultrasparc_variable_issue, ultrasparc_sched_init,
703         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
704         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
705         ultra_cur_hist, ultra_cycles_elapsed): Kill.
706         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
707         ultrasparc_store_bypass_p): New.
708         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
709         Declare.
711         2001-09-24  David S. Miller  <davem@redhat.com>
713         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
714         ready->vec[foo] not ready[foo].
716         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
718         * doc/md.texi: Correct examples for define_insn_reservations
719         `mult' and `div'.
721         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
723         * genautomata.c (create_automata): Print message about creation of
724         each automaton.
725         (generate): Remove printing meease about creation of
726         automata.
728         2001-09-05  David S. Miller  <davem@redhat.com>
730         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
731         * config/sparc/linux64.h: Likewise.
733         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
735         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
736         schedule_block, sched_init, sched_finish): Add missed calls of
737         use_dfa_pipeline_interface.
739         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
740         Ditto.
742         * sched-vis.c (get_visual_tbl_length): Ditto.
744         2001-08-27  Richard Henderson  <rth@redhat.com>
746         * genattr.c (main): Emit state_t even when not doing scheduling.
748         2001-08-27  Richard Henderson  <rth@redhat.com>
750         * genautomata.c (expand_automata): Always create a description.
752         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
754         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
755         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
756         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
757         RTL constructions.
759         * genattr.c (main): New variable num_insn_reservations.  Increase
760         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
761         pipeline hazard recognizer interface.
763         * genattrtab.h: New file.
765         * genattrtab.c: Include genattrtab.h.
766         (attr_printf, check_attr_test, make_internal_attr,
767         make_numeric_value): Move protypes into genattrtab.h.  Define them
768         as external.
769         (num_dfa_decls): New global variable.
770         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
771         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
772         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
773         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
775         * genautomata.c: New file.
777         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
779         * sched-int.h: (curr_state): Add the external definition for
780         automaton pipeline interface.
781         (haifa_insn_data): Add comments for members blockage and units.
783         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
784         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
785         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
786         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
787         TARGET_SCHED_DFA_POST_CYCLE_INSN,
788         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
789         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
790         macros.
791         (TARGET_SCHED): Use the new macros.
793         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
794         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
795         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
796         dfa_bubble): New members in gcc_target.sched.
798         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
799         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
800         (insn_queue): Redefine it as pointer to array.
801         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
802         INSN_QUEUE_SIZE.
803         (max_insn_queue_index_macro_value): New variable.
804         (curr_state, dfa_state_size, ready_try): New varaibles for
805         automaton interface.
806         (ready_element, ready_remove, max_issue): New function prototypes
807         for automaton interface.
808         (choose_ready): New function prototype.
809         (insn_unit, blockage_range): Add comments.
810         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
811         FUNCTION_UNITS_SIZE == 0.
812         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
813         actual_hazard, potential_hazard): Add comments.
814         (insn_cost): Use cost -1 as undefined value.  Remove
815         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
816         pipeline interface.
817         (ready_element, ready_remove): New functions for automaton
818         interface.
819         (schedule_insn): Add new code for automaton pipeline interface.
820         (queue_to_ready): Add new code for automaton pipeline interface.
821         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
822         (debug_ready_list): Print newline when the queue is empty.
823         (max_issue): New function for automaton pipeline interface.
824         (choose_ready): New function.
825         (schedule_block): Add new code for automaton pipeline interface.
826         Print ready list before scheduling each insn.
827         (sched_init): Add new code for automaton pipeline interface.
828         Initiate insn cost by -1.
829         (sched_finish): Free the current automaton state and finalize
830         automaton pipeline interface.
832         * sched-rgn.c: Include target.h.
833         (init_ready_list, new_ready, debug_dependencies): Add new code for
834         automaton pipeline interface.
836         * sched-vis.c: Include target.h.
837         (get_visual_tbl_length): Add code for automaton interface.
838         (target_units, print_block_visualization):  Add comments.
840         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
841         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
842         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
843         (getruntime.o, genautomata.o): New entries.
844         (genattrtab.o): Add new dependency file genattrtab.h.
845         (genattrtab): Add new dependencies.  Link it with `libm.a'.
846         (getruntime.o, hashtab.o): New entries for canadian cross.
848         * doc/md.texi: Description of automaton based model.
850         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
851         Add comments.
852         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
853         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
854         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
855         TARGET_SCHED_DFA_POST_CYCLE_INSN,
856         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
857         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
858         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
859         hook descriptions.
860         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
861         MAX_DFA_ISSUE_RATE): New macro descriptions.
863         * doc/contrib.texi: Add dfa based scheduler contribution.
865         * doc/gcc.texi: Add more information about genattrtab.
867 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
869         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
870         adjust_address_nv call.
872 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
874         * doc/install.texi (Testing): Provide additional information, and
875         a stronger encouragement, for running the testsuites.
877 2002-04-29  DJ Delorie  <dj@redhat.com>
879         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
880         given in upper case.
882 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
884         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
885         Solaris 2 <widec.h> if missing.
886         * fixinc/fixincl.x: Regenerate.
887         * fixinc/tests/base/widec.h: New file.
889 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
891         * toplev.c (f_options): Add "profile" switch so that
892         -fno-profile can be used to disable -p.
894 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
896         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
897         UV2DImode.
898         * tree.c (build_common_tree_nodes_2): Likewise.
899         * tree.h (enum tree_index): Likewise.
900         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
902         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
903         entries.
904         (init_mmx_sse_builtins): Initialize SSE2 builtins.
905         (ix86_expand_builtin): Add support for SSE2 builtins.
906         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
907         (VALID_SSE_REG_MODE): Use it.
908         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
909         (enum ix86_builtins): Add SSE2 builtins.
910         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
911         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
912         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
913         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
914         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
915         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
916         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
917         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
918         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
919         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
920         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
921         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
922         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
923         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
924         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
925         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
926         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
927         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
928         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
929         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
930         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
931         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
932         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
933         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
934         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
935         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
936         lfence_insn): New patterns.
937         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
938         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
940 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
942         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
944 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
946         * doc/contrib.texi (Contributors): Add Paolo Carlini and
947         Janis Johnson.
948         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
949         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
950         and CPU instead of cpu.
952 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
954         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
955         variables.
956         (lang_independent_options): Add -fif-conversion, -fif-conversion2
957         (rest_of_compilation): Do if conversion only when asked for.
958         (parse_options_and_default_flags): Set new variables to 1 for -O1
959         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
961 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
963         * i386.c (dbx64_register_map): Fix typo.
965 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
967         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
968         real_one_half, real_bb_freq_max): New static variables.
969         (debug_profile_bbauxs): Kill.
970         (process_note_predictions): Kill unused variable.
971         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
972         volatile double.
973         (propagate_freq): Use REAL_ARITHMETICS.
974         (estimate_bb_frequencies): Likevise; init new static variables.
975         * Makefile.in (predict.o): Add dependency on real.h
977 2002-04-28  David S. Miller  <davem@redhat.com>
979         PR target/6500
980         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
981         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
982         several {reads,writes} instead.
983         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
984         Define.
986 2002-04-27  David S. Miller  <davem@redhat.com>
988         PR target/6494
989         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
990         of the stack bias.
992         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
993         including signal.h and sys/ucontext.h, not needed.
995 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
997         * varasm.c (output_constant_def): Correct test for not calling
998         ENCODE_SECTION_INFO for INTEGER_CST.
1000 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
1002         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
1003         keep most cases as function eval_token.
1004         (eval_token): New function.
1005         (_cpp_parse_expr): Read token here for improved diagnostics.
1006         Don't use op_as_text.  Detect bad ':' here.
1007         (reduce): Don't detect bad ':' here.
1008         (op_as_text): Remove.
1009         * cpphash.h (_cpp_test_assertion): Change prototype.
1010         * cpplib.c (_cpp_test_assertion): Change prototype.
1012 2002-04-28  Richard Henderson  <rth@redhat.com>
1014         PR c/5154
1015         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
1016         (ggc_mark_rtx_children): New.
1018 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
1020         PR target/6496
1021         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
1022         after call peepholes for UltraSPARC.
1023         (call + jump 64-bit peepholes): Remove.
1025 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1027         PR c/6497
1028         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
1029         result as temporary value.
1031 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
1033         PR c++/6396
1034         * toplev.c (rest_of_compilation): Only run regrename and copy
1035         propagation if optimizing.
1037 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
1039         PR optimization/6475
1040         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
1041         register of REGNO_DECL (i).
1042         * Makefile.in (reload1.o): Add $(TREE_H).
1044 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
1046         * cppexp.c (lex): Update to use state.skip_eval.
1047         (struct op): Remove prio and flags members.
1048         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
1049         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
1050         (LEFT_ASSOC): New macro.
1051         (optab): New table of operator priorities and flags.
1052         (SHIFT): Update.
1053         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
1054         malloc-ed parser stack.
1055         (reduce): New; reduce the operator stack.
1056         (_cpp_expand_op_stack): Expand the operator stack as necessary.
1057         * cpphash.h (struct op): Predeclare.
1058         (struct cpp_reader): New members op_stack, op_limit.
1059         (struct lexer_state): New member skip_eval.
1060         (_cpp_parse_expr): Update.
1061         (_cpp_expand_op_stack): New.
1062         * cpplib.c (do_if): Update.
1063         * cppinit.c (cpp_create_reader): Create op stack.
1064         (cpp_destroy): And destroy it.
1065         * cpplib.h (CPP_LAST_CPP_OP): Correct.
1066         (TTYPE_TABLE): Correct.
1068 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1070         PR c/6343
1071         * c-decl.c (duplicate_decls): Call merge_weak.
1072         * c-pragma.c (apply_pragma_weak): Warn about misuse.
1073         * output.h (merge_weak): Prototype merge_weak.
1074         * varasm.c (merge_weak): New function.
1075         (declare_weak): Make sure we don't give an error on VAR_DECLs.
1076         Mark RTL with SYMBOL_REF_WEAK.
1078 2002-04-27  Kurt Garloff <garloff@suse.de>
1080         * tree-inline.c (inlinable_function_p): Improve heuristics
1081         by using a smoother function to cut down allowable inlinable size.
1082         * param.def: Add parameters max-inline-insns-single,
1083         max-inline-slope, min-inline-insns that determine the exact
1084         shape of the above function.
1085         * param.h: Likewise.
1087 2002-04-26  Richard Henderson  <rth@redhat.com>
1089         * c-parse.in (malloced_yyss, malloced_yyvs): New.
1090         (yyoverflow): Re-add.  Set them.
1091         (free_parser_stacks): New.
1092         * c-common.h: Declare it.
1093         * c-lex.c (c_common_parse_file): Call it.
1095 2002-04-26  Richard Henderson  <rth@redhat.com>
1097         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
1098         for fallthru search.
1100 2002-04-26  Eric Christopher  <echristo@redhat.com>
1102         PR optimization/3700
1103         * config/mips/mips.c (mips_issue_rate): Define.  New function.
1104         (TARGET_SCHED_ISSUE_RATE): Use.
1106 2002-04-25  David S. Miller  <davem@redhat.com>
1108         PR target/6422
1109         * reorg.c (optimize_skip): Do not allow exception causing
1110         instructions to be considered for delay slots.
1111         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
1112         (relax_delay_slots): Do not try to consider exception causing
1113         instructions as redundant.
1115 2002-04-26  Richard Henderson  <rth@redhat.com>
1117         PR c/5225
1118         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
1120 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
1122         PR bootstrap/6445
1123         * config/i386/i386.md (untyped_call): Return the value in a float
1124         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
1125         TARGET_80387.
1127 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
1129         * tree.c (tree_int_cst_lt): Compare constants whose types differ
1130         in unsigned-ness correctly.
1132 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1134         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
1135         portable runtime model.
1137 2002-04-26  Richard Henderson  <rth@redhat.com>
1139         * c-parse.in (yyoverflow): Revert.
1141 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
1142             Richard Henderson  <rth@redhat.com>
1144         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
1145         result as temporary value.
1147 2002-04-26  Richard Henderson  <rth@redhat.com>
1149         PR c/3581
1150         * c-common.c (fix_string_type): Split out of ...
1151         (combine_strings): ... here.  Take a varray, not a tree list.
1152         (c_expand_builtin_printf): Use fix_string_type.
1153         * c-common.h: Update decls.
1154         * c-parse.in (string): Remove.  Update all uses to use STRING
1155         instead, and not call combine_strings.
1156         (yylexstring): New.
1157         (_yylex): Use it.
1158         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
1159         (build_asm_stmt): Likewise.
1160         * objc/objc-act.c (my_build_string): Use fix_string_type.
1161         (build_objc_string_object): Build varray for combine_strings.
1163 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
1165         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
1166         x86-64.
1168 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
1170         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
1171         (HAVE_NO_R_OPERAND): Remove.
1172         (HAVE_VALUE): Remove.
1173         (op_to_prio): Update.
1174         (UNARY): Don't alter flags.
1175         (_cpp_parse_expr): want_value used to indicate whether
1176         a number or unary operator is expected next.  Distinguish
1177         unary and binary +/-.
1178         (op_as_text): Update for unary operators.
1180 2002-04-25  Richard Henderson  <rth@redhat.com>
1182         PR c/2161
1183         * c-parse.in (yyoverflow): New.
1185 2002-04-25  Richard Henderson  <rth@redhat.com>
1187         PR c/2098
1188         * c-common.c (shorten_compare): Simplfy conditions leading to
1189         the generation of a warning.
1191 2002-04-25  Richard Henderson  <rth@redhat.com>
1193         PR c/2035
1194         * expmed.c (extract_bit_field): Fall through to generic code rather
1195         than aborting on subreg special case.
1197 2002-04-25  David S. Miller  <davem@redhat.com>
1199         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
1200         for DECL being NULL.
1202 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
1204         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
1206 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
1208         * c-decl.c (grokdeclarator): Remove outdated ??? note
1209         on invalid declaration of flexible array members.
1211 2002-04-25  Richard Henderson  <rth@redhat.com>
1213         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
1215 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
1217         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
1218         needed by the compiler, even if they are used as global regs.
1220 2002-04-25  Matt Hiller  <hiller@redhat.com>
1222         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
1223         functions.
1224         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
1225         of the corresponding functions.
1226         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
1227         New prototypes.
1229 2002-04-25  Matt Hiller  <hiller@redhat.com>
1231         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
1233         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
1234         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
1235         registers, adjust comment accordingly.
1236         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
1237         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
1238         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
1239         for coprocessor registers.
1240         (ADDITIONAL_REGISTER_NAMES): Include
1241         ALL_COP_ADDITIONAL_REGISTER_NAMES.
1243         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
1244         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
1245         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
1246         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
1247         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
1249         (mips_char_to_class): Adjust comment to include coprocessor
1250         constraint letters.
1252         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
1253         New functions.
1254         (mips_reg_names, mips_regno_to_class): Include coprocessor
1255         information.
1256         (mips_sw_reg_names): Ditto, make non-static.
1257         (mips_move_1word): Handle moves to and from coprocessor registers.
1258         (mips_move_2words): Handle moves to and from coprocessor
1259         registers.
1260         (mips_class_max_nregs, mips_register_move_cost): Handle
1261         coprocessor register classes.
1262         (override_options): Initialize mips_char_to_class and
1263         mips_hard_regno_mode_ok properly for coprocessor registers.
1265         * config/mips/mips.md (movdi_internal, movdi_internal2,
1266         movsi_internal1, movsi_internal2): Add constraint-sets for
1267         coprocessor registers.
1268         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
1269         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
1270         isn't mips.
1271         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
1272         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
1273         isn't mips.
1274         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
1275         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
1276         isn't mips.
1277         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
1278         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
1279         isn't mips.
1281         * doc/tm.texi: Document feature.
1283 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
1285         * integrate.c (function_attribute_inlinable_p): Simplify.
1286         Check the table pointer is not NULL.
1288 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
1290         * doc/c-tree.texi: Fix typo in introduction.
1292 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
1294         * c-common.h (c_common_parse_file): Update.
1295         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
1296         * c-lex.c (YYDEBUG): Get from c-lex.h.
1297         (c_common_parse_file): Update.
1298         * c-lex.h (YYDEBUG, yydebug): New.
1299         * c-parse.in (YYDEBUG): Get from c-lex.h.
1300         (c_set_yydebug): Remove.
1301         * c-tree.h (c_set_yydebug): Remove.
1302         * langhooks-def.h (lhd_do_nothing_i): New.
1303         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
1304         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
1305         * langhooks.c  (lhd_do_nothing_i): New.
1306         (lhd_set_yydebug): Remove.
1307         * langhooks.h (struct lang_hooks): Update.
1308         * toplev.c (set_yydebug): New.
1309         (compile_file): Update call to parse_file hook.
1310         (decode_d_option): Update.
1311 objc:
1312         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
1314 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
1316         * loop.c (load_mems): Don't change the interface of called functions.
1318         * calls.c (expand_call): Take current_function_pretend_args_size
1319         into account when setting argblock for sibcalls.
1321 2002-04-24  Matt Hiller  <hiller@redhat.com>
1323         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
1324         * c-lex.c: Ditto.
1326         * cpplex.c (skip_line_comment): Process comment one multibyte
1327         character at a time rather than one char at a time, if
1328         appropriate.
1329         (parse_string): Process string one multibyte character at a time
1330         rather than one char at a time, if appropriate.
1331         * c-lex.c (lex_string): Lex and copy multibyte strings
1332         appropriately.
1333         * cpplib.h (cppchar_t): Change to unsigned.
1335 2002-04-24  Richard Henderson  <rth@redhat.com>
1337         PR c/3467
1338         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
1339         for c99.
1341 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
1343         * sh.c (sh_va_arg): If argument was passed by reference,
1344         dereference the pointer.
1346         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
1348         * sh.md (divsi3_i4_media): Use match_operand for input values
1349         rather than hard registers.
1350         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
1351         unnecessarily through hard registers.  Keep copies of pseudo
1352         registers outside of the libcall sequence.
1354         * sh.md (casesi_shift_media): Add modes.
1356         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
1357         values in memory.
1359 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
1361         * attribs.c (c_common_attribute_table): Move table and handlers
1362         to c-common.c.
1363         (format_attribute_table, lang_attribute_table,
1364         lang_attribute_common): Remove.
1365         (init_attributes): Replace NULL pointers with pointers to the
1366         empty table.
1367         (handle_packed_attribute, handle_nocommon_attribute,
1368         handle_common_attribute, handle_noreturn_attribute,
1369         handle_noinline_attribute, handle_always_inline_attribute,
1370         handle_used_attribute, handle_unused_attribute,
1371         handle_const_attribute, handle_transparent_union_attribute,
1372         handle_constructor_attribute, handle_destructor_attribute,
1373         handle_mode_attribute, handle_section_attribute,
1374         handle_aligned_attribute, handle_weak_attribute,
1375         handle_alias_attribute, handle_visibility_attribute,
1376         handle_no_instrument_function_attribute, handle_malloc_attribute,
1377         handle_no_limit_stack_attribute, handle_pure_attribute,
1378         handle_deprecated_attribute, handle_vector_size_attribute,
1379         vector_size_helper): Move to c-common.c.
1380         * c-common.c (c_common_attribute_table,
1381         handle_packed_attribute, handle_nocommon_attribute,
1382         handle_common_attribute, handle_noreturn_attribute,
1383         handle_noinline_attribute, handle_always_inline_attribute,
1384         handle_used_attribute, handle_unused_attribute,
1385         handle_const_attribute, handle_transparent_union_attribute,
1386         handle_constructor_attribute, handle_destructor_attribute,
1387         handle_mode_attribute, handle_section_attribute,
1388         handle_aligned_attribute, handle_weak_attribute,
1389         handle_alias_attribute, handle_visibility_attribute,
1390         handle_no_instrument_function_attribute, handle_malloc_attribute,
1391         handle_no_limit_stack_attribute, handle_pure_attribute,
1392         handle_deprecated_attribute, handle_vector_size_attribute,
1393         vector_size_helper): Move from attribs.c.
1394         * c-common.h (c_common_attribute_table,
1395         c_common_format_attribute_table): New.
1396         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
1397         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
1398         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
1399         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
1400         (LANG_HOOKS_INITIALIZER): Update.
1401         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
1402         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
1403         * target.h: Update comment.
1404         * tree.c (default_target_attribute_table): Remove.
1405         * tree.h (default_target_attribute_table, format_attribute_table,
1406         lang_attribute_table, lang_attribute_common): Remove.
1407 objc:
1408         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
1409         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
1411 2002-04-24  Jason Merrill  <jason@redhat.com>
1413         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
1414         * dwarf2out.c (dwarf_attr_name): Support it.
1415         (gen_array_type_die): Emit it.
1416         (lookup_type_die): No special handling for VECTOR_TYPE.
1417         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
1419 2002-04-24  Richard Henderson  <rth@redhat.com>
1421         * config/mips/mips.md (movdi_usd): Renumber.
1423 2002-04-24  David S. Miller  <davem@redhat.com>
1425         PR target/6420
1426         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
1427         32-bit Sparc and current_function_returns_struct is true.
1429 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
1431         * loop.c (canonicalize_condition): Use gen_int_mode.
1433 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
1435         * config/rs6000/altivec.h: Cleanup file.  Add non individual
1436         variants.
1437         (vec_vaddubm): New.
1438         (vec_vadduhm): New.
1439         (vec_vadduwm): New.
1440         (vec_vaddfp): New.
1441         (vec_vaddcuw): New.
1442         (vec_vaddubs): New.
1443         (vec_vaddsbs): New.
1444         (vec_vadduhs): New.
1445         (vec_vadduws): New.
1446         (vec_vaddsws): New.
1447         (vec_vand): New.
1448         (vec_vandc): New.
1449         (vec_vavgub): New.
1450         (vec_vavgsb): New.
1451         (vec_vavguh): New.
1452         (vec_vavgsh): New.
1453         (vec_vavguw): New.
1454         (vec_vavgsw): New.
1455         (vec_vrfip): New.
1456         (vec_vcmpbfp): New.
1457         (vec_vcmpequb): New.
1458         (vec_vcmpequh): New.
1459         (vec_vcmpequw): New.
1460         (vec_vcmpeqfp): New.
1461         (vec_vcmpgefp): New.
1462         (vec_vcmpgtub): New.
1463         (vec_vcmpgtsb): New.
1464         (vec_vcmpgtuh): New.
1465         (vec_vcmpgtsh): New.
1466         (vec_vcmpgtuw): New.
1467         (vec_vcmpgtsw): New.
1468         (vec_vcmpgtfp): New.
1469         (vec_vcmpgefp): New.
1470         (vec_vcfux): New.
1471         (vec_vcfsx): New.
1472         (vec_vctsxs): New.
1473         (vec_vctuxs): New.
1474         (vec_vexptefp): New.
1475         (vec_vrfim): New.
1476         (vec_lvx): New.
1477         (vec_lvebx): New.
1478         (vec_lvehx): New.
1479         (vec_lde): Add vector float variant.
1480         (vec_lvewx): New.
1481         (vec_lvxl): New.
1482         (vec_vlogefp): New.
1483         (vec_vmaddfp): New.
1484         (vec_vmhaddshs): New.
1485         (vec_vmaxub): New.
1486         (vec_vmaxsb): New.
1487         (vec_vmaxuh): New.
1488         (vec_vmaxsh): New.
1489         (vec_vmaxuw): New.
1490         (vec_vmaxsw): New.
1491         (vec_vmaxsw): New.
1492         (vec_vmaxfp): New.
1493         (vec_vmrghb): New.
1494         (vec_vmrghh): New.
1495         (vec_vmrghw): New.
1496         (vec_vmrglb): New.
1497         (vec_vmrglh): New.
1498         (vec_vmrglw): New.
1499         (vec_vminub): New.
1500         (vec_vminsb): New.
1501         (vec_vminuh): New.
1502         (vec_vminsh): New.
1503         (vec_vminuw): New.
1504         (vec_vminsw): New.
1505         (vec_vminfp): New.
1506         (vec_vmladduhm): New.
1507         (vec_vmhraddshs): New.
1508         (vec_msumubm): New.
1509         (vec_vmsummbm): New.
1510         (vec_vmsumuhm): New.
1511         (vec_vmsumshm): New.
1512         (vec_vmsumuhs): New.
1513         (vec_vmsumshs): New.
1514         (vec_vmuleub): New.
1515         (vec_vmulesb): New.
1516         (vec_vmuleuh): New.
1517         (vec_vmulesh): New.
1518         (vec_vmuloub): New.
1519         (vec_mulosb): New.
1520         (vec_vmulouh): New.
1521         (vec_vmulosh): New.
1522         (vec_vnmsubfp): New.
1523         (vec_vnor): New.
1524         (vec_vor): New.
1525         (vec_vpkuhum): New.
1526         (vec_vpkuwum): New.
1527         (vec_vpkpx): New.
1528         (vec_vpkuhus): New.
1529         (vec_vpkshss): New.
1530         (vec_vpkuwus): New.
1531         (vec_vpkswss): New.
1532         (vec_vpkshus): New.
1533         (vec_vpkswus): New.
1534         (vec_vperm): New.
1535         (vec_vrefp): New.
1536         (vec_vrlb): New.
1537         (vec_vrlh): New.
1538         (vec_vrlw): New.
1539         (vec_vrfin): New.
1540         (vec_vrsqrtefp): New.
1541         (vec_vsel): New.
1542         (vec_vslb): New.
1543         (vec_vslh): New.
1544         (vec_vslw): New.
1545         (vec_vsldoi): New.
1546         (vec_vsl): New.
1547         (vec_vslo): New.
1548         (vec_vspltb): New.
1549         (vec_vsplth): New.
1550         (vec_vspltw): New.
1551         (vec_vspltisb): New.
1552         (vec_vspltish): New.
1553         (vec_vspltisw): New.
1554         (vec_vsrb): New.
1555         (vec_vsrh): New.
1556         (vec_vsrw): New.
1557         (vec_vsrab): New.
1558         (vec_vsrah): New.
1559         (vec_vsraw): New.
1560         (vec_vsr): New.
1561         (vec_vsro): New.
1562         (vec_stvx): New.
1563         (vec_stvebx): New.
1564         (vec_stvehx): New.
1565         (vec_stvewx): New.
1566         (vec_stvxl): New.
1567         (vec_vsububm): New.
1568         (vec_vsubuhm): New.
1569         (vec_vsubuwm): New.
1570         (vec_vsubfp): New.
1571         (vec_vsubcuw): New.
1572         (vec_vsububs): New.
1573         (vec_vsubsbs): New.
1574         (vec_vsubuhs): New.
1575         (vec_vsubshs): New.
1576         (vec_vsubuws): New.
1577         (vec_vsubsws): New.
1578         (vec_vsum4ubs): New.
1579         (vec_vsum4sbs): New.
1580         (vec_vsum4shs): New.
1581         (vec_vsum2sws): New.
1582         (vec_vsumsws): New.
1583         (vec_vrfiz): New.
1584         (vec_vupkhsb): New.
1585         (vec_vupkhpx): New.
1586         (vec_vupkhsh): New.
1587         (vec_vupklsb): New.
1588         (vec_vupklpx): New.
1589         (vec_vupklsh): New.
1590         (vec_vxor): New.
1592 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
1594         PR c/5430
1595         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
1596         added literals from substracted literals.
1597         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
1598         (fold) [associate]: Preserve MINUS_EXPR if needed.
1600 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
1602         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
1603         are obsoleted.
1605 2002-04-23  Tom Tromey  <tromey@redhat.com>
1607         * gcc.c: Added --resource.  For PR java/6314.
1609 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
1611         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
1612         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
1613         these libraries.
1615 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
1617         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
1619 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
1621         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
1622         workaround.
1623         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
1624         (ix86_expand_clrstr): Fix typo.
1625         * loop.c (gen_load_of_final_value): New.
1626         (loop_givs_rescan, strength_reduce, check_dbra_loop):
1627         Use it.
1629 2002-04-23  Roger Sayle  <roger@eyesopen.com>
1631         * builtins.c (builtin_memset_gen_str): New function.
1632         (expand_builtin_memset): Optimize the case of constant length, but
1633         unknown value.
1635 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
1637         * config/rs6000/altivec.h (vec_step): Remove extraneous
1638         parentheses.
1639         (vec_ctu): Cast return.
1641 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
1643         PR target/6413
1644         * function.h: (struct function): Add profile_label_no field.
1645         (current_function_profile_label_no): Define.
1646         * function.c: (profile_label_no): New static var.
1647         (expand_function_start): Increment it, and copy to
1648         current_function_profile_label_no.
1649         * output.h (profile_label_no): Delete.
1650         * final.c (profile_label_no): Delete.
1651         (profile_function): Use current_function_profile_label_no.
1652         (final_end_function): Don't increment profile_label_no here.
1653         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
1654         profile_label_no with current_function_profile_label_no.
1655         * config/pa/pa.c (current_function_number): Delete.
1656         (pa_output_function_prologue): Don't output profile label here.
1657         (hppa_profile_hook): Use label_no param rather than
1658         current_function_number.
1659         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
1660         * config/pa/pa.h: .. here.
1661         (FUNCTION_PROFILER): Output profile label here.
1663 2002-04-22  Eric Christopher  <echristo@redhat.com>
1665         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
1666         patch of 2002-04-09 due to binutils issues.
1667         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
1669 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
1671         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
1672         constraint to 'o' for m=r and r=m alternatives.
1673         ("*movv8hi_internal1"): Same.
1674         ("*movv16qi_internal1"): Same.
1675         ("*movv4sf_internal1"): Same.
1677 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
1679         * rtl.h (RTX_FLAG): New macro.
1680         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
1681         * final.c (alter_subreg): Use macro to access rtx flag.
1682         * integrate.c (copy_rtx_and_substitute): Use new access macro.
1683         * print-rtl.c (print_rtx): Use new access macro.
1685         * cse.c (insert): Check rtx code before accessing flag.
1687         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
1688         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
1689         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
1690         convert_const_symbol_ref, make_canonical, make_alternative_compare,
1691         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
1692         simplify_test_exp, optimize_attrs, simplify_by_exploding,
1693         find_and_mark_used_attributes, unmark_used_attributes,
1694         add_values_to_cover, simplify_with_current_value,
1695         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
1696         copy_rtx_unchanging, main): Use new access macros.
1698 2002-04-22  Tom Rix  <trix@redhat.com>
1700         * expmed.c (init_expmed): Generate shifted constant once.
1702 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
1704         * c-lex.c (lex_charconst): Call convert to get constant in
1705         proper type; don't just smash the type field.
1706         Fixes PR c/6300.
1708         * config.gcc: Add list of obsolete configurations.  Disallow
1709         building these without --enable-obsolete.
1710         * doc/install.texi: Document --enable-obsolete and obsoletion
1711         policy.  Mention obsoletion of individual targets in
1712         appropriate places.
1714 2002-04-22  Richard Henderson  <rth@redhat.com>
1716         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
1718 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
1720         PR f/6138.
1721         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
1722         (walk_fixup_memory_subreg): Likewise.
1723         (fixup_var_refs_insn): Adjust accordingly.
1724         (fixup_var_refs_1): Likewise.
1726 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
1728         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
1729         LIBPATH_ARCH64_SPEC): Define.
1730         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
1731         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
1732         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
1733         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
1735 2002-04-22      Joel Sherrill <joel@OARcorp.com>
1737         * gthr-rtems.h: Correct prototypes to remove warnings.
1739 2002-04-22  Richard Henderson  <rth@redhat.com>
1741         PR c/6344
1742         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
1744         * gcse.c (free_insn_expr_list_list): New.
1745         (clear_modify_mem_tables): Use it.  Fix bit set usage.
1746         (canon_list_insert): Use EXPR_LISTs for expressions.
1747         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
1749 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
1751         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
1752         file change and include code to _cpp_pop_buffer.
1753         * cpphash.h (struct pending_option): Predeclare.
1754         (struct cpp_reader): New member next_include_file.
1755         (_cpp_pop_file_buffer): Update.
1756         (_cpp_push_next_buffer): Update, rename.
1757         * cppinit.c (cpp_destroy): Free include chain and pending here.
1758         (cpp_finish_options): Simplify.
1759         (_cpp_push_next_buffer): Rename and clean up.
1760         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
1761         Clarify.
1762         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
1764 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
1766         * config/rs6000/altivec.h (vec_xor): Add variant for both args
1767         being vector signed int.
1768         (vec_andc): Same.
1769         (vec_xor): Add variant for both args being vector signed char.
1770         Remove redundant variant.
1771         (vec_andc): Same.
1773 2002-04-21  David S. Miller  <davem@redhat.com>
1775         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
1776         compare mode in output RTL.
1778 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
1780         * config/rs6000/rs6000.c (rs6000_override_options): Correct
1781         style and formatting of previous patch.
1783 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
1785         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
1786         flag_pic for ABI_AIX.
1788 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
1790         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
1791         * cppfiles.c (read_include_file): Similarly.
1792         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
1793         uxstrdup ustrchr, ufputs): Similarly.
1794         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
1795         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
1796         cpp_ideq, parse_identifier, parse_number): Similarly.
1797         * cpplib.c (struct directive, dequote_string, D, run_directive,
1798         cpp_push_buffer): Similarly.
1799         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
1800         _cpp_create_definition, check_trad_stringification,
1801         cpp_macro_definition): Similarly.
1803 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
1805         * cppmacro.c (funlike_invocation_p): Don't step back
1806         over CPP_EOF.
1808 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
1810         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
1811         labelno.
1813 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
1815         * doc/invoke.texi: Remove Chill references.
1816         * doc/gcc.texi: Update last modified date.
1818 2002-04-20  Kazu Hirata  <kazu@hxi.com>
1820         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
1821         push and pop.  Replace add.l with add.w.
1823 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1825         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
1826         multiply instructions for H8/300H case.
1828 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1830         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
1831         Bum three instructions from each routine.
1833 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
1835         * Makefile.in: Update.
1836         * decl.c (push_c_function_context, pop_c_function_context,
1837         mark_c_function_context): Rename for consistency.
1838         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
1839         * c-tree.h (push_c_function_context, pop_c_function_context,
1840         mark_c_function_context): Rename for consistency.
1841         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1842         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
1843         * function.c (init_lang_status, save_lang_status,
1844         restore_lang_status, mark_lang_status, free_lang_status):
1845         Move to langhooks.h.
1846         (push_function_context_to, pop_function_context_from,
1847         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
1848         Update.
1849         * function.h (init_lang_status, save_lang_status,
1850         restore_lang_status, mark_lang_status, free_lang_status):
1851         Move to langhooks.h.
1852         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
1853         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
1854         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
1855         LANG_HOOKS_FUNCTION_INITIALIZER): New.
1856         (LANG_HOOKS_INITIALIZER): Update.
1857         (lhd_do_nothing_f): New.
1858         * langhooks.h (struct lang_hooks_for_functions): New.
1859         (struct lang_hooks): New hooks.
1860         * langhooks.c (lhd_do_nothing_f): New.
1861 objc:
1862         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1863         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
1865 2002-04-19  David S. Miller  <davem@redhat.com>
1867         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
1868         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
1870 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
1872         PR optimization/3756
1873         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
1874         x = ((int) y < 0) ? cst1 : cst2.
1876 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
1878         PR c/6358
1879         * function.c: Reapply patch for c/6358.
1880         (expand_function_end): Copy decl_rtl's mode, not
1881         current_function_return_rtx mode.
1883 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
1885         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
1886         targets.
1888 2002-04-19  Tom Tromey  <tromey@redhat.com>
1890         * doc/install.texi (Specific): Update status of Solaris 2.8.
1891         For PR libgcj/6158.
1893 2002-04-19  Andreas Schwab  <schwab@suse.de>
1895         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
1896         (PUT_REAL): Restore old definition.
1898 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
1899             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1901         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
1902         binutils 2.11.2 and higher generate smaller binaries than Sun's
1903         native tools.
1905 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
1907         PR c++/6352
1908         * toplev.c (rest_of_compilation): Do not defer functions for which
1909         TREE_SYMBOL_REFERENCED has already been set.
1911 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
1913         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
1914         alternative.
1916 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
1918         * builtins.c: Include langhooks.h.
1919         (lang_type_promotes_to): Remove.
1920         (expand_builtin_va_arg): Use new hook.
1921         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
1922         (simple_type_promotes_to): Move to c-typeck.c.
1923         * c-common.h (simple_type_promotes_to): Remove.
1924         * c-decl.c (duplicate_decls, grokdeclarator): Update.
1925         * c-format.c: Include langhooks.h.
1926         (check_format_types): Update.
1927         * c-tree.h (c_type_promotes_to): New.
1928         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
1929         (type_lists_compatible_p): Update.
1930         * langhooks-def.h (lhd_type_promotes_to): New.
1931         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
1932         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
1933         * langhooks.c (lhd_type_promotes_to): New.
1934         * langhooks.h (struct lang_hooks_for_types): New hook.
1935         * tree.h (lang_type_promotes_to): Remove.
1936 objc:
1937         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
1939 2002-04-18  Richard Henderson  <rth@redhat.com>
1941         * function.c: Revert patch for c/6358.
1943 2002-04-18  Richard Henderson  <rth@redhat.com>
1945         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
1946         blocks.  Handle multiple references to the TRAP block.  Handle
1947         non-adjacent THEN and OTHER blocks.
1949 2002-04-18  Richard Henderson  <rth@redhat.com>
1951         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
1952         crash with no type for by-mode libcalls.
1954         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
1956 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
1958         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
1959         __xtensa_nonlocal_goto): Use a syscall instructions to flush
1960         the register windows.
1962 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
1964         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
1965         appropriate.  Document need for extended precision even when
1966         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
1967         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
1968         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
1969         instead of relying on later syntax error when REAL_WIDTH > 5.
1970         * real.c: Define NE based only on whether or not we have a
1971         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
1972         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
1973         define GET_REAL and PUT_REAL as simple memcpy operations; no
1974         need to byteswap or round.
1975         Use #error instead of #ifdef-ing out the entire file, for
1976         prompt error detection.
1978         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
1980 2002-04-18  David S. Miller  <davem@redhat.com>
1982         * config/sparc/sparc.h (BRANCH_COST): Define.
1984         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
1985         does it.
1987 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
1989         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
1990         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
1991         propagate_block calls after relaxation loop using new variable
1992         stabilized_prop_flags.
1994 2002-04-18  Richard Henderson  <rth@redhat.com>
1996         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
1997         (ia64_va_arg): Expect variable sized types by reference.
1998         * config/ia64/ia64-protos.h: Update.
1999         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
2000         ia64_function_arg_pass_by_reference.
2002 2002-04-18  Richard Henderson  <rth@redhat.com>
2004         * ifcvt.c: Include except.h.
2005         (block_has_only_trap): Break out from find_cond_trap.
2006         (find_cond_trap): Use it.  Always delete the trap block.
2007         (merge_if_block): Allow then block null.  Be less simplistic about
2008         what insns can end a block.
2009         * Makefile.in (ifcvt.o): Depend on except.h.
2011         * config/ia64/ia64.md (trap, conditional_trap): New.
2013 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
2015         PR c/6358
2016         * function.c (assign_parms): Assign hard current_function_return_rtx
2017         register here...
2018         (expand_function_end): ...not here.
2020 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2022         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
2023         * c-tree.h (c_incomplete_type_error): New.
2024         * c-typeck.c (require_complete_type, build_component_ref): Update.
2025         (incomplete_type_error): Rename.
2026         * langhooks-def.h (lhd_incomplete_type_error): New.
2027         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
2028         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
2029         * langhooks.c (lhd_incomplete_type_error): New.
2030         * langhooks.h (struct lang_hooks_for_types): New hook.
2031         * tree.c (size_in_bytes): Use new hook.
2032         * tree.h (incomplete_type_error): Remove.
2033 objc:
2034         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
2036 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
2038         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
2039         TARGET_FLOAT_FORMAT blocks.
2041 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2043         * doc/install.texi (Downloading the source): Do not mention Chill
2044         any longer, but mention Ada.
2045         (Configuration): Do not mention Chill any longer.
2047 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
2049         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
2051 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
2053         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
2054         in last patch.
2056 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
2058         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
2059         instead of unsigned_type.
2061 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
2063         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
2064         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
2065         later.
2067 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
2069         * attribs.c (vector_type_node_list): New static variable.
2070         (handle_vector_size_attribute): Use it to avoid generating a
2071         new type node each time we are called.
2073         * combine.c (subst): Avoid trying to make a vector mode subreg of
2074         an integer constant.
2075         (gen_lowpart_for_combine): Likewise.
2077 2002-04-18  Roger Sayle  <roger@eyesopen.com>
2078             Jakub Jelinek  <jakub@redhat.com>
2080         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
2081         for integer constant c (if x has unsigned type or sign bit is not
2082         set in c).  This folds the zero/sign extension into the bit-wise and
2083         operation.
2085 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
2087         PR middle-end/6205
2088         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
2089         otherwise xorps.
2091 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
2093         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
2095 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
2097         * gcc.c (read_specs): Detect and fail if an attempt is made to
2098         rename a spec string to an already existing string.
2100 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
2102         * config/s390/s390.c (legitimize_pic_address): Do not generate
2103         illegal address constant without CONST.
2105 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2107         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
2108         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
2110 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
2112         PR optimization/6305
2113         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
2114         to make sure previous reloads are taken into account.  Generate
2115         better code if one operand is an in-range immediate constant.
2117 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
2119         * doc/install.texi (Building): libgcj requires GNU make.
2121 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
2123         PR bootstrap/6315
2124         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
2125         even if hard quad and register is not floating.
2126         (movtf reg<-mem split): Disallow splitting if hard quad and
2127         register is floating.
2128         (movtf mem<-reg split): Likewise.
2129         * config/sparc/sparc.c (fp_register_operand): New predicate.
2130         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
2132 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
2134         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
2135         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
2136         (unprotoize.o): Ditto.  Build from protoize.c.  Define
2137         UNPROTOIZE on command line.
2138         * protoize.c: Include cppdefault.h.  Delete include_defaults.
2139         (in_system_include_dir): Use cpp_include_defaults (defined in
2140         cppdefault.o).
2141         * unprotoize.c: Delete file.
2143 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
2145         * config/rs6000/altivec.h (vec_ld): Add array variants.
2146         (vec_lde): Same.
2147         (vec_ldl): Same.
2149 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
2150             Aldy Hernandez <aldyh@redhat.com>
2152         * config/rs6000/altivec.h: Define __ALTIVEC__.
2153         (bool): New.
2154         (__pixel): New.
2155         (pixel): New.
2156         (vec_cfux): New.
2157         (vec_vmaddfp): New.
2158         (vec_vsldoi): New.
2159         Add parentheses to all macro arguments.
2161 2002-04-16  Richard Henderson  <rth@redhat.com>
2163         PR c++/6320
2164         * except.c (remove_eh_handler): Insert inner regions at beginning
2165         of sibling chain.  Refactor expressions.
2167 2002-04-16  Richard Henderson  <rth@redhat.com>
2169         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
2170         * config/sparc/sol2-gas-bi.h: New file.
2171         * config.gcc (sparc*-solaris): Add it as needed.
2172         * configure.in (AS_SPARC64_FLAG): Remove check.
2173         * config.in, configure: Regenerate.
2175         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
2177 2002-04-16  Richard Henderson  <rth@redhat.com>
2179         * config/mips/mips.c (override_options): Don't override N32 for
2180         a 64-bit ISA.
2182         PR 6202
2183         * config/mips/mips.md (can_delay): Split out of existing define_delays.
2184         (HILO_delay): Set can_delay false.
2186 2002-04-16  Dale Johannesen <dalej@apple.com>
2188         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
2189         instruction addresses.
2190         (rs6000_output_function_epilogue): Likewise.
2192 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
2194         * c-parse.in (poplevel, compstmt_start,
2195         compstmt_primary_start): Add ending ';', in accordance
2196         with POSIX.
2198 2002-04-16  Richard Henderson  <rth@redhat.com>
2200         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
2201         Adjust tm_file order to get TARGET_DEFAULT set properly.
2202         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
2203         * doc/install.texi (sparc-solaris): Update.
2205 2002-04-16  Dale Johannesen <dalej@apple.com>
2207         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
2208         comparison operands do not match each other or if modes of
2209         conditions do not match result.
2211 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
2213         PR target/6305
2214         * config/s390/s390.md (mulsidi3): Set both subregs of the
2215         multiword register.
2217 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
2219         * config/rs6000/altivec.h (vec_addc): Type check.
2221 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
2223         PR middle-end/6279
2224         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
2226         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
2228 2002-04-15  Richard Henderson  <rth@redhat.com>
2230         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
2231         call_really_used_regs too.
2233 2002-04-15  Richard Henderson  <rth@redhat.com>
2235         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
2237 2002-04-15  David S. Miller  <davem@redhat.com>
2239         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
2240         as being CLOBBERed.
2242 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
2244         PR c/6290
2245         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
2246         CONST_VECTOR is { 0, ... 0 }.
2248 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
2250         * doc/install.texi (Installing GCC: Configuration): Clarify
2251         the only supported ways to configure gcc.
2253 2002-04-15  Roland McGrath  <roland@frob.com>
2255         * config.gcc (alpha*-*-gnu*): New target configuration.
2256         * config/alpha/gnu.h: New file for it.
2257         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
2259 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
2261         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
2262         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
2263         * tree.h (expand_start_stmt_expr): Update prototype.
2264         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
2265         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
2266         on the STMT_EXPR created for the inline function.
2268 2002-04-15  Richard Henderson  <rth@redhat.com>
2270         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
2271         config/i386/linux-aout.h, config/i386/linux-oldld.h,
2272         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
2273         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
2274         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
2275         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
2276         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
2277         Define __gnu_linux__, not gnu_linux.
2278         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
2280 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
2282         Remove Chill front end.
2283         * gcc.c (default_compilers): Remove Chill entries.
2284         * ch: Remove directory.
2285         * doc/frontends.texi: Remove information about Chill.
2286         * doc/sourcebuild.texi: Likewise.
2287         * doc/standards.texi: Likewise.
2289 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
2291         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
2292         (LONGLONG_STANDALONE): Define.
2294 2002-04-15  David S. Miller  <davem@redhat.com>
2296         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
2297         Call emit_library_call with LCT_NORMAL.
2298         (sparc_initialize_trampoline): Use LCT_foo instead of
2299         magic constant in emit_library_call invocations.
2300         (sparc64_initialize_trampoline): Likewise.
2301         (sparc_profile_hook): Likewise.
2302         * config/sparc/sparc.md: Likewise.
2304         * config/sparc/sparc.c (sparc_extra_constraint_check):
2305         Fix type of argument 'c'.
2306         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
2307         Likewise.
2309 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
2311         * diagnostic.h (output_buffer_state): Redefine.
2312         (output_format_decoder): New macro.
2313         (output_prefixing_rule): Likewise.
2314         (output_line_cutoff): Likewise.
2315         (diagnostic_format_decoder): Adjust.
2316         (diagnostic_prefixing_rule): Likewise.
2317         (diagnostic_line_cutoff): Likewise.
2318         (diagnostic_state): Likewise.
2319         (diagnostic_kind_count): Likewise.
2320         (diagnostic_buffer): Now a macro.
2322         * diagnostic.c (diagnostic_buffer): Remove definition.
2323         (output_is_line_wrapping): Adjust.
2324         (set_real_maximum_length): Likewise.
2325         (output_set_maximum_length): Likewise.
2326         (init_output_buffer): Likewise.
2327         (lhd_print_error_function): Likewise.
2328         (output_do_verbatim): Likewise.
2330 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
2332         * cpperror.c (print_location): Don't print include chain
2333         if line == 0.
2334         (cpp_begin_message): Update to use DL_ macros.
2335         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
2336         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
2337         cpp_notice, cpp_notice_from_errno): Remove.
2338         (cpp_error, cpp_error_with_line): Update to take a diagnostic
2339         level.
2340         (cpp_errno): New.
2341         * cppexp.c (CPP_ICE): Remove.
2342         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
2343         lex, integer_overflow, _cpp_parse_expr): Update.
2344         * cppfiles.c (read_include_file, find_include_file,
2345         handle_missing_header, _cpp_read_file, remap_filename): Update.
2346         * cpphash.h (enum error_type): Remove.
2347         (_cpp_begin_message): Update.
2348         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
2349         cpp_handle_option, cpp_post_options): Update.
2350         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
2351         skip_whitespace, parse_identifier, parse_slow, parse_string,
2352         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
2353         cpp_interpret_charconst): Update.
2354         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
2355         lex_macro_node, do_undef, glue_header_name, parse_include,
2356         do_include_common, read_flag, do_line, do_linemarker, do_ident,
2357         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
2358         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
2359         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
2360         _cpp_pop_buffer, do_diagnostic): Update.
2361         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
2362         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
2363         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
2364         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
2365         cpp_notice, cpp_notice_from_errno): Remove.
2366         (cpp_error, cpp_error_with_line): Update to take a diagnostic
2367         level.
2368         (cpp_errno): New.
2369         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
2370         collect_args, enter_macro_context, save_parameter, parse_params,
2371         _cpp_create_definition, check_trad_stringification,
2372         cpp_macro_definition): Update.
2373         * cppmain.c (cpp_preprocess_file): Update.
2374         * fix-header.c (read_scan_file): Update.
2376 2002-04-14  Andreas Schwab  <schwab@suse.de>
2378         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
2380 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
2382         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
2384 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
2386         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
2387         not gnu_hurd.
2389 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
2391         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
2393 2002-04-13      Joel Sherrill <joel@OARcorp.com>
2395         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
2396         sparc-elf and sparc-rtems targets.
2398 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
2400         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
2401         defined, and __gnu_hurd__ wherever __GNU__ is defined.
2402         * arm/linux-elf.h: Likewise.
2403         * cris/aout.h: Likewise.
2404         * cris/linux.h: Likewise.
2405         * i370/linux.h: Likewise.
2406         * i386/gnu.h: Likewise.
2407         * i386/linux-aout.h: Likewise.
2408         * i386/linux-oldld.h: Likewise.
2409         * i386/linux.h: Likewise.
2410         * i386/linux64.h: Likewise.
2411         * ia64/linux.h: Likewise.
2412         * m68k/linux-aout.h: Likewise.
2413         * m68k/linux.h: Likewise.
2414         * mips/linux.h: Likewise.
2415         * pa/pa-linux.h: Likewise.
2416         * pj/linux.h: Likewise.
2417         * rs6000/sysv4.h: Likewise.
2418         * s390/linux.h: Likewise.
2419         * sh/linux.h: Likewise.
2420         * sparc/linux-aout.h: Likewise.
2421         * sparc/linux.h: Likewise.
2422         * sparc/linux64.h: Likewise.
2423         * xtensa/linux.h: Likewise.
2425 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
2427         * stmt.c (check_unique_operand_names): Expect operand names to
2428         be strings rather than identifiers.  Use simple_cst_equal to
2429         compare them.
2430         (resolve_operand_name_1): Make same identifier to string change here.
2431         * c-parse.in (asm_operand): Convert a named operand into a string.
2432         * cp/parse.y (asm_operand): Likewise.
2434 2002-04-13  Andreas Schwab  <schwab@suse.de>
2436         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
2438 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
2440         Revert these changes:
2442         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
2444         PR c++/5571
2445         * stor-layout.c (layout_decl): Reset the RTL for the decl.
2447 2002-04-12  Richard Henderson  <rth@redhat.com>
2449         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
2450         (sparc*-*-solaris): Clean up header files.
2451         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
2452         and plan on generating 64-bit code.
2453         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
2454         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
2455         * config/sparc/sol2-sld-64.h: Rename ...
2456         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
2457         for AS_SPARC64_FLAG not defined.
2458         * config/sparc/sol2-gld-bi.h: New.
2459         * config/sparc/sol2-sld.h: Remove.
2460         * config/sparc/sol26-sld.h: New.
2461         * config/sparc/sol2.h: Tidy comments.
2462         * doc/install.texi: Document sparc-solaris configury changes.
2464 2002-04-12  Richard Henderson  <rth@redhat.com>
2466         * recog.c (offsettable_address_p): Match the logic in adjust_address.
2468         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
2469         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
2471 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2473         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
2475 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
2477         * pa.c (pa_can_combine_p): Call extract_insn before calling
2478         constrain_operands.
2480 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
2482         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
2483         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
2484         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
2485         (CPP_PREDEFINES): Handle __declspec.
2486         * config/i386/t-interix (USER_H): Remove.
2488 2002-04-12  DJ Delorie  <dj@redhat.com>
2490         * integrate.c (compare_blocks): Make comparisons safe for when
2491         sizeof(int) < sizeof(char *).
2492         (find_block): Likewise.
2494 2002-04-12  Jan Hubicka  <jh@suse.cz>
2495             David Edelsohn  <edelsohn@gnu.org>
2497         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
2498         registers.
2499         (symbol_ref_operand): New.
2500         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
2501         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
2503 2002-04-12  Andreas Schwab  <schwab@suse.de>
2505         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
2506         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
2507         overrides the definition in config/svr4.h.
2509 2002-04-12      Eric Norum <eric.norum@usask.ca>
2511         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
2512         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
2513         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
2514         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
2515         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
2516         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
2517         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
2518         definitions to config/rtems.h and make the targets more similar.
2520 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2522         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
2523         POINTERS_EXTEND_UNSIGNED.
2524         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
2525         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
2527         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
2528         not specified.
2530 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
2532         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
2533         depends on TARGET_SHMEDIA, not TARGET_SH5.
2535 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
2537         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
2538         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
2540 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
2542         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
2543         no r0 clobber.
2545 2002-04-12  Andreas Schwab  <schwab@suse.de>
2547         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
2549 2002-04-12  Richard Henderson  <rth@redhat.com>
2551         PR bootstrap/4191
2552         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
2554         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
2555         modes spanning multiple hard regs.
2557         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
2559 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2561         * pa.c (pa_output_function_prologue): Don't accumulate the total
2562         number of code bytes when using TARGET_64BIT, or gas, SOM and not
2563         the portable runtime.
2564         (output_deferred_plabels): Handle 64bit plabels.
2565         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
2566         generating pic code using the GAS assembler for object formats that
2567         are not SOM (ie., ELF32 and ELF64).
2568         (output_millicode_call): Check attribute type if attribute length is 28.
2569         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
2570         dbr_sequence_length once.
2571         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
2572         dbr_sequence_length once.
2573         * pa.h (TARGET_SOM): Define if not defined.
2574         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
2575         with GAS and not SOM.
2576         (jump, call_internal_reg, call_value_internal_reg): Likewise.
2577         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
2579 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2581         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
2582         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
2583         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
2584         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
2585         elfos.h and dbxelf.h values are fine now.
2586         * config/i386/freebsd.h, config/alpha/freebsd.h
2587         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
2589 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2591         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
2592         or set Acpu or Amachine.  Reformat.
2593         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2594         define.
2595         (LINK_SPEC): Do not need to undef.
2596         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
2597         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
2598         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2599         define.
2600         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
2601         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
2602         (LINK_SPEC): Do not need to undef.
2603         (DONT_USE_BUILTIN_SETJMP): Do not define.
2604         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
2605         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
2606         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
2607         Remove trailing spaces.
2608         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
2609         __ELF__, or set Acpu or Amachine.  Reformat.
2610         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2611         define.
2613 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2615         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
2616         all other *-*-freebsd* targets.
2618 2002-04-11  Richard Henderson  <rth@redhat.com>
2620         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
2622 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2624         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
2625         Include {cpu}/{cpu}.h thru tm_file.
2626         (alpha*-*-linux*ecoff): Remove target.
2627         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
2628         (LINK_SPEC): Remove, is not OS independent.
2629         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
2630         (LINK_SPEC): Do not need to #undef any longer.
2631         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
2632         any longer.
2633         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
2634         __ELF__.
2635         (LINK_SPEC): Moved here from alpha/elf.h.
2636         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
2637         SUB_CPP_PREDEFINES.
2638         * config/alpha/linux-ecoff.h: Remove.
2639         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
2640         (CPP_SPEC): Define _POSIX_SOURCE as needed.
2641         (CPP_SUBTARGET_SPEC): Do not define.
2642         (LINK_SPEC): Do not need to #undef any longer.
2643         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
2644         * config/alpha/vms.h: Likewise.
2646 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
2648         * doc/extend.texi: Remove old claim that typedefs cannot have
2649         an alignment attribute.
2651 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
2653         PR optimization/6177
2654         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
2655         bitpos is 0 and bitsize CONCAT size.
2657 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
2659         PR c/6223
2660         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
2662 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
2664         * config/alpha/freebsd.h: Minor reformatting.
2665         (CPP_SPEC): Define ELF and add cpp_subtarget.
2666         (ASM_SPEC): No longer needed.
2668 2002-04-11  Richard Henderson  <rth@redhat.com>
2670         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
2671         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
2672         (dimode mem/zero splitter): New.
2674 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
2676         * config/cris/cris.c (cris_override_options): Tweak error message
2677         for PIC not implemented.
2679         * config/cris/cris.h: Tweak comments related to parameter-passing.
2681         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
2683 2002-04-10  Richard Henderson  <rth@redhat.com>
2685         * except.c (add_ehl_entry): Allow duplicates after landing pad
2686         creation.
2688 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
2690         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
2692 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
2694         * c-decl.c (c_init_decl_processing): Move generation of
2695         decls for g77_integer_type_node and friends from here ...
2696         * c-common.c (c_common_nodes_and_builtins): ... to here.
2698 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
2700         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
2701         is only used as frame pointer when frame_pointer_needed is true.
2703 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
2705         PR target/817
2706         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
2707         for the fact that the pool entry uses two words.
2708         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
2709         1k bytes.
2710         (movdf_soft_insn): Similarly.
2711         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
2712         for the fact that the pool entry uses three words.
2714 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
2716         * config/mips/mips.c (mips_va_arg): When using the struct version
2717         of the EABI va_list, allow arguments in the register save area to
2718         take up less room than a stack argument.
2720 2002-04-10  Richard Henderson  <rth@redhat.com>
2722         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
2723         if EXPAND_INITIALIZER.
2725 2002-04-09  Richard Henderson  <rth@redhat.com>
2727         * config/alpha/alpha.md (movdi_er_maybe_g): New.
2728         * config/alpha/alpha.c (alpha_expand_mov): Use it.
2730 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
2732         PR optimization/6233
2733         * rtlanal.c (pure_call_p): New function.
2734         * rtl.h (pure_call_p): Declare.
2735         * loop.c (prescan_loop): Use it to set has_nonconst_call.
2736         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
2738 2002-04-09  Eric Christopher  <echristo@redhat.com>
2740         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
2741         information to .comm directive.
2743 2002-04-09  Richard Henderson  <rth@redhat.com>
2745         PR c/5078
2746         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
2748 2002-04-09  Richard Henderson  <rth@redhat.com>
2750         * basic-block.h (flow_delete_block_noexpunge): Declare.
2751         (expunge_block_nocompact): Declare.
2752         * cfg.c (expunge_block_nocompact): Split out from ...
2753         (expunge_block): ... here.
2754         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
2755         (flow_delete_block_noexpunge): Split out from ...
2756         (flow_delete_block): ... here.
2757         * cfgcleanup.c (delete_unreachable_blocks): Compact while
2758         removing dead blocks.
2759         * except.c (exception_handler_labels): Remove.
2760         (exception_handler_label_map): New.
2761         (struct eh_region): Add aka member.
2762         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
2763         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
2764         (for_each_eh_label, for_each_eh_label_1): New.
2765         (init_eh): Register exception_handler_label_map.
2766         (free_eh_status): Use free_region.
2767         (find_exception_handler_labels): Use the map, not the list.
2768         (remove_exception_handler_label): Likewise.
2769         (maybe_remove_eh_handler): Likewise.
2770         (remove_eh_handler): Use the region aka bitmap.
2771         * except.h (exception_handler_labels): Remove.
2772         (for_each_eh_label): Declare.
2773         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
2774         * loop.c (invalidate_loops_containing_label): New.
2775         (find_and_verify_loops): Use it.  Use for_each_eh_label.
2776         * sched-rgn.c (is_cfg_nonregular): Use
2777         current_function_has_exception_handlers.
2779 2002-04-09  Richard Henderson  <rth@redhat.com>
2781         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
2782         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
2783         Do not return changed status.
2784         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
2785         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
2786         New functions that do return changed status.
2787         * sbitmap.h: Update decls.
2788         * gcse.c, lcm.c: Use _cg functions as needed.
2790 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
2792         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
2793         (sh64-*-elf*, sh-*-rtemself*): Likewise.
2794         * config/sh/embed_bb.c: New file.
2795         * config/sh/embed-elf.h: New file.
2796         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
2797         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
2798         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
2799         __PTRDIFF_TYPE__ .
2800         (SUBTARGET_CPP_PTR_SPEC): Don't define.
2801         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
2802         Add subtarget_asm_endian_spec.
2803         (ASM_SPEC): Use subtarget_asm_endian_spec.
2804         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
2805         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
2806         (WCHAR_UNSIGNED): Define.
2807         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
2808         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
2809         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
2810         Fix value.
2811         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
2812         (sh_adjust_cost): Likewise.
2813         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
2814         __PTRDIFF_TYPE__ .
2815         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
2816         (WCHAR_TYPE_SIZE): Likewise.
2817         (ASM_SPEC): Use subtarget_asm_endian_spec.
2818         (SH_ELF_WCHAR_TYPE): #undef/ #define.
2819         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
2820         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
2821         (MAX_WCHAR_TYPE_SIZE): Don't #define .
2822         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
2823         (USER_LABEL_PREFIX): Don't #undef /#define .
2824         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
2825         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
2826         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
2827         (ASM_SPEC): Likewise.
2828         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
2829         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
2830         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
2831         (LIB2FUNCS_EXTRA): Define.
2832         * t-sh64 (LIB2FUNCS_EXTRA): Define.
2833         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
2834         (LIB1ASMFUNCS_CACHE): Define.
2835         (LIB2FUNCS_EXTRA): Redefine empty.
2837 2002-04-08  Richard Henderson  <rth@redhat.com>
2839         * reorg.c (get_branch_condition): Use reversed_comparison_code.
2841 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2843         * config/m68hc11/larith.asm (__map_data_section): Fix condition
2844         and optimize for size.
2845         (__do_global_ctors): Fix pointer comparison.
2846         (__do_global_dtors): Likewise.
2848 2002-04-09  David S. Miller  <davem@redhat.com>
2850         * config/sparc/sparc.c (sparc_extra_constraint_check): New
2851         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
2852         allow reloading pseudos.
2853         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
2854         * config/sparc/sparc-protos.h: Declare it.
2856         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
2857         unsigned comparison warning.
2858         (output_restore_regs): Mark leaf_function as unused.
2860 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2862         * expr.c (is_aligning_offset): New function.
2863         (expand_expr, case COMPONENT_EXPR): Call it.
2865 2002-04-08  David S. Miller  <davem@redhat.com>
2867         PR target/6082
2868         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
2870         Make init_priority work on Sparc when using GNU ld.
2871         * config/sparc/linux.h, config/sparc/linux64.h,
2872         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
2873         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
2874         * config/sparc/sol2-gld.h: New file to do the same.
2875         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
2876         sparc/sol2-gld.h to tm_file.
2878         PR optimization/4328
2879         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
2880         * doc/md.texi: Document it.
2881         * config/sparc/sparc.md (movdi_insn_sp64_novis,
2882         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
2883         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
2884         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
2885         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
2887 2002-04-08  Andreas Jaeger  <aj@suse.de>
2889         * stmt.c (expand_asm_operands): Revert last patch from Richard
2890         Henderson.
2892 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2894         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
2895         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
2897 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2899         * doc/contrib.texi (Contributors): Add David O'Brien.
2901 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
2903         * configure.in (auto-build.h): Use target_alias and build_alias
2904         when running configure.
2905         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
2906         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
2907         * configure: Regenerate.
2909 2002-04-07  David S. Miller  <davem@redhat.com>
2911         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
2913 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2915         PR 5933
2916         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
2917         generating 32-bit pic code.
2919 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
2921         * cppinit.c (cpp_create_reader): Initialize
2922         discard_comments_in_macro_exp.
2923         (COMMAND_LINE_OPTIONS): Add "-CC" option.
2924         (cpp_handle_option): Handle "-CC" option.
2925         * cpplex.c (save_comment): If saving a C++ comment in
2926         a directive, convert it to a C comment.
2927         (_cpp_lex_direct): Pass second comment start character to
2928         save_comment to indicate comment type.
2929         * cpplib.c (_cpp_handle_directive): If processing
2930         a "#define" directive and discard_comments_in_macro_exp
2931         is false,  re-enable saving of comments.
2932         (lex_macro_node): If discard_comments_in_macro_exp is false,
2933         discard any comments before the macro identifier.
2934         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
2935         member.
2936         * cppmacro.c (cpp_get_token): If expanding a macro while
2937         processing a directive, discard any comments we might encounter.
2938         (parse_params): If discard_comments_in_macro_exp is false,
2939         ignore comments in the macro parameter list.
2940         * gcc.c (cpp_unique_options): Add "-CC" option.
2941         (option_map): Map "--comments-in-macros" to "-CC".
2942         * doc/cppopts.texi: Document "-CC" option.
2943         * f/lang-specs.h: Add "-CC" option.
2944         * testsuite/gcc.dg/cpp/maccom1.c: New test.
2945         * testsuite/gcc.dg/cpp/maccom2.c: New test.
2946         * testsuite/gcc.dg/cpp/maccom3.c: New test.
2947         * testsuite/gcc.dg/cpp/maccom4.c: New test.
2948         * testsuite/gcc.dg/cpp/maccom5.c: New test.
2949         * testsuite/gcc.dg/cpp/maccom6.c: New test.
2951 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2953         PR middle-end/6180
2954         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
2956 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
2958         PR c++/5571
2959         * stor-layout.c (layout_decl): Reset the RTL for the decl.
2961         PR opt/5120
2962         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
2963         RTX_UNCHANGING_P for the functions arguments when a tail call
2964         is made.
2966 2002-04-06  Jason Merrill  <jason@redhat.com>
2968         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
2969         (parse_options_and_default_flags): Set them appropriately.
2970         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
2972 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
2974         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
2975         here.
2977         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
2978         semicolon.
2980         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
2981         types come in by-reference.  Fix typo in comment.
2983 2002-04-05  David S. Miller  <davem@redhat.com>
2985         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
2986         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
2987         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
2988         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
2990 2002-04-05  David S. Miller  <davem@redhat.com>
2992         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
2993         are not going to emit return instructions, emit at least a nop
2994         for the sake of sane backtraces.
2996 2002-04-05  Richard Henderson  <rth@redhat.com>
2998         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
3000 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
3002         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
3004 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
3006         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
3007         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
3008         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
3010 2002-04-05  Andreas Schwab  <schwab@suse.de>
3012         * c-convert.c: Include c-common.h.
3013         * Makefile.in (c-convert.o): Updated.
3015 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
3017         * mklibgcc.in: Use separate libgcc.map for each multilib.
3018         * Makefile.in (distclean): Don't remove libgcc.map here.
3020 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
3022         * Makefile.in (s-mlib): Handle --disable-multilib by separate
3023         genmultilib invocation.
3025 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
3027         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
3028         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
3029         to num_gprs for symmetry.
3030         * config/mips/mips.c: Adjust accordingly.
3032 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
3034         * c-common.c (truthvalue_conversion): Rename, update.
3035         * c-common.h (c_common_truthvalue_conversion): New.
3036         * c-convert.c (convert): Update.
3037         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
3038         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
3039         * c-typeck.c (build_binary_op, build_unary_op,
3040         build_conditional_expr): Update.
3041         * fold-const.c (constant_boolean_node, fold): Use langhook.
3042         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
3043         * langhooks.h (struct lang_hooks): New hook.
3044         * stmt.c (expand_decl_cleanup): Use langhook.
3045         * tree.h (truthvalue_conversion): Remove.
3046 objc:
3047         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
3049 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
3051         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
3052         Add rules to make null object file.
3054 2002-04-04  Jim Blandy  <jimb@redhat.com>
3056         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
3057         macro formal parameter names.
3059 2002-04-04  David S. Miller  <davem@redhat.com>
3061         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
3063 2002-04-04  Richard Henderson  <rth@redhat.com>
3065         PR middle-end/5099
3066         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
3067         Support copies into and out of memory.  Don't accept allows_reg
3068         and allows_mem as gospel.
3070 2002-04-04  Richard Henderson  <rth@redhat.com>
3072         PR opt/6165
3073         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
3074         (write_dependence_p): Likewise.
3076 2002-04-04  Richard Henderson  <rth@redhat.com>
3078         * predict.c (estimate_bb_frequencies): Do frequency calculation
3079         with a volatile temporary.
3081 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
3083         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
3085 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
3087         PR c++/6119
3088         * final.c (final_start_function): Don't bump profile_label_no here...
3089         (final_end_function): ...but here.
3091 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
3093         * config/sparc/sparc.md (pic): New attribute.
3094         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
3095         into stack slots.
3096         (split after do_builtin_setjmp_setup): New.
3098 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
3100         PR fortran/6106
3101         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
3102         change.
3104 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
3106         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
3107         UNITS_PER_WORD for zero sized aggregates.
3109 2002-04-03  David S. Miller  <davem@redhat.com>
3111         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
3112         one-character spec for this, just use %(link_gcc_c_sequence).
3114 2002-04-03  David S. Miller  <davem@redhat.com>
3116         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
3117         handling.
3119 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3121         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
3122         (DWARF_FRAME_RETURN_COLUMN): Move.
3123         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3124         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
3125         * pa.c (except.h, predict.h): Include.
3126         (FRP): Delete.
3127         (store_reg_modify, set_reg_plus_d): Revise prototypes.
3128         (output_ascii): Add cast.
3129         (store_reg_modify): Revise to add frame notes.
3130         (set_reg_plus_d): Likewise.
3131         (compute_frame_size): Include space for eh data registers in frame if
3132         the current function calls eh_return.
3133         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
3134         function calls eh_return.  Save eh data registers if the current
3135         function calls eh_return.  Fix code to add frame notes.  Emit
3136         blockage to prevent insns with frame notes being scheduled in the
3137         delay slot of calls.
3138         (hppa_expand_epilogue): Restore eh data registers and do final stack
3139         adjustment if the current function calls eh_return.  Don't add frame
3140         notes.
3141         (output_call): Revise for change in length of call insn.  Don't do
3142         return pointer adjustment for an unconditional jump in the delay slot
3143         of a call when using frame notes.
3144         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
3145         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
3146         (ARG_POINTER_CFA_OFFSET): Define.
3147         * pa.md (return_external_pic): New pattern.
3148         (prologue): Correct formatting.  Use return_external_pic if current
3149         function calls eh_return.
3150         (call_internal_symref, call_value_internal_symref,
3151         sibcall_internal_symref, sibcall_value_internal_symref): Change default
3152         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
3153         respectively.
3154         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
3156         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
3157         list of targets to check using "nop" insn.
3158         * configure: Rebuilt.
3160 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
3162         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
3164 2002-04-03  David S. Miller  <davem@redhat.com>
3166         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
3167         library sequence passed to the linker.
3168         (LINK_COMMAND_SPEC): Use it.
3169         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
3170         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
3171         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3173 2002-04-03  Jason Merrill  <jason@redhat.com>
3175         * except.c (struct eh_status): Remove protect_list.
3176         (begin_protect_partials, end_protect_partials): Remove.
3177         (add_partial_entry): Remove.
3178         * except.h: Remove prototypes.
3180         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
3181         expand_decl_cleanup_eh.
3183         PR c++/5636
3184         * tree.h (CLEANUP_EH_ONLY): New macro.
3185         * stmt.c (expand_decl_cleanup_eh): New fn.
3186         (expand_cleanups): Check CLEANUP_EH_ONLY.
3187         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
3188         Use expand_decl_cleanup_eh.
3189         (expand_stmt): Adjust.
3190         * c-common.h: Adjust prototype.
3192 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
3194         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
3195         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
3196         (cris_target_asm_function_epilogue): Ditto.
3197         (cris_initial_frame_pointer_offset): Ditto.
3198         (cris_simple_epilogue): Ditto.
3199         (cris_expand_builtin_va_arg): Variable-size types come in
3200         by-reference.
3202 2002-04-03  David S. Miller  <davem@redhat.com>
3204         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
3205         little-endian.
3206         (set_fast_math): Correct 'fsr' type.
3208 2002-04-03  Richard Henderson  <rth@redhat.com>
3210         PR opt/3569
3211         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
3212         * toplev.c (check_global_declarations): Use it.
3213         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
3214         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
3215         (LANG_HOOKS_DECLS): Add it.
3216         * langhooks.c (lhd_warn_unused_global_decl): New.
3217         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
3218         * c-objc-common.c (c_warn_unused_global_decl): New.
3219         * c-tree.h (c_warn_unused_global_decl): Declare.
3220         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
3222 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
3224         * langhooks-def.h (lhd_set_decl_assembler_name,
3225         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
3226         (LANG_HOOKS_INITIALIZER): Update.
3227         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
3228         * langhooks.h (struct lang_hooks): New hook.
3229         * tree.c (set_decl_assembler_name): Move to langhooks.c.
3230         (lang_set_decl_assembler_name): Remove.
3231         (init_obstacks): Don't set hook.
3232         (decl_assembler_name): New function.
3233         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
3234         (decl_assembler_name): New.
3235         (lang_set_decl_assembler_name): Remove.
3237 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
3239         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
3240         works properly with .hidden symbols.
3241         * configure: Rebuilt.
3242         * config.in: Rebuilt.
3243         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
3244         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
3245         properly with .hidden symbols.
3247 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
3249         PR middle-end/6102
3250         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
3251         USE argument.
3253 2002-04-03  Richard Henderson  <rth@redhat.com>
3255         PR opt/4120
3256         * sched-rgn.c (sets_likely_spilled): New.
3257         (sets_likely_spilled_1): New.
3258         (add_branch_dependences): Use it.
3260 2002-04-02  Richard Henderson  <rth@redhat.com>
3262         PR opt/4311
3263         * loop.h (LOOP_FIRST_PASS): New.
3264         * loop.c (strength_reduce): Mind it when deciding to unroll.
3265         * toplev.c (rest_of_compilation): Set it.
3267 2002-04-02  David S. Miller  <davem@redhat.com>
3269         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
3270         mems_ok_for_ldd_peep when the order of the loads being examined
3271         is reversed.
3272         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
3273         existing comment to increase comprehension of this situation.
3275 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
3277         * config/sh/sh.md: Don't use union real_extract.
3279 2002-04-02  Richard Henderson  <rth@redhat.com>
3281         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
3283 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
3285         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
3286         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
3287         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
3288         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
3289         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
3290         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
3291         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
3292         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
3293         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
3294         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
3295         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
3296         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
3297         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
3298         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
3299         Include as many configury headers via tm_file as possible.  This
3300         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
3301         * config/openbsd-oldgas.h: New file.
3302         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
3303         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
3304         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
3305         config/i386/i386-coff.h, config/i386/i386-interix.h,
3306         config/i386/iscdbx.h, config/i386/linux-aout.h,
3307         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
3308         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
3309         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
3310         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
3311         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
3312         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
3313         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
3314         config/i386/vxi386.h: Do not directly include configury headers.
3315         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
3316         Directly include configury headers that are no longer automatically
3317         included by the above headers.
3318         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
3319         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
3320         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
3321         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
3322         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
3323         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
3324         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
3325         (TARGET_VERSION): Define.
3326         * config/i386/beos-elf.h, config/i386/freebsd.h,
3327         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
3328         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
3329         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
3330         config/i386/sco5.h, config/i386/sysv4.h
3331         (TARGET_VERSION): Do not need to protect.
3332         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
3333         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
3334         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
3335         config/i386/i386-interix.h, config/i386/linux-aout.h,
3336         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
3337         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
3338         (YES_UNDERSCORES): Do not define - not needed.
3339         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
3340         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
3341         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
3342         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
3343         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
3344         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
3345         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
3346         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
3348 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
3349             Richard Henderson  <rth@redhat.com>
3351         PR c/5484
3352         * function.c (assign_temp): Accept either type or decl argument.
3353         Detect variables whose size is too large to fit into an integer.
3354         * stmt.c (expand_decl): Pass the decl, not the type.
3356 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
3358         * protoize.c: Match include directory usage with cppdefault.c.
3360 2002-04-03  Jeffrey A Law  (law@redhat.com)
3361             Hans-Peter Nilsson  <hp@bitrange.com>
3363         * combine.c (simplify_comparison): Avoid narrowing a comparison
3364         with a paradoxical subreg when doing so would drop signficant bits.
3366 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
3368         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
3369         if POINTERS_EXTEND_UNSIGNED is defined.
3371 2002-04-02  Richard Henderson  <rth@redhat.com>
3373         PR opt/3967
3374         * local-alloc.c (contains_replace_regs): LO_SUM may contain
3375         replace regs.
3377 2002-04-02  Richard Henderson  <rth@redhat.com>
3379         * doc/standards.texi: Document required freestanding libc entry points.
3381 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
3383         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
3384         associated splitter.  Remove MQ constraint.
3385         (ctrdi_internal4): Correct CCmode clobber.
3387 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3389         * milli64.S ($$dyncall): New function.
3390         * t-linux (LIB1ASMFUNCS): Revise module list.
3391         (LIB1ASMSRC): Use pa/milli64.S.
3393 2002-04-02  Richard Henderson  <rth@redhat.com>
3395         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
3396         rename solaris_sys_varargs_h.
3398 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3400         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
3401         the same mode as its component.
3403 2002-04-02  Richard Henderson  <rth@redhat.com>
3405         PR opt/190
3406         * final.c (this_is_asm_operands): Export.
3407         * output.h (this_is_asm_operands): Declare.
3408         * config/i386/i386.c (print_operand): Error odd asm operands.
3410 2002-04-02  Richard Henderson  <rth@redhat.com>
3412         PR opt/420
3413         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
3415 2002-04-01  Richard Henderson  <rth@redhat.com>
3417         PR target/1538
3418         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
3419         * fixinc/fixincl.x: Rebuild.
3421 2002-04-01  Richard Henderson  <rth@redhat.com>
3423         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
3424         (atomic_alloc, atomic_free): New.
3425         (SIZE, MASK_FOR, PTR_IN): New.
3426         (emergency_reg_state, emergency_reg_state_free): New.
3427         (emergency_labeled_state, emergency_labeled_state_free): New.
3428         (reg_state_alloced, labeled_state_alloced): New.
3429         (alloc_reg_state, free_reg_state): New.
3430         (alloc_label_state, free_label_state, free_label_states): New.
3431         (push, pop, dup_state_stack, free_state_stack): Use them.
3432         (desc_label_state): Likewise.
3433         (uw_frame_state_for): Free label states and state stack.
3434         (uw_update_reg_address): Eliminate warnings.
3436 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
3438         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
3439         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
3441 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3443         * c-decl.c (grokdeclarator): Update.
3444         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
3445         * c-tree.h (c_mark_addressable): New.
3446         * c-typeck.c (default_function_array_conversion, build_unary_op,
3447         build_array_ref, convert_for_assignment): Update.
3448         (mark_addressable): Rename.
3449         * calls.c (try_to_integrate, expand_call): Use langhook.
3450         * expr.c (expand_expr): Use langhook.
3451         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
3452         * langhooks.h (struct lang_hooks): New hook.
3453         * stmt.c (expand_asm_operands): Use langhook.
3454         * tree.h (mark_addressable): Remove.
3455 objc:
3456         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
3458 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
3460         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
3461         in previous change.
3463 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
3465         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
3466         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
3468 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3470         * c-common.c (unsigned_conversion_warning, convert_and_check,
3471         unsigned_type, signed_type, shorten_compare,
3472         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
3473         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
3474         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
3475         New.
3476         * c-decl.c (grokdeclarator): Update.
3477         * c-format.c (check_format_types): Update.
3478         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
3479         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
3480         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
3481         * convert.c (convert_to_integer): Use new hooks.
3482         * expmed.c (make_tree): Use new hooks.
3483         * expr.c (store_expr): Use new hooks.
3484         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
3485         all_ones_mask_p, unextend, fold): Use new hooks.
3486         * langhooks.h (struct lang_hooks_for_types): New hooks.
3487         * tree.h (signed_or_unsigned_type, signed_type,
3488         unsigned_type): Remove.
3489 objc:
3490         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
3491         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
3493 2002-03-31  Richard Henderson  <rth@redhat.com>
3495         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
3496         (desc_frgr_mem): Fix reference to f16-f31.
3498 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3500         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
3501         RTVEC_ELT): Const-ify.
3502         * varray.h (VARRAY_CHECK): Const-ify.
3503         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
3504         ggc_mark_rtvec, ggc_mark): Const-ify.
3506 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3508         * diagnostic.c: Include langhooks-def.h.
3509         * Makefile.in (diagnostic.o): Update.
3511 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
3513         * c-common.c (c_unsafe_for_reeval): Rename.
3514         * c-common.h (c_unsafe_for_reeval): Rename.
3515         * c-decl.c (finish_incomplete_decl): Rename.
3516         (c_init_decl_processing): Don't set langhook.
3517         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
3518         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3519         * c-objc-common.c (c_objc_common_init): Don't set langhook.
3520         * c-tree.h (finish_incomplete_decl): Rename.
3521         * langhooks-def.h (lhd_unsafe_for_reeval): New.
3522         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
3523         (LANG_HOOKS_INITIALIZER): Update.
3524         * langhooks.c (lhd_unsafe_For_reeval): New.
3525         * langhooks.h (struct langhooks): New hooks.
3526         * toplev.c (incomplete_decl_finalize_hook): Remove.
3527         (wrapup_global_declarations): Update.
3528         * tree.c (lang_unsafe_for_reeval): Remove.
3529         (unsafe_for_reeval): Update.
3530         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
3531         Remove.
3532 objc:
3533         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
3534         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3536 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
3538         * diagnostic.c (print_error_function): Remove.
3539         (default_print_error_function): Rename.
3540         (report_error_function): Update.
3541         * diagnostic.h (print_error_function): Remove.
3542         (default_print_error_function): Remove.
3543         * langhooks-def.h (struct diagnostic_context): Predeclare.
3544         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
3545         (LANG_HOOKS_INITIALIZER): Update.
3546         * langhooks.h (struct diagnostic context): Predeclare.
3547         (struct lang_hooks): New hook.
3549 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3551         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
3552         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
3553         !flag_pic.
3554         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
3555         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
3556         of PIC_OFFSET_TABLE_REGNUM thruout.
3557         * config/rs6000/rs6000.md: Likewise.
3558         * config/rs6000/darwin.h: Likewise.
3560 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3562         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
3563         unsigned HOST_WIDE_INT, not unsigned int.
3565 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
3567         PR middle-end/6096, middle-end/6098, middle-end/6099
3568         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
3569         CODE_LABELs.
3570         (fill_slots_from_thread): Likewise.
3572 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
3574         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
3575         floating fields in float regs.
3576         (function_arg_record_value_2): Likewise.
3578 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
3580         * config/mmix/mmix.md (define_constants): Remove misleading
3581         FIXME.  Add MMIX_fp_rO_OFFSET.
3582         ("nonlocal_goto_receiver"): Don't have stack-frame address of
3583         saved rO as part of the pattern.  Remove FIXME.
3584         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
3585         here, at output-time.
3587 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
3589         PR middle-end/6100
3590         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
3591         REG_BR_PRED.
3592         (output_v9branch): Likewise.
3594 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
3596         * gcc.c: Revert previous patch for now.
3597         * config/i386/djgpp.h: Likewise.
3599 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
3601         * config/mmix/crti.asm (_init): Register _fini with atexit.
3602         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
3604 2002-03-31  Richard Henderson  <rth@redhat.com>
3606         PR target/3997
3607         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
3608         (ASM_OUTPUT_DEF_FROM_DECLS): New.
3610 2002-03-31  Richard Henderson  <rth@redhat.com>
3612         * libgcc2.c (__bb_exit_func): Make static.
3614         * config/alpha/alpha.md (trap): New.
3616 2002-03-31  Richard Henderson  <rth@redhat.com>
3618         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
3619         promoted argument types; build trap.
3620         (expand_builtin_trap): New.
3621         (expand_builtin): Use it.
3622         * stmt.c (expand_nl_goto_receivers): Likewise.
3623         * expr.h (expand_builtin_trap): Declare.
3624         * libfuncs.h (LTI_abort, abort_libfunc): New.
3625         * optabs.c (init_optabs): Init abort_libfunc.
3627 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
3629         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
3630         (LINK_COMMAND_SPEC): ... from here.
3631         (init_gcc_specs): Duplicate it here too, omitting
3632         shared_name in the second copy.
3633         (init_spec): Test for duplicate
3634         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
3636 2002-03-30  David S. Miller  <davem@redhat.com>
3638         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3639         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
3641 2002-03-30  Roger Sayle <roger@eyesopen.com>
3642             Richard Henderson  <rth@redhat.com>
3644         * regmove.c (combine_stack_adjustments_for_block): Avoid
3645         emitting a stack adjustment of zero bytes.  Let delete_insn
3646         update bb->head.
3648 2002-03-30  Richard Henderson  <rth@redhat.com>
3650         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
3651         (sparc_emitting_epilogue): New.
3652         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
3653         * config/sparc/sparc-protos.h: Update.
3654         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
3655         (TARGET_SWITCHES): Update.
3656         * config/sparc/sparc.md (return): Remove.
3657         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
3658         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
3659         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
3660         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
3661         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
3662         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
3663         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
3664         Remove MASK_EPILOGUE.
3665         * doc/invoke.texi: Update.
3667 2002-03-30  Daniel Berlin  <dan@dberlin.org>
3669         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
3670         CPP will start the file for us.
3672 2002-03-30  Richard Henderson  <rth@redhat.com>
3674         PR target/5446
3675         * config/ia64/ia64.c (group_barrier_needed_p): Special case
3676         prologue_allocate_stack.
3677         (ia64_single_set): Use insn codes for recognition of special
3678         cases, not rtl matching.
3679         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
3681 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
3683         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
3685 2002-03-30  Richard Henderson  <rth@redhat.com>
3687         PR target/6032
3688         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
3689         or -fomit-frame-pointer with profiling.
3690         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3691         (FUNCTION_PROFILER): Do nothing.
3692         (PROFILE_HOOK): New.
3693         * config/sparc/sparc.c (sparc_override_options): Don't check
3694         code models for profiling.
3695         (sparc_function_profiler): Remove.
3696         (sparc_profile_hook): New.
3697         * config/sparc/sparc-protos.h: Update.
3699 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
3701         PR optimization/6086
3702         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
3703         of SUBREG of volatile MEM or because the MEM was mode dependent,
3704         return CLOBBER instead of unmodified SUBREG.
3706 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
3708         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
3709         when not optimizing.
3711         * toplev.c (rest_of_compilation): Cann mark_constant_function
3712         only when optimizing.
3714         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
3715         are NULL.
3717         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
3718         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
3719         (try_optimize_cfg): clear all AUX fields.
3721         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
3722         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
3723         (ix86_address_cost): Be prepared for SUBREGed registers.
3724         (legitimate_address_p): Accept SUBREGed registers.
3726 2002-03-29  Richard Henderson  <rth@redhat.com>
3728         PR target/5672
3729         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
3731 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3733         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
3734         for aggregate and TFmode types.
3736 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
3738         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
3740 2002-03-29  Richard Henderson  <rth@redhat.com>
3742         PR target/5886
3743         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
3744         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
3746 2002-03-29  Richard Henderson  <rth@redhat.com>
3748         PR target/6041
3749         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
3750         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
3751         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
3752         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
3753         conditional.
3754         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
3756 2002-03-29  Dale Johannesen <dalej@apple.com>
3758         * loop.c (combine_movables): Do allow combination of pseudos.
3760 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
3762         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
3763         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
3764         No functional change except ...
3765         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
3766         * doc/install.texi (*-*-freebsd*): Document port configuration.
3768 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3770         * Makefile.in (convert.o, calls.o, expmed.o): Update.
3771         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
3772         Use new hooks.
3773         * builtin-types.def (BT_PTRMODE): Update.
3774         * c-common.c (type_for_size): Rename c_common_type_for_size.
3775         (type_for_mode): Similarly.
3776         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
3777         Use new hook.
3778         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
3779         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
3780         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
3781         Redefine.
3782         * c-typeck.c (common_type, comptypes, default_conversion):
3783         Use new hooks.
3784         * calls.c: Include langhooks.h.
3785         (emit_library_call_value_1): Use new hooks.  Avoid redundant
3786         calls.
3787         * convert.c: Include langhooks.h
3788         (convert_to_pointer, convert_to_integer): Use new hooks.
3789         * except.c (init_eh): Similarly.
3790         * expmed.c: Include langhooks.h.
3791         (expand_mult_add): Use new hooks.
3792         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
3793         try_casesi): Similarly.
3794         * fold-const.c (optimize_bit_field_compare, make_range,
3795         decode_field_reference, fold_truthop, fold): Similarly.
3796         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
3797         put_var_into_stack): Similarly.
3798         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
3799         LANG_HOOKS_TYPE_FOR_SIZE): New.
3800         (LANG_HOOKS_TYPES_INITIALIZER): Update.
3801         * langhooks.h (lang_hooks_for_types): New hooks.
3802         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
3803         * tree.c (get_unwidened, get_narrower): Similarly.
3804         * tree.h (type_for_mode, type_for_size): Remove.
3805         * varasm.c (force_const_mem): Use new hooks.
3806         * utils2.c (nonbinary_modular_operation): Update.
3807 objc:
3808         * objc-act.c (handle_impent): Update.
3809         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
3810         Redefine.
3812 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
3814         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
3815         * config/ia64/ia64.c (basereg_operand): New.
3816         * config/ia64/ia64-protos.h (basereg_operand): Declare.
3817         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
3819 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
3821         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
3822         unwind information when frame_pointer_needed.
3823         (mmix_assemble_integer): Tweak wording in comment.
3825 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3827         * Makefile.in (except.o): Update.
3828         * except.c: Include langhooks.h.
3829         (init_eh): Use langhook.
3830         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
3831         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
3832         (LANG_HOOKS_INITIALIZER): Update.
3833         * langhooks.h (lang_hooks_for_types): New.
3834         (struct lang_hooks): Add it.
3835         * tree.c (make_lang_type_fn, make_lang_type): Remove.
3836         * tree.h (make_lang_type_fn, make_lang_type): Remove.
3837 config:
3838         * alpha/alpha.c: Include langhooks.h.
3839         (alpha_build_va_list): Use langhook.
3840         * d30v/d30v.c: Include langhooks.h.
3841         (d30v_build_va_list): Use langhook.
3842         * i386/i386.c: Include langhooks.h.
3843         (ix86_build_va_list): Use langhook.
3844         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
3845         * s390/s390.c: Include langhooks.h.
3846         (s390_build_va_list): Use langhook.
3847         * stormy16/stormy16.c: Include langhooks.h.
3848         (stormy16_build_va_list): Use langhook.
3850 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
3852         PR c++/5964
3853         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
3854         attributes.
3855         (length): Compute variable length for branches/calls/jumps here.
3856         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
3857         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
3858         define branch_type attribute.
3859         (divsi3_sp32): Maximum length is 6 not 7.
3860         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
3861         call_address_untyped_struct_value_sp32,
3862         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
3863         * config/sparc/sparc.c (empty_delay_slot): New function.
3864         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
3865         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
3867 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
3869         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
3870         nonzero_bits if not needed.
3871         (nonzero_bits) [XOR]: Likewise.
3872         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
3873         reg_last_set_mode and mode are both MODE_INT, but not equal.
3874         (record_value_for_reg): Compute reg_last_set_nonzero_bits
3875         in nonzero_bits_mode for MODE_INT modes.
3877 2002-03-28  Richard Henderson  <rth@redhat.com>
3879         PR target/5715
3880         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
3881         to GAS.  Correct drift between alternatives.
3883 2002-03-28  Richard Henderson  <rth@redhat.com>
3885         PR target/6087
3886         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
3888 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
3890         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
3891         emulation to the linker.
3893 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
3895         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
3896         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
3898 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
3900         * combine.c (simplify_and_const_int): Make sure to apply mask
3901         when force_to_mode returns a constant integer.  PR3311.
3903 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3905         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
3907 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3909         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
3910         and Objective-C Dialect Options.
3912 2002-03-28  Richard Henderson  <rth@redhat.com>
3914         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
3915         comparison should be done vs !=0 not >0 return code.  Tidy cases.
3917 2002-03-28  Richard Henderson  <rth@redhat.com>
3919         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
3920         on to c_expand_body.
3921         * c-tree.h (finish_function): Update decl.
3922         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
3924 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
3926         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
3928 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
3930         * rtlanal.c: Include flags.h
3931         (may_trap_p): Do not mark FP operations if trapping
3932         if !flag_trapping_math
3933         * Makefile.in (rtlanal.o): Add dependency on flag.h
3934         * ifcvt.c (noce_operand_ok): Avoid the lameness.
3936 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
3938         * mips.md: Use dconst1, not 1.0, as first argument of
3939         REAL_VALUE_LDEXP.  Don't use union real_extract.
3941 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
3943         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
3944         rather than $target.  Heed program_prefix and
3945         program_transform_name.  Search for gas in cross-compiler case too.
3946         "test -x" rather than "test -f".
3947         (gcc_cv_ld): Likewise.
3948         (gcc_cv_nm): Heed program_prefix and program_transform_name.
3949         (gcc_cv_objdump): Likewise.
3950         * configure: Regenerate.
3952 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3954         * Makefile.in (attribs.o): Update.
3955         * attribs.c: Include langhooks.h.
3956         (decl_attributes): Use langhook.
3957         * c-decl.c (insert_default_attributes): Rename.
3958         * c-tree.h (c_insert_default_attributes): New.
3959         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
3960         (LANG_HOOKS_INITIALIZER): Update.
3961         * langhooks.h (struct lang_hooks): New hook.
3962         * tree.h (insert_default_attributes): Remove.
3963 objc:
3964         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
3966 2002-03-27  Andreas Schwab  <schwab@suse.de>
3968         * config/i386/i386.c (classify_argument): Also check for
3969         QUAL_UNION_TYPE.
3971 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3973         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
3974         any more.
3976 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
3978         * i960.md (ret): Set PC.
3979         (nonlocal_goto): Fix expander.
3980         * builtins.c (epxand_builin_longjmp): Check that we've emitted
3981         some jump or call.
3983 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
3985         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
3986         of libcall regions.
3988 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3990         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
3991         assigning to BLOCK_FOR_INSN directly.
3993 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
3995         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
3997 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3999         * c-common.c (c_expand_expr): Fix prototype.
4000         * c-common.h (c_expand_expr): Always declare, update.
4001         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
4002         * c-objc-common.c (c_objc_common_init): No global hook.
4003         * expr.c (expand_expr): Use langhook.
4004         * expr.h (enum expand_modifier): Conditionally declare.
4005         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
4006         (LANG_HOOKS_INITIALIZER): Update.
4007         * langhooks.c (lhd_expand_expr): New.
4008         * langhooks.h (struct lang_hooks): New hook.
4009         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
4010         (lang_independent_init): Don't default hook.
4011 objc:
4012         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
4014 2002-03-27  Richard Henderson  <rth@redhat.com>
4016         PR target/6054
4017         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
4018         TARGET_CONST_GP.  Simplify conditions.
4020 2002-03-27  Richard Henderson  <rth@redhat.com>
4022         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
4023         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
4024         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
4026 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
4028         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
4029         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
4030         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
4031         Remove unnecessary masks.
4032         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
4033         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
4034         -mwindows, -mdll switches and their negations.
4036 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
4038         * gcc-common.c (lang_mark_false_label_stack): Remove.
4039         * ggc.h (lang_mark_false_label_stack): Similarly.
4041 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
4043         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
4045         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
4046         or __rtems_ is defined.
4048 2002-03-26  Richard Henderson  <rth@redhat.com>
4050         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
4051         if a non-trivial load was emitted.
4052         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
4053         in high+extra+low case.
4055 2002-03-26  Richard Henderson  <rth@redhat.com>
4057         * config.gcc (sparc*-solaris): Use float_format=sparc.
4059 2002-03-26  Richard Henderson  <rth@redhat.com>
4061         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
4062         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
4063         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
4064         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
4065         (WINT_TYPE_SIZE): Fix at 32.
4067 2002-03-26  Richard Henderson  <rth@redhat.com>
4069         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
4070         until after eh landing pad generation.
4071         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
4072         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
4074 2002-03-26  Richard Henderson  <rth@redhat.com>
4076         * expr.h (ADD_PARM_SIZE): One more convert for INC.
4078 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
4080         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
4081         and warning switches.
4082         (cc1_options):  Likewise.
4084 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
4086         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
4087         Restore more of the signal context.  Set no_reg_stack_frame.
4088         * config/ia64/unwind-ia64.c (unw_state_record):
4089         Add no_reg_stack_frame, comments.
4090         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
4091         (uw_update_context): Adjust bsp when unwinding from leaf,
4092         but not signal frame.
4094 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
4096         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
4098 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
4100         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
4102 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
4104         PR target/5621
4105         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
4106         "Add a pool_range attribute", which was lost during the ARM/Thumb
4107         merge.
4109 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
4111         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
4112         a register into the MAC16 accumulator.
4114 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
4116         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
4117         (Warning Options): Document -Wswitch-enum.
4118         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
4119         -Wswitch.
4120         (warn_switch_enum): Define variables.
4121         * flags.h (warn_switch_enum): Declare variables.
4122         * stmt.c (expand_end_case_type): When warn_switch_enum /
4123         -Wswitch-enum, perform switch checks.
4124         Fix PR c/5044.
4126 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
4128         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
4129         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
4130         (reload_muladdsi_compare0_scratch): Delete.
4132 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
4134         * doc/install.texi (*-*-freebsd*): Update.
4136 2002-03-26  Richard Henderson  <rth@redhat.com>
4138         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
4139         (SUB_PARM_SIZE): Cast DEC to ssizetype.
4141         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
4142         types from the normal argument frame.
4144         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
4145         variable sized objects by reference.
4146         (sparc_va_arg): Receive them by reference too.
4148 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
4150         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
4151         code to not restoring global registers.
4153 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
4155         * Makefile.in (ggc-common.o): Update.
4156         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
4157         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
4158         * c-tree.h (c_mark_tree): New.
4159         * ggc-common.c: Include langhooks.h.
4160         (gcc_mark_trees): Use new langhook.
4161         * ggc-callbacks.c: Delete file.
4162         * ggc.h (lang_mark_tree): Remove.
4163         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
4164         (LANG_HOOKS_INITIALIZER): Update.
4165         * langhooks.h (struct lang_hooks): New hook.
4166 objc:
4167         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
4169 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
4171         * doc/cpp.texi: Exclude entire Top node from printed manual.
4172         Move option index after directive index.  Insert page breaks
4173         before GFDL and concept index.  Index environment variables
4174         with command line options.
4175         * doc/cppenv.texi: Use @vtable for environment variable list.
4176         Add paragraph explaining semantics of empty elements in path
4177         variables.  Exclude a cross-reference to Fishkill from the
4178         manpage.  Remove an unnecessary cross-reference of the entry
4179         right above the referer.  Don't use @anchor in text that goes
4180         into manpage.
4181         * doc/cppopts.texi: Cross-reference the environment variables
4182         section, not the specific environment variable, for consistency.
4184 2002-03-25  Richard Henderson  <rth@redhat.com>
4186         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
4187         anywhere in the block.  Don't refer to insns that have been
4188         removed from the chain.  Iterate backward through the new insns.
4189         Don't refer to edges that have been removed.
4191 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
4193         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
4194         test for overflow of constant.
4196 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
4198         PR target/2623
4199         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
4200         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
4201         these patterns on arm_archv4.
4203 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
4205         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
4206         int".
4208 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
4210         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
4211         float_handled, float_handler, float_signal, set_float_handler,
4212         and do_float_handler.  Set handler for SIGFPE to crash_signal.
4213         * toplev.h: Don't prototype do_float_handler.
4215         * c-lex.c: Fold parse_float into lex_number.  Make warning
4216         about portability of hex float constants more informative, and
4217         don't issue it on top of a syntax error.
4218         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
4219         their callers.
4220         * real.h: Define REAL_VALUE_ABS here...
4221         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
4222         simplify_unary_real, simplify_binary_real, and
4223         simplify_binary_is2orm1 into their callers.
4224         * tree.c: Fold build_real_from_int_cst_1 into caller.
4226         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
4228         * tsystem.h: Include float.h here...
4229         * libgcc2.c: ... not here.
4231 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
4233         Fixes for: PR bootstrap/3591, target/5676
4234         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
4235         defined.  Do not disable exceptions or rtti.
4236         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
4237         mcore.h.  Disable exceptions and rtti, since they are not
4238         supported by EPOC.
4240 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
4242         * c-decl.c (maybe_build_cleanup): Remove.
4243         * expr.c (expand_expr): Use langhook.
4244         * langhooks-def.h (lhd_return_null_tree,
4245         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
4246         (LANGHOOKS_INITIALIZER): Update.
4247         * langhooks.c (lhd_return_null_tree): New.
4248         * langhooks.h (struct lang_hooks): New hook.
4249         * tree-inline.c (initialize_inlined_parameters): Use langhook.
4250         * tree.h (maybe_build_cleanup): Remove.
4252 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
4254         * regrename.c (build_def_use): Move recog_memoized
4255         before extract_insn.
4257 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
4259         PR target/6043
4260         * expr.c (emit_group_store): Handle storing into CONCAT.
4262 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
4264         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
4265         corresponding MATCH_DUP.
4267 2002-03-24  Richard Henderson  <rth@redhat.com>
4269         * unroll.c (unroll_loop): Zero label_map.
4271         * gcse.c: Include except.h.
4272         * Makefile.in (gcse.o): Update.
4274 2002-03-24  Richard Henderson  <rth@redhat.com>
4276         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
4277         Do resolve_unique_section before shared data clause.
4279 2002-03-24  Richard Henderson  <rth@redhat.com>
4281         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
4283 2002-03-24  Richard Henderson  <rth@redhat.com>
4285         * recog.c (peephole2_optimize): Split blocks when EH insns are
4286         generated in the middle of a block.  Do global life update if
4287         zapped EH edges.
4289 2002-03-24  Richard Henderson  <rth@redhat.com>
4291         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
4293 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4295         preprocessor/3951
4296         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
4297         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
4298         (init_dependency_output): Don't make no_output decision here.
4300 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
4302         * stmt.c (check_for_full_enumeration_handling): Remove tests of
4303         warn_switch.  Update description.
4304         (expand_end_case_type): Call check_for_full_enumeration_handling
4305         when warn_switch.
4307 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4309         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
4310         (m68hc11_split_move): Call it to see if the source and destination
4311         operands use the same direction auto inc/dec mode, otherwise make the
4312         source an offsetable memory operand and generate an add.
4314 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4316         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
4317         register for operand 2.
4318         ("*subsi3_zero_extendqi"): Likewise.
4319         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
4320         bits so that it is compatible with a pop.
4321         ("*andhi3_gen"): Likewise.
4322         ("xorhi3"): Likewise.
4324 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4326         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
4327         -pedantic here...
4328         (cpp_post_options): ... not here.
4330 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4331             Aldy Hernandez  <aldyh@redhat.com>
4333         Removal of separate preprocessor cpp0.
4335         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
4336         cpp0, install-common): Update.
4337         * c-common.c (flag_preprocess_only): New.
4338         (c_common_init): Preprocess for -E.
4339         * c-common.h (flag_preprocess_only): New.
4340         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
4341         * c-objc-common.c (c_init_decl_processing): Exit quickly
4342         for NULL return from c_common_init.
4343         * cpplib.h (cpp_preprocess_file): New.
4344         * cppmain.c (main, general_init, pfile, progname): Remove.
4345         (do_preprocessing): Rename cpp_preprocess_file, don't call
4346         cpp_finish.  Don't close stdout here.
4347         (setup_callbacks): Update prototype.
4348         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
4349         Update.
4350         * tradcpp.c (main): Ignore -quiet.
4351 objc:
4352         * lang-specs.h (default_compilers): Preprocess with cc1obj.
4354 2002-03-24  Richard Henderson  <rth@redhat.com>
4356         PR optimization/5742
4357         * machmode.def: Add inner mode field to complex modes.
4358         * config/mips/mips.c (mips_function_value): Always define.  Add
4359         new argument to handle libcalls.
4360         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
4361         (FUNCTION_VALUE): Likewise.
4362         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
4363         * config/mips/mips-protos.h: Update.
4365 2002-03-23  Richard Henderson  <rth@redhat.com>
4367         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
4368         * config/sparc/sparc-protos.h: Update.
4369         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
4371 2002-03-23  Richard Henderson  <rth@redhat.com>
4373         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
4374         _start or _init begins the text segment.
4376 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
4378         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
4379         not HOST_WIDEST_INT.
4380         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
4382 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
4384         PR java/5489
4385         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
4386         operand argument to output_return_instruction.
4387         * arm.c (arm_print_operand, case 'd'): If the operand is
4388         const_true_rtx then just return.
4389         (arm_print_operand, case 'D'): If the operand is const_true_rtx
4390         then abort.
4392 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
4394         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
4395         (Warning Options): Document -Wswitch-default.
4396         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
4397         -Wswitch.
4398         (warn_switch_default): Define variable.
4399         (warn_switch): Update comment.
4400         * flags.h (warn_switch_default): Declare variable.
4401         (warn_switch): Update comment.
4402         * stmt.c (expand_end_case): Check for and, when
4403         warn_switch_no_default, warn of a missing default case.
4405 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
4407         * real.h (N): Special case 128 bit doubles.
4409         * combine.c (simplify_comparison): When widening modes, ignore
4410         sign extension on CONST_INTs.
4412 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
4414         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
4415         passed to adjust_address.  Fix comment formatting.
4418 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
4420         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
4421         Always make REAL_VALUE_TYPE a struct containing an array of
4422         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
4423         big it is.  Don't declare or use union real_extract.
4425         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
4426         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
4427         (print_operand), config/arm/arm.c (output_move_double),
4428         config/arm/arm.md (consttable_4, consttable_8),
4429         config/romp/romp.c (output_fpops), config/s390/s390.h
4430         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
4431         (xtensa_output_literal): Don't use union real_extract.
4433         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
4434         (sfmode_constant_to_ulong), config/ns32k/merlin.h
4435         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
4436         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
4437         (PRINT_OPERAND): Don't use local version of union
4438         real_extract.
4440         * config/convex/convex.c (check_float_value), config/vax/vax.c
4441         (vax_float_literal), config/m88k/m88k.md (divdf3),
4442         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
4443         config/pdp11/pdp11.c (output_move_quad): Don't do host
4444         arithmetic on target floating point quantities.
4446         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
4447         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
4449         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
4450         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
4452         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
4453         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
4454         INFINITY.
4455         * print-rtl.c (print_rtx): Disable code which needs
4456         floating-point emulator.
4457         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
4458         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
4459         depending on HOST_FLOAT_FORMAT to be defined properly.
4461         * config/1750a/1750a.c (get_double, float_label): Delete.
4462         (print_operand): Delete huge commented-out chunk.  Use
4463         REAL_VALUE_TO_DECIMAL.
4464         * config/1750a/1750a-protos.h: Delete prototypes of deleted
4465         functions.
4466         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
4467         IEEE_FLOAT_FORMAT.
4468         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
4469         Use REAL_VALUE_TO_DECIMAL as ELF version does.
4470         * config/m88k/m88k.c (real_power_of_2_operand,
4471         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
4472         real_extract out of the union; run the input through
4473         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
4474         from that into the union.
4475         * config/pdp11/pdp11.c (output_move_double): Rearrange
4476         parentheses to make automatic indenter happy.
4478         * doc/tm.texi (Cross-compilation): Rename node to "Floating
4479         Point" and rewrite to describe current situation.  Also adjust
4480         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
4481         match code.
4482         * doc/rtl.texi: Adjust cross reference.
4484 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
4486         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
4487         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
4488         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
4489         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
4490         prevent use of sp as a reload register.
4491         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
4492         non_acc_reg_operand.
4493         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
4494         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
4495         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
4496         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
4498 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
4500         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
4501         * cpplex.c (unterminated): Delete.
4502         (parse_string): No string literal may extend over multiple
4503         lines.  Suppress the error when preprocessing assembly.
4504         * cppmain.c (scan_translation_unit): Strings are single-line.
4506         * doc/cpp.texi: Update to match.
4508 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
4510         PR optimization/5854
4511         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
4512         Shut up warnings.
4513         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
4514         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
4515         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
4516         const0 if scratch register was not allocated.
4517         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
4518         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
4519         with GEN_INT (...).
4520         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
4521         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
4522         with GEN_INT (...) everywhere.  Remove constraints in define_split
4523         patterns.
4524         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
4525         require scratch register for setting 0 into regs/non-pushable memory.
4527 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
4529         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
4530         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
4532 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
4534         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
4535         * cppinit.c (cpp_create_reader):  On by default.
4536         (cpp_handle_option):  Handle -W[no-]endif-labels.
4537         (cpp_post_options):  Also enable if -pedantic.
4538         * cpplib.c (do_else):  Use it.
4539         (do_endif):  Likewise.
4540         * doc/cppopts.texi:  Document new option.
4541         * doc/invoke.texi:  Document new option.
4543 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
4545         * config/i386/i386.c, config/i386/i386.md: Change all occurences
4546         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
4548 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
4550         * flow.c (calculate_global_regs_live): Clear aux fields of
4551         ENTRY and EXIT.
4553 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
4555         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
4556         REG or MEM subregs, pass rtx * instead of rtx to it.
4557         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
4558         rtx * instead of rtx to alter_subreg.
4559         * config/m32r/m32r.c (gen_split_move_double): Likewise.
4560         * config/pj/pj.c (pj_output_rval): Likewise.
4562 2002-03-22  Richard Henderson  <rth@redhat.com>
4564         PR target/3177
4565         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
4566         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
4567         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
4568         (ia64_expand_prologue): Look at int_regs, not words, for number
4569         of incomming int regs.
4571 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
4573         * expr.c (expand_expr): A RESULT_DECL is part of a call.
4575 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
4577         * toplev.c (flag_loop_optimize, flag_crossjumping):
4578         New static variables.
4579         (rest_of_compilation): Conditionalize crossjumping and
4580         loop optimizer.
4581         (parse_options_and_default_flags): Default loop_optimize and
4582         crossjumping.
4583         (lang_independent_options): Add -fcrossjumping and -floop-optimize
4584         * invoke.texi (crossjumping, loop-optimize): Document.
4586 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
4588         * real.c (eiisneg): Move outside #ifdef NANS.
4590 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
4592         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
4593         frequencies match; avoid match on different loop depths.
4594         (try_crossjump_to_bb): Kill tests that no longer brings time
4595         savings.
4596         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
4597         updating code.
4598         (split_edge): Likewise.
4600         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
4601         variable.
4603         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
4604         * cfgrtl.c: Include insn-config.h
4605         (split_block) Dirtify block in presence of conditional execution
4607 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
4609         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
4610         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
4611         (function_arg): Constify CUMULATIVE_ARGS.
4612         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
4613         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
4614         (UNITS_PER_DOUBLE): New macro.
4615         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
4616         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
4617         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
4618         fp_regs and stack_words.
4619         (EABI_FLOAT_VARARGS_P): New macro.
4620         * config/mips/mips.c (struct mips_arg_info): New.
4621         (mips_arg_info): New function.
4622         (function_arg_advance): Use it.  Add adjustment instructions here
4623         rather than in function_arg.
4624         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
4625         for VOIDmode at the beginning of the function.
4626         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
4627         (function_arg_pass_by_reference): Likewise.
4628         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
4629         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
4630         (mips_va_start): Likewise.  Use the new stack_words field of
4631         CUMULATIVE_ARGS to set up overflow area.  Reformat.
4632         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
4633         doubles and other types, aligning the overflow pointer for non-doubles
4634         too.  Remove some code duplication.  Replace hard-coded constants.
4636 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
4638         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
4639         (CLASS_UNITS): Undefine.
4640         (CLASS_MAX_NREGS): Use FP_INC.
4641         * config/mips/mips.c (compute_frame_size): Likewise.
4642         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
4644 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
4646         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
4647         prototype, and handle lexing numbers and identifiers.
4648         (parse_identifier): Update to new form of parse_slow.
4649         (parse_number): Fast path only, use parse_slow otherwise.
4650         (_cpp_lex_direct): Update calls to parse_number.
4652 2002-03-21  DJ Delorie  <dj@redhat.com>
4654         * bb-reorder.c (make_reorder_chain_1): Protect against
4655         when redundant edges are omitted.
4656         * predict.c (dump_prediction): Likewise.
4658 2002-03-21  Richard Henderson  <rth@redhat.com>
4660         PR target/5996
4661         * fixinc/inclhack.def (solaris_stdio_tag): New.
4662         * fixinc/fixincl.x: Regenerate.
4664 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
4666         PR c/5597
4667         * c-typeck.c (process_init_element): Flag non-static
4668         initialization of a flexible array member as illegal.
4670 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
4672         * config/rs6000/t-linux64: New.
4673         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
4674         t-ppccomm.  Use t-rs6000 and t-linux64.
4675         (powerpc64-*-gnu* <tmake_file>): Likewise.
4676         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
4677         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
4678         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
4680 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
4682         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
4683         flag_really_no_inline instead of optimize == 0.
4685         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
4687         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
4689         * flags.h (flag_really_no_inline): New.
4691         * c-common.c (c_common_post_options): Initialize
4692         flag_really_no_inline.
4694         * toplev.c (flag_really_no_inline): New.
4696 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
4698         * config/avr/avr.md (length): Fix length computation for
4699         conditional branches.
4701 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
4703         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
4704         sdbout.o, profile.o): Update.
4705         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
4706         langhook.
4707         * c-common.h (gettags): Move here from tree.h.
4708         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
4709         insert_block, getdecls, kept_level_p, global_bindings_p): New.
4710         * dbxout.c (dbxout_init): Use getdecls langhook.
4711         * expr.c (expand_expr): Use insert_block langhook.
4712         * fold-const.c: Include langhooks.h.
4713         (fold_range_test, fold_binary_op_with_conditional_arg,
4714         fold): Use global_bindings_p langhook.
4715         * integrate.c (expand_inline_function): Use insert_block langhook.
4716         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
4717         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
4718         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
4719         LANG_HOOKS_GETDECLS): New.
4720         (LANG_HOOKS_INITIALIZER): Update.
4721         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
4722         langhook.
4723         * langhooks.h (struct lang_hooks_for_decls): New.
4724         (struct lang_hooks): Update.
4725         * profile.c: Include langhooks.h.
4726         (output_func_start_profiler): Use new langhooks.
4727         * sdbout.c: Include langhooks.h.
4728         (sdbout_init, sdbout_finish): Use getdecls langhook.
4729         * stmt.c: Include langhooks.h.
4730         (expand_fixup, fixup_gotos): Use new langhooks.
4731         * stor-layout.c: Include langhooks.h.
4732         (variable_size): Use global_bindings_p langhook.
4733         * toplev.c (compile_file): Use getdecls langhook.
4734         * tree-inline.c (remap_block): Use insert_block langhook.
4735         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
4736         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
4738 2002-03-21  Richard Henderson  <rth@redhat.com>
4740         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
4741         constants in .data when -fpic.
4743 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4745         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
4746         where appropriate.
4748 2002-03-21  Tom Tromey  <tromey@redhat.com>
4750         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
4752 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4754         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
4756         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
4758 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
4759             Richard Henderson  <rth@redhat.com>
4761         PR c/5354
4762         * c-common.c (c_expand_expr): Preserve result of a statement
4763         expression if needed.
4765 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
4767         PR bootstrap/4195
4768         * genrecog.c (maybe_both_true_mode): Remove.
4769         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
4770         * machmode.def (Pmode): Likewise.
4772 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
4774         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
4775         (nonlocal_mentioned_p_1): New function.
4776         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
4777         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
4778         (mark_constant_function): Recognize pure functions.
4779         * rtl.h (global_reg_mentioned_p): New prototype.
4780         * rtlanal.c (global_reg_mentioned_p,
4781         global_reg_mentioned_p_1): New function.
4783 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4785         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
4786         UNIX assert.h.
4787         * fixinc/fixincl.x: Regenerate.
4789 2002-03-20  Jason Merrill  <jason@redhat.com>
4791         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
4793 2002-03-20  Michael Meissner  <meissner@redhat.com>
4795         * doc/invoke.texi (Optimize Options): Document that -O2 sets
4796         -fstrict-aliasing.
4798 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
4800         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
4801         ".literal_position" directive before the constant pool.
4803 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4805         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
4806         Add Craig Rodrigues.
4807         Add Brad Lucier to testers.
4809 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
4811         PR target/4792
4812         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
4813         to if_then_else.
4814         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
4815         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
4816         instead of insn_extract.
4818 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
4820         PR bootstrap/4192
4821         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
4823         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
4824         stmt if some case has been output.
4826 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
4828         PR c/5972
4829         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
4830         movsfcc_1, movdfcc_1): Add %O2.
4831         * config/i386/i386.c (print_operand): Handle %ON.
4832         Print . before float condition codes in Sun as cmov syntax.
4833         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
4834         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
4835         no longer true.
4837 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
4839         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
4840         return instruction if PC was popped.
4842 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
4844         * config/xtensa/xtensa.md: Remove unused type attributes.
4845         (adddi_carry, subddi_carry): Change type attribute to "multi".
4847 2002-03-19  Dale Johannesen  <dalej@apple.com>
4849         PR optimization/5999, middle-end/5731
4850         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
4851         multiplications by reciprocals.
4853 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
4855         * Makefile.in: Update.
4856         * c-common.c: Include langhooks.h.
4857         (inline_forbidden_p): Use new hook.
4858         * diagnostic.c: Include langhooks.h.
4859         (format_with_decl, announce_function,
4860         default_print_error_function): Use new hook.
4861         * dwarf2out.c (dwarf2_name): Use new hook.
4862         * function.c: Include langhooks.h.
4863         (init_function_start): Use new hook.
4864         * langhooks-def.h (lhd_decl_printable_name): New.
4865         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
4866         (LANGHOOKS_INITIALIZER): Update.
4867         * langhooks.c (lhd_decl_printable_name): New.
4868         * langhooks.h (struct lang_hooks): New hook.
4869         * toplev.c (decl_name, decl_printable_name): Remove.
4870         (open_dump_file): Use new hook.
4871         (process_options): Remove old hook.
4872         * tree.h (decl_printable_name): Remove.
4873 objc:
4874         * objc-act.c (objc_init): Remove old hook.
4875         (objc_printable_name): Export.
4876         * objc-act.h (objc_printable_name): New.
4877         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
4879 2002-03-19  Jim Blandy  <jimb@redhat.com>
4881         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
4882         the start_source_file debug hook, not the current line number.
4884 2002-03-19  Richard Henderson  <rth@redhat.com>
4886         * flow.c (EH_USES): Provide default.
4887         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
4888         * doc/tm.texi (EH_USES): New.
4890         * config/ia64/ia64.c (ia64_eh_uses): New.
4891         * config/ia64/ia64-protos.h: Update.
4892         * config/ia64/ia64.h (EH_USES): New.
4894 2002-03-19  Richard Henderson  <rth@redhat.com>
4896         * varasm.c (output_constant_def): Fix stupid typo.
4898 2002-03-19  Richard Henderson  <rth@redhat.com>
4900         PR 5879
4901         * except.c (current_function_has_exception_handlers): New.
4902         * except.h: Declare it.
4903         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
4904         Combine tests that disable all sibcalls for the function.
4906 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
4908         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
4909         for INTEGER_CST.
4911 2002-03-19  Richard Henderson  <rth@redhat.com>
4913         PR 5977, 5991
4914         * config/ia64/ia64.c: Revert 2002-03-01 patch.
4915         * config/ia64/ia64.h (INIT_EXPANDERS): New.
4917 2002-03-19  Jim Blandy  <jimb@redhat.com>
4919         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
4920         name, even if the replacement list contains no tokens, as required
4921         by Dwarf.
4923 2002-03-19  Jason Merrill  <jason@redhat.com>
4925         * varasm.c (globalize_decl): Get the name from the RTL, not
4926         DECL_ASSEMBLER_NAME.
4928         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
4930 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
4932         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
4933         subdi_carry): Define.
4935 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
4937         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
4938         about -fpic/-fPIC if extra_warnings set.
4940 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
4942         * expr.c (expand_expr): Sign-extend CONST_INT generated from
4943         TREE_STRING_POINTER.
4944         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
4946 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4948         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
4949         in favor of SP if FRAME_POINTER_REQUIRED is false.
4951 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
4953         * emit-rtl.c (gen_int_mode): New function.
4954         * rtl.h: Prototype for it.
4955         * combine.c (make_extraction, simplify_comparison), expmed.c
4956         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
4957         (convert_modes, store_field), optabs.c (expand_fix),
4958         simplify-rtx.c (neg_const_int, simplify_unary_real),
4960         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
4961         Use it instead of GEN_INT (trunc_int_for_mode (...)).
4963 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
4965         PR c/5656
4966         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
4967         convert_parm_for_inlining.
4968         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
4969         Define.
4970         * langhooks-def.h: Likewise.
4971         * objc/objc-lang.c: Likewise.
4972         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
4973         function.
4974         * tree-inline.c (initialize_inlined_parameters):
4975         Call convert_parm_for_inlining lang hook if needed.
4976         * c-typeck.c (c_convert_parm_for_inlining): New function.
4977         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
4979 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
4981         * calls.c (precompute_arguments): Do not assume that temporaries
4982         can be destroyed after expanding the argument.
4983         (expand_call): Likewise.
4985 2002-03-15  Eric Christopher  <echristo@redhat.com>
4987         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
4988         Fix register preference on last change.
4989         * config/mips/mips.c (mips_return_in_memory): New function.
4990         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
4991         * config/mips/mips-protos.h: Declare.
4992         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
4993         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
4995 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
4997         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
4998         a register too.
4999         (anddi3, iorsi3): Likewise.
5001         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
5002         use %gprel for symbols that are going to be placed in linkonce
5003         sections.
5005         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
5006         RETURN_ADDRESS_POINTER_REGNUM to $ra.
5007         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
5008         not needed.  Disregard leaf_function_p().
5009         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
5010         mips16 frame pointer.
5011         * config/mips/mips.md (store ra): Only to small SP offsets.
5012         2001-08-22  Graham Stott  <grahams@redhat.com>
5013         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
5014         return a REG rtx for the return address register.
5016 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
5018         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
5019         constant-pool addresses as "mode-dependent".
5020         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
5022 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
5024         PR target/5740
5025         * expr.c (emit_group_load): Use extract_bit_field if
5026         needed for CONCAT arguments.
5028 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
5030         PR target/4863
5031         * arm.md (tablejump): Make this a define_expand.  For PIC add the
5032         offset to the base of the table.
5033         (thumb_tablejump): Matcher for Thumb tablejump insn.
5034         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
5035         as the difference of two labels.
5036         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5037         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
5038         tables in the code.
5039         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
5040         * arm.c (get_jump_table_size): If the table is not in the text
5041         section, return zero.
5043 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
5045         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
5046         of gen_rtx_SUBREG.
5047         (arm_reload_out_hi): Use gen_lowpart instead of
5048         gen_rtx_SUBREG to access QImode components.
5049         * config/arm/arm.md: Disable zero_extend split for QImode
5050         subregs in BIG_ENDIAN mode.
5051         (storehi_bigend): Match use of least significant byte.
5052         (storeinthi): Remove extraneous SUBREG.
5053         Add missing construction of operands[2].
5054         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
5055         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
5056         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
5058 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
5060         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
5061         any_operand.
5063 2002-03-17  Richard Henderson  <rth@redhat.com>
5065         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
5066         explicitly.
5068 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
5070         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
5071         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
5073 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5075         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
5077         * predict.c (estimate_bb_frequencies): Delete unused variables.
5079 2002-03-17  Richard Henderson  <rth@redhat.com>
5081         * config/ia64/ia64.c (ia64_attribute_table): Move before
5082         targetm definition.  Make static.
5084 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
5086         * c-common.h (yyparse, c_common_parse_file): New.
5087         * c-lang.c: Include c-common.h.
5088         (LANG_HOOKS_PARSE_FILE): Redefine.
5089         * c-lex.c: Include c-common.h.
5090         (yyparse): Rename c_common_parse_file.  Call yyparse.
5091         * c-parse.in (yyparse): Remove macro.
5092         * c-tree.h (yyparse_1): Remove.
5093         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
5094         (LANG_HOOKS_INITIALIZER): Update.
5095         * langhooks.h (struct lang_hoooks): New hook parse_file.
5096         * toplev.c (compile_file): Use parse_file hook.
5097         * tree.h (yyparse): Remove.
5098         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
5100 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
5102         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
5103         float_truncate, not fix.
5104         ("*truncdfsf2_real"): Ditto.
5105         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
5107         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
5109 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
5111         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
5112         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
5113         where appropriate.  Make the second reference to
5114         leaf_function_p a function call, as intended.  Reindented.
5116         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
5117         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
5119         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
5120         add register to non-constant into sp.
5122         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
5123         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
5124         (mips16_gp_pseudo_rtx): Lose.
5125         (INIT_EXPANDERS): Deleted.
5126         * config/mips/mips.c (mips_init_machine_status): New.
5127         (mips_free_machine_status): New.
5128         (mips_mark_machine_status): New.
5129         (override_options): Set them.
5130         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
5131         (struct machine_function): ... new.  Replaced all references.
5132         (mips_add_gc_roots): Don't mark them.
5133         (embedded_pic_fnaddr_reg): New, extracted from...
5134         (embedded_pic_offset): ... here.
5135         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
5136         (movsi): Likewise.
5138 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
5140         * cppinit.c: Revert -MD removal.
5142 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5144         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
5145         soft registers by default for 68HC12.
5146         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
5147         when compiling with -fomit-frame-pointer.
5148         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
5149         (expand_epilogue): Likewise.
5150         (m68hc11_gen_rotate): Use exg when rotating by 8.
5152 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5154         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
5155         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
5156         (splits): Remove unused add splits.
5157         ("*addhi3_68hc12"): Tune constraints.
5158         ("addhi_sp"): Try to use X instead of Y in all cases and if the
5159         constant fits in 8-bits and D is dead use abx/aby instructions.
5160         ("*addhi3"): Remove extern declaration of ix_reg.
5161         ("*subsi3"): Optimize and provide new split.
5162         ("subhi3"): Cleanup.
5163         ("*subhi3_sp"): Avoid saving X if we know it is dead.
5164         (arith splits): For 68hc12 save the address register on the stack
5165         and do the arithmetic operation with a pop.
5167 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5169         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
5170         allocating QImode in address registers.
5171         ("*movqi_m68hc11"): Likewise.
5173 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
5175         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
5177 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
5179         * cppinit.c (print_help): Display -MD and -MMD.
5180         Don't display usage string.  Update assertion syntax and
5181         typo.
5182         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
5183         (cpp_handle_option): Update.
5185 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
5187         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
5188         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
5189         and define it so that regardless of target CPU size,
5190         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
5191         of "int" rather than "long."
5193 2002-03-15  Richard Henderson  <rth@redhat.com>
5195         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
5196         size as a tree.
5198 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5200         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
5201         ("tstqi" split): Avoid using memory for tstqi on address register.
5202         (splits): Remove constraints.
5203         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
5204         ("cmpdf", "cmpsf"): Remove since not used.
5205         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
5206         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
5208 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5210         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
5211         ("neghi2"): Tighten constraints.
5212         ("one_cmplsi2"): Optimize and simplify split.
5213         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
5215 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5217         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
5218         and split of AND operation to clear the upper bits.
5219         ("*logicalsi3_zextqi"): Likewise.
5220         ("*logicallhi3_zexthi_ashift8"): Likewise.
5221         ("*logicalsi3_silshr16"): Likewise.
5222         ("logicalsi3_silshl16"): Likewise.
5223         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
5225 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5227         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
5228         (m68hc11_indirect_p): New function.
5229         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
5230         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
5231         TARGET_M6812.
5232         (asm_print_register): Likewise.
5233         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
5234         (m68hc11_indirect_p): Declare.
5235         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
5236         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
5237         (TARGET_SWITCHES): New option -mrelax.
5238         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
5239         destination.
5240         ("iorsi3", "xorsi3"): Likewise.
5241         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
5242         ("*andhi3_mem"): New to handle destination in memory with bclr
5243         and a scratch register.
5244         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
5245         ("*andhi3_const"): New when operand2 is constant.
5246         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
5247         ("*andhi3_gen"): Cleanup of the old "andhi3".
5248         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
5249         ("xorqi3"): Update constraints.
5251 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5253         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
5254         for reg_equiv_memory_loc when the operand is a register that does
5255         not get a hard register (stack location).
5256         (tst_operand): After reload, accept all memory operand.
5257         (symbolic_memory_operand): Fix detection of symbolic references.
5258         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
5259         accept symbols and any constant.
5261 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5263         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
5264         note on the insn that sets the soft frame register.
5265         (must_parenthesize): ix and iy are also reserved names.
5266         (print_operand_address): One more place where parenthesis are required
5267         to avoid confusion with register names.
5268         (m68hc11_gen_movhi): Allow push of stack pointer.
5269         (m68hc11_check_z_replacement): Fix handling of parallel with a
5270         clobber.
5271         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
5272         the replacement register is.
5273         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
5274         and D8_REGS classes.
5275         (MODES_TIEABLE_P): All modes are tieable except QImode.
5277 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5279         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
5280         (___subdi3): Likewise.
5281         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
5282         (__map_data_section): Optimize 68hc11 case.
5284 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5286         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
5287         than a shift to avoid adding a register with itself.
5288         (m68hc11_memory_move_cost): Take into account NO_REGS.
5289         (m68hc11_register_move_cost): Update and use memory move cost
5290         for soft registers.
5291         (m68hc11_address_cost): Make cost of valid offset not 0 so that
5292         it gives more opportunities to cse to optimize.
5293         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
5294         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
5296 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
5298         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
5299         * c-common.def (CLEANUP_STMT): New tree node.
5300         * c-common.h (CLEANUP_DECL): New macro.
5301         (CLEANUP_EXPR): Likewise.
5302         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
5303         * expr.c (expand_expr): Tidy.
5304         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
5305         * tree-inline.c (initialize_inlined_parameters): Clean up
5306         new local variables.
5308 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
5310         PR bootstrap/4128
5311         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
5312         before movrXX only, use reg_overlap_mentioned_p.
5313         Only special case NE if just one insn can be generated.
5315 2002-03-15  Jason Merrill  <jason@redhat.com>
5317         * varasm.c (assemble_variable): Call resolve_unique_section before
5318         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
5319         of error_mark_node.
5321 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
5323         PR target/5170
5324         * arm.md (split pattern for thumb shiftable immediates): Add comment
5325         explaining non-obvious test.
5327 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
5329         PR target/5712
5330         * arm.md (movaddr, movaddr_insn): Delete.
5332 2002-03-15  Jason Merrill  <jason@redhat.com>
5334         * toplev.c (wrapup_global_declarations): Clarify variable handling.
5335         -fkeep-static-consts doesn't apply to comdats.
5337 2002-03-14  Richard Henderson  <rth@redhat.com>
5339         * c-decl.c: Include c-pragma.h.
5340         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
5341         (finish_function): Tidy.
5342         * c-pragma.c: Include c-common.h.
5343         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
5344         (handle_pragma_weak): Use them.
5345         (init_pragma): Register pending_weaks.
5346         * c-pragma.h (maybe_apply_pragma_weak): Declare.
5347         * print-tree.c (print_node): Print DECL_WEAK.
5348         * varasm.c (mark_weak_decls): Remove.
5349         (remove_from_pending_weak_list): Remove.
5350         (add_weak): Remove.
5351         (asm_emit_uninitialised): Call globalize_decl for weak commons.
5352         (weak_decls): Make a tree_list.
5353         (declare_weak): Cons weak_decls directly.
5354         (globalize_decl): Remove weak_decls elements directly.
5355         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
5356         symbols.  Don't pretend to handle aliases.
5357         (init_varasm_once): Update weak_decls registry.
5358         * Makefile.in: Update dependencies.
5360 2002-03-14  Richard Henderson  <rth@redhat.com>
5362         PR target/5312
5363         * config/ia64/ia64.c: Include tm_p.h last.
5364         (gen_nop_type): Remove duplicate definition.
5365         (cycle_end_fill_slots): Set sched_data for second L slot.
5366         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
5367         (nop_cycles_until): Fix typos.
5369 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
5371         PR optimization/5891
5372         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
5374 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
5376         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
5377           descriptors correctly.
5379 2002-03-14  Michael Meissner  <meissner@redhat.com>
5381         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
5382         100, allowing MAX_UNROLLED_INSNS to be overridden.
5384         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
5385         --param.
5387         * unroll.c (params.h): Include.
5388         (MAX_UNROLLED_INSNS): Delete, now in params.h.
5390         * doc/invoke.texi (--param max-unroll-insns): Document.
5392         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
5394 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
5396         * arm.md: Fix warnings about constraints in peepholes and splits.
5398 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
5400         * cpphash.h (struct lexer_state): Remove line_extension member.
5401         * cpplib.c (dequote_string, do_linemarker): New functions.
5402         (linemarker_dir): New data object.
5403         (DIRECTIVE_TABLE): No longer need to interpret #line in
5404         preprocessed source.  Delete obsolete comment about return
5405         values of handlers.
5406         (end_directive, directive_diagnostics, _cpp_handle_directive):
5407         Don't muck with line_extension.
5408         (directive_diagnostics): No need to issue warnings for
5409         linemarkers here.
5410         (_cpp_handle_directive): Issue warnings for linemarkers here,
5411         when appropriate.  Dispatch linemarkers to do_linemarker, not
5412         do_line.
5413         (do_line): Code to handle linemarkers split out to do_linemarker.
5414         Convert escape sequences in filename argument, both places.
5416         * cppmacro.c (quote_string): Rename cpp_quote_string and
5417         export.  All callers changed.
5418         * cpplib.h (cpp_quote_string): Prototype.
5419         * cppmain.c (print_line): Call cpp_quote_string on to_file
5420         before printing it.
5422         * doc/cpp.texi: Document that escapes are now interpreted in
5423         #line and in linemarkers, and that non-printing characters are
5424         converted to octal escapes when linemarkers are generated.
5426 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
5428         * emit-rtl.c (try_split): Use delete_insns.
5429         * recog.c (split_all_insns): Fix terminating condition.
5431 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
5432             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
5434         PR target/5828
5435         * arm.c (arm_output_epilogue): Fix floating-point register save
5436         adjustment when using a frame pointer.
5438 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
5440         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
5441         * config/mips/mips.c (compute_frame_size): Retrofit them here.
5442         (save_restore_insns, mips_expand_epilogue): And here.
5443         (build_mips16_call_stub): And here.
5444         (mips_function_value): Use the new macros to decide whether a single
5445         or complex float can be returned in floating-point registers.  Return
5446         a parallel rtx in the complex case.
5448 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
5450         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
5451         call after liveness analysis.
5453         * recog.c (split_insn): Use delete_insn_and_edges.
5455         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
5456         instructions to have branch prediction notes.
5457         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
5459 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
5461         * configure.in: Don't pass -Wno-long-long to a ADA compiler
5462         that doesn't support it.
5463         * configure: Regenerate.
5465 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5467         PR target/5626
5468         * config/sparc/sparc.md (normal_branch, inverted_branch,
5469         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
5470         inverted_fp_branch): Adjust calls to output_cbranch.
5471         Set length attribute.
5472         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
5473         output_v9branch.  Set length attribute.
5474         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
5475         predicates.
5476         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
5477         (output_cbranch): Likewise.  Handle far branches.
5478         (output_v9branch): Handle far branches.
5479         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
5480         Adjust prototypes.
5481         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
5482         noov_compare64_op predicates.
5484 2002-03-13  Jason Merrill  <jason@redhat.com>
5486         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
5487         into the function and constify it.
5488         * gthr-dce.h, gthr-solaris.h: Likewise.
5490 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
5492         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
5493         * config/rs6000/rs6000.c (rs6000_va_arg): Use
5494         std_expand_builtin_va_arg if not ABI_V4.
5496 2002-03-13  Jason Merrill  <jason@redhat.com>
5498         * varasm.c (globalize_decl): New fn.
5499         (assemble_start_function): Use it.
5500         (asm_emit_uninitialized): Use it.
5501         (assemble_alias): Use it.
5502         (assemble_variable): Use it.
5504 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
5506         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
5507         2002-03-12 internal visibility change.
5508         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
5509         visibility into SYMBOL_REF_FLAG.
5511 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
5513         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
5514         VOIDmode operand.  Add compile-time optimization for constant results.
5516 2002-03-12  Jason Merrill  <jason@redhat.com>
5518         * c-typeck.c (convert_for_assignment): Don't allow conversions
5519         between pointers and references.  Only allow lvalues to convert to
5520         reference.
5522 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
5524         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
5525         before prologue, to avoid scheduling problems.
5527 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5529         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
5530         (ELIMINABLE_REGS): Add sfp->sp.
5531         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
5533 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5535         PR optimization/5892
5536         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
5538 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5540         * loop.c (basic_induction_var): Don't call convert_modes if mode
5541         classes are different.
5543 2002-03-12  Richard Henderson  <rth@redhat.com>
5545         PR optimization/5901
5546         * function.c (reposition_prologue_and_epilogue_notes): Position
5547         the markers after/before the last/first insn not deleted.
5549 2002-03-12  Richard Henderson  <rth@redhat.com>
5551         PR optimization/5878
5552         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
5553         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
5554         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5556         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
5557         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
5558         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
5560         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
5561         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
5562         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
5563         also.  Don't set it if not flag_pic.
5564         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
5565         to be INVALID_REGNUM when not used.
5567 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
5569         * expmed.c (store_bit_field): Reset alias set for memory.
5570         (extract_bit_field): Same.
5572 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5574         * c-common.c (c_tree_code_type, c_tree_code_length,
5575         c_tree_code_name, add_c_tree_codes): Delete.
5576         * c-common.h (add_c_tree_codes): Delete.
5577         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
5578         Define.
5579         * c-objc-common.c (c_objc_common_init): Don't call
5580         add_c_tree_codes, instead set lang_unsafe_for_reeval.
5581         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
5582         objc_tree_code_name, add_objc_tree_codes): Delete.
5583         (objc_init): Don't call add_objc_tree_codes.
5584         * objc/objc-lang.c (tree_code_type, tree_code_length,
5585         tree_code_name): Define.
5586         * toplev.c (lang_independent_init): Don't set
5587         tree_code_length[IDENTIFIER_NODE].
5588         * tree.c (tree_code_type, tree_code_length, tree_code_name):
5589         Delete definitions, moved to language front-ends.
5590         * tree.def (IDENTIFIER_NODE): Hardwire the length.
5591         * tree.h (tree_code_type, tree_code_length, tree_code_name):
5592         Const-ify.
5593         (tree_code_length): Change type to unsigned char.
5595 2002-03-12  Richard Henderson  <rth@redhat.com>
5597         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
5598         internal visibility change.
5600 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5602         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
5603         validize_mem() instead of change_address to avoid clobbering
5604         memory attributes.
5606 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
5608         * c-lex.h (position_after_whitespace): Remove.
5610 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
5612         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
5613         (lex_string): Use unsigned char pointers.
5615 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
5617         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
5618         is not a valid memory_operand.
5620 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5622         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
5623         * config/xtensa/lib1funcs.asm: Fix copyright to include
5624         special case for libgcc files.
5625         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
5626         (__divsi3): Likewise.
5627         (__umodsi3): Likewise.
5628         (__modsi3): Likewise.
5629         * config/xtensa/lib2funcs.S: Fix copyright to include
5630         special case for libgcc files.
5632 2002-03-12  Tom Rix  <trix@redhat.com>
5634         * collect2.c (resolve_lib_name): Move outside of
5635         OBJECT_FORMAT_COFF ifdef.
5636         (ignore_library): Same.
5638 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5640         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
5642 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5644         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
5645         to function_section before writing out the constant pool.
5647 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
5649         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
5650         zero_constant.
5651         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
5653 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
5655         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
5656         (adddi3): Likewise.
5657         (movdf): Likewise.
5658         (movdi): Likewise.
5659         (cmpsi splitter): Likewise.
5660         (modsi3): Fail if <= 0.
5661         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
5662         redundant test when HOST_BITS_PER_WIDE_INT != 32.
5663         (reg_or_sub_cint64_operand): Likewise.
5664         (num_insns_constant_wide): Optimize sign extension.
5665         (rs6000_legitimize_address): Likewise.
5667 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
5669         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5670         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5672 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
5674         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
5675         address calculation.
5677 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
5679         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
5680         scratch register to DImode / TImode.
5681         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
5682         register used does not overlap the target.
5684 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5686         * Makefile.in (debug.o): Depend on debug.h.
5687         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
5688         * debug.c (do_nothing_debug_hooks): Likewise.
5689         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
5690         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
5691         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
5692         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
5693         * dwarfout.c (dwarf_debug_hooks): Likewise.
5694         * integrate.c (output_inline_function): Likewise.
5695         * objc/objc-act.c (synth_module_prologue): Likewise.
5696         * sdbout.c (sdb_debug_hooks): Likewise.
5697         * toplev.c (debug_hooks): Likewise.
5698         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5700 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5702         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
5703         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
5704         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
5705         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
5706         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
5707         * defaults.h (POINTER_SIZE): Define.
5708         * doc/tm.texi (POINTER_SIZE): Document default.
5710 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5712         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
5714 2002-03-11  Richard Henderson  <rth@redhat.com>
5716         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
5717         if rebuild_label_notes_after_reload.
5719 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
5721         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
5722         emit pic register load if "internal" visibility.
5723         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
5724         (cris_expand_builtin_va_arg): Do all computations on trees.
5726 2002-03-11  Richard Henderson  <rth@redhat.com>
5728         * rtlanal.c: Include recog.h.
5729         (keep_with_call_p): Fix thinko.
5730         * Makefile.in (rtlanal.o): Update dependencies.
5732 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
5734         * genflags.c (gen_insn): Use IS_VSPACE.
5735         * genoutput.c (output_insn_data): Likewise.
5736         (process_template): Likewise.
5738 2002-03-11  Richard Henderson  <rth@redhat.com>
5740         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
5742 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
5744         * Makefile.in: Update.
5745         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
5746         Update documentation.
5747         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
5748         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
5750 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
5752         * Makefile.in: Give texi2pod its input file as a command line
5753         argument, not on stdin.
5755 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
5756             Daniel Berlin  <dan@dberlin.org>
5758         C++ alias analysis improvement.
5759         * alias.c (record_component_aliases): Record aliases for base
5760         classes too.
5762 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
5764         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
5766 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
5768         * toplev.c (vms_fopen): Remove, not needed.
5770         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
5772         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
5774         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
5775         for FP, already done later.
5777         * toplev.c (debug_args): Add entry for VMS_DEBUG.
5778         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
5780 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
5782         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
5783         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
5784         LARGEST_EXPONENT_IS_NORMAL for the given mode.
5785         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
5786         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
5787         (ediv, emul, eldexp, esqrt): Likewise.
5788         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
5789         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
5790         (saturate): New function.
5791         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
5792         (make_nan): Use a saturation value instead of a NaN if
5793         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
5794         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
5795         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
5796         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
5797         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
5798         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
5799         !ROUND_TOWARDS_ZERO.
5800         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
5801         (ROUND_TOWARDS_ZERO): Document.
5803 2002-03-11  Andreas Jaeger  <aj@suse.de>
5805         * cfg.c (dump_flow_info): Remove unused variable.
5807 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
5809         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
5810         computations on trees.
5812 2002-03-10  Richard Henderson  <rth@redhat.com>
5814         PR 5693:
5815         * reload.c (copy_replacements_1): New.
5816         (copy_replacements): Use it to recurse through the rtx.
5818 2002-03-10  Richard Henderson  <rth@redhat.com>
5820         * loop.c (strength_reduce): Compute number of iterations as
5821         unsigned HOST_WIDE_INT.
5823 2002-03-10  Richard Henderson  <rth@redhat.com>
5825         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
5826         to move away from the end of the block.
5828 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
5830         PR preprocessor/5899
5831         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
5833 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5835         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
5837         * attribs.c (decl_attributes): Fix signed/unsigned warning.
5839 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
5841         * config/mmix/mmix.c: Improve comments.
5842         (mmix_target_asm_function_prologue): Drop variable
5843         empty_stack_frame.  Don't allocate unused slot above fp.
5844         (mmix_target_asm_function_epilogue): Mirror prologue changes.
5845         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
5846         brace in first column.
5847         (enum reg_class): Ditto.
5848         (FIRST_PARM_OFFSET): Now 0.
5849         (USER_LABEL_PREFIX): Remove #if 0:d definition.
5851 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5853         * combine.c (make_extraction): Fix error in last change.
5855 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5857         * c4x.c (c4x_fp_reglist): Const-ify.
5858         * cris.c (cris_print_operand): Likewise.
5859         * i386.c (ix86_va_arg): Likewise.
5860         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
5861         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
5862         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
5863         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
5864         * mcore.h (regno_reg_class): Likewise.
5865         * mips.c (gen_int_relational): Likewise.
5866         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
5867         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
5868         * pdp11.c (move_costs): Likewise.
5869         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
5870         * s390.c (s390_branch_condition_mnemonic, regclass_map):
5871         Likewise.
5872         * s390.h (regclass_map): Likewise.
5873         * sh.c (shift_amounts): Likewise.
5874         * sh.md (rotlsi3): Likewise.
5876 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
5878         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
5879         (ne0+5): Use new clobber to generate proper shift pattern.
5880         Patch by Michael Matz <matz@kde.org>.
5882 2002-03-09  Andreas Schwab  <schwab@suse.de>
5884         * gcc.c (validate_all_switches): Also handle `%W{...}'.
5886 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
5888         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
5890 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
5892         PR middle-end/5877
5893         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
5894         even for non-representable constants.
5896 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5898         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
5899         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
5900         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
5901         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
5902         (pop_function_context): Compute MAY_SHARE parameter for
5903         fixup_var_refs.
5904         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
5905         (gen_mem_addressof): Call fixup_var_refs with new parm.
5907         * combine.c (make_extraction): Don't make extension of CONST_INT.
5909 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
5911         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
5912         in o32 and o64 ABIs.
5913         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
5914         but getting fixed-size structs passed in registers regardless of
5915         padding in o32 and o64 ABIs.
5917         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
5918         offset before loading address of argument passed by transparent
5919         reference.
5921 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5923         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
5925 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
5927         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
5928         marker such that registers after it are saved.
5930 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5932         * sparc.c (arith_4096_operand): Fix error in last change.
5934 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
5936         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
5937         defaults for MEABI.
5939 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
5941         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
5942         vectors.
5944 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
5946         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
5948 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
5950         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
5951         removed; fix return value.
5952         * combine.c (combine_instructions): Dirtify blocks where we failed to
5953         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
5954         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
5956 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5958         * gcse.c (insert_insn_end_bb): Fix typo in last change.
5960 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
5962         * recog.c (peephole2_optimize): Re-distribute EH edges.
5964 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
5966         * expr.c (expand_expr): Use unsave lang hook.
5967         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
5968         (LANG_HOOKS_INITIALIZER): Update.
5969         * langhooks.h (struct lang_hooks): New hook unsave.
5970         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
5971         (unsave_expr_1): Remove unused lang_unsave_expr_now.
5972         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
5973         (unsave_expr_now): Remove.
5974         * tree.h (unsave_expr_now, lang_unsave,
5975         lang_unsave_expr_now): Remove.
5976         (lhd_unsave): New.
5978 2002-03-08  Andreas Jaeger  <aj@suse.de>
5980         * flow.c (propagate_block_delete_insn): Remove unused variable.
5982 2002-03-08  Kazu Hirata  <kazu@hxi.com>
5984         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
5985         insn length for memory load/store.
5987 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5989         * doc/install.texi (--with-libiconv-prefix): Document.
5991 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
5993         * doc/sourcebuild.texi: Fix typo.
5995 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
5997         PR c/3711
5998         * builtins.c (std_expand_builtin_va_arg): Do all computations on
5999         trees.
6001 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6003         * rtl.c (copy_most_rtx): Move from here ...
6004         * emit-rtl.c (copy_most_rtx): ... to here.
6006 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
6008         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
6009         SUBTARGET_CPP_SIZE_SPEC.
6010         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
6012         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
6014 2002-03-07  Matt Hiller  <hiller@redhat.com>
6016         * gensupport.c (first_dir_md_include): Renamed from include;
6017         change all references.
6018         (last_dir_md_include): Renamed from last_include; change all
6019         references.
6020         (init_md_reader): Unconditionally initialize base_dir whether or
6021         not filename is a relative path.
6023 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
6025         * config/fp-bit.c (_unord_f2): Compile it in even if
6026         US_SOFTWARE_GOFAST is enabled.
6028         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
6029         NULL_RTX.  Set all HFmode operations as NULL_RTX.
6030         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
6031         NULL_RTX, try reversing the comparison and the operands.
6033 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
6035         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
6036         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
6037         and MATCH_OP_DUP.
6039 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
6041         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
6043 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
6045         * basic-block.h (fixup_abnormal_edges): Declare.
6046         * reload1.c (fixup_abnormal_edges): New function.
6047         * reg-stack.c (convert_regs): Use it.
6049         * gcse.c (insert_insn_end_bb): Handle trapping insns.
6051         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
6053 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
6055         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
6056         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
6057         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
6058         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
6059         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
6060         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
6061         unless x and y could be infinite.
6062         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
6063         Check that the common type of both arguments is a real, even for
6064         targets without unordered comparisons.  Allow an integer argument
6065         to be compared against a real.
6066         (expand_tree_builtin): Use expand_unordered_cmp.
6067         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
6068         * cse.c (fold_rtx): Likewise.  Fix indentation.
6069         * fold-const.c (fold_real_zero_addition_p): New.
6070         (fold): Use it, and the new HONOR_... macros.
6071         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
6072         * jump.c (reversed_comparison_code_parts): After searching for
6073         the true comparison mode, use HONOR_NANS to decide whether it
6074         can be safely reversed.
6075         (reverse_condition_maybe_unordered): Remove IEEE check.
6076         * simplify-rtx.c (simplify_binary_operation): Use the new macros
6077         to decide which simplifications are valid.  Allow the following
6078         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
6079         and (a - -b) to (a + b).
6080         (simplify_relational_operation): Use HONOR_NANS.
6081         * doc/tm.texi: Document the MODE_HAS_... macros.
6083 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
6085         * combine.c (simplify_comparison): If simplifying a logical shift
6086         right and compare with constant, force the comparison to unsigned.
6088 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
6090         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
6092         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
6093         -mabi=no-altivec
6094         (alt_reg_names): Remove % for vrsave.
6096 2002-03-06  Richard Henderson  <rth@redhat.com>
6098         PR optimization/5844
6099         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
6100         if used indicates we've already emitted one copy of an operand.
6101         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
6102         (gen_split): Supply a non-null used.
6104 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
6106         * reload1.c (reload): Unshare all rtl after reload is done.
6108         * simplify-rtx.c (simplify_plus_minus): Do not abort,
6109         but simply fail if the expression is too complex to simplify.
6110         (simplify_gen_binary): Handle simplify_plus_minus failures.
6112 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
6114         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
6115         consistently call delete_trivially_dead_insns after CSE and GCSE;
6116         fix DFI_life dumping; do jump threading after liveness; do crossjumping
6117         after liveness2; update comment in last crossjumping.
6118         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
6120 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
6122         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
6123         after completing fast dead code elimination.
6125         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
6126         COMPARE operator.
6128 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
6130         * version.c:  Fix misplaced leading blanks on first line.
6132 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
6134         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
6136 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
6138         * cfgcleanup.c (mentions_nonequal_regs): New function.
6139         (thread_jump): Use it.
6140         * toplev.c (rest_of_compilation): Run jump threading after
6141         liveness.
6143 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
6145         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
6146         patch.
6148 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
6150         * predict.c (estimate_bb_frequencies): Do not reload the
6151         frequencies from notes.
6153 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
6155         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
6156         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
6158         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
6159         delete_noop_moves): Return indeger.
6160         * flow.c (ndead): New variable.
6161         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
6162         BB argument; update callers.
6163         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
6164         (life_analysis): Do not call purge_all_dead_edges.
6165         (update_life_info): Return number of deleted insns; print statistics.
6166         (update_life_info_in_dirty_blocks): likewise.
6167         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
6168         return number of insns deleted.
6170         * cse.c: Include timevar.h
6171         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
6172         iterate until stabilizes; print statistics; return number of killed
6173         insns.
6174         * Makefile.in: (cse.o): Add timevar.h dependency
6175         * rtl.h (delete_trivially_dead_insns): New.
6176         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
6177         * toplev.c (rest_of_compilation): Update callers.
6179         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
6180         (try_optimize_cfg): Do not update liveness.
6181         (cleanup-cfg): Loop until try_optimize_cfg and dead code
6182         removal stabilizes; use delete_trivially_dead_insns.
6184         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
6186 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
6188         * cppmain.c (setup_callbacks): Disable #pragma and #ident
6189         callbacks when processing assembly language.
6191 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6193         * pa.h (ASM_FILE_END): Define.
6194         * som.h (ASM_FILE_END): Delete.
6196         * pa.c (function_arg): Don't pass floats in general registers in
6197         indirect calls if TARGET_ELF32.
6199 2002-03-05  Richard Henderson  <rth@redhat.com>
6201         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
6203 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
6205         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
6207 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
6209         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
6210         -r command line.  Don't hide any symbols if not building
6211         shared libgcc.
6213 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
6215         * cfg.c (dump_flow_info): Warn about profile mismatches.
6216         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
6217         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
6219 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
6221         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
6222         wide volatile memory by parts.
6224 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
6226         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
6227         is NULL.
6229 2002-03-05  Richard Henderson  <rth@redhat.com>
6231         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
6233 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
6235         * toplev.c (documented_lang_options): Document more
6236         language-specific options.
6237         * doc/invoke.texi (Warning Options): Correct documentation for
6238         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
6239         * c-decl.c (c_decode_option): Use a table to handle warning options.
6241 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
6243         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
6244         parameter to mmix_encode_section_info.
6245         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
6246         relocatably.  Always produce ELF, not mmo if linking relocatably.
6247         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
6248         first is non-zero, don't add symbol prefix.
6249         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
6250         prototype accordingly.
6252 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
6254         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
6256 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
6258         * configure.in: Increase required makeinfo version to 4.1.
6259         * configure: Regenerate.
6261 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
6263         * .cvsignore: Remove *.info* and genrtl*; these files are generated
6264         elsewhere now.
6266 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
6268         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
6269         * doc/invoke.texi: Fix @math uses.
6271 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
6273         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
6274         removal
6276 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
6278         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
6279         (powerpc-*-eabisimaltivec*): Same.
6281         * config/rs6000/t-ppcendian: New.
6283 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6285         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
6286         nonimmediate_src_operand and nonimmediate_lsrc_operand to
6287         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
6289 2002-03-03  Richard Henderson  <rth@redhat.com>
6291         * toplev.c (rest_of_decl_compilation): Revert last two changes.
6293 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
6295         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
6296         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
6297         tree.c, config/m68k/m68k.c:
6298         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
6299         REAL_ARITHMETIC blocks unconditional.  Delete some further
6300         #ifdef blocks predicated on REAL_ARITHMETIC.
6301         * flags.h, toplev.c: Delete remaining references to
6302         flag_pretend_float.
6304         * doc/invoke.texi: Remove documentation of -fpretend-float.
6305         * doc/tm.texi: Describe the various REAL_* macros as provided by
6306         real.h, not by the target configuration files.
6308         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
6309         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
6310         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
6311         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
6312         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
6313         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
6314         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
6315         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
6316         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
6317         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
6318         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
6319         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
6320         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
6321         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
6322         config/xtensa/xtensa.h:
6323         Do not define, undefine, or mention in comments any of
6324         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
6325         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
6326         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
6327         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
6328         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
6329         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
6330         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
6331         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
6332         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
6334 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6336         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
6337         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
6338         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
6339         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
6340         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
6341         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
6342         Delete.
6343         * defaults.h (BITS_PER_WORD): Define.
6344         * doc/tm.texi (BITS_PER_WORD): Document default value.
6346         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
6347         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
6348         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
6350 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6352         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
6353         lieu of explicit sizeof/sizeof.
6354         * i386.c (override_options, ix86_init_mmx_sse_builtins,
6355         ix86_expand_builtin): Likewise.
6356         * mips.c (mips_add_gc_roots): Likewise.
6357         * mmix.c (mmix_output_condition): Likewise.
6358         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
6359         altivec_init_builtins): Likewise.
6360         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
6361         * cppexp.c (Nsuff, parse_number): Likewise.
6362         * cppinit.c (builtin_array_end): Likewise.
6363         * gcc.c (n_default_compilers, process_command): Likewise.
6364         * genpreds.c (output_predicate_decls): Likewise.
6365         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
6366         * lcm.c (N_ENTITIES): Likewise.
6367         * stor-layout.c (set_sizetype): Likewise.
6369 2002-03-03  Richard Henderson  <rth@redhat.com>
6371         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
6372         for types or labels.
6374 2002-03-03  Richard Henderson  <rth@redhat.com>
6376         * c-decl.c (start_decl): Initialized variables are not common.
6378 2002-03-02  Per Bothner  <per@bothner.com>
6380         * gcc.c (option_map):  Suport new --bootclasspath option.
6381         --CLASSPATH is now just an alias for --classpath.
6383 2002-03-02  Richard Henderson  <rth@redhat.com>
6385         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
6386         load if "internal" visibility.
6387         * doc/extend.texi: Document visibility meanings.
6389 2002-03-02  Richard Henderson  <rth@redhat.com>
6391         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
6392         to functions as well.
6394 2002-03-02  Richard Henderson  <rth@redhat.com>
6396         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
6397         (handle_visibility_attribute): Don't call assemble_visibility.
6398         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
6399         without asmspec.  Invoke assemble_alias when needed.
6400         * varasm.c (maybe_assemble_visibility): New.
6401         (assemble_start_function, assemble_variable, assemble_alias): Use it.
6403 2002-03-02  Richard Henderson  <rth@redhat.com>
6405         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
6406         invoke ENCODE_SECTION_INFO with first call flag.
6408         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
6409         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
6410         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
6411         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
6412         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
6413         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
6414         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
6415         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
6416         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
6417         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
6418         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
6419         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
6420         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
6421         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
6422         config/mcore/mcore-protos.h, config/mcore/mcore.c,
6423         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
6424         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
6425         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
6426         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
6427         config/sh/sh.h, config/sparc/sparc.h,
6428         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
6429         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
6430         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
6431         FIRST argument.  As needed, examine it and do nothing.
6433         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
6434         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
6435         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
6437         * config/arm/t-pe (pe.o): Add dependencies.
6439 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6441         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
6442         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
6443         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
6444         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
6445         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
6446         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
6447         * defaults.h (BITS_PER_UNIT): Define.
6448         * doc/tm.texi (BITS_PER_UNIT): Document default value.
6450 2002-03-02  Kazu Hirata  <kazu@hxi.com>
6452         * config/h8300/h8300-protos.h: Add a prototype for
6453         compute_a_shift_length.
6454         * config/h8300/h8300.c (h8300_asm_insn_count): New.
6455         (compute_a_shift_length): Likewise.
6456         (h8300_adjust_insn_length): Do not adjust insn length of shift
6457         insns.
6458         * config/h8300/h8300.md (anonymous shift patterns): Use
6459         compute_a_shift_length.
6461 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6463         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
6464         trunc_int_for_mode.
6466         * emit-rtl.c (offset_address): Call update_temp_slot_address.
6468 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6470         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
6471         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
6472         * flags.h (flag_zero_initialized_in_bss): Declare.
6473         * toplev.c (flag_zero_initialized_in_bss): New flag.
6474         (lang_independent_options): Add flag_zero_initialized_in_bss.
6475         * tree.c (initializer_zerop): New function.
6476         * tree.h (initializer_zerop): Declare.
6477         * varasm.c (assemble_variable): If we can emit bss, put zero
6478         initializers in the bss section.
6480 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
6482         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
6483         like more than one symbol per .weak directive.
6485 2002-03-01  Richard Henderson  <rth@redhat.com>
6487         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
6488         adjust argument_pointer by pretend_args_size.
6489         (ia64_va_start): Adjust va_start address by -pretend_args_size.
6491 2002-03-01  Kazu Hirata  <kazu@hxi.com>
6493         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
6495 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
6497         * toplev.c (rest_of_compilation): Delete dead jumptables before
6498         loop.
6499         * flow.c (delete_dead_jumptables): Make global.
6500         * rtl.h (delete_dead_jumptables): Declare.
6502 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
6504         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
6505         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
6506         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
6508 2002-03-01  Kazu Hirata  <kazu@hxi.com>
6510         * config/h8300/h8300-protos.h: Fix formatting.
6511         * config/h8300/h8300.c: Likewise.
6512         * config/h8300/h8300.h: Likewise.
6514 2002-03-01  Kazu Hirata  <kazu@hxi.com>
6516         * config/h8300/h8300.c (print_operand): Support 16-bit
6517         constant addresses.
6518         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
6520 2002-02-28  Richard Henderson  <rth@redhat.com>
6522         * expmed.c (store_bit_field): Prevent generation of CONCATs;
6523         pun complex values as integers; use gen_lowpart instead of
6524         gen_rtx_SUBREG.
6525         (extract_bit_field): Likewise.
6527 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
6528             David Edelsohn  <edelsohn@gnu.org>
6530         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
6531         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
6532         (SUPPORTS_WEAK): Likewise.
6533         * output.h (add_weak): Add tree param.
6534         * varasm.c (add_weak): Likewise.  Save decl.
6535         (struct weak_syms): Add decl field.
6536         (mark_weak_decls): New function.
6537         (init_varasm_once): ggc_add_root mark_weak_decls.
6538         (assemble_start_function): Use ASM_WEAKEN_DECL.
6539         (assemble_variable): Likewise.
6540         (assemble_alias): Likewise.
6541         (declare_weak): Pass decl to add_weak.
6542         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
6543         (remove_from_pending_weak_list): Declare and define for
6544         ASM_WEAKEN_DECL.
6545         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
6546         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
6547         * defaults.h (SUPPORTS_WEAK): Likewise.
6548         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
6549         .weak for code sym.  Do emit .size for descriptor sym.
6550         (ASM_DECLARE_FUNCTION_SIZE): Define.
6551         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
6552         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
6553         .lglobl unless TARGET_XCOFF.  Formatting fixes.
6554         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
6555         .weak for code sym.
6556         (HANDLE_PRAGMA_WEAK): Remove.
6557         (ASM_WEAKEN_LABEL): Remove.
6558         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
6560 2002-03-01  Jason Merrill  <jason@redhat.com>
6562         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
6563         (TARGET_EXPR_CLEANUP): New macro.
6565 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
6567         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
6568         to take ptr_extend into account as third type of extension.
6569         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
6570         fields used by SUBREG_PROMOTED_UNSIGNED_P.
6571         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
6572         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
6573         * calls.c (precompute_arguments): Use new macro.
6574         (expand_call): Ditto.
6575         * combine.c (nonzero_bits): Ditto.
6576         (record_promoted_value): Ditto.
6577         * expr.c (store_expr): Ditto.
6578         (expand_expr): Ditto.
6579         * function.c (assign_parms): Ditto.
6581 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
6583         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
6584         override -shared and -shared-libgcc.
6586 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
6588         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
6589         of "ultrasparc".
6590         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
6591         to be broken.
6593 2002-02-28  Richard Henderson  <rth@redhat.com>
6595         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
6596         4 cycle latency from MM producers.
6597         (ia64_internal_sched_reorder): Likewise with pipeline flush.
6599 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
6601         * mklibgcc.in: Don't use GNU make extension.
6603 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
6605         * c-parse.in (STATIC): New terminal.
6606         (scspec): New non-terminal.  Update productions accordingly.
6607         (program): Remove bogus ifc / end ifc.
6608         (array_declarator): Simplify production using STATIC.
6610 2002-02-28  Jim Meyering  <meyering@lucent.com>
6612         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
6613         \a still means TARGET_BELL.
6615 2002-02-28  Richard Henderson  <rth@redhat.com>
6617         * haifa-sched.c (sched_emit_insn): New.
6618         (schedule_block): Use last_scheduled_insn to track last insn.
6619         * sched-int.h (sched_emit_insn): Prototype.
6620         * config/ia64/ia64.c (last_issued): Remove.
6621         (ia64_variable_issue): Don't set it.
6622         (nop_cycles_until): Use sched_emit_insn.
6624 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
6626         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
6627         extended constants.
6629 2002-02-28  Kazu Hirata  <kazu@hxi.com>
6631         * config/h8300/h8300.c: Fix formatting.
6632         * config/h8300/h8300.h: Likewise.
6634 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6636         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
6637         which may overwrite the high byte of the frame pointer.
6639 2002-02-28  Bo Thorsen  <bo@suse.de>
6641         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
6642         (STARTFILE_SPEC): Add 64 bit files.
6643         (ENDFILE_SPEC): Likewise.
6645 2002-02-28  Jason Merrill  <jason@redhat.com>
6647         * c-decl.c (finish_function): Only warn about missing return
6648         statement with -Wreturn-type.
6650 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
6652         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
6654         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
6655         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
6657 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
6659         * basic-block.h (BB_REACHABLE): Renumber.
6660         (BB_DIRTY, BB_NEW): New flags.
6661         (clear_bb_flags): Declare.
6662         (update_life_info_in_dirty_blocks): Declare.
6663         * cfg.c (clear_bb_flags): New function.
6664         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
6665         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
6666         reorder_insns, emit_insn_after): Mark block as dirty.
6667         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
6668         (update_life_info_in_dirty_blocks): New function.
6669         * recog.c (apply_change_group): Dirtify block.
6671         * cse.c (cse_insn): Reorder emitting of jump insn to keep
6672         cfg consistent.
6673         * gcse.c (delete_null_pointer_checks): Likewise.
6675         * toplev.c (dump_file_index): Move cse2 after bp,
6676         add DFI_null
6677         (dump_file_info): Similary.
6678         (rest_of_compilation): Avoid most of CFG rebuilds;
6679         do first if converision after null pointer checks, do cse2
6680         after branch prediction; avoid full liveness rebuild after
6681         initializing subregs.
6682         * invoke.texi (-d options): Document -du, renumber.
6684         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
6685         (notice_new_block): Do not set BB_UPDATE_LIFE.
6686         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
6687          merge_blocks_move_successor_nojumps, merge_blocks,
6688          try_crossjump_to_edge): Likewise.
6689         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
6690         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
6691         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
6692         (merge_of_block): Do not use life_data_ok.
6693         (find_if_case_1): Do not use SET_UPDATE_LIFE.
6694         (if_convert): Use BB_DIRTY mechanizm to update life.
6695         * lcm.c (optimize_mode_switching): Update
6696         update_life_info_in_dirty_blocks
6698 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
6700         * Makefile.in (integrate.o): Update.
6701         * c-decl.c (copy_lang_decl): Rename.
6702         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
6703         * integrate.c: Include langhooks.h.
6704         (copy_decl_for_inlining): Update to use langhook.
6705         * langhooks-def.h (lhd_do_nothing_t,
6706         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
6707         (LANG_HOOKS_INITIALIZER): Update.
6708         * langhooks.c (lhd_do_nothing_t): New.
6709         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
6710         * tree.h (copy_lang_decl): Remove.
6711 objc:
6712         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
6714 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
6716         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
6717         POST_DEC, and POST_MODIFY.
6719 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
6721         * c-typeck.c (digest_init): Remove unused parameter; all
6722         callers changed.
6724 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
6726         * expmed.c (expand_shift): Correctly test for low part of a
6727         subreg.
6729 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
6731         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
6732         insn UIDs with insn addresses.
6734 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
6736         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
6737         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
6738         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
6739         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
6740         gcc.c, toplev.c: Delete code implementing -traditional mode.
6742         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
6743         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
6744         Document removal of -traditional mode for compilation, and
6745         remove documentation only relevant to that mode.
6747         * config/nextstep.h, config/ptx4.h, config/svr4.h,
6748         config/convex/convex.h, config/d30v/d30v.h,
6749         config/i386/dgux.h, config/i386/osf1elf.h,
6750         config/i386/osfelf.h, config/i386/osfrose.h,
6751         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
6752         config/m68k/hp310.h, config/m88k/dgux.h,
6753         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
6754         config/m88k/m88k.h, config/m88k/openbsd.h,
6755         config/mips/abi64.h, config/mips/osfrose.h,
6756         config/mips/svr4-5.h, config/mips/svr4-t.h,
6757         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
6758         config/stormy16/stormy16.h: Remove all references to
6759         -traditional from target specs.  Delete all mention of the
6760         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
6761         delete a couple of commented-out definitions of
6762         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
6763         to -traditional.
6765         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
6766         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
6768 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
6770         * mklibgcc.in: Don't use \n in a line subject to
6771         interpretation by echo.
6773 2002-02-27  Graham Stott  <grahams@redhat.com>
6775         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
6776         Constify NAME.
6778         * loop.c (prescan_loop): Handle PARALLEL.
6780         * unroll.c (loop_iterations): Return 0 if the add_val for
6781         a BIV is REG.
6783         * final.c (output_operand_lossage): Constify PFX_STR.
6785         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
6787 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
6789         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
6790         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
6792 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
6794         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
6796 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6798         * cpplex.c (_cpp_lex_token): Handle directives in macro
6799         arguments.
6800         * cpplib.c (_cpp_handle_directive): Save and restore state
6801         if parsing macro args when entering a directive.
6802         * cppmacro.c (collect_args): No need to handle directives
6803         in macro arguments.
6804         (enter_macro_context, replace_args): Use the original macro
6805         definition in case it was redefined whilst collecting arguments.
6806 doc:
6807         * cpp.texi: Update.
6809 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
6811         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
6812         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
6813         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
6814         method on AIX.
6815         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
6816         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
6817         (load_toc_v4_PIC_2): Same.
6819 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
6821         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
6823 2002-02-26  Richard Henderson  <rth@redhat.com>
6825         * config/alpha/alpha.md (ashldi_se): Re-enable.
6827 2002-02-26  Richard Henderson  <rth@redhat.com>
6829         * config/alpha/alpha.c (alpha_encode_section_info): Examine
6830         MODULE_LOCAL_P; improve commentary.
6832 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
6834         * doc/cpp.texi: Clarify documentation of relationship between
6835         #line and #include.
6837 2002-02-26  Kazu Hirata  <kazu@hxi.com>
6839         * config/h8300/h8300-protos.h: Update the prototype for
6840         compute_logical_op_length.  Add the prototype for
6841         compute_logical_op_cc.
6842         * config/h8300/h8300.c (compute_logical_op_length): Figure out
6843         code from operands.
6844         (compute_logical_op_cc): New.
6845         * config/h8300/h8300.md: Combine all the logical op patterns
6846         in HImode and SImode.  Use compute_logical_op_cc.
6848 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
6850         * config/i386/i386.c (print_operand): Don't append ATT-style
6851         length suffixs to x87 opcodes when in Intel mode.
6853 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
6855         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
6856         (init_emit_once): Update calls.
6857         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
6858         (init_syntax_once): Prototype.
6860 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6862         * pa-linux.h (LIB_SPEC): Update definition.
6863         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6865 2002-02-26  Richard Henderson  <rth@redhat.com>
6867         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
6868         if we emitted a stop bit.
6870 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
6872         * configure.in (libgcc_visibility): Substitute.
6873         * configure: Rebuilt.
6874         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
6875         defined symbols .hidden.
6877 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
6879         * attribs.c (c_common_attribute_table): Add visibility.
6880         (handle_visibility_attribute): New function.
6881         * varasm.c (assemble_visibility): New function.
6882         * output.h (assemble_visibility): Add prototype.
6883         * tree.h (MODULE_LOCAL_P): Define.
6884         * crtstuff.c (__dso_handle): Use visibility attribute.
6885         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
6886         for MODULE_LOCAL_P symbols too.
6887         * config/ia64/ia64.c (ia64_encode_section_info): Handle
6888         MODULE_LOCAL_P symbols the same way as local symbols.
6889         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
6890         into .sdata/.sbss by the user.
6891         * doc/extend.texi (Function Attributes): Document visibility
6892         attribute.
6894 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
6896         PR debug/5770
6897         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
6898         STRING_CST initializer spanning the whole variable without
6899         embedded zeros.
6900         If expand_expr returned MEM, don't use it.
6902 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
6904         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
6905         generate a die for the lexical block.
6907 2002-02-26  Kazu Hirata  <kazu@hxi.com>
6909         * config/h8300/h8300-protos.h: Add a prototype for
6910         compute_logical_op_length.
6911         * config/h8300/h8300.c (compute_logical_op_length): New.
6912         * config/h8300/h8300.md (anonymous logical patterns): Use
6913         compute_logical_op_length for length.
6915 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
6917         * dwarf2out.c (modified_type_die): Do not call type_main_variant
6918         for vectors.
6919         (gen_type_die): Same.
6921         * attribs.c (handle_vector_size_attribute): Set debug information.
6923 2002-02-26  Daniel Egger  <degger@fhm.edu>
6925         * config/rs6000/rs6000.md: Swap define_insn attributes to
6926         fix incorrect generation of merge high instructions instead
6927         of merge low.
6929 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
6931         * c-typeck.c (really_start_incremental_init): Use
6932         bitsize_zero_node for vectors.
6934 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
6936         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
6937         ("*set_vrsave_internal"): Same.
6939 2002-02-25  Richard Henderson  <rth@redhat.com>
6941         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
6942         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
6944 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
6946         PR target/5755
6947         * config/i386/i386.c (ix86_return_pops_args): Only pop
6948         fake structure return argument if it was passed on the stack.
6950 2002-02-25  Jason Merrill  <jason@redhat.com>
6952         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
6953         RESULT_DECL.
6955 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
6957         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
6958         link with shared_name only.
6959         * doc/invoke.texi (Link Options): Document new behavior.
6961 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
6963         * c-typeck.c (push_init_level): Handle vectors.
6965 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
6967         * config/sparc/sparc.c (const64_high_operand): Zero-extend
6968         operands of SPARC_SETHI_P.
6969         (input_operand): Likewise.
6970         (sparc_emit_set_const32): Likewise.
6971         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
6972         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
6973         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
6974         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
6975         (movdi_insn_sp64_vis): Likewise.
6976         (movdi split, movdf split): Use SETHI32.
6977         * doc/md.texi: Document SPARC constraints L, M and N.
6979 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
6981         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
6982         ("*set_vrsave_internal"): use mfspr for Darwin.
6984         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
6985         gen_get_vrsave_internal.
6987 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6989         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
6991 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6993         * cpplex.c (cpp_interpret_charconst): Get signedness or
6994         otherwise of wide character constants correct.
6995         * cppexp.c (lex): Get signedness of wide charconsts correct.
6997 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6999         * optabs.c (widen_operand): Only call convert_modes for
7000         promoted SUBREG if signedness matches.
7001         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
7003 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
7005         * cpplib.c (glue_header_name): Use local buffer to build up
7006         header name.
7008 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
7010         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
7012 2002-02-23  Kazu Hirata  <kazu@hxi.com>
7014         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
7015         H8/300[HS] separately.
7016         * config/h8300/h8300.md: Remove the early clobber constraint
7017         from bit field patterns.
7019 2002-02-23  Kazu Hirata  <kazu@hxi.com>
7021         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
7022         register_operand.
7023         (mulhisi3): Likewise.
7024         (umulqisi3): Likewise.
7025         (umulhisi3): Likewise.
7027 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
7029         * cppinit.c (output_deps): Correct test for stdout output.
7030         (init_dependency_output): Cure warning.
7032 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7034         * expr.c (store_expr): When converting expression to promoted
7035         equivalent type, allow using SUBREG_REG of TARGET as the target
7036         of the expansion of EXP.
7037         * loop.c (basic_induction_var, case SUBREG): Always look inside.
7038         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
7039         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
7040         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
7041         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
7043 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
7045         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
7046         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
7047         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
7049 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
7051         PR optimization/5747
7052         * loop.c (scan_loop): Update reg info if move_movables created new
7053         pseudos.
7055 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
7057         * gcc.c (init_gcc_spec): Revert last change.
7059 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
7061         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
7062         gpc_reg_operand constraint.
7064 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
7066         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
7067         Simplify comparison of `low'.
7068         (add_operand): Fix formatting.
7069         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
7070         (mask_operand): Disallow mask to wrap in 64-bit mode.
7071         (rs6000_stack_info): Remove redundant test setting push_p.
7072         (output_toc): Fix formatting.
7073         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
7074         cc_reg_not_cr0_operand constraint.
7075         (booldi3, boolcdi3 splitters): Same.
7077 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
7079         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
7081 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
7083         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
7084         gcc invoked with -shared-libgcc.
7086 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
7088         PR c++/5748
7089         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
7090         decl if any of elements was TREE_USED.
7092 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
7094         * config/sparc/sol2.h: Don't include sys/mman.h.
7095         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
7096         (arith_4096_operand): Don't throw high bits away.
7097         (const64_operand): Take sign extension of CONST_INTs into account.
7098         (const64_high_operand, sparc_emit_set_const32): Likewise.
7099         (GEN_HIGHINT64): Likewise.
7100         (sparc_emit_set_const64_quick1): Likewise.
7101         (const64_is_2insns): Likewise.
7102         (print_operand): Use trunc_int_for_mode for sign extension.
7103         * config/sparc/sparc.h (SMALL_INT32): Likewise.
7104         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
7105         chars.  Assume CONST_INT is already properly sign-extended.
7106         (movdi split): Sign-extend each SImode part.
7107         (andsi3 split): Don't mask high bits off, so that result
7108         remains properly sign-extend.
7109         (iorsi3 split): Likewise.
7110         (xorsi3 split): Likewise.
7112 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
7114         * fold-const.c (fold): Fix typo in comments.
7116 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
7118         * Makefile.in (langhooks.o): Update dependencies.
7120 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
7122         * langhooks.c: Include flags.h.
7124 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
7126         * testsuite/gcc.dg/attr-alwaysinline.c: New.
7128         * c-common.c (c_common_post_options): Set inline trees by
7129         default.
7131         * doc/extend.texi (Function Attributes): Document always_inline
7132         attribute.
7133         Update documentation about inlining when not optimizing.
7135         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
7137         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
7138         unless DECL_ALWAYS_INLINE.
7140         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
7141         unless DECL_ALWAYS_INLINE.
7142         (c_disregard_inline_limits): Disregard if always_inline set.
7144         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
7145         Disregard if always_inline set.
7146         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
7147         unless DECL_ALWAYS_INLINE.
7149         * attribs.c (handle_always_inline_attribute): New.
7150         (c_common_attribute_table): Add always_inline.
7152         * config/rs6000/altivec.h: Add prototypes for builtins
7153         requiring the always_inline attribute.
7155 2002-02-21  Eric Christopher  <echristo@redhat.com>
7157         * expmed.c (store_bit_field): Try to simplify the subreg
7158         before generating a new one when when the mode size of
7159         value is less than maxmode.
7161 2002-02-21  Richard Henderson  <rth@redhat.com>
7163         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
7164         than gen_rtx_PLUS to form the sum.
7165         * explow.c (force_reg): Rearrange to not allocate new pseudo
7166         when force_operand returns a register.
7167         * expr.c (expand_assignment): Allow offset_rtx expansion to
7168         return a sum.  Do not force addresses into registers.
7169         (expand_expr): Likewise.
7170         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
7171         to canonicalize arithmetic that didn't simpify.
7172         (simplify_plus_minus): New argument force; update
7173         all callers.  Don't split CONST unless we can do something with it,
7174         and wouldn't lose the constness of the operands.
7176         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
7177         that we generated earlier.
7179 2002-02-21  Tom Tromey  <tromey@redhat.com>
7181         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7182         (output_line_info): Use constant `1', with a long explanatory
7183         comment.
7184         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
7186 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
7188         * jump.c (redirect_jump): If old label has no UID, don't try to
7189         delete it.
7191 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
7193         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
7194         If input is constant, do shifts at compile time.
7196 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
7198         * doc/extend.texi: Fix some more overfull hboxes.
7200 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
7202         PR optimization/4994
7203         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
7204         register moves.
7206 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
7208         PR c++/4574
7209         * expr.h (expand_and): Add mode argument.
7210         * expmed.c (expand_and): Add mode argument.
7211         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
7212         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
7213         * except.c (expand_builtin_extract_return_addr): Likewise.
7214         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
7215         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
7216         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
7217         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
7218         * config/c4x/c4x.md: Use GEN_INT (x) instead of
7219         gen_rtx (CONST_INT, VOIDmode, x).
7221 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
7223         PR c/4697:
7224         * stmt.c (warn_if_unused_value): Move side effects test once more.
7226 2002-02-20  Torbjorn Granlund  <tege@swox.com>
7228         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
7229         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
7231 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
7233         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
7234         SUBREG or ZERO_EXTEND.
7236 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
7238         * sh.h (current_function_anonymous_args): Remove.
7239         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
7240         of current_function_varargs and current_function_stdarg is set.
7241         * sh.c (sh_expand_prologue): Check current_function_varargs /
7242         current_function_stdarg / TARGET_SH5 instead of
7243         current_function_anonymous_args.
7245         * sh64.h (TARGET_VERSION): Define.
7247 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
7249         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
7250         VRSAVE_REGNO on TARGET_ALTIVEC.
7252 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
7254         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
7255         bits of SImode const_int.
7256         (includes_rshift_p): Likewise.
7257         (print_operand): Call mask_operand and mask64_operand with correct
7258         mode.
7259         (rs6000_output_function_epilogue): Pad traceback table to word.
7260         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
7261         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
7262         mask64_operand with correct mode.
7263         (FUNCTION_ARG_REGNO_P): Correct parentheses.
7265 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
7267         PR debug/4461
7268         * varasm.c (get_pool_constant_mark): New.
7269         * rtl.h (get_pool_constant_mark): Add prototype.
7270         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
7271         be represented if it has not been output.
7273 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
7275         * combine.c (do_SUBST): Sanity check substitutions of
7276         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
7277         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
7278         CONST_INT into its operand.
7279         (known_cond): Likewise, for ZERO_EXTEND.
7280         * simplify-rtx.c (simplify_unary_operation): Fix condition to
7281         allow for simplification of wide modes.  Reject CONST_INTs in
7282         ZERO_EXTEND when their actual mode is not given.
7284 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
7286         * c-decl.c (pushdecl): If no global declaration is found for an
7287         extern declaration in block scope, try a limbo one.
7289 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
7291         PR c++/4401
7292         * c-common.c (pointer_int_sum): Moved from...
7293         * c-typeck.c (pointer_int_sum): ...here.
7294         * c-common.h (pointer_int_sum): Add prototype.
7296 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
7298         PR c++/5713
7299         * c-decl.c (duplicate_decls): Return 0 if issued error about
7300         redeclaration.
7302 2002-02-20  Roger Sayle  <roger@eyesopen.com>
7303             Jakub Jelinek  <jakub@redhat.com>
7305         PR c/4389
7306         * tree.c (host_integerp): Ensure that the constant integer is
7307         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
7308         when pos is zero or non-zero respectively.  Clarify comment.
7309         * c-format.c (check_format_info_recurse): Fix host_integerp
7310         usage; the pos argument should be zero when assigning to a
7311         signed HOST_WIDE_INT.
7313 2002-02-20  Richard Henderson  <rth@redhat.com>
7315         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
7316         of the operand, rather than assuming TImode.
7317         (ix86_expand_binop_builtin): Cope with commutative patterns
7318         using nonimmediate_operand for both operands.
7319         (ix86_expand_timode_binop_builtin): Likewise.
7320         (ix86_expand_store_builtin): Validate operand 1.
7321         (ix86_expand_unop1_builtin): Likewise.
7323 2002-02-20  Philip Blundell  <philb@gnu.org>
7325         PR 5705
7326         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
7328 2002-02-20  Richard Henderson  <rth@redhat.com>
7330         PR c/5615
7331         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
7333 2002-02-20  Tom Tromey  <tromey@redhat.com>
7335         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7336         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7337         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7338         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7339         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
7340         unconditionally.
7342 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
7344         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
7345           for (const_int 0) in X not just INTVAL.
7347 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
7349         * doc/extend.texi: Avoid or reduce overfull hboxes.
7351 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
7353         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
7354         operations if the field does not start at a mode boundary.
7356 2001-02-20      Joel Sherrill <joel@OARcorp.com>
7358         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
7359         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
7360         Also done for -Acpu and -Amachine.
7362 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
7364         * cppinit.c (init_dependency_output): Take deps output file
7365         from -o if none given with -MF.  Suppress normal output.
7366         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
7367         * doc/cpp.texi, doc/invoke.texi: Update.
7369 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
7371         * toplev.c (output_quoted_string): Write unprintable
7372         characters with octal escapes.
7374 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
7376         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
7377         really_call_used[VRSAVE_REGNO] if not Altivec.
7379 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
7381         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
7382         MODE_MASK.
7383         (constant_pool_expr_1): Fix formatting.
7384         (rs6000_legitimize_reload_address): Likewise.
7386 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7388         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
7389         now that we have one.
7391 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
7393         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
7394         end of first block of bitfields (which was only seven bits);
7395         rename dummy to unused_1; remove comment which is no longer true.
7397 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
7399         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
7401 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
7403         PR 5399
7404         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
7405         if generating PIC.
7407         PR 5054
7408         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
7409         arm_is_longcall_p rather than inspecting call-type cookie
7410         directly.
7411         (call_value_insn) [TARGET_THUMB]: Likewise.
7413 2002-02-19  Graham Stott  <grahams@redhat.com>
7415         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
7417 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
7419         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
7420         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
7421         (FP_SAVE_INLINE): Delete.
7423         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
7424         * config/rs6000/eabi.asm: Remove ABI save restore routines.
7425         * config/rs6000/t-ppccomm: Build crtsavres.o.
7426         * config/rs6000/crtsavres.asm: New file.
7428 2002-02-19  Philip Blundell  <philb@gnu.org>
7430         * config/arm/arm.c (use_return_insn): Don't reject interrupt
7431         functions.
7432         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
7433         (output_return_instruction): Allow interrupt functions to return with
7434         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
7435         (arm_expand_prologue): Subtract 4 before stacking LR in an
7436         interrupt function.
7438 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
7440         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
7441         decl, not just FUNCTION_DECL.
7442         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
7443         (arm_assemble_integer): Likewise.
7444         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
7445         marked local.
7447 2002-02-19  matthew green  <mrg@eterna.com.au>
7449         * config.gcc (sparc-*-netbsdelf*): Enable target.
7450         (sparc64-*-netbsd*): New target.
7451         * config/sparc/netbsd-elf.h: New file.
7452         * config/sparc/t-netbsd64: New file.
7454 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
7456         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
7458 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
7460         * doc/invoke.texi: explicitly list the style guidelines that
7461         -Weffc++ checks for.
7463 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
7465         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
7467 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
7469         PR other/5718
7470         * gcc.c (cpp_unique_options): Treat -o as indicating object file
7471         only if not -E.  If -E, pass -o through to the preprocessor.
7473 2002-02-19  Kazu Hirata  <kazu@hxi.com>
7475         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
7476         register number with an appropriate macro.
7478 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
7480         * doc/rtl.texi (Constants): Close @code tag.
7482 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
7484         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
7485         ("mmx_uavgv4hi3"): Same.
7486         ("pmulhrwv4hi3"): Same.
7488         * tree-inline.c (walk_tree): Handle vectors.
7490         * c-common.c (constant_expression_warning): Handle vectors.
7491         (overflow_warning): Same.
7493         * sched-deps.c (sched_analyze_2): Handle vectors.
7495         * rtlanal.c (rtx_unstable_p): Handle vectors.
7496         (rtx_varies_p): Same.
7497         (count_occurrences): Same.
7498         (regs_set_between_p): Same.
7499         (modified_between_p): Same.
7500         (modified_in_p): Same.
7501         (volatile_insn_p): Same.
7502         (volatile_refs_p): Same.
7503         (side_effects_p): Same.
7504         (may_trap_p): Same.
7505         (inequality_comparisons_p): Same.
7506         (replace_regs): Same.
7507         (computed_jump_p_1): Same.
7509         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
7510         argument.
7511         (inner_mode_array): New.
7512         (copy_rtx): Handle vectors.
7513         (copy_most_rtx): Same.
7514         (rtx_equal_p): Same.
7515         (get_mode_alignment): Adjust for vectors.
7517         * resource.c (mark_referenced_resources): Handle vectors.
7518         (mark_set_resources): Same.
7520         * reload1.c (eliminate_regs): Handle vectors.
7521         (elimination_effects): Same.
7522         (scan_paradoxical_subregs): Same.
7524         * reload.c (subst_reg_equivs): Handle vectors.
7526         * regrename.c (scan_rtx): Handle vectors.
7528         * regclass.c (reg_scan_mark_refs): Handle vectors.
7530         * recog.c (find_single_use_1): Handle vectors.
7532         * local-alloc.c (equiv_init_varies_p): Handle vectors.
7533         (contains_replace_regs): Same.
7534         (memref_referenced_p): Same.
7536         * integrate.c (copy_rtx_and_substitute): Handle vectors.
7537         (subst_constants): Same.
7539         * genattrtab.c (attr_copy_rtx): Handle vectors.
7540         (encode_units_mask): Same.
7541         (clear_struct_flag): Same.
7542         (count_sub_rtxs): Same.
7544         * gcse.c (want_to_gcse_p): Handle vectors.
7545         (oprs_unchanged_p): Same.
7546         (hash_expr_1): Same.
7547         (oprs_not_set_p): Same.
7548         (expr_killed_p): Same.
7549         (compute_transp): Same.
7550         (store_ops_ok): Same.
7552         * function.c (purge_addressof_1): Do not allow paradoxical subregs
7553         of vectors.
7554         (fixup_var_refs_1): Same.
7555         (instantiate_virtual_regs_1): Same.
7557         * fold-const.c (operand_equal_p): Handle vectors.
7558         (fold): Same.
7559         (rtl_expr_nonnegative_p): Same.
7561         * flow.c (mark_used_regs): Handle vectors.
7563         * df.c (df_uses_record): Handle vectors.
7565         * cselib.c (cselib_subst_to_values): Handle vectors.
7566         (cselib_mem_conflict_p): Same.
7567         (hash_rtx): Same.
7569         * cse.c (canon_reg): Handle vectors.
7570         (fold_rt): Same.
7571         (cse_process_notes): Same.
7572         (count_reg_usage): Same.
7573         (canon_hash): Same.
7575         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
7577         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
7579         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
7580         (gen_rtx): Handle CONST_VECTOR.
7581         (gen_const_vector_0): New.
7582         (copy_rtx_if_shared): CONST_VECTORs can be shared.
7583         (reset_used_flags): Same.
7584         (copy_insn_1): Same.
7585         (initializer_constant_valid_p): Handle VECTOR_CST.
7587         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
7589         * doc/rtl.texi (Constants): Document const_vector.
7590         (CONST0_RTX): Update for vectors.
7591         (RTL sharing): Same.
7593         * print-tree.c (print_node): Add case for VECTOR_CST.
7595         * tree.h (TREE_VECTOR_CST_ELTS): New.
7596         (struct tree_vector): New.
7597         (union tree_node): Add vector node.
7598         (build_vector): Add prototype.
7600         * tree.def (VECTOR_CST): New.
7602         * tree.c (build_vector): New.
7604         * expmed.c (make_tree): Handle CONST_VECTOR.
7606         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
7607         (CONST_VECTOR_ELT): New.
7608         (CONST_VECTOR_NUNITS): New.
7610         * machmode.h (GET_MODE_INNER): New.
7611         (DEF_MACHMODE): Accept 8th arg.
7613         * machmode.def: Add 8th argument for vector inner mode.
7614         Add inner vector modes for vectors.
7616         * rtl.def (VEC_CONST): Remove.
7617         (CONST_VECTOR): New.
7619         * expr.c (clear_storage): Allow vectors.
7620         (is_zeros_p): Handle VECTOR_CST.
7622         * varasm.c (output_constant_pool): Handle vectors.
7623         (rtx_const): Add veclo and vechi fields.
7624         (kind): Add RTX_VECTOR.
7625         (decode_rtx_const): Add case for vector.
7627         * config/rs6000/rs6000-protos.h: Add zero_constant.
7629         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
7630         constants.  Force easy vector constants into memory.
7631         (easy_vector_constant): New.
7632         (emit_easy_vector_constant): New.
7633         (rs6000_legitimize_reload_address): Do not generate bad reloads on
7634         darwin.
7636         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
7637         instruction does.
7638         ("altivec_lvxl"): Same.
7639         (altivec_lvebx): Same.
7640         (altivec_lvehx): Same.
7641         (altivec_lvewx): Same.
7642         ("*movv4si_const0"): New.
7643         ("*movv4sf_const0"): New.
7644         ("*movv8hi_const0"): New.
7645         ("*movv16qi_const0"): New.
7647 2002-02-18  Kazu Hirata  <kazu@hxi.com>
7649         * config/h8300/h8300.c (notice_update_cc): Use
7650         cc_status.value2.
7652 2002-02-18  Kazu Hirata  <kazu@hxi.com>
7654         * config/h8300/h8300.md (divmod patterns): Change the
7655         constraints for operands[1] to register_operand.
7657 2002-02-18  Kazu Hirata  <kazu@hxi.com>
7659         * config/h8300/h8300-protos.h: Remove the prototype for
7660         p_operand.
7661         * config/h8300/h8300.c (p_operand): Remove.
7662         * config/h8300/h8300.md: Replace p_operand with
7663         const_int_operand.
7665 2002-02-18 Philip Blundell <pb@nexus.co.uk>
7667         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
7668         comment.
7669         (output_return_instruction): Allow use of LDR to unstack
7670         return addresss even for interrupt handlers or when
7671         interworking.  If compiling for ARMv5, use interworking-safe
7672         return instructions by default.  Remove duplicated code and
7673         lengthy "strcat" sequences.
7675 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7677         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
7678         (LINK_EH_SPEC): Define.
7679         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
7681 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
7683         * config/s390/s390.c (s390_emit_prologue): Do not set the
7684         frame_related flag for call-clobbered registers.
7686 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
7688         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
7689         (construct_container): Fix handling of SSE operands.
7690         (ix86_expand_builtin): Fix handling of 64bit pointers.
7691         (mmx_maskmovq_rex): New pattern.
7693 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
7695         * regrename.c (kill_set_value): Handle subregs properly.
7697 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
7699         * objc/objc-act.c (handle_impent): Remove leading '*'
7700         from objc_class_name.
7702 2002-02-17  Richard Henderson  <rth@redhat.com>
7704         * config/alpha/alpha.c (some_small_symbolic_operand,
7705         some_small_symbolic_operand_1, split_small_symbolic_operand,
7706         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
7707         Handle small SYMBOL_REFs anywhere, not just inside memories.
7708         * config/alpha/alpha-protos.h: Update.
7709         * config/alpha/alpha.h (PREDICATE_CODES): Update.
7710         * config/alpha/alpha.md (small symbolic operand splitter): Update.
7712 2002-02-17  Roland McGrath  <roland@frob.com>
7714         * config.gcc (powerpc-*-gnu-gnualtivec*,
7715         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
7716         * config/rs6000/gnu.h: New file.
7717         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
7718         Grok "gnu" in rs6000_abi_name.
7719         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
7720         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
7721         Grok -mcall-gnu analogous to -mcall-linux et al.
7722         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
7723         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
7724         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
7726 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
7728         PR c/3444:
7729         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
7730         shortening.
7732 2002-02-17  Philipp Thomas  <pthomas@suse.de>
7734         * config/cris/cris.h: Undefine STARTFILE_SPEC and
7735         ENDFILE_SPEC before (re)defining them.
7737 2002-02-17  Kazu Hirata  <kazu@hxi.com>
7739         * config/h8300/h8300.c: Fix formatting.
7740         * config/h8300/h8300.h: Likewise.
7742 2002-02-17  Philipp Thomas  <pthomas@suse.de>
7744         * doc/tm.texi: Explain why empty strings should not be
7745         marked for translation.
7747 2002-02-17  Philipp Thomas  <pthomas@suse.de>
7749         * final.c (output_operand_lossage): Changed to accept
7750         printf style arguments. Change calls where necessary.
7751         * output.h (output_operand_lossage): Change declaration
7752         accordingly. Update copyright.
7753         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
7754         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
7755         Update copyright date where necessary.
7757         * config/i386/i386.c (print_operand): Likewise. Remove use of
7758         sprintf.
7760         * config/cris/cris.c (cris_operand_lossage): Likewise.
7761         Rename parameter so that exgettext recognizes it as
7762         translatable message.
7763         (LOSE_AND_RETURN): Rename parameter to msgid.
7765 2002-02-17  Kazu Hirata  <kazu@hxi.com>
7767         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
7768         hard coded register number with an appropriate macro.
7769         (HARD_REGNO_MODE_OK): Likewise.
7770         (ARG_POINTER_REGNUM): Likewise.
7771         (STATIC_CHAIN_REGNUM): Likewise.
7772         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
7773         * config/h8300/h8300.md (define_constants): Define more
7774         register numbers.
7776 2002-02-17  Philipp Thomas  <pthomas@suse.de>
7778         * config/i386/i386.h: Don't mark empty strings for translation.
7780 2002-02-16  H.J. Lu <hjl@gnu.org>
7782         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
7784 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
7786         * cppinit.c (merge_include_chains): Check for brack being
7787         NULL before attempting to merge it with qtail.
7789 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
7791         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
7792         DBX_DEBUG.
7794 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7796         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
7798 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7800         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
7801         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
7802         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
7804 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7806         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
7807         now only if !TARGET_FIX.
7808         (*movsi_nt_vms_fix): New pattern.
7810 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
7812         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
7813         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
7814         (alpha_sa_mask, alpha_sa_size): Reflect above change.
7815         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
7816         (alpha_start_function, alpha_expand_epilogue): Likewise.
7817         (unicosmk_gen_dsib): Likewise.
7819 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7821         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
7823 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
7825         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
7826         check_and_change_labels, s390_final_chunkify): Delete.
7827         (s390_split_branches, s390_chunkify_pool): New functions.
7828         (s390_function_prologue): Call them.
7830         * config/s390/s390.h (S390_REL_MAX): Delete.
7831         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
7833         * config/s390/s390.md (cjump, icjump, jump): Fix length
7834         attribute calculation.
7837 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
7839         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
7840         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
7842 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7844         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
7845         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
7846         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
7848 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
7850         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
7852 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
7854         * reload.c (find_dummy_reload): Check that an output register
7855         is valid for its mode.
7857 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
7859         * combine.c (known_cond): After replacing the REG of a SUBREG, try
7860         to simplify it.
7862         * function.c (assign_parms): Demote promoted argument passed by
7863         transparent reference.
7865 2001-02-14      Joel Sherrill <joel@OARcorp.com>
7867         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
7868         -Acpu() and -Amachine() to eliminate warnings.
7870 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
7872         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
7874 2002-02-14  Kazu Hirata  <kazu@hxi.com>
7876         * config/h8300/h8300-protos.h: Update the prototype for
7877         const_costs.
7878         * config/h8300/h8300.c (const_costs): Treat SET as a little
7879         more expensive operation.
7880         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
7881         reference to const_costs.
7883 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
7885         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
7887 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
7889         PR c/5503:
7890         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
7891         use arguments from newtype.
7893 2002-02-13  Eric Christopher  <echristo@redhat.com>
7895         * config/mips/mips.c (override_options): Add check for march/mipsX
7896         on the same command line. Fix error message in cpu processing.
7897         Remove architecture and ISA checks.
7899 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
7901         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
7903         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
7905 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
7907         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
7908         alternatives.
7909         ("*movv8hi_internal1"): Same.
7910         ("*movv16qi_internal1"): Same.
7911         ("*movv4sf_internal1"): Same.
7913         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
7914         not push_reload for altivec modes.
7916 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
7918         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
7919         all RTEMS targets including removal of #includes from config/*/rtems*.h
7920         file and adding them to tm_file setting. Added xm_defines=POSIX to
7921         many targets.
7922         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
7923         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
7924         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
7925         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
7926         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
7927         config/m68k/rtemself.h: Ditto.
7928         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
7929         config/mips/rtems64.h: Ditto.
7930         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
7931         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
7932         Ditto.
7933         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
7934         config/sparc/rtemself.h: Ditto.
7935         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
7936         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
7937         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
7938         more like arm-elf.
7939         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
7940         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
7941         target made more similar to i386-elf.
7942         * config/i386/t-rtems-i386: Added soft float support and multilibs.
7943         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
7944         be similar to config/m68k/t-m68kelf.
7945         * gthr-rtems.h: Encapsulate with extern "C" for C++.
7947 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
7949         * regmove.c (kill_value): Handle subregs.
7951 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
7953         * i386.md (mul patterns): Allow memory operand to be first;
7954         add expanders where needed; fix constraints.
7955         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
7956         Allow memory operand to be the first.
7958         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
7959         operands.
7961 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
7963         PR c/5681:
7964         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
7965         GET_MODE (x).
7967 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
7969         PR optimization/5547:
7970         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
7971         all valid IA-32 address modes involving non-scaled %ebx and
7972         GOT/GOTOFF as displacement.
7974 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
7976         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
7977         after emitting ltorg insns.
7979         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
7980         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
7981         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
7982         *abssf2): Fix "op_type" attribute.
7984 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
7986         * mkconfig.sh: Avoid using a subshell redirect.
7987         ($output.T): Change to $(output)T.
7988         (ENABLE_NLS): Remove unneeded undef.
7990         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
7991         * config/alpha/x-vms (libsubdir): Define.
7993         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
7994         register frame procedures. Optimize retrieving context.
7996         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
7997         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
7998         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
8000 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8002         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
8003         Make same change as for find_base_value.
8005 2002-02-13  Kazu Hirata  <kazu@hxi.com>
8007         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
8008         of QImode and SImode.
8010 2002-02-13  Kazu Hirata  <kazu@hxi.com>
8012         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
8013         length computation of movsi.
8014         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
8016 2002-02-13  Kazu Hirata  <kazu@hxi.com>
8018         * config/h8300/h8300.md (subqi3): Tighten the predicate for
8019         operands[2] to register_operand.
8021 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
8023         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
8025 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
8027         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
8028         for altivec_lvx* and altivec_stvx*.
8029         ("*movv4si_internal"): Add constraint for loading from GPRs.
8030         ("*movv8hi_internal1"): Same.
8031         ("*movv16qi_internal1"): Same.
8032         ("*movv4sf_internal1"): Same.
8034         * config/rs6000/rs6000.c (altivec_register_operand): New.
8036         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
8037         altivec_register_operand.
8039 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
8041         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
8042         handle SYMBOL_REF.
8044 2002-02-13  Stan Shebs  <shebs@apple.com>
8046         * c-typeck.c (digest_init): Handle vectors.
8047         (really_start_incremental_init): Same.
8048         (pop_init_level): Same.
8049         (process_init_element): Same.
8051         * varasm.c (output_constant): Same.
8053         * expr.c (clear_storage): Same.
8054         (store_constructor): Same.
8056 2002-02-12  Eric Christopher  <echristo@redhat.com>
8058         * explow.c (hard_function_value): Add comment explaining
8059         signed/unsigned comparison.
8061 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
8063         * jump.c (never_reached_warning): Add finish argument.
8064         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
8065         real insn after end.
8066         * rtl.h (never_reached_warning): Adjust prototype.
8067         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
8068         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
8069         never_reached_warning.
8071 2002-02-12  Graham Stott  <grahams@redhat.com>
8073         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
8075 2002-02-12  Kazu Hirata  <kazu@hxi.com>
8077         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
8078         logical shifts on H8/300.
8079         (shift_alg_si): Improve several shifts on H8/300.
8080         (get_shift_alg): Likewise.
8082 2002-02-12  Graham Stott  <grahams@redhat.com>
8084         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
8086 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8088         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
8089         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
8091 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
8093         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
8094         non-CONST_INT through default_assemble_integer.
8095         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
8096         <case 8>: Abort for CONST_DOUBLE.
8098 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8100         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
8101         is specified.
8102         * config/pa/pa-linux.h (LIB_SPEC): Delete.
8103         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
8105 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
8107         * config/stormy16/stormy16.md (zero_extendqihi2): New.
8109 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
8111         * regrename.c (regrename_optimize): Don't accept a
8112         part-clobbered register if the replaced register is not part
8113         clobbered.
8115         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
8116         take padding into account when computing the argument value.
8118         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
8120         * combine.c (try_combine): Apply substitutions in
8121         CALL_INSN_FUNCTION_USAGE too.
8123 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
8125         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
8126         __builtin_altivec_abs*.
8127         (bdesc_abs): New.
8129         * config/rs6000/rs6000.h (rs6000_builtins): Add
8130         ALTIVEC_BUILTIN_ABS*.
8132         * config/rs6000/altivec.h: Use const char for builtins expecting
8133         literals.
8134         (vec_abs): New versions for C and C++.
8135         (vec_abss): Same.
8137 2002-02-10  Kazu Hirata  <kazu@hxi.com>
8139         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
8140         using Pmode.
8142 2002-02-10  Kazu Hirata  <kazu@hxi.com>
8144         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
8145         constant definition from h8300.md.
8146         (FRAME_POINTER_REGNUM): Likewise.
8147         * config/h8300/h8300.md (define_constants): Add FP_REG.
8149 2002-02-10  Kazu Hirata  <kazu@hxi.com>
8151         * config/h8300/h8300.c (print_operand): Remove redundant code.
8153 2002-02-10  Kazu Hirata  <kazu@hxi.com>
8155         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
8156         * config/h8300/h8300.c (byte_reg): Make it static.
8158 2002-02-10  Richard Henderson  <rth@redhat.com>
8160         PR c/5623
8161         * c-typeck.c (incomplete_type_error): Handle flexible array members.
8163 2002-02-10  Richard Henderson  <rth@redhat.com>
8165         PR c++/5624
8166         * tree.c (append_random_chars): Don't abort if main_input_filename
8167         does not exist.
8169 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
8171         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
8173 2002-02-10  Kazu Hirata  <kazu@hxi.com>
8175         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
8176         (pushhi1): Likewise.
8178 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8180         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
8181         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
8183 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
8185         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
8186         remove MASK_VIS.
8187         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
8189 2002-02-09  Kazu Hirata  <kazu@hxi.com>
8191         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
8192         a half of an SImode register on H8/300.
8194 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
8196         * i386.md (movdi_2): Add missing '!'.
8198 2002-02-09  Kazu Hirata  <kazu@hxi.com>
8200         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
8201         definitions.
8203 2002-02-09  Kazu Hirata  <kazu@hxi.com>
8205         * config/h8300/h8300.md (length): Correct the distance valid
8206         for the short branch.
8208 2002-02-09  Kazu Hirata  <kazu@hxi.com>
8210         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
8212 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
8214         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
8215         registers in SImode.
8216         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
8217         part-clobbered.
8219         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
8220         patch.
8222         Contribute sh64-elf.
8223         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
8224         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
8225         (sh_cannot_modify_jumps_p): New function.
8226         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
8227         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
8228         (sh_ms_bitfield_layout_p): New function.
8229         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
8230                     Zack Weinberg  <zack@codesourcery.com>
8231         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
8232         expand_simple_binop instead of expand_binop.
8233         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
8234         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
8235         use of .quad and .uaquad.
8236         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
8237         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
8238         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8239         * config/sh/sh.md (movdi_const, movdi_const_32bit,
8240         movdi_const_16bit): Make sure all CONSTs have modes.
8241         (sym2PIC): Ditto, but by adjusting all callers.
8242         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
8243         if the prologue calls the SHmedia argument decoder or register
8244         saver.
8245         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8246         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
8247         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
8248         (sh_expand_epilogue): Don't emit USE of return target register.
8249         (prepare_move_operands): Legitimize DImode PIC addresses.
8250         (sh_media_register_for_return): Skip tr0, used to initialize the
8251         PIC register.
8252         (sh_expand_prologue): Remove explicit USE of return register.
8253         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
8254         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
8255         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
8256         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
8257         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
8258         EXTRA_CONSTRAINT_T.
8259         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
8260         (MOVI_SHORI_BASE_OPERAND_P): New.
8261         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
8262         (EXTRA_CONSTRAINT_T): Define in terms of them.
8263         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
8264         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
8265         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
8266         alternatives supporting TARGET_REGS.
8267         (UNSPEC_GOTPLT): New constant.
8268         (movdi split): Move incrementing of LABEL_NUSES...
8269         (movdi_const, movdi_const_32bit): Here.  Use
8270         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
8271         (movdi_const_16bit): New.
8272         (call, call_value) [flag_pic]: Use GOTPLT.
8273         (call_pop, call_value_pop): New expands.
8274         (call_pop_compact, call_pop_rettramp): New insns.
8275         (call_value_pop_compact, call_value_pop_rettramp): New insns.
8276         (sibcall) [flag_pic]: Use GOT.
8277         (builtint_setjmp_receiver): Remove bogus, unused expand.
8278         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
8279         (*pt, *ptb, ptrel): New insns.
8280         (sym2GOT): Handle DImode GOT.
8281         (sym2GOTPLT, symGOTPLT2reg): New expands.
8282         (sym2PIC): New expand.
8283         (shcompact_return_tramp): Use GOTPLT to return trampoline.
8284         (shcompact_return_tramp_i): Use return register explicitly.
8285         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
8286         disable flag_reorder_blocks.
8287         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
8288         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
8289         clobbers, for clarity.
8290         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
8291         restoring of r0 in macl as MAYBE_DEAD.
8292         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
8293         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
8294         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
8295         alter_subreg all over.
8296         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
8297         reload, instead of emitting instructions that would require
8298         reloading.
8299         (casesi_load_media): Add missing modes.
8300         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
8301         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
8302         as used if the argument decoder is called.
8303         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
8304         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
8305         Pmode, then extend it to DImode if necessary.
8306         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
8307         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
8308         constants in FPU-enabled SHmedia, let them be loaded from memory.
8309         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
8310         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
8311         Adjust whitespace in assembly output templates.
8312         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
8313         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
8314         mode of if_then_else.
8315         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
8316         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
8317         sh.h.
8318         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
8319                     Joern Rennecke <amylaar@redhat.com>
8320         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
8321         (SUBTARGET_CPP_PTR_SPEC): New.
8322         (SUBTARGET_CPP_SPEC): Remove.
8323         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
8324         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
8325         Fix typo in previous checkin.
8326         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
8327         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
8328         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
8329                     Alexandre Oliva  <aoliva@redhat.com>
8330         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
8331         what single FP register can hold for SHmedia target.
8332         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
8333                     Alexandre Oliva  <aoliva@redhat.com>
8334         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
8335         Do not split into SUBREG.
8336         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
8337         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
8338         and added new functions as specified in SH5 ABI r9.
8339         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
8340         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
8341         8-byte boundary.
8342         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
8343         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
8344         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
8345         and consttable_window_ends.
8346         2001-06-03  Graham Stott  <grahams@redhat,com>
8347         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
8348         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
8349         * config/sh/sh.c (print_operand): Handle floating-point pair,
8350         vector and matrix registers.
8351         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
8352         vector modes into account.
8353         * config/sh/sh.md (movv2sf): Split move between registers into
8354         movdf.
8355         (movv4sf, movv16sf): Introduce insns that get split only after
8356         reload.
8357         * config/sh/shmedia.h: Fix Copyright dates.
8358         * config/sh/ushmedia.h: Likewise.  Move loop counter
8359         declarations into conditionals that uses them.
8360         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
8361         loop boundary.
8362         * config/sh/sshmedia.h: Fix Copyright dates.
8363         (sh_media_PUTCFG): Fix constraints.
8364         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
8365         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
8366         ptrmemfunc_vbit_in_delta for SH5.
8367         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
8368         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
8369         * invoke.texi: Likewise.
8370         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
8371         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
8372         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
8373         GCC_pop_shmedia_regs_nofpu): New global symbols.
8374         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
8375         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
8376         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
8377         compact function with nonlocal labels.
8378         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
8379         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
8380         (initial_elimination_offset): Account for their stack space.
8381         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
8382         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
8383         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
8384         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
8385         least one of the operands to be a register.
8386         (movv2sf): Likewise.  Renamed to movv2sf_i.
8387         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
8388         prepare_move_operands() before emitting SHmedia insns.
8389         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
8390         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
8391         Don't save nor initialize r12.  Don't mis-align the stack.
8392         Pad the code with a nop.
8393         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
8394         stack.
8395         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
8396         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
8397         [__SHMEDIA__]: Implement.
8398         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
8399         * config/sh/sh.md: Set latency of `pt' closer to reality.
8400         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
8401         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
8402         Set move, load and store type attributes.
8403         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
8404         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
8405         profiling.
8406         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
8407         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
8408         * config/sh/sh.c (sh_media_register_for_return): New function.
8409         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
8410         branch-target register.
8411         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
8412         * config/sh/sh.md (return_media_i): Use any call-clobbered
8413         branch-target register.
8414         (return_media): If r18 wasn't copied in the prologue, copy it
8415         here.
8416         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
8417         Clear class FP0_REGS.
8418         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
8419         from elf.h.
8420         2001-03-08  DJ Delorie  <dj@redhat.com>
8421         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
8422         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
8423         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
8424         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
8425         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
8426         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
8427         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
8428         return value correctly for call_cookie.
8429         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
8430         * config/sh/crt1.asm (start): Modified so as to call
8431         ___setup_argv_and_call_main.
8432         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
8433         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
8434         SHmedia mode.
8435         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
8436         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
8437         (STRIP_NAME_ENCODING): Use it.
8438         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
8439         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
8440         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
8441         prepare_scc_operands().
8442         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
8443         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
8444         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
8445         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
8446         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
8447         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
8448         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
8449         used in shcompact_incoming_args.
8450         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
8451         change.
8452         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
8453         mode.
8454         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
8455         Adjust accordingly.
8456         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
8457         Simplify.  Adjust.  Add sanity check.
8458         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
8459         FPU_SINGLE_BIT.
8460         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
8461         TARGET_SHCOMPACT.
8462         (udivsi3, divsi3): Use them.
8463         (force_mode_for_call): New insn.
8464         (call, call_value, sibcall_value): Emit it before SHcompact
8465         calls.
8466         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
8467         * config/sh/sh.md (call, call_value, sibcall): Make sure the
8468         call cookie is non-NULL before taking its value.
8469         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
8470         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
8471         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
8472         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
8473         block.
8474         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
8475         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
8476         temporary for stack adjusts.  Use MACL and MACH to pass
8477         arguments to shcompact_incoming_args.
8478         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
8479         clobber r1.
8480         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
8481         (nested_trampoline): Load static chain address into r1.
8482         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
8483         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
8484         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
8485         fp_arith_reg_operand().
8486         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
8487         * config/sh/sh.md (casesi): Sign-extend the first two operands,
8488         and use signed compares for them.
8489         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
8490         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
8491         ones properly aligned.
8492         (find_barrier): Account for extra alignment needed for 8-byte wide
8493         constants.
8494         (machine_dependent_reorg): Require a label for the second 4-byte
8495         constant after an 8-byte one.
8496         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
8497         change.
8498         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
8499         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
8500         last_float when switching float modes.
8501         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
8502         auto-increment for general-purpose registers.
8503         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
8504         result.
8505         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
8506         for stack adjust.
8507         * config/sh/sh.c (sh_builtin_saveregs): Support using all
8508         registers for varargs.
8509         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
8510         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
8511         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
8512         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
8513         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
8514         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
8515         call_cookie accordingly.
8516         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
8517         (SHCOMPACT_BYREF): Likewise.
8518         (SHCOMPACT_FORCE_ON_STACK): New macro.
8519         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
8520         (sh_builtin_saveregs): Likewise.
8521         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8522         shcompact_incoming_args): Use new shift values.  Support
8523         sequences of consecutive and non-consecutive pushes/pops.
8524         * config/sh/sh.md (return): Don't explicitly use PR_REG.
8525         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
8526         * config/sh/sh.h (TEXT_SECTION): Define.
8527         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
8528         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
8529         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
8530         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
8531         return values on FPU-enabled SHmedia.
8532         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
8533         FPU-enabled SHmedia.
8534         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
8535         value is returned in a non-FP reg and is not returned by
8536         reference.
8537         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
8538         jump_ind.
8539         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
8540         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
8541         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
8542         quad-aligned to be passed by callee-copy reference.
8543         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
8544         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
8545         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
8546         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
8547         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
8548         copying low-numbered FP regs to r7 and r8.
8549         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
8550         FP regs to general-purpose regs only if the copy was passed on the
8551         stack.
8552         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
8553         copying FP reg to r9.
8554         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
8555         copy FP regs to general-purpose regs only in outgoing calls.
8556         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
8557         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
8558         HOST_WIDE_INT.
8559         * config/sh/sh.h (struct sh_args): Document all fields.
8560         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
8561         passed partially on the stack should not consider making
8562         sibcalls.
8563         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
8564         stack_regs only for incoming calls.  When passing FP args,
8565         make sure there are FP regs available before modifying
8566         call_cookie.
8567         (SHCOMPACT_BYREF): Pass double args in general-purpose
8568         registers by reference.
8569         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
8570         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
8571         attempt to generate sibcalls if the caller got any arguments
8572         by reference.
8573         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
8574         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
8575         to 8-byte boundaries.
8576         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
8577         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
8578         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
8579         stored in the stack.
8580         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
8581         for the offsets to have the ISA bit set.
8582         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
8583         invocation.  Use beq instead of bgt to mark end of sequence of
8584         loads.
8585         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
8586         bgt to mark end of sequence of stores.
8587         * config/sh/sh.c (arith_operand): Don't check whether
8588         CONST_OK_FOR_J for now.
8589         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
8590         instead of long for conversion.
8591         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
8592         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
8593         before passing it to fprintf.
8594         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
8595         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
8596         Call set_fpscr before reading/writing SR.
8597         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
8598         Call set_fpscr.
8599         * config/sh/lib1funcs.asm: Add `.align 2' directives before
8600         SHmedia code.
8601         (FMOVD_WORKS): Define on SH5 with FPU.
8602         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
8603         setting.
8604         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
8605         _fpscr_values.
8606         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
8607         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
8608         address.
8609         (ia_main_table): Ditto.
8610         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
8611         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8612         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
8613         the definitions from sh.h.
8614         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
8615         TARGET_SH5.
8616         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
8617         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
8618         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
8619         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
8620         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
8621         Increment LABEL_NUSES.
8623         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
8624         TARGET_SH5.
8625         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
8626         defined.
8627         * config/sh/elf.h (SIZE_TYPE): Likewise.
8628         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
8629         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8630         shcompact_incoming_args): Load switch table addresses using
8631         datalabel.
8632         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
8633         (NO_BUILTIN_SIZE_TYPE): Define.
8634         (SIZE_TYPE): Don't define.
8635         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
8636         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
8637         definition of __SH5__=32 for -m5-compact-nofpu.
8638         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
8639         ADDR_DIFF_VEC.
8640         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
8641         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
8642         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
8643         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
8644         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
8645         (INSN_LENGTH_ALIGNMENT): Likewise.
8646         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
8647         * config/sh/sh.md (call, call_value, sibcall): Simplify
8648         copying of non-branch-target register.
8649         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
8650         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
8651         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
8652         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
8653         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
8654         floating-point values as structs.
8655         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
8656         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
8657         general-purpose register.
8658         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
8659         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
8660         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
8661         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
8662         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
8663         (ENCODE_SECTION_INFO): Enclose variables and constants in
8664         DATALABEL unspecs.
8665         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
8666         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
8667         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
8668         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
8669         only for LABEL_REFs.  For SYMBOL_REFs, prepend
8670         SH_DATALABEL_ENCODING to the symbol name.
8671         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
8672         convert_mode().
8673         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
8674         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
8675         UNSPEC_DATALABEL.
8676         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
8677         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
8678         (DATALABEL_REF_P): Don't require CONST.
8679         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
8680         REL label.
8681         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
8682         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
8683         right.
8684         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
8685         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
8686         Use shallow_copy_rtx and PUT_MODE to change the mode of
8687         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
8688         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
8689         on SHmedia using GENERAL_REGs.
8690         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
8691         bltu_media_i): Fix reversion of conditions.
8692         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
8693         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
8694         * config/sh/sh.c (output_far_jump): Save r13 in macl.
8695         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
8696         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
8697         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
8698         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
8699         (GCC_nested_trampoline): Likewise.
8700         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
8701         * config/sh/sh.c (gen_datalabel_ref): Define.
8702         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
8703         (INITIALIZE_TRAMPOLINE): Likewise.
8704         (TRAMPOLINE_ADJUST_ADDRESS): Define.
8705         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
8706         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
8707         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
8708         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
8709         (ic_invalidate): Adjust for SH5.
8710         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
8711         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
8712         _nested_trampoline.
8713         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
8714         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
8715         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
8716         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
8717         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
8718         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
8719         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
8720         * config/sh/sh.c (target_reg_operand): Match only target-branch
8721         registers and pseudos that aren't virtual registers.
8722         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
8723         Copy operands that don't match target_reg_operand to pseudos.
8724         (call_media, call_value_media, sibcall_media): Use
8725         target_reg_operand instead of target_operand.
8726         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
8727         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
8728         * config/sh/sh.c (target_reg_operand): Match hardware registers
8729         other than branch-target registers.
8730         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
8731         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
8732         (fpscr_values) [SH5 == 32]: Define.
8733         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
8734         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
8735         Handle function addresses coming in SUBREGs.
8736         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
8737         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8738         shcompact_return_trampoline): Use datalabel where appropriate.
8739         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
8740         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
8741         general-purpose register to copy one branch-target register to
8742         another.
8743         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
8744         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
8745         SYMBOL_REFs with VOIDmode.
8746         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
8747         bltu_media_i): New insns.
8748         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
8749         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
8750         (INIT_CUMULATIVE_ARGS): Likewise.
8751         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
8752         * machmode.def (V16SFmode): New mode.
8753         * c-common.c (type_for_mode): Support V2SF and V16SF.
8754         * tree.c (build_common_tree_nodes_2): Likewise.
8755         * tree.h (tree_index): Likewise.
8756         * calls.c (emit_call_1): Take args_so_far.  Adjust all
8757         callers.  Introduce CALL_POPS_ARGS.
8758         * tm.texi (CALL_POPS_ARGS): Document.
8759         * config/sh/crt1.asm: Implement in SHmedia mode.
8760         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
8761         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
8762         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
8763         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
8764         Implement divsi and udivsi in SHmedia mode.  Introduce
8765         SHcompact trampolines.
8766         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
8767         only in SHmedia64.
8768         (regno_reg_class): Rewrite.
8769         (fp_reg_names): Remove.
8770         (sh_register_names, sh_additional_register_names): New.
8771         (print_operand): Added `u'.  Support SUBREGs in addresses.
8772         Add parentheses around shifted CONSTs.
8773         (output_file_start): Output .mode and .abi directives.
8774         (shiftcosts, addsubcosts, multcosts): Adjust.
8775         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
8776         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
8777         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
8778         bytes, not registers.  Take into account the need for the
8779         SHcompact incoming args trampoline.  Adjust all callers.
8780         (sh_expand_prologue): Take stack_regs into account.  Call
8781         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
8782         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
8783         stack aligned as per SH5 ABI.
8784         (sh_builtin_saveregs): Support SH5 ABI.
8785         (sh_build_va_list, sh_va_start): Likewise.
8786         (initial_elimination_offset): Take alignment into account.
8787         Compute location of PR according to the SH5 stack frame.
8788         (arith_reg_operand): Reject branch-target registers.
8789         (shmedia_6bit_operand): New.
8790         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
8791         (target_reg_operand): Match DImode only.  Accept SUBREGs.
8792         (target_operand): New.
8793         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
8794         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
8795         SIBCALL_REGS for SHmedia.
8796         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
8797         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
8798         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
8799         (TARGET_SWITCHES): New SH5 flags.
8800         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
8801         VALID_REGISTER_P to disable unsupported registers.
8802         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
8803         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
8804         (FUNCTION_ARG_PADDING): Define.
8805         (FASTEST_ALIGNMENT): Adjust.
8806         (SH_REGISTER_NAMES_INITIALIZER): New.
8807         (sh_register_names): Declare.
8808         (DEBUG_REGISTER_NAMES): Define.
8809         (REGISTER_NAMES): Define based on sh_register_names.
8810         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
8811         (sh_additional_register_names): Declare.
8812         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
8813         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
8814         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
8815         (REGISTER_NATURAL_MODE): Define.
8816         (FIRST_PSEUDO_REGISTER): Adjust.
8817         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
8818         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
8819         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
8820         (VECTOR_MODE_SUPPORTED_P): Define.
8821         (REG_CLASS_CONTENTS): Adjust.
8822         (SMALL_REGISTER_CLASSES): Adjust.
8823         (REG_ALLOC_ORDER): Adjust.
8824         (INDEX_REG_CLASS): Adjust.
8825         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
8826         (CONST_OK_FOR_LETTER_P): Adjust.
8827         (PREFERRED_RELOAD_CLASS): Adjust.
8828         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
8829         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
8830         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
8831         (FIRST_FP_PARM_REG): Adjust.
8832         (CALL_POPS_ARGS): Define.
8833         (FUNCTION_ARG_REGNO_P): Adjust.
8834         (struct sh_args): New fields.
8835         (GET_SH_ARG_CLASS): Adjust.
8836         (INIT_CUMULATIVE_ARGS): Adjust.
8837         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
8838         (FUNCTION_ARG_ADVANCE): Adjust.
8839         (FUNCTION_ARG): Adjust.
8840         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
8841         (FUNCTION_ARG_CALLEE_COPIES): Define.
8842         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
8843         (STRICT_ARGUMENT_NAMING): Define.
8844         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
8845         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
8846         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
8847         (SETUP_INCOMING_VARARGS): Adjust.
8848         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
8849         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
8850         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
8851         (SUBREG_OK_FOR_INDEX_P): Adjust.
8852         (EXTRA_CONSTRAINT_S): Update.
8853         (EXTRA_CONSTRAINT_T): New.
8854         (EXTRA_CONSTRAINT): Adjust.
8855         (GO_IF_LEGITIMATE_INDEX): Adjust.
8856         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
8857         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
8858         (MOVE_MAX): Adjust.
8859         (MAX_MOVE_MAX): Define.
8860         (Pmode): Adjust.
8861         (CONST_COSTS): Adjust.
8862         (REGISTER_MOVE_COST): Adjust.
8863         (BRANCH_COST): Adjust.
8864         (TEXT_SECTION_ASM_OP): Adjust.
8865         (DBX_REGISTER_NUMBER): Adjust.
8866         (ASM_OUTPUT_DOUBLE_INT): New.
8867         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
8868         (PREDICATE_CODES): Adjust.
8869         (PROMOTE_MODE): Adjust.
8870         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
8871         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
8872         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
8873         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
8874         (DR0_REG, DR2_REG, DR4_REG): Renumber.
8875         (TR0_REG, TR1_REG, TR2_REG): New.
8876         (XD0_REG): Renumber.
8877         (UNSPEC_COMPACT_ARGS): New.
8878         (type): Added pt and ptabs.
8879         (length): Default to 4 on SHmedia.  Default pt length to 12
8880         and     20 on SHmedia32 and SHmedia64, respectively.
8881         (pt): New function unit.
8882         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
8883         Add whitespace between operands of SHmedia instructions.
8884         (movdicc): Fix.
8885         (adddi3_media, addsi3_media): Adjust constraints.
8886         (subsi3) [SHmedia]: Force operand 1 into a register.
8887         (udivsi3_i1_media, udivsi3_i4_media): New.
8888         (udivsi3): Support SHmedia.
8889         (divsi3_i1_media, divsi3_i4_media): New.
8890         (divsi3): Support SHmedia.
8891         (anddi3, iordi3, xordi3): Adjust constraints.
8892         (zero_extendhidi2, zero_extendqidi2): New.
8893         (extendsidi2, extendhidi2, extendqidi2): New.
8894         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
8895         (pop_e, pop_fpul, pop_4): Likewise.
8896         (movsi_media): Support FP and BT registers.
8897         (movsi_media_nofpu): New.  Adjust splits to DImode.
8898         (lduw, ldub): Renamed to zero_extend* above.
8899         (movqi_media): Fix typo.
8900         (movdi_media): Support FP and BT registers.
8901         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
8902         (movdi_const_32bit): New.
8903         (shori_media): Require immediate operand.  Use `u' for output.
8904         (movdf_media, movsf_media): Simplified.
8905         (movdf_media_nofpu, movsf_media_nofpu): New.
8906         (movdf, movsf): Adjust
8907         (movv2sf, movv2sf, movv16sf): New.
8908         (beq_media, beq_media_i): Adjust constraints.  Don't use
8909         scratch BT register.
8910         (bne_media, bne_media_i): Likewise.
8911         (bgt_media, bgt_media_i): Likewise.
8912         (bge_media, bge_media_i): Likewise.
8913         (bgtu_media, bgtu_media_i): Likewise.
8914         (bgeu_media, bgeu_media_i): Likewise.
8915         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
8916         bunordered): Emit jump insn.  Force operands to registers when
8917         needed.
8918         (jump_media, jump): Simplify.
8919         (call_compact, call_compact_rettramp): New.
8920         (call_value_compact, call_value_compact_rettramp): New.
8921         (call_media, call_value_media): Simplify.
8922         (sibcall_compact, sibcall_media): New.
8923         (call, call_value): Adjust for SHmedia and SHcompact.
8924         (sibcall, sibcall_value, untyped_call): Likewise.
8925         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
8926         (indirect_jump): Adjust for SHmedia.
8927         (casesi_jump_media): New.
8928         (nop): Re-enable for SHmedia.
8929         (call_site): Restrict to SH1.
8930         (casesi): Adjust for SHmedia.
8931         (casesi_shift_media, casesi_load_media): New.
8932         (return): Explicitly use PR register.  Call return trampoline
8933         on SHcompact.
8934         (return_i): Explicitly use PR register.
8935         (shcompact_return_tramp, shcompact_return_tramp_i): New.
8936         (return_media): Adjust.
8937         (shcompact_incoming_args): New.
8938         (epilogue): Adjust.
8939         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
8940         (movstrsi): Disable on SH5.
8941         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
8942         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
8943         (subsf3, subsf3_media): Likewise.
8944         (mulsf3, mulsf3_media, mac_media): Likewise.
8945         (divsf3, divsf3_media): Likewise.
8946         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
8947         (floatsisf2, fux_truncsfsi2): Likewise.
8948         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
8949         constraints.
8950         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
8951         (cmpunsf_media, cmpsf): Likewise.
8952         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
8953         (abssf2, abssf2_media): Likewise.
8954         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
8955         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
8956         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
8957         (floatsidf2, fix_truncdfsi2): Likewise.
8958         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
8959         constraints.
8960         (cmpeqdf_media, cmpgtdf_media): Likewise.
8961         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
8962         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
8963         (absdf2, absdf2_media): Likewise.
8964         (extendsfdf2, extendsfdf2_media): Likewise.
8965         (truncsfdf2, truncsfdf2_media): Likewise.
8966         * config/sh/sh64.h: New file.
8967         * config/sh/t-sh64: New file.
8968         * config/sh/shmedia.h: New file.
8969         * config/sh/ushmedia.h: New file.
8970         * config/sh/sshmedia.h: New file.
8971         * configure.in: Added sh64-*-elf.
8972         * configure: Rebuilt.
8973         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
8974         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
8975         (reg_class_from_letter): Use `b' for TARGET_REGS.
8976         (print_operand): Support `%M', `%m', `AND' and
8977         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
8978         (andcosts): Adjust for SHmedia.
8979         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
8980         Likewise.
8981         (target_reg_operand): New function.
8982         * config/sh/sh-protos.h (target_reg_operand): Declare.
8983         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
8984         FP registers on SH5.
8985         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
8986         on SH4.
8987         (TARGET_REGISTER_P): New macro.
8988         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
8989         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
8990         (EXTRA_CONSTRAINT_S): New macro.
8991         (EXTRA_CONSTRAINT): Adjust.
8992         (FLOAT_TYPE_SIZE): Define to 32.
8993         (Pmode): DImode on SHmedia.
8994         (CONST_COSTS): Adjust for SHmedia literals.
8995         (PREDICATE_CODES): Added target_reg_operand.
8996         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
8997         * config/sh/sh.md: Remove all attrs from SHmedia insns.
8998         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
8999         (cmpdi): Accept SHmedia.
9000         (movdicc_false, movdicc_true): New insns.
9001         (movdicc): New expand.
9002         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
9003         no_new_pseudos.
9004         (addsi3_media): Match `S' constraint.
9005         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
9006         (negdi2): Expand for SHmedia.
9007         (one_cmpldi2): New expand.
9008         (zero_extendsidi2): Change from expand to insn.
9009         (extendsidi2): Add constraints.
9010         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
9011         LD/ST address.  Fix SI immediate loading split.
9012         (movhi_media, movqi_media, lduw, ldub): New insns.
9013         (movhi, movqi): Accept SHmedia.
9014         (shori_media, movdi_media): Relax input constraints.  Split
9015         symbolic constants.
9016         (movdf_media, movsf_media): New insn.  New split to movdi.
9017         (movdf, movsf): Match on SHmedia.
9018         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
9019         bgeu_media): New insns and splits.  New insns with `_i' suffix.
9020         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
9021         (bunordered): New expand.
9022         (jump_compact): Renamed from `jump'.
9023         (jump_media): New insn.
9024         (jump): New expand.
9025         (call_media, call_value_media): New insns.
9026         (call, call_value): Adjust.
9027         (indirect_jump_compact): Renamed from `indirect_jump'.
9028         (indirect_jump_media): New insn.
9029         (indirect_jump): New expand.
9030         (untyped_call, return): Accept SHmedia.
9031         (return_media): New insn.
9032         (prologue, epilogue, blockage): Accept SHmedia.
9033         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
9034         (sunordered): New expand.
9035         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
9036         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
9037         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
9038         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
9039         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
9040         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
9041         abssf2_media): New insns.
9042         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
9043         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
9044         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
9045         floatdidf2, floatsidf2_media, fix_truncdfdi2,
9046         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
9047         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
9048         absdf2_media): New insns.
9049         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
9050         (extendsfdf2_media, truncdfsf2_media): New insns.
9051         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
9052         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
9053         * config/sh/sh.h (CONST_OK_FOR_J): Document.
9054         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
9055         * config/sh/sh.md (adddi3): New expand.
9056         (adddi3_media, adddi3z_media): New insns.
9057         (adddi3_compact): Renamed from adddi3.
9058         (addsi3_media): Use add.l r63 to add constant zero.
9059         (subdi3): New expand.
9060         (subdi3_media): New insn.
9061         (subdi3_compact): Renamed from subdi3.
9062         (mulsidi3): New expand.
9063         (mulsidi3_media): New insn.
9064         (mulsidi3_compact): Renamed from mulsidi3.
9065         (umulsidi3): New expand.
9066         (umulsidi3_media): New insn.
9067         (umulsidi3_compact): Renamed from umulsidi3.
9068         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
9069         (ashlsi3, ashrsi3, lshrsi3): Use them.
9070         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
9071         (ashldi3, ashrdi3, lshrdi3): Use them.
9072         (zero_extendsidi2): New expand.
9073         (extendsidi2): New insn.
9074         (movsi_media): New insn.  Split to movdi to load constants.
9075         (movsi): Enable for shmedia.
9076         (movdi_media): New insn.  Use shori_media to load wide constants.
9077         (short_media): New insn.
9078         (movdi): Enable for shmedia.
9079         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
9080         * config/sh/sh.h (CPP_SPEC): Added `m5'.
9081         (SUBTARGET_CPP_SPEC): Added `!m5'.
9082         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
9083         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
9084         to all other SH variants.
9085         (TARGET_DEFAULT): Set to SH1_BIT.
9086         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
9087         (BITS_PER_WORD): Raise to 64 on shmedia.
9088         (MAX_BITS_PER_WORD): Change to 64.
9089         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
9090         (INT_TYPE_SIZE): Keep as 32.
9091         (UNITS_PER_WORD): Raise to 8 on shmedia.
9092         (MIN_UNITS_PER_WORD): Keep as 4.
9093         (POINTER_SIZE): Raise to 64 on shmedia.
9094         (CONST_OK_FOR_J): New macro.
9095         (CONST_OK_FOR_LETTER_P): Use it.
9096         (processor_type): Add PROCESSOR_SH5.
9097         * config/sh/sh.md: Conditionalize all expands, insns and
9098         splits to TARGET_SH1.
9099         (cpu): Added sh5.
9100         (addsi3_compact): Renamed from...
9101         (addsi3): Now an expand.
9102         (addsi3_media, subsi3_media): New insns.
9103         (subsi3): Don't negate constants with SHmedia.
9105         * hooks.c: New file.
9106         * hooks.h: New file.
9107         * Makefile.in (HOOKS_H): New.
9108         (TARGET_DEF_H): Added $(HOOKS_H).
9109         (OBJS): Added hooks.o.
9110         (cfgcleanup.o, bb-reorder.o): Added target.h.
9111         (hooks.o): Added dependencies.
9112         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
9113         (TARGET_INITIALIZER): this.
9114         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
9115         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
9116         * bb-reorder.c: Include target.h.
9117         (reorder_basic_blocks): Skip if cannot modify jumps.
9118         * cfgcleanup.c: Include target.h.
9119         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
9121 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
9123         * config/mips/mips.md (casesi_internal, casesi_internal_di):
9124         Protect jump delay slot instructions with .set noreorder and
9125         .set nomacro.
9127 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
9129         * config/mips/mips.md (casesi_internal_di): Calculate
9130         the index into the target offset table correctly.
9132 2002-02-08  Richard Henderson  <rth@redhat.com>
9134         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
9135         * final.c (output_addr_const): Accept and discard SUBREG.
9136         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
9137         mark them unknown instead.
9138         (simplify_subtraction): Handle RTX_UNKNOWN.
9139         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
9141 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
9143         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
9145 2002-02-08  Richard Henderson  <rth@redhat.com>
9147         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
9149 2002-02-08  Andreas Jaeger  <aj@suse.de>
9151         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
9152         * config/i386/t-linux64: New file.
9154 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
9156         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
9157         * c-parse.in (compstmt): Clear last_expr_type.
9159 2002-02-07  Richard Henderson  <rth@redhat.com>
9161         * loop.c (strength_reduce): Sink final_value when not
9162         eliminating a biv.
9164 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
9166         * config/sparc/freebsd.h: Fix mismatched spec {.
9168 2002-02-07  Richard Henderson  <rth@redhat.com>
9170         * cfgrtl.c: Include recog.h and insn-config.h.
9171         (keep_with_call_p): Fix general_operand invocation.
9172         * Makefile.in (cfgrtl.o): Update dependencies.
9174 2002-02-07  Kazu Hirata  <kazu@hxi.com>
9176         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
9177         comment.  Accept HImode only if TARGET_H8300.
9179 2002-02-07  Eric Christopher  <echristo@redhat.com>
9181         * config/mips/crtn.asm: Cleanup #ifdefs.
9183 2002-02-07  Eric Christopher  <echristo@redhat.com>
9185         * config/mips/crti.asm: Add changes for mips16. mips16 uses
9186         register 7 as RA instead of $31.
9187         * config/mips/crtn.asm: Ditto.
9188         * config/mips/mips.c (mips_move_2words): Add case for
9189         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
9190         (compute_frame_size): Fix typo.
9191         (save_restore_insns): Ditto.  Make documentation about using
9192         register $7 as return register more precise.
9193         (mips_expand_epilogue): Fix comment. Add code to work around not
9194         being able to add to the stack pointer directly.
9195         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
9196         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
9197         epilogue.
9199 2002-02-07  Tom Rix  <trix@redhat.com>
9201         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
9202         immediates in ldu and stdu DS opcode field.
9203         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
9204         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
9205         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
9207 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
9209         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
9210         offset for stack bias.
9212 2002-02-07  H.J. Lu <hjl@gnu.org>
9214         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
9216 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
9218         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
9220 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
9222         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
9223         * i386.c (x86_order_regs_for_local_alloc): New global function.
9224         * i386.h (REG_ALLOC_ORDER): CLeanup.
9225         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
9227 2002-02-07  Richard Henderson  <rth@redhat.com>
9229         PR optimization/2463
9230         * alias.c (find_base_value): Recall base values for fixed hard regs.
9231         * loop.c (loop_regs_update): Don't use single_set on non-insns.
9233 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
9235         * config/mips/mips.md (define_delay) [mips16]: Adjust required
9236         length.
9238 2002-02-06  Richard Henderson  <rth@redhat.com>
9240         PR c/5609
9241         * stmt.c (resolve_operand_name_1): Take more care with mixed
9242         named and unnamed operands.
9244 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
9245             Jan Hubicka  <jh@suse.cz>
9247         * loop.c (remove_constant_addition): Avoid clobbering a shared
9248         CONST expression.
9250 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
9252         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
9253         * config/s390/t-linux64: New file.
9254         * config/s390/libgcc-glibc.ver: New file.
9256 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
9258         * config/s390/linux64.h: Delete file.
9259         * config/s390/s390x.h: New file.
9260         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
9261         as target header file.
9262         * config/s390/linux.h (TARGET_VERSION): Define depending on
9263         DEFAULT_TARGET_64BIT.
9264         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
9265         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
9266         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
9267         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
9268         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
9269         (EXTRA_SPEC): New define.
9270         * config/s390/s390.h (TARGET_VERSION): Define depending on
9271         DEFAULT_TARGET_64BIT.
9272         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
9274 2002-02-06  Jason Merrill  <jason@redhat.com>
9276         * c-decl.c (finish_function): Warn about a non-void function with
9277         no return statement and no abnormal exit.
9278         (current_function_returns_abnormally): New variable.
9279         (start_function): Clear it.
9280         (struct c_language_function): Add returns_abnormally.
9281         (push_c_function_context): Save it.
9282         (pop_c_function_context): Restore it.
9283         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
9284         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
9285         an explicit return type.
9286         * c-tree.h: Declare current_function_returns_abnormally.
9287         (C_FUNCTION_IMPLICIT_INT): New macro.
9288         * c-typeck.c (build_function_call): Set it.
9289         (c_expand_return): Set current_function_returns_value even if the
9290         value is erroneous.
9292 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9294         PR c/5420:
9295         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
9296         unsafe for reevaluation.
9298 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9300         PR c/5482:
9301         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
9302         EXPR_STMT, but COMPOUND_STMT, recurse into it.
9304 2002-02-06  Richard Henderson  <rth@redhat.com>
9306         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
9307         be a general_operand.  Dest for function value must be a pseudo.
9309 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
9311         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
9312         as SYMBOL_REFs from the constant pool.
9314 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
9316         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
9317         passed by invisible reference.
9319 2002-02-05  Richard Henderson  <rth@redhat.com>
9321         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
9323 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
9325         Implement using "base addresses" in insn operands as default.
9326         * config/mmix/mmix.c (mmix_conditional_register_usage): if
9327         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
9328         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
9329         used to read the rtx value.
9330         (mmix_target_asm_function_epilogue): Fix spacing.
9331         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
9332         (mmix_legitimate_address): Ditto.
9333         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
9334         should be loaded with a GETA insn.  Don't allocate needless extra
9335         char for nul termination and fix misleading comment.
9336         (mmix_print_operand_address): Handle constants if
9337         TARGET_BASE_ADDRESSES.
9338         (mmix_output_register_setting): Use base addressing if
9339         TARGET_BASE_ADDRESSES and the number of insns is 3.
9340         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
9341         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
9342         to use R as constraint, add LDA to match s.
9343         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
9344         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
9345         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
9346         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
9347         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
9348         order with other fixed registers.
9349         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
9350         other parameter/call-clobbered registers.
9351         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
9352         -mbase-addresses, -mno-base-addresses.
9353         (MMIX Options): Ditto.
9355 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9357         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
9359 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
9361         * config/rs6000/altivec.h: Change elem to _S_elem.
9363 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
9365         * config/netbsd.h (WCHAR_TYPE): Define.
9366         (WCHAR_TYPE_SIZE): Ditto.
9367         (WINT_TYPE): Ditto.
9368         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
9369         (WCHAR_UNSIGNED): Ditto.
9370         (WCHAR_TYPE_SIZE): Ditto.
9371         (WINT_TYPE): Ditto.
9372         * config/arm/netbsd.h: Likewise.
9373         * config/i386/netbsd-elf.h: Likewise.
9374         * config/i386/netbsd.h: Likewise.
9375         * config/m68k/netbsd-elf.h: Likewise.
9376         * config/m68k/netbsd.h: Likewise.
9377         * config/ns32k/netbsd.h: Likewise.
9378         * config/sparc/netbsd.h: Likewise.
9379         * config/vax/netbsd.: Likewise.
9381 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
9383         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
9384         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
9385         (TARGET_INITIALIZER): this.
9386         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
9387         (BITFIELD_NBYTES_LIMITED): Markup fix.
9388         * tree.h (default_ms_bitfield_layout_p): Declare.
9389         (record_layout_info): Added prev_field.
9390         * tree.c (default_ms_bitfield_layout_p): New fn.
9391         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
9392         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
9393         * stor-layout.c: Include target.h.
9394         (start_record_layout): Initialize prev_field.
9395         (place_field): Handle MS bit-field layout, and disregard
9396         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
9397         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
9398         * Makefile.in (stor-layout.o): Adjust dependencies.
9400 2002-02-05  Jason Merrill  <jason@redhat.com>
9402         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
9404 2002-02-05  Andreas Jaeger  <aj@suse.de>
9406         * crtstuff.c: Fix comments.
9408 2002-02-05  Richard Henderson  <rth@redhat.com>
9410         PR fortran/3393
9411         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
9412         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
9414         PR fortran/3392
9415         * config/mips/mips.c (function_arg): Handle TImode.
9416         (function_arg_advance): Likewise.
9418 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9420         * config/rs6000/altivec.h (vec_step_help): Rename to
9421         __vec_step_help.
9423 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9425         * config/rs6000/altivec.h: Fix typos.
9427 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
9429         * config/arm/netbsd.h: Correct a comment.
9431 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9433         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
9434         building void typed builtins.
9436         * config/rs6000/altivec.h (vec_ld*): Fix typos.
9437         (vec_step): Implement for C++.
9439 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9441         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
9443 2002-02-04  Richard Henderson  <rth@redhat.com>
9445         * combine.c (nonzero_bits): Re-introduce special case for
9446         sp/fp/ap wrt REGNO_POINTER_ALIGN.
9448 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9450         * doc/extend.texi: Warn about unsupported usage of altivec
9451         builtins.
9453         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
9454         (altivec_predicate_*): New.
9456         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
9457         Add C++ version of vec_*() functions.
9459         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
9460         (bdesc_2arg): Remove altivec predicates.
9461         (altivec_expand_builtin): Handle predicates.
9462         (altivec_init_builtins): Handle predicates.
9463         (altivec_expand_predicate_builtin): New.
9465 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9467         * pa.c (DO_FRAME_NOTES): Move forward.
9468         (store_reg): Revise handling of frame notes.
9469         (load_reg): Likewise.
9470         (set_reg_plus_d): Likewise.
9471         (hppa_expand_prologue): Likewise.
9472         (hppa_expand_epilogue): Likewise.
9474 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9476         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
9478 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
9480         PR c/4475, c++/3780:
9481         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
9482         * c-common.h (SWITCH_TYPE): Define.
9483         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
9484         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
9485         Rename spareness variable to sparseness.
9486         (expand_end_case_type): Renamed from expand_end_case, use orig_type
9487         if non-NULL instead of TREE_TYPE (orig_index).
9488         * tree.h (expand_end_case_type): Renamed from expand_end_case.
9489         (expand_end_case): Define using expand_end_case_type.
9490         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
9491         to expand_end_case_type.
9492         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
9494 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9496         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
9497         (BIGGEST_ALIGNMENT): Change to 128.
9499 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9501         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
9503 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9505         * pa.md (call_internal_reg_64bit): Remove unused variable.
9507 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
9509         * config/arm/arm.h (machine_function): Add uses_anonymous_args
9510         field.
9511         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
9512         * config/arm/arm.c (current_function_anonymous_args): Delete,
9513         replace uses with cfun->machine->uses_anonymous_args.
9514         (arm_reorg): Do not reset uses_anonymous_args.
9516         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
9517         any geenral register.
9519 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
9521         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
9522         the entry block.
9524 2002-02-04  Richard Henderson  <rth@redhat.com>
9526         * combine.c (force_to_mode): Remove STACK_BIAS code.
9527         (nonzero_bits): Likewise.  Replace sp/fp special case with
9528         REGNO_POINTER_ALIGN.
9530         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
9531         (HARD_FRAME_POINTER_REGNUM): New.
9532         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
9533         (FIXED_REGS, CALL_USED_REGS): Update.
9534         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
9535         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
9536         (HARD_REGNO_NREGS): Update for SFP.
9537         (STACK_POINTER_OFFSET): Include bias here ...
9538         (FIRST_PARM_OFFSET): ... not here.
9539         (STACK_BIAS): Remove.
9540         (INIT_EXPANDERS): New.
9541         (STARTING_FRAME_OFFSET): Do not include bias.
9542         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
9543         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
9544         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
9545         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
9546         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
9547         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
9548         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
9549         (MUST_SAVE_REGISTER): Likewise.
9550         (sparc_flat_function_prologue): Likewise.
9551         (sparc_flat_function_epilogue): Likewise.
9552         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
9553         (sparc_init_modes): SFP is GENERAL_REGS.
9554         (sparc_builtin_saveregs): SFP does not have bias applied.
9556 2002-02-04  Richard Henderson  <rth@redhat.com>
9558         * config/alpha/alpha.c (current_function_is_thunk): Don't check
9559         current_function_is_thunk.
9560         (alpha_sa_mask): Distinguish between current_function_is_thunk
9561         called from ASM_OUTPUT_MI_THUNK and not.
9562         (alpha_does_function_need_gp): Thunks always need gp.
9563         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9564         (alpha_output_mi_thunk_osf): New.
9565         * config/alpha/alpha-protos.h: Update.
9566         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
9568 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
9570         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
9571         function types, not when they're taken away.
9573 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
9575         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
9576         CODE_LABEL and jump table when replacing a table jump with a
9577         simple jump.
9579 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
9581         * config/s390/s390-protos.h (legitimize_la_operand,
9582         s390_secondary_input_reload_class, s390_plus_operand,
9583         s390_expand_plus_operand): Add prototypes.
9585         config/s390/s390.c (s390_secondary_input_reload_class,
9586         s390_plus_operand, s390_expand_plus_operand): New functions.
9588         (struct s390_address): New member 'pointer'.
9589         (s390_decompose_address): Compute it.
9590         (legitimate_la_operand_p): Use it.
9591         (legitimize_la_operand): New function.
9592         (movti, movdi, movdf splitters): Call it.
9594         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
9595         (PREDICATE_CODES): Add s390_plus_operand.
9597         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
9598         (la_ccclobber): Allow GENERAL_REGS as output operand.
9600         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
9601         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
9602         (*la_64, *la_31, reload_indi, reload_insi): ... these.
9604 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
9606         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
9607         register names for regular asm () construct.
9609 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
9611         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
9612         registers.
9614 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
9616         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
9617         pat for recog.
9619 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
9621         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
9622         constant pool to be identical by string address and index.
9624 2002-02-04  Anthony Green  <green@redhat.com>
9626         * output.h (SECTION_OVERRIDE): Define.
9627         * varasm.c (named_section): Obey SECTION_OVERRIDE.
9629 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
9631         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
9632         by existing arm*-*-netbsd* (a.out) target.
9633         (ns32k-*-netbsdelf*): Likewise.
9634         (sparc-*-netbsdelf*): Likewise.
9635         (vax-*-netbsdelf*): Likewise.
9637 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
9639         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
9640         headers and libobjc headers.
9642 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
9644         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
9645         (_mingw.h): Remove duplicate include.
9647 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
9649         * config.gcc: Set cpu_type to m68k for 68010, as well.
9650         (m68010-*-netbsdelf*): New...
9651         (m68k*-*-netbsdelf*): ...targets.
9652         * config/m68k/netbsd-elf.h: New file.
9654 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9656         * config/h8300/h8300.c (hand_list): Move inside function_arg.
9658 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9660         * config/h8300/h8300.c (h8_push_ops): Move inside
9661         h8300_init_once.
9662         (h8_pop_ops): Likewise.
9663         (h8_move_ops): Likewise.
9665 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9667         * config/h8300/h8300.c (os_task): Make it static.
9668         (monitor): Likewise.
9669         (pragma_saveall): Likewise.
9671 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
9673         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
9674         constant is a valid sign-extension for Pmode.
9676 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9678         * config/h8300/h8300.c: Fix formatting.
9680 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9682         * config/h8300/h8300.md: Fix formatting.
9684 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9686         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
9687         predicates of operands[1].  Split the patterns for each
9688         processor variant.
9690 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9692         * config/h8300/h8300.md (xor patterns): Tighten the predicates
9693         of operands[1] to register_operand.
9695 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
9697         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
9698         * cpphash.c (_cpp_init_hashtable): Similarly.
9699         * cppinit.c (cpp_create_reader): Default the signed_char flag.
9700         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
9701         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
9702         (cpp_handle_option): Handle the new options.
9703         * cpplex.c (cpp_interpret_charconst): Use new flag.
9704         * cpplib.h (struct cpp_options): New member signed_char.
9705         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
9706         (cpp_options): Handle -fsigned-char and -funsigned-char.
9707         (static_specs): Remove signed_char_spec.
9708         (do_spec1): Don't handle %c.
9709         * system.h: Poison SIGNED_CHAR_SPEC.
9710         * tradcif.y (yylex): Use flag_signed_char.
9711         * tradcpp.h (flag_signed_char): New.
9712         * tradcpp.c (flag_signed_char): New.
9713         (main): Handle new command-line options.
9714         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
9715 config:
9716         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
9717         * avr/avr.h: Remove old comments.
9718         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
9719         (CC1_SPEC): Pass -fsigned-char if -mic*.
9720         (SIGNED_CHAR_SPEC): Remove.
9721 doc:
9722         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
9724 2002-02-01  Eric Christopher  <echristo@redhat.com>
9726         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
9727         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
9728         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
9729         (ASM_OUTPUT_REG_POP): Ditto.
9731 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
9733         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
9734         patch.
9736 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
9738         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
9740 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
9742         PR c/5304:
9743         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
9744         unconditionally.
9746 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
9748         * cfganal.c: Include tm_p.h.
9749         (keep_with_call_p): Fix the test that determines if a register holds
9750         the return value of a call.
9752 2002-02-01  DJ Delorie  <dj@redhat.com>
9754         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
9755         we are given conflicting registers, switch to the other one we
9756         had allocated for us.
9757         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
9758         as TImode so we know when the "other" register is available.
9760 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
9762         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
9763         sparc/sparc_bi.h.
9765 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
9767         * cfganal.c (keep_with_call_p): New function.
9768         (flow_call_edges_add): Prevent splitting a block between a call and
9769         a single-set instruction that should be kept in the same block.
9771 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9773         * doc/install.texi (avr): Update outdated URL.
9775 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
9777         * config/stormy16/stormy16.md (pushqi): New.
9778         (popqi): New.
9779         (pushhi): New.
9780         (pophi): New.
9781         (movhi): Remove stack operands.
9782         (movqi): Likewise.
9783         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
9784         nonimmediate_nonstack_operand.
9785         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
9786         New.
9787         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
9788         New.
9790 2002-01-31  Jason Merrill  <jason@redhat.com>
9792         * Makefile.in (c-parse.c): Handle .output file.
9793         * objc/Make-lang.in (objc-parse.c): Likewise.
9795 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
9797         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
9798         the -me[lb] option is given.  Don't output the default flag
9799         twice.
9801 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
9803         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
9804         the primary source file; this has not been done yet.
9805         * c-decl.c (c_expand_body): Reset input_filename from
9806         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
9808 2002-01-31  Kazu Hirata  <kazu@hxi.com>
9810         * rtlanal.c (subreg_regno_offset): Do not use
9811         SUBREG_REGNO_OFFSET.
9812         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
9813         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
9815 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
9817         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
9818         version rather than GNATS version in --version output.
9820 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
9822         * ifcvt.c (noce_process_if_block): Make a copy of the destination
9823         when copying back from a temporary.
9825 2002-01-30  Richard Henderson  <rth@redhat.com>
9827         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
9828         and new_dest are the same.
9830 2002-01-30  Richard Henderson  <rth@redhat.com>
9832         PR opt/5076
9833         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
9834         * rtl.c (note_insn_name): Update.
9835         * emit-rtl.c (remove_unnecessary_notes): Kill it.
9836         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
9837         to perform loop rotation.
9838         (expand_exit_loop_top_cond): New.
9839         * tree.h (expand_exit_loop_top_cond): Declare it.
9840         * c-semantics.c (genrtl_while_stmt): Use it.
9841         (genrtl_for_stmt): Likewise.
9843 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
9845         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
9846         arguments to 64-bit boundaries on 64-bit ABIs.
9848 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
9850         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
9852 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
9854         * c-decl.c (grokdeclarator): Handle type being a typedef for an
9855         invalid type.
9857 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
9859         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
9860         * config/sparc/sparc_bi.h: Remove file.
9861         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
9863 2002-01-30  Richard Henderson  <rth@redhat.com>
9865         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
9867 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
9869         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
9871 2002-01-30  Jason Merrill  <jason@redhat.com>
9873         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
9874         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
9875         (reg_save): Use DW_CFA_offset_extended_sf instead.
9877         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
9879 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
9881         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
9882         in cselib_lookup.
9884 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
9886         * rs6000.md ("*call_value_local32"): Remove constraints.
9887         ("*call_value_local64"): Same.
9888         ("*call_value_indirect_nonlocal_aix32"): Same.
9889         ("*call_value_nonlocal_aix32"): Same.
9890         ("*call_value_indirect_nonlocal_aix64"): Same.
9891         ("*call_value_nonlocal_aix64"): Same.
9892         ("*call_value_nonlocal_sysv"): Same.
9894 2002-01-29  Richard Henderson  <rth@redhat.com>
9896         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
9898 2002-01-29  Richard Henderson  <rth@redhat.com>
9900         * expr.c (force_operand): Ignore flag_pic for detecting pic
9901         address loads.
9902         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
9903         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
9904         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
9905         instead of open-coded loop.
9906         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
9907         be fixed when in use.
9909 2002-01-29  Richard Henderson  <rth@redhat.com>
9911         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
9912         * sched-rgn.c (propagate_deps): Update them.
9913         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
9914         clobbers list when either gets too long.
9916 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
9918         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
9919         and INDEX_REGS the same as GENERAL_REGS.
9920         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
9922 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
9924         * tree.c (build_nonstandard_integer_type): Correct prototype.
9926 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
9928         * config/s390/s390.md (movstrsico, movstrdix_64,
9929         movstrsix_31): Remove, replace by ...
9930         (movstrdi_short, movstrsi_short, movstrdi_long,
9931         movstrsi_long): ... these.  New.
9932         (movstrdi, movstrsi): Adapt.
9934         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
9935         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
9936         Remove unnecessary CC clobber.
9937         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
9938         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
9940         (divmoddi4): Don't partially initialize TImode register.
9942 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
9944         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
9946 2002-01-29  Richard Henderson  <rth@redhat.com>
9948         * flow.c (print_rtl_and_abort): Remove.
9949         (print_rtl_and_abort_fcn): Remove.
9950         (verify_local_live_at_start): Use dump_bb instead.
9951         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
9952         (verify_wide_reg_1): Return 2 on mode test failure.
9954 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
9956         PR c/3325, c/3326, c/2511, c/3347
9957         * c-decl.c (enum_decl_context): Remove BITFIELD.
9958         (grokdeclarator): Take bitfield width as an input.
9959         Ensure bitfields are given the correct type.  Perform
9960         bitfield width validation with build_bitfield_integer_type
9961         rather than waiting for finish_struct.
9962         (grok_typename, grok_typename_in_parm_context, start_decl,
9963         push_parmdecl, grokfield, start_function): Update calls to
9964         grokdeclarator.
9965         (build_bitfield_integer_type): New function.
9966         (finish_struct): Move bitfield validation to grokdeclarator
9967         and build_bitfield_integer_type.
9968         * tree.c (build_nonstandard_integer_type): New function.
9969         * tree.h (build_nonstandard_integer_type): New prototype.
9970 objc:
9971         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
9973 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
9975         PR other/1502:
9976         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
9977         don't ignore unrecognized -W* options.
9978         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
9979         * cpplib.h (cpp_handle_option): Adjust prototype.
9980         * c-decl.c (c_decode_options): Pass 0 as last argument to
9981         cpp_handle_option.
9983         PR c/2896:
9984         * gcc.c (cpp_unique_options): Split from cpp_options.
9985         (cpp_options): Source cpp_unique_options.
9986         (default_compilers): Use cpp_unique_options instead of cpp_options
9987         when used together with cc1_options.
9988         (static_specs): Add cpp_unique_options.
9989         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
9990         when used together with cc1_options.
9992 2002-01-29  Kazu Hirata  <kazu@hxi.com>
9994         * config/h8300/h8300-protos.h: Update the prototype of
9995         output_a_shift.
9996         * config/h8300/h8300.c (output_a_shift): Remove an unused
9997         argument 'insn'.  Remove redundant code.
9998         * config/h8300/h8300.md: Adust to the new prototype of
9999         output_a_shift.
10001 2002-01-29  Kazu Hirata  <kazu@hxi.com>
10003         * config/h8300/h8300-protos.h: Update the prototypes of
10004         emit_a_rotate and expand_a_rotate.
10005         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
10006         first argument to 'enum rtx_code'.
10007         (expand_a_rotate): Likewise.
10009 2002-01-28  Kazu Hirata  <kazu@hxi.com>
10011         * config/h8300/h8300-protos.h: Update the prototype of
10012         output_simode_bld.
10013         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
10014         'log2'.
10015         * config/h8300/h8300.md: Adjust to the new prototype.
10017 2002-01-28  Kazu Hirata  <kazu@hxi.com>
10019         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
10020         redundant code.
10022 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10024         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
10025         is a fixed register before returning pic_offset_table_rtx.
10026         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
10027         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
10029 2002-01-28  Jason Merrill  <jason@redhat.com>
10031         * dwarf2.h: Sync with src version.
10033 2002-01-28  Paul Koning  <pkoning@equallogic.com>
10035         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
10036         BT_FN_VOID_PTR_VAR.
10037         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
10038         * doc/extend.texi (__builtin_prefetch): Update documentation:
10039         first argument is now const void ptr.
10041 2002-01-28  Kazu Hirata  <kazu@hxi.com>
10043         * config/h8300/h8300-protos.h: Remove an unused prototype.
10045 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
10047         * toplev.c (lang_independent_init): Round up identifier size.
10049 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
10051         * config.gcc: Revert previous change.
10053 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
10055         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
10057 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
10059         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
10060         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
10061         other non-elf netbsd config frags.
10062         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
10063         collect2 will does that.
10064         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
10065         shared-lib frobbing will work.
10067 2002-01-28  Kazu Hirata  <kazu@hxi.com>
10069         * config/h8300/h8300.h: Fix formatting.
10070         * config/h8300/h8300.md: Likewise.
10072 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
10074         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
10075         the old, removed AAA_standards fix.
10076         * fixinc/fixincl.x: Rebuilt.
10078 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
10080         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
10081         atexit call in crtbegin, hooked in after call to frame_dummy;
10082         register EH before registering __fini__start.
10084 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
10086         * config/rs6000/altivec.h: Remove spurious semicolons.
10088 2002-01-27  Kazu Hirata  <kazu@hxi.com>
10090         * config/h8300/h8300.md: Replace dead bit extraction patterns
10091         with ones that work.
10093 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10095         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
10096         if not STRICT_ALIGNMENT.
10097         * rtl.h (MEM_ALIGN): Likewise.
10099 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10101         * doc/invoke.texi (-fdump-translation-unit): Revert this
10102         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10104 2002-01-27  Kazu Hirata  <kazu@hxi.com>
10106         * config/h8300/h8300.md (define_constants): New.
10107         (anonymous patterns) Use defined constants appropriately.
10109 2002-01-27  Kazu Hirata  <kazu@hxi.com>
10111         * config/h8300/h8300.c (function_arg): Remove redundant code.
10113 2002-01-26  Richard Henderson  <rth@redhat.com>
10115         * sched-deps.c (reg_pending_uses_head): New.
10116         (reg_pending_barrier): Rename from reg_pending_sets_all.
10117         (find_insn_list): Don't mark inline.
10118         (find_insn_mem_list): Remove.
10119         (add_dependence_list, add_dependence_list_and_free): New.
10120         (flush_pending_lists): Replace only_write param with separate
10121         for_read and for_write parameters.  Update all callers.  Use
10122         add_dependence_list_and_free.
10123         (sched_analyze_1): Do not add reg dependencies here; just set
10124         the pending bits.  Use add_dependence_list.
10125         (sched_analyze_2): Likewise.
10126         (sched_analyze_insn): Replace schedule_barrier_found with
10127         reg_pending_barrier.  Add all dependencies for pending reg
10128         uses, sets, and clobbers.
10129         (sched_analyze): Don't add reg dependencies for calls, just
10130         set pending bits.  Use regs_invalidated_by_call.  Treat
10131         sched_before_next_call as a normal list, not a fake insn.
10132         (init_deps): No funny init for sched_before_next_call.
10133         (free_deps): Free pending mems lists.  Don't zero reg_last.
10134         (init_deps_global): Init reg_pending_uses.
10135         (finish_deps_global): Free it.
10136         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
10137         (find_insn_mem_list): Remove.
10138         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
10139         (propagate_deps): Use them.  Zero temp mem lists.
10141 2002-01-26  Richard Henderson  <rth@redhat.com>
10143         * Makefile.in (CRTSTUFF_CFLAGS): New.
10144         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
10145         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
10146         crtstuff.c instead of alpha assembly version.
10147         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
10148         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
10149         not FORCE_{INIT,FINI}_SECTION_ALIGN.
10150         (__do_global_dtors_aux): Mark used.
10151         (frame_dummy, __do_global_ctors_aux): Mark used.
10152         (fini_dummy, init_dummy): Remove.
10154         * config/alpha/crtbegin.asm: Remove file.
10155         * config/alpha/crtend.asm: Remove file.
10156         * config/alpha/t-crtbe: Remove file.
10157         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
10158         (LINK_EH_SPEC): New.
10160         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
10161         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
10162         calling constructors.
10163         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
10165         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
10166         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
10167         CRT_END_INIT_DUMMY hack.
10168         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
10169         FORCE_{INIT,FINI}_SECTION_ALIGN.
10171         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
10172         FORCE_{INIT,FINI}_SECTION_ALIGN.
10174         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
10175         invocation sequence.
10176         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
10178         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
10179         (FORCE_CODE_SECTION_ALIGN): New.
10181 2002-01-26  Richard Henderson  <rth@redhat.com>
10183         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
10185 2002-01-26  Richard Henderson  <rth@redhat.com>
10187         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
10188         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
10190 2002-01-26  Kazu Hirata  <kazu@hxi.com>
10192         * config/h8300/h8300.md: Remove bit extraction patterns that
10193         cannot be triggered.
10194         Restrict each bit extraction pattern to a variant on which the
10195         pattern is tested.
10197 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
10199         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
10201 2002-01-26  Kazu Hirata  <kazu@hxi.com>
10203         * config/h8300/h8300.md: Remove bit test patterns that cannot
10204         be triggered.
10205         Restrict each bit test pattern to a variant on which the
10206         pattern is tested.
10208 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10210         * builtins.c (expand_builtin_strncat): Remove redundant check for
10211         INTEGER_CST.
10213 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
10215         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
10216         default setting.
10217         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
10218         existing setting.
10220 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
10222         * dbxout.c (dbxout_init): Use assemble_name rather than just
10223         stripping off the first character.
10224         (dbxout_source_file): Likewise.
10226 2002-01-25  DJ Delorie  <dj@redhat.com>
10228         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
10229         using rtx_equal_p, not by comparing pointers.
10231 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
10233         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
10234         for PIC_OFFSET_TABLE_REGNUM.
10235         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
10237 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
10239         * config.gcc (x86_64-*-freebsd*): New target.
10240         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
10241         value.
10242         (i[34567]86-*-freebsd*): Don't include svr4.h.
10243         * config/i386/freebsd64.h: New file.
10245 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
10247         * config/alpha/x-vms (version): Make static.
10249         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
10250         in previous checkin.
10252         * Makefile.in (install-headers-cp): New target.
10253         * config.gcc (alpha-dec-*vms*): Install headers with
10254         install-headers-cp
10256 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
10258         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
10259         avoid it's copies.
10261 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10263         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
10264         of compare_tree_int.
10265         (expand_builtin_strncat): Likewise.
10266         * c-decl.c (finish_struct): Use tree_low_cst.
10267         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
10268         * tree.c (compare_tree_int): Likewise.
10270 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
10272         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
10273         adjustments even if they are implemented by more than two insns.
10275 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
10277         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
10278         * df.h (struct ref): Kill B.
10279         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
10281         * basic-block.h (PROP_EQUAL_NOTES): New flag.
10282         * flow.c (propagate_one_insn): Use it.
10283         (mark_used_regs): Handle NIL.
10285 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
10287         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
10288         to help folding.
10290 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
10292         * rs6000.md (prefetch): Make address V4SI mode so that the address
10293         is restricted to legitimate form for instruction.
10295 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
10297         * doc/install.texi (xtensa-*-elf): New target.
10298         (xtensa-*-linux*): New target.
10299         * doc/contrib.texi: Add myself.
10301 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
10303         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
10304         purpose register to hold an SImode (or smaller) value.
10306 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
10308         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
10309         registry only.
10310         * crtstuff.c: Likewise.
10312 2002-01-25  Kazu Hirata  <kazu@hxi.com>
10314         * config/h8300/h8300.md (negation patterns): Tighten
10315         predicates to register_operand.
10317 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
10319         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
10320         mode, not Pmode.
10322         * builtins.c (expand_builtin_prefetch): Same.
10324 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10326         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
10327         modes.
10329 2002-01-24  Kazu Hirata  <kazu@hxi.com>
10331         * config/h8300/h8300.c (print_operand): Remove support for
10332         operand character 'A'.
10333         * config/h8300/h8300.md (three anonymous patterns): Replace
10334         operand character 'A' with either 'T' or 'S'.
10336 2002-01-24  Kazu Hirata  <kazu@hxi.com>
10338         * config/h8300/h8300.c (print_operand): Remove support for
10339         operand character 'U'.
10341 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
10343         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
10345 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
10347         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
10348         values to be assigned to the stack pointer.
10350 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
10352         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
10353         to const_double needs to be done right for big-endian systems.
10355 2002-01-24  Jason Merrill  <jason@redhat.com>
10357         PR c++/2432
10358         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
10359         to can_throw_internal.
10361 2002-01-23  Richard Henderson  <rth@redhat.com>
10363         * fold-const.c (fold): Change UINT_MAX test to check vs precision
10364         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
10366 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10368         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
10369         (symGOT2reg): Use them, then set as GOT value as unchanging.
10370         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
10371         as a temporary, if possible.
10372         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
10373         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
10375 2002-01-23  Kazu Hirata  <kazu@hxi.com>
10377         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
10378         accept to accept 0x80 as operands[2].
10380 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10382         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
10384 2002-01-23  Richard Henderson  <rth@redhat.com>
10386         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
10388 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
10390         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
10391         (parmlist_or_identifiers_1): Verify that only a parmlist follows
10392         an attribute.
10394 2002-01-23  Richard Henderson  <rth@redhat.com>
10396         * expr.c (move_by_pieces_1): Extend size before negation.
10398         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
10399         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
10400         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
10401         * config/m68k/t-m68kelf: Likewise.
10403 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
10405         * config/xtensa/elf.h: New file.
10406         * config/xtensa/lib1funcs.asm: New file.
10407         * config/xtensa/lib2funcs.S: New file.
10408         * config/xtensa/linux.h: New file.
10409         * config/xtensa/t-xtensa: New file.
10410         * config/xtensa/xtensa-config.h: New file.
10411         * config/xtensa/xtensa-protos.h: New file.
10412         * config/xtensa/xtensa.c: New file.
10413         * config/xtensa/xtensa.h: New file.
10414         * config/xtensa/xtensa.md: New file.
10415         * config.gcc (xtensa-*-elf*): New target.
10416         (xtensa-*-linux*): New target.
10417         * cse.c (canon_hash): Compare rtx pointers instead of register
10418         numbers.  This is required for the Xtensa port.
10419         * integrate.c (copy_insn_list): Handle case where the static
10420         chain is in memory and the memory address has to be copied to
10421         a register.
10422         * doc/invoke.texi (Option Summary): Add Xtensa options.
10423         (Xtensa Options): New node.
10424         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
10426 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
10428         * diagnostic.c (internal_error): Do ICE suppression only
10429         when ENABLE_CHECKING is not defined.
10431         * c-typeck.c (require_complete_type): Return error_mark_node
10432         if type is error_mark_node.
10434 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
10436         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
10437         -Os and issue a warning.
10439 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
10441         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
10442         current (lack of) need for host configuration by hand.
10444         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
10445         references.  Documentation of some target macros moved from
10446         hostconfig.texi to tm.texi.
10448 2002-01-23  Will Cohen  <wcohen@redhat.com>
10450         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
10451         defined.
10453 2002-01-23  Kazu Hirata  <kazu@hxi.com>
10455         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
10456         operand[3].
10458 2002-01-23  Jason Merrill  <jason@redhat.com>
10460         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
10462         * function.c (assign_parms): Don't put args of inline functions
10463         into registers when not optimizing.
10465 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
10467         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
10468         (prologue_use): New pattern.
10469         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
10470         preference to gen_rtx_USE.
10471         (thumb_expand_prologue): Use gen_prologue_use in preference to
10472         gen_rtx_USE.
10473         (thumb_expand_epilogue): Use gen_prologue_use in preference to
10474         gen_rtx_USE.
10476 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
10478         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
10480 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
10482         PR c/3504
10483         * doc/extend.texi: Correct documentation of __alignof__.
10485 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
10487         * params.h: Rename arguments of DEFPARAM so that it will be
10488         recognized as a translation keyword.
10490 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
10492         * extend.texi: Document altivec functions.
10493         Fix N-bit adjectives in X86 builtin documentation.
10495 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
10497         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
10498         auto_inc_dec values.
10500 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
10502         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
10503         after backslash.
10504         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
10506 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
10508         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
10510 2002-01-22  Richard Henderson  <rth@redhat.com>
10512         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
10513         copy_insn not copy_rtx.
10515 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
10517         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
10518         "nonzero" as that might add "1" bits.  Ensure "constop" is
10519         properly sign extened.
10520         (force_to_mode): Tweak for sign extended constop.
10522 2002-01-22  Richard Henderson  <rth@redhat.com>
10524         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
10525         for_each_rtx instead of assuming we're already looking at the MEM.
10526         (split_small_symbolic_mem_operand): Likewise.
10527         * config/alpha/alpha.h (PREDICATE_CODES): Update.
10528         * config/alpha/alpha.md (small symbolic memory splitters): Update.
10530 2002-01-22  Richard Henderson  <rth@redhat.com>
10532         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
10533         sequence number for the literal.
10534         (divmoddi_internal_er): Likewise.
10536 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10538         PR java/4972
10539         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
10540         in LIBICONV variable.
10541         * configure: Regenerated.
10543 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
10545         * dependence.c (build_def_use): Remove array_idx.
10547         * dwarfout.c (last_filename): Remove.
10548         (output_compile_unit_die): Remove last_filename.
10550 2002-01-22  Roger Sayle  <roger@eyesopen.com>
10551             Richard Henderson  <rth@redhat.com>
10553         PR opt/3640
10554         * fold-const.c (fold): Optimize unsigned comparisons against
10555         UINT_MAX (and similar unsigned constants).
10557 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
10559         * Makefile.in (loop.o): Depend on OPTABS_H.
10560         * loop.c (emit_prefetch_instructions): Check the prefetch operand
10561         against the predicate.
10563         PR target/5379
10564         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
10565         for the address operand.
10567 2002-01-22  Richard Henderson  <rth@redhat.com>
10569         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
10571 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10573         PR other/5450
10574         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
10575         preprocessor flags.
10577 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
10579         * config.gcc (x86_64-*-netbsd*): New target.
10580         * config/i386/netbsd64.h: New file.
10582 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
10584         * regrename.c (kill_value): Fix typo.
10586 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
10588         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
10590         * config/rs6000/rs6000.h: Same.
10592         * function.c (instantiate_virtual_regs): Remove
10593         STARTING_FRAME_PHASE.
10594         (assign_stack_local_1): Same.
10595         Calculate frame phase.
10597 2002-01-22  Nick Clifton  <nickc@redhat.com>
10599         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
10600         variable declaration to outer scope in order to simplify
10601         future extensions.
10602         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
10603         arm_hard_regno_mode_ok.
10604         * config/arm/arm-protos.h: Add a prototype for
10605         arm_hard_regno_mode_ok.
10606         * config/arm/arm.c (soft_df_operand): Remove now redundant
10607         check for DImode values using IP_REGNUM.
10608         (nonimmediate_soft_df_operand): Remove now redundant check for
10609         DImode values using IP_REGNUM.
10610         (arm_hard_regno_mode_ok): New function. New check: make sure
10611         that DImode values are not stored in IP_REGNUM.
10613         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
10614         note with a USE.
10615         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
10617 2002-01-22  Jason Merrill  <jason@redhat.com>
10619         * c-semantics.c (genrtl_compound_stmt): Only check nesting
10620         consistency if this COMPOUND_STMT is scoped.
10622 2002-01-22  Kazu Hirata  <kazu@hxi.com>
10624         * predict.c: Fix formatting.
10625         * print-tree.c: Likewise.
10626         * protoize.c: Likewise.
10627         * real.h: Likewise.
10628         * rtl.h: Likewise.
10629         * sbitmap.h: Likewise.
10630         * scan.c: Likewise.
10631         * sched-deps.c: Likewise.
10632         * sched-vis.c: Likewise.
10633         * sdbout.c: Likewise.
10634         * sibcall.c: Likewise.
10635         * ssa.c: Likewise.
10636         * ssa-ccp.c: Likewise.
10637         * ssa-dce.c: Likewise.
10638         * stmt.c: Likewise.
10639         * stor-layout.c: Likewise.
10640         * system.h: Likewise.
10642 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10644         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
10645         if fits in bounds of base type.
10647         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
10648         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
10649         (add_bound_info, default): If can't find a context, make a
10650         SAVE_EXPR.
10651         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
10653 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
10655         * c-typeck.c (parser_build_binary_op): If result from
10656         build_binary_op is ERROR_MARK just return error_mark_node without
10657         further processing.
10659 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
10661         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
10662         Split a.out-specific bits into...
10663         * config/netbsd-aout.h: ...this.
10664         * config/netbsd-elf.h: New file.
10665         * config/alpha/netbsd-elf.h: Remove.
10666         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
10667         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
10668         (STARTFILE_SPEC): Remove redundant definition.
10669         (ENDFILE_SPEC): Likewise.
10670         (LINK_SPEC): Likewise.
10671         (CPP_SPEC): Likewise.
10672         (ASM_SPEC): Likewise.
10673         (LIB_SPEC): Likewise.
10674         (SWITCH_TAKES_ARG): Likewise.
10675         (TARGET_MEM_FUNCTIONS): Likewise.
10676         (CPP_PREDEFINES): Redefine.
10677         (ASM_FINAL_SPEC): Remove redefinition.
10678         (ASM_COMMENT_START): Redefine.
10679         (FUNCTION_PROFILER): Define.
10680         (TARGET_VERSION): Redefine.
10681         Comment and formatting cleanup.
10682         * config/i386/netbsd.h: Include <netbsd-aout.h>.
10683         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
10684         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
10685         big- or little-endian.
10686         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
10687         * config.gcc (*-*-netbsd*): Add definitions common to all
10688         NetBSD configs.
10689         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
10690         gnu_ld definitions.  Add netbsd-elf.h to and remove
10691         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
10692         tmake_file, and don't lose previous tmake_file contents.
10693         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
10694         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
10695         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
10696         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
10697         (mipsel-*-netbsd*): Rename this to...
10698         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
10699         mips/little.h to tm_file for mips*el-*.
10700         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
10701         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
10702         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
10704 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10706         * pa-protos.h (reg_before_reload_operand): New function prototype.
10707         * pa.c (reg_before_reload_operand): New function implementation.
10708         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
10709         contraints to "*m".
10711 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10713         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
10715 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10717         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
10718         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
10719         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
10720         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
10721         (ENDFILE_SPEC): Undefine.
10722         (STARTFILE_SPEC): Redefine for PA.
10724 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10726         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
10728 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
10730         * config.gcc: Add entries to supported PowerPC --with-cpu
10731         types.
10733 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
10735         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
10736         true for 64-bit mode only SSE registers in 32-bit mode.
10738 2002-01-21  Kazu Hirata  <kazu@hxi.com>
10740         * unwind-dw2.c: Fix formatting.
10741         * unwind-dw2-fde.c: Likewise.
10742         * unwind-dw2-fde.h: Likewise.
10743         * unwind-pe.h: Likewise.
10744         * varasm.c: Likewise.
10745         * varray.h: Likewise.
10747 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
10749         Remove workaround for register stack overwrite bug in mmix.
10750         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
10751         support for TARGET_REG_STACK_FILL_BUG.
10752         * config/mmix/mmix.h: Remove member has_call_without_parameters.
10753         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
10754         Delete.
10755         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
10756         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
10757         -mno-reg-stack-fill-bug-workaround.
10758         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
10759         machine member has_call_without_parameters.
10760         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
10761         -mreg-stack-fill-bug-workaround and
10762         -mno-reg-stack-fill-bug-workaround.
10763         (MMIX Options): Ditto.
10765 2002-01-21  Kazu Hirata  <kazu@hxi.com>
10767         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
10768         as appropriate.
10769         Remove redundant code.
10771 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
10773         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
10774         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10775         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10776         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
10777         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
10778         out target macro definitions and non-target-specific comments
10779         mostly taken from old versions of the manual.
10781 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10783         * config/h8300/h8300.h: Fix comment formatting.
10784         * config/ia64/aix.h: Likewise.
10785         * config/ia64/ia64-protos.h: Likewise.
10786         * config/ia64/ia64.c: Likewise.
10787         * config/ia64/ia64.h: Likewise.
10788         * config/ia64/ia64intrin.h: Likewise.
10789         * config/ia64/linux.h: Likewise.
10790         * config/ia64/unwind-aix.c: Likewise.
10791         * config/ia64/unwind-ia64.c: Likewise.
10793 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10795         * config/h8300/h8300.c: Revise comments about shift code.
10797 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10799         * config/h8300/h8300.c (function_arg): Update a comment.
10801 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10803         * config/h8300/h8300.md: Update the comments at the beginning
10804         of the file.
10806 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10808         * config/i370/i370.c: Fix comment formatting.
10809         * config/i370/i370.h: Likewise.
10810         * config/i370/i370.md: Likewise.
10811         * config/i370/linux.h: Likewise.
10813 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10815         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
10817         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
10818         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
10819         in incomplete case.
10821 2002-01-20  Graham Stott  <grahams@redhat.com>
10823         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
10825 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10827         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
10829 2002-01-19  Tom Rix  <trix@redhat.com>
10831         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
10833 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
10835         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
10837         * function.c (assign_stack_local_1): Adjust x_frame_offset with
10838         STARTING_FRAME_PHASE.
10839         (STARTING_FRAME_PHASE): New.
10840         (instantiate_virtual_regs): Check saneness of
10841         STARTING_FRAME_PHASE.
10843         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
10845 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
10847         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
10849 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10851         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
10852         be used for bootstrapping GCC 3.0.
10854 2002-01-18  Kazu Hirata  <kazu@hxi.com>
10856         * config/h8300/h8300.md: Fix an insn length.
10858 2002-01-18  Kazu Hirata  <kazu@hxi.com>
10860         * bitmap.h: Fix comment formatting.
10861         * combine.c: Likewise.
10862         * cppfiles.c: Likewise.
10863         * c-pragma.h: Likewise.
10864         * c-typeck.c: Likewise.
10865         * df.c: Likewise.
10866         * dwarf2out.c: Likewise.
10867         * function.c: Likewise.
10868         * gcc.c: Likewise.
10869         * genattrtab.c: Likewise.
10870         * gthr-win32.h: Likewise.
10871         * haifa-sched.c: Likewise.
10872         * predict.c: Likewise.
10873         * rtlanal.c: Likewise.
10874         * rtl.h: Likewise.
10875         * unwind-dw2-fde.h: Likewise.
10876         * unwind-pe.h: Likewise.
10877         * vmsdbgout.c: Likewise.
10879 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10881         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
10882         if type_required and passed decl.
10884 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
10886         * config.gcc (cpu_type): Include altivec.h in powerpc
10887         extra_headers.
10888         Same for darwin.
10890         * config/rs6000/altivec.h: New.
10892 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
10894         * doc/install.texi (*-ibm-aix*): Update assembler and exception
10895         handling information.
10896         * doc/trouble.texi (Interoperation): Add libstdc++ information
10897         for AIX.
10898         (Misunderstandings): Add template instantiation and static template
10899         member information for AIX.
10901 2002-01-17  Jason Merrill  <jason@redhat.com>
10903         * dbxout.c (dbxout_type): Support const and volatile.
10905         * except.c (add_partial_entry): Remove backwards compatibility code.
10906         (end_protect_partials): Likewise.
10908 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
10910         * config/ia64/ia64.md (prologue_use): New.
10911         * config/ia64/ia64.c (ia64_expand_prologue): Use
10912         gen_prologue_use instead of gen_rtx_USE.
10913         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
10914         as CODE_FOR_pred_rel_mutex.
10915         (ia64_sched_reorder2): Likewise.
10917 2002-01-16  Eric Christopher  <echristo@redhat.com>
10919         * config/mips/r3900.h: Reformat.
10920         (SUBTARGET_CPP_SIZE_SPEC): Remove.
10921         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
10922         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
10923         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
10924         * config/mips/t-elf: Remove mips3 multilib.
10926 2002-01-16  H.J. Lu <hjl@gnu.org>
10928         * config/mips/linux.h: Include "mips/abi64.h".
10930 2002-01-16  H.J. Lu <hjl@gnu.org>
10932         * config/mips/t-linux: New.
10934         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
10936         * config/mips/linux.h: Don't include "gofast.h".
10937         (INIT_SUBTARGET_OPTABS): Removed.
10939 2002-01-16  Kazu Hirata  <kazu@hxi.com>
10941         * config/h8300/h8300-protos.h: Replace emit_a_shift with
10942         output_a_shift.
10943         * config/h8300/h8300.c: Likewise.
10944         * config/h8300/h8300.md: Likewise.
10946 2002-01-16  Kazu Hirata  <kazu@hxi.com>
10948         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
10949         spaces after an opcode name.
10950         (pushqi1_h8300hs): Likewise.
10951         (pushhi1_h8300hs): Likewise.
10953 2002-01-16  Kazu Hirata  <kazu@hxi.com>
10955         * doc/extend.texi: Replace "option" with "attribute"
10956         appropriately.
10958 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
10960         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
10961         (and:DI () (const_int -8)).
10962         (split_small_symbolic_mem_operand): Split
10963         (mem (and:DI () (const_int -8)).
10965 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
10967         PR target/5309:
10968         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
10969         same way as TYPE_IMUL.
10970         (ultrasparc_sched_reorder): Likewise.
10971         * config/sparc/sparc.md (type): Add comment to update
10972         ultrasparc_sched_reorder when making changes.
10974 2002-01-16  Kazu Hirata  <kazu@hxi.com>
10976         * doc/invoke.texi: Change the dump file name of block
10977         reordering pass from 28.bbro to 29.bbro.
10978         Mention -dk option.
10980 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
10982         * i386.md (minsf splitter): Fix pasto.
10984 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
10986         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
10987         to frame pointer initialisation instruction.
10988         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
10989         initialisation instruction.
10990         (soft_df_operand): Do not accept the IP register.
10991         (nonimmediate_soft_df_operand): Do not accept the IP register.
10993 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
10995         PR target/5357:
10996         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
10997         MASK_V8 being both set.
10999 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
11001         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
11002         insn for GOT register; add REG_MAYBE_DEAD notes instead.
11003         config/s390/s390.md (call, call_value): Add GOT register to
11004         CALL_INSN_FUNCTION_USAGE where needed.
11005         (call_exp, call_value_exp): New.
11007 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
11009         * config/arm/arm.c: General formatting tidy up.
11011 2002-01-16  Graham Stott  <grahams@redhat.com>
11013         * calls.c (try_to_integrate): Use "(size_t)" intermediate
11014         cast and when casting an integer literal to "rtx" pointer.
11015         (expand_call): Likewise.
11016         * flow.c (try_pre_increment): Likewise.
11017         (find_use_as_address): Likewise.
11018         * integrate.c (expand_iline_function): Likewise.
11019         * regmove.c (try_auto_increment): Likewise.
11021 2002-01-16  Graham Stott  <grahams@redhat.com>
11023         * sched-rgn.c (passed): Use sbitmap_free.
11024         (header): Likewise.
11025         (inner): Likewise.
11026         (in_queue): Likewise.
11027         (in_stack): Likewise.
11029 2002-01-15  Eric Christopher  <echristo@redhat.com>
11031         * flow.c (propagate_one_insn): Change to use fatal_insn.
11033 2002-01-15  Kazu Hirata  <kazu@hxi.com>
11035         * expmed.c (extract_fixed_bit_field): Remove unused code.
11036         * system.h: Poison SLOW_ZERO_EXTEND.
11037         * doc/tm.texi: Remove.
11038         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
11039         * config/arm/arm.h: Likewise.
11040         * config/avr/avr.h: Likewise.
11041         * config/clipper/clipper.h: Likewise.
11042         * config/convex/convex.h: Likewise.
11043         * config/d30v/d30v.h: Likewise.
11044         * config/dsp16xx/dsp16xx.h: Likewise.
11045         * config/elxsi/elxsi.h: Likewise.
11046         * config/fr30/fr30.h: Likewise.
11047         * config/h8300/h8300.h: Likewise.
11048         * config/i370/i370.h: Likewise.
11049         * config/i386/i386.h: Likewise.
11050         * config/m68k/m68k.h: Likewise.
11051         * config/mips/mips.h: Likewise.
11052         * config/ns32k/ns32k.h: Likewise.
11053         * config/pdp11/pdp11.h: Likewise.
11054         * config/pj/pj.h: Likewise.
11055         * config/s390/s390.h: Likewise.
11056         * config/sh/sh.h: Likewise.
11057         * config/stormy16/stormy16.h: Likewise.
11058         * config/v850/v850.h: Likewise.
11059         * config/vax/vax.h: Likewise.
11060         * config/we32k/we32k.h: Likewise.
11062 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
11064         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
11065         (altivec_lvsl): Change constraint to b.
11066         (altivec_lvsr): Same.
11067         (altivec_lvebx): Same.
11068         (altivec_lvehx): Same.
11069         (altivec_lvewx): Same.
11070         (altivec_lvxl): Same.
11071         (altivec_lvx): Same.
11072         (altivec_stvx): Add parallel.
11073         (altivec_stvxl): Same.
11074         (altivec_stvehx): Same.
11075         (altivec_stvebx): Same.
11076         (altivec_stvebx): Same.
11078 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
11080         * config.gcc: Change altivec.h to altivec-defs.h.
11082         * config/rs6000/altivec.h: Delete.
11084         * config/rs6000/altivec-defs.h: Add.
11086 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11088         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
11089         and UMOD modes.
11091         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
11092         less than or equal to eight bytes.
11094         * vax.md (andsi3): Remove constraints and change SET destination
11095         operand type to nonimmediate_operand.
11096         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
11097         when it is a CONST_INT.
11099 2002-01-15  Jason Merrill  <jason@redhat.com>
11101         * c-common.def (FILE_STMT): New code.
11102         * c-common.c (statement_code_p): It's a statement.
11103         * c-common.h (stmt_tree_s): Add x_last_filename.
11104         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
11105         (last_expr_filename): New macro.
11106         * c-semantics.c (begin_stmt_tree): Initialize it.
11107         (add_stmt): If the filename changed, also insert a
11108         FILE_STMT.
11109         (expand_stmt): Handle seeing one.
11111 2002-01-15  Eric Christopher  <echristo@redhat.com>
11113         * flow.c (propagate_one_insn): Add error message and print out
11114         insn for debugging.
11116 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
11118         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
11119         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
11120         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
11121         TRAMPOLINE_ALIGNMENT.
11122         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
11123         to be in bits.
11124         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
11125         PCC_BITFIELD_TYPE_MATTERS.
11126         * config/interix.h (STDC_VALUE): Remove.  Use
11127         STDC_0_IN_SYSTEM_HEADERS.
11128         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
11129         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
11130         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
11132 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11134         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
11135         not work on this platform currently.
11137 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
11139         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
11140         readonly_warning in _().
11142 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
11144         * gcc.c (delete_if_ordinary): Backout previous change.
11146 2002-01-15  Kazu Hirata  <kazu@hxi.com>
11148         * config/h8300/h8300.c (print_operand): Remove support for
11149         unused operand characters.
11151         * read-rtl.c: Fix formatting.
11152         * real.c: Likewise.
11153         * recog.c: Likewise.
11154         * regclass.c: Likewise.
11155         * regmove.c: Likewise.
11156         * reg-stack.c: Likewise.
11157         * reload1.c: Likewise.
11158         * rtlanal.c: Likewise.
11160 2002-01-15  Kazu Hirata  <kazu@hxi.com>
11162         * config/i386/i386.c: Fix formatting.
11164 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
11166         * c-typeck.c (process_init_element): Don't save_expr
11167         COMPOUND_LITERAL_EXPR if just its initializer will be used.
11169 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
11171         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
11172         emit optional traceback table if optimize_size or TARGET_ELF.
11173         * config/rs6000/rs6000.md (prefetch): New.
11175 2002-01-15  Andreas Jaeger  <aj@suse.de>
11177         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
11179 2002-01-15  Kazu Hirata  <kazu@hxi.com>
11181         * mips-tfile.c: Fix formatting.
11183 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
11185         * unroll.c (final_reg_note_copy): Fix previous commit.
11187 2002-01-14  Kazu Hirata  <kazu@hxi.com>
11189         * config/h8300/h8300-protos.h: Remove the prototype for
11190         eq_operator.
11191         * config/h8300/h8300.c (eq_operator): Remove.
11193 2002-01-14  Richard Henderson  <rth@redhat.com>
11195         * config/i386/i386.md (prefetch): Tidy.
11196         (prefetch_3dnow): Fix locality operand.
11198 2002-01-14  Richard Henderson  <rth@redhat.com>
11200         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
11201         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
11203 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
11205         * reload1.c (reload_combine): Pass reg_sum replacement through
11206         copy_rtx in loop performing multiple changes.
11208 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
11210         * except.c (remove_unreachable_regions): New.
11211         (free_eh_status): Clear exception_handler_labels.
11212         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
11213         (find_exception_handler_labels): Don't add the same label more than
11214         once.
11215         (remove_exception_handler_label): Don't die if
11216         find_exception_handler_labels hasn't been called for the current
11217         function yet.
11219 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
11221         * toplev.c (rest_of_compilation): Rebuild jump labels after
11222         gcse.
11224 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
11226         * doc/extend.texi: Move documentation of X86 built-in functions
11227         here.
11228         * doc/invoke.texi: From here.
11229         * doc/sourcebuild.texi: Document location of documentation for
11230         machine built-in functions.
11232 2002-01-13  Christopher Faylor  <cgf@redhat.com>
11234         * cppfiles.c (TEST_THRESHOLD): New macro.
11235         (SHOULD_MMAP): Ditto.
11236         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
11237         be used.
11239 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
11241         * unroll.c (final_reg_note_copy): Properly handle
11242         REG_LABEL
11243         (unroll_loops): Fix LOOP_CONDITION heuristics.
11245 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
11247         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
11248         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
11250 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
11252         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
11253         threaded loop.
11255 2002-01-14  Tom Rix  <trix@redhat.com>
11257         * config/rs6000/rs6000.md: Fix typo with sradi.
11259 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
11261         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
11262         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
11263         (clrstrdi, clrstrsi): Adapt callers.
11265         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
11267         (movti splitter): Never use register 0 as base register.
11269 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
11271         * combine.c (simplify_shift_const): Always generate new rtx
11272         for shift expression instead of reusing given expression.
11274 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11276         * config/alpha/alpha.c (alpha_expand_mov): Don't call
11277         alpha_legitimize_address unless mode is Pmode.
11279 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
11281         * doc/md.texi (Modifiers): Document the '*' constraint for the
11282         user.
11284         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
11285         * doc/extend.texi (Function Attributes): 'interrupt' is valid
11286         for xstormy16 too.
11288 2002-01-13  Richard Henderson  <rth@redhat.com>
11290         * reload.c (find_reloads): Use a hard reg destination as reload reg
11291         for an input reload of the source.
11293 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11295         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
11296         more generic.
11298 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
11300         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
11301         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
11303         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
11305 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11307         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
11309 2002-01-12  Tom Rix  <trix@redhat.com>
11311         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
11312         TARGET_POWERPC64.
11314 2002-01-12  Richard Henderson  <rth@redhat.com>
11316         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
11318         * doc/invoke.texi: Update Alpha options.
11320         * doc/invoke.texi: Update i386 built-in function lists.
11322 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
11324         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
11325         referencing outside.
11327 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11329         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
11330         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
11331         offsets, and change line folding.
11332         * optabs.c (expand_binop): Remove warnings.
11333         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
11335 2002-01-12  Graham Stott <grahams@redhat.com>
11337         * attribs.c (handle_deprecated_attribute): constify WHAT.
11338         * diagnostic.c (warn_deprecated_use): Add braces, fixes
11339         dangling else warning and constify WHAT.
11340         * except.h (struct function, struct inline_remap): Move
11341         struct tag forward defs before all prototypes.
11342         (duplicate_eh_regions): Whitespace.
11344 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
11346         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11347         MODE_BASE_REG_CLASS.
11348         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
11350 2002-01-12  Richard Henderson  <rth@redhat.com>
11352         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
11353         (ix86_expand_vector_move): New.
11354         (bdesc_2arg): Remove andps, andnps, orps, xorps.
11355         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
11356         Remove old prefetch builtins.  Special case the logicals removed above.
11357         (ix86_expand_builtin): Likewise.
11358         (safe_vector_operand): Use V4SFmode, not TImode.
11359         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
11360         (ix86_expand_timode_binop_builtin): New.
11361         * config/i386/i386-protos.h: Update.
11362         * config/i386/i386.h (enum ix86_builtins): Update.
11363         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
11364         Use ix86_expand_vector_move in vector move expanders.
11365         (movti_internal, movti_rex64): Add xorps alternative.
11366         (sse_clrv4sf): Rename and adjust from sse_clrti.
11367         (prefetch): Don't work so hard.
11368         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
11369         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
11370         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
11372 2002-01-11  Richard Henderson  <rth@redhat.com>
11374         * config/i386/mmintrin.h: New file.
11375         * config/i386/xmmintrin.h: New file.
11376         * config.gcc (i?86-*-*): Add extra_headers.
11377         * simplify-rtx.c (simplify_unary_operation): Handle saturating
11378         truncation codes.
11379         (simplify_binary_operation): Handle saturating arithmetic codes.
11380         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
11381         not the lowpart subreg.
11382         (ix86_expand_builtin): Return a TImode dummy register instead of 0
11383         on error.
11384         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
11386 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11388         * conflict.c (conflict_graph_compute): Free regsets when finished.
11389         * ssa.c (compute_coalesced_reg_partition): Likewise.
11391 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11393         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
11394         every where we allocate a register.
11396 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11398         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
11399         * lcm.c (compute_earliest, compute_farthest): Likewise.
11401 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
11403         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
11405 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
11407         * doc/rtl.texi (Insns): Fix 2 typos.
11409 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
11411         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
11412         options.  Use @table @gcctabopt for MMIX options.  Add index
11413         entries for MMIX options.  Start new paragraph with first
11414         heading of the machine-dependent options.
11416 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11418         PR other/5299
11419         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
11420         * combine.c (force_to_mode): Same.
11421         * reload1.c (clear_reload_reg_in_use): Same.
11423 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
11425         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
11426         and 'subtargets'.
11428 2002-01-11  Andreas Jaeger  <aj@suse.de>,
11429             Brad Lucier <lucier@math.purdue.edu>
11431         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
11432         mcpu.
11434 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
11436         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
11437         Protect with IN_LIBGCC.
11438         (LINK_EH_SPEC): Add required trailing space.
11440 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
11442         * c-tree.h: Move function declarations so that they are listed
11443         under the filename which contains them.
11444         (check_identifier, finish_decl_top_level,
11445         lookup_name_current_level_global, shadow_record_fields): Remove.
11447 2002-01-11  Andreas Jaeger  <aj@suse.de>
11449         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
11450         march.
11452 2002-01-10  Richard Henderson  <rth@redhat.com>
11454         * config/alpha/alpha.c (print_operand): Add 'J'.
11455         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
11456         new operand with the sequence number for the lituse.  When splitting
11457         the insns, use gen_movdi_er_high_g and generate a sequence number.
11458         (gen_movdi_er_high_g): Print the sequence number if non-zero.
11460 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
11462         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
11463         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
11464         stvxl.
11465         (altivec_expand_builtin): Same.
11466         (altivec_expand_stv_builtin): New.
11468         * config/rs6000/rs6000.h (rs6000_builtins): Same.
11470         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
11471         ("altivec_lvehx"): New.
11472         ("altivec_lvewx"): New.
11473         ("altivec_lvxl"): New.
11474         ("altivec_lvx"): New.
11475         ("altivec_stvx"): New.
11476         ("altivec_stvebx"): New.
11477         ("altivec_stvehx"): New.
11478         ("altivec_stvewx"): New.
11479         ("altivec_stvxl"): New.
11481 2002-01-10  Richard Henderson  <rth@redhat.com>
11483         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
11484         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
11485         care not to delete instructions twice.
11487 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
11489         * toplev.c: Don't declare environ (it's not used anywhere).
11490         * configure.in: Don't check for declaration of environ.
11491         * config/i386/xm-mingw32.h: Don't #define environ.
11492         * config.in, configure: Regenerate.
11494 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
11496         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
11497         * configure: Regenerate.
11499         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
11500         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
11501         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
11502         alpha/xm-vms.h.
11503         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
11504         LIMITS_H_TEST here, not in m68k/x-next.
11505         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
11506         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
11508         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
11509         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
11510         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
11512         * config/i386/x-djgpp: Renamed i386/t-djgpp.
11513         * config/m88k/x-dolph: Renamed m88k/t-dolph.
11514         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
11515         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
11516         replacement of quadlib.asm with quadlib.c.
11518         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
11519         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
11520         config/rs6000/xm-beos.h: Delete file.
11522         * config.gcc: Update to match above changes.
11524 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11526         * config/h8300/h8300.h: Fix comment typos.
11527         * config/h8300/h8300.md: Likewise.
11528         * config/h8300/lib1funcs.asm: Likewise.
11530 2002-01-10  Dale Johannesen  <dalej@apple.com>
11532         PR optimization/5269
11533         * unroll.c (precondition_loop_p): Make *increment be the correct
11534         sign when n_iterations known, to avoid confusing caller.
11536 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11538         * doc/extend.texi (deprecated): Fix a typo.
11540 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
11542         * basic-block.h (update_br_prob_note): Declare.
11543         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
11544         (try_forward_edges): Care negative frequencies and update note.
11545         (outgoing_edges_match): Tweek conditional merging heuristics.
11546         (try_crossjump_to_edge): use update_br_prob_note.
11547         * cfglayout.c (fixup_reorder_chain): Likewise.
11548         * cfrtl.c (update_br_prob_note): New.
11549         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
11551         * i386.c (ix86_decompose_address): Return -1 if address contains
11552         shift.
11553         (legitimate_address_p): Require ix86_decompose_address to return 1.
11555         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
11556         (cprop_insn): Likewise.
11558 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11560         * toplev.c: Fix formatting.
11561         * tree.c: Likewise.
11562         * tree-dump.c: Likewise.
11563         * unroll.c: Likewise.
11564         * unwind-dw2.c: Likewise.
11565         * unwind-dw2-fde.c: Likewise.
11566         * unwind-dw2-fde-glibc.c: Likewise.
11567         * unwind-sjlj.c: Likewise.
11569 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
11571         * doc/invoke.texi: Document PDP-11 options.
11573 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11575         * config/h8300/h8300.h: Fix formatting.
11577 2002-01-10  Ira Ruben   <ira@apple.com>
11579         Add __attribute__ ((deprecated)).
11580         * extend.texi: Document __attribute__ ((deprecated)).
11581         * invoke.texi: Document -Wno-deprecated-declarations.
11582         * testsuite/g++.dg/other/deprecated.C: New C++ test.
11583         * testsuite/gcc.dg/deprecated.c: New C test.
11584         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
11585         (c_common_attribute_table): Add "deprecated" entry.
11586         (handle_deprecated_attribute): New function.
11587         * c-decl.c (deprecated_states): New enum.
11588         deprecated_state: State of "deprecated" handling.
11589         (start_decl): Set deprecated_state based on attributes.
11590         (grokdeclarator): Test for deprecated uses, propagate attribute.
11591         * c-typeck.c (build_component_ref): Test for deprecated fields.
11592         (build_external_ref): Test for deprecated primaries.
11593         * diagnostic.c (warn_deprecated_use) New function to issue
11594         warnings about __attribute__ ((depricated)) references.
11595         * flags.h (warn_deprecated_decl): Extern declared for
11596         -W[no-]deprecated-declarations option.
11597         * print-tree.c (print_node): Show deprecated flag status.
11598         * toplev.c (warn_deprecated_decl): Defined.
11599         (W_options): Added "deprecated-declaration".
11600         * toplev.h (warn_deprecated_use): Extern declared.
11601         * tree.h (struct tree_common): Define deprecated_flag.
11602         (TREE_DEPRECATED): New macro to access flag.
11603         * cp/call.c (build_call): Test for deprecated calls.
11604         * cp/class.c (add_implicitly_declared_members): Set global
11605         flag to tell grokdeclarator to not issue deprecated warnings.
11606         * cp/cp-tree.h: Add extern for adding_implicit_members.
11607         * cp/decl.c (deprecated_states): New enum.
11608         (start_decl): Set deprecated_state based on attributes.
11609         (grokdeclarator): Test for deprecated uses, propagate attribute.
11610         * cp/lex.c (do_identifier): Test for deprecated primaries.
11611         * cp/typeck.c (build_component_ref): Test for deprecated fields.
11613 2002-01-10  Ira Ruben   <ira@apple.com>
11615         Fix to assign attributes to inline member functions.
11616         * cp/decl.c (start_method): Handle attrlist.
11618 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11620         * combine.c (expand_field_assignment): Use subreg_lsb().
11622 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
11624         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
11625         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
11626         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
11627         Recurse for any operand of AND as long as constant is non-zero.
11629 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11631         * config/h8300/h8300.md: Remove constraints from expanders.
11633 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11635         * varasm.c: Fix formatting.
11636         * varray.c: Likewise.
11637         * vmsdbgout.c: Likewise.
11638         * xcoffout.c: Likewise.
11640 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
11642         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
11643         update edge probabilities to match.
11645 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
11647         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
11648         dependencies.
11649         * doc/languages.texi, doc/sourcebuild.texi: New files.
11650         * doc/configfiles.texi: Make a subsubsection.  Update.
11651         * doc/configterms.texi: Add @node.  Remove warning that this isn't
11652         instructions for building GCC.
11653         * doc/makefile.texi: Make a subsection.
11654         * doc/gccint.texi: Update.
11656 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
11658         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
11660 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
11662         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
11664 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
11666         * optabs.c (expand_fix): Look for wider integer modes first.
11668         * i386.md (mov?f): Avoid the fake const double trick for medium
11669         memory model.
11670         (min?f*/max?f*): Prohibit memory operands for i387 variant.
11671         (fop_df_4): Disable for SSE compilation.
11673 2002-01-10  Graham Stott  <grahams@redhat.com>
11675         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
11676         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
11678 2002-01-10  Richard Henderson  <rth@redhat.com>
11680         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
11682 2002-01-10  Richard Henderson  <rth@redhat.com>
11684         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
11685         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
11687 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11689         * combine.c (can_combine_p): Fix a comment typo.
11691 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
11693         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
11694         empty list correctly.  Change loop index $t to $f for
11695         consistency with rest of Makefile.
11697 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
11699         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
11700         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
11702         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
11703         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
11704         (altivec_init_builtins): Same.
11705         (altivec_expand_unop_builtin): Return NULL_RTX on error.
11706         (altivec_expand_binop_builtin): Same.
11707         (altivec_expand_ternop_builtin): Same.
11708         (bdesc_dst): New.
11710         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
11711         ("altivec_vctuxs"): Fix typo.
11712         ("altivec_vnmsubfp"): Same.
11713         ("altivec_dssall"): New.
11714         ("altivec_mfvscr"): New.
11715         ("altivec_dss"): New.
11716         ("altivec_lvsl"): New.
11717         ("altivec_lvsr"): New.
11718         ("altivec_dstt"): New.
11719         ("altivec_dstst"): New.
11720         ("altivec_dststt"): New.
11721         ("altivec_dst"): New.
11723         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
11724         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
11726 2002-01-09  Richard Henderson  <rth@redhat.com>
11728         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
11730 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
11732         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
11733         function.
11734         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
11735         prototype.
11736         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
11738 2002-01-09  Kazu Hirata  <kazu@hxi.com>
11740         * read-rtl.c: Fix formatting.
11741         * real.c: Likewise.
11742         * regclass.c: Likewise.
11743         * regrename.c: Likewise.
11744         * reg-stack.c: Likewise.
11745         * reload1.c: Likewise.
11746         * reload.c: Likewise.
11747         * rtl.c: Likewise.
11749 2002-01-09  Kazu Hirata  <kazu@hxi.com>
11751         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
11752         to extract items in the expr_list chain.
11754 2002-01-09  Richard Henderson  <rth@redhat.com>
11756         * config/vax/vax.c (vax_rtx_cost): Never abort.
11758         * config/vax/vax.h (REAL_ARITHMETIC): Define.
11760 2002-01-09  Jan Hubicka  <jh@suse.cz>
11762         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
11764 2002-01-09  Richard Henderson  <rth@redhat.com>
11766         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
11767         Unify code from various alternatives.
11769 2002-01-09  Richard Henderson  <rth@redhat.com>
11771         * regrename.c (copy_value): Ignore the copy if the source register
11772         is present in the value chain with a narrower mode.
11774 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
11776         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
11777         for the c4x target. Also improve layout.
11779 2002-01-09  Richard Henderson  <rth@redhat.com>
11781         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
11782         * config/m32r/m32r.md (and ior xor splitters): Swap operands
11783         to match insn patterns.
11785 2002-01-09  Richard Henderson  <rth@redhat.com>
11787         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
11788         (copyprop_hardreg_forward_1): Likewise.
11790 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11792         * pa.md (decrement_and_branch_until_zero): Change predicate for
11793         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
11795 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
11797         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
11798         gets undefined. For Darwin.
11800 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11802         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
11804 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11806         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
11808 2002-01-08  Richard Henderson  <rth@redhat.com>
11810         * regrename.c (copy_value): Ignore overlapping copies.
11812 2002-01-08  Richard Henderson  <rth@redhat.com>
11814         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
11815         as needed to avoid shared structure.
11817 2002-01-08  Kazu Hirata  <kazu@hxi.com>
11819         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
11820         H8/300H and H8/S.
11822 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
11824         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
11825         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
11826         documentation of obsolete macros.
11827         * system.h: Poison these macros.
11828         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
11829         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
11830         config/c4x/c4x.h, config/clipper/clipper.h,
11831         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
11832         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
11833         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
11834         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
11835         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
11836         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
11837         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
11838         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
11839         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
11840         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
11841         config/sparc/sparc.h, config/stormy16/stormy16.h,
11842         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
11843         definitions and commented out definitions of obsolete macros.
11844         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
11845         of MAX_INT_TYPE_SIZE.
11847 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
11849         * config/s390/s390.c (s390_preferred_reload_class): Never
11850         return ADDR_REGS if it isn't a subset of the given class.
11851         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
11852         FP_REGS, but all superclasses as well.
11854         * config/s390/s390.c (s390_function_profiler): Fix thinko.
11856         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
11857         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
11858         must not be a const_int.
11860 2002-01-08  Richard Henderson  <rth@redhat.com>
11862         * Makefile.in (toplev.o): Depend on options.h.
11863         (gcc.o): Depend on specs.h.
11865 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
11867         * expr.c (store_expr): Convert VOIDmode constants back to target's
11868         mode.
11870 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11872         * doc/invoke.texi: Markup gcc as @command.  Refer to
11873         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
11874         of http://gcc.gnu.org/thanks.html.
11876 2002-01-08  Dale Johannesen  <dalej@apple.com>
11878         * config/rs6000/rs6000.md: Add missing int register
11879         target case to movdf_low.
11881 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
11883         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
11884         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
11885         (cppinit.o): Depend on except.h.
11886         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
11887         s-specs): New rules.
11889         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
11890         Don't create specs.h/options.h/gencheck.h here.  Remove
11891         unnecessary variable settings from last argument of AC_OUTPUT.
11892         * config.in, configure: Regenerate.
11893         * intl.c: Hardcode package name as "gcc".
11895         * cppinit.c: Include except.h.
11896         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
11897         appropriate.
11898         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
11899         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
11900         (!)USING_SJLJ_EXCEPTIONS.
11901         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
11903 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
11905         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
11906         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
11907         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
11908         documentation of obsolete macros.
11909         * system.h: Poison these macros.
11910         * config/d30v/d30v.h, config/ns32k/encore.h,
11911         config/stormy16/stormy16.h: Remove definitions and commented out
11912         definitions of obsolete macros.
11914 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
11916         * objc/objc-act.c (handle_class_ref): Mark the declaration of
11917         %sobjc_class_ref_%s as used - to prevent unwanted compiler
11918         warnings.
11920 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
11922         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
11923         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
11924         to insn adjusting stack/frame pointer.
11925         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
11926         accept operands that cause the insn to be non-splittable.
11928 2002-01-08  Graham Stott  <grahams@redhat.com>
11930         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
11931         (C_TYPE_FIELDS_VOLATILE): Likewise.
11932         (C_TYPE_BEING_DEFINED): Likewise.
11933         (C_IS_RESERVED_WORD): Likewise.
11934         (C_TYPE_VARIABLE_SIZE): Likewise.
11935         (C_DECL_VARIABLE_SIZE): Likewise.
11936         (C_MISSING_PROTOTYPE_WARNED): Likewise.
11937         (C_SET_EXP_ORIGINAL_CODE): Likewise.
11938         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
11939         parenthesis.
11940         (C_DECL_ANTICIPATED): Likewise.
11941         (c_build_type_variant): Add parenthesis.
11943 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
11945         * gcc.c (option_map): Remove --version.
11946         (process_command): Handle -fversion following the GNU Coding
11947         Standards.  Partially addresses PR other/704.
11949 2002-01-08  Graham Stott  <grahams@redhat.com>
11951         * combine.c (combine_instructions): Fix typo.
11953 2002-01-08  Graham Stott  <grahams@redhat.com>
11955         * debug.h: Use "tree" and "rtx" throughout.
11957         * debug.c: Likewise.
11959 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
11961         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
11962         constant pool, use the pool's version of the symbol instead.
11964 2002-01-07  Richard Henderson  <rth@redhat.com>
11966         * regrename.c (find_oldest_value_reg): Ignore the value chain if
11967         the original register was copied in a mode with a fewer number of
11968         hard registers than the desired mode.
11969         (copyprop_hardreg_forward_1): Likewise.
11970         (debug_value_data): Fix loop test.
11971         * toplev.c (parse_options_and_default_flags): Reenable
11972         -fcprop-registers at -O1.
11974 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
11976         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
11977         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
11979         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
11980         predicates.
11982         * config/rs6000/rs6000.md: Add altivec predicate patterns.
11984 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11986         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
11987         (pa_output_function_prologue): Output local label at the beginning of
11988         the prologue when profiling.
11989         (hppa_profile_hook): Use the local label rather than the function label.
11990         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
11992 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
11994         * config/rs6000/rs6000.c (print_operand): Remove extra space.
11995         (altivec_expand_unop_builtin): Fix thinko.
11996         (altivec_expand_binop_builtin): Same.
11997         (altivec_expand_ternop_builtin): Same.
11998         (altivec_expand_builtin): Same.
12000 2002-01-07  Richard Henderson  <rth@redhat.com>
12002         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
12004 2002-01-07  Jason Merrill  <jason@redhat.com>
12006         * unwind-dw2.c (execute_cfa_program): Use < again.
12008 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
12010         * predict.c (combine_predictions_for_insn): Avoid division by zero.
12012 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
12014         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
12015         Don't allow -1 - x -> ~x simplifications in the first pass.
12017 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
12019         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
12020         arguments.
12021         (altivec_expand_binop_builtin): Same.
12022         (altivec_expand_unop_builtin): Same.
12023         (print_operand): Fix typo.
12024         (bdesc_1arg): Add vupk* variants.
12026         * rs6000.h (rs6000_builtins): Add vupk* enums.
12028         * rs6000.md: Add altivec_vupk* variants.
12030 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
12032         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
12033         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
12034         and last update dates.
12036 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
12038         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
12040 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
12042         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
12043         * config/avr/avr.h (CPP_SPEC): Likewise.
12044         (LINK_SPEC): Likewise.
12045         (CRT_BINUTILS_SPECS): Likewise.
12046         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12047         * doc/invoke.texi (AVR Options): Document them.
12049 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
12051         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
12052         LABEL_NUSES.
12054 2002-01-07  Graham Stott  <grahams@redhat.com>
12056         * config/i386/i386.h: Update copyright date.
12057         (HALF_PIC_PTR): Add parenthesis.
12058         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
12059         (CONSTANT_ALIGNMENT): Add parenthesis.
12060         (DATA_ALIGNMENT): Likewise.
12061         (LOCAL_ALIGNMENT): Likewise.
12062         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
12063         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
12064         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
12065         (HARD_REGNO_NREGS): Add paranethesis.
12066         (VALID_SSE_REG_MODE): Whitespace.
12067         (VALID_MMX_REG_MODE): Whitespace.
12068         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
12069         (ix86_hard_regno_mode_ok): Add parenthesis.
12070         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
12071         (RETURN_IN_MEMORY): Whitespace.
12072         (N_REG_CLASSES): Add parenthesis.
12073         (INTEGER_CLASS_P): Add parenthesis and wrap.
12074         (FLOAT_CLASS_P): Likewise.
12075         (SSE_CLASS_P): Likewise.
12076         (MMX_CLASS_P): Likewise.
12077         (MAYBE_INTEGER_CLASS_P): Likewise.
12078         (MAYBE_FLOAT_CLASS_P): Likewise.
12079         (MAYBE_SSE_CLASS_P): Likewise.
12080         (MAYBE_MMX_CLASS_P): Likewise.
12081         (Q_CLASS_P): Likewise.
12082         (GENERAL_REGNO_P): Uppercase macro parameter.
12083         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
12084         (FP_REGNO_P): Likewise.
12085         (ANY_FP_REGNO_P): Uppercase macro parameter.
12086         (SSE_REGNO_P): Likewise.
12087         (SSE_REGNO): Likewise.
12088         (SSE_REG_P): Likewise.
12089         (SSE_FLOAT_MODE_P): Likewise.
12090         (MMX_REGNO_P): Likewise.
12091         (MMX_REG_P):Likewise.
12092         (STACK_REG_P): Likewise.
12093         (NON_STACK_REG_P): Likewise.
12094         (STACK_TOP_P): Likewise.
12095         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
12096         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
12097         (SECONDARY_MEMORY_NEEDED): Likewise.
12098         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
12099         (MD_ASM_CLOBBERS): Whitespace and wrap.
12100         (MUST_PASS_IN_STACK): Whitespace and wrap.
12101         (RETURN_POPS_ARGS): Add parenthesis.
12102         (INIT_CUMULATIVE_ARGS): Likewise.
12103         (FUNCTION_ARG): Likewise.
12104         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
12105         (SETUP_INCOMING_VARARGS): Likewise.
12106         (BUILD_VA_LIST_TYPE):  Add parenthesis.
12107         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
12108         parenthsis.
12109         (EXPAND_BUILTIN_VA_ARG): Likewise.
12110         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
12111         (INITIALIZE_TRAMPOLINE): Add parenthesis.
12112         (INITIAL_ELIMINATION_OFFSET): Likewise.
12113         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
12114         (REGNO_OK_FOR_BASE_P): Likewise.
12115         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
12116         (REGNO_OK_FOR_DIREG_P): Likewise.
12117         (REG_OK_FOR_INDEX_P): Whitespace.
12118         (REG_OK_FOR_BASE_P): Whitespace.
12119         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
12120         parenthesis.
12121         (FIND_BASE_TERM): Fix typo.
12122         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
12123         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
12124         (SYMBOLIC_CONST; Whitespace.
12125         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
12126         (ENCODE_SECTION_INFO): Whitespace.
12127         (FINALIZE_PIC): Remove do { ... } while (0).
12128         (PROMOTE_MODE): Wrap in do { ... } while (0).
12129         (CONST_COSTS): Whitespace.
12130         (RTX_COSTS): Add paramethesis, whitespace and wrap.
12131         (REGISTER_MOVE_COST): Add parenthesis.
12132         (MEMORY_MOVE_COST): Likewise.
12133         (EXTRA_CC_MODES): Whitespace.
12134         (SELECT_CC_MODE): Add parenthesis and whitespace.
12135         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
12136         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
12137         (ASM_OUTPUT_LABEL): Add paramethesis.
12138         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
12139         (ASM_OUTPUT_REG_POP): Likewise.
12140         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
12141         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
12143         * config/i386/i386.c: Update copyright.
12144         (CHECK_STACK_LIMIT): Add parenthesis.
12145         (AT_BP): Uppercase macro parameter.
12146         (x86_64_int_parameter_registers): Constify.
12147         (x86_64_int_return_registers): Likewise.
12148         (ix86_compare_op0): Use rtx.
12149         (construct_container): Constify INTREG parameter.
12150         (function_arg): Use rtx.
12152         * diagnostic.h: Update copyright date.
12153         (output_buffer_state): Add parenthesis.
12154         (output_buffer_format_args): Likewise.
12156         * combine.c (combine_instructions): Replace XEXP (links, 0)
12157         with link.
12159 2002-01-06  H.J. Lu <hjl@gnu.org>
12161         * cfgcleanup.c (thread_jump): Fix 2 typos.
12163 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
12165         * config.gcc: Add support for --enable-altivec.
12167 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12169         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
12171 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
12173         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
12174         __objc_class_name_*.
12176 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12178         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
12180 2002-01-06  Richard Henderson  <rth@redhat.com>
12182         * reorg.c (emit_delay_sequence): Remove death notes, not merely
12183         nop them out.  Increment label reference count for REG_LABEL.
12184         (fill_slots_from_thread): Frob label reference count around
12185         delete_related_insns.
12187 2002-01-05  Richard Henderson  <rth@redhat.com>
12189         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
12190         jump threading.
12192 2002-01-05  Richard Henderson  <rth@redhat.com>
12194         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
12195         * integrate.c (output_inline_function): Likewise.
12196         * toplev.c (rest_of_compilation): Do it here instead.  Move call
12197         to remove_unnecessary_notes after emitting abstract instance.
12198         Force an emitted nested function to have its parent emited as well.
12199         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
12200         for null.
12201         (rtl_for_decl_location): Do not look at reload data structures
12202         before reload has run.
12204 2002-01-05  Kazu Hirata  <kazu@hxi.com>
12206         * cse.c: Fix formatting.
12207         * dwarf2asm.c: Likewise.
12208         * dwarf2out.c: Likewise.
12209         * explow.c: Likewise.
12210         * expmed.c: Likewise.
12211         * function.c: Likewise.
12212         * gcov.c: Likewise.
12213         * gencheck.c: Likewise.
12214         * genrecog.c: Likewise.
12215         * ggc-common.c: Likewise.
12216         * ggc-page.c: Likewise.
12217         * global.c: Likewise.
12219 2002-01-05  Kazu Hirata  <kazu@hxi.com>
12221         * combine.c: Fix formatting.
12223 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
12225         PR middle-end/1557
12226         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
12228 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
12230         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
12231         as 1 for __powerpc64__ as well.
12233         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
12235         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
12236         return it.
12238 2002-01-05  Daniel Berlin  <dan@dberlin.org>
12240         * lcm.c: Revert change, due to performance regression it causes on
12241         SPEC because it's slightly more conservative (sigh, I hate
12242         edge-based LCM).
12244 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
12246         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
12248 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
12250         * doc/cppinternals.texi: Update.
12252 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
12254         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
12255         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
12256         negatives.
12257         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
12258         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
12259         kludge for pre-october-14th mmix versions to handle new-found bug
12260         with PUSHJ/PUSHGO and the register stack.
12261         * config/mmix/mmix.h (struct machine_function): Rename member
12262         has_call_value_without_parameters to has_call_without_parameters.
12263         All referers changed.
12264         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
12265         TARGET_MASK_BRANCH_PREDICT): New macros.
12266         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
12267         -mno-reg-stack-fill-bug-workaround.
12268         * config/mmix/mmix.md ("call"): Set struct machine member
12269         has_call_without_parameters.
12271 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
12273         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
12275 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
12277         * cfgcleanup.c: Include tm_p.h
12278         (mark_effect): Fix handling of hard register; fix handling of SET
12280 2002-01-04  Kazu Hirata  <kazu@hxi.com>
12282         * config/h8300/h8300.md (anonymous patterns): Check that
12283         operands are registers before using REGNO on them.
12285 2002-01-03  Roland McGrath  <roland@frob.com>
12287         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
12289 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
12291         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
12292         * c-common.h (genrtl_expr_stmt_value): Likewise.
12293         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
12294         (expand_expr_stmt_value): Add maybe_last argument.
12295         Don't warn about statement with no effect if it is the last statement
12296         in expression statement.
12297         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
12298         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
12299         expand_expr_stmt_value.
12300         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
12301         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
12302         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
12303         as maybe_last to expand_expr_stmt_value.
12305 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
12307         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
12308         be passed in, do not build it.
12309         (c_begin_if_stmt): New function.
12310         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
12311         * c-common.h (c_expand_start_cond): Update prototype.
12312         (c_begin_if_stmt): Prototype new function.
12313         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
12314         * c-parse.in (if_prefix): Use c_begin_if_stmt,
12315         c_begin_while_stmt and c_finish_while_stmt_cond.
12317 2002-01-04  William Cohen  <wcohen@redhat.com>
12319         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
12320         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
12321         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
12322         * config/pa/som.h (ASM_FILE_START): Likewise.
12324 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
12326         * lcm.c: Include df.h.
12327         Add available_transfer_function prototype.
12328         (compute_available): Rework to use iterative dataflow framework.
12329         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
12330         with bb_info in df.h
12331         (available_transfer_function): New function.
12333         * Makefile.in (lcm.o): add df.h to dependencies.
12335 2002-01-04  Richard Henderson  <rth@redhat.com>
12337         * config/alpha/alpha.c (some_operand): Accept HIGH.
12338         (input_operand): Likewise; accept simple references to globals.
12339         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
12340         (alpha_const_double_ok_for_letter_p): Likewise.
12341         (alpha_extra_constraint): Likewise.
12342         (alpha_preferred_reload_class): Likewise.  Do not force
12343         symbolic constants to memory.
12344         (alpha_legitimate_address_p): Accept simple references
12345         to small_symbolic_operand.
12346         (alpha_legitimize_address): New arg scratch.  Be prepared to be
12347         called when no_new_pseudos.  Emit simple symbolic references.
12348         Split integers into low, high, and rest.
12349         (alpha_expand_mov): Use alpha_legitimize_address.
12350         (some_small_symbolic_mem_operand): New.
12351         (split_small_symbolic_mem_operand): New.
12352         * config/alpha/alpha-protos.h: Update.
12353         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
12354         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
12355         (EXTRA_CONSTRAINT): Likewise.
12356         (PREFERRED_RELOAD_CLASS): Likewise.
12357         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
12358         (PREDICATE_CODES): Update.
12359         * config/alpha/alpha.md: New post-reload splitters to convert
12360         simplfied symbolic operands to the form that references $29.
12361         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
12362         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
12364 2002-01-03  Richard Henderson  <rth@redhat.com>
12366         * local-alloc.c (function_invariant_p): Update commentary.
12368 2002-01-04  H.J. Lu <hjl@gnu.org>
12370         * toplev.c (rest_of_compilation): Fix a typo when calling
12371         cleanup_cfg.
12373 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12375         * c-common.c: Fix formatting.
12376         * diagnostic.c: Likewise.
12377         * doloop.c: Likewise.
12378         * dwarf2out.c: Likewise.
12380 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12382         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
12383         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
12385 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
12387         * cpperror.c: Update comments and copyright.
12388         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
12389         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
12391 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12393         * collect2.c (main): Use strcmp when testing for "-shared".
12395 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
12397         * cppmacro.c: Don't include intl.h.  Update comments.
12398         (new_number_token): Allocate enough buffer for 64-bit unsigned
12399         integers; update prototype.
12400         * cppmain.c: Update comments.
12402 2002-01-03  William Cohen  <wcohen@redhat.com>
12404         * function.h (struct function): Add profile.
12405         (current_function_profile): New.
12406         doc/extend.texi: Update documentation.
12407         * final.c (final_start_function): Use current_function_profile
12408         instead of profile_flag.
12409         (profile_after_prologue): Likewise.
12410         * function.c (expand_function_start): Likewise.
12411         (expand_function_start): Likewise.
12412         * config/alpha/alpha.c (direct_call_operand):
12413         (alpha_does_function_need_gp): Likewise.
12414         (alpha_expand_prologue): Likewise.
12415         * config/arm/arm.c (arm_expand_prologue): Likewise.
12416         thumb_expand_prologue: Likewise.
12417         * config/d30v/d30v.c (d30v_stack_info): Likewise.
12418         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
12419         (fr30_expand_prologue): Likewise.
12420         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
12421         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
12422         * config/i386/i386.h (FINALIZE_PIC): Likewise.
12423         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
12424         * config/i960/i960.c (i960_output_function_prologue): Likewise.
12425         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
12426         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
12427         (m32r_expand_prologue): Likewise.
12428         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
12429         (m88k_expand_prologue): Likewise.
12430         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
12431         * config/mips/mips.c (compute_frame_size): Likewise.
12432         (mips_expand_prologue): Likewise.
12433         (mips_can_use_return_insn): Likewise.
12434         * config/pa/elf.h (ASM_FILE_START): Likewise.
12435         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
12436         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
12437         * config/pa/som.h (ASM_FILE_START): Likewise.
12438         * config/romp/romp.c (romp_using_r14): Likewise.
12439         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
12440         (rs6000_stack_info): Likewise.
12441         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
12442         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
12443         * config/v850/v850.c (compute_register_save_size): Likewise.
12445 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
12447         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
12448         gen_lowpart_common fails, use gen_lowpart_SUBREG.
12450 2002-01-03  Turly O'Connor  <turly@apple.com>
12452         * darwin.c (machopic_output_possible_stub_label): Don't generate
12453         stub routines for pseudo-stubs which we've just defined.
12455 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12457         * builtins.c: Fix formatting.
12458         * c-typeck.c: Likewise.
12459         * combine.c: Likewise.
12460         * expr.c: Likewise.
12461         * loop.c: Likewise.
12463 2002-01-03  Andreas Schwab  <schwab@suse.de>
12465         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
12466         and return true if _cpp_push_next_buffer pushed a new include
12467         file.
12468         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
12469         _cpp_pop_file_buffer did not push a new file.
12470         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
12472 2002-01-02  Eric Christopher  <echristo@redhat.com>
12474         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
12475         FIND_REG_INC_NOTE call. Update copyright.
12476         * loop.c (canonicalize_condition): Ditto.
12477         * reorg.c (delete_scheduled_jump): Ditto.
12479 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12481         * gcse.c: Fix formatting.
12483 2002-01-03  Graham Stott  <grahams@redhat.com>
12485         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
12486         forward defs for struct tags rtx_def, union_tree, rtvec_def
12487         also output corresponding typedefs for rtx, tree, and rtvec.
12489         * system.h: Move forward defs for struct tags rtx_def, union_tree,
12490         rtvec_def along with corresponding typedefs for rtx, tree, and
12491         rtvec to config.h, hconfig.h, tconfig.h.
12493 2002-01-03  Graham Stott  <grahams@redhat.com>
12495         * tree.h: Update copyright date.
12496         (IS_EXPR_CODE_CLASS): Add parenthesis.
12497         (TREE_SET_CODE): Add whitespace.
12498         (TREE_CHECK): Add parenthesis.
12499         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
12500         (CST_OR_CONSTRUCTOR_CHECK):
12501         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
12502         (TREE_SYMBOL_REFERENCED): Whitespace.
12503         (INT_CST_LT): Likewise.
12504         (INT_CST_LT_UNSIGNED): Likewise.
12505         (tree_real_cst): Unwrap comment.
12506         (tree_string): Likewise.
12507         (tree_complex): Likewise.
12508         (IDENTIFIER_POINTER): correct cast.
12509         (SAVE_EXPR_CONTEXT): Whitespace.
12510         (EXPR_WFL_FILENAME_NODE): Likewise.
12511         (EXPR_WFL_FILENAME): Remove parenthesis.
12512         (DECL_ORIGIN): Add parenthesis.
12513         (DECL_FROM_INLINE): Use NULL_TREE.
12514         (build_int_2): Whitespace.
12515         (build_type_variant): Add parenthesis.
12517         * gcc/jcf-parse.c: Update copyright date.
12518         (yyparse): Constify resource_filename.
12520 2002-01-03  Graham Stott  <grahams@redhat.com>
12522         * rtl.h: Update copyright date.
12523         (RTL_CHECK1): Wrap long line.
12524         (RTL_CHECK2): Likewise.
12525         (RTL_CHECKC1): Wrap long line and whitespace.
12526         (RTL_CHECKC2): Likewise.
12527         (XWINT): Whitespace.
12528         (XINT): Likewise.
12529         (XSTR): Likewise.
12530         (XEXP): Likewise.
12531         (XVEC): Likewise.
12532         (XMODE): Likewise.
12533         (XBITMAP): Likewise.
12534         (XTREE): Likewise.
12535         (XBBDEF): Likewise.
12536         (XTMPL): Likewise.
12537         (X0WINT): Likewise.
12538         (X0INT):Likewise.
12539         (X0UINT): Likewise.
12540         (X0STR): Likewise.
12541         (X0EXP): Likewise.
12542         (X0VEC): Likewise.
12543         (X0MODE): Likewise.
12544         (X0BITMAP): Likewise.
12545         (X0TREE): Likewise.
12546         (X0BBDEF): Likewise.
12547         (X0ADVFLAGS): Likewise.
12548         (X0CSELIB): Likewise.
12549         (X0MEMATTR): Likewise.
12550         (XCWINT): Likewise.
12551         (XCINT): Likewise.
12552         (XCUINT): Likewise.
12553         (XCSTR): Likewise.
12554         (XCEXP): Likewise.
12555         (XCVEC): Likewise.
12556         (XCMODE): Likewise.
12557         (XCBITMAP): Likewise.
12558         (XCTREE): Likewise.
12559         (XCBBDEF): Likewise.
12560         (XCADVFLAGS): Likewise.
12561         (XCCSELIB): Likewise.
12562         (XC2EXP): Likewise.
12563         (INSN_UID): Likewise.
12564         (PREV_INSN): Likewise.
12565         (PATTERN): Likewise.
12566         (INSN_CODE): Likewise.
12567         (PUT_REG_NOTE_KIND): Likewise.
12568         (CODE_LABEL_NUMBER): Likewise.
12569         (NOTE_SOURCE_FILE): Likewise.
12570         (NOTE_BLOCK): Likewise.
12571         (NOTE_EH_HANDLER): Likewise.
12572         (NOTE_RANGE_INFO): Likewise.
12573         (NOTE_LIVE_INFO): Likewise.
12574         (NOTE_BASIC_BLOCK): Likewise.
12575         (NOTE_EXPECTED_VALUE): Likewise.
12576         (NOTE_LINE_NUMBER): Likewise.
12577         (LABEL_NAME): Likewise.
12578         (LABEL_NUSES): Likewise.
12579         (LABEL_ALTERNATE_NAME): Likewise.
12580         (ADDRESSOF_DECL): Likewise.
12581         (JUMP_LABEL): Likewise.
12582         (LABEL_NEXTREF): Likewise.
12583         (REGNO): Likewise.
12584         (ORIGINAL_REGNO: Likewise.
12585         (HARD_REGISTER_NUM_P): Add parenthesis.
12586         (SUBREG_REG): Whitespace.
12587         (SUBREG_BYTE): Likewise.
12588         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
12589         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
12590         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
12591         (ASM_OPERANDS_INPUT_VEC): Likewise.
12592         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
12593         (ASM_OPERANDS_INPUT): Likewise.
12594         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
12595         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
12596         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
12597         (ASM_OPERANDS_INPUT_MODE): Likewise.
12598         (ASM_OPERANDS_SOURCE_FILE): Likewise.
12599         (ASM_OPERANDS_SOURCE_LINE): Likewise.
12600         (MEM_SET_IN_STRUCT_P): Minor reformat.
12601         (TRAP_CONDITION): Whitespace.
12602         (TRAP_CODE): Likewise.
12603         (COND_EXEC_TEST): Likewise.
12604         (COND_EXEC_CODE): Likewise.
12605         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
12606         (PHI_NODE_P): Add parenthesis.
12607         (plus_constant): Whitespace and add parenthesis.
12609 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12611         * config/avr/avr.c: Fix comment typos.
12612         * config/c4x/c4x.md: Likewise.
12613         * config/dsp16xx/dsp16xx.h: Likewise.
12614         * config/dsp16xx/dsp16xx.md: Likewise.
12615         * config/i386/i386.md: Likewise.
12616         * config/ia64/ia64.c: Likewise.
12617         * config/m32r/m32r.h: Likewise.
12618         * config/m68hc11/m68hc11.md: Likewise.
12619         * config/mmix/mmix.c: Likewise.
12620         * config/mn10200/mn10200.c: Likewise.
12621         * config/romp/romp.c: Likewise.
12622         * config/sh/sh.c: Likewise.
12623         * config/stormy16/stormy16.c: Likewise.
12624         * config/stormy16/stormy16.h: Likewise.
12625         * config/stormy16/stormy16.md: Likewise.
12627 2002-01-03  Graham Stott  <grahams@redhat.com>
12629         * loop.h: Update copyright date.
12630         (LOOP_MOVABLES): Fix typo.
12631         (LOOP_REGS): Likewise.
12632         (LOOP_IVS): Likewise.
12634 2002-01-03  Graham Stott  <grahams@redhat.com>
12636         * cppinit.c: Update copyright date.
12637         Don't include output.h
12638         * Makefile.in: Update copyright date.
12639         Update dependency.
12641 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12643         PR c/5226
12644         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
12645         (-pthread) Add to RS/6000 options.
12647 2002-01-02  Kazu Hirata  <kazu@hxi.com>
12649         * except.c: Fix comment typos.
12650         * loop.c: Likewise.
12651         * varasm.c: Likewise.
12652         * doc/tm.texi: Fix a typo.
12654 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
12656         * c-typeck.c (output_init_element): Allow initializing static storage
12657         duration objects with compound literals.
12659 2002-01-02  Richard Henderson  <rth@redhat.com>
12661         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
12662         after abusing it.
12664 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12666         * gcc.c (default_compilers): Const-ify.
12667         * mips-tdump.c (stab_names): Likewise.
12668         * mips-tfile.c (map_coff_types, map_coff_storage,
12669         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
12670         pseudo_ops_t, pseudo_ops): Likewise.
12671         * protoize.c (default_include): Likewise
12673         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
12674         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
12675         Add array size in declaration.
12676         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
12677         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
12678         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
12679         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
12680         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
12681         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
12682         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
12683         emtens, make_nan): Const-ify.
12684         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
12685         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
12687 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
12689         * config.gcc (ia64-*-*): Set extra_headers.
12690         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
12691         * config/alpha/t-osf: Remove.
12692         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
12694 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
12696         * config/rs6000/t-aix43: Revert previous change.
12698 2002-01-02  Jason Merrill  <jason@redhat.com>
12700         * c-decl.c (c_expand_body): Call outlining_inline_function when
12701         emitting an inline function out of line.
12703 2002-01-02  Richard Henderson  <rth@redhat.com>
12705         * dwarf2out.c (limbo_die_node): Add created_for member.
12706         (new_die): New argument created_for.  Update all callers.
12707         (mark_limbo_die_list): New.
12708         (dwarf2out_init): Register limbo_die_list as a root.
12709         (dwarf2out_finish): Force insert limbo dies into their function
12710         context.
12712 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
12714         PR c++/5089
12715         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
12717 2002-01-02  Kazu Hirata  <kazu@hxi.com>
12719         * config/h8300/fixunssfsi.c: Update copyright.
12720         Fix comment typos.
12721         Fix formatting.
12722         * config/h8300/h8300.c: Update copyright.
12723         Eliminate warnings.
12725 2002-01-02  Kazu Hirata  <kazu@hxi.com>
12727         * config/romp/romp.c: Fix comment formatting.
12728         * config/romp/romp.h: Likewise.
12729         * config/romp/romp.md: Likewise.
12730         * config/s390/s390.c: Likewise.
12731         * config/stormy16/stormy16.c: Likewise.
12732         * config/stormy16/stormy16.h: Likewise.
12734 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
12736         * c-common.h (genrtl_expr_stmt_value): Declare.
12737         * c-semantics.c (genrtl_goto_stmt): Redirect to...
12738         (genrtl_goto_stmt_value): ... this new function.  Pass new
12739         argument down to expand_expr_stmt_value, taking
12740         TREE_ADDRESSABLE into account.
12741         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
12742         STMT_EXPR as addressable, i.e., one whose result we want.
12743         * expr.c (expand_expr): Don't save expression statement value
12744         of labeled_blocks or loop_exprs.
12745         * stmt.c (expand_expr_stmt): Redirect to...
12746         (expand_expr_stmt_value): ... this new function.  Use new
12747         argument to tell whether to save expression value.
12748         (expand_end_stmt_expr): Reset last_expr_type and
12749         last_expr_value if we don't have either.
12750         * tree-inline.c (declare_return_variable): Mark its use
12751         statement as addressable.
12752         * tree.h: Document new use of TREE_ADDRESSABLE.
12753         (expand_expr_stmt_value): Declare.
12755 2002-01-01  Tom Rix  <trix@redhat.com>
12757         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
12758         rs6000_emit_allocate_stack.
12760 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
12762         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
12763         ${srcdir}/ginclude/ to every entry in extra_headers.
12764         * configure: Regenerate.
12765         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
12766         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
12767         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
12768         * ginclude/proto.h: Rename to config/convex/proto.h.
12770 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12772         * attribs.c (handle_vector_size_attribute): Use host_integerp
12773         and tree_int_cst; remove warnings.
12774         * caller-save.c (insert_restore): Add cast to get rid of warning.
12775         (insert_save): Likewise.
12776         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
12777         * regmove.c (find_matches): Add temporary var to kill a warning.
12779 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
12781         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
12782         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
12783         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
12784         (vms-dwarf2eh.o): Add Makefile rule.
12785         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
12786         * config/alpha/vms-dwarf2eh.asm: New file.
12788         * gcc.c (delete_if_ordinary): Delete all versions.
12790 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
12792         * config/mmix/mmix.md: Update FIXME to not mention
12793         define_constants.
12794         (MMIX_rJ_REGNUM): New define_constants constant.
12795         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
12796         "*movdicc_real"): Adjust contraints formatting.
12797         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
12798         for branch prediction.
12799         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
12800         output template.
12801         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
12802         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
12803         number.  Delete related FIXMEs.
12804         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
12805         from number to MMIX_rJ_REGNUM.
12806         (TARGET_MASK_BRANCH_PREDICT): New.
12807         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
12808         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
12809         value.  Add -mbranch-predict and -mno-branch-predict.
12810         (TARGET_VERSION): Drop date.
12811         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
12812         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
12813         for finding out global symbols.
12814         (mmix_asm_output_labelref): Revert condition for global symbol.
12815         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
12816         (mmix_print_operand_punct_valid_p): A '+' is valid.
12818 See ChangeLog.6 for earlier changes.