* config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
[official-gcc.git] / gcc / ChangeLog
blob0e78d529761b2ac3a98a14c2aed1007b8f86744c
1 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
3         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
4         -D__arch64__.  Add -D_LP64.
5         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
6         from sparc.h.
7         (CPP_ARCH64_SPEC): Likewise.
8         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
9         (NO_BUILTIN_SIZE_TYPE): Undef.
11 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
13         * genautomata.c (min_issue_delay_pass_states): Change return type
14         in the prototype.
15         (min_issue_delay_pass_states): Change the algorithm.
16         (min_issue_delay): Set up min_insn_issue_delay for the state.
17         (output_min_issue_delay_table): Interchange the nested loops and
18         and initiate min_insn_issue_delay for states.
19         
20 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
22         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
23         jump is simplejump.
25 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
27         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
28         sequence.
30 2002-05-03  Richard Henderson  <rth@redhat.com>
32         PR opt/6534
33         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
34         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
35         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
36         code before JUMP, not EARLIEST.
38 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
40         * c-format.c (check_format_info_main): Don't check for presence of
41         parameter for * width until after operand number has been read,
42         and only check for it if format parameters are available.
43         Fixes PR c/6547.
45 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
47         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
48         (LINK_SPEC): Undef before defining.
50 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
52         PR preprocessor/6489
53         * tradcpp.c (fixup_newlines): New.
54         (main, finclude): Use it.
56 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
58         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
59         * config/mips/mips.c (mips_unique_section): Strip encoding from
60         decl name.
62 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
64         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
65         mode.
67 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
69         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
70         (Specific): Removed buildstats references.
71         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
72         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
73         Accomodate Solaris versions beyond 8.
74         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
75         (Specific, *-*-solaris2.8): Removed, obsolete.
77 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
79         PR target/6542
80         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
81         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
82         fill leaf_reg_remap with identity.
83         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
85 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
87         * config/h8300/crti.asm: Remove trailing spaces.
88         * config/h8300/h8300.c: Likewise.
89         * config/h8300/lib1funcs.asm: Likewise.
91 2002-05-02  Jason Merrill  <jason@redhat.com>
93         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
94         * c-decl.c (c_init_decl_processing): Use it.
95         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
96         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
97         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
99 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
101         * regrename.c: Fix formatting.
102         * tree.c: Likewise.
104 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
106         * i386.md (attribute memory): Handle compares properly.
108 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
110         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
111         to none.
113 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
115         * function.c: Fix formatting.
117 2002-05-02  Jan Hubicka  <jh@suse.cz>
119         * haifa-sched.c (schedule_insn): Print table of instructions and
120         reservations.
121         (sched_block): Do not print ready list at verbosity level 1.
122         * sched-vis.c (print_insn): Make global.
123         * sched-ebb.c (ebb_print_insn): Rename from...
124         (print_insn): ... this one.
125         * sched-int.h (print_insn): Declare
127 2002-05-02  Richard Henderson  <rth@redhat.com>
129         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
130         emitted by cycle_display.
132 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
134         * doc/install.texi (*-*-freebsd*): Update to latest status.
136 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
138         PR target/6540
139         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
140         * config/float-sparc.h: Assume 128-bit long double if
141         __LONG_DOUBLE_128__ is defined.
143 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
145         * genattrtab.c (write_function_unit_info): Add a dummy element
146         when num_units == 0.
148 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
150         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
151         TYPE_MODE (double_type_node) instead of DFmode.
153 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
155         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
156         jumps post reload.
157         * toplev.c (rest_of_compilation): Revert Richard's patch.
159 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
161         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
163 2002-05-02  Catherine Moore  <clm@redhat.com>
165         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
167 2002-05-02  Kazu Hirata  <kazu@hxi.com>
169         * combine.c: Fix comment typos.
170         * expr.c: Likewise.
171         * genautomata.c: Likewise.
172         * stmt.c: Likewise.
173         * tree.h: Likewise.
175 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
177         * doc/install.texi: State GNAT version requirements.
179 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
181         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
182         of the frame pointer or arg pointer register which strict register
183         checking is not enabled.
185 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
187         * gcc.dg/altivec-8.c: New.
189         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
190         PRE_INC and PRE_DEC for altivec modes.
192 2002-05-01  Bruce Korb  <bkorb@gnu.org>
194         * fixinc/check.tpl(set-writable): make sure the function exists first
195         * fixinc/inclhack.def(alpha_assert): fix test_text
196         * fixinc/tests/base/assert.h: add in missing result
198 2002-05-01  Jeff Law  <law@redhat.com>
200         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
201         'T' constraint.
203 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
205         * dbxout.c (dbxout_type): Emit size information for range types,
206         as well, but only when using GDB extensions.
208 2002-05-01  Richard Henderson  <rth@redhat.com>
210         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
211         target-independent gnu binutils date test.
213 2002-05-01  Richard Henderson  <rth@redhat.com>
215         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
216         info before expunging the block.
218 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
220         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
221         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
222         -M -or -MM is in effect.
224 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
226         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
227         A29k configurations.
228         * doc/install.texi: Update to match.
230 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
232         PR bootstrap/6514
233         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
234         for duplicates. Always loop over whole list.
236 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
238         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
240 2002-05-01      Joel Sherrill <joel@OARcorp.com>
242         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
243         support routines.
245 2002-05-01      Joel Sherrill <joel@OARcorp.com>
247         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
249 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
251         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
252         (nabs_nopower): Same.
253         (floatdisf2): New pattern.
254         (absdi2): Convert to define_insn_and_split.
255         (nabsdi2): Same.
256         (trunctfsf2): Same.
257         (floatditf2): Same.
258         (floatsitf2): Same.
259         (fix_trunctfdi2): Same.
260         (fix_trunctfsi2): Same.
262 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
264         * doc/install.texi: Update Texinfo version requirement
265         documentation.
267 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
269         PR target/6512, PR target/5628
270         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
271         when memory is not aligned.
272         (movdf_insn_v9only_vis): Likewise.
273         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
274         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
275         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
277 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
279         * gcc.dg/altivec-7.c: New.
281         * config/rs6000/altivec.h: Cleanup.
283 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
285         * doc/invoke.texi (Option Summary): Add -mvrsave=.
286         (RS/6000 and PowerPC Options): Document -mvrsave=.
288         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
289         (rs6000_altivec_vrsave_string): Same.
290         (rs6000_override_options): Call rs6000_parse_vrsave_option.
291         (rs6000_parse_vrsave_option): New.
292         (rs6000_stack_info): Only generate vrsave instructions when
293         TARGET_ALTIVEC_VRSAVE.
295         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
296         (rs6000_altivec_vrsave_string): Define extern.
297         (rs6000_altivec_vrsave): Same.
298         (TARGET_ALTIVEC_VRSAVE): New.
300 2002-04-30  Richard Henderson  <rth@redhat.com>
302         PR opt/6516
303         * toplev.c (rest_of_compilation): Don't run cross-jump before
304         bb-reorder.
306 2002-04-30  Tom Rix  <trix@redhat.com>
308         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
309         check which_alternative.
311 2002-04-30  Kazu Hirata  <kazu@hxi.com>
313         * cpplex.c: Fix comment formatting.
314         * function.c: Likewise.
315         * integrate.c: Likewise.
316         * regrename.c: Likewise.
317         * sibcall.c: Likewise.
318         * simplify-rtx.c: Likewise.
319         * tree-inline.c: Likewise.
321 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
323         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
324         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
325         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
326         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
327         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
328         * pa/x-ada: New file.  Define ADA_CFLAGS.
330 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
332         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
333         from MMIX_LAST_REGISTER_FILE_REGNUM.
334         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
335         (struct machine_function): New member highest_saved_stack_register
336         previously static variable in mmix.c.
337         (MACHINE_DEPENDENT_REORG): Define.
338         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
339         (MMIX_OUTPUT_REGNO): New.
340         (mmix_target_asm_function_prologue): Move calculation of last used
341         saved-stack-register into...
342         (mmix_machine_dependent_reorg): New function.  Update to also handle
343         !TARGET_ABI_GNU.
344         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
345         register names, simplify somewhat by new variable regno.
346         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
347         register.
348         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
349         emitting register names.
350         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
351         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
352         Remove fixed FIXME.
353         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
354         Declare.
356         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
358 2002-04-30  Richard Henderson  <rth@redhat.com>
360         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
361         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
362         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
363         emit_tfmode_cvt): New.
364         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
365         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
366         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
367         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
368         * config/sparc/sparc-protos.h: Update.
370 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
372         * install.texi (Final install): Add to the list of info to include
373         in a report of a successful bootstrap, and add link to 3.1 list.
375 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
377         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
378         (mode): Add vector modes
379         (i387): Kill attribute.
380         (unit): New attribute.
381         (length_immediate): Grok new types.
382         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
383         (modrm): Use "unit".
384         (memory): Handle MMX/SSE properly.
385         (scheduling descriptions): Kill uses of fop1.
386         (sse, mmx, fp patterns): Set type and mode properly.
388 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@cygnus.com)
390         * pa.c (override_options): Default to PA8000 scheduling.
391         * doc/invoke.texi (HP-PA options): Mention newly added 7300
392         scheduling parameter.
394         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
395         handling of double precision multiplies.
397         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
398         fpdiv and fpsqrt instructions.
399         (7200 & 7300 scheduling): Fix typo in handling of
400         store-load and store-store penalties.
402 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
404         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
405         mips.  Add two missing commas.
407 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
409         * doc/contrib.texi (Contributors): Update Paolo Carlini's
410         and Benjamin Kosnik's entries.
412 2002-04-29  David S. Miller  <davem@redhat.com>
414         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
415         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
416         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
417         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
419 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
421         * combine.c (find_split_point): Use gen_int_mode.
423 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
425         Merging code from dfa-branch:
427         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
429         * genautomata.c (output_reserv_sets): Fix typo.
431         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
433         * genautomata.c (output_reserv_sets): Remove
434         next_cycle_output_flag.
436         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
438         * sched-rgn.c (init_ready_list): Make the DFA code handle
439         USE/CLOBBER insns in the same way as the traditional
440         scheduler.
441         (new_ready): Similarly..
443         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
445         * haifa-sched.c (schedule_block): Change the DFA state only after
446         issuing insn.
448         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
450         * pa.c (hppa_use_dfa_pipeline_interface): New function.
451         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
452         (override_options): Add PA7300 scheduling support.
453         (pa_adjust_cost): Update various comments.  Properly
454         handle anti and output dependencies when using the
455         DFA scheduler.
456         (pa_issue_rate): Add PA7300 scheduling support.
457         (pa_can_combine_p): Call extract_insn before calling
458         constrain_operands (taken from mainline tree).
459         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
460         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
461         descriptions using DFA descriptions.  Add PA7300
462         scheduling support.
464         2002-03-30  David S. Miller  <davem@redhat.com>
466         Add UltraSPARC-III DFA scheduling support.
467         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
468         Update FP conditional move on register insn patterns to use it, as
469         appropriate.
470         (define_attr cpu): Add ultrasparc3.
471         (define_attr us3load_type): New, update integer load patterns to
472         set it, as appropriate.
473         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
474         (rest): Add UltraSPARC3 scheduling description.
475         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
476         (PROCESSOR_ULTRASPARC3): New.
477         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
478         ({ASM,CPP}_CPU_SPEC): Likewise.
479         (REGISTER_MOVE_COST): Likewise.
480         (RTX_COSTS): Likewise.
481         * config/sparc/sparc.c (sparc_override_options,
482         sparc_initialize_trampoline, sparc64_initialize_trampoline,
483         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
484         sparc_issue_rate): Likewise.
485         * config/sparc/sol2.h: Likewise.
486         * config/sparc/sol2-sld-64.h: Likewise.
487         * config/sparc/linux64.h: Likewise.
489         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
491         * doc/md.texi: Add comments about usage the latency time for the
492         different dependencies and about case when two or more conditions
493         in different define_insn_reservations returns TRUE for an insn.
495         * doc/md.texi: Add reference for automaton based pipeline
496         description.
498         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
500         * doc/passes.texi: Add missed information about genattrtab.
502         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
504         * genautomata.c (output_automata_list_transition_code): Check
505         automata_list on NULL.
507         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
509         * genautomata.c (output_insn_code_cases,
510         output_automata_list_min_issue_delay_code,
511         output_automata_list_transition_code,
512         output_automata_list_state_alts_code): Comment the functions.
514         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
516         * genautomata.c (automata_list_el_t): New typedef.
517         (get_free_automata_list_el,free_automata_list_el,
518         free_automata_list, automata_list_hash, automata_list_eq_p,
519         initiate_automata_lists, automata_list_start, automata_list_add,
520         automata_list_finish, finish_automata_lists,
521         output_insn_code_cases, output_automata_list_min_issue_delay_code,
522         output_automata_list_transition_code,
523         output_automata_list_state_alts_code, add_automaton_state,
524         form_important_insn_automata_lists): New functions and prototypes.
525         (insn_reserv_decl): Add members important_automata_list and
526         processed_p.
527         (ainsn): Add members important_p.
528         (automata_list_el): New structure.
529         (first_free_automata_list_el, current_automata_list,
530         automata_list_table): New global variables.
531         (create_ainsns): Initiate member important_p.
532         (output_internal_min_issue_delay_func): Generate the switch and
533         call output_insn_code_cases.
534         (output_internal_trans_func, output_internal_state_alts_func):
535         Ditto.
536         (generate): Call initiate_automata_lists.
537         (automaton_states): New global variable.
538         (expand_automata): Call form_important_insn_automata_lists.
539         (write_automata): Call finish_automata_lists.
541         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
543         * genautomata.c (add_excls, add_presence_absence): Check that
544         cpu units in the sets belong the same automaton.
546         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
547         about that cpu units in the sets belong the same automaton.
549         * doc/md.texi: Ditto.
551         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
552                     Nitin Gupta  <niting@noida.hcltech.com>
554         * config/sh/sh.c (sh_use_dfa_interface): New function.
556         (sh_issue_rate): New Function.
557         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
558         TARGET_SCHED_ISSUE_RATE: define.
560         * config/sh/sh.md: Add DFA based pipeline description for SH4.
562         (define_attr insn_class): New attribute used for DFA
563          scheduling.
564         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
565         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
566          cmpeqdi_t): Likewise.
568         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
569          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
570          ex_group.
571         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
573         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
575         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
576         break.
578         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
580         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
581         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
582         necessary.
583         (output_dfa_start_func): Initiate new variable insn_codes_length,
584         (write_automata): Output definition of the new variable.
586         2001-10-02  David S. Miller  <davem@redhat.com>
588         * haifa-sched.c (advance_one_cycle): New function.
589         (schedule_block): Use it.
590         (queue_to_ready): Use it, and also make sure to advance the DFA
591         state on all stall cycles, not just those where insn_queue links
592         are found.
594         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
596         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
597         non-zero if the highest-priority instruction could be scheduled.
598         (choose_ready): Remove last argument from max_issue call.
600         2001-09-28  David S. Miller  <davem@redhat.com>
602         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
603         ultrasparc and 3 for other multi-issue sparcs.
605         2001-09-27  David S. Miller  <davem@redhat.com>
607         * config/sparc/sparc.md (cycle_display): New pattern.
608         * config/sparc/sparc.c (sparc_cycle_display): New.
609         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
611         2001-09-25  David S. Miller  <davem@redhat.com>
613         Convert all of Sparc scheduling to DFA
614         * config/sparc/sparc.md: Kill all define_function_unit
615         directives and replace with DFA equivalent.
616         * config/sparc/sparc.c (ultrasparc_adjust_cost,
617         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
618         ultra_fpmode_conflict_exists, ultra_find_type,
619         ultra_build_types_avail, ultra_flush_pipeline,
620         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
621         ultrasparc_variable_issue, ultrasparc_sched_init,
622         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
623         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
624         ultra_cur_hist, ultra_cycles_elapsed): Kill.
625         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
626         ultrasparc_store_bypass_p): New.
627         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
628         Declare.
630         2001-09-24  David S. Miller  <davem@redhat.com>
632         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
633         ready->vec[foo] not ready[foo].
635         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
637         * doc/md.texi: Correct examples for define_insn_reservations
638         `mult' and `div'.
640         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
642         * genautomata.c (create_automata): Print message about creation of
643         each automaton.
644         (generate): Remove printing meease about creation of
645         automata.
647         2001-09-05  David S. Miller  <davem@redhat.com>
649         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
650         * config/sparc/linux64.h: Likewise.
652         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
654         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
655         schedule_block, sched_init, sched_finish): Add missed calls of
656         use_dfa_pipeline_interface.
658         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
659         Ditto.
661         * sched-vis.c (get_visual_tbl_length): Ditto.
663         2001-08-27  Richard Henderson  <rth@redhat.com>
665         * genattr.c (main): Emit state_t even when not doing scheduling.
667         2001-08-27  Richard Henderson  <rth@redhat.com>
669         * genautomata.c (expand_automata): Always create a description.
671         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
673         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
674         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
675         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
676         RTL constructions.
678         * genattr.c (main): New variable num_insn_reservations.  Increase
679         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
680         pipeline hazard recognizer interface.
682         * genattrtab.h: New file.
684         * genattrtab.c: Include genattrtab.h.
685         (attr_printf, check_attr_test, make_internal_attr,
686         make_numeric_value): Move protypes into genattrtab.h.  Define them
687         as external.
688         (num_dfa_decls): New global variable.
689         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
690         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
691         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
692         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
694         * genautomata.c: New file.
696         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
698         * sched-int.h: (curr_state): Add the external definition for
699         automaton pipeline interface.
700         (haifa_insn_data): Add comments for members blockage and units.
702         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
703         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
704         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
705         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
706         TARGET_SCHED_DFA_POST_CYCLE_INSN,
707         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
708         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
709         macros.
710         (TARGET_SCHED): Use the new macros.
712         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
713         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
714         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
715         dfa_bubble): New members in gcc_target.sched.
717         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
718         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
719         (insn_queue): Redefine it as pointer to array.
720         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
721         INSN_QUEUE_SIZE.
722         (max_insn_queue_index_macro_value): New variable.
723         (curr_state, dfa_state_size, ready_try): New varaibles for
724         automaton interface.
725         (ready_element, ready_remove, max_issue): New function prototypes
726         for automaton interface.
727         (choose_ready): New function prototype.
728         (insn_unit, blockage_range): Add comments.
729         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
730         FUNCTION_UNITS_SIZE == 0.
731         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
732         actual_hazard, potential_hazard): Add comments.
733         (insn_cost): Use cost -1 as undefined value.  Remove
734         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
735         pipeline interface.
736         (ready_element, ready_remove): New functions for automaton
737         interface.
738         (schedule_insn): Add new code for automaton pipeline interface.
739         (queue_to_ready): Add new code for automaton pipeline interface.
740         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
741         (debug_ready_list): Print newline when the queue is empty.
742         (max_issue): New function for automaton pipeline interface.
743         (choose_ready): New function.
744         (schedule_block): Add new code for automaton pipeline interface.
745         Print ready list before scheduling each insn.
746         (sched_init): Add new code for automaton pipeline interface.
747         Initiate insn cost by -1.
748         (sched_finish): Free the current automaton state and finalize
749         automaton pipeline interface.
751         * sched-rgn.c: Include target.h.
752         (init_ready_list, new_ready, debug_dependencies): Add new code for
753         automaton pipeline interface.
755         * sched-vis.c: Include target.h.
756         (get_visual_tbl_length): Add code for automaton interface.
757         (target_units, print_block_visualization):  Add comments.
759         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
760         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
761         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
762         (getruntime.o, genautomata.o): New entries.
763         (genattrtab.o): Add new dependency file genattrtab.h.
764         (genattrtab): Add new dependencies.  Link it with `libm.a'.
765         (getruntime.o, hashtab.o): New entries for canadian cross.
767         * doc/md.texi: Description of automaton based model.
769         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
770         Add comments.
771         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
772         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
773         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
774         TARGET_SCHED_DFA_POST_CYCLE_INSN,
775         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
776         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
777         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
778         hook descriptions.
779         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
780         MAX_DFA_ISSUE_RATE): New macro descriptions.
782         * doc/contrib.texi: Add dfa based scheduler contribution.
784         * doc/gcc.texi: Add more information about genattrtab.
786 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
788         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
789         adjust_address_nv call.
791 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
793         * doc/install.texi (Testing): Provide additional information, and
794         a stronger encouragement, for running the testsuites.
796 2002-04-29  DJ Delorie  <dj@redhat.com>
798         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
799         given in upper case.
801 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
803         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
804         Solaris 2 <widec.h> if missing.
805         * fixinc/fixincl.x: Regenerate.
806         * fixinc/tests/base/widec.h: New file.
808 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
810         * toplev.c (f_options): Add "profile" switch so that
811         -fno-profile can be used to disable -p.
813 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
815         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
816         UV2DImode.
817         * tree.c (build_common_tree_nodes_2): Likewise.
818         * tree.h (enum tree_index): Likewise.
819         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
821         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
822         entries.
823         (init_mmx_sse_builtins): Initialize SSE2 builtins.
824         (ix86_expand_builtin): Add support for SSE2 builtins.
825         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
826         (VALID_SSE_REG_MODE): Use it.
827         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
828         (enum ix86_builtins): Add SSE2 builtins.
829         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
830         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
831         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
832         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
833         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
834         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
835         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
836         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
837         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
838         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
839         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
840         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
841         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
842         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
843         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
844         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
845         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
846         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
847         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
848         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
849         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
850         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
851         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
852         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
853         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
854         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
855         lfence_insn): New patterns.
856         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
857         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
859 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
861         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
863 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
865         * doc/contrib.texi (Contributors): Add Paolo Carlini and
866         Janis Johnson.
867         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
868         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
869         and CPU instead of cpu.
871 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
873         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
874         variables.
875         (lang_independent_options): Add -fif-conversion, -fif-conversion2
876         (rest_of_compilation): Do if conversion only when asked for.
877         (parse_options_and_default_flags): Set new variables to 1 for -O1
878         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
880 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
882         * i386.c (dbx64_register_map): Fix typo.
884 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
886         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
887         real_one_half, real_bb_freq_max): New static variables.
888         (debug_profile_bbauxs): Kill.
889         (process_note_predictions): Kill unused variable.
890         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
891         volatile double.
892         (propagate_freq): Use REAL_ARITHMETICS.
893         (estimate_bb_frequencies): Likevise; init new static variables.
894         * Makefile.in (predict.o): Add dependency on real.h
896 2002-04-28  David S. Miller  <davem@redhat.com>
898         PR target/6500
899         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
900         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
901         several {reads,writes} instead.
902         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
903         Define.
905 2002-04-27  David S. Miller  <davem@redhat.com>
907         PR target/6494
908         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
909         of the stack bias.
911         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
912         including signal.h and sys/ucontext.h, not needed.
914 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
916         * varasm.c (output_constant_def): Correct test for not calling
917         ENCODE_SECTION_INFO for INTEGER_CST.
919 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
921         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
922         keep most cases as function eval_token.
923         (eval_token): New function.
924         (_cpp_parse_expr): Read token here for improved diagnostics.
925         Don't use op_as_text.  Detect bad ':' here.
926         (reduce): Don't detect bad ':' here.
927         (op_as_text): Remove.
928         * cpphash.h (_cpp_test_assertion): Change prototype.
929         * cpplib.c (_cpp_test_assertion): Change prototype.
931 2002-04-28  Richard Henderson  <rth@redhat.com>
933         PR c/5154
934         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
935         (ggc_mark_rtx_children): New.
937 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
939         PR target/6496
940         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
941         after call peepholes for UltraSPARC.
942         (call + jump 64-bit peepholes): Remove.
944 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
946         PR c/6497
947         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
948         result as temporary value.
950 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
952         PR c++/6396
953         * toplev.c (rest_of_compilation): Only run regrename and copy
954         propagation if optimizing.
956 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
958         PR optimization/6475
959         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
960         register of REGNO_DECL (i).
961         * Makefile.in (reload1.o): Add $(TREE_H).
963 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
965         * cppexp.c (lex): Update to use state.skip_eval.
966         (struct op): Remove prio and flags members.
967         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
968         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
969         (LEFT_ASSOC): New macro.
970         (optab): New table of operator priorities and flags.
971         (SHIFT): Update.
972         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
973         malloc-ed parser stack.
974         (reduce): New; reduce the operator stack.
975         (_cpp_expand_op_stack): Expand the operator stack as necessary.
976         * cpphash.h (struct op): Predeclare.
977         (struct cpp_reader): New members op_stack, op_limit.
978         (struct lexer_state): New member skip_eval.
979         (_cpp_parse_expr): Update.
980         (_cpp_expand_op_stack): New.
981         * cpplib.c (do_if): Update.
982         * cppinit.c (cpp_create_reader): Create op stack.
983         (cpp_destroy): And destroy it.
984         * cpplib.h (CPP_LAST_CPP_OP): Correct.
985         (TTYPE_TABLE): Correct.
987 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
989         PR c/6343
990         * c-decl.c (duplicate_decls): Call merge_weak.
991         * c-pragma.c (apply_pragma_weak): Warn about misuse.
992         * output.h (merge_weak): Prototype merge_weak.
993         * varasm.c (merge_weak): New function.
994         (declare_weak): Make sure we don't give an error on VAR_DECLs.
995         Mark RTL with SYMBOL_REF_WEAK.
997 2002-04-27  Kurt Garloff <garloff@suse.de>
999         * tree-inline.c (inlinable_function_p): Improve heuristics
1000         by using a smoother function to cut down allowable inlinable size.
1001         * param.def: Add parameters max-inline-insns-single,
1002         max-inline-slope, min-inline-insns that determine the exact
1003         shape of the above function.
1004         * param.h: Likewise.
1006 2002-04-26  Richard Henderson  <rth@redhat.com>
1008         * c-parse.in (malloced_yyss, malloced_yyvs): New.
1009         (yyoverflow): Re-add.  Set them.
1010         (free_parser_stacks): New.
1011         * c-common.h: Declare it.
1012         * c-lex.c (c_common_parse_file): Call it.
1014 2002-04-26  Richard Henderson  <rth@redhat.com>
1016         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
1017         for fallthru search.
1019 2002-04-26  Eric Christopher  <echristo@redhat.com>
1021         PR optimization/3700
1022         * config/mips/mips.c (mips_issue_rate): Define.  New function.
1023         (TARGET_SCHED_ISSUE_RATE): Use.
1025 2002-04-25  David S. Miller  <davem@redhat.com>
1027         PR target/6422
1028         * reorg.c (optimize_skip): Do not allow exception causing
1029         instructions to be considered for delay slots.
1030         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
1031         (relax_delay_slots): Do not try to consider exception causing
1032         instructions as redundant.
1034 2002-04-26  Richard Henderson  <rth@redhat.com>
1036         PR c/5225
1037         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
1039 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
1041         PR bootstrap/6445
1042         * config/i386/i386.md (untyped_call): Return the value in a float
1043         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
1044         TARGET_80387.
1046 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
1048         * tree.c (tree_int_cst_lt): Compare constants whose types differ
1049         in unsigned-ness correctly.
1051 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1053         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
1054         portable runtime model.
1056 2002-04-26  Richard Henderson  <rth@redhat.com>
1058         * c-parse.in (yyoverflow): Revert.
1060 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
1061             Richard Henderson  <rth@redhat.com>
1063         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
1064         result as temporary value.
1066 2002-04-26  Richard Henderson  <rth@redhat.com>
1068         PR c/3581
1069         * c-common.c (fix_string_type): Split out of ...
1070         (combine_strings): ... here.  Take a varray, not a tree list.
1071         (c_expand_builtin_printf): Use fix_string_type.
1072         * c-common.h: Update decls.
1073         * c-parse.in (string): Remove.  Update all uses to use STRING
1074         instead, and not call combine_strings.
1075         (yylexstring): New.
1076         (_yylex): Use it.
1077         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
1078         (build_asm_stmt): Likewise.
1079         * objc/objc-act.c (my_build_string): Use fix_string_type.
1080         (build_objc_string_object): Build varray for combine_strings.
1082 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
1084         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
1085         x86-64.
1087 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
1089         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
1090         (HAVE_NO_R_OPERAND): Remove.
1091         (HAVE_VALUE): Remove.
1092         (op_to_prio): Update.
1093         (UNARY): Don't alter flags.
1094         (_cpp_parse_expr): want_value used to indicate whether
1095         a number or unary operator is expected next.  Distinguish
1096         unary and binary +/-.
1097         (op_as_text): Update for unary operators.
1099 2002-04-25  Richard Henderson  <rth@redhat.com>
1101         PR c/2161
1102         * c-parse.in (yyoverflow): New.
1104 2002-04-25  Richard Henderson  <rth@redhat.com>
1106         PR c/2098
1107         * c-common.c (shorten_compare): Simplfy conditions leading to
1108         the generation of a warning.
1110 2002-04-25  Richard Henderson  <rth@redhat.com>
1112         PR c/2035
1113         * expmed.c (extract_bit_field): Fall through to generic code rather
1114         than aborting on subreg special case.
1116 2002-04-25  David S. Miller  <davem@redhat.com>
1118         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
1119         for DECL being NULL.
1121 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
1123         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
1125 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
1127         * c-decl.c (grokdeclarator): Remove outdated ??? note
1128         on invalid declaration of flexible array members.
1130 2002-04-25  Richard Henderson  <rth@redhat.com>
1132         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
1134 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
1136         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
1137         needed by the compiler, even if they are used as global regs.
1139 2002-04-25  Matt Hiller  <hiller@redhat.com>
1141         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
1142         functions.
1143         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
1144         of the corresponding functions.
1145         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
1146         New prototypes.
1148 2002-04-25  Matt Hiller  <hiller@redhat.com>
1150         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
1152         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
1153         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
1154         registers, adjust comment accordingly.
1155         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
1156         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
1157         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
1158         for coprocessor registers.
1159         (ADDITIONAL_REGISTER_NAMES): Include
1160         ALL_COP_ADDITIONAL_REGISTER_NAMES.
1162         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
1163         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
1164         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
1165         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
1166         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
1168         (mips_char_to_class): Adjust comment to include coprocessor
1169         constraint letters.
1171         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
1172         New functions.
1173         (mips_reg_names, mips_regno_to_class): Include coprocessor
1174         information.
1175         (mips_sw_reg_names): Ditto, make non-static.
1176         (mips_move_1word): Handle moves to and from coprocessor registers.
1177         (mips_move_2words): Handle moves to and from coprocessor
1178         registers.
1179         (mips_class_max_nregs, mips_register_move_cost): Handle
1180         coprocessor register classes.
1181         (override_options): Initialize mips_char_to_class and
1182         mips_hard_regno_mode_ok properly for coprocessor registers.
1184         * config/mips/mips.md (movdi_internal, movdi_internal2,
1185         movsi_internal1, movsi_internal2): Add constraint-sets for
1186         coprocessor registers.
1187         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
1188         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
1189         isn't mips.
1190         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
1191         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
1192         isn't mips.
1193         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
1194         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
1195         isn't mips.
1196         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
1197         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
1198         isn't mips.
1200         * doc/tm.texi: Document feature.
1202 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
1204         * integrate.c (function_attribute_inlinable_p): Simplify.
1205         Check the table pointer is not NULL.
1207 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
1209         * doc/c-tree.texi: Fix typo in introduction.
1211 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
1213         * c-common.h (c_common_parse_file): Update.
1214         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
1215         * c-lex.c (YYDEBUG): Get from c-lex.h.
1216         (c_common_parse_file): Update.
1217         * c-lex.h (YYDEBUG, yydebug): New.
1218         * c-parse.in (YYDEBUG): Get from c-lex.h.
1219         (c_set_yydebug): Remove.
1220         * c-tree.h (c_set_yydebug): Remove.
1221         * langhooks-def.h (lhd_do_nothing_i): New.
1222         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
1223         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
1224         * langhooks.c  (lhd_do_nothing_i): New.
1225         (lhd_set_yydebug): Remove.
1226         * langhooks.h (struct lang_hooks): Update.
1227         * toplev.c (set_yydebug): New.
1228         (compile_file): Update call to parse_file hook.
1229         (decode_d_option): Update.
1230 objc:
1231         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
1233 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
1235         * loop.c (load_mems): Don't change the interface of called functions.
1237         * calls.c (expand_call): Take current_function_pretend_args_size
1238         into account when setting argblock for sibcalls.
1240 2002-04-24  Matt Hiller  <hiller@redhat.com>
1242         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
1243         * c-lex.c: Ditto.
1245         * cpplex.c (skip_line_comment): Process comment one multibyte
1246         character at a time rather than one char at a time, if
1247         appropriate.
1248         (parse_string): Process string one multibyte character at a time
1249         rather than one char at a time, if appropriate.
1250         * c-lex.c (lex_string): Lex and copy multibyte strings
1251         appropriately.
1252         * cpplib.h (cppchar_t): Change to unsigned.
1254 2002-04-24  Richard Henderson  <rth@redhat.com>
1256         PR c/3467
1257         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
1258         for c99.
1260 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
1262         * sh.c (sh_va_arg): If argument was passed by reference,
1263         dereference the pointer.
1265         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
1267         * sh.md (divsi3_i4_media): Use match_operand for input values
1268         rather than hard registers.
1269         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
1270         unnecessarily through hard registers.  Keep copies of pseudo
1271         registers outside of the libcall sequence.
1273         * sh.md (casesi_shift_media): Add modes.
1275         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
1276         values in memory.
1278 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
1280         * attribs.c (c_common_attribute_table): Move table and handlers
1281         to c-common.c.
1282         (format_attribute_table, lang_attribute_table,
1283         lang_attribute_common): Remove.
1284         (init_attributes): Replace NULL pointers with pointers to the
1285         empty table.
1286         (handle_packed_attribute, handle_nocommon_attribute,
1287         handle_common_attribute, handle_noreturn_attribute,
1288         handle_noinline_attribute, handle_always_inline_attribute,
1289         handle_used_attribute, handle_unused_attribute,
1290         handle_const_attribute, handle_transparent_union_attribute,
1291         handle_constructor_attribute, handle_destructor_attribute,
1292         handle_mode_attribute, handle_section_attribute,
1293         handle_aligned_attribute, handle_weak_attribute,
1294         handle_alias_attribute, handle_visibility_attribute,
1295         handle_no_instrument_function_attribute, handle_malloc_attribute,
1296         handle_no_limit_stack_attribute, handle_pure_attribute,
1297         handle_deprecated_attribute, handle_vector_size_attribute,
1298         vector_size_helper): Move to c-common.c.
1299         * c-common.c (c_common_attribute_table,
1300         handle_packed_attribute, handle_nocommon_attribute,
1301         handle_common_attribute, handle_noreturn_attribute,
1302         handle_noinline_attribute, handle_always_inline_attribute,
1303         handle_used_attribute, handle_unused_attribute,
1304         handle_const_attribute, handle_transparent_union_attribute,
1305         handle_constructor_attribute, handle_destructor_attribute,
1306         handle_mode_attribute, handle_section_attribute,
1307         handle_aligned_attribute, handle_weak_attribute,
1308         handle_alias_attribute, handle_visibility_attribute,
1309         handle_no_instrument_function_attribute, handle_malloc_attribute,
1310         handle_no_limit_stack_attribute, handle_pure_attribute,
1311         handle_deprecated_attribute, handle_vector_size_attribute,
1312         vector_size_helper): Move from attribs.c.
1313         * c-common.h (c_common_attribute_table,
1314         c_common_format_attribute_table): New.
1315         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
1316         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
1317         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
1318         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
1319         (LANG_HOOKS_INITIALIZER): Update.
1320         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
1321         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
1322         * target.h: Update comment.
1323         * tree.c (default_target_attribute_table): Remove.
1324         * tree.h (default_target_attribute_table, format_attribute_table,
1325         lang_attribute_table, lang_attribute_common): Remove.
1326 objc:
1327         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
1328         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
1330 2002-04-24  Jason Merrill  <jason@redhat.com>
1332         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
1333         * dwarf2out.c (dwarf_attr_name): Support it.
1334         (gen_array_type_die): Emit it.
1335         (lookup_type_die): No special handling for VECTOR_TYPE.
1336         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
1338 2002-04-24  Richard Henderson  <rth@redhat.com>
1340         * config/mips/mips.md (movdi_usd): Renumber.
1342 2002-04-24  David S. Miller  <davem@redhat.com>
1344         PR target/6420
1345         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
1346         32-bit Sparc and current_function_returns_struct is true.
1348 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
1350         * loop.c (canonicalize_condition): Use gen_int_mode.
1352 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
1354         * config/rs6000/altivec.h: Cleanup file.  Add non individual
1355         variants.
1356         (vec_vaddubm): New.
1357         (vec_vadduhm): New.
1358         (vec_vadduwm): New.
1359         (vec_vaddfp): New.
1360         (vec_vaddcuw): New.
1361         (vec_vaddubs): New.
1362         (vec_vaddsbs): New.
1363         (vec_vadduhs): New.
1364         (vec_vadduws): New.
1365         (vec_vaddsws): New.
1366         (vec_vand): New.
1367         (vec_vandc): New.
1368         (vec_vavgub): New.
1369         (vec_vavgsb): New.
1370         (vec_vavguh): New.
1371         (vec_vavgsh): New.
1372         (vec_vavguw): New.
1373         (vec_vavgsw): New.
1374         (vec_vrfip): New.
1375         (vec_vcmpbfp): New.
1376         (vec_vcmpequb): New.
1377         (vec_vcmpequh): New.
1378         (vec_vcmpequw): New.
1379         (vec_vcmpeqfp): New.
1380         (vec_vcmpgefp): New.
1381         (vec_vcmpgtub): New.
1382         (vec_vcmpgtsb): New.
1383         (vec_vcmpgtuh): New.
1384         (vec_vcmpgtsh): New.
1385         (vec_vcmpgtuw): New.
1386         (vec_vcmpgtsw): New.
1387         (vec_vcmpgtfp): New.
1388         (vec_vcmpgefp): New.
1389         (vec_vcfux): New.
1390         (vec_vcfsx): New.
1391         (vec_vctsxs): New.
1392         (vec_vctuxs): New.
1393         (vec_vexptefp): New.
1394         (vec_vrfim): New.
1395         (vec_lvx): New.
1396         (vec_lvebx): New.
1397         (vec_lvehx): New.
1398         (vec_lde): Add vector float variant.
1399         (vec_lvewx): New.
1400         (vec_lvxl): New.
1401         (vec_vlogefp): New.
1402         (vec_vmaddfp): New.
1403         (vec_vmhaddshs): New.
1404         (vec_vmaxub): New.
1405         (vec_vmaxsb): New.
1406         (vec_vmaxuh): New.
1407         (vec_vmaxsh): New.
1408         (vec_vmaxuw): New.
1409         (vec_vmaxsw): New.
1410         (vec_vmaxsw): New.
1411         (vec_vmaxfp): New.
1412         (vec_vmrghb): New.
1413         (vec_vmrghh): New.
1414         (vec_vmrghw): New.
1415         (vec_vmrglb): New.
1416         (vec_vmrglh): New.
1417         (vec_vmrglw): New.
1418         (vec_vminub): New.
1419         (vec_vminsb): New.
1420         (vec_vminuh): New.
1421         (vec_vminsh): New.
1422         (vec_vminuw): New.
1423         (vec_vminsw): New.
1424         (vec_vminfp): New.
1425         (vec_vmladduhm): New.
1426         (vec_vmhraddshs): New.
1427         (vec_msumubm): New.
1428         (vec_vmsummbm): New.
1429         (vec_vmsumuhm): New.
1430         (vec_vmsumshm): New.
1431         (vec_vmsumuhs): New.
1432         (vec_vmsumshs): New.
1433         (vec_vmuleub): New.
1434         (vec_vmulesb): New.
1435         (vec_vmuleuh): New.
1436         (vec_vmulesh): New.
1437         (vec_vmuloub): New.
1438         (vec_mulosb): New.
1439         (vec_vmulouh): New.
1440         (vec_vmulosh): New.
1441         (vec_vnmsubfp): New.
1442         (vec_vnor): New.
1443         (vec_vor): New.
1444         (vec_vpkuhum): New.
1445         (vec_vpkuwum): New.
1446         (vec_vpkpx): New.
1447         (vec_vpkuhus): New.
1448         (vec_vpkshss): New.
1449         (vec_vpkuwus): New.
1450         (vec_vpkswss): New.
1451         (vec_vpkshus): New.
1452         (vec_vpkswus): New.
1453         (vec_vperm): New.
1454         (vec_vrefp): New.
1455         (vec_vrlb): New.
1456         (vec_vrlh): New.
1457         (vec_vrlw): New.
1458         (vec_vrfin): New.
1459         (vec_vrsqrtefp): New.
1460         (vec_vsel): New.
1461         (vec_vslb): New.
1462         (vec_vslh): New.
1463         (vec_vslw): New.
1464         (vec_vsldoi): New.
1465         (vec_vsl): New.
1466         (vec_vslo): New.
1467         (vec_vspltb): New.
1468         (vec_vsplth): New.
1469         (vec_vspltw): New.
1470         (vec_vspltisb): New.
1471         (vec_vspltish): New.
1472         (vec_vspltisw): New.
1473         (vec_vsrb): New.
1474         (vec_vsrh): New.
1475         (vec_vsrw): New.
1476         (vec_vsrab): New.
1477         (vec_vsrah): New.
1478         (vec_vsraw): New.
1479         (vec_vsr): New.
1480         (vec_vsro): New.
1481         (vec_stvx): New.
1482         (vec_stvebx): New.
1483         (vec_stvehx): New.
1484         (vec_stvewx): New.
1485         (vec_stvxl): New.
1486         (vec_vsububm): New.
1487         (vec_vsubuhm): New.
1488         (vec_vsubuwm): New.
1489         (vec_vsubfp): New.
1490         (vec_vsubcuw): New.
1491         (vec_vsububs): New.
1492         (vec_vsubsbs): New.
1493         (vec_vsubuhs): New.
1494         (vec_vsubshs): New.
1495         (vec_vsubuws): New.
1496         (vec_vsubsws): New.
1497         (vec_vsum4ubs): New.
1498         (vec_vsum4sbs): New.
1499         (vec_vsum4shs): New.
1500         (vec_vsum2sws): New.
1501         (vec_vsumsws): New.
1502         (vec_vrfiz): New.
1503         (vec_vupkhsb): New.
1504         (vec_vupkhpx): New.
1505         (vec_vupkhsh): New.
1506         (vec_vupklsb): New.
1507         (vec_vupklpx): New.
1508         (vec_vupklsh): New.
1509         (vec_vxor): New.
1511 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
1513         PR c/5430
1514         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
1515         added literals from substracted literals.
1516         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
1517         (fold) [associate]: Preserve MINUS_EXPR if needed.
1519 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
1521         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
1522         are obsoleted.
1524 2002-04-23  Tom Tromey  <tromey@redhat.com>
1526         * gcc.c: Added --resource.  For PR java/6314.
1528 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
1530         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
1531         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
1532         these libraries.
1534 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
1536         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
1538 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
1540         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
1541         workaround.
1542         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
1543         (ix86_expand_clrstr): Fix typo.
1544         * loop.c (gen_load_of_final_value): New.
1545         (loop_givs_rescan, strength_reduce, check_dbra_loop):
1546         Use it.
1548 2002-04-23  Roger Sayle  <roger@eyesopen.com>
1550         * builtins.c (builtin_memset_gen_str): New function.
1551         (expand_builtin_memset): Optimize the case of constant length, but
1552         unknown value.
1554 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
1556         * config/rs6000/altivec.h (vec_step): Remove extraneous
1557         parentheses.
1558         (vec_ctu): Cast return.
1560 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
1562         PR target/6413
1563         * function.h: (struct function): Add profile_label_no field.
1564         (current_function_profile_label_no): Define.
1565         * function.c: (profile_label_no): New static var.
1566         (expand_function_start): Increment it, and copy to
1567         current_function_profile_label_no.
1568         * output.h (profile_label_no): Delete.
1569         * final.c (profile_label_no): Delete.
1570         (profile_function): Use current_function_profile_label_no.
1571         (final_end_function): Don't increment profile_label_no here.
1572         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
1573         profile_label_no with current_function_profile_label_no.
1574         * config/pa/pa.c (current_function_number): Delete.
1575         (pa_output_function_prologue): Don't output profile label here.
1576         (hppa_profile_hook): Use label_no param rather than
1577         current_function_number.
1578         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
1579         * config/pa/pa.h: .. here.
1580         (FUNCTION_PROFILER): Output profile label here.
1582 2002-04-22  Eric Christopher  <echristo@redhat.com>
1584         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
1585         patch of 2002-04-09 due to binutils issues.
1586         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
1588 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
1590         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
1591         constraint to 'o' for m=r and r=m alternatives.
1592         ("*movv8hi_internal1"): Same.
1593         ("*movv16qi_internal1"): Same.
1594         ("*movv4sf_internal1"): Same.
1596 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
1598         * rtl.h (RTX_FLAG): New macro.
1599         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
1600         * final.c (alter_subreg): Use macro to access rtx flag.
1601         * integrate.c (copy_rtx_and_substitute): Use new access macro.
1602         * print-rtl.c (print_rtx): Use new access macro.
1604         * cse.c (insert): Check rtx code before accessing flag.
1606         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
1607         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
1608         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
1609         convert_const_symbol_ref, make_canonical, make_alternative_compare,
1610         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
1611         simplify_test_exp, optimize_attrs, simplify_by_exploding,
1612         find_and_mark_used_attributes, unmark_used_attributes,
1613         add_values_to_cover, simplify_with_current_value,
1614         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
1615         copy_rtx_unchanging, main): Use new access macros.
1617 2002-04-22  Tom Rix  <trix@redhat.com>
1619         * expmed.c (init_expmed): Generate shifted constant once.
1621 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
1623         * c-lex.c (lex_charconst): Call convert to get constant in
1624         proper type; don't just smash the type field.
1625         Fixes PR c/6300.
1627         * config.gcc: Add list of obsolete configurations.  Disallow
1628         building these without --enable-obsolete.
1629         * doc/install.texi: Document --enable-obsolete and obsoletion
1630         policy.  Mention obsoletion of individual targets in
1631         appropriate places.
1633 2002-04-22  Richard Henderson  <rth@redhat.com>
1635         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
1637 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
1639         PR f/6138.
1640         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
1641         (walk_fixup_memory_subreg): Likewise.
1642         (fixup_var_refs_insn): Adjust accordingly.
1643         (fixup_var_refs_1): Likewise.
1645 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
1647         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
1648         LIBPATH_ARCH64_SPEC): Define.
1649         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
1650         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
1651         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
1652         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
1654 2002-04-22      Joel Sherrill <joel@OARcorp.com>
1656         * gthr-rtems.h: Correct prototypes to remove warnings.
1658 2002-04-22  Richard Henderson  <rth@redhat.com>
1660         PR c/6344
1661         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
1663         * gcse.c (free_insn_expr_list_list): New.
1664         (clear_modify_mem_tables): Use it.  Fix bit set usage.
1665         (canon_list_insert): Use EXPR_LISTs for expressions.
1666         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
1668 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
1670         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
1671         file change and include code to _cpp_pop_buffer.
1672         * cpphash.h (struct pending_option): Predeclare.
1673         (struct cpp_reader): New member next_include_file.
1674         (_cpp_pop_file_buffer): Update.
1675         (_cpp_push_next_buffer): Update, rename.
1676         * cppinit.c (cpp_destroy): Free include chain and pending here.
1677         (cpp_finish_options): Simplify.
1678         (_cpp_push_next_buffer): Rename and clean up.
1679         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
1680         Clarify.
1681         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
1683 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
1685         * config/rs6000/altivec.h (vec_xor): Add variant for both args
1686         being vector signed int.
1687         (vec_andc): Same.
1688         (vec_xor): Add variant for both args being vector signed char.
1689         Remove redundant variant.
1690         (vec_andc): Same.
1692 2002-04-21  David S. Miller  <davem@redhat.com>
1694         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
1695         compare mode in output RTL.
1697 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
1699         * config/rs6000/rs6000.c (rs6000_override_options): Correct
1700         style and formatting of previous patch.
1702 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
1704         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
1705         flag_pic for ABI_AIX.
1707 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
1709         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
1710         * cppfiles.c (read_include_file): Similarly.
1711         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
1712         uxstrdup ustrchr, ufputs): Similarly.
1713         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
1714         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
1715         cpp_ideq, parse_identifier, parse_number): Similarly.
1716         * cpplib.c (struct directive, dequote_string, D, run_directive,
1717         cpp_push_buffer): Similarly.
1718         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
1719         _cpp_create_definition, check_trad_stringification,
1720         cpp_macro_definition): Similarly.
1722 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
1724         * cppmacro.c (funlike_invocation_p): Don't step back
1725         over CPP_EOF.
1727 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
1729         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
1730         labelno.
1732 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
1734         * doc/invoke.texi: Remove Chill references.
1735         * doc/gcc.texi: Update last modified date.
1737 2002-04-20  Kazu Hirata  <kazu@hxi.com>
1739         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
1740         push and pop.  Replace add.l with add.w.
1742 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1744         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
1745         multiply instructions for H8/300H case.
1747 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1749         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
1750         Bum three instructions from each routine.
1752 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
1754         * Makefile.in: Update.
1755         * decl.c (push_c_function_context, pop_c_function_context,
1756         mark_c_function_context): Rename for consistency.
1757         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
1758         * c-tree.h (push_c_function_context, pop_c_function_context,
1759         mark_c_function_context): Rename for consistency.
1760         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1761         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
1762         * function.c (init_lang_status, save_lang_status,
1763         restore_lang_status, mark_lang_status, free_lang_status):
1764         Move to langhooks.h.
1765         (push_function_context_to, pop_function_context_from,
1766         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
1767         Update.
1768         * function.h (init_lang_status, save_lang_status,
1769         restore_lang_status, mark_lang_status, free_lang_status):
1770         Move to langhooks.h.
1771         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
1772         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
1773         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
1774         LANG_HOOKS_FUNCTION_INITIALIZER): New.
1775         (LANG_HOOKS_INITIALIZER): Update.
1776         (lhd_do_nothing_f): New.
1777         * langhooks.h (struct lang_hooks_for_functions): New.
1778         (struct lang_hooks): New hooks.
1779         * langhooks.c (lhd_do_nothing_f): New.
1780 objc:
1781         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1782         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
1784 2002-04-19  David S. Miller  <davem@redhat.com>
1786         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
1787         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
1789 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
1791         PR optimization/3756
1792         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
1793         x = ((int) y < 0) ? cst1 : cst2.
1795 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
1797         PR c/6358
1798         * function.c: Reapply patch for c/6358.
1799         (expand_function_end): Copy decl_rtl's mode, not
1800         current_function_return_rtx mode.
1802 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
1804         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
1805         targets.
1807 2002-04-19  Tom Tromey  <tromey@redhat.com>
1809         * doc/install.texi (Specific): Update status of Solaris 2.8.
1810         For PR libgcj/6158.
1812 2002-04-19  Andreas Schwab  <schwab@suse.de>
1814         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
1815         (PUT_REAL): Restore old definition.
1817 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
1818             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1820         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
1821         binutils 2.11.2 and higher generate smaller binaries than Sun's
1822         native tools.
1824 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
1826         PR c++/6352
1827         * toplev.c (rest_of_compilation): Do not defer functions for which
1828         TREE_SYMBOL_REFERENCED has already been set.
1830 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
1832         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
1833         alternative.
1835 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
1837         * builtins.c: Include langhooks.h.
1838         (lang_type_promotes_to): Remove.
1839         (expand_builtin_va_arg): Use new hook.
1840         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
1841         (simple_type_promotes_to): Move to c-typeck.c.
1842         * c-common.h (simple_type_promotes_to): Remove.
1843         * c-decl.c (duplicate_decls, grokdeclarator): Update.
1844         * c-format.c: Include langhooks.h.
1845         (check_format_types): Update.
1846         * c-tree.h (c_type_promotes_to): New.
1847         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
1848         (type_lists_compatible_p): Update.
1849         * langhooks-def.h (lhd_type_promotes_to): New.
1850         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
1851         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
1852         * langhooks.c (lhd_type_promotes_to): New.
1853         * langhooks.h (struct lang_hooks_for_types): New hook.
1854         * tree.h (lang_type_promotes_to): Remove.
1855 objc:
1856         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
1858 2002-04-18  Richard Henderson  <rth@redhat.com>
1860         * function.c: Revert patch for c/6358.
1862 2002-04-18  Richard Henderson  <rth@redhat.com>
1864         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
1865         blocks.  Handle multiple references to the TRAP block.  Handle
1866         non-adjacent THEN and OTHER blocks.
1868 2002-04-18  Richard Henderson  <rth@redhat.com>
1870         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
1871         crash with no type for by-mode libcalls.
1873         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
1875 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
1877         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
1878         __xtensa_nonlocal_goto): Use a syscall instructions to flush
1879         the register windows.
1881 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
1883         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
1884         appropriate.  Document need for extended precision even when
1885         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
1886         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
1887         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
1888         instead of relying on later syntax error when REAL_WIDTH > 5.
1889         * real.c: Define NE based only on whether or not we have a
1890         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
1891         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
1892         define GET_REAL and PUT_REAL as simple memcpy operations; no
1893         need to byteswap or round.
1894         Use #error instead of #ifdef-ing out the entire file, for
1895         prompt error detection.
1897         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
1899 2002-04-18  David S. Miller  <davem@redhat.com>
1901         * config/sparc/sparc.h (BRANCH_COST): Define.
1903         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
1904         does it.
1906 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
1908         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
1909         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
1910         propagate_block calls after relaxation loop using new variable
1911         stabilized_prop_flags.
1913 2002-04-18  Richard Henderson  <rth@redhat.com>
1915         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
1916         (ia64_va_arg): Expect variable sized types by reference.
1917         * config/ia64/ia64-protos.h: Update.
1918         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
1919         ia64_function_arg_pass_by_reference.
1921 2002-04-18  Richard Henderson  <rth@redhat.com>
1923         * ifcvt.c: Include except.h.
1924         (block_has_only_trap): Break out from find_cond_trap.
1925         (find_cond_trap): Use it.  Always delete the trap block.
1926         (merge_if_block): Allow then block null.  Be less simplistic about
1927         what insns can end a block.
1928         * Makefile.in (ifcvt.o): Depend on except.h.
1930         * config/ia64/ia64.md (trap, conditional_trap): New.
1932 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
1934         PR c/6358
1935         * function.c (assign_parms): Assign hard current_function_return_rtx
1936         register here...
1937         (expand_function_end): ...not here.
1939 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
1941         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
1942         * c-tree.h (c_incomplete_type_error): New.
1943         * c-typeck.c (require_complete_type, build_component_ref): Update.
1944         (incomplete_type_error): Rename.
1945         * langhooks-def.h (lhd_incomplete_type_error): New.
1946         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
1947         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
1948         * langhooks.c (lhd_incomplete_type_error): New.
1949         * langhooks.h (struct lang_hooks_for_types): New hook.
1950         * tree.c (size_in_bytes): Use new hook.
1951         * tree.h (incomplete_type_error): Remove.
1952 objc:
1953         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
1955 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
1957         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
1958         TARGET_FLOAT_FORMAT blocks.
1960 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1962         * doc/install.texi (Downloading the source): Do not mention Chill
1963         any longer, but mention Ada.
1964         (Configuration): Do not mention Chill any longer.
1966 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
1968         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
1970 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
1972         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
1973         in last patch.
1975 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
1977         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
1978         instead of unsigned_type.
1980 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
1982         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
1983         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
1984         later.
1986 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
1988         * attribs.c (vector_type_node_list): New static variable.
1989         (handle_vector_size_attribute): Use it to avoid generating a
1990         new type node each time we are called.
1992         * combine.c (subst): Avoid trying to make a vector mode subreg of
1993         an integer constant.
1994         (gen_lowpart_for_combine): Likewise.
1996 2002-04-18  Roger Sayle  <roger@eyesopen.com>
1997             Jakub Jelinek  <jakub@redhat.com>
1999         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
2000         for integer constant c (if x has unsigned type or sign bit is not
2001         set in c).  This folds the zero/sign extension into the bit-wise and
2002         operation.
2004 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
2006         PR middle-end/6205
2007         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
2008         otherwise xorps.
2010 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
2012         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
2014 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
2016         * gcc.c (read_specs): Detect and fail if an attempt is made to
2017         rename a spec string to an already existing string.
2019 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
2021         * config/s390/s390.c (legitimize_pic_address): Do not generate
2022         illegal address constant without CONST.
2024 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2026         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
2027         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
2029 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
2031         PR optimization/6305
2032         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
2033         to make sure previous reloads are taken into account.  Generate
2034         better code if one operand is an in-range immediate constant.
2036 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
2038         * doc/install.texi (Building): libgcj requires GNU make.
2040 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
2042         PR bootstrap/6315
2043         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
2044         even if hard quad and register is not floating.
2045         (movtf reg<-mem split): Disallow splitting if hard quad and
2046         register is floating.
2047         (movtf mem<-reg split): Likewise.
2048         * config/sparc/sparc.c (fp_register_operand): New predicate.
2049         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
2051 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
2053         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
2054         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
2055         (unprotoize.o): Ditto.  Build from protoize.c.  Define
2056         UNPROTOIZE on command line.
2057         * protoize.c: Include cppdefault.h.  Delete include_defaults.
2058         (in_system_include_dir): Use cpp_include_defaults (defined in
2059         cppdefault.o).
2060         * unprotoize.c: Delete file.
2062 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
2064         * config/rs6000/altivec.h (vec_ld): Add array variants.
2065         (vec_lde): Same.
2066         (vec_ldl): Same.
2068 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
2069             Aldy Hernandez <aldyh@redhat.com>
2071         * config/rs6000/altivec.h: Define __ALTIVEC__.
2072         (bool): New.
2073         (__pixel): New.
2074         (pixel): New.
2075         (vec_cfux): New.
2076         (vec_vmaddfp): New.
2077         (vec_vsldoi): New.
2078         Add parentheses to all macro arguments.
2080 2002-04-16  Richard Henderson  <rth@redhat.com>
2082         PR c++/6320
2083         * except.c (remove_eh_handler): Insert inner regions at beginning
2084         of sibling chain.  Refactor expressions.
2086 2002-04-16  Richard Henderson  <rth@redhat.com>
2088         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
2089         * config/sparc/sol2-gas-bi.h: New file.
2090         * config.gcc (sparc*-solaris): Add it as needed.
2091         * configure.in (AS_SPARC64_FLAG): Remove check.
2092         * config.in, configure: Regenerate.
2094         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
2096 2002-04-16  Richard Henderson  <rth@redhat.com>
2098         * config/mips/mips.c (override_options): Don't override N32 for
2099         a 64-bit ISA.
2101         PR 6202
2102         * config/mips/mips.md (can_delay): Split out of existing define_delays.
2103         (HILO_delay): Set can_delay false.
2105 2002-04-16  Dale Johannesen <dalej@apple.com>
2107         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
2108         instruction addresses.
2109         (rs6000_output_function_epilogue): Likewise.
2111 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
2113         * c-parse.in (poplevel, compstmt_start,
2114         compstmt_primary_start): Add ending ';', in accordance
2115         with POSIX.
2117 2002-04-16  Richard Henderson  <rth@redhat.com>
2119         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
2120         Adjust tm_file order to get TARGET_DEFAULT set properly.
2121         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
2122         * doc/install.texi (sparc-solaris): Update.
2124 2002-04-16  Dale Johannesen <dalej@apple.com>
2126         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
2127         comparison operands do not match each other or if modes of
2128         conditions do not match result.
2130 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
2132         PR target/6305
2133         * config/s390/s390.md (mulsidi3): Set both subregs of the
2134         multiword register.
2136 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
2138         * config/rs6000/altivec.h (vec_addc): Type check.
2140 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
2142         PR middle-end/6279
2143         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
2145         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
2147 2002-04-15  Richard Henderson  <rth@redhat.com>
2149         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
2150         call_really_used_regs too.
2152 2002-04-15  Richard Henderson  <rth@redhat.com>
2154         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
2156 2002-04-15  David S. Miller  <davem@redhat.com>
2158         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
2159         as being CLOBBERed.
2161 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
2163         PR c/6290
2164         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
2165         CONST_VECTOR is { 0, ... 0 }.
2167 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
2169         * doc/install.texi (Installing GCC: Configuration): Clarify
2170         the only supported ways to configure gcc.
2172 2002-04-15  Roland McGrath  <roland@frob.com>
2174         * config.gcc (alpha*-*-gnu*): New target configuration.
2175         * config/alpha/gnu.h: New file for it.
2176         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
2178 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
2180         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
2181         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
2182         * tree.h (expand_start_stmt_expr): Update prototype.
2183         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
2184         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
2185         on the STMT_EXPR created for the inline function.
2187 2002-04-15  Richard Henderson  <rth@redhat.com>
2189         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
2190         config/i386/linux-aout.h, config/i386/linux-oldld.h,
2191         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
2192         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
2193         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
2194         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
2195         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
2196         Define __gnu_linux__, not gnu_linux.
2197         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
2199 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
2201         Remove Chill front end.
2202         * gcc.c (default_compilers): Remove Chill entries.
2203         * ch: Remove directory.
2204         * doc/frontends.texi: Remove information about Chill.
2205         * doc/sourcebuild.texi: Likewise.
2206         * doc/standards.texi: Likewise.
2208 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
2210         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
2211         (LONGLONG_STANDALONE): Define.
2213 2002-04-15  David S. Miller  <davem@redhat.com>
2215         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
2216         Call emit_library_call with LCT_NORMAL.
2217         (sparc_initialize_trampoline): Use LCT_foo instead of
2218         magic constant in emit_library_call invocations.
2219         (sparc64_initialize_trampoline): Likewise.
2220         (sparc_profile_hook): Likewise.
2221         * config/sparc/sparc.md: Likewise.
2223         * config/sparc/sparc.c (sparc_extra_constraint_check):
2224         Fix type of argument 'c'.
2225         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
2226         Likewise.
2228 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
2230         * diagnostic.h (output_buffer_state): Redefine.
2231         (output_format_decoder): New macro.
2232         (output_prefixing_rule): Likewise.
2233         (output_line_cutoff): Likewise.
2234         (diagnostic_format_decoder): Adjust.
2235         (diagnostic_prefixing_rule): Likewise.
2236         (diagnostic_line_cutoff): Likewise.
2237         (diagnostic_state): Likewise.
2238         (diagnostic_kind_count): Likewise.
2239         (diagnostic_buffer): Now a macro.
2241         * diagnostic.c (diagnostic_buffer): Remove definition.
2242         (output_is_line_wrapping): Adjust.
2243         (set_real_maximum_length): Likewise.
2244         (output_set_maximum_length): Likewise.
2245         (init_output_buffer): Likewise.
2246         (lhd_print_error_function): Likewise.
2247         (output_do_verbatim): Likewise.
2249 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
2251         * cpperror.c (print_location): Don't print include chain
2252         if line == 0.
2253         (cpp_begin_message): Update to use DL_ macros.
2254         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
2255         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
2256         cpp_notice, cpp_notice_from_errno): Remove.
2257         (cpp_error, cpp_error_with_line): Update to take a diagnostic
2258         level.
2259         (cpp_errno): New.
2260         * cppexp.c (CPP_ICE): Remove.
2261         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
2262         lex, integer_overflow, _cpp_parse_expr): Update.
2263         * cppfiles.c (read_include_file, find_include_file,
2264         handle_missing_header, _cpp_read_file, remap_filename): Update.
2265         * cpphash.h (enum error_type): Remove.
2266         (_cpp_begin_message): Update.
2267         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
2268         cpp_handle_option, cpp_post_options): Update.
2269         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
2270         skip_whitespace, parse_identifier, parse_slow, parse_string,
2271         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
2272         cpp_interpret_charconst): Update.
2273         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
2274         lex_macro_node, do_undef, glue_header_name, parse_include,
2275         do_include_common, read_flag, do_line, do_linemarker, do_ident,
2276         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
2277         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
2278         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
2279         _cpp_pop_buffer, do_diagnostic): Update.
2280         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
2281         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
2282         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
2283         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
2284         cpp_notice, cpp_notice_from_errno): Remove.
2285         (cpp_error, cpp_error_with_line): Update to take a diagnostic
2286         level.
2287         (cpp_errno): New.
2288         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
2289         collect_args, enter_macro_context, save_parameter, parse_params,
2290         _cpp_create_definition, check_trad_stringification,
2291         cpp_macro_definition): Update.
2292         * cppmain.c (cpp_preprocess_file): Update.
2293         * fix-header.c (read_scan_file): Update.
2295 2002-04-14  Andreas Schwab  <schwab@suse.de>
2297         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
2299 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
2301         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
2303 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
2305         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
2306         not gnu_hurd.
2308 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
2310         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
2312 2002-04-13      Joel Sherrill <joel@OARcorp.com>
2314         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
2315         sparc-elf and sparc-rtems targets.
2317 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
2319         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
2320         defined, and __gnu_hurd__ wherever __GNU__ is defined.
2321         * arm/linux-elf.h: Likewise.
2322         * cris/aout.h: Likewise.
2323         * cris/linux.h: Likewise.
2324         * i370/linux.h: Likewise.
2325         * i386/gnu.h: Likewise.
2326         * i386/linux-aout.h: Likewise.
2327         * i386/linux-oldld.h: Likewise.
2328         * i386/linux.h: Likewise.
2329         * i386/linux64.h: Likewise.
2330         * ia64/linux.h: Likewise.
2331         * m68k/linux-aout.h: Likewise.
2332         * m68k/linux.h: Likewise.
2333         * mips/linux.h: Likewise.
2334         * pa/pa-linux.h: Likewise.
2335         * pj/linux.h: Likewise.
2336         * rs6000/sysv4.h: Likewise.
2337         * s390/linux.h: Likewise.
2338         * sh/linux.h: Likewise.
2339         * sparc/linux-aout.h: Likewise.
2340         * sparc/linux.h: Likewise.
2341         * sparc/linux64.h: Likewise.
2342         * xtensa/linux.h: Likewise.
2344 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
2346         * stmt.c (check_unique_operand_names): Expect operand names to
2347         be strings rather than identifiers.  Use simple_cst_equal to
2348         compare them.
2349         (resolve_operand_name_1): Make same identifier to string change here.
2350         * c-parse.in (asm_operand): Convert a named operand into a string.
2351         * cp/parse.y (asm_operand): Likewise.
2353 2002-04-13  Andreas Schwab  <schwab@suse.de>
2355         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
2357 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
2359         Revert these changes:
2361         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
2363         PR c++/5571
2364         * stor-layout.c (layout_decl): Reset the RTL for the decl.
2366 2002-04-12  Richard Henderson  <rth@redhat.com>
2368         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
2369         (sparc*-*-solaris): Clean up header files.
2370         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
2371         and plan on generating 64-bit code.
2372         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
2373         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
2374         * config/sparc/sol2-sld-64.h: Rename ...
2375         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
2376         for AS_SPARC64_FLAG not defined.
2377         * config/sparc/sol2-gld-bi.h: New.
2378         * config/sparc/sol2-sld.h: Remove.
2379         * config/sparc/sol26-sld.h: New.
2380         * config/sparc/sol2.h: Tidy comments.
2381         * doc/install.texi: Document sparc-solaris configury changes.
2383 2002-04-12  Richard Henderson  <rth@redhat.com>
2385         * recog.c (offsettable_address_p): Match the logic in adjust_address.
2387         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
2388         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
2390 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2392         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
2394 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
2396         * pa.c (pa_can_combine_p): Call extract_insn before calling
2397         constrain_operands.
2399 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
2401         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
2402         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
2403         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
2404         (CPP_PREDEFINES): Handle __declspec.
2405         * config/i386/t-interix (USER_H): Remove.
2407 2002-04-12  DJ Delorie  <dj@redhat.com>
2409         * integrate.c (compare_blocks): Make comparisons safe for when
2410         sizeof(int) < sizeof(char *).
2411         (find_block): Likewise.
2413 2002-04-12  Jan Hubicka  <jh@suse.cz>
2414             David Edelsohn  <edelsohn@gnu.org>
2416         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
2417         registers.
2418         (symbol_ref_operand): New.
2419         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
2420         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
2422 2002-04-12  Andreas Schwab  <schwab@suse.de>
2424         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
2425         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
2426         overrides the definition in config/svr4.h.
2428 2002-04-12      Eric Norum <eric.norum@usask.ca>
2430         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
2431         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
2432         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
2433         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
2434         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
2435         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
2436         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
2437         definitions to config/rtems.h and make the targets more similar.
2439 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2441         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
2442         POINTERS_EXTEND_UNSIGNED.
2443         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
2444         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
2446         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
2447         not specified.
2449 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
2451         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
2452         depends on TARGET_SHMEDIA, not TARGET_SH5.
2454 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
2456         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
2457         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
2459 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
2461         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
2462         no r0 clobber.
2464 2002-04-12  Andreas Schwab  <schwab@suse.de>
2466         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
2468 2002-04-12  Richard Henderson  <rth@redhat.com>
2470         PR bootstrap/4191
2471         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
2473         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
2474         modes spanning multiple hard regs.
2476         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
2478 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2480         * pa.c (pa_output_function_prologue): Don't accumulate the total
2481         number of code bytes when using TARGET_64BIT, or gas, SOM and not
2482         the portable runtime.
2483         (output_deferred_plabels): Handle 64bit plabels.
2484         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
2485         generating pic code using the GAS assembler for object formats that
2486         are not SOM (ie., ELF32 and ELF64).
2487         (output_millicode_call): Check attribute type if attribute length is 28.
2488         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
2489         dbr_sequence_length once.
2490         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
2491         dbr_sequence_length once.
2492         * pa.h (TARGET_SOM): Define if not defined.
2493         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
2494         with GAS and not SOM.
2495         (jump, call_internal_reg, call_value_internal_reg): Likewise.
2496         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
2498 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2500         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
2501         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
2502         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
2503         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
2504         elfos.h and dbxelf.h values are fine now.
2505         * config/i386/freebsd.h, config/alpha/freebsd.h
2506         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
2508 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2510         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
2511         or set Acpu or Amachine.  Reformat.
2512         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2513         define.
2514         (LINK_SPEC): Do not need to undef.
2515         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
2516         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
2517         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2518         define.
2519         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
2520         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
2521         (LINK_SPEC): Do not need to undef.
2522         (DONT_USE_BUILTIN_SETJMP): Do not define.
2523         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
2524         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
2525         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
2526         Remove trailing spaces.
2527         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
2528         __ELF__, or set Acpu or Amachine.  Reformat.
2529         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2530         define.
2532 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2534         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
2535         all other *-*-freebsd* targets.
2537 2002-04-11  Richard Henderson  <rth@redhat.com>
2539         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
2541 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2543         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
2544         Include {cpu}/{cpu}.h thru tm_file.
2545         (alpha*-*-linux*ecoff): Remove target.
2546         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
2547         (LINK_SPEC): Remove, is not OS independent.
2548         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
2549         (LINK_SPEC): Do not need to #undef any longer.
2550         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
2551         any longer.
2552         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
2553         __ELF__.
2554         (LINK_SPEC): Moved here from alpha/elf.h.
2555         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
2556         SUB_CPP_PREDEFINES.
2557         * config/alpha/linux-ecoff.h: Remove.
2558         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
2559         (CPP_SPEC): Define _POSIX_SOURCE as needed.
2560         (CPP_SUBTARGET_SPEC): Do not define.
2561         (LINK_SPEC): Do not need to #undef any longer.
2562         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
2563         * config/alpha/vms.h: Likewise.
2565 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
2567         * doc/extend.texi: Remove old claim that typedefs cannot have
2568         an alignment attribute.
2570 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
2572         PR optimization/6177
2573         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
2574         bitpos is 0 and bitsize CONCAT size.
2576 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
2578         PR c/6223
2579         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
2581 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
2583         * config/alpha/freebsd.h: Minor reformatting.
2584         (CPP_SPEC): Define ELF and add cpp_subtarget.
2585         (ASM_SPEC): No longer needed.
2587 2002-04-11  Richard Henderson  <rth@redhat.com>
2589         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
2590         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
2591         (dimode mem/zero splitter): New.
2593 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
2595         * config/cris/cris.c (cris_override_options): Tweak error message
2596         for PIC not implemented.
2598         * config/cris/cris.h: Tweak comments related to parameter-passing.
2600         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
2602 2002-04-10  Richard Henderson  <rth@redhat.com>
2604         * except.c (add_ehl_entry): Allow duplicates after landing pad
2605         creation.
2607 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
2609         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
2611 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
2613         * c-decl.c (c_init_decl_processing): Move generation of
2614         decls for g77_integer_type_node and friends from here ...
2615         * c-common.c (c_common_nodes_and_builtins): ... to here.
2617 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
2619         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
2620         is only used as frame pointer when frame_pointer_needed is true.
2622 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
2624         PR target/817
2625         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
2626         for the fact that the pool entry uses two words.
2627         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
2628         1k bytes.
2629         (movdf_soft_insn): Similarly.
2630         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
2631         for the fact that the pool entry uses three words.
2633 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
2635         * config/mips/mips.c (mips_va_arg): When using the struct version
2636         of the EABI va_list, allow arguments in the register save area to
2637         take up less room than a stack argument.
2639 2002-04-10  Richard Henderson  <rth@redhat.com>
2641         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
2642         if EXPAND_INITIALIZER.
2644 2002-04-09  Richard Henderson  <rth@redhat.com>
2646         * config/alpha/alpha.md (movdi_er_maybe_g): New.
2647         * config/alpha/alpha.c (alpha_expand_mov): Use it.
2649 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
2651         PR optimization/6233
2652         * rtlanal.c (pure_call_p): New function.
2653         * rtl.h (pure_call_p): Declare.
2654         * loop.c (prescan_loop): Use it to set has_nonconst_call.
2655         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
2657 2002-04-09  Eric Christopher  <echristo@redhat.com>
2659         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
2660         information to .comm directive.
2662 2002-04-09  Richard Henderson  <rth@redhat.com>
2664         PR c/5078
2665         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
2667 2002-04-09  Richard Henderson  <rth@redhat.com>
2669         * basic-block.h (flow_delete_block_noexpunge): Declare.
2670         (expunge_block_nocompact): Declare.
2671         * cfg.c (expunge_block_nocompact): Split out from ...
2672         (expunge_block): ... here.
2673         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
2674         (flow_delete_block_noexpunge): Split out from ...
2675         (flow_delete_block): ... here.
2676         * cfgcleanup.c (delete_unreachable_blocks): Compact while
2677         removing dead blocks.
2678         * except.c (exception_handler_labels): Remove.
2679         (exception_handler_label_map): New.
2680         (struct eh_region): Add aka member.
2681         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
2682         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
2683         (for_each_eh_label, for_each_eh_label_1): New.
2684         (init_eh): Register exception_handler_label_map.
2685         (free_eh_status): Use free_region.
2686         (find_exception_handler_labels): Use the map, not the list.
2687         (remove_exception_handler_label): Likewise.
2688         (maybe_remove_eh_handler): Likewise.
2689         (remove_eh_handler): Use the region aka bitmap.
2690         * except.h (exception_handler_labels): Remove.
2691         (for_each_eh_label): Declare.
2692         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
2693         * loop.c (invalidate_loops_containing_label): New.
2694         (find_and_verify_loops): Use it.  Use for_each_eh_label.
2695         * sched-rgn.c (is_cfg_nonregular): Use
2696         current_function_has_exception_handlers.
2698 2002-04-09  Richard Henderson  <rth@redhat.com>
2700         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
2701         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
2702         Do not return changed status.
2703         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
2704         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
2705         New functions that do return changed status.
2706         * sbitmap.h: Update decls.
2707         * gcse.c, lcm.c: Use _cg functions as needed.
2709 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
2711         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
2712         (sh64-*-elf*, sh-*-rtemself*): Likewise.
2713         * config/sh/embed_bb.c: New file.
2714         * config/sh/embed-elf.h: New file.
2715         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
2716         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
2717         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
2718         __PTRDIFF_TYPE__ .
2719         (SUBTARGET_CPP_PTR_SPEC): Don't define.
2720         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
2721         Add subtarget_asm_endian_spec.
2722         (ASM_SPEC): Use subtarget_asm_endian_spec.
2723         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
2724         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
2725         (WCHAR_UNSIGNED): Define.
2726         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
2727         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
2728         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
2729         Fix value.
2730         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
2731         (sh_adjust_cost): Likewise.
2732         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
2733         __PTRDIFF_TYPE__ .
2734         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
2735         (WCHAR_TYPE_SIZE): Likewise.
2736         (ASM_SPEC): Use subtarget_asm_endian_spec.
2737         (SH_ELF_WCHAR_TYPE): #undef/ #define.
2738         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
2739         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
2740         (MAX_WCHAR_TYPE_SIZE): Don't #define .
2741         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
2742         (USER_LABEL_PREFIX): Don't #undef /#define .
2743         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
2744         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
2745         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
2746         (ASM_SPEC): Likewise.
2747         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
2748         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
2749         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
2750         (LIB2FUNCS_EXTRA): Define.
2751         * t-sh64 (LIB2FUNCS_EXTRA): Define.
2752         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
2753         (LIB1ASMFUNCS_CACHE): Define.
2754         (LIB2FUNCS_EXTRA): Redefine empty.
2756 2002-04-08  Richard Henderson  <rth@redhat.com>
2758         * reorg.c (get_branch_condition): Use reversed_comparison_code.
2760 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2762         * config/m68hc11/larith.asm (__map_data_section): Fix condition
2763         and optimize for size.
2764         (__do_global_ctors): Fix pointer comparison.
2765         (__do_global_dtors): Likewise.
2767 2002-04-09  David S. Miller  <davem@redhat.com>
2769         * config/sparc/sparc.c (sparc_extra_constraint_check): New
2770         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
2771         allow reloading pseudos.
2772         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
2773         * config/sparc/sparc-protos.h: Declare it.
2775         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
2776         unsigned comparison warning.
2777         (output_restore_regs): Mark leaf_function as unused.
2779 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2781         * expr.c (is_aligning_offset): New function.
2782         (expand_expr, case COMPONENT_EXPR): Call it.
2784 2002-04-08  David S. Miller  <davem@redhat.com>
2786         PR target/6082
2787         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
2789         Make init_priority work on Sparc when using GNU ld.
2790         * config/sparc/linux.h, config/sparc/linux64.h,
2791         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
2792         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
2793         * config/sparc/sol2-gld.h: New file to do the same.
2794         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
2795         sparc/sol2-gld.h to tm_file.
2797         PR optimization/4328
2798         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
2799         * doc/md.texi: Document it.
2800         * config/sparc/sparc.md (movdi_insn_sp64_novis,
2801         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
2802         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
2803         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
2804         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
2806 2002-04-08  Andreas Jaeger  <aj@suse.de>
2808         * stmt.c (expand_asm_operands): Revert last patch from Richard
2809         Henderson.
2811 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2813         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
2814         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
2816 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2818         * doc/contrib.texi (Contributors): Add David O'Brien.
2820 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
2822         * configure.in (auto-build.h): Use target_alias and build_alias
2823         when running configure.
2824         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
2825         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
2826         * configure: Regenerate.
2828 2002-04-07  David S. Miller  <davem@redhat.com>
2830         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
2832 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2834         PR 5933
2835         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
2836         generating 32-bit pic code.
2838 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
2840         * cppinit.c (cpp_create_reader): Initialize
2841         discard_comments_in_macro_exp.
2842         (COMMAND_LINE_OPTIONS): Add "-CC" option.
2843         (cpp_handle_option): Handle "-CC" option.
2844         * cpplex.c (save_comment): If saving a C++ comment in
2845         a directive, convert it to a C comment.
2846         (_cpp_lex_direct): Pass second comment start character to
2847         save_comment to indicate comment type.
2848         * cpplib.c (_cpp_handle_directive): If processing
2849         a "#define" directive and discard_comments_in_macro_exp
2850         is false,  re-enable saving of comments.
2851         (lex_macro_node): If discard_comments_in_macro_exp is false,
2852         discard any comments before the macro identifier.
2853         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
2854         member.
2855         * cppmacro.c (cpp_get_token): If expanding a macro while
2856         processing a directive, discard any comments we might encounter.
2857         (parse_params): If discard_comments_in_macro_exp is false,
2858         ignore comments in the macro parameter list.
2859         * gcc.c (cpp_unique_options): Add "-CC" option.
2860         (option_map): Map "--comments-in-macros" to "-CC".
2861         * doc/cppopts.texi: Document "-CC" option.
2862         * f/lang-specs.h: Add "-CC" option.
2863         * testsuite/gcc.dg/cpp/maccom1.c: New test.
2864         * testsuite/gcc.dg/cpp/maccom2.c: New test.
2865         * testsuite/gcc.dg/cpp/maccom3.c: New test.
2866         * testsuite/gcc.dg/cpp/maccom4.c: New test.
2867         * testsuite/gcc.dg/cpp/maccom5.c: New test.
2868         * testsuite/gcc.dg/cpp/maccom6.c: New test.
2870 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2872         PR middle-end/6180
2873         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
2875 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
2877         PR c++/5571
2878         * stor-layout.c (layout_decl): Reset the RTL for the decl.
2880         PR opt/5120
2881         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
2882         RTX_UNCHANGING_P for the functions arguments when a tail call
2883         is made.
2885 2002-04-06  Jason Merrill  <jason@redhat.com>
2887         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
2888         (parse_options_and_default_flags): Set them appropriately.
2889         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
2891 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
2893         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
2894         here.
2896         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
2897         semicolon.
2899         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
2900         types come in by-reference.  Fix typo in comment.
2902 2002-04-05  David S. Miller  <davem@redhat.com>
2904         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
2905         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
2906         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
2907         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
2909 2002-04-05  David S. Miller  <davem@redhat.com>
2911         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
2912         are not going to emit return instructions, emit at least a nop
2913         for the sake of sane backtraces.
2915 2002-04-05  Richard Henderson  <rth@redhat.com>
2917         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
2919 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
2921         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
2923 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
2925         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
2926         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
2927         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
2929 2002-04-05  Andreas Schwab  <schwab@suse.de>
2931         * c-convert.c: Include c-common.h.
2932         * Makefile.in (c-convert.o): Updated.
2934 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
2936         * mklibgcc.in: Use separate libgcc.map for each multilib.
2937         * Makefile.in (distclean): Don't remove libgcc.map here.
2939 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
2941         * Makefile.in (s-mlib): Handle --disable-multilib by separate
2942         genmultilib invocation.
2944 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
2946         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
2947         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
2948         to num_gprs for symmetry.
2949         * config/mips/mips.c: Adjust accordingly.
2951 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
2953         * c-common.c (truthvalue_conversion): Rename, update.
2954         * c-common.h (c_common_truthvalue_conversion): New.
2955         * c-convert.c (convert): Update.
2956         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
2957         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
2958         * c-typeck.c (build_binary_op, build_unary_op,
2959         build_conditional_expr): Update.
2960         * fold-const.c (constant_boolean_node, fold): Use langhook.
2961         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
2962         * langhooks.h (struct lang_hooks): New hook.
2963         * stmt.c (expand_decl_cleanup): Use langhook.
2964         * tree.h (truthvalue_conversion): Remove.
2965 objc:
2966         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
2968 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
2970         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
2971         Add rules to make null object file.
2973 2002-04-04  Jim Blandy  <jimb@redhat.com>
2975         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
2976         macro formal parameter names.
2978 2002-04-04  David S. Miller  <davem@redhat.com>
2980         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
2982 2002-04-04  Richard Henderson  <rth@redhat.com>
2984         PR middle-end/5099
2985         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
2986         Support copies into and out of memory.  Don't accept allows_reg
2987         and allows_mem as gospel.
2989 2002-04-04  Richard Henderson  <rth@redhat.com>
2991         PR opt/6165
2992         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
2993         (write_dependence_p): Likewise.
2995 2002-04-04  Richard Henderson  <rth@redhat.com>
2997         * predict.c (estimate_bb_frequencies): Do frequency calculation
2998         with a volatile temporary.
3000 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
3002         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
3004 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
3006         PR c++/6119
3007         * final.c (final_start_function): Don't bump profile_label_no here...
3008         (final_end_function): ...but here.
3010 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
3012         * config/sparc/sparc.md (pic): New attribute.
3013         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
3014         into stack slots.
3015         (split after do_builtin_setjmp_setup): New.
3017 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
3019         PR fortran/6106
3020         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
3021         change.
3023 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
3025         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
3026         UNITS_PER_WORD for zero sized aggregates.
3028 2002-04-03  David S. Miller  <davem@redhat.com>
3030         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
3031         one-character spec for this, just use %(link_gcc_c_sequence).
3033 2002-04-03  David S. Miller  <davem@redhat.com>
3035         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
3036         handling.
3038 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3040         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
3041         (DWARF_FRAME_RETURN_COLUMN): Move.
3042         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3043         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
3044         * pa.c (except.h, predict.h): Include.
3045         (FRP): Delete.
3046         (store_reg_modify, set_reg_plus_d): Revise prototypes.
3047         (output_ascii): Add cast.
3048         (store_reg_modify): Revise to add frame notes.
3049         (set_reg_plus_d): Likewise.
3050         (compute_frame_size): Include space for eh data registers in frame if
3051         the current function calls eh_return.
3052         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
3053         function calls eh_return.  Save eh data registers if the current
3054         function calls eh_return.  Fix code to add frame notes.  Emit
3055         blockage to prevent insns with frame notes being scheduled in the
3056         delay slot of calls.
3057         (hppa_expand_epilogue): Restore eh data registers and do final stack
3058         adjustment if the current function calls eh_return.  Don't add frame
3059         notes.
3060         (output_call): Revise for change in length of call insn.  Don't do
3061         return pointer adjustment for an unconditional jump in the delay slot
3062         of a call when using frame notes.
3063         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
3064         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
3065         (ARG_POINTER_CFA_OFFSET): Define.
3066         * pa.md (return_external_pic): New pattern.
3067         (prologue): Correct formatting.  Use return_external_pic if current
3068         function calls eh_return.
3069         (call_internal_symref, call_value_internal_symref,
3070         sibcall_internal_symref, sibcall_value_internal_symref): Change default
3071         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
3072         respectively.
3073         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
3075         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
3076         list of targets to check using "nop" insn.
3077         * configure: Rebuilt.
3079 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
3081         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
3083 2002-04-03  David S. Miller  <davem@redhat.com>
3085         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
3086         library sequence passed to the linker.
3087         (LINK_COMMAND_SPEC): Use it.
3088         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
3089         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
3090         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3092 2002-04-03  Jason Merrill  <jason@redhat.com>
3094         * except.c (struct eh_status): Remove protect_list.
3095         (begin_protect_partials, end_protect_partials): Remove.
3096         (add_partial_entry): Remove.
3097         * except.h: Remove prototypes.
3099         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
3100         expand_decl_cleanup_eh.
3102         PR c++/5636
3103         * tree.h (CLEANUP_EH_ONLY): New macro.
3104         * stmt.c (expand_decl_cleanup_eh): New fn.
3105         (expand_cleanups): Check CLEANUP_EH_ONLY.
3106         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
3107         Use expand_decl_cleanup_eh.
3108         (expand_stmt): Adjust.
3109         * c-common.h: Adjust prototype.
3111 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
3113         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
3114         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
3115         (cris_target_asm_function_epilogue): Ditto.
3116         (cris_initial_frame_pointer_offset): Ditto.
3117         (cris_simple_epilogue): Ditto.
3118         (cris_expand_builtin_va_arg): Variable-size types come in
3119         by-reference.
3121 2002-04-03  David S. Miller  <davem@redhat.com>
3123         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
3124         little-endian.
3125         (set_fast_math): Correct 'fsr' type.
3127 2002-04-03  Richard Henderson  <rth@redhat.com>
3129         PR opt/3569
3130         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
3131         * toplev.c (check_global_declarations): Use it.
3132         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
3133         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
3134         (LANG_HOOKS_DECLS): Add it.
3135         * langhooks.c (lhd_warn_unused_global_decl): New.
3136         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
3137         * c-objc-common.c (c_warn_unused_global_decl): New.
3138         * c-tree.h (c_warn_unused_global_decl): Declare.
3139         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
3141 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
3143         * langhooks-def.h (lhd_set_decl_assembler_name,
3144         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
3145         (LANG_HOOKS_INITIALIZER): Update.
3146         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
3147         * langhooks.h (struct lang_hooks): New hook.
3148         * tree.c (set_decl_assembler_name): Move to langhooks.c.
3149         (lang_set_decl_assembler_name): Remove.
3150         (init_obstacks): Don't set hook.
3151         (decl_assembler_name): New function.
3152         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
3153         (decl_assembler_name): New.
3154         (lang_set_decl_assembler_name): Remove.
3156 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
3158         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
3159         works properly with .hidden symbols.
3160         * configure: Rebuilt.
3161         * config.in: Rebuilt.
3162         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
3163         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
3164         properly with .hidden symbols.
3166 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
3168         PR middle-end/6102
3169         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
3170         USE argument.
3172 2002-04-03  Richard Henderson  <rth@redhat.com>
3174         PR opt/4120
3175         * sched-rgn.c (sets_likely_spilled): New.
3176         (sets_likely_spilled_1): New.
3177         (add_branch_dependences): Use it.
3179 2002-04-02  Richard Henderson  <rth@redhat.com>
3181         PR opt/4311
3182         * loop.h (LOOP_FIRST_PASS): New.
3183         * loop.c (strength_reduce): Mind it when deciding to unroll.
3184         * toplev.c (rest_of_compilation): Set it.
3186 2002-04-02  David S. Miller  <davem@redhat.com>
3188         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
3189         mems_ok_for_ldd_peep when the order of the loads being examined
3190         is reversed.
3191         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
3192         existing comment to increase comprehension of this situation.
3194 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
3196         * config/sh/sh.md: Don't use union real_extract.
3198 2002-04-02  Richard Henderson  <rth@redhat.com>
3200         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
3202 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
3204         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
3205         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
3206         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
3207         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
3208         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
3209         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
3210         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
3211         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
3212         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
3213         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
3214         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
3215         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
3216         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
3217         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
3218         Include as many configury headers via tm_file as possible.  This
3219         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
3220         * config/openbsd-oldgas.h: New file.
3221         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
3222         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
3223         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
3224         config/i386/i386-coff.h, config/i386/i386-interix.h,
3225         config/i386/iscdbx.h, config/i386/linux-aout.h,
3226         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
3227         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
3228         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
3229         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
3230         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
3231         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
3232         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
3233         config/i386/vxi386.h: Do not directly include configury headers.
3234         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
3235         Directly include configury headers that are no longer automatically
3236         included by the above headers.
3237         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
3238         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
3239         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
3240         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
3241         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
3242         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
3243         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
3244         (TARGET_VERSION): Define.
3245         * config/i386/beos-elf.h, config/i386/freebsd.h,
3246         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
3247         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
3248         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
3249         config/i386/sco5.h, config/i386/sysv4.h
3250         (TARGET_VERSION): Do not need to protect.
3251         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
3252         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
3253         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
3254         config/i386/i386-interix.h, config/i386/linux-aout.h,
3255         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
3256         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
3257         (YES_UNDERSCORES): Do not define - not needed.
3258         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
3259         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
3260         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
3261         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
3262         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
3263         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
3264         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
3265         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
3267 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
3268             Richard Henderson  <rth@redhat.com>
3270         PR c/5484
3271         * function.c (assign_temp): Accept either type or decl argument.
3272         Detect variables whose size is too large to fit into an integer.
3273         * stmt.c (expand_decl): Pass the decl, not the type.
3275 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
3277         * protoize.c: Match include directory usage with cppdefault.c.
3279 2002-04-03  Jeffrey A Law  (law@redhat.com)
3280             Hans-Peter Nilsson  <hp@bitrange.com>
3282         * combine.c (simplify_comparison): Avoid narrowing a comparison
3283         with a paradoxical subreg when doing so would drop signficant bits.
3285 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
3287         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
3288         if POINTERS_EXTEND_UNSIGNED is defined.
3290 2002-04-02  Richard Henderson  <rth@redhat.com>
3292         PR opt/3967
3293         * local-alloc.c (contains_replace_regs): LO_SUM may contain
3294         replace regs.
3296 2002-04-02  Richard Henderson  <rth@redhat.com>
3298         * doc/standards.texi: Document required freestanding libc entry points.
3300 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
3302         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
3303         associated splitter.  Remove MQ constraint.
3304         (ctrdi_internal4): Correct CCmode clobber.
3306 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3308         * milli64.S ($$dyncall): New function.
3309         * t-linux (LIB1ASMFUNCS): Revise module list.
3310         (LIB1ASMSRC): Use pa/milli64.S.
3312 2002-04-02  Richard Henderson  <rth@redhat.com>
3314         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
3315         rename solaris_sys_varargs_h.
3317 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3319         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
3320         the same mode as its component.
3322 2002-04-02  Richard Henderson  <rth@redhat.com>
3324         PR opt/190
3325         * final.c (this_is_asm_operands): Export.
3326         * output.h (this_is_asm_operands): Declare.
3327         * config/i386/i386.c (print_operand): Error odd asm operands.
3329 2002-04-02  Richard Henderson  <rth@redhat.com>
3331         PR opt/420
3332         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
3334 2002-04-01  Richard Henderson  <rth@redhat.com>
3336         PR target/1538
3337         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
3338         * fixinc/fixincl.x: Rebuild.
3340 2002-04-01  Richard Henderson  <rth@redhat.com>
3342         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
3343         (atomic_alloc, atomic_free): New.
3344         (SIZE, MASK_FOR, PTR_IN): New.
3345         (emergency_reg_state, emergency_reg_state_free): New.
3346         (emergency_labeled_state, emergency_labeled_state_free): New.
3347         (reg_state_alloced, labeled_state_alloced): New.
3348         (alloc_reg_state, free_reg_state): New.
3349         (alloc_label_state, free_label_state, free_label_states): New.
3350         (push, pop, dup_state_stack, free_state_stack): Use them.
3351         (desc_label_state): Likewise.
3352         (uw_frame_state_for): Free label states and state stack.
3353         (uw_update_reg_address): Eliminate warnings.
3355 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
3357         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
3358         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
3360 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3362         * c-decl.c (grokdeclarator): Update.
3363         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
3364         * c-tree.h (c_mark_addressable): New.
3365         * c-typeck.c (default_function_array_conversion, build_unary_op,
3366         build_array_ref, convert_for_assignment): Update.
3367         (mark_addressable): Rename.
3368         * calls.c (try_to_integrate, expand_call): Use langhook.
3369         * expr.c (expand_expr): Use langhook.
3370         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
3371         * langhooks.h (struct lang_hooks): New hook.
3372         * stmt.c (expand_asm_operands): Use langhook.
3373         * tree.h (mark_addressable): Remove.
3374 objc:
3375         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
3377 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
3379         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
3380         in previous change.
3382 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
3384         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
3385         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
3387 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3389         * c-common.c (unsigned_conversion_warning, convert_and_check,
3390         unsigned_type, signed_type, shorten_compare,
3391         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
3392         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
3393         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
3394         New.
3395         * c-decl.c (grokdeclarator): Update.
3396         * c-format.c (check_format_types): Update.
3397         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
3398         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
3399         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
3400         * convert.c (convert_to_integer): Use new hooks.
3401         * expmed.c (make_tree): Use new hooks.
3402         * expr.c (store_expr): Use new hooks.
3403         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
3404         all_ones_mask_p, unextend, fold): Use new hooks.
3405         * langhooks.h (struct lang_hooks_for_types): New hooks.
3406         * tree.h (signed_or_unsigned_type, signed_type,
3407         unsigned_type): Remove.
3408 objc:
3409         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
3410         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
3412 2002-03-31  Richard Henderson  <rth@redhat.com>
3414         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
3415         (desc_frgr_mem): Fix reference to f16-f31.
3417 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3419         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
3420         RTVEC_ELT): Const-ify.
3421         * varray.h (VARRAY_CHECK): Const-ify.
3422         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
3423         ggc_mark_rtvec, ggc_mark): Const-ify.
3425 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3427         * diagnostic.c: Include langhooks-def.h.
3428         * Makefile.in (diagnostic.o): Update.
3430 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
3432         * c-common.c (c_unsafe_for_reeval): Rename.
3433         * c-common.h (c_unsafe_for_reeval): Rename.
3434         * c-decl.c (finish_incomplete_decl): Rename.
3435         (c_init_decl_processing): Don't set langhook.
3436         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
3437         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3438         * c-objc-common.c (c_objc_common_init): Don't set langhook.
3439         * c-tree.h (finish_incomplete_decl): Rename.
3440         * langhooks-def.h (lhd_unsafe_for_reeval): New.
3441         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
3442         (LANG_HOOKS_INITIALIZER): Update.
3443         * langhooks.c (lhd_unsafe_For_reeval): New.
3444         * langhooks.h (struct langhooks): New hooks.
3445         * toplev.c (incomplete_decl_finalize_hook): Remove.
3446         (wrapup_global_declarations): Update.
3447         * tree.c (lang_unsafe_for_reeval): Remove.
3448         (unsafe_for_reeval): Update.
3449         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
3450         Remove.
3451 objc:
3452         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
3453         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3455 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
3457         * diagnostic.c (print_error_function): Remove.
3458         (default_print_error_function): Rename.
3459         (report_error_function): Update.
3460         * diagnostic.h (print_error_function): Remove.
3461         (default_print_error_function): Remove.
3462         * langhooks-def.h (struct diagnostic_context): Predeclare.
3463         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
3464         (LANG_HOOKS_INITIALIZER): Update.
3465         * langhooks.h (struct diagnostic context): Predeclare.
3466         (struct lang_hooks): New hook.
3468 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3470         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
3471         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
3472         !flag_pic.
3473         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
3474         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
3475         of PIC_OFFSET_TABLE_REGNUM thruout.
3476         * config/rs6000/rs6000.md: Likewise.
3477         * config/rs6000/darwin.h: Likewise.
3479 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3481         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
3482         unsigned HOST_WIDE_INT, not unsigned int.
3484 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
3486         PR middle-end/6096, middle-end/6098, middle-end/6099
3487         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
3488         CODE_LABELs.
3489         (fill_slots_from_thread): Likewise.
3491 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
3493         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
3494         floating fields in float regs.
3495         (function_arg_record_value_2): Likewise.
3497 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
3499         * config/mmix/mmix.md (define_constants): Remove misleading
3500         FIXME.  Add MMIX_fp_rO_OFFSET.
3501         ("nonlocal_goto_receiver"): Don't have stack-frame address of
3502         saved rO as part of the pattern.  Remove FIXME.
3503         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
3504         here, at output-time.
3506 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
3508         PR middle-end/6100
3509         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
3510         REG_BR_PRED.
3511         (output_v9branch): Likewise.
3513 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
3515         * gcc.c: Revert previous patch for now.
3516         * config/i386/djgpp.h: Likewise.
3518 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
3520         * config/mmix/crti.asm (_init): Register _fini with atexit.
3521         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
3523 2002-03-31  Richard Henderson  <rth@redhat.com>
3525         PR target/3997
3526         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
3527         (ASM_OUTPUT_DEF_FROM_DECLS): New.
3529 2002-03-31  Richard Henderson  <rth@redhat.com>
3531         * libgcc2.c (__bb_exit_func): Make static.
3533         * config/alpha/alpha.md (trap): New.
3535 2002-03-31  Richard Henderson  <rth@redhat.com>
3537         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
3538         promoted argument types; build trap.
3539         (expand_builtin_trap): New.
3540         (expand_builtin): Use it.
3541         * stmt.c (expand_nl_goto_receivers): Likewise.
3542         * expr.h (expand_builtin_trap): Declare.
3543         * libfuncs.h (LTI_abort, abort_libfunc): New.
3544         * optabs.c (init_optabs): Init abort_libfunc.
3546 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
3548         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
3549         (LINK_COMMAND_SPEC): ... from here.
3550         (init_gcc_specs): Duplicate it here too, omitting
3551         shared_name in the second copy.
3552         (init_spec): Test for duplicate
3553         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
3555 2002-03-30  David S. Miller  <davem@redhat.com>
3557         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3558         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
3560 2002-03-30  Roger Sayle <roger@eyesopen.com>
3561             Richard Henderson  <rth@redhat.com>
3563         * regmove.c (combine_stack_adjustments_for_block): Avoid
3564         emitting a stack adjustment of zero bytes.  Let delete_insn
3565         update bb->head.
3567 2002-03-30  Richard Henderson  <rth@redhat.com>
3569         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
3570         (sparc_emitting_epilogue): New.
3571         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
3572         * config/sparc/sparc-protos.h: Update.
3573         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
3574         (TARGET_SWITCHES): Update.
3575         * config/sparc/sparc.md (return): Remove.
3576         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
3577         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
3578         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
3579         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
3580         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
3581         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
3582         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
3583         Remove MASK_EPILOGUE.
3584         * doc/invoke.texi: Update.
3586 2002-03-30  Daniel Berlin  <dan@dberlin.org>
3588         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
3589         CPP will start the file for us.
3591 2002-03-30  Richard Henderson  <rth@redhat.com>
3593         PR target/5446
3594         * config/ia64/ia64.c (group_barrier_needed_p): Special case
3595         prologue_allocate_stack.
3596         (ia64_single_set): Use insn codes for recognition of special
3597         cases, not rtl matching.
3598         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
3600 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
3602         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
3604 2002-03-30  Richard Henderson  <rth@redhat.com>
3606         PR target/6032
3607         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
3608         or -fomit-frame-pointer with profiling.
3609         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3610         (FUNCTION_PROFILER): Do nothing.
3611         (PROFILE_HOOK): New.
3612         * config/sparc/sparc.c (sparc_override_options): Don't check
3613         code models for profiling.
3614         (sparc_function_profiler): Remove.
3615         (sparc_profile_hook): New.
3616         * config/sparc/sparc-protos.h: Update.
3618 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
3620         PR optimization/6086
3621         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
3622         of SUBREG of volatile MEM or because the MEM was mode dependent,
3623         return CLOBBER instead of unmodified SUBREG.
3625 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
3627         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
3628         when not optimizing.
3630         * toplev.c (rest_of_compilation): Cann mark_constant_function
3631         only when optimizing.
3633         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
3634         are NULL.
3636         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
3637         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
3638         (try_optimize_cfg): clear all AUX fields.
3640         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
3641         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
3642         (ix86_address_cost): Be prepared for SUBREGed registers.
3643         (legitimate_address_p): Accept SUBREGed registers.
3645 2002-03-29  Richard Henderson  <rth@redhat.com>
3647         PR target/5672
3648         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
3650 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3652         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
3653         for aggregate and TFmode types.
3655 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
3657         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
3659 2002-03-29  Richard Henderson  <rth@redhat.com>
3661         PR target/5886
3662         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
3663         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
3665 2002-03-29  Richard Henderson  <rth@redhat.com>
3667         PR target/6041
3668         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
3669         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
3670         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
3671         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
3672         conditional.
3673         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
3675 2002-03-29  Dale Johannesen <dalej@apple.com>
3677         * loop.c (combine_movables): Do allow combination of pseudos.
3679 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
3681         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
3682         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
3683         No functional change except ...
3684         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
3685         * doc/install.texi (*-*-freebsd*): Document port configuration.
3687 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3689         * Makefile.in (convert.o, calls.o, expmed.o): Update.
3690         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
3691         Use new hooks.
3692         * builtin-types.def (BT_PTRMODE): Update.
3693         * c-common.c (type_for_size): Rename c_common_type_for_size.
3694         (type_for_mode): Similarly.
3695         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
3696         Use new hook.
3697         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
3698         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
3699         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
3700         Redefine.
3701         * c-typeck.c (common_type, comptypes, default_conversion):
3702         Use new hooks.
3703         * calls.c: Include langhooks.h.
3704         (emit_library_call_value_1): Use new hooks.  Avoid redundant
3705         calls.
3706         * convert.c: Include langhooks.h
3707         (convert_to_pointer, convert_to_integer): Use new hooks.
3708         * except.c (init_eh): Similarly.
3709         * expmed.c: Include langhooks.h.
3710         (expand_mult_add): Use new hooks.
3711         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
3712         try_casesi): Similarly.
3713         * fold-const.c (optimize_bit_field_compare, make_range,
3714         decode_field_reference, fold_truthop, fold): Similarly.
3715         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
3716         put_var_into_stack): Similarly.
3717         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
3718         LANG_HOOKS_TYPE_FOR_SIZE): New.
3719         (LANG_HOOKS_TYPES_INITIALIZER): Update.
3720         * langhooks.h (lang_hooks_for_types): New hooks.
3721         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
3722         * tree.c (get_unwidened, get_narrower): Similarly.
3723         * tree.h (type_for_mode, type_for_size): Remove.
3724         * varasm.c (force_const_mem): Use new hooks.
3725         * utils2.c (nonbinary_modular_operation): Update.
3726 objc:
3727         * objc-act.c (handle_impent): Update.
3728         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
3729         Redefine.
3731 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
3733         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
3734         * config/ia64/ia64.c (basereg_operand): New.
3735         * config/ia64/ia64-protos.h (basereg_operand): Declare.
3736         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
3738 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
3740         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
3741         unwind information when frame_pointer_needed.
3742         (mmix_assemble_integer): Tweak wording in comment.
3744 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3746         * Makefile.in (except.o): Update.
3747         * except.c: Include langhooks.h.
3748         (init_eh): Use langhook.
3749         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
3750         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
3751         (LANG_HOOKS_INITIALIZER): Update.
3752         * langhooks.h (lang_hooks_for_types): New.
3753         (struct lang_hooks): Add it.
3754         * tree.c (make_lang_type_fn, make_lang_type): Remove.
3755         * tree.h (make_lang_type_fn, make_lang_type): Remove.
3756 config:
3757         * alpha/alpha.c: Include langhooks.h.
3758         (alpha_build_va_list): Use langhook.
3759         * d30v/d30v.c: Include langhooks.h.
3760         (d30v_build_va_list): Use langhook.
3761         * i386/i386.c: Include langhooks.h.
3762         (ix86_build_va_list): Use langhook.
3763         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
3764         * s390/s390.c: Include langhooks.h.
3765         (s390_build_va_list): Use langhook.
3766         * stormy16/stormy16.c: Include langhooks.h.
3767         (stormy16_build_va_list): Use langhook.
3769 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
3771         PR c++/5964
3772         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
3773         attributes.
3774         (length): Compute variable length for branches/calls/jumps here.
3775         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
3776         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
3777         define branch_type attribute.
3778         (divsi3_sp32): Maximum length is 6 not 7.
3779         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
3780         call_address_untyped_struct_value_sp32,
3781         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
3782         * config/sparc/sparc.c (empty_delay_slot): New function.
3783         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
3784         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
3786 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
3788         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
3789         nonzero_bits if not needed.
3790         (nonzero_bits) [XOR]: Likewise.
3791         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
3792         reg_last_set_mode and mode are both MODE_INT, but not equal.
3793         (record_value_for_reg): Compute reg_last_set_nonzero_bits
3794         in nonzero_bits_mode for MODE_INT modes.
3796 2002-03-28  Richard Henderson  <rth@redhat.com>
3798         PR target/5715
3799         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
3800         to GAS.  Correct drift between alternatives.
3802 2002-03-28  Richard Henderson  <rth@redhat.com>
3804         PR target/6087
3805         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
3807 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
3809         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
3810         emulation to the linker.
3812 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
3814         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
3815         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
3817 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
3819         * combine.c (simplify_and_const_int): Make sure to apply mask
3820         when force_to_mode returns a constant integer.  PR3311.
3822 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3824         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
3826 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3828         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
3829         and Objective-C Dialect Options.
3831 2002-03-28  Richard Henderson  <rth@redhat.com>
3833         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
3834         comparison should be done vs !=0 not >0 return code.  Tidy cases.
3836 2002-03-28  Richard Henderson  <rth@redhat.com>
3838         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
3839         on to c_expand_body.
3840         * c-tree.h (finish_function): Update decl.
3841         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
3843 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
3845         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
3847 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
3849         * rtlanal.c: Include flags.h
3850         (may_trap_p): Do not mark FP operations if trapping
3851         if !flag_trapping_math
3852         * Makefile.in (rtlanal.o): Add dependency on flag.h
3853         * ifcvt.c (noce_operand_ok): Avoid the lameness.
3855 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
3857         * mips.md: Use dconst1, not 1.0, as first argument of
3858         REAL_VALUE_LDEXP.  Don't use union real_extract.
3860 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
3862         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
3863         rather than $target.  Heed program_prefix and
3864         program_transform_name.  Search for gas in cross-compiler case too.
3865         "test -x" rather than "test -f".
3866         (gcc_cv_ld): Likewise.
3867         (gcc_cv_nm): Heed program_prefix and program_transform_name.
3868         (gcc_cv_objdump): Likewise.
3869         * configure: Regenerate.
3871 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3873         * Makefile.in (attribs.o): Update.
3874         * attribs.c: Include langhooks.h.
3875         (decl_attributes): Use langhook.
3876         * c-decl.c (insert_default_attributes): Rename.
3877         * c-tree.h (c_insert_default_attributes): New.
3878         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
3879         (LANG_HOOKS_INITIALIZER): Update.
3880         * langhooks.h (struct lang_hooks): New hook.
3881         * tree.h (insert_default_attributes): Remove.
3882 objc:
3883         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
3885 2002-03-27  Andreas Schwab  <schwab@suse.de>
3887         * config/i386/i386.c (classify_argument): Also check for
3888         QUAL_UNION_TYPE.
3890 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3892         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
3893         any more.
3895 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
3897         * i960.md (ret): Set PC.
3898         (nonlocal_goto): Fix expander.
3899         * builtins.c (epxand_builin_longjmp): Check that we've emitted
3900         some jump or call.
3902 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
3904         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
3905         of libcall regions.
3907 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3909         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
3910         assigning to BLOCK_FOR_INSN directly.
3912 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
3914         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
3916 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3918         * c-common.c (c_expand_expr): Fix prototype.
3919         * c-common.h (c_expand_expr): Always declare, update.
3920         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
3921         * c-objc-common.c (c_objc_common_init): No global hook.
3922         * expr.c (expand_expr): Use langhook.
3923         * expr.h (enum expand_modifier): Conditionally declare.
3924         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
3925         (LANG_HOOKS_INITIALIZER): Update.
3926         * langhooks.c (lhd_expand_expr): New.
3927         * langhooks.h (struct lang_hooks): New hook.
3928         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
3929         (lang_independent_init): Don't default hook.
3930 objc:
3931         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
3933 2002-03-27  Richard Henderson  <rth@redhat.com>
3935         PR target/6054
3936         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
3937         TARGET_CONST_GP.  Simplify conditions.
3939 2002-03-27  Richard Henderson  <rth@redhat.com>
3941         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
3942         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
3943         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
3945 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
3947         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
3948         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
3949         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
3950         Remove unnecessary masks.
3951         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
3952         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
3953         -mwindows, -mdll switches and their negations.
3955 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3957         * gcc-common.c (lang_mark_false_label_stack): Remove.
3958         * ggc.h (lang_mark_false_label_stack): Similarly.
3960 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
3962         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
3964         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
3965         or __rtems_ is defined.
3967 2002-03-26  Richard Henderson  <rth@redhat.com>
3969         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
3970         if a non-trivial load was emitted.
3971         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
3972         in high+extra+low case.
3974 2002-03-26  Richard Henderson  <rth@redhat.com>
3976         * config.gcc (sparc*-solaris): Use float_format=sparc.
3978 2002-03-26  Richard Henderson  <rth@redhat.com>
3980         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
3981         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
3982         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
3983         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
3984         (WINT_TYPE_SIZE): Fix at 32.
3986 2002-03-26  Richard Henderson  <rth@redhat.com>
3988         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
3989         until after eh landing pad generation.
3990         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
3991         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
3993 2002-03-26  Richard Henderson  <rth@redhat.com>
3995         * expr.h (ADD_PARM_SIZE): One more convert for INC.
3997 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
3999         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
4000         and warning switches.
4001         (cc1_options):  Likewise.
4003 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
4005         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
4006         Restore more of the signal context.  Set no_reg_stack_frame.
4007         * config/ia64/unwind-ia64.c (unw_state_record):
4008         Add no_reg_stack_frame, comments.
4009         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
4010         (uw_update_context): Adjust bsp when unwinding from leaf,
4011         but not signal frame.
4013 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
4015         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
4017 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
4019         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
4021 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
4023         PR target/5621
4024         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
4025         "Add a pool_range attribute", which was lost during the ARM/Thumb
4026         merge.
4028 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
4030         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
4031         a register into the MAC16 accumulator.
4033 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
4035         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
4036         (Warning Options): Document -Wswitch-enum.
4037         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
4038         -Wswitch.
4039         (warn_switch_enum): Define variables.
4040         * flags.h (warn_switch_enum): Declare variables.
4041         * stmt.c (expand_end_case_type): When warn_switch_enum /
4042         -Wswitch-enum, perform switch checks.
4043         Fix PR c/5044.
4045 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
4047         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
4048         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
4049         (reload_muladdsi_compare0_scratch): Delete.
4051 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
4053         * doc/install.texi (*-*-freebsd*): Update.
4055 2002-03-26  Richard Henderson  <rth@redhat.com>
4057         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
4058         (SUB_PARM_SIZE): Cast DEC to ssizetype.
4060         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
4061         types from the normal argument frame.
4063         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
4064         variable sized objects by reference.
4065         (sparc_va_arg): Receive them by reference too.
4067 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
4069         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
4070         code to not restoring global registers.
4072 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
4074         * Makefile.in (ggc-common.o): Update.
4075         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
4076         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
4077         * c-tree.h (c_mark_tree): New.
4078         * ggc-common.c: Include langhooks.h.
4079         (gcc_mark_trees): Use new langhook.
4080         * ggc-callbacks.c: Delete file.
4081         * ggc.h (lang_mark_tree): Remove.
4082         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
4083         (LANG_HOOKS_INITIALIZER): Update.
4084         * langhooks.h (struct lang_hooks): New hook.
4085 objc:
4086         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
4088 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
4090         * doc/cpp.texi: Exclude entire Top node from printed manual.
4091         Move option index after directive index.  Insert page breaks
4092         before GFDL and concept index.  Index environment variables
4093         with command line options.
4094         * doc/cppenv.texi: Use @vtable for environment variable list.
4095         Add paragraph explaining semantics of empty elements in path
4096         variables.  Exclude a cross-reference to Fishkill from the
4097         manpage.  Remove an unnecessary cross-reference of the entry
4098         right above the referer.  Don't use @anchor in text that goes
4099         into manpage.
4100         * doc/cppopts.texi: Cross-reference the environment variables
4101         section, not the specific environment variable, for consistency.
4103 2002-03-25  Richard Henderson  <rth@redhat.com>
4105         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
4106         anywhere in the block.  Don't refer to insns that have been
4107         removed from the chain.  Iterate backward through the new insns.
4108         Don't refer to edges that have been removed.
4110 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
4112         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
4113         test for overflow of constant.
4115 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
4117         PR target/2623
4118         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
4119         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
4120         these patterns on arm_archv4.
4122 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
4124         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
4125         int".
4127 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
4129         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
4130         float_handled, float_handler, float_signal, set_float_handler,
4131         and do_float_handler.  Set handler for SIGFPE to crash_signal.
4132         * toplev.h: Don't prototype do_float_handler.
4134         * c-lex.c: Fold parse_float into lex_number.  Make warning
4135         about portability of hex float constants more informative, and
4136         don't issue it on top of a syntax error.
4137         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
4138         their callers.
4139         * real.h: Define REAL_VALUE_ABS here...
4140         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
4141         simplify_unary_real, simplify_binary_real, and
4142         simplify_binary_is2orm1 into their callers.
4143         * tree.c: Fold build_real_from_int_cst_1 into caller.
4145         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
4147         * tsystem.h: Include float.h here...
4148         * libgcc2.c: ... not here.
4150 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
4152         Fixes for: PR bootstrap/3591, target/5676
4153         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
4154         defined.  Do not disable exceptions or rtti.
4155         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
4156         mcore.h.  Disable exceptions and rtti, since they are not
4157         supported by EPOC.
4159 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
4161         * c-decl.c (maybe_build_cleanup): Remove.
4162         * expr.c (expand_expr): Use langhook.
4163         * langhooks-def.h (lhd_return_null_tree,
4164         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
4165         (LANGHOOKS_INITIALIZER): Update.
4166         * langhooks.c (lhd_return_null_tree): New.
4167         * langhooks.h (struct lang_hooks): New hook.
4168         * tree-inline.c (initialize_inlined_parameters): Use langhook.
4169         * tree.h (maybe_build_cleanup): Remove.
4171 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
4173         * regrename.c (build_def_use): Move recog_memoized
4174         before extract_insn.
4176 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
4178         PR target/6043
4179         * expr.c (emit_group_store): Handle storing into CONCAT.
4181 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
4183         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
4184         corresponding MATCH_DUP.
4186 2002-03-24  Richard Henderson  <rth@redhat.com>
4188         * unroll.c (unroll_loop): Zero label_map.
4190         * gcse.c: Include except.h.
4191         * Makefile.in (gcse.o): Update.
4193 2002-03-24  Richard Henderson  <rth@redhat.com>
4195         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
4196         Do resolve_unique_section before shared data clause.
4198 2002-03-24  Richard Henderson  <rth@redhat.com>
4200         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
4202 2002-03-24  Richard Henderson  <rth@redhat.com>
4204         * recog.c (peephole2_optimize): Split blocks when EH insns are
4205         generated in the middle of a block.  Do global life update if
4206         zapped EH edges.
4208 2002-03-24  Richard Henderson  <rth@redhat.com>
4210         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
4212 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4214         preprocessor/3951
4215         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
4216         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
4217         (init_dependency_output): Don't make no_output decision here.
4219 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
4221         * stmt.c (check_for_full_enumeration_handling): Remove tests of
4222         warn_switch.  Update description.
4223         (expand_end_case_type): Call check_for_full_enumeration_handling
4224         when warn_switch.
4226 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4228         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
4229         (m68hc11_split_move): Call it to see if the source and destination
4230         operands use the same direction auto inc/dec mode, otherwise make the
4231         source an offsetable memory operand and generate an add.
4233 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4235         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
4236         register for operand 2.
4237         ("*subsi3_zero_extendqi"): Likewise.
4238         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
4239         bits so that it is compatible with a pop.
4240         ("*andhi3_gen"): Likewise.
4241         ("xorhi3"): Likewise.
4243 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4245         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
4246         -pedantic here...
4247         (cpp_post_options): ... not here.
4249 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4250             Aldy Hernandez  <aldyh@redhat.com>
4252         Removal of separate preprocessor cpp0.
4254         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
4255         cpp0, install-common): Update.
4256         * c-common.c (flag_preprocess_only): New.
4257         (c_common_init): Preprocess for -E.
4258         * c-common.h (flag_preprocess_only): New.
4259         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
4260         * c-objc-common.c (c_init_decl_processing): Exit quickly
4261         for NULL return from c_common_init.
4262         * cpplib.h (cpp_preprocess_file): New.
4263         * cppmain.c (main, general_init, pfile, progname): Remove.
4264         (do_preprocessing): Rename cpp_preprocess_file, don't call
4265         cpp_finish.  Don't close stdout here.
4266         (setup_callbacks): Update prototype.
4267         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
4268         Update.
4269         * tradcpp.c (main): Ignore -quiet.
4270 objc:
4271         * lang-specs.h (default_compilers): Preprocess with cc1obj.
4273 2002-03-24  Richard Henderson  <rth@redhat.com>
4275         PR optimization/5742
4276         * machmode.def: Add inner mode field to complex modes.
4277         * config/mips/mips.c (mips_function_value): Always define.  Add
4278         new argument to handle libcalls.
4279         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
4280         (FUNCTION_VALUE): Likewise.
4281         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
4282         * config/mips/mips-protos.h: Update.
4284 2002-03-23  Richard Henderson  <rth@redhat.com>
4286         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
4287         * config/sparc/sparc-protos.h: Update.
4288         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
4290 2002-03-23  Richard Henderson  <rth@redhat.com>
4292         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
4293         _start or _init begins the text segment.
4295 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
4297         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
4298         not HOST_WIDEST_INT.
4299         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
4301 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
4303         PR java/5489
4304         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
4305         operand argument to output_return_instruction.
4306         * arm.c (arm_print_operand, case 'd'): If the operand is
4307         const_true_rtx then just return.
4308         (arm_print_operand, case 'D'): If the operand is const_true_rtx
4309         then abort.
4311 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
4313         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
4314         (Warning Options): Document -Wswitch-default.
4315         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
4316         -Wswitch.
4317         (warn_switch_default): Define variable.
4318         (warn_switch): Update comment.
4319         * flags.h (warn_switch_default): Declare variable.
4320         (warn_switch): Update comment.
4321         * stmt.c (expand_end_case): Check for and, when
4322         warn_switch_no_default, warn of a missing default case.
4324 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
4326         * real.h (N): Special case 128 bit doubles.
4328         * combine.c (simplify_comparison): When widening modes, ignore
4329         sign extension on CONST_INTs.
4331 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
4333         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
4334         passed to adjust_address.  Fix comment formatting.
4337 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
4339         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
4340         Always make REAL_VALUE_TYPE a struct containing an array of
4341         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
4342         big it is.  Don't declare or use union real_extract.
4344         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
4345         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
4346         (print_operand), config/arm/arm.c (output_move_double),
4347         config/arm/arm.md (consttable_4, consttable_8),
4348         config/romp/romp.c (output_fpops), config/s390/s390.h
4349         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
4350         (xtensa_output_literal): Don't use union real_extract.
4352         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
4353         (sfmode_constant_to_ulong), config/ns32k/merlin.h
4354         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
4355         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
4356         (PRINT_OPERAND): Don't use local version of union
4357         real_extract.
4359         * config/convex/convex.c (check_float_value), config/vax/vax.c
4360         (vax_float_literal), config/m88k/m88k.md (divdf3),
4361         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
4362         config/pdp11/pdp11.c (output_move_quad): Don't do host
4363         arithmetic on target floating point quantities.
4365         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
4366         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
4368         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
4369         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
4371         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
4372         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
4373         INFINITY.
4374         * print-rtl.c (print_rtx): Disable code which needs
4375         floating-point emulator.
4376         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
4377         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
4378         depending on HOST_FLOAT_FORMAT to be defined properly.
4380         * config/1750a/1750a.c (get_double, float_label): Delete.
4381         (print_operand): Delete huge commented-out chunk.  Use
4382         REAL_VALUE_TO_DECIMAL.
4383         * config/1750a/1750a-protos.h: Delete prototypes of deleted
4384         functions.
4385         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
4386         IEEE_FLOAT_FORMAT.
4387         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
4388         Use REAL_VALUE_TO_DECIMAL as ELF version does.
4389         * config/m88k/m88k.c (real_power_of_2_operand,
4390         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
4391         real_extract out of the union; run the input through
4392         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
4393         from that into the union.
4394         * config/pdp11/pdp11.c (output_move_double): Rearrange
4395         parentheses to make automatic indenter happy.
4397         * doc/tm.texi (Cross-compilation): Rename node to "Floating
4398         Point" and rewrite to describe current situation.  Also adjust
4399         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
4400         match code.
4401         * doc/rtl.texi: Adjust cross reference.
4403 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
4405         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
4406         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
4407         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
4408         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
4409         prevent use of sp as a reload register.
4410         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
4411         non_acc_reg_operand.
4412         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
4413         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
4414         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
4415         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
4417 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
4419         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
4420         * cpplex.c (unterminated): Delete.
4421         (parse_string): No string literal may extend over multiple
4422         lines.  Suppress the error when preprocessing assembly.
4423         * cppmain.c (scan_translation_unit): Strings are single-line.
4425         * doc/cpp.texi: Update to match.
4427 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
4429         PR optimization/5854
4430         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
4431         Shut up warnings.
4432         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
4433         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
4434         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
4435         const0 if scratch register was not allocated.
4436         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
4437         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
4438         with GEN_INT (...).
4439         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
4440         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
4441         with GEN_INT (...) everywhere.  Remove constraints in define_split
4442         patterns.
4443         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
4444         require scratch register for setting 0 into regs/non-pushable memory.
4446 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
4448         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
4449         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
4451 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
4453         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
4454         * cppinit.c (cpp_create_reader):  On by default.
4455         (cpp_handle_option):  Handle -W[no-]endif-labels.
4456         (cpp_post_options):  Also enable if -pedantic.
4457         * cpplib.c (do_else):  Use it.
4458         (do_endif):  Likewise.
4459         * doc/cppopts.texi:  Document new option.
4460         * doc/invoke.texi:  Document new option.
4462 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
4464         * config/i386/i386.c, config/i386/i386.md: Change all occurences
4465         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
4467 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
4469         * flow.c (calculate_global_regs_live): Clear aux fields of
4470         ENTRY and EXIT.
4472 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
4474         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
4475         REG or MEM subregs, pass rtx * instead of rtx to it.
4476         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
4477         rtx * instead of rtx to alter_subreg.
4478         * config/m32r/m32r.c (gen_split_move_double): Likewise.
4479         * config/pj/pj.c (pj_output_rval): Likewise.
4481 2002-03-22  Richard Henderson  <rth@redhat.com>
4483         PR target/3177
4484         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
4485         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
4486         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
4487         (ia64_expand_prologue): Look at int_regs, not words, for number
4488         of incomming int regs.
4490 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
4492         * expr.c (expand_expr): A RESULT_DECL is part of a call.
4494 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
4496         * toplev.c (flag_loop_optimize, flag_crossjumping):
4497         New static variables.
4498         (rest_of_compilation): Conditionalize crossjumping and
4499         loop optimizer.
4500         (parse_options_and_default_flags): Default loop_optimize and
4501         crossjumping.
4502         (lang_independent_options): Add -fcrossjumping and -floop-optimize
4503         * invoke.texi (crossjumping, loop-optimize): Document.
4505 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
4507         * real.c (eiisneg): Move outside #ifdef NANS.
4509 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
4511         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
4512         frequencies match; avoid match on different loop depths.
4513         (try_crossjump_to_bb): Kill tests that no longer brings time
4514         savings.
4515         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
4516         updating code.
4517         (split_edge): Likewise.
4519         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
4520         variable.
4522         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
4523         * cfgrtl.c: Include insn-config.h
4524         (split_block) Dirtify block in presence of conditional execution
4526 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
4528         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
4529         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
4530         (function_arg): Constify CUMULATIVE_ARGS.
4531         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
4532         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
4533         (UNITS_PER_DOUBLE): New macro.
4534         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
4535         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
4536         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
4537         fp_regs and stack_words.
4538         (EABI_FLOAT_VARARGS_P): New macro.
4539         * config/mips/mips.c (struct mips_arg_info): New.
4540         (mips_arg_info): New function.
4541         (function_arg_advance): Use it.  Add adjustment instructions here
4542         rather than in function_arg.
4543         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
4544         for VOIDmode at the beginning of the function.
4545         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
4546         (function_arg_pass_by_reference): Likewise.
4547         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
4548         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
4549         (mips_va_start): Likewise.  Use the new stack_words field of
4550         CUMULATIVE_ARGS to set up overflow area.  Reformat.
4551         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
4552         doubles and other types, aligning the overflow pointer for non-doubles
4553         too.  Remove some code duplication.  Replace hard-coded constants.
4555 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
4557         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
4558         (CLASS_UNITS): Undefine.
4559         (CLASS_MAX_NREGS): Use FP_INC.
4560         * config/mips/mips.c (compute_frame_size): Likewise.
4561         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
4563 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
4565         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
4566         prototype, and handle lexing numbers and identifiers.
4567         (parse_identifier): Update to new form of parse_slow.
4568         (parse_number): Fast path only, use parse_slow otherwise.
4569         (_cpp_lex_direct): Update calls to parse_number.
4571 2002-03-21  DJ Delorie  <dj@redhat.com>
4573         * bb-reorder.c (make_reorder_chain_1): Protect against
4574         when redundant edges are omitted.
4575         * predict.c (dump_prediction): Likewise.
4577 2002-03-21  Richard Henderson  <rth@redhat.com>
4579         PR target/5996
4580         * fixinc/inclhack.def (solaris_stdio_tag): New.
4581         * fixinc/fixincl.x: Regenerate.
4583 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
4585         PR c/5597
4586         * c-typeck.c (process_init_element): Flag non-static
4587         initialization of a flexible array member as illegal.
4589 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
4591         * config/rs6000/t-linux64: New.
4592         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
4593         t-ppccomm.  Use t-rs6000 and t-linux64.
4594         (powerpc64-*-gnu* <tmake_file>): Likewise.
4595         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
4596         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
4597         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
4599 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
4601         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
4602         flag_really_no_inline instead of optimize == 0.
4604         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
4606         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
4608         * flags.h (flag_really_no_inline): New.
4610         * c-common.c (c_common_post_options): Initialize
4611         flag_really_no_inline.
4613         * toplev.c (flag_really_no_inline): New.
4615 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
4617         * config/avr/avr.md (length): Fix length computation for
4618         conditional branches.
4620 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
4622         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
4623         sdbout.o, profile.o): Update.
4624         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
4625         langhook.
4626         * c-common.h (gettags): Move here from tree.h.
4627         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
4628         insert_block, getdecls, kept_level_p, global_bindings_p): New.
4629         * dbxout.c (dbxout_init): Use getdecls langhook.
4630         * expr.c (expand_expr): Use insert_block langhook.
4631         * fold-const.c: Include langhooks.h.
4632         (fold_range_test, fold_binary_op_with_conditional_arg,
4633         fold): Use global_bindings_p langhook.
4634         * integrate.c (expand_inline_function): Use insert_block langhook.
4635         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
4636         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
4637         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
4638         LANG_HOOKS_GETDECLS): New.
4639         (LANG_HOOKS_INITIALIZER): Update.
4640         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
4641         langhook.
4642         * langhooks.h (struct lang_hooks_for_decls): New.
4643         (struct lang_hooks): Update.
4644         * profile.c: Include langhooks.h.
4645         (output_func_start_profiler): Use new langhooks.
4646         * sdbout.c: Include langhooks.h.
4647         (sdbout_init, sdbout_finish): Use getdecls langhook.
4648         * stmt.c: Include langhooks.h.
4649         (expand_fixup, fixup_gotos): Use new langhooks.
4650         * stor-layout.c: Include langhooks.h.
4651         (variable_size): Use global_bindings_p langhook.
4652         * toplev.c (compile_file): Use getdecls langhook.
4653         * tree-inline.c (remap_block): Use insert_block langhook.
4654         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
4655         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
4657 2002-03-21  Richard Henderson  <rth@redhat.com>
4659         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
4660         constants in .data when -fpic.
4662 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4664         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
4665         where appropriate.
4667 2002-03-21  Tom Tromey  <tromey@redhat.com>
4669         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
4671 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4673         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
4675         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
4677 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
4678             Richard Henderson  <rth@redhat.com>
4680         PR c/5354
4681         * c-common.c (c_expand_expr): Preserve result of a statement
4682         expression if needed.
4684 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
4686         PR bootstrap/4195
4687         * genrecog.c (maybe_both_true_mode): Remove.
4688         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
4689         * machmode.def (Pmode): Likewise.
4691 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
4693         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
4694         (nonlocal_mentioned_p_1): New function.
4695         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
4696         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
4697         (mark_constant_function): Recognize pure functions.
4698         * rtl.h (global_reg_mentioned_p): New prototype.
4699         * rtlanal.c (global_reg_mentioned_p,
4700         global_reg_mentioned_p_1): New function.
4702 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4704         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
4705         UNIX assert.h.
4706         * fixinc/fixincl.x: Regenerate.
4708 2002-03-20  Jason Merrill  <jason@redhat.com>
4710         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
4712 2002-03-20  Michael Meissner  <meissner@redhat.com>
4714         * doc/invoke.texi (Optimize Options): Document that -O2 sets
4715         -fstrict-aliasing.
4717 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
4719         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
4720         ".literal_position" directive before the constant pool.
4722 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4724         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
4725         Add Craig Rodrigues.
4726         Add Brad Lucier to testers.
4728 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
4730         PR target/4792
4731         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
4732         to if_then_else.
4733         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
4734         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
4735         instead of insn_extract.
4737 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
4739         PR bootstrap/4192
4740         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
4742         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
4743         stmt if some case has been output.
4745 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
4747         PR c/5972
4748         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
4749         movsfcc_1, movdfcc_1): Add %O2.
4750         * config/i386/i386.c (print_operand): Handle %ON.
4751         Print . before float condition codes in Sun as cmov syntax.
4752         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
4753         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
4754         no longer true.
4756 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
4758         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
4759         return instruction if PC was popped.
4761 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
4763         * config/xtensa/xtensa.md: Remove unused type attributes.
4764         (adddi_carry, subddi_carry): Change type attribute to "multi".
4766 2002-03-19  Dale Johannesen  <dalej@apple.com>
4768         PR optimization/5999, middle-end/5731
4769         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
4770         multiplications by reciprocals.
4772 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
4774         * Makefile.in: Update.
4775         * c-common.c: Include langhooks.h.
4776         (inline_forbidden_p): Use new hook.
4777         * diagnostic.c: Include langhooks.h.
4778         (format_with_decl, announce_function,
4779         default_print_error_function): Use new hook.
4780         * dwarf2out.c (dwarf2_name): Use new hook.
4781         * function.c: Include langhooks.h.
4782         (init_function_start): Use new hook.
4783         * langhooks-def.h (lhd_decl_printable_name): New.
4784         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
4785         (LANGHOOKS_INITIALIZER): Update.
4786         * langhooks.c (lhd_decl_printable_name): New.
4787         * langhooks.h (struct lang_hooks): New hook.
4788         * toplev.c (decl_name, decl_printable_name): Remove.
4789         (open_dump_file): Use new hook.
4790         (process_options): Remove old hook.
4791         * tree.h (decl_printable_name): Remove.
4792 objc:
4793         * objc-act.c (objc_init): Remove old hook.
4794         (objc_printable_name): Export.
4795         * objc-act.h (objc_printable_name): New.
4796         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
4798 2002-03-19  Jim Blandy  <jimb@redhat.com>
4800         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
4801         the start_source_file debug hook, not the current line number.
4803 2002-03-19  Richard Henderson  <rth@redhat.com>
4805         * flow.c (EH_USES): Provide default.
4806         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
4807         * doc/tm.texi (EH_USES): New.
4809         * config/ia64/ia64.c (ia64_eh_uses): New.
4810         * config/ia64/ia64-protos.h: Update.
4811         * config/ia64/ia64.h (EH_USES): New.
4813 2002-03-19  Richard Henderson  <rth@redhat.com>
4815         * varasm.c (output_constant_def): Fix stupid typo.
4817 2002-03-19  Richard Henderson  <rth@redhat.com>
4819         PR 5879
4820         * except.c (current_function_has_exception_handlers): New.
4821         * except.h: Declare it.
4822         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
4823         Combine tests that disable all sibcalls for the function.
4825 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
4827         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
4828         for INTEGER_CST.
4830 2002-03-19  Richard Henderson  <rth@redhat.com>
4832         PR 5977, 5991
4833         * config/ia64/ia64.c: Revert 2002-03-01 patch.
4834         * config/ia64/ia64.h (INIT_EXPANDERS): New.
4836 2002-03-19  Jim Blandy  <jimb@redhat.com>
4838         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
4839         name, even if the replacement list contains no tokens, as required
4840         by Dwarf.
4842 2002-03-19  Jason Merrill  <jason@redhat.com>
4844         * varasm.c (globalize_decl): Get the name from the RTL, not
4845         DECL_ASSEMBLER_NAME.
4847         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
4849 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
4851         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
4852         subdi_carry): Define.
4854 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
4856         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
4857         about -fpic/-fPIC if extra_warnings set.
4859 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
4861         * expr.c (expand_expr): Sign-extend CONST_INT generated from
4862         TREE_STRING_POINTER.
4863         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
4865 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4867         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
4868         in favor of SP if FRAME_POINTER_REQUIRED is false.
4870 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
4872         * emit-rtl.c (gen_int_mode): New function.
4873         * rtl.h: Prototype for it.
4874         * combine.c (make_extraction, simplify_comparison), expmed.c
4875         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
4876         (convert_modes, store_field), optabs.c (expand_fix),
4877         simplify-rtx.c (neg_const_int, simplify_unary_real),
4879         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
4880         Use it instead of GEN_INT (trunc_int_for_mode (...)).
4882 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
4884         PR c/5656
4885         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
4886         convert_parm_for_inlining.
4887         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
4888         Define.
4889         * langhooks-def.h: Likewise.
4890         * objc/objc-lang.c: Likewise.
4891         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
4892         function.
4893         * tree-inline.c (initialize_inlined_parameters):
4894         Call convert_parm_for_inlining lang hook if needed.
4895         * c-typeck.c (c_convert_parm_for_inlining): New function.
4896         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
4898 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
4900         * calls.c (precompute_arguments): Do not assume that temporaries
4901         can be destroyed after expanding the argument.
4902         (expand_call): Likewise.
4904 2002-03-15  Eric Christopher  <echristo@redhat.com>
4906         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
4907         Fix register preference on last change.
4908         * config/mips/mips.c (mips_return_in_memory): New function.
4909         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
4910         * config/mips/mips-protos.h: Declare.
4911         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
4912         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
4914 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
4916         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
4917         a register too.
4918         (anddi3, iorsi3): Likewise.
4920         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
4921         use %gprel for symbols that are going to be placed in linkonce
4922         sections.
4924         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
4925         RETURN_ADDRESS_POINTER_REGNUM to $ra.
4926         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
4927         not needed.  Disregard leaf_function_p().
4928         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
4929         mips16 frame pointer.
4930         * config/mips/mips.md (store ra): Only to small SP offsets.
4931         2001-08-22  Graham Stott  <grahams@redhat.com>
4932         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
4933         return a REG rtx for the return address register.
4935 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
4937         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
4938         constant-pool addresses as "mode-dependent".
4939         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
4941 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
4943         PR target/5740
4944         * expr.c (emit_group_load): Use extract_bit_field if
4945         needed for CONCAT arguments.
4947 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
4949         PR target/4863
4950         * arm.md (tablejump): Make this a define_expand.  For PIC add the
4951         offset to the base of the table.
4952         (thumb_tablejump): Matcher for Thumb tablejump insn.
4953         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
4954         as the difference of two labels.
4955         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4956         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
4957         tables in the code.
4958         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
4959         * arm.c (get_jump_table_size): If the table is not in the text
4960         section, return zero.
4962 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
4964         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
4965         of gen_rtx_SUBREG.
4966         (arm_reload_out_hi): Use gen_lowpart instead of
4967         gen_rtx_SUBREG to access QImode components.
4968         * config/arm/arm.md: Disable zero_extend split for QImode
4969         subregs in BIG_ENDIAN mode.
4970         (storehi_bigend): Match use of least significant byte.
4971         (storeinthi): Remove extraneous SUBREG.
4972         Add missing construction of operands[2].
4973         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
4974         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
4975         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
4977 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
4979         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
4980         any_operand.
4982 2002-03-17  Richard Henderson  <rth@redhat.com>
4984         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
4985         explicitly.
4987 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
4989         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
4990         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
4992 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4994         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
4996         * predict.c (estimate_bb_frequencies): Delete unused variables.
4998 2002-03-17  Richard Henderson  <rth@redhat.com>
5000         * config/ia64/ia64.c (ia64_attribute_table): Move before
5001         targetm definition.  Make static.
5003 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
5005         * c-common.h (yyparse, c_common_parse_file): New.
5006         * c-lang.c: Include c-common.h.
5007         (LANG_HOOKS_PARSE_FILE): Redefine.
5008         * c-lex.c: Include c-common.h.
5009         (yyparse): Rename c_common_parse_file.  Call yyparse.
5010         * c-parse.in (yyparse): Remove macro.
5011         * c-tree.h (yyparse_1): Remove.
5012         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
5013         (LANG_HOOKS_INITIALIZER): Update.
5014         * langhooks.h (struct lang_hoooks): New hook parse_file.
5015         * toplev.c (compile_file): Use parse_file hook.
5016         * tree.h (yyparse): Remove.
5017         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
5019 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
5021         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
5022         float_truncate, not fix.
5023         ("*truncdfsf2_real"): Ditto.
5024         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
5026         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
5028 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
5030         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
5031         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
5032         where appropriate.  Make the second reference to
5033         leaf_function_p a function call, as intended.  Reindented.
5035         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
5036         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
5038         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
5039         add register to non-constant into sp.
5041         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
5042         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
5043         (mips16_gp_pseudo_rtx): Lose.
5044         (INIT_EXPANDERS): Deleted.
5045         * config/mips/mips.c (mips_init_machine_status): New.
5046         (mips_free_machine_status): New.
5047         (mips_mark_machine_status): New.
5048         (override_options): Set them.
5049         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
5050         (struct machine_function): ... new.  Replaced all references.
5051         (mips_add_gc_roots): Don't mark them.
5052         (embedded_pic_fnaddr_reg): New, extracted from...
5053         (embedded_pic_offset): ... here.
5054         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
5055         (movsi): Likewise.
5057 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
5059         * cppinit.c: Revert -MD removal.
5061 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5063         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
5064         soft registers by default for 68HC12.
5065         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
5066         when compiling with -fomit-frame-pointer.
5067         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
5068         (expand_epilogue): Likewise.
5069         (m68hc11_gen_rotate): Use exg when rotating by 8.
5071 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5073         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
5074         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
5075         (splits): Remove unused add splits.
5076         ("*addhi3_68hc12"): Tune constraints.
5077         ("addhi_sp"): Try to use X instead of Y in all cases and if the
5078         constant fits in 8-bits and D is dead use abx/aby instructions.
5079         ("*addhi3"): Remove extern declaration of ix_reg.
5080         ("*subsi3"): Optimize and provide new split.
5081         ("subhi3"): Cleanup.
5082         ("*subhi3_sp"): Avoid saving X if we know it is dead.
5083         (arith splits): For 68hc12 save the address register on the stack
5084         and do the arithmetic operation with a pop.
5086 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5088         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
5089         allocating QImode in address registers.
5090         ("*movqi_m68hc11"): Likewise.
5092 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
5094         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
5096 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
5098         * cppinit.c (print_help): Display -MD and -MMD.
5099         Don't display usage string.  Update assertion syntax and
5100         typo.
5101         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
5102         (cpp_handle_option): Update.
5104 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
5106         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
5107         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
5108         and define it so that regardless of target CPU size,
5109         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
5110         of "int" rather than "long."
5112 2002-03-15  Richard Henderson  <rth@redhat.com>
5114         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
5115         size as a tree.
5117 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5119         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
5120         ("tstqi" split): Avoid using memory for tstqi on address register.
5121         (splits): Remove constraints.
5122         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
5123         ("cmpdf", "cmpsf"): Remove since not used.
5124         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
5125         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
5127 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5129         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
5130         ("neghi2"): Tighten constraints.
5131         ("one_cmplsi2"): Optimize and simplify split.
5132         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
5134 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5136         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
5137         and split of AND operation to clear the upper bits.
5138         ("*logicalsi3_zextqi"): Likewise.
5139         ("*logicallhi3_zexthi_ashift8"): Likewise.
5140         ("*logicalsi3_silshr16"): Likewise.
5141         ("logicalsi3_silshl16"): Likewise.
5142         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
5144 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5146         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
5147         (m68hc11_indirect_p): New function.
5148         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
5149         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
5150         TARGET_M6812.
5151         (asm_print_register): Likewise.
5152         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
5153         (m68hc11_indirect_p): Declare.
5154         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
5155         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
5156         (TARGET_SWITCHES): New option -mrelax.
5157         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
5158         destination.
5159         ("iorsi3", "xorsi3"): Likewise.
5160         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
5161         ("*andhi3_mem"): New to handle destination in memory with bclr
5162         and a scratch register.
5163         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
5164         ("*andhi3_const"): New when operand2 is constant.
5165         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
5166         ("*andhi3_gen"): Cleanup of the old "andhi3".
5167         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
5168         ("xorqi3"): Update constraints.
5170 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5172         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
5173         for reg_equiv_memory_loc when the operand is a register that does
5174         not get a hard register (stack location).
5175         (tst_operand): After reload, accept all memory operand.
5176         (symbolic_memory_operand): Fix detection of symbolic references.
5177         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
5178         accept symbols and any constant.
5180 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5182         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
5183         note on the insn that sets the soft frame register.
5184         (must_parenthesize): ix and iy are also reserved names.
5185         (print_operand_address): One more place where parenthesis are required
5186         to avoid confusion with register names.
5187         (m68hc11_gen_movhi): Allow push of stack pointer.
5188         (m68hc11_check_z_replacement): Fix handling of parallel with a
5189         clobber.
5190         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
5191         the replacement register is.
5192         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
5193         and D8_REGS classes.
5194         (MODES_TIEABLE_P): All modes are tieable except QImode.
5196 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5198         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
5199         (___subdi3): Likewise.
5200         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
5201         (__map_data_section): Optimize 68hc11 case.
5203 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5205         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
5206         than a shift to avoid adding a register with itself.
5207         (m68hc11_memory_move_cost): Take into account NO_REGS.
5208         (m68hc11_register_move_cost): Update and use memory move cost
5209         for soft registers.
5210         (m68hc11_address_cost): Make cost of valid offset not 0 so that
5211         it gives more opportunities to cse to optimize.
5212         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
5213         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
5215 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
5217         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
5218         * c-common.def (CLEANUP_STMT): New tree node.
5219         * c-common.h (CLEANUP_DECL): New macro.
5220         (CLEANUP_EXPR): Likewise.
5221         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
5222         * expr.c (expand_expr): Tidy.
5223         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
5224         * tree-inline.c (initialize_inlined_parameters): Clean up
5225         new local variables.
5227 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
5229         PR bootstrap/4128
5230         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
5231         before movrXX only, use reg_overlap_mentioned_p.
5232         Only special case NE if just one insn can be generated.
5234 2002-03-15  Jason Merrill  <jason@redhat.com>
5236         * varasm.c (assemble_variable): Call resolve_unique_section before
5237         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
5238         of error_mark_node.
5240 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
5242         PR target/5170
5243         * arm.md (split pattern for thumb shiftable immediates): Add comment
5244         explaining non-obvious test.
5246 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
5248         PR target/5712
5249         * arm.md (movaddr, movaddr_insn): Delete.
5251 2002-03-15  Jason Merrill  <jason@redhat.com>
5253         * toplev.c (wrapup_global_declarations): Clarify variable handling.
5254         -fkeep-static-consts doesn't apply to comdats.
5256 2002-03-14  Richard Henderson  <rth@redhat.com>
5258         * c-decl.c: Include c-pragma.h.
5259         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
5260         (finish_function): Tidy.
5261         * c-pragma.c: Include c-common.h.
5262         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
5263         (handle_pragma_weak): Use them.
5264         (init_pragma): Register pending_weaks.
5265         * c-pragma.h (maybe_apply_pragma_weak): Declare.
5266         * print-tree.c (print_node): Print DECL_WEAK.
5267         * varasm.c (mark_weak_decls): Remove.
5268         (remove_from_pending_weak_list): Remove.
5269         (add_weak): Remove.
5270         (asm_emit_uninitialised): Call globalize_decl for weak commons.
5271         (weak_decls): Make a tree_list.
5272         (declare_weak): Cons weak_decls directly.
5273         (globalize_decl): Remove weak_decls elements directly.
5274         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
5275         symbols.  Don't pretend to handle aliases.
5276         (init_varasm_once): Update weak_decls registry.
5277         * Makefile.in: Update dependencies.
5279 2002-03-14  Richard Henderson  <rth@redhat.com>
5281         PR target/5312
5282         * config/ia64/ia64.c: Include tm_p.h last.
5283         (gen_nop_type): Remove duplicate definition.
5284         (cycle_end_fill_slots): Set sched_data for second L slot.
5285         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
5286         (nop_cycles_until): Fix typos.
5288 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
5290         PR optimization/5891
5291         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
5293 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
5295         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
5296           descriptors correctly.
5298 2002-03-14  Michael Meissner  <meissner@redhat.com>
5300         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
5301         100, allowing MAX_UNROLLED_INSNS to be overridden.
5303         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
5304         --param.
5306         * unroll.c (params.h): Include.
5307         (MAX_UNROLLED_INSNS): Delete, now in params.h.
5309         * doc/invoke.texi (--param max-unroll-insns): Document.
5311         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
5313 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
5315         * arm.md: Fix warnings about constraints in peepholes and splits.
5317 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
5319         * cpphash.h (struct lexer_state): Remove line_extension member.
5320         * cpplib.c (dequote_string, do_linemarker): New functions.
5321         (linemarker_dir): New data object.
5322         (DIRECTIVE_TABLE): No longer need to interpret #line in
5323         preprocessed source.  Delete obsolete comment about return
5324         values of handlers.
5325         (end_directive, directive_diagnostics, _cpp_handle_directive):
5326         Don't muck with line_extension.
5327         (directive_diagnostics): No need to issue warnings for
5328         linemarkers here.
5329         (_cpp_handle_directive): Issue warnings for linemarkers here,
5330         when appropriate.  Dispatch linemarkers to do_linemarker, not
5331         do_line.
5332         (do_line): Code to handle linemarkers split out to do_linemarker.
5333         Convert escape sequences in filename argument, both places.
5335         * cppmacro.c (quote_string): Rename cpp_quote_string and
5336         export.  All callers changed.
5337         * cpplib.h (cpp_quote_string): Prototype.
5338         * cppmain.c (print_line): Call cpp_quote_string on to_file
5339         before printing it.
5341         * doc/cpp.texi: Document that escapes are now interpreted in
5342         #line and in linemarkers, and that non-printing characters are
5343         converted to octal escapes when linemarkers are generated.
5345 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
5347         * emit-rtl.c (try_split): Use delete_insns.
5348         * recog.c (split_all_insns): Fix terminating condition.
5350 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
5351             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
5353         PR target/5828
5354         * arm.c (arm_output_epilogue): Fix floating-point register save
5355         adjustment when using a frame pointer.
5357 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
5359         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
5360         * config/mips/mips.c (compute_frame_size): Retrofit them here.
5361         (save_restore_insns, mips_expand_epilogue): And here.
5362         (build_mips16_call_stub): And here.
5363         (mips_function_value): Use the new macros to decide whether a single
5364         or complex float can be returned in floating-point registers.  Return
5365         a parallel rtx in the complex case.
5367 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
5369         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
5370         call after liveness analysis.
5372         * recog.c (split_insn): Use delete_insn_and_edges.
5374         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
5375         instructions to have branch prediction notes.
5376         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
5378 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
5380         * configure.in: Don't pass -Wno-long-long to a ADA compiler
5381         that doesn't support it.
5382         * configure: Regenerate.
5384 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5386         PR target/5626
5387         * config/sparc/sparc.md (normal_branch, inverted_branch,
5388         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
5389         inverted_fp_branch): Adjust calls to output_cbranch.
5390         Set length attribute.
5391         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
5392         output_v9branch.  Set length attribute.
5393         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
5394         predicates.
5395         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
5396         (output_cbranch): Likewise.  Handle far branches.
5397         (output_v9branch): Handle far branches.
5398         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
5399         Adjust prototypes.
5400         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
5401         noov_compare64_op predicates.
5403 2002-03-13  Jason Merrill  <jason@redhat.com>
5405         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
5406         into the function and constify it.
5407         * gthr-dce.h, gthr-solaris.h: Likewise.
5409 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
5411         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
5412         * config/rs6000/rs6000.c (rs6000_va_arg): Use
5413         std_expand_builtin_va_arg if not ABI_V4.
5415 2002-03-13  Jason Merrill  <jason@redhat.com>
5417         * varasm.c (globalize_decl): New fn.
5418         (assemble_start_function): Use it.
5419         (asm_emit_uninitialized): Use it.
5420         (assemble_alias): Use it.
5421         (assemble_variable): Use it.
5423 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
5425         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
5426         2002-03-12 internal visibility change.
5427         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
5428         visibility into SYMBOL_REF_FLAG.
5430 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
5432         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
5433         VOIDmode operand.  Add compile-time optimization for constant results.
5435 2002-03-12  Jason Merrill  <jason@redhat.com>
5437         * c-typeck.c (convert_for_assignment): Don't allow conversions
5438         between pointers and references.  Only allow lvalues to convert to
5439         reference.
5441 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
5443         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
5444         before prologue, to avoid scheduling problems.
5446 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5448         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
5449         (ELIMINABLE_REGS): Add sfp->sp.
5450         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
5452 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5454         PR optimization/5892
5455         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
5457 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5459         * loop.c (basic_induction_var): Don't call convert_modes if mode
5460         classes are different.
5462 2002-03-12  Richard Henderson  <rth@redhat.com>
5464         PR optimization/5901
5465         * function.c (reposition_prologue_and_epilogue_notes): Position
5466         the markers after/before the last/first insn not deleted.
5468 2002-03-12  Richard Henderson  <rth@redhat.com>
5470         PR optimization/5878
5471         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
5472         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
5473         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5475         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
5476         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
5477         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
5479         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
5480         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
5481         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
5482         also.  Don't set it if not flag_pic.
5483         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
5484         to be INVALID_REGNUM when not used.
5486 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
5488         * expmed.c (store_bit_field): Reset alias set for memory.
5489         (extract_bit_field): Same.
5491 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5493         * c-common.c (c_tree_code_type, c_tree_code_length,
5494         c_tree_code_name, add_c_tree_codes): Delete.
5495         * c-common.h (add_c_tree_codes): Delete.
5496         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
5497         Define.
5498         * c-objc-common.c (c_objc_common_init): Don't call
5499         add_c_tree_codes, instead set lang_unsafe_for_reeval.
5500         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
5501         objc_tree_code_name, add_objc_tree_codes): Delete.
5502         (objc_init): Don't call add_objc_tree_codes.
5503         * objc/objc-lang.c (tree_code_type, tree_code_length,
5504         tree_code_name): Define.
5505         * toplev.c (lang_independent_init): Don't set
5506         tree_code_length[IDENTIFIER_NODE].
5507         * tree.c (tree_code_type, tree_code_length, tree_code_name):
5508         Delete definitions, moved to language front-ends.
5509         * tree.def (IDENTIFIER_NODE): Hardwire the length.
5510         * tree.h (tree_code_type, tree_code_length, tree_code_name):
5511         Const-ify.
5512         (tree_code_length): Change type to unsigned char.
5514 2002-03-12  Richard Henderson  <rth@redhat.com>
5516         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
5517         internal visibility change.
5519 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5521         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
5522         validize_mem() instead of change_address to avoid clobbering
5523         memory attributes.
5525 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
5527         * c-lex.h (position_after_whitespace): Remove.
5529 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
5531         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
5532         (lex_string): Use unsigned char pointers.
5534 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
5536         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
5537         is not a valid memory_operand.
5539 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5541         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
5542         * config/xtensa/lib1funcs.asm: Fix copyright to include
5543         special case for libgcc files.
5544         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
5545         (__divsi3): Likewise.
5546         (__umodsi3): Likewise.
5547         (__modsi3): Likewise.
5548         * config/xtensa/lib2funcs.S: Fix copyright to include
5549         special case for libgcc files.
5551 2002-03-12  Tom Rix  <trix@redhat.com>
5553         * collect2.c (resolve_lib_name): Move outside of
5554         OBJECT_FORMAT_COFF ifdef.
5555         (ignore_library): Same.
5557 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5559         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
5561 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5563         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
5564         to function_section before writing out the constant pool.
5566 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
5568         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
5569         zero_constant.
5570         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
5572 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
5574         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
5575         (adddi3): Likewise.
5576         (movdf): Likewise.
5577         (movdi): Likewise.
5578         (cmpsi splitter): Likewise.
5579         (modsi3): Fail if <= 0.
5580         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
5581         redundant test when HOST_BITS_PER_WIDE_INT != 32.
5582         (reg_or_sub_cint64_operand): Likewise.
5583         (num_insns_constant_wide): Optimize sign extension.
5584         (rs6000_legitimize_address): Likewise.
5586 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
5588         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5589         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5591 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
5593         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
5594         address calculation.
5596 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
5598         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
5599         scratch register to DImode / TImode.
5600         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
5601         register used does not overlap the target.
5603 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5605         * Makefile.in (debug.o): Depend on debug.h.
5606         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
5607         * debug.c (do_nothing_debug_hooks): Likewise.
5608         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
5609         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
5610         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
5611         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
5612         * dwarfout.c (dwarf_debug_hooks): Likewise.
5613         * integrate.c (output_inline_function): Likewise.
5614         * objc/objc-act.c (synth_module_prologue): Likewise.
5615         * sdbout.c (sdb_debug_hooks): Likewise.
5616         * toplev.c (debug_hooks): Likewise.
5617         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5619 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5621         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
5622         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
5623         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
5624         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
5625         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
5626         * defaults.h (POINTER_SIZE): Define.
5627         * doc/tm.texi (POINTER_SIZE): Document default.
5629 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5631         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
5633 2002-03-11  Richard Henderson  <rth@redhat.com>
5635         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
5636         if rebuild_label_notes_after_reload.
5638 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
5640         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
5641         emit pic register load if "internal" visibility.
5642         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
5643         (cris_expand_builtin_va_arg): Do all computations on trees.
5645 2002-03-11  Richard Henderson  <rth@redhat.com>
5647         * rtlanal.c: Include recog.h.
5648         (keep_with_call_p): Fix thinko.
5649         * Makefile.in (rtlanal.o): Update dependencies.
5651 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
5653         * genflags.c (gen_insn): Use IS_VSPACE.
5654         * genoutput.c (output_insn_data): Likewise.
5655         (process_template): Likewise.
5657 2002-03-11  Richard Henderson  <rth@redhat.com>
5659         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
5661 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
5663         * Makefile.in: Update.
5664         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
5665         Update documentation.
5666         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
5667         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
5669 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
5671         * Makefile.in: Give texi2pod its input file as a command line
5672         argument, not on stdin.
5674 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
5675             Daniel Berlin  <dan@dberlin.org>
5677         C++ alias analysis improvement.
5678         * alias.c (record_component_aliases): Record aliases for base
5679         classes too.
5681 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
5683         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
5685 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
5687         * toplev.c (vms_fopen): Remove, not needed.
5689         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
5691         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
5693         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
5694         for FP, already done later.
5696         * toplev.c (debug_args): Add entry for VMS_DEBUG.
5697         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
5699 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
5701         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
5702         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
5703         LARGEST_EXPONENT_IS_NORMAL for the given mode.
5704         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
5705         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
5706         (ediv, emul, eldexp, esqrt): Likewise.
5707         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
5708         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
5709         (saturate): New function.
5710         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
5711         (make_nan): Use a saturation value instead of a NaN if
5712         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
5713         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
5714         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
5715         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
5716         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
5717         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
5718         !ROUND_TOWARDS_ZERO.
5719         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
5720         (ROUND_TOWARDS_ZERO): Document.
5722 2002-03-11  Andreas Jaeger  <aj@suse.de>
5724         * cfg.c (dump_flow_info): Remove unused variable.
5726 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
5728         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
5729         computations on trees.
5731 2002-03-10  Richard Henderson  <rth@redhat.com>
5733         PR 5693:
5734         * reload.c (copy_replacements_1): New.
5735         (copy_replacements): Use it to recurse through the rtx.
5737 2002-03-10  Richard Henderson  <rth@redhat.com>
5739         * loop.c (strength_reduce): Compute number of iterations as
5740         unsigned HOST_WIDE_INT.
5742 2002-03-10  Richard Henderson  <rth@redhat.com>
5744         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
5745         to move away from the end of the block.
5747 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
5749         PR preprocessor/5899
5750         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
5752 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5754         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
5756         * attribs.c (decl_attributes): Fix signed/unsigned warning.
5758 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
5760         * config/mmix/mmix.c: Improve comments.
5761         (mmix_target_asm_function_prologue): Drop variable
5762         empty_stack_frame.  Don't allocate unused slot above fp.
5763         (mmix_target_asm_function_epilogue): Mirror prologue changes.
5764         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
5765         brace in first column.
5766         (enum reg_class): Ditto.
5767         (FIRST_PARM_OFFSET): Now 0.
5768         (USER_LABEL_PREFIX): Remove #if 0:d definition.
5770 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5772         * combine.c (make_extraction): Fix error in last change.
5774 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5776         * c4x.c (c4x_fp_reglist): Const-ify.
5777         * cris.c (cris_print_operand): Likewise.
5778         * i386.c (ix86_va_arg): Likewise.
5779         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
5780         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
5781         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
5782         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
5783         * mcore.h (regno_reg_class): Likewise.
5784         * mips.c (gen_int_relational): Likewise.
5785         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
5786         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
5787         * pdp11.c (move_costs): Likewise.
5788         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
5789         * s390.c (s390_branch_condition_mnemonic, regclass_map):
5790         Likewise.
5791         * s390.h (regclass_map): Likewise.
5792         * sh.c (shift_amounts): Likewise.
5793         * sh.md (rotlsi3): Likewise.
5795 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
5797         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
5798         (ne0+5): Use new clobber to generate proper shift pattern.
5799         Patch by Michael Matz <matz@kde.org>.
5801 2002-03-09  Andreas Schwab  <schwab@suse.de>
5803         * gcc.c (validate_all_switches): Also handle `%W{...}'.
5805 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
5807         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
5809 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
5811         PR middle-end/5877
5812         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
5813         even for non-representable constants.
5815 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5817         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
5818         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
5819         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
5820         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
5821         (pop_function_context): Compute MAY_SHARE parameter for
5822         fixup_var_refs.
5823         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
5824         (gen_mem_addressof): Call fixup_var_refs with new parm.
5826         * combine.c (make_extraction): Don't make extension of CONST_INT.
5828 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
5830         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
5831         in o32 and o64 ABIs.
5832         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
5833         but getting fixed-size structs passed in registers regardless of
5834         padding in o32 and o64 ABIs.
5836         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
5837         offset before loading address of argument passed by transparent
5838         reference.
5840 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5842         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
5844 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
5846         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
5847         marker such that registers after it are saved.
5849 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5851         * sparc.c (arith_4096_operand): Fix error in last change.
5853 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
5855         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
5856         defaults for MEABI.
5858 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
5860         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
5861         vectors.
5863 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
5865         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
5867 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
5869         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
5870         removed; fix return value.
5871         * combine.c (combine_instructions): Dirtify blocks where we failed to
5872         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
5873         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
5875 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5877         * gcse.c (insert_insn_end_bb): Fix typo in last change.
5879 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
5881         * recog.c (peephole2_optimize): Re-distribute EH edges.
5883 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
5885         * expr.c (expand_expr): Use unsave lang hook.
5886         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
5887         (LANG_HOOKS_INITIALIZER): Update.
5888         * langhooks.h (struct lang_hooks): New hook unsave.
5889         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
5890         (unsave_expr_1): Remove unused lang_unsave_expr_now.
5891         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
5892         (unsave_expr_now): Remove.
5893         * tree.h (unsave_expr_now, lang_unsave,
5894         lang_unsave_expr_now): Remove.
5895         (lhd_unsave): New.
5897 2002-03-08  Andreas Jaeger  <aj@suse.de>
5899         * flow.c (propagate_block_delete_insn): Remove unused variable.
5901 2002-03-08  Kazu Hirata  <kazu@hxi.com>
5903         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
5904         insn length for memory load/store.
5906 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5908         * doc/install.texi (--with-libiconv-prefix): Document.
5910 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
5912         * doc/sourcebuild.texi: Fix typo.
5914 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
5916         PR c/3711
5917         * builtins.c (std_expand_builtin_va_arg): Do all computations on
5918         trees.
5920 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5922         * rtl.c (copy_most_rtx): Move from here ...
5923         * emit-rtl.c (copy_most_rtx): ... to here.
5925 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
5927         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
5928         SUBTARGET_CPP_SIZE_SPEC.
5929         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
5931         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
5933 2002-03-07  Matt Hiller  <hiller@redhat.com>
5935         * gensupport.c (first_dir_md_include): Renamed from include;
5936         change all references.
5937         (last_dir_md_include): Renamed from last_include; change all
5938         references.
5939         (init_md_reader): Unconditionally initialize base_dir whether or
5940         not filename is a relative path.
5942 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
5944         * config/fp-bit.c (_unord_f2): Compile it in even if
5945         US_SOFTWARE_GOFAST is enabled.
5947         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
5948         NULL_RTX.  Set all HFmode operations as NULL_RTX.
5949         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
5950         NULL_RTX, try reversing the comparison and the operands.
5952 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
5954         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
5955         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
5956         and MATCH_OP_DUP.
5958 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
5960         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
5962 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
5964         * basic-block.h (fixup_abnormal_edges): Declare.
5965         * reload1.c (fixup_abnormal_edges): New function.
5966         * reg-stack.c (convert_regs): Use it.
5968         * gcse.c (insert_insn_end_bb): Handle trapping insns.
5970         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
5972 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
5974         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
5975         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
5976         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
5977         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
5978         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
5979         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
5980         unless x and y could be infinite.
5981         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
5982         Check that the common type of both arguments is a real, even for
5983         targets without unordered comparisons.  Allow an integer argument
5984         to be compared against a real.
5985         (expand_tree_builtin): Use expand_unordered_cmp.
5986         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
5987         * cse.c (fold_rtx): Likewise.  Fix indentation.
5988         * fold-const.c (fold_real_zero_addition_p): New.
5989         (fold): Use it, and the new HONOR_... macros.
5990         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
5991         * jump.c (reversed_comparison_code_parts): After searching for
5992         the true comparison mode, use HONOR_NANS to decide whether it
5993         can be safely reversed.
5994         (reverse_condition_maybe_unordered): Remove IEEE check.
5995         * simplify-rtx.c (simplify_binary_operation): Use the new macros
5996         to decide which simplifications are valid.  Allow the following
5997         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
5998         and (a - -b) to (a + b).
5999         (simplify_relational_operation): Use HONOR_NANS.
6000         * doc/tm.texi: Document the MODE_HAS_... macros.
6002 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
6004         * combine.c (simplify_comparison): If simplifying a logical shift
6005         right and compare with constant, force the comparison to unsigned.
6007 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
6009         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
6011         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
6012         -mabi=no-altivec
6013         (alt_reg_names): Remove % for vrsave.
6015 2002-03-06  Richard Henderson  <rth@redhat.com>
6017         PR optimization/5844
6018         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
6019         if used indicates we've already emitted one copy of an operand.
6020         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
6021         (gen_split): Supply a non-null used.
6023 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
6025         * reload1.c (reload): Unshare all rtl after reload is done.
6027         * simplify-rtx.c (simplify_plus_minus): Do not abort,
6028         but simply fail if the expression is too complex to simplify.
6029         (simplify_gen_binary): Handle simplify_plus_minus failures.
6031 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
6033         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
6034         consistently call delete_trivially_dead_insns after CSE and GCSE;
6035         fix DFI_life dumping; do jump threading after liveness; do crossjumping
6036         after liveness2; update comment in last crossjumping.
6037         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
6039 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
6041         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
6042         after completing fast dead code elimination.
6044         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
6045         COMPARE operator.
6047 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
6049         * version.c:  Fix misplaced leading blanks on first line.
6051 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
6053         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
6055 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
6057         * cfgcleanup.c (mentions_nonequal_regs): New function.
6058         (thread_jump): Use it.
6059         * toplev.c (rest_of_compilation): Run jump threading after
6060         liveness.
6062 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
6064         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
6065         patch.
6067 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
6069         * predict.c (estimate_bb_frequencies): Do not reload the
6070         frequencies from notes.
6072 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
6074         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
6075         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
6077         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
6078         delete_noop_moves): Return indeger.
6079         * flow.c (ndead): New variable.
6080         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
6081         BB argument; update callers.
6082         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
6083         (life_analysis): Do not call purge_all_dead_edges.
6084         (update_life_info): Return number of deleted insns; print statistics.
6085         (update_life_info_in_dirty_blocks): likewise.
6086         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
6087         return number of insns deleted.
6089         * cse.c: Include timevar.h
6090         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
6091         iterate until stabilizes; print statistics; return number of killed
6092         insns.
6093         * Makefile.in: (cse.o): Add timevar.h dependency
6094         * rtl.h (delete_trivially_dead_insns): New.
6095         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
6096         * toplev.c (rest_of_compilation): Update callers.
6098         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
6099         (try_optimize_cfg): Do not update liveness.
6100         (cleanup-cfg): Loop until try_optimize_cfg and dead code
6101         removal stabilizes; use delete_trivially_dead_insns.
6103         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
6105 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
6107         * cppmain.c (setup_callbacks): Disable #pragma and #ident
6108         callbacks when processing assembly language.
6110 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6112         * pa.h (ASM_FILE_END): Define.
6113         * som.h (ASM_FILE_END): Delete.
6115         * pa.c (function_arg): Don't pass floats in general registers in
6116         indirect calls if TARGET_ELF32.
6118 2002-03-05  Richard Henderson  <rth@redhat.com>
6120         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
6122 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
6124         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
6126 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
6128         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
6129         -r command line.  Don't hide any symbols if not building
6130         shared libgcc.
6132 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
6134         * cfg.c (dump_flow_info): Warn about profile mismatches.
6135         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
6136         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
6138 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
6140         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
6141         wide volatile memory by parts.
6143 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
6145         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
6146         is NULL.
6148 2002-03-05  Richard Henderson  <rth@redhat.com>
6150         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
6152 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
6154         * toplev.c (documented_lang_options): Document more
6155         language-specific options.
6156         * doc/invoke.texi (Warning Options): Correct documentation for
6157         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
6158         * c-decl.c (c_decode_option): Use a table to handle warning options.
6160 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
6162         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
6163         parameter to mmix_encode_section_info.
6164         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
6165         relocatably.  Always produce ELF, not mmo if linking relocatably.
6166         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
6167         first is non-zero, don't add symbol prefix.
6168         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
6169         prototype accordingly.
6171 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
6173         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
6175 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
6177         * configure.in: Increase required makeinfo version to 4.1.
6178         * configure: Regenerate.
6180 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
6182         * .cvsignore: Remove *.info* and genrtl*; these files are generated
6183         elsewhere now.
6185 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
6187         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
6188         * doc/invoke.texi: Fix @math uses.
6190 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
6192         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
6193         removal
6195 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
6197         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
6198         (powerpc-*-eabisimaltivec*): Same.
6200         * config/rs6000/t-ppcendian: New.
6202 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6204         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
6205         nonimmediate_src_operand and nonimmediate_lsrc_operand to
6206         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
6208 2002-03-03  Richard Henderson  <rth@redhat.com>
6210         * toplev.c (rest_of_decl_compilation): Revert last two changes.
6212 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
6214         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
6215         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
6216         tree.c, config/m68k/m68k.c:
6217         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
6218         REAL_ARITHMETIC blocks unconditional.  Delete some further
6219         #ifdef blocks predicated on REAL_ARITHMETIC.
6220         * flags.h, toplev.c: Delete remaining references to
6221         flag_pretend_float.
6223         * doc/invoke.texi: Remove documentation of -fpretend-float.
6224         * doc/tm.texi: Describe the various REAL_* macros as provided by
6225         real.h, not by the target configuration files.
6227         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
6228         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
6229         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
6230         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
6231         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
6232         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
6233         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
6234         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
6235         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
6236         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
6237         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
6238         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
6239         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
6240         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
6241         config/xtensa/xtensa.h:
6242         Do not define, undefine, or mention in comments any of
6243         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
6244         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
6245         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
6246         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
6247         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
6248         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
6249         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
6250         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
6251         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
6253 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6255         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
6256         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
6257         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
6258         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
6259         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
6260         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
6261         Delete.
6262         * defaults.h (BITS_PER_WORD): Define.
6263         * doc/tm.texi (BITS_PER_WORD): Document default value.
6265         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
6266         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
6267         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
6269 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6271         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
6272         lieu of explicit sizeof/sizeof.
6273         * i386.c (override_options, ix86_init_mmx_sse_builtins,
6274         ix86_expand_builtin): Likewise.
6275         * mips.c (mips_add_gc_roots): Likewise.
6276         * mmix.c (mmix_output_condition): Likewise.
6277         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
6278         altivec_init_builtins): Likewise.
6279         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
6280         * cppexp.c (Nsuff, parse_number): Likewise.
6281         * cppinit.c (builtin_array_end): Likewise.
6282         * gcc.c (n_default_compilers, process_command): Likewise.
6283         * genpreds.c (output_predicate_decls): Likewise.
6284         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
6285         * lcm.c (N_ENTITIES): Likewise.
6286         * stor-layout.c (set_sizetype): Likewise.
6288 2002-03-03  Richard Henderson  <rth@redhat.com>
6290         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
6291         for types or labels.
6293 2002-03-03  Richard Henderson  <rth@redhat.com>
6295         * c-decl.c (start_decl): Initialized variables are not common.
6297 2002-03-02  Per Bothner  <per@bothner.com>
6299         * gcc.c (option_map):  Suport new --bootclasspath option.
6300         --CLASSPATH is now just an alias for --classpath.
6302 2002-03-02  Richard Henderson  <rth@redhat.com>
6304         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
6305         load if "internal" visibility.
6306         * doc/extend.texi: Document visibility meanings.
6308 2002-03-02  Richard Henderson  <rth@redhat.com>
6310         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
6311         to functions as well.
6313 2002-03-02  Richard Henderson  <rth@redhat.com>
6315         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
6316         (handle_visibility_attribute): Don't call assemble_visibility.
6317         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
6318         without asmspec.  Invoke assemble_alias when needed.
6319         * varasm.c (maybe_assemble_visibility): New.
6320         (assemble_start_function, assemble_variable, assemble_alias): Use it.
6322 2002-03-02  Richard Henderson  <rth@redhat.com>
6324         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
6325         invoke ENCODE_SECTION_INFO with first call flag.
6327         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
6328         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
6329         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
6330         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
6331         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
6332         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
6333         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
6334         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
6335         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
6336         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
6337         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
6338         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
6339         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
6340         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
6341         config/mcore/mcore-protos.h, config/mcore/mcore.c,
6342         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
6343         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
6344         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
6345         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
6346         config/sh/sh.h, config/sparc/sparc.h,
6347         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
6348         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
6349         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
6350         FIRST argument.  As needed, examine it and do nothing.
6352         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
6353         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
6354         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
6356         * config/arm/t-pe (pe.o): Add dependencies.
6358 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6360         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
6361         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
6362         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
6363         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
6364         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
6365         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
6366         * defaults.h (BITS_PER_UNIT): Define.
6367         * doc/tm.texi (BITS_PER_UNIT): Document default value.
6369 2002-03-02  Kazu Hirata  <kazu@hxi.com>
6371         * config/h8300/h8300-protos.h: Add a prototype for
6372         compute_a_shift_length.
6373         * config/h8300/h8300.c (h8300_asm_insn_count): New.
6374         (compute_a_shift_length): Likewise.
6375         (h8300_adjust_insn_length): Do not adjust insn length of shift
6376         insns.
6377         * config/h8300/h8300.md (anonymous shift patterns): Use
6378         compute_a_shift_length.
6380 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6382         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
6383         trunc_int_for_mode.
6385         * emit-rtl.c (offset_address): Call update_temp_slot_address.
6387 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6389         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
6390         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
6391         * flags.h (flag_zero_initialized_in_bss): Declare.
6392         * toplev.c (flag_zero_initialized_in_bss): New flag.
6393         (lang_independent_options): Add flag_zero_initialized_in_bss.
6394         * tree.c (initializer_zerop): New function.
6395         * tree.h (initializer_zerop): Declare.
6396         * varasm.c (assemble_variable): If we can emit bss, put zero
6397         initializers in the bss section.
6399 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
6401         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
6402         like more than one symbol per .weak directive.
6404 2002-03-01  Richard Henderson  <rth@redhat.com>
6406         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
6407         adjust argument_pointer by pretend_args_size.
6408         (ia64_va_start): Adjust va_start address by -pretend_args_size.
6410 2002-03-01  Kazu Hirata  <kazu@hxi.com>
6412         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
6414 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
6416         * toplev.c (rest_of_compilation): Delete dead jumptables before
6417         loop.
6418         * flow.c (delete_dead_jumptables): Make global.
6419         * rtl.h (delete_dead_jumptables): Declare.
6421 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
6423         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
6424         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
6425         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
6427 2002-03-01  Kazu Hirata  <kazu@hxi.com>
6429         * config/h8300/h8300-protos.h: Fix formatting.
6430         * config/h8300/h8300.c: Likewise.
6431         * config/h8300/h8300.h: Likewise.
6433 2002-03-01  Kazu Hirata  <kazu@hxi.com>
6435         * config/h8300/h8300.c (print_operand): Support 16-bit
6436         constant addresses.
6437         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
6439 2002-02-28  Richard Henderson  <rth@redhat.com>
6441         * expmed.c (store_bit_field): Prevent generation of CONCATs;
6442         pun complex values as integers; use gen_lowpart instead of
6443         gen_rtx_SUBREG.
6444         (extract_bit_field): Likewise.
6446 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
6447             David Edelsohn  <edelsohn@gnu.org>
6449         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
6450         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
6451         (SUPPORTS_WEAK): Likewise.
6452         * output.h (add_weak): Add tree param.
6453         * varasm.c (add_weak): Likewise.  Save decl.
6454         (struct weak_syms): Add decl field.
6455         (mark_weak_decls): New function.
6456         (init_varasm_once): ggc_add_root mark_weak_decls.
6457         (assemble_start_function): Use ASM_WEAKEN_DECL.
6458         (assemble_variable): Likewise.
6459         (assemble_alias): Likewise.
6460         (declare_weak): Pass decl to add_weak.
6461         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
6462         (remove_from_pending_weak_list): Declare and define for
6463         ASM_WEAKEN_DECL.
6464         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
6465         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
6466         * defaults.h (SUPPORTS_WEAK): Likewise.
6467         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
6468         .weak for code sym.  Do emit .size for descriptor sym.
6469         (ASM_DECLARE_FUNCTION_SIZE): Define.
6470         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
6471         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
6472         .lglobl unless TARGET_XCOFF.  Formatting fixes.
6473         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
6474         .weak for code sym.
6475         (HANDLE_PRAGMA_WEAK): Remove.
6476         (ASM_WEAKEN_LABEL): Remove.
6477         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
6479 2002-03-01  Jason Merrill  <jason@redhat.com>
6481         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
6482         (TARGET_EXPR_CLEANUP): New macro.
6484 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
6486         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
6487         to take ptr_extend into account as third type of extension.
6488         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
6489         fields used by SUBREG_PROMOTED_UNSIGNED_P.
6490         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
6491         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
6492         * calls.c (precompute_arguments): Use new macro.
6493         (expand_call): Ditto.
6494         * combine.c (nonzero_bits): Ditto.
6495         (record_promoted_value): Ditto.
6496         * expr.c (store_expr): Ditto.
6497         (expand_expr): Ditto.
6498         * function.c (assign_parms): Ditto.
6500 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
6502         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
6503         override -shared and -shared-libgcc.
6505 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
6507         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
6508         of "ultrasparc".
6509         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
6510         to be broken.
6512 2002-02-28  Richard Henderson  <rth@redhat.com>
6514         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
6515         4 cycle latency from MM producers.
6516         (ia64_internal_sched_reorder): Likewise with pipeline flush.
6518 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
6520         * mklibgcc.in: Don't use GNU make extension.
6522 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
6524         * c-parse.in (STATIC): New terminal.
6525         (scspec): New non-terminal.  Update productions accordingly.
6526         (program): Remove bogus ifc / end ifc.
6527         (array_declarator): Simplify production using STATIC.
6529 2002-02-28  Jim Meyering  <meyering@lucent.com>
6531         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
6532         \a still means TARGET_BELL.
6534 2002-02-28  Richard Henderson  <rth@redhat.com>
6536         * haifa-sched.c (sched_emit_insn): New.
6537         (schedule_block): Use last_scheduled_insn to track last insn.
6538         * sched-int.h (sched_emit_insn): Prototype.
6539         * config/ia64/ia64.c (last_issued): Remove.
6540         (ia64_variable_issue): Don't set it.
6541         (nop_cycles_until): Use sched_emit_insn.
6543 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
6545         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
6546         extended constants.
6548 2002-02-28  Kazu Hirata  <kazu@hxi.com>
6550         * config/h8300/h8300.c: Fix formatting.
6551         * config/h8300/h8300.h: Likewise.
6553 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6555         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
6556         which may overwrite the high byte of the frame pointer.
6558 2002-02-28  Bo Thorsen  <bo@suse.de>
6560         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
6561         (STARTFILE_SPEC): Add 64 bit files.
6562         (ENDFILE_SPEC): Likewise.
6564 2002-02-28  Jason Merrill  <jason@redhat.com>
6566         * c-decl.c (finish_function): Only warn about missing return
6567         statement with -Wreturn-type.
6569 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
6571         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
6573         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
6574         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
6576 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
6578         * basic-block.h (BB_REACHABLE): Renumber.
6579         (BB_DIRTY, BB_NEW): New flags.
6580         (clear_bb_flags): Declare.
6581         (update_life_info_in_dirty_blocks): Declare.
6582         * cfg.c (clear_bb_flags): New function.
6583         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
6584         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
6585         reorder_insns, emit_insn_after): Mark block as dirty.
6586         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
6587         (update_life_info_in_dirty_blocks): New function.
6588         * recog.c (apply_change_group): Dirtify block.
6590         * cse.c (cse_insn): Reorder emitting of jump insn to keep
6591         cfg consistent.
6592         * gcse.c (delete_null_pointer_checks): Likewise.
6594         * toplev.c (dump_file_index): Move cse2 after bp,
6595         add DFI_null
6596         (dump_file_info): Similary.
6597         (rest_of_compilation): Avoid most of CFG rebuilds;
6598         do first if converision after null pointer checks, do cse2
6599         after branch prediction; avoid full liveness rebuild after
6600         initializing subregs.
6601         * invoke.texi (-d options): Document -du, renumber.
6603         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
6604         (notice_new_block): Do not set BB_UPDATE_LIFE.
6605         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
6606          merge_blocks_move_successor_nojumps, merge_blocks,
6607          try_crossjump_to_edge): Likewise.
6608         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
6609         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
6610         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
6611         (merge_of_block): Do not use life_data_ok.
6612         (find_if_case_1): Do not use SET_UPDATE_LIFE.
6613         (if_convert): Use BB_DIRTY mechanizm to update life.
6614         * lcm.c (optimize_mode_switching): Update
6615         update_life_info_in_dirty_blocks
6617 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
6619         * Makefile.in (integrate.o): Update.
6620         * c-decl.c (copy_lang_decl): Rename.
6621         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
6622         * integrate.c: Include langhooks.h.
6623         (copy_decl_for_inlining): Update to use langhook.
6624         * langhooks-def.h (lhd_do_nothing_t,
6625         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
6626         (LANG_HOOKS_INITIALIZER): Update.
6627         * langhooks.c (lhd_do_nothing_t): New.
6628         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
6629         * tree.h (copy_lang_decl): Remove.
6630 objc:
6631         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
6633 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
6635         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
6636         POST_DEC, and POST_MODIFY.
6638 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
6640         * c-typeck.c (digest_init): Remove unused parameter; all
6641         callers changed.
6643 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
6645         * expmed.c (expand_shift): Correctly test for low part of a
6646         subreg.
6648 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
6650         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
6651         insn UIDs with insn addresses.
6653 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
6655         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
6656         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
6657         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
6658         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
6659         gcc.c, toplev.c: Delete code implementing -traditional mode.
6661         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
6662         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
6663         Document removal of -traditional mode for compilation, and
6664         remove documentation only relevant to that mode.
6666         * config/nextstep.h, config/ptx4.h, config/svr4.h,
6667         config/convex/convex.h, config/d30v/d30v.h,
6668         config/i386/dgux.h, config/i386/osf1elf.h,
6669         config/i386/osfelf.h, config/i386/osfrose.h,
6670         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
6671         config/m68k/hp310.h, config/m88k/dgux.h,
6672         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
6673         config/m88k/m88k.h, config/m88k/openbsd.h,
6674         config/mips/abi64.h, config/mips/osfrose.h,
6675         config/mips/svr4-5.h, config/mips/svr4-t.h,
6676         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
6677         config/stormy16/stormy16.h: Remove all references to
6678         -traditional from target specs.  Delete all mention of the
6679         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
6680         delete a couple of commented-out definitions of
6681         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
6682         to -traditional.
6684         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
6685         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
6687 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
6689         * mklibgcc.in: Don't use \n in a line subject to
6690         interpretation by echo.
6692 2002-02-27  Graham Stott  <grahams@redhat.com>
6694         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
6695         Constify NAME.
6697         * loop.c (prescan_loop): Handle PARALLEL.
6699         * unroll.c (loop_iterations): Return 0 if the add_val for
6700         a BIV is REG.
6702         * final.c (output_operand_lossage): Constify PFX_STR.
6704         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
6706 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
6708         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
6709         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
6711 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
6713         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
6715 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6717         * cpplex.c (_cpp_lex_token): Handle directives in macro
6718         arguments.
6719         * cpplib.c (_cpp_handle_directive): Save and restore state
6720         if parsing macro args when entering a directive.
6721         * cppmacro.c (collect_args): No need to handle directives
6722         in macro arguments.
6723         (enter_macro_context, replace_args): Use the original macro
6724         definition in case it was redefined whilst collecting arguments.
6725 doc:
6726         * cpp.texi: Update.
6728 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
6730         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
6731         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
6732         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
6733         method on AIX.
6734         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
6735         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
6736         (load_toc_v4_PIC_2): Same.
6738 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
6740         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
6742 2002-02-26  Richard Henderson  <rth@redhat.com>
6744         * config/alpha/alpha.md (ashldi_se): Re-enable.
6746 2002-02-26  Richard Henderson  <rth@redhat.com>
6748         * config/alpha/alpha.c (alpha_encode_section_info): Examine
6749         MODULE_LOCAL_P; improve commentary.
6751 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
6753         * doc/cpp.texi: Clarify documentation of relationship between
6754         #line and #include.
6756 2002-02-26  Kazu Hirata  <kazu@hxi.com>
6758         * config/h8300/h8300-protos.h: Update the prototype for
6759         compute_logical_op_length.  Add the prototype for
6760         compute_logical_op_cc.
6761         * config/h8300/h8300.c (compute_logical_op_length): Figure out
6762         code from operands.
6763         (compute_logical_op_cc): New.
6764         * config/h8300/h8300.md: Combine all the logical op patterns
6765         in HImode and SImode.  Use compute_logical_op_cc.
6767 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
6769         * config/i386/i386.c (print_operand): Don't append ATT-style
6770         length suffixs to x87 opcodes when in Intel mode.
6772 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
6774         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
6775         (init_emit_once): Update calls.
6776         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
6777         (init_syntax_once): Prototype.
6779 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6781         * pa-linux.h (LIB_SPEC): Update definition.
6782         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6784 2002-02-26  Richard Henderson  <rth@redhat.com>
6786         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
6787         if we emitted a stop bit.
6789 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
6791         * configure.in (libgcc_visibility): Substitute.
6792         * configure: Rebuilt.
6793         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
6794         defined symbols .hidden.
6796 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
6798         * attribs.c (c_common_attribute_table): Add visibility.
6799         (handle_visibility_attribute): New function.
6800         * varasm.c (assemble_visibility): New function.
6801         * output.h (assemble_visibility): Add prototype.
6802         * tree.h (MODULE_LOCAL_P): Define.
6803         * crtstuff.c (__dso_handle): Use visibility attribute.
6804         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
6805         for MODULE_LOCAL_P symbols too.
6806         * config/ia64/ia64.c (ia64_encode_section_info): Handle
6807         MODULE_LOCAL_P symbols the same way as local symbols.
6808         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
6809         into .sdata/.sbss by the user.
6810         * doc/extend.texi (Function Attributes): Document visibility
6811         attribute.
6813 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
6815         PR debug/5770
6816         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
6817         STRING_CST initializer spanning the whole variable without
6818         embedded zeros.
6819         If expand_expr returned MEM, don't use it.
6821 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
6823         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
6824         generate a die for the lexical block.
6826 2002-02-26  Kazu Hirata  <kazu@hxi.com>
6828         * config/h8300/h8300-protos.h: Add a prototype for
6829         compute_logical_op_length.
6830         * config/h8300/h8300.c (compute_logical_op_length): New.
6831         * config/h8300/h8300.md (anonymous logical patterns): Use
6832         compute_logical_op_length for length.
6834 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
6836         * dwarf2out.c (modified_type_die): Do not call type_main_variant
6837         for vectors.
6838         (gen_type_die): Same.
6840         * attribs.c (handle_vector_size_attribute): Set debug information.
6842 2002-02-26  Daniel Egger  <degger@fhm.edu>
6844         * config/rs6000/rs6000.md: Swap define_insn attributes to
6845         fix incorrect generation of merge high instructions instead
6846         of merge low.
6848 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
6850         * c-typeck.c (really_start_incremental_init): Use
6851         bitsize_zero_node for vectors.
6853 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
6855         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
6856         ("*set_vrsave_internal"): Same.
6858 2002-02-25  Richard Henderson  <rth@redhat.com>
6860         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
6861         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
6863 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
6865         PR target/5755
6866         * config/i386/i386.c (ix86_return_pops_args): Only pop
6867         fake structure return argument if it was passed on the stack.
6869 2002-02-25  Jason Merrill  <jason@redhat.com>
6871         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
6872         RESULT_DECL.
6874 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
6876         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
6877         link with shared_name only.
6878         * doc/invoke.texi (Link Options): Document new behavior.
6880 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
6882         * c-typeck.c (push_init_level): Handle vectors.
6884 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
6886         * config/sparc/sparc.c (const64_high_operand): Zero-extend
6887         operands of SPARC_SETHI_P.
6888         (input_operand): Likewise.
6889         (sparc_emit_set_const32): Likewise.
6890         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
6891         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
6892         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
6893         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
6894         (movdi_insn_sp64_vis): Likewise.
6895         (movdi split, movdf split): Use SETHI32.
6896         * doc/md.texi: Document SPARC constraints L, M and N.
6898 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
6900         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
6901         ("*set_vrsave_internal"): use mfspr for Darwin.
6903         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
6904         gen_get_vrsave_internal.
6906 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6908         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
6910 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6912         * cpplex.c (cpp_interpret_charconst): Get signedness or
6913         otherwise of wide character constants correct.
6914         * cppexp.c (lex): Get signedness of wide charconsts correct.
6916 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6918         * optabs.c (widen_operand): Only call convert_modes for
6919         promoted SUBREG if signedness matches.
6920         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
6922 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
6924         * cpplib.c (glue_header_name): Use local buffer to build up
6925         header name.
6927 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
6929         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
6931 2002-02-23  Kazu Hirata  <kazu@hxi.com>
6933         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
6934         H8/300[HS] separately.
6935         * config/h8300/h8300.md: Remove the early clobber constraint
6936         from bit field patterns.
6938 2002-02-23  Kazu Hirata  <kazu@hxi.com>
6940         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
6941         register_operand.
6942         (mulhisi3): Likewise.
6943         (umulqisi3): Likewise.
6944         (umulhisi3): Likewise.
6946 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
6948         * cppinit.c (output_deps): Correct test for stdout output.
6949         (init_dependency_output): Cure warning.
6951 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6953         * expr.c (store_expr): When converting expression to promoted
6954         equivalent type, allow using SUBREG_REG of TARGET as the target
6955         of the expansion of EXP.
6956         * loop.c (basic_induction_var, case SUBREG): Always look inside.
6957         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
6958         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
6959         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
6960         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
6962 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
6964         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
6965         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
6966         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
6968 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
6970         PR optimization/5747
6971         * loop.c (scan_loop): Update reg info if move_movables created new
6972         pseudos.
6974 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
6976         * gcc.c (init_gcc_spec): Revert last change.
6978 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
6980         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
6981         gpc_reg_operand constraint.
6983 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
6985         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
6986         Simplify comparison of `low'.
6987         (add_operand): Fix formatting.
6988         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
6989         (mask_operand): Disallow mask to wrap in 64-bit mode.
6990         (rs6000_stack_info): Remove redundant test setting push_p.
6991         (output_toc): Fix formatting.
6992         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
6993         cc_reg_not_cr0_operand constraint.
6994         (booldi3, boolcdi3 splitters): Same.
6996 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
6998         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
7000 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
7002         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
7003         gcc invoked with -shared-libgcc.
7005 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
7007         PR c++/5748
7008         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
7009         decl if any of elements was TREE_USED.
7011 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
7013         * config/sparc/sol2.h: Don't include sys/mman.h.
7014         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
7015         (arith_4096_operand): Don't throw high bits away.
7016         (const64_operand): Take sign extension of CONST_INTs into account.
7017         (const64_high_operand, sparc_emit_set_const32): Likewise.
7018         (GEN_HIGHINT64): Likewise.
7019         (sparc_emit_set_const64_quick1): Likewise.
7020         (const64_is_2insns): Likewise.
7021         (print_operand): Use trunc_int_for_mode for sign extension.
7022         * config/sparc/sparc.h (SMALL_INT32): Likewise.
7023         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
7024         chars.  Assume CONST_INT is already properly sign-extended.
7025         (movdi split): Sign-extend each SImode part.
7026         (andsi3 split): Don't mask high bits off, so that result
7027         remains properly sign-extend.
7028         (iorsi3 split): Likewise.
7029         (xorsi3 split): Likewise.
7031 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
7033         * fold-const.c (fold): Fix typo in comments.
7035 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
7037         * Makefile.in (langhooks.o): Update dependencies.
7039 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
7041         * langhooks.c: Include flags.h.
7043 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
7045         * testsuite/gcc.dg/attr-alwaysinline.c: New.
7047         * c-common.c (c_common_post_options): Set inline trees by
7048         default.
7050         * doc/extend.texi (Function Attributes): Document always_inline
7051         attribute.
7052         Update documentation about inlining when not optimizing.
7054         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
7056         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
7057         unless DECL_ALWAYS_INLINE.
7059         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
7060         unless DECL_ALWAYS_INLINE.
7061         (c_disregard_inline_limits): Disregard if always_inline set.
7063         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
7064         Disregard if always_inline set.
7065         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
7066         unless DECL_ALWAYS_INLINE.
7068         * attribs.c (handle_always_inline_attribute): New.
7069         (c_common_attribute_table): Add always_inline.
7071         * config/rs6000/altivec.h: Add prototypes for builtins
7072         requiring the always_inline attribute.
7074 2002-02-21  Eric Christopher  <echristo@redhat.com>
7076         * expmed.c (store_bit_field): Try to simplify the subreg
7077         before generating a new one when when the mode size of
7078         value is less than maxmode.
7080 2002-02-21  Richard Henderson  <rth@redhat.com>
7082         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
7083         than gen_rtx_PLUS to form the sum.
7084         * explow.c (force_reg): Rearrange to not allocate new pseudo
7085         when force_operand returns a register.
7086         * expr.c (expand_assignment): Allow offset_rtx expansion to
7087         return a sum.  Do not force addresses into registers.
7088         (expand_expr): Likewise.
7089         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
7090         to canonicalize arithmetic that didn't simpify.
7091         (simplify_plus_minus): New argument force; update
7092         all callers.  Don't split CONST unless we can do something with it,
7093         and wouldn't lose the constness of the operands.
7095         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
7096         that we generated earlier.
7098 2002-02-21  Tom Tromey  <tromey@redhat.com>
7100         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7101         (output_line_info): Use constant `1', with a long explanatory
7102         comment.
7103         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
7105 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
7107         * jump.c (redirect_jump): If old label has no UID, don't try to
7108         delete it.
7110 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
7112         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
7113         If input is constant, do shifts at compile time.
7115 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
7117         * doc/extend.texi: Fix some more overfull hboxes.
7119 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
7121         PR optimization/4994
7122         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
7123         register moves.
7125 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
7127         PR c++/4574
7128         * expr.h (expand_and): Add mode argument.
7129         * expmed.c (expand_and): Add mode argument.
7130         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
7131         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
7132         * except.c (expand_builtin_extract_return_addr): Likewise.
7133         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
7134         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
7135         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
7136         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
7137         * config/c4x/c4x.md: Use GEN_INT (x) instead of
7138         gen_rtx (CONST_INT, VOIDmode, x).
7140 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
7142         PR c/4697:
7143         * stmt.c (warn_if_unused_value): Move side effects test once more.
7145 2002-02-20  Torbjorn Granlund  <tege@swox.com>
7147         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
7148         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
7150 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
7152         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
7153         SUBREG or ZERO_EXTEND.
7155 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
7157         * sh.h (current_function_anonymous_args): Remove.
7158         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
7159         of current_function_varargs and current_function_stdarg is set.
7160         * sh.c (sh_expand_prologue): Check current_function_varargs /
7161         current_function_stdarg / TARGET_SH5 instead of
7162         current_function_anonymous_args.
7164         * sh64.h (TARGET_VERSION): Define.
7166 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
7168         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
7169         VRSAVE_REGNO on TARGET_ALTIVEC.
7171 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
7173         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
7174         bits of SImode const_int.
7175         (includes_rshift_p): Likewise.
7176         (print_operand): Call mask_operand and mask64_operand with correct
7177         mode.
7178         (rs6000_output_function_epilogue): Pad traceback table to word.
7179         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
7180         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
7181         mask64_operand with correct mode.
7182         (FUNCTION_ARG_REGNO_P): Correct parentheses.
7184 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
7186         PR debug/4461
7187         * varasm.c (get_pool_constant_mark): New.
7188         * rtl.h (get_pool_constant_mark): Add prototype.
7189         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
7190         be represented if it has not been output.
7192 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
7194         * combine.c (do_SUBST): Sanity check substitutions of
7195         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
7196         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
7197         CONST_INT into its operand.
7198         (known_cond): Likewise, for ZERO_EXTEND.
7199         * simplify-rtx.c (simplify_unary_operation): Fix condition to
7200         allow for simplification of wide modes.  Reject CONST_INTs in
7201         ZERO_EXTEND when their actual mode is not given.
7203 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
7205         * c-decl.c (pushdecl): If no global declaration is found for an
7206         extern declaration in block scope, try a limbo one.
7208 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
7210         PR c++/4401
7211         * c-common.c (pointer_int_sum): Moved from...
7212         * c-typeck.c (pointer_int_sum): ...here.
7213         * c-common.h (pointer_int_sum): Add prototype.
7215 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
7217         PR c++/5713
7218         * c-decl.c (duplicate_decls): Return 0 if issued error about
7219         redeclaration.
7221 2002-02-20  Roger Sayle  <roger@eyesopen.com>
7222             Jakub Jelinek  <jakub@redhat.com>
7224         PR c/4389
7225         * tree.c (host_integerp): Ensure that the constant integer is
7226         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
7227         when pos is zero or non-zero respectively.  Clarify comment.
7228         * c-format.c (check_format_info_recurse): Fix host_integerp
7229         usage; the pos argument should be zero when assigning to a
7230         signed HOST_WIDE_INT.
7232 2002-02-20  Richard Henderson  <rth@redhat.com>
7234         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
7235         of the operand, rather than assuming TImode.
7236         (ix86_expand_binop_builtin): Cope with commutative patterns
7237         using nonimmediate_operand for both operands.
7238         (ix86_expand_timode_binop_builtin): Likewise.
7239         (ix86_expand_store_builtin): Validate operand 1.
7240         (ix86_expand_unop1_builtin): Likewise.
7242 2002-02-20  Philip Blundell  <philb@gnu.org>
7244         PR 5705
7245         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
7247 2002-02-20  Richard Henderson  <rth@redhat.com>
7249         PR c/5615
7250         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
7252 2002-02-20  Tom Tromey  <tromey@redhat.com>
7254         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7255         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7256         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7257         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7258         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
7259         unconditionally.
7261 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
7263         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
7264           for (const_int 0) in X not just INTVAL.
7266 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
7268         * doc/extend.texi: Avoid or reduce overfull hboxes.
7270 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
7272         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
7273         operations if the field does not start at a mode boundary.
7275 2001-02-20      Joel Sherrill <joel@OARcorp.com>
7277         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
7278         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
7279         Also done for -Acpu and -Amachine.
7281 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
7283         * cppinit.c (init_dependency_output): Take deps output file
7284         from -o if none given with -MF.  Suppress normal output.
7285         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
7286         * doc/cpp.texi, doc/invoke.texi: Update.
7288 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
7290         * toplev.c (output_quoted_string): Write unprintable
7291         characters with octal escapes.
7293 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
7295         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
7296         really_call_used[VRSAVE_REGNO] if not Altivec.
7298 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
7300         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
7301         MODE_MASK.
7302         (constant_pool_expr_1): Fix formatting.
7303         (rs6000_legitimize_reload_address): Likewise.
7305 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7307         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
7308         now that we have one.
7310 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
7312         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
7313         end of first block of bitfields (which was only seven bits);
7314         rename dummy to unused_1; remove comment which is no longer true.
7316 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
7318         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
7320 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
7322         PR 5399
7323         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
7324         if generating PIC.
7326         PR 5054
7327         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
7328         arm_is_longcall_p rather than inspecting call-type cookie
7329         directly.
7330         (call_value_insn) [TARGET_THUMB]: Likewise.
7332 2002-02-19  Graham Stott  <grahams@redhat.com>
7334         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
7336 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
7338         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
7339         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
7340         (FP_SAVE_INLINE): Delete.
7342         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
7343         * config/rs6000/eabi.asm: Remove ABI save restore routines.
7344         * config/rs6000/t-ppccomm: Build crtsavres.o.
7345         * config/rs6000/crtsavres.asm: New file.
7347 2002-02-19  Philip Blundell  <philb@gnu.org>
7349         * config/arm/arm.c (use_return_insn): Don't reject interrupt
7350         functions.
7351         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
7352         (output_return_instruction): Allow interrupt functions to return with
7353         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
7354         (arm_expand_prologue): Subtract 4 before stacking LR in an
7355         interrupt function.
7357 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
7359         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
7360         decl, not just FUNCTION_DECL.
7361         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
7362         (arm_assemble_integer): Likewise.
7363         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
7364         marked local.
7366 2002-02-19  matthew green  <mrg@eterna.com.au>
7368         * config.gcc (sparc-*-netbsdelf*): Enable target.
7369         (sparc64-*-netbsd*): New target.
7370         * config/sparc/netbsd-elf.h: New file.
7371         * config/sparc/t-netbsd64: New file.
7373 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
7375         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
7377 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
7379         * doc/invoke.texi: explicitly list the style guidelines that
7380         -Weffc++ checks for.
7382 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
7384         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
7386 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
7388         PR other/5718
7389         * gcc.c (cpp_unique_options): Treat -o as indicating object file
7390         only if not -E.  If -E, pass -o through to the preprocessor.
7392 2002-02-19  Kazu Hirata  <kazu@hxi.com>
7394         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
7395         register number with an appropriate macro.
7397 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
7399         * doc/rtl.texi (Constants): Close @code tag.
7401 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
7403         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
7404         ("mmx_uavgv4hi3"): Same.
7405         ("pmulhrwv4hi3"): Same.
7407         * tree-inline.c (walk_tree): Handle vectors.
7409         * c-common.c (constant_expression_warning): Handle vectors.
7410         (overflow_warning): Same.
7412         * sched-deps.c (sched_analyze_2): Handle vectors.
7414         * rtlanal.c (rtx_unstable_p): Handle vectors.
7415         (rtx_varies_p): Same.
7416         (count_occurrences): Same.
7417         (regs_set_between_p): Same.
7418         (modified_between_p): Same.
7419         (modified_in_p): Same.
7420         (volatile_insn_p): Same.
7421         (volatile_refs_p): Same.
7422         (side_effects_p): Same.
7423         (may_trap_p): Same.
7424         (inequality_comparisons_p): Same.
7425         (replace_regs): Same.
7426         (computed_jump_p_1): Same.
7428         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
7429         argument.
7430         (inner_mode_array): New.
7431         (copy_rtx): Handle vectors.
7432         (copy_most_rtx): Same.
7433         (rtx_equal_p): Same.
7434         (get_mode_alignment): Adjust for vectors.
7436         * resource.c (mark_referenced_resources): Handle vectors.
7437         (mark_set_resources): Same.
7439         * reload1.c (eliminate_regs): Handle vectors.
7440         (elimination_effects): Same.
7441         (scan_paradoxical_subregs): Same.
7443         * reload.c (subst_reg_equivs): Handle vectors.
7445         * regrename.c (scan_rtx): Handle vectors.
7447         * regclass.c (reg_scan_mark_refs): Handle vectors.
7449         * recog.c (find_single_use_1): Handle vectors.
7451         * local-alloc.c (equiv_init_varies_p): Handle vectors.
7452         (contains_replace_regs): Same.
7453         (memref_referenced_p): Same.
7455         * integrate.c (copy_rtx_and_substitute): Handle vectors.
7456         (subst_constants): Same.
7458         * genattrtab.c (attr_copy_rtx): Handle vectors.
7459         (encode_units_mask): Same.
7460         (clear_struct_flag): Same.
7461         (count_sub_rtxs): Same.
7463         * gcse.c (want_to_gcse_p): Handle vectors.
7464         (oprs_unchanged_p): Same.
7465         (hash_expr_1): Same.
7466         (oprs_not_set_p): Same.
7467         (expr_killed_p): Same.
7468         (compute_transp): Same.
7469         (store_ops_ok): Same.
7471         * function.c (purge_addressof_1): Do not allow paradoxical subregs
7472         of vectors.
7473         (fixup_var_refs_1): Same.
7474         (instantiate_virtual_regs_1): Same.
7476         * fold-const.c (operand_equal_p): Handle vectors.
7477         (fold): Same.
7478         (rtl_expr_nonnegative_p): Same.
7480         * flow.c (mark_used_regs): Handle vectors.
7482         * df.c (df_uses_record): Handle vectors.
7484         * cselib.c (cselib_subst_to_values): Handle vectors.
7485         (cselib_mem_conflict_p): Same.
7486         (hash_rtx): Same.
7488         * cse.c (canon_reg): Handle vectors.
7489         (fold_rt): Same.
7490         (cse_process_notes): Same.
7491         (count_reg_usage): Same.
7492         (canon_hash): Same.
7494         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
7496         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
7498         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
7499         (gen_rtx): Handle CONST_VECTOR.
7500         (gen_const_vector_0): New.
7501         (copy_rtx_if_shared): CONST_VECTORs can be shared.
7502         (reset_used_flags): Same.
7503         (copy_insn_1): Same.
7504         (initializer_constant_valid_p): Handle VECTOR_CST.
7506         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
7508         * doc/rtl.texi (Constants): Document const_vector.
7509         (CONST0_RTX): Update for vectors.
7510         (RTL sharing): Same.
7512         * print-tree.c (print_node): Add case for VECTOR_CST.
7514         * tree.h (TREE_VECTOR_CST_ELTS): New.
7515         (struct tree_vector): New.
7516         (union tree_node): Add vector node.
7517         (build_vector): Add prototype.
7519         * tree.def (VECTOR_CST): New.
7521         * tree.c (build_vector): New.
7523         * expmed.c (make_tree): Handle CONST_VECTOR.
7525         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
7526         (CONST_VECTOR_ELT): New.
7527         (CONST_VECTOR_NUNITS): New.
7529         * machmode.h (GET_MODE_INNER): New.
7530         (DEF_MACHMODE): Accept 8th arg.
7532         * machmode.def: Add 8th argument for vector inner mode.
7533         Add inner vector modes for vectors.
7535         * rtl.def (VEC_CONST): Remove.
7536         (CONST_VECTOR): New.
7538         * expr.c (clear_storage): Allow vectors.
7539         (is_zeros_p): Handle VECTOR_CST.
7541         * varasm.c (output_constant_pool): Handle vectors.
7542         (rtx_const): Add veclo and vechi fields.
7543         (kind): Add RTX_VECTOR.
7544         (decode_rtx_const): Add case for vector.
7546         * config/rs6000/rs6000-protos.h: Add zero_constant.
7548         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
7549         constants.  Force easy vector constants into memory.
7550         (easy_vector_constant): New.
7551         (emit_easy_vector_constant): New.
7552         (rs6000_legitimize_reload_address): Do not generate bad reloads on
7553         darwin.
7555         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
7556         instruction does.
7557         ("altivec_lvxl"): Same.
7558         (altivec_lvebx): Same.
7559         (altivec_lvehx): Same.
7560         (altivec_lvewx): Same.
7561         ("*movv4si_const0"): New.
7562         ("*movv4sf_const0"): New.
7563         ("*movv8hi_const0"): New.
7564         ("*movv16qi_const0"): New.
7566 2002-02-18  Kazu Hirata  <kazu@hxi.com>
7568         * config/h8300/h8300.c (notice_update_cc): Use
7569         cc_status.value2.
7571 2002-02-18  Kazu Hirata  <kazu@hxi.com>
7573         * config/h8300/h8300.md (divmod patterns): Change the
7574         constraints for operands[1] to register_operand.
7576 2002-02-18  Kazu Hirata  <kazu@hxi.com>
7578         * config/h8300/h8300-protos.h: Remove the prototype for
7579         p_operand.
7580         * config/h8300/h8300.c (p_operand): Remove.
7581         * config/h8300/h8300.md: Replace p_operand with
7582         const_int_operand.
7584 2002-02-18 Philip Blundell <pb@nexus.co.uk>
7586         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
7587         comment.
7588         (output_return_instruction): Allow use of LDR to unstack
7589         return addresss even for interrupt handlers or when
7590         interworking.  If compiling for ARMv5, use interworking-safe
7591         return instructions by default.  Remove duplicated code and
7592         lengthy "strcat" sequences.
7594 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7596         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
7597         (LINK_EH_SPEC): Define.
7598         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
7600 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
7602         * config/s390/s390.c (s390_emit_prologue): Do not set the
7603         frame_related flag for call-clobbered registers.
7605 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
7607         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
7608         (construct_container): Fix handling of SSE operands.
7609         (ix86_expand_builtin): Fix handling of 64bit pointers.
7610         (mmx_maskmovq_rex): New pattern.
7612 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
7614         * regrename.c (kill_set_value): Handle subregs properly.
7616 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
7618         * objc/objc-act.c (handle_impent): Remove leading '*'
7619         from objc_class_name.
7621 2002-02-17  Richard Henderson  <rth@redhat.com>
7623         * config/alpha/alpha.c (some_small_symbolic_operand,
7624         some_small_symbolic_operand_1, split_small_symbolic_operand,
7625         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
7626         Handle small SYMBOL_REFs anywhere, not just inside memories.
7627         * config/alpha/alpha-protos.h: Update.
7628         * config/alpha/alpha.h (PREDICATE_CODES): Update.
7629         * config/alpha/alpha.md (small symbolic operand splitter): Update.
7631 2002-02-17  Roland McGrath  <roland@frob.com>
7633         * config.gcc (powerpc-*-gnu-gnualtivec*,
7634         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
7635         * config/rs6000/gnu.h: New file.
7636         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
7637         Grok "gnu" in rs6000_abi_name.
7638         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
7639         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
7640         Grok -mcall-gnu analogous to -mcall-linux et al.
7641         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
7642         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
7643         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
7645 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
7647         PR c/3444:
7648         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
7649         shortening.
7651 2002-02-17  Philipp Thomas  <pthomas@suse.de>
7653         * config/cris/cris.h: Undefine STARTFILE_SPEC and
7654         ENDFILE_SPEC before (re)defining them.
7656 2002-02-17  Kazu Hirata  <kazu@hxi.com>
7658         * config/h8300/h8300.c: Fix formatting.
7659         * config/h8300/h8300.h: Likewise.
7661 2002-02-17  Philipp Thomas  <pthomas@suse.de>
7663         * doc/tm.texi: Explain why empty strings should not be
7664         marked for translation.
7666 2002-02-17  Philipp Thomas  <pthomas@suse.de>
7668         * final.c (output_operand_lossage): Changed to accept
7669         printf style arguments. Change calls where necessary.
7670         * output.h (output_operand_lossage): Change declaration
7671         accordingly. Update copyright.
7672         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
7673         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
7674         Update copyright date where necessary.
7676         * config/i386/i386.c (print_operand): Likewise. Remove use of
7677         sprintf.
7679         * config/cris/cris.c (cris_operand_lossage): Likewise.
7680         Rename parameter so that exgettext recognizes it as
7681         translatable message.
7682         (LOSE_AND_RETURN): Rename parameter to msgid.
7684 2002-02-17  Kazu Hirata  <kazu@hxi.com>
7686         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
7687         hard coded register number with an appropriate macro.
7688         (HARD_REGNO_MODE_OK): Likewise.
7689         (ARG_POINTER_REGNUM): Likewise.
7690         (STATIC_CHAIN_REGNUM): Likewise.
7691         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
7692         * config/h8300/h8300.md (define_constants): Define more
7693         register numbers.
7695 2002-02-17  Philipp Thomas  <pthomas@suse.de>
7697         * config/i386/i386.h: Don't mark empty strings for translation.
7699 2002-02-16  H.J. Lu <hjl@gnu.org>
7701         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
7703 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
7705         * cppinit.c (merge_include_chains): Check for brack being
7706         NULL before attempting to merge it with qtail.
7708 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
7710         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
7711         DBX_DEBUG.
7713 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7715         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
7717 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7719         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
7720         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
7721         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
7723 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7725         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
7726         now only if !TARGET_FIX.
7727         (*movsi_nt_vms_fix): New pattern.
7729 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
7731         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
7732         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
7733         (alpha_sa_mask, alpha_sa_size): Reflect above change.
7734         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
7735         (alpha_start_function, alpha_expand_epilogue): Likewise.
7736         (unicosmk_gen_dsib): Likewise.
7738 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7740         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
7742 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
7744         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
7745         check_and_change_labels, s390_final_chunkify): Delete.
7746         (s390_split_branches, s390_chunkify_pool): New functions.
7747         (s390_function_prologue): Call them.
7749         * config/s390/s390.h (S390_REL_MAX): Delete.
7750         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
7752         * config/s390/s390.md (cjump, icjump, jump): Fix length
7753         attribute calculation.
7756 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
7758         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
7759         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
7761 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7763         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
7764         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
7765         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
7767 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
7769         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
7771 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
7773         * reload.c (find_dummy_reload): Check that an output register
7774         is valid for its mode.
7776 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
7778         * combine.c (known_cond): After replacing the REG of a SUBREG, try
7779         to simplify it.
7781         * function.c (assign_parms): Demote promoted argument passed by
7782         transparent reference.
7784 2001-02-14      Joel Sherrill <joel@OARcorp.com>
7786         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
7787         -Acpu() and -Amachine() to eliminate warnings.
7789 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
7791         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
7793 2002-02-14  Kazu Hirata  <kazu@hxi.com>
7795         * config/h8300/h8300-protos.h: Update the prototype for
7796         const_costs.
7797         * config/h8300/h8300.c (const_costs): Treat SET as a little
7798         more expensive operation.
7799         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
7800         reference to const_costs.
7802 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
7804         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
7806 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
7808         PR c/5503:
7809         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
7810         use arguments from newtype.
7812 2002-02-13  Eric Christopher  <echristo@redhat.com>
7814         * config/mips/mips.c (override_options): Add check for march/mipsX
7815         on the same command line. Fix error message in cpu processing.
7816         Remove architecture and ISA checks.
7818 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
7820         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
7822         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
7824 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
7826         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
7827         alternatives.
7828         ("*movv8hi_internal1"): Same.
7829         ("*movv16qi_internal1"): Same.
7830         ("*movv4sf_internal1"): Same.
7832         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
7833         not push_reload for altivec modes.
7835 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
7837         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
7838         all RTEMS targets including removal of #includes from config/*/rtems*.h
7839         file and adding them to tm_file setting. Added xm_defines=POSIX to
7840         many targets.
7841         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
7842         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
7843         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
7844         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
7845         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
7846         config/m68k/rtemself.h: Ditto.
7847         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
7848         config/mips/rtems64.h: Ditto.
7849         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
7850         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
7851         Ditto.
7852         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
7853         config/sparc/rtemself.h: Ditto.
7854         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
7855         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
7856         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
7857         more like arm-elf.
7858         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
7859         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
7860         target made more similar to i386-elf.
7861         * config/i386/t-rtems-i386: Added soft float support and multilibs.
7862         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
7863         be similar to config/m68k/t-m68kelf.
7864         * gthr-rtems.h: Encapsulate with extern "C" for C++.
7866 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
7868         * regmove.c (kill_value): Handle subregs.
7870 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
7872         * i386.md (mul patterns): Allow memory operand to be first;
7873         add expanders where needed; fix constraints.
7874         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
7875         Allow memory operand to be the first.
7877         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
7878         operands.
7880 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
7882         PR c/5681:
7883         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
7884         GET_MODE (x).
7886 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
7888         PR optimization/5547:
7889         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
7890         all valid IA-32 address modes involving non-scaled %ebx and
7891         GOT/GOTOFF as displacement.
7893 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
7895         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
7896         after emitting ltorg insns.
7898         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
7899         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
7900         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
7901         *abssf2): Fix "op_type" attribute.
7903 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
7905         * mkconfig.sh: Avoid using a subshell redirect.
7906         ($output.T): Change to $(output)T.
7907         (ENABLE_NLS): Remove unneeded undef.
7909         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
7910         * config/alpha/x-vms (libsubdir): Define.
7912         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
7913         register frame procedures. Optimize retrieving context.
7915         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
7916         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
7917         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
7919 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7921         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
7922         Make same change as for find_base_value.
7924 2002-02-13  Kazu Hirata  <kazu@hxi.com>
7926         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
7927         of QImode and SImode.
7929 2002-02-13  Kazu Hirata  <kazu@hxi.com>
7931         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
7932         length computation of movsi.
7933         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
7935 2002-02-13  Kazu Hirata  <kazu@hxi.com>
7937         * config/h8300/h8300.md (subqi3): Tighten the predicate for
7938         operands[2] to register_operand.
7940 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
7942         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
7944 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
7946         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
7947         for altivec_lvx* and altivec_stvx*.
7948         ("*movv4si_internal"): Add constraint for loading from GPRs.
7949         ("*movv8hi_internal1"): Same.
7950         ("*movv16qi_internal1"): Same.
7951         ("*movv4sf_internal1"): Same.
7953         * config/rs6000/rs6000.c (altivec_register_operand): New.
7955         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
7956         altivec_register_operand.
7958 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
7960         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
7961         handle SYMBOL_REF.
7963 2002-02-13  Stan Shebs  <shebs@apple.com>
7965         * c-typeck.c (digest_init): Handle vectors.
7966         (really_start_incremental_init): Same.
7967         (pop_init_level): Same.
7968         (process_init_element): Same.
7970         * varasm.c (output_constant): Same.
7972         * expr.c (clear_storage): Same.
7973         (store_constructor): Same.
7975 2002-02-12  Eric Christopher  <echristo@redhat.com>
7977         * explow.c (hard_function_value): Add comment explaining
7978         signed/unsigned comparison.
7980 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
7982         * jump.c (never_reached_warning): Add finish argument.
7983         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
7984         real insn after end.
7985         * rtl.h (never_reached_warning): Adjust prototype.
7986         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
7987         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
7988         never_reached_warning.
7990 2002-02-12  Graham Stott  <grahams@redhat.com>
7992         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
7994 2002-02-12  Kazu Hirata  <kazu@hxi.com>
7996         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
7997         logical shifts on H8/300.
7998         (shift_alg_si): Improve several shifts on H8/300.
7999         (get_shift_alg): Likewise.
8001 2002-02-12  Graham Stott  <grahams@redhat.com>
8003         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
8005 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8007         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
8008         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
8010 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
8012         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
8013         non-CONST_INT through default_assemble_integer.
8014         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
8015         <case 8>: Abort for CONST_DOUBLE.
8017 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8019         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
8020         is specified.
8021         * config/pa/pa-linux.h (LIB_SPEC): Delete.
8022         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
8024 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
8026         * config/stormy16/stormy16.md (zero_extendqihi2): New.
8028 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
8030         * regrename.c (regrename_optimize): Don't accept a
8031         part-clobbered register if the replaced register is not part
8032         clobbered.
8034         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
8035         take padding into account when computing the argument value.
8037         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
8039         * combine.c (try_combine): Apply substitutions in
8040         CALL_INSN_FUNCTION_USAGE too.
8042 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
8044         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
8045         __builtin_altivec_abs*.
8046         (bdesc_abs): New.
8048         * config/rs6000/rs6000.h (rs6000_builtins): Add
8049         ALTIVEC_BUILTIN_ABS*.
8051         * config/rs6000/altivec.h: Use const char for builtins expecting
8052         literals.
8053         (vec_abs): New versions for C and C++.
8054         (vec_abss): Same.
8056 2002-02-10  Kazu Hirata  <kazu@hxi.com>
8058         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
8059         using Pmode.
8061 2002-02-10  Kazu Hirata  <kazu@hxi.com>
8063         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
8064         constant definition from h8300.md.
8065         (FRAME_POINTER_REGNUM): Likewise.
8066         * config/h8300/h8300.md (define_constants): Add FP_REG.
8068 2002-02-10  Kazu Hirata  <kazu@hxi.com>
8070         * config/h8300/h8300.c (print_operand): Remove redundant code.
8072 2002-02-10  Kazu Hirata  <kazu@hxi.com>
8074         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
8075         * config/h8300/h8300.c (byte_reg): Make it static.
8077 2002-02-10  Richard Henderson  <rth@redhat.com>
8079         PR c/5623
8080         * c-typeck.c (incomplete_type_error): Handle flexible array members.
8082 2002-02-10  Richard Henderson  <rth@redhat.com>
8084         PR c++/5624
8085         * tree.c (append_random_chars): Don't abort if main_input_filename
8086         does not exist.
8088 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
8090         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
8092 2002-02-10  Kazu Hirata  <kazu@hxi.com>
8094         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
8095         (pushhi1): Likewise.
8097 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8099         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
8100         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
8102 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
8104         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
8105         remove MASK_VIS.
8106         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
8108 2002-02-09  Kazu Hirata  <kazu@hxi.com>
8110         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
8111         a half of an SImode register on H8/300.
8113 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
8115         * i386.md (movdi_2): Add missing '!'.
8117 2002-02-09  Kazu Hirata  <kazu@hxi.com>
8119         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
8120         definitions.
8122 2002-02-09  Kazu Hirata  <kazu@hxi.com>
8124         * config/h8300/h8300.md (length): Correct the distance valid
8125         for the short branch.
8127 2002-02-09  Kazu Hirata  <kazu@hxi.com>
8129         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
8131 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
8133         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
8134         registers in SImode.
8135         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
8136         part-clobbered.
8138         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
8139         patch.
8141         Contribute sh64-elf.
8142         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
8143         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
8144         (sh_cannot_modify_jumps_p): New function.
8145         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
8146         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
8147         (sh_ms_bitfield_layout_p): New function.
8148         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
8149                     Zack Weinberg  <zack@codesourcery.com>
8150         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
8151         expand_simple_binop instead of expand_binop.
8152         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
8153         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
8154         use of .quad and .uaquad.
8155         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
8156         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
8157         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8158         * config/sh/sh.md (movdi_const, movdi_const_32bit,
8159         movdi_const_16bit): Make sure all CONSTs have modes.
8160         (sym2PIC): Ditto, but by adjusting all callers.
8161         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
8162         if the prologue calls the SHmedia argument decoder or register
8163         saver.
8164         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8165         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
8166         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
8167         (sh_expand_epilogue): Don't emit USE of return target register.
8168         (prepare_move_operands): Legitimize DImode PIC addresses.
8169         (sh_media_register_for_return): Skip tr0, used to initialize the
8170         PIC register.
8171         (sh_expand_prologue): Remove explicit USE of return register.
8172         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
8173         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
8174         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
8175         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
8176         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
8177         EXTRA_CONSTRAINT_T.
8178         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
8179         (MOVI_SHORI_BASE_OPERAND_P): New.
8180         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
8181         (EXTRA_CONSTRAINT_T): Define in terms of them.
8182         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
8183         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
8184         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
8185         alternatives supporting TARGET_REGS.
8186         (UNSPEC_GOTPLT): New constant.
8187         (movdi split): Move incrementing of LABEL_NUSES...
8188         (movdi_const, movdi_const_32bit): Here.  Use
8189         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
8190         (movdi_const_16bit): New.
8191         (call, call_value) [flag_pic]: Use GOTPLT.
8192         (call_pop, call_value_pop): New expands.
8193         (call_pop_compact, call_pop_rettramp): New insns.
8194         (call_value_pop_compact, call_value_pop_rettramp): New insns.
8195         (sibcall) [flag_pic]: Use GOT.
8196         (builtint_setjmp_receiver): Remove bogus, unused expand.
8197         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
8198         (*pt, *ptb, ptrel): New insns.
8199         (sym2GOT): Handle DImode GOT.
8200         (sym2GOTPLT, symGOTPLT2reg): New expands.
8201         (sym2PIC): New expand.
8202         (shcompact_return_tramp): Use GOTPLT to return trampoline.
8203         (shcompact_return_tramp_i): Use return register explicitly.
8204         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
8205         disable flag_reorder_blocks.
8206         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
8207         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
8208         clobbers, for clarity.
8209         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
8210         restoring of r0 in macl as MAYBE_DEAD.
8211         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
8212         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
8213         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
8214         alter_subreg all over.
8215         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
8216         reload, instead of emitting instructions that would require
8217         reloading.
8218         (casesi_load_media): Add missing modes.
8219         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
8220         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
8221         as used if the argument decoder is called.
8222         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
8223         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
8224         Pmode, then extend it to DImode if necessary.
8225         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
8226         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
8227         constants in FPU-enabled SHmedia, let them be loaded from memory.
8228         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
8229         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
8230         Adjust whitespace in assembly output templates.
8231         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
8232         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
8233         mode of if_then_else.
8234         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
8235         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
8236         sh.h.
8237         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
8238                     Joern Rennecke <amylaar@redhat.com>
8239         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
8240         (SUBTARGET_CPP_PTR_SPEC): New.
8241         (SUBTARGET_CPP_SPEC): Remove.
8242         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
8243         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
8244         Fix typo in previous checkin.
8245         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
8246         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
8247         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
8248                     Alexandre Oliva  <aoliva@redhat.com>
8249         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
8250         what single FP register can hold for SHmedia target.
8251         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
8252                     Alexandre Oliva  <aoliva@redhat.com>
8253         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
8254         Do not split into SUBREG.
8255         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
8256         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
8257         and added new functions as specified in SH5 ABI r9.
8258         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
8259         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
8260         8-byte boundary.
8261         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
8262         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
8263         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
8264         and consttable_window_ends.
8265         2001-06-03  Graham Stott  <grahams@redhat,com>
8266         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
8267         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
8268         * config/sh/sh.c (print_operand): Handle floating-point pair,
8269         vector and matrix registers.
8270         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
8271         vector modes into account.
8272         * config/sh/sh.md (movv2sf): Split move between registers into
8273         movdf.
8274         (movv4sf, movv16sf): Introduce insns that get split only after
8275         reload.
8276         * config/sh/shmedia.h: Fix Copyright dates.
8277         * config/sh/ushmedia.h: Likewise.  Move loop counter
8278         declarations into conditionals that uses them.
8279         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
8280         loop boundary.
8281         * config/sh/sshmedia.h: Fix Copyright dates.
8282         (sh_media_PUTCFG): Fix constraints.
8283         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
8284         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
8285         ptrmemfunc_vbit_in_delta for SH5.
8286         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
8287         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
8288         * invoke.texi: Likewise.
8289         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
8290         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
8291         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
8292         GCC_pop_shmedia_regs_nofpu): New global symbols.
8293         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
8294         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
8295         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
8296         compact function with nonlocal labels.
8297         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
8298         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
8299         (initial_elimination_offset): Account for their stack space.
8300         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
8301         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
8302         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
8303         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
8304         least one of the operands to be a register.
8305         (movv2sf): Likewise.  Renamed to movv2sf_i.
8306         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
8307         prepare_move_operands() before emitting SHmedia insns.
8308         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
8309         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
8310         Don't save nor initialize r12.  Don't mis-align the stack.
8311         Pad the code with a nop.
8312         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
8313         stack.
8314         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
8315         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
8316         [__SHMEDIA__]: Implement.
8317         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
8318         * config/sh/sh.md: Set latency of `pt' closer to reality.
8319         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
8320         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
8321         Set move, load and store type attributes.
8322         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
8323         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
8324         profiling.
8325         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
8326         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
8327         * config/sh/sh.c (sh_media_register_for_return): New function.
8328         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
8329         branch-target register.
8330         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
8331         * config/sh/sh.md (return_media_i): Use any call-clobbered
8332         branch-target register.
8333         (return_media): If r18 wasn't copied in the prologue, copy it
8334         here.
8335         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
8336         Clear class FP0_REGS.
8337         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
8338         from elf.h.
8339         2001-03-08  DJ Delorie  <dj@redhat.com>
8340         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
8341         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
8342         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
8343         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
8344         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
8345         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
8346         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
8347         return value correctly for call_cookie.
8348         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
8349         * config/sh/crt1.asm (start): Modified so as to call
8350         ___setup_argv_and_call_main.
8351         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
8352         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
8353         SHmedia mode.
8354         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
8355         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
8356         (STRIP_NAME_ENCODING): Use it.
8357         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
8358         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
8359         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
8360         prepare_scc_operands().
8361         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
8362         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
8363         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
8364         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
8365         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
8366         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
8367         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
8368         used in shcompact_incoming_args.
8369         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
8370         change.
8371         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
8372         mode.
8373         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
8374         Adjust accordingly.
8375         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
8376         Simplify.  Adjust.  Add sanity check.
8377         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
8378         FPU_SINGLE_BIT.
8379         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
8380         TARGET_SHCOMPACT.
8381         (udivsi3, divsi3): Use them.
8382         (force_mode_for_call): New insn.
8383         (call, call_value, sibcall_value): Emit it before SHcompact
8384         calls.
8385         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
8386         * config/sh/sh.md (call, call_value, sibcall): Make sure the
8387         call cookie is non-NULL before taking its value.
8388         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
8389         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
8390         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
8391         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
8392         block.
8393         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
8394         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
8395         temporary for stack adjusts.  Use MACL and MACH to pass
8396         arguments to shcompact_incoming_args.
8397         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
8398         clobber r1.
8399         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
8400         (nested_trampoline): Load static chain address into r1.
8401         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
8402         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
8403         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
8404         fp_arith_reg_operand().
8405         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
8406         * config/sh/sh.md (casesi): Sign-extend the first two operands,
8407         and use signed compares for them.
8408         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
8409         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
8410         ones properly aligned.
8411         (find_barrier): Account for extra alignment needed for 8-byte wide
8412         constants.
8413         (machine_dependent_reorg): Require a label for the second 4-byte
8414         constant after an 8-byte one.
8415         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
8416         change.
8417         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
8418         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
8419         last_float when switching float modes.
8420         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
8421         auto-increment for general-purpose registers.
8422         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
8423         result.
8424         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
8425         for stack adjust.
8426         * config/sh/sh.c (sh_builtin_saveregs): Support using all
8427         registers for varargs.
8428         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
8429         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
8430         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
8431         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
8432         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
8433         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
8434         call_cookie accordingly.
8435         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
8436         (SHCOMPACT_BYREF): Likewise.
8437         (SHCOMPACT_FORCE_ON_STACK): New macro.
8438         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
8439         (sh_builtin_saveregs): Likewise.
8440         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8441         shcompact_incoming_args): Use new shift values.  Support
8442         sequences of consecutive and non-consecutive pushes/pops.
8443         * config/sh/sh.md (return): Don't explicitly use PR_REG.
8444         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
8445         * config/sh/sh.h (TEXT_SECTION): Define.
8446         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
8447         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
8448         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
8449         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
8450         return values on FPU-enabled SHmedia.
8451         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
8452         FPU-enabled SHmedia.
8453         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
8454         value is returned in a non-FP reg and is not returned by
8455         reference.
8456         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
8457         jump_ind.
8458         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
8459         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
8460         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
8461         quad-aligned to be passed by callee-copy reference.
8462         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
8463         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
8464         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
8465         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
8466         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
8467         copying low-numbered FP regs to r7 and r8.
8468         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
8469         FP regs to general-purpose regs only if the copy was passed on the
8470         stack.
8471         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
8472         copying FP reg to r9.
8473         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
8474         copy FP regs to general-purpose regs only in outgoing calls.
8475         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
8476         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
8477         HOST_WIDE_INT.
8478         * config/sh/sh.h (struct sh_args): Document all fields.
8479         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
8480         passed partially on the stack should not consider making
8481         sibcalls.
8482         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
8483         stack_regs only for incoming calls.  When passing FP args,
8484         make sure there are FP regs available before modifying
8485         call_cookie.
8486         (SHCOMPACT_BYREF): Pass double args in general-purpose
8487         registers by reference.
8488         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
8489         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
8490         attempt to generate sibcalls if the caller got any arguments
8491         by reference.
8492         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
8493         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
8494         to 8-byte boundaries.
8495         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
8496         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
8497         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
8498         stored in the stack.
8499         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
8500         for the offsets to have the ISA bit set.
8501         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
8502         invocation.  Use beq instead of bgt to mark end of sequence of
8503         loads.
8504         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
8505         bgt to mark end of sequence of stores.
8506         * config/sh/sh.c (arith_operand): Don't check whether
8507         CONST_OK_FOR_J for now.
8508         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
8509         instead of long for conversion.
8510         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
8511         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
8512         before passing it to fprintf.
8513         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
8514         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
8515         Call set_fpscr before reading/writing SR.
8516         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
8517         Call set_fpscr.
8518         * config/sh/lib1funcs.asm: Add `.align 2' directives before
8519         SHmedia code.
8520         (FMOVD_WORKS): Define on SH5 with FPU.
8521         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
8522         setting.
8523         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
8524         _fpscr_values.
8525         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
8526         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
8527         address.
8528         (ia_main_table): Ditto.
8529         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
8530         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8531         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
8532         the definitions from sh.h.
8533         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
8534         TARGET_SH5.
8535         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
8536         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
8537         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
8538         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
8539         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
8540         Increment LABEL_NUSES.
8542         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
8543         TARGET_SH5.
8544         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
8545         defined.
8546         * config/sh/elf.h (SIZE_TYPE): Likewise.
8547         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
8548         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8549         shcompact_incoming_args): Load switch table addresses using
8550         datalabel.
8551         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
8552         (NO_BUILTIN_SIZE_TYPE): Define.
8553         (SIZE_TYPE): Don't define.
8554         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
8555         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
8556         definition of __SH5__=32 for -m5-compact-nofpu.
8557         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
8558         ADDR_DIFF_VEC.
8559         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
8560         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
8561         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
8562         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
8563         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
8564         (INSN_LENGTH_ALIGNMENT): Likewise.
8565         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
8566         * config/sh/sh.md (call, call_value, sibcall): Simplify
8567         copying of non-branch-target register.
8568         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
8569         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
8570         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
8571         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
8572         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
8573         floating-point values as structs.
8574         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
8575         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
8576         general-purpose register.
8577         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
8578         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
8579         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
8580         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
8581         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
8582         (ENCODE_SECTION_INFO): Enclose variables and constants in
8583         DATALABEL unspecs.
8584         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
8585         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
8586         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
8587         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
8588         only for LABEL_REFs.  For SYMBOL_REFs, prepend
8589         SH_DATALABEL_ENCODING to the symbol name.
8590         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
8591         convert_mode().
8592         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
8593         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
8594         UNSPEC_DATALABEL.
8595         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
8596         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
8597         (DATALABEL_REF_P): Don't require CONST.
8598         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
8599         REL label.
8600         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
8601         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
8602         right.
8603         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
8604         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
8605         Use shallow_copy_rtx and PUT_MODE to change the mode of
8606         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
8607         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
8608         on SHmedia using GENERAL_REGs.
8609         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
8610         bltu_media_i): Fix reversion of conditions.
8611         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
8612         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
8613         * config/sh/sh.c (output_far_jump): Save r13 in macl.
8614         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
8615         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
8616         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
8617         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
8618         (GCC_nested_trampoline): Likewise.
8619         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
8620         * config/sh/sh.c (gen_datalabel_ref): Define.
8621         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
8622         (INITIALIZE_TRAMPOLINE): Likewise.
8623         (TRAMPOLINE_ADJUST_ADDRESS): Define.
8624         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
8625         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
8626         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
8627         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
8628         (ic_invalidate): Adjust for SH5.
8629         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
8630         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
8631         _nested_trampoline.
8632         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
8633         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
8634         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
8635         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
8636         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
8637         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
8638         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
8639         * config/sh/sh.c (target_reg_operand): Match only target-branch
8640         registers and pseudos that aren't virtual registers.
8641         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
8642         Copy operands that don't match target_reg_operand to pseudos.
8643         (call_media, call_value_media, sibcall_media): Use
8644         target_reg_operand instead of target_operand.
8645         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
8646         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
8647         * config/sh/sh.c (target_reg_operand): Match hardware registers
8648         other than branch-target registers.
8649         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
8650         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
8651         (fpscr_values) [SH5 == 32]: Define.
8652         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
8653         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
8654         Handle function addresses coming in SUBREGs.
8655         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
8656         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8657         shcompact_return_trampoline): Use datalabel where appropriate.
8658         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
8659         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
8660         general-purpose register to copy one branch-target register to
8661         another.
8662         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
8663         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
8664         SYMBOL_REFs with VOIDmode.
8665         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
8666         bltu_media_i): New insns.
8667         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
8668         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
8669         (INIT_CUMULATIVE_ARGS): Likewise.
8670         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
8671         * machmode.def (V16SFmode): New mode.
8672         * c-common.c (type_for_mode): Support V2SF and V16SF.
8673         * tree.c (build_common_tree_nodes_2): Likewise.
8674         * tree.h (tree_index): Likewise.
8675         * calls.c (emit_call_1): Take args_so_far.  Adjust all
8676         callers.  Introduce CALL_POPS_ARGS.
8677         * tm.texi (CALL_POPS_ARGS): Document.
8678         * config/sh/crt1.asm: Implement in SHmedia mode.
8679         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
8680         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
8681         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
8682         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
8683         Implement divsi and udivsi in SHmedia mode.  Introduce
8684         SHcompact trampolines.
8685         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
8686         only in SHmedia64.
8687         (regno_reg_class): Rewrite.
8688         (fp_reg_names): Remove.
8689         (sh_register_names, sh_additional_register_names): New.
8690         (print_operand): Added `u'.  Support SUBREGs in addresses.
8691         Add parentheses around shifted CONSTs.
8692         (output_file_start): Output .mode and .abi directives.
8693         (shiftcosts, addsubcosts, multcosts): Adjust.
8694         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
8695         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
8696         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
8697         bytes, not registers.  Take into account the need for the
8698         SHcompact incoming args trampoline.  Adjust all callers.
8699         (sh_expand_prologue): Take stack_regs into account.  Call
8700         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
8701         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
8702         stack aligned as per SH5 ABI.
8703         (sh_builtin_saveregs): Support SH5 ABI.
8704         (sh_build_va_list, sh_va_start): Likewise.
8705         (initial_elimination_offset): Take alignment into account.
8706         Compute location of PR according to the SH5 stack frame.
8707         (arith_reg_operand): Reject branch-target registers.
8708         (shmedia_6bit_operand): New.
8709         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
8710         (target_reg_operand): Match DImode only.  Accept SUBREGs.
8711         (target_operand): New.
8712         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
8713         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
8714         SIBCALL_REGS for SHmedia.
8715         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
8716         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
8717         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
8718         (TARGET_SWITCHES): New SH5 flags.
8719         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
8720         VALID_REGISTER_P to disable unsupported registers.
8721         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
8722         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
8723         (FUNCTION_ARG_PADDING): Define.
8724         (FASTEST_ALIGNMENT): Adjust.
8725         (SH_REGISTER_NAMES_INITIALIZER): New.
8726         (sh_register_names): Declare.
8727         (DEBUG_REGISTER_NAMES): Define.
8728         (REGISTER_NAMES): Define based on sh_register_names.
8729         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
8730         (sh_additional_register_names): Declare.
8731         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
8732         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
8733         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
8734         (REGISTER_NATURAL_MODE): Define.
8735         (FIRST_PSEUDO_REGISTER): Adjust.
8736         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
8737         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
8738         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
8739         (VECTOR_MODE_SUPPORTED_P): Define.
8740         (REG_CLASS_CONTENTS): Adjust.
8741         (SMALL_REGISTER_CLASSES): Adjust.
8742         (REG_ALLOC_ORDER): Adjust.
8743         (INDEX_REG_CLASS): Adjust.
8744         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
8745         (CONST_OK_FOR_LETTER_P): Adjust.
8746         (PREFERRED_RELOAD_CLASS): Adjust.
8747         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
8748         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
8749         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
8750         (FIRST_FP_PARM_REG): Adjust.
8751         (CALL_POPS_ARGS): Define.
8752         (FUNCTION_ARG_REGNO_P): Adjust.
8753         (struct sh_args): New fields.
8754         (GET_SH_ARG_CLASS): Adjust.
8755         (INIT_CUMULATIVE_ARGS): Adjust.
8756         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
8757         (FUNCTION_ARG_ADVANCE): Adjust.
8758         (FUNCTION_ARG): Adjust.
8759         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
8760         (FUNCTION_ARG_CALLEE_COPIES): Define.
8761         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
8762         (STRICT_ARGUMENT_NAMING): Define.
8763         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
8764         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
8765         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
8766         (SETUP_INCOMING_VARARGS): Adjust.
8767         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
8768         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
8769         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
8770         (SUBREG_OK_FOR_INDEX_P): Adjust.
8771         (EXTRA_CONSTRAINT_S): Update.
8772         (EXTRA_CONSTRAINT_T): New.
8773         (EXTRA_CONSTRAINT): Adjust.
8774         (GO_IF_LEGITIMATE_INDEX): Adjust.
8775         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
8776         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
8777         (MOVE_MAX): Adjust.
8778         (MAX_MOVE_MAX): Define.
8779         (Pmode): Adjust.
8780         (CONST_COSTS): Adjust.
8781         (REGISTER_MOVE_COST): Adjust.
8782         (BRANCH_COST): Adjust.
8783         (TEXT_SECTION_ASM_OP): Adjust.
8784         (DBX_REGISTER_NUMBER): Adjust.
8785         (ASM_OUTPUT_DOUBLE_INT): New.
8786         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
8787         (PREDICATE_CODES): Adjust.
8788         (PROMOTE_MODE): Adjust.
8789         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
8790         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
8791         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
8792         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
8793         (DR0_REG, DR2_REG, DR4_REG): Renumber.
8794         (TR0_REG, TR1_REG, TR2_REG): New.
8795         (XD0_REG): Renumber.
8796         (UNSPEC_COMPACT_ARGS): New.
8797         (type): Added pt and ptabs.
8798         (length): Default to 4 on SHmedia.  Default pt length to 12
8799         and     20 on SHmedia32 and SHmedia64, respectively.
8800         (pt): New function unit.
8801         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
8802         Add whitespace between operands of SHmedia instructions.
8803         (movdicc): Fix.
8804         (adddi3_media, addsi3_media): Adjust constraints.
8805         (subsi3) [SHmedia]: Force operand 1 into a register.
8806         (udivsi3_i1_media, udivsi3_i4_media): New.
8807         (udivsi3): Support SHmedia.
8808         (divsi3_i1_media, divsi3_i4_media): New.
8809         (divsi3): Support SHmedia.
8810         (anddi3, iordi3, xordi3): Adjust constraints.
8811         (zero_extendhidi2, zero_extendqidi2): New.
8812         (extendsidi2, extendhidi2, extendqidi2): New.
8813         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
8814         (pop_e, pop_fpul, pop_4): Likewise.
8815         (movsi_media): Support FP and BT registers.
8816         (movsi_media_nofpu): New.  Adjust splits to DImode.
8817         (lduw, ldub): Renamed to zero_extend* above.
8818         (movqi_media): Fix typo.
8819         (movdi_media): Support FP and BT registers.
8820         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
8821         (movdi_const_32bit): New.
8822         (shori_media): Require immediate operand.  Use `u' for output.
8823         (movdf_media, movsf_media): Simplified.
8824         (movdf_media_nofpu, movsf_media_nofpu): New.
8825         (movdf, movsf): Adjust
8826         (movv2sf, movv2sf, movv16sf): New.
8827         (beq_media, beq_media_i): Adjust constraints.  Don't use
8828         scratch BT register.
8829         (bne_media, bne_media_i): Likewise.
8830         (bgt_media, bgt_media_i): Likewise.
8831         (bge_media, bge_media_i): Likewise.
8832         (bgtu_media, bgtu_media_i): Likewise.
8833         (bgeu_media, bgeu_media_i): Likewise.
8834         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
8835         bunordered): Emit jump insn.  Force operands to registers when
8836         needed.
8837         (jump_media, jump): Simplify.
8838         (call_compact, call_compact_rettramp): New.
8839         (call_value_compact, call_value_compact_rettramp): New.
8840         (call_media, call_value_media): Simplify.
8841         (sibcall_compact, sibcall_media): New.
8842         (call, call_value): Adjust for SHmedia and SHcompact.
8843         (sibcall, sibcall_value, untyped_call): Likewise.
8844         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
8845         (indirect_jump): Adjust for SHmedia.
8846         (casesi_jump_media): New.
8847         (nop): Re-enable for SHmedia.
8848         (call_site): Restrict to SH1.
8849         (casesi): Adjust for SHmedia.
8850         (casesi_shift_media, casesi_load_media): New.
8851         (return): Explicitly use PR register.  Call return trampoline
8852         on SHcompact.
8853         (return_i): Explicitly use PR register.
8854         (shcompact_return_tramp, shcompact_return_tramp_i): New.
8855         (return_media): Adjust.
8856         (shcompact_incoming_args): New.
8857         (epilogue): Adjust.
8858         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
8859         (movstrsi): Disable on SH5.
8860         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
8861         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
8862         (subsf3, subsf3_media): Likewise.
8863         (mulsf3, mulsf3_media, mac_media): Likewise.
8864         (divsf3, divsf3_media): Likewise.
8865         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
8866         (floatsisf2, fux_truncsfsi2): Likewise.
8867         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
8868         constraints.
8869         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
8870         (cmpunsf_media, cmpsf): Likewise.
8871         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
8872         (abssf2, abssf2_media): Likewise.
8873         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
8874         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
8875         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
8876         (floatsidf2, fix_truncdfsi2): Likewise.
8877         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
8878         constraints.
8879         (cmpeqdf_media, cmpgtdf_media): Likewise.
8880         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
8881         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
8882         (absdf2, absdf2_media): Likewise.
8883         (extendsfdf2, extendsfdf2_media): Likewise.
8884         (truncsfdf2, truncsfdf2_media): Likewise.
8885         * config/sh/sh64.h: New file.
8886         * config/sh/t-sh64: New file.
8887         * config/sh/shmedia.h: New file.
8888         * config/sh/ushmedia.h: New file.
8889         * config/sh/sshmedia.h: New file.
8890         * configure.in: Added sh64-*-elf.
8891         * configure: Rebuilt.
8892         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
8893         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
8894         (reg_class_from_letter): Use `b' for TARGET_REGS.
8895         (print_operand): Support `%M', `%m', `AND' and
8896         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
8897         (andcosts): Adjust for SHmedia.
8898         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
8899         Likewise.
8900         (target_reg_operand): New function.
8901         * config/sh/sh-protos.h (target_reg_operand): Declare.
8902         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
8903         FP registers on SH5.
8904         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
8905         on SH4.
8906         (TARGET_REGISTER_P): New macro.
8907         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
8908         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
8909         (EXTRA_CONSTRAINT_S): New macro.
8910         (EXTRA_CONSTRAINT): Adjust.
8911         (FLOAT_TYPE_SIZE): Define to 32.
8912         (Pmode): DImode on SHmedia.
8913         (CONST_COSTS): Adjust for SHmedia literals.
8914         (PREDICATE_CODES): Added target_reg_operand.
8915         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
8916         * config/sh/sh.md: Remove all attrs from SHmedia insns.
8917         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
8918         (cmpdi): Accept SHmedia.
8919         (movdicc_false, movdicc_true): New insns.
8920         (movdicc): New expand.
8921         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
8922         no_new_pseudos.
8923         (addsi3_media): Match `S' constraint.
8924         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
8925         (negdi2): Expand for SHmedia.
8926         (one_cmpldi2): New expand.
8927         (zero_extendsidi2): Change from expand to insn.
8928         (extendsidi2): Add constraints.
8929         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
8930         LD/ST address.  Fix SI immediate loading split.
8931         (movhi_media, movqi_media, lduw, ldub): New insns.
8932         (movhi, movqi): Accept SHmedia.
8933         (shori_media, movdi_media): Relax input constraints.  Split
8934         symbolic constants.
8935         (movdf_media, movsf_media): New insn.  New split to movdi.
8936         (movdf, movsf): Match on SHmedia.
8937         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
8938         bgeu_media): New insns and splits.  New insns with `_i' suffix.
8939         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
8940         (bunordered): New expand.
8941         (jump_compact): Renamed from `jump'.
8942         (jump_media): New insn.
8943         (jump): New expand.
8944         (call_media, call_value_media): New insns.
8945         (call, call_value): Adjust.
8946         (indirect_jump_compact): Renamed from `indirect_jump'.
8947         (indirect_jump_media): New insn.
8948         (indirect_jump): New expand.
8949         (untyped_call, return): Accept SHmedia.
8950         (return_media): New insn.
8951         (prologue, epilogue, blockage): Accept SHmedia.
8952         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
8953         (sunordered): New expand.
8954         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
8955         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
8956         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
8957         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
8958         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
8959         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
8960         abssf2_media): New insns.
8961         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
8962         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
8963         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
8964         floatdidf2, floatsidf2_media, fix_truncdfdi2,
8965         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
8966         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
8967         absdf2_media): New insns.
8968         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
8969         (extendsfdf2_media, truncdfsf2_media): New insns.
8970         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
8971         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
8972         * config/sh/sh.h (CONST_OK_FOR_J): Document.
8973         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
8974         * config/sh/sh.md (adddi3): New expand.
8975         (adddi3_media, adddi3z_media): New insns.
8976         (adddi3_compact): Renamed from adddi3.
8977         (addsi3_media): Use add.l r63 to add constant zero.
8978         (subdi3): New expand.
8979         (subdi3_media): New insn.
8980         (subdi3_compact): Renamed from subdi3.
8981         (mulsidi3): New expand.
8982         (mulsidi3_media): New insn.
8983         (mulsidi3_compact): Renamed from mulsidi3.
8984         (umulsidi3): New expand.
8985         (umulsidi3_media): New insn.
8986         (umulsidi3_compact): Renamed from umulsidi3.
8987         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
8988         (ashlsi3, ashrsi3, lshrsi3): Use them.
8989         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
8990         (ashldi3, ashrdi3, lshrdi3): Use them.
8991         (zero_extendsidi2): New expand.
8992         (extendsidi2): New insn.
8993         (movsi_media): New insn.  Split to movdi to load constants.
8994         (movsi): Enable for shmedia.
8995         (movdi_media): New insn.  Use shori_media to load wide constants.
8996         (short_media): New insn.
8997         (movdi): Enable for shmedia.
8998         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
8999         * config/sh/sh.h (CPP_SPEC): Added `m5'.
9000         (SUBTARGET_CPP_SPEC): Added `!m5'.
9001         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
9002         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
9003         to all other SH variants.
9004         (TARGET_DEFAULT): Set to SH1_BIT.
9005         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
9006         (BITS_PER_WORD): Raise to 64 on shmedia.
9007         (MAX_BITS_PER_WORD): Change to 64.
9008         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
9009         (INT_TYPE_SIZE): Keep as 32.
9010         (UNITS_PER_WORD): Raise to 8 on shmedia.
9011         (MIN_UNITS_PER_WORD): Keep as 4.
9012         (POINTER_SIZE): Raise to 64 on shmedia.
9013         (CONST_OK_FOR_J): New macro.
9014         (CONST_OK_FOR_LETTER_P): Use it.
9015         (processor_type): Add PROCESSOR_SH5.
9016         * config/sh/sh.md: Conditionalize all expands, insns and
9017         splits to TARGET_SH1.
9018         (cpu): Added sh5.
9019         (addsi3_compact): Renamed from...
9020         (addsi3): Now an expand.
9021         (addsi3_media, subsi3_media): New insns.
9022         (subsi3): Don't negate constants with SHmedia.
9024         * hooks.c: New file.
9025         * hooks.h: New file.
9026         * Makefile.in (HOOKS_H): New.
9027         (TARGET_DEF_H): Added $(HOOKS_H).
9028         (OBJS): Added hooks.o.
9029         (cfgcleanup.o, bb-reorder.o): Added target.h.
9030         (hooks.o): Added dependencies.
9031         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
9032         (TARGET_INITIALIZER): this.
9033         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
9034         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
9035         * bb-reorder.c: Include target.h.
9036         (reorder_basic_blocks): Skip if cannot modify jumps.
9037         * cfgcleanup.c: Include target.h.
9038         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
9040 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
9042         * config/mips/mips.md (casesi_internal, casesi_internal_di):
9043         Protect jump delay slot instructions with .set noreorder and
9044         .set nomacro.
9046 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
9048         * config/mips/mips.md (casesi_internal_di): Calculate
9049         the index into the target offset table correctly.
9051 2002-02-08  Richard Henderson  <rth@redhat.com>
9053         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
9054         * final.c (output_addr_const): Accept and discard SUBREG.
9055         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
9056         mark them unknown instead.
9057         (simplify_subtraction): Handle RTX_UNKNOWN.
9058         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
9060 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
9062         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
9064 2002-02-08  Richard Henderson  <rth@redhat.com>
9066         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
9068 2002-02-08  Andreas Jaeger  <aj@suse.de>
9070         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
9071         * config/i386/t-linux64: New file.
9073 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
9075         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
9076         * c-parse.in (compstmt): Clear last_expr_type.
9078 2002-02-07  Richard Henderson  <rth@redhat.com>
9080         * loop.c (strength_reduce): Sink final_value when not
9081         eliminating a biv.
9083 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
9085         * config/sparc/freebsd.h: Fix mismatched spec {.
9087 2002-02-07  Richard Henderson  <rth@redhat.com>
9089         * cfgrtl.c: Include recog.h and insn-config.h.
9090         (keep_with_call_p): Fix general_operand invocation.
9091         * Makefile.in (cfgrtl.o): Update dependencies.
9093 2002-02-07  Kazu Hirata  <kazu@hxi.com>
9095         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
9096         comment.  Accept HImode only if TARGET_H8300.
9098 2002-02-07  Eric Christopher  <echristo@redhat.com>
9100         * config/mips/crtn.asm: Cleanup #ifdefs.
9102 2002-02-07  Eric Christopher  <echristo@redhat.com>
9104         * config/mips/crti.asm: Add changes for mips16. mips16 uses
9105         register 7 as RA instead of $31.
9106         * config/mips/crtn.asm: Ditto.
9107         * config/mips/mips.c (mips_move_2words): Add case for
9108         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
9109         (compute_frame_size): Fix typo.
9110         (save_restore_insns): Ditto.  Make documentation about using
9111         register $7 as return register more precise.
9112         (mips_expand_epilogue): Fix comment. Add code to work around not
9113         being able to add to the stack pointer directly.
9114         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
9115         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
9116         epilogue.
9118 2002-02-07  Tom Rix  <trix@redhat.com>
9120         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
9121         immediates in ldu and stdu DS opcode field.
9122         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
9123         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
9124         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
9126 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
9128         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
9129         offset for stack bias.
9131 2002-02-07  H.J. Lu <hjl@gnu.org>
9133         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
9135 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
9137         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
9139 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
9141         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
9142         * i386.c (x86_order_regs_for_local_alloc): New global function.
9143         * i386.h (REG_ALLOC_ORDER): CLeanup.
9144         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
9146 2002-02-07  Richard Henderson  <rth@redhat.com>
9148         PR optimization/2463
9149         * alias.c (find_base_value): Recall base values for fixed hard regs.
9150         * loop.c (loop_regs_update): Don't use single_set on non-insns.
9152 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
9154         * config/mips/mips.md (define_delay) [mips16]: Adjust required
9155         length.
9157 2002-02-06  Richard Henderson  <rth@redhat.com>
9159         PR c/5609
9160         * stmt.c (resolve_operand_name_1): Take more care with mixed
9161         named and unnamed operands.
9163 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
9164             Jan Hubicka  <jh@suse.cz>
9166         * loop.c (remove_constant_addition): Avoid clobbering a shared
9167         CONST expression.
9169 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
9171         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
9172         * config/s390/t-linux64: New file.
9173         * config/s390/libgcc-glibc.ver: New file.
9175 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
9177         * config/s390/linux64.h: Delete file.
9178         * config/s390/s390x.h: New file.
9179         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
9180         as target header file.
9181         * config/s390/linux.h (TARGET_VERSION): Define depending on
9182         DEFAULT_TARGET_64BIT.
9183         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
9184         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
9185         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
9186         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
9187         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
9188         (EXTRA_SPEC): New define.
9189         * config/s390/s390.h (TARGET_VERSION): Define depending on
9190         DEFAULT_TARGET_64BIT.
9191         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
9193 2002-02-06  Jason Merrill  <jason@redhat.com>
9195         * c-decl.c (finish_function): Warn about a non-void function with
9196         no return statement and no abnormal exit.
9197         (current_function_returns_abnormally): New variable.
9198         (start_function): Clear it.
9199         (struct c_language_function): Add returns_abnormally.
9200         (push_c_function_context): Save it.
9201         (pop_c_function_context): Restore it.
9202         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
9203         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
9204         an explicit return type.
9205         * c-tree.h: Declare current_function_returns_abnormally.
9206         (C_FUNCTION_IMPLICIT_INT): New macro.
9207         * c-typeck.c (build_function_call): Set it.
9208         (c_expand_return): Set current_function_returns_value even if the
9209         value is erroneous.
9211 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9213         PR c/5420:
9214         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
9215         unsafe for reevaluation.
9217 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9219         PR c/5482:
9220         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
9221         EXPR_STMT, but COMPOUND_STMT, recurse into it.
9223 2002-02-06  Richard Henderson  <rth@redhat.com>
9225         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
9226         be a general_operand.  Dest for function value must be a pseudo.
9228 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
9230         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
9231         as SYMBOL_REFs from the constant pool.
9233 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
9235         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
9236         passed by invisible reference.
9238 2002-02-05  Richard Henderson  <rth@redhat.com>
9240         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
9242 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
9244         Implement using "base addresses" in insn operands as default.
9245         * config/mmix/mmix.c (mmix_conditional_register_usage): if
9246         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
9247         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
9248         used to read the rtx value.
9249         (mmix_target_asm_function_epilogue): Fix spacing.
9250         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
9251         (mmix_legitimate_address): Ditto.
9252         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
9253         should be loaded with a GETA insn.  Don't allocate needless extra
9254         char for nul termination and fix misleading comment.
9255         (mmix_print_operand_address): Handle constants if
9256         TARGET_BASE_ADDRESSES.
9257         (mmix_output_register_setting): Use base addressing if
9258         TARGET_BASE_ADDRESSES and the number of insns is 3.
9259         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
9260         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
9261         to use R as constraint, add LDA to match s.
9262         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
9263         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
9264         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
9265         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
9266         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
9267         order with other fixed registers.
9268         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
9269         other parameter/call-clobbered registers.
9270         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
9271         -mbase-addresses, -mno-base-addresses.
9272         (MMIX Options): Ditto.
9274 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9276         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
9278 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
9280         * config/rs6000/altivec.h: Change elem to _S_elem.
9282 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
9284         * config/netbsd.h (WCHAR_TYPE): Define.
9285         (WCHAR_TYPE_SIZE): Ditto.
9286         (WINT_TYPE): Ditto.
9287         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
9288         (WCHAR_UNSIGNED): Ditto.
9289         (WCHAR_TYPE_SIZE): Ditto.
9290         (WINT_TYPE): Ditto.
9291         * config/arm/netbsd.h: Likewise.
9292         * config/i386/netbsd-elf.h: Likewise.
9293         * config/i386/netbsd.h: Likewise.
9294         * config/m68k/netbsd-elf.h: Likewise.
9295         * config/m68k/netbsd.h: Likewise.
9296         * config/ns32k/netbsd.h: Likewise.
9297         * config/sparc/netbsd.h: Likewise.
9298         * config/vax/netbsd.: Likewise.
9300 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
9302         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
9303         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
9304         (TARGET_INITIALIZER): this.
9305         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
9306         (BITFIELD_NBYTES_LIMITED): Markup fix.
9307         * tree.h (default_ms_bitfield_layout_p): Declare.
9308         (record_layout_info): Added prev_field.
9309         * tree.c (default_ms_bitfield_layout_p): New fn.
9310         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
9311         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
9312         * stor-layout.c: Include target.h.
9313         (start_record_layout): Initialize prev_field.
9314         (place_field): Handle MS bit-field layout, and disregard
9315         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
9316         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
9317         * Makefile.in (stor-layout.o): Adjust dependencies.
9319 2002-02-05  Jason Merrill  <jason@redhat.com>
9321         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
9323 2002-02-05  Andreas Jaeger  <aj@suse.de>
9325         * crtstuff.c: Fix comments.
9327 2002-02-05  Richard Henderson  <rth@redhat.com>
9329         PR fortran/3393
9330         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
9331         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
9333         PR fortran/3392
9334         * config/mips/mips.c (function_arg): Handle TImode.
9335         (function_arg_advance): Likewise.
9337 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9339         * config/rs6000/altivec.h (vec_step_help): Rename to
9340         __vec_step_help.
9342 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9344         * config/rs6000/altivec.h: Fix typos.
9346 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
9348         * config/arm/netbsd.h: Correct a comment.
9350 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9352         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
9353         building void typed builtins.
9355         * config/rs6000/altivec.h (vec_ld*): Fix typos.
9356         (vec_step): Implement for C++.
9358 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9360         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
9362 2002-02-04  Richard Henderson  <rth@redhat.com>
9364         * combine.c (nonzero_bits): Re-introduce special case for
9365         sp/fp/ap wrt REGNO_POINTER_ALIGN.
9367 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9369         * doc/extend.texi: Warn about unsupported usage of altivec
9370         builtins.
9372         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
9373         (altivec_predicate_*): New.
9375         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
9376         Add C++ version of vec_*() functions.
9378         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
9379         (bdesc_2arg): Remove altivec predicates.
9380         (altivec_expand_builtin): Handle predicates.
9381         (altivec_init_builtins): Handle predicates.
9382         (altivec_expand_predicate_builtin): New.
9384 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9386         * pa.c (DO_FRAME_NOTES): Move forward.
9387         (store_reg): Revise handling of frame notes.
9388         (load_reg): Likewise.
9389         (set_reg_plus_d): Likewise.
9390         (hppa_expand_prologue): Likewise.
9391         (hppa_expand_epilogue): Likewise.
9393 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9395         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
9397 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
9399         PR c/4475, c++/3780:
9400         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
9401         * c-common.h (SWITCH_TYPE): Define.
9402         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
9403         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
9404         Rename spareness variable to sparseness.
9405         (expand_end_case_type): Renamed from expand_end_case, use orig_type
9406         if non-NULL instead of TREE_TYPE (orig_index).
9407         * tree.h (expand_end_case_type): Renamed from expand_end_case.
9408         (expand_end_case): Define using expand_end_case_type.
9409         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
9410         to expand_end_case_type.
9411         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
9413 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9415         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
9416         (BIGGEST_ALIGNMENT): Change to 128.
9418 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9420         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
9422 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9424         * pa.md (call_internal_reg_64bit): Remove unused variable.
9426 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
9428         * config/arm/arm.h (machine_function): Add uses_anonymous_args
9429         field.
9430         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
9431         * config/arm/arm.c (current_function_anonymous_args): Delete,
9432         replace uses with cfun->machine->uses_anonymous_args.
9433         (arm_reorg): Do not reset uses_anonymous_args.
9435         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
9436         any geenral register.
9438 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
9440         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
9441         the entry block.
9443 2002-02-04  Richard Henderson  <rth@redhat.com>
9445         * combine.c (force_to_mode): Remove STACK_BIAS code.
9446         (nonzero_bits): Likewise.  Replace sp/fp special case with
9447         REGNO_POINTER_ALIGN.
9449         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
9450         (HARD_FRAME_POINTER_REGNUM): New.
9451         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
9452         (FIXED_REGS, CALL_USED_REGS): Update.
9453         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
9454         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
9455         (HARD_REGNO_NREGS): Update for SFP.
9456         (STACK_POINTER_OFFSET): Include bias here ...
9457         (FIRST_PARM_OFFSET): ... not here.
9458         (STACK_BIAS): Remove.
9459         (INIT_EXPANDERS): New.
9460         (STARTING_FRAME_OFFSET): Do not include bias.
9461         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
9462         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
9463         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
9464         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
9465         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
9466         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
9467         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
9468         (MUST_SAVE_REGISTER): Likewise.
9469         (sparc_flat_function_prologue): Likewise.
9470         (sparc_flat_function_epilogue): Likewise.
9471         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
9472         (sparc_init_modes): SFP is GENERAL_REGS.
9473         (sparc_builtin_saveregs): SFP does not have bias applied.
9475 2002-02-04  Richard Henderson  <rth@redhat.com>
9477         * config/alpha/alpha.c (current_function_is_thunk): Don't check
9478         current_function_is_thunk.
9479         (alpha_sa_mask): Distinguish between current_function_is_thunk
9480         called from ASM_OUTPUT_MI_THUNK and not.
9481         (alpha_does_function_need_gp): Thunks always need gp.
9482         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9483         (alpha_output_mi_thunk_osf): New.
9484         * config/alpha/alpha-protos.h: Update.
9485         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
9487 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
9489         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
9490         function types, not when they're taken away.
9492 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
9494         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
9495         CODE_LABEL and jump table when replacing a table jump with a
9496         simple jump.
9498 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
9500         * config/s390/s390-protos.h (legitimize_la_operand,
9501         s390_secondary_input_reload_class, s390_plus_operand,
9502         s390_expand_plus_operand): Add prototypes.
9504         config/s390/s390.c (s390_secondary_input_reload_class,
9505         s390_plus_operand, s390_expand_plus_operand): New functions.
9507         (struct s390_address): New member 'pointer'.
9508         (s390_decompose_address): Compute it.
9509         (legitimate_la_operand_p): Use it.
9510         (legitimize_la_operand): New function.
9511         (movti, movdi, movdf splitters): Call it.
9513         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
9514         (PREDICATE_CODES): Add s390_plus_operand.
9516         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
9517         (la_ccclobber): Allow GENERAL_REGS as output operand.
9519         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
9520         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
9521         (*la_64, *la_31, reload_indi, reload_insi): ... these.
9523 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
9525         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
9526         register names for regular asm () construct.
9528 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
9530         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
9531         registers.
9533 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
9535         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
9536         pat for recog.
9538 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
9540         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
9541         constant pool to be identical by string address and index.
9543 2002-02-04  Anthony Green  <green@redhat.com>
9545         * output.h (SECTION_OVERRIDE): Define.
9546         * varasm.c (named_section): Obey SECTION_OVERRIDE.
9548 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
9550         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
9551         by existing arm*-*-netbsd* (a.out) target.
9552         (ns32k-*-netbsdelf*): Likewise.
9553         (sparc-*-netbsdelf*): Likewise.
9554         (vax-*-netbsdelf*): Likewise.
9556 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
9558         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
9559         headers and libobjc headers.
9561 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
9563         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
9564         (_mingw.h): Remove duplicate include.
9566 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
9568         * config.gcc: Set cpu_type to m68k for 68010, as well.
9569         (m68010-*-netbsdelf*): New...
9570         (m68k*-*-netbsdelf*): ...targets.
9571         * config/m68k/netbsd-elf.h: New file.
9573 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9575         * config/h8300/h8300.c (hand_list): Move inside function_arg.
9577 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9579         * config/h8300/h8300.c (h8_push_ops): Move inside
9580         h8300_init_once.
9581         (h8_pop_ops): Likewise.
9582         (h8_move_ops): Likewise.
9584 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9586         * config/h8300/h8300.c (os_task): Make it static.
9587         (monitor): Likewise.
9588         (pragma_saveall): Likewise.
9590 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
9592         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
9593         constant is a valid sign-extension for Pmode.
9595 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9597         * config/h8300/h8300.c: Fix formatting.
9599 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9601         * config/h8300/h8300.md: Fix formatting.
9603 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9605         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
9606         predicates of operands[1].  Split the patterns for each
9607         processor variant.
9609 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9611         * config/h8300/h8300.md (xor patterns): Tighten the predicates
9612         of operands[1] to register_operand.
9614 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
9616         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
9617         * cpphash.c (_cpp_init_hashtable): Similarly.
9618         * cppinit.c (cpp_create_reader): Default the signed_char flag.
9619         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
9620         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
9621         (cpp_handle_option): Handle the new options.
9622         * cpplex.c (cpp_interpret_charconst): Use new flag.
9623         * cpplib.h (struct cpp_options): New member signed_char.
9624         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
9625         (cpp_options): Handle -fsigned-char and -funsigned-char.
9626         (static_specs): Remove signed_char_spec.
9627         (do_spec1): Don't handle %c.
9628         * system.h: Poison SIGNED_CHAR_SPEC.
9629         * tradcif.y (yylex): Use flag_signed_char.
9630         * tradcpp.h (flag_signed_char): New.
9631         * tradcpp.c (flag_signed_char): New.
9632         (main): Handle new command-line options.
9633         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
9634 config:
9635         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
9636         * avr/avr.h: Remove old comments.
9637         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
9638         (CC1_SPEC): Pass -fsigned-char if -mic*.
9639         (SIGNED_CHAR_SPEC): Remove.
9640 doc:
9641         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
9643 2002-02-01  Eric Christopher  <echristo@redhat.com>
9645         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
9646         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
9647         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
9648         (ASM_OUTPUT_REG_POP): Ditto.
9650 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
9652         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
9653         patch.
9655 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
9657         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
9659 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
9661         PR c/5304:
9662         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
9663         unconditionally.
9665 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
9667         * cfganal.c: Include tm_p.h.
9668         (keep_with_call_p): Fix the test that determines if a register holds
9669         the return value of a call.
9671 2002-02-01  DJ Delorie  <dj@redhat.com>
9673         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
9674         we are given conflicting registers, switch to the other one we
9675         had allocated for us.
9676         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
9677         as TImode so we know when the "other" register is available.
9679 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
9681         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
9682         sparc/sparc_bi.h.
9684 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
9686         * cfganal.c (keep_with_call_p): New function.
9687         (flow_call_edges_add): Prevent splitting a block between a call and
9688         a single-set instruction that should be kept in the same block.
9690 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9692         * doc/install.texi (avr): Update outdated URL.
9694 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
9696         * config/stormy16/stormy16.md (pushqi): New.
9697         (popqi): New.
9698         (pushhi): New.
9699         (pophi): New.
9700         (movhi): Remove stack operands.
9701         (movqi): Likewise.
9702         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
9703         nonimmediate_nonstack_operand.
9704         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
9705         New.
9706         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
9707         New.
9709 2002-01-31  Jason Merrill  <jason@redhat.com>
9711         * Makefile.in (c-parse.c): Handle .output file.
9712         * objc/Make-lang.in (objc-parse.c): Likewise.
9714 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
9716         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
9717         the -me[lb] option is given.  Don't output the default flag
9718         twice.
9720 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
9722         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
9723         the primary source file; this has not been done yet.
9724         * c-decl.c (c_expand_body): Reset input_filename from
9725         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
9727 2002-01-31  Kazu Hirata  <kazu@hxi.com>
9729         * rtlanal.c (subreg_regno_offset): Do not use
9730         SUBREG_REGNO_OFFSET.
9731         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
9732         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
9734 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
9736         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
9737         version rather than GNATS version in --version output.
9739 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
9741         * ifcvt.c (noce_process_if_block): Make a copy of the destination
9742         when copying back from a temporary.
9744 2002-01-30  Richard Henderson  <rth@redhat.com>
9746         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
9747         and new_dest are the same.
9749 2002-01-30  Richard Henderson  <rth@redhat.com>
9751         PR opt/5076
9752         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
9753         * rtl.c (note_insn_name): Update.
9754         * emit-rtl.c (remove_unnecessary_notes): Kill it.
9755         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
9756         to perform loop rotation.
9757         (expand_exit_loop_top_cond): New.
9758         * tree.h (expand_exit_loop_top_cond): Declare it.
9759         * c-semantics.c (genrtl_while_stmt): Use it.
9760         (genrtl_for_stmt): Likewise.
9762 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
9764         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
9765         arguments to 64-bit boundaries on 64-bit ABIs.
9767 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
9769         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
9771 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
9773         * c-decl.c (grokdeclarator): Handle type being a typedef for an
9774         invalid type.
9776 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
9778         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
9779         * config/sparc/sparc_bi.h: Remove file.
9780         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
9782 2002-01-30  Richard Henderson  <rth@redhat.com>
9784         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
9786 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
9788         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
9790 2002-01-30  Jason Merrill  <jason@redhat.com>
9792         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
9793         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
9794         (reg_save): Use DW_CFA_offset_extended_sf instead.
9796         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
9798 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
9800         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
9801         in cselib_lookup.
9803 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
9805         * rs6000.md ("*call_value_local32"): Remove constraints.
9806         ("*call_value_local64"): Same.
9807         ("*call_value_indirect_nonlocal_aix32"): Same.
9808         ("*call_value_nonlocal_aix32"): Same.
9809         ("*call_value_indirect_nonlocal_aix64"): Same.
9810         ("*call_value_nonlocal_aix64"): Same.
9811         ("*call_value_nonlocal_sysv"): Same.
9813 2002-01-29  Richard Henderson  <rth@redhat.com>
9815         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
9817 2002-01-29  Richard Henderson  <rth@redhat.com>
9819         * expr.c (force_operand): Ignore flag_pic for detecting pic
9820         address loads.
9821         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
9822         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
9823         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
9824         instead of open-coded loop.
9825         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
9826         be fixed when in use.
9828 2002-01-29  Richard Henderson  <rth@redhat.com>
9830         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
9831         * sched-rgn.c (propagate_deps): Update them.
9832         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
9833         clobbers list when either gets too long.
9835 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
9837         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
9838         and INDEX_REGS the same as GENERAL_REGS.
9839         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
9841 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
9843         * tree.c (build_nonstandard_integer_type): Correct prototype.
9845 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
9847         * config/s390/s390.md (movstrsico, movstrdix_64,
9848         movstrsix_31): Remove, replace by ...
9849         (movstrdi_short, movstrsi_short, movstrdi_long,
9850         movstrsi_long): ... these.  New.
9851         (movstrdi, movstrsi): Adapt.
9853         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
9854         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
9855         Remove unnecessary CC clobber.
9856         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
9857         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
9859         (divmoddi4): Don't partially initialize TImode register.
9861 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
9863         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
9865 2002-01-29  Richard Henderson  <rth@redhat.com>
9867         * flow.c (print_rtl_and_abort): Remove.
9868         (print_rtl_and_abort_fcn): Remove.
9869         (verify_local_live_at_start): Use dump_bb instead.
9870         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
9871         (verify_wide_reg_1): Return 2 on mode test failure.
9873 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
9875         PR c/3325, c/3326, c/2511, c/3347
9876         * c-decl.c (enum_decl_context): Remove BITFIELD.
9877         (grokdeclarator): Take bitfield width as an input.
9878         Ensure bitfields are given the correct type.  Perform
9879         bitfield width validation with build_bitfield_integer_type
9880         rather than waiting for finish_struct.
9881         (grok_typename, grok_typename_in_parm_context, start_decl,
9882         push_parmdecl, grokfield, start_function): Update calls to
9883         grokdeclarator.
9884         (build_bitfield_integer_type): New function.
9885         (finish_struct): Move bitfield validation to grokdeclarator
9886         and build_bitfield_integer_type.
9887         * tree.c (build_nonstandard_integer_type): New function.
9888         * tree.h (build_nonstandard_integer_type): New prototype.
9889 objc:
9890         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
9892 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
9894         PR other/1502:
9895         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
9896         don't ignore unrecognized -W* options.
9897         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
9898         * cpplib.h (cpp_handle_option): Adjust prototype.
9899         * c-decl.c (c_decode_options): Pass 0 as last argument to
9900         cpp_handle_option.
9902         PR c/2896:
9903         * gcc.c (cpp_unique_options): Split from cpp_options.
9904         (cpp_options): Source cpp_unique_options.
9905         (default_compilers): Use cpp_unique_options instead of cpp_options
9906         when used together with cc1_options.
9907         (static_specs): Add cpp_unique_options.
9908         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
9909         when used together with cc1_options.
9911 2002-01-29  Kazu Hirata  <kazu@hxi.com>
9913         * config/h8300/h8300-protos.h: Update the prototype of
9914         output_a_shift.
9915         * config/h8300/h8300.c (output_a_shift): Remove an unused
9916         argument 'insn'.  Remove redundant code.
9917         * config/h8300/h8300.md: Adust to the new prototype of
9918         output_a_shift.
9920 2002-01-29  Kazu Hirata  <kazu@hxi.com>
9922         * config/h8300/h8300-protos.h: Update the prototypes of
9923         emit_a_rotate and expand_a_rotate.
9924         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
9925         first argument to 'enum rtx_code'.
9926         (expand_a_rotate): Likewise.
9928 2002-01-28  Kazu Hirata  <kazu@hxi.com>
9930         * config/h8300/h8300-protos.h: Update the prototype of
9931         output_simode_bld.
9932         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
9933         'log2'.
9934         * config/h8300/h8300.md: Adjust to the new prototype.
9936 2002-01-28  Kazu Hirata  <kazu@hxi.com>
9938         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
9939         redundant code.
9941 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9943         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
9944         is a fixed register before returning pic_offset_table_rtx.
9945         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
9946         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
9948 2002-01-28  Jason Merrill  <jason@redhat.com>
9950         * dwarf2.h: Sync with src version.
9952 2002-01-28  Paul Koning  <pkoning@equallogic.com>
9954         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
9955         BT_FN_VOID_PTR_VAR.
9956         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
9957         * doc/extend.texi (__builtin_prefetch): Update documentation:
9958         first argument is now const void ptr.
9960 2002-01-28  Kazu Hirata  <kazu@hxi.com>
9962         * config/h8300/h8300-protos.h: Remove an unused prototype.
9964 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
9966         * toplev.c (lang_independent_init): Round up identifier size.
9968 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
9970         * config.gcc: Revert previous change.
9972 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
9974         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
9976 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
9978         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
9979         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
9980         other non-elf netbsd config frags.
9981         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
9982         collect2 will does that.
9983         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
9984         shared-lib frobbing will work.
9986 2002-01-28  Kazu Hirata  <kazu@hxi.com>
9988         * config/h8300/h8300.h: Fix formatting.
9989         * config/h8300/h8300.md: Likewise.
9991 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
9993         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
9994         the old, removed AAA_standards fix.
9995         * fixinc/fixincl.x: Rebuilt.
9997 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
9999         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
10000         atexit call in crtbegin, hooked in after call to frame_dummy;
10001         register EH before registering __fini__start.
10003 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
10005         * config/rs6000/altivec.h: Remove spurious semicolons.
10007 2002-01-27  Kazu Hirata  <kazu@hxi.com>
10009         * config/h8300/h8300.md: Replace dead bit extraction patterns
10010         with ones that work.
10012 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10014         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
10015         if not STRICT_ALIGNMENT.
10016         * rtl.h (MEM_ALIGN): Likewise.
10018 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10020         * doc/invoke.texi (-fdump-translation-unit): Revert this
10021         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10023 2002-01-27  Kazu Hirata  <kazu@hxi.com>
10025         * config/h8300/h8300.md (define_constants): New.
10026         (anonymous patterns) Use defined constants appropriately.
10028 2002-01-27  Kazu Hirata  <kazu@hxi.com>
10030         * config/h8300/h8300.c (function_arg): Remove redundant code.
10032 2002-01-26  Richard Henderson  <rth@redhat.com>
10034         * sched-deps.c (reg_pending_uses_head): New.
10035         (reg_pending_barrier): Rename from reg_pending_sets_all.
10036         (find_insn_list): Don't mark inline.
10037         (find_insn_mem_list): Remove.
10038         (add_dependence_list, add_dependence_list_and_free): New.
10039         (flush_pending_lists): Replace only_write param with separate
10040         for_read and for_write parameters.  Update all callers.  Use
10041         add_dependence_list_and_free.
10042         (sched_analyze_1): Do not add reg dependencies here; just set
10043         the pending bits.  Use add_dependence_list.
10044         (sched_analyze_2): Likewise.
10045         (sched_analyze_insn): Replace schedule_barrier_found with
10046         reg_pending_barrier.  Add all dependencies for pending reg
10047         uses, sets, and clobbers.
10048         (sched_analyze): Don't add reg dependencies for calls, just
10049         set pending bits.  Use regs_invalidated_by_call.  Treat
10050         sched_before_next_call as a normal list, not a fake insn.
10051         (init_deps): No funny init for sched_before_next_call.
10052         (free_deps): Free pending mems lists.  Don't zero reg_last.
10053         (init_deps_global): Init reg_pending_uses.
10054         (finish_deps_global): Free it.
10055         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
10056         (find_insn_mem_list): Remove.
10057         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
10058         (propagate_deps): Use them.  Zero temp mem lists.
10060 2002-01-26  Richard Henderson  <rth@redhat.com>
10062         * Makefile.in (CRTSTUFF_CFLAGS): New.
10063         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
10064         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
10065         crtstuff.c instead of alpha assembly version.
10066         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
10067         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
10068         not FORCE_{INIT,FINI}_SECTION_ALIGN.
10069         (__do_global_dtors_aux): Mark used.
10070         (frame_dummy, __do_global_ctors_aux): Mark used.
10071         (fini_dummy, init_dummy): Remove.
10073         * config/alpha/crtbegin.asm: Remove file.
10074         * config/alpha/crtend.asm: Remove file.
10075         * config/alpha/t-crtbe: Remove file.
10076         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
10077         (LINK_EH_SPEC): New.
10079         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
10080         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
10081         calling constructors.
10082         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
10084         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
10085         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
10086         CRT_END_INIT_DUMMY hack.
10087         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
10088         FORCE_{INIT,FINI}_SECTION_ALIGN.
10090         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
10091         FORCE_{INIT,FINI}_SECTION_ALIGN.
10093         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
10094         invocation sequence.
10095         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
10097         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
10098         (FORCE_CODE_SECTION_ALIGN): New.
10100 2002-01-26  Richard Henderson  <rth@redhat.com>
10102         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
10104 2002-01-26  Richard Henderson  <rth@redhat.com>
10106         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
10107         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
10109 2002-01-26  Kazu Hirata  <kazu@hxi.com>
10111         * config/h8300/h8300.md: Remove bit extraction patterns that
10112         cannot be triggered.
10113         Restrict each bit extraction pattern to a variant on which the
10114         pattern is tested.
10116 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
10118         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
10120 2002-01-26  Kazu Hirata  <kazu@hxi.com>
10122         * config/h8300/h8300.md: Remove bit test patterns that cannot
10123         be triggered.
10124         Restrict each bit test pattern to a variant on which the
10125         pattern is tested.
10127 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10129         * builtins.c (expand_builtin_strncat): Remove redundant check for
10130         INTEGER_CST.
10132 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
10134         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
10135         default setting.
10136         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
10137         existing setting.
10139 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
10141         * dbxout.c (dbxout_init): Use assemble_name rather than just
10142         stripping off the first character.
10143         (dbxout_source_file): Likewise.
10145 2002-01-25  DJ Delorie  <dj@redhat.com>
10147         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
10148         using rtx_equal_p, not by comparing pointers.
10150 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
10152         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
10153         for PIC_OFFSET_TABLE_REGNUM.
10154         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
10156 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
10158         * config.gcc (x86_64-*-freebsd*): New target.
10159         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
10160         value.
10161         (i[34567]86-*-freebsd*): Don't include svr4.h.
10162         * config/i386/freebsd64.h: New file.
10164 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
10166         * config/alpha/x-vms (version): Make static.
10168         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
10169         in previous checkin.
10171         * Makefile.in (install-headers-cp): New target.
10172         * config.gcc (alpha-dec-*vms*): Install headers with
10173         install-headers-cp
10175 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
10177         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
10178         avoid it's copies.
10180 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10182         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
10183         of compare_tree_int.
10184         (expand_builtin_strncat): Likewise.
10185         * c-decl.c (finish_struct): Use tree_low_cst.
10186         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
10187         * tree.c (compare_tree_int): Likewise.
10189 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
10191         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
10192         adjustments even if they are implemented by more than two insns.
10194 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
10196         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
10197         * df.h (struct ref): Kill B.
10198         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
10200         * basic-block.h (PROP_EQUAL_NOTES): New flag.
10201         * flow.c (propagate_one_insn): Use it.
10202         (mark_used_regs): Handle NIL.
10204 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
10206         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
10207         to help folding.
10209 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
10211         * rs6000.md (prefetch): Make address V4SI mode so that the address
10212         is restricted to legitimate form for instruction.
10214 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
10216         * doc/install.texi (xtensa-*-elf): New target.
10217         (xtensa-*-linux*): New target.
10218         * doc/contrib.texi: Add myself.
10220 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
10222         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
10223         purpose register to hold an SImode (or smaller) value.
10225 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
10227         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
10228         registry only.
10229         * crtstuff.c: Likewise.
10231 2002-01-25  Kazu Hirata  <kazu@hxi.com>
10233         * config/h8300/h8300.md (negation patterns): Tighten
10234         predicates to register_operand.
10236 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
10238         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
10239         mode, not Pmode.
10241         * builtins.c (expand_builtin_prefetch): Same.
10243 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10245         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
10246         modes.
10248 2002-01-24  Kazu Hirata  <kazu@hxi.com>
10250         * config/h8300/h8300.c (print_operand): Remove support for
10251         operand character 'A'.
10252         * config/h8300/h8300.md (three anonymous patterns): Replace
10253         operand character 'A' with either 'T' or 'S'.
10255 2002-01-24  Kazu Hirata  <kazu@hxi.com>
10257         * config/h8300/h8300.c (print_operand): Remove support for
10258         operand character 'U'.
10260 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
10262         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
10264 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
10266         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
10267         values to be assigned to the stack pointer.
10269 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
10271         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
10272         to const_double needs to be done right for big-endian systems.
10274 2002-01-24  Jason Merrill  <jason@redhat.com>
10276         PR c++/2432
10277         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
10278         to can_throw_internal.
10280 2002-01-23  Richard Henderson  <rth@redhat.com>
10282         * fold-const.c (fold): Change UINT_MAX test to check vs precision
10283         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
10285 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10287         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
10288         (symGOT2reg): Use them, then set as GOT value as unchanging.
10289         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
10290         as a temporary, if possible.
10291         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
10292         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
10294 2002-01-23  Kazu Hirata  <kazu@hxi.com>
10296         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
10297         accept to accept 0x80 as operands[2].
10299 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10301         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
10303 2002-01-23  Richard Henderson  <rth@redhat.com>
10305         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
10307 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
10309         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
10310         (parmlist_or_identifiers_1): Verify that only a parmlist follows
10311         an attribute.
10313 2002-01-23  Richard Henderson  <rth@redhat.com>
10315         * expr.c (move_by_pieces_1): Extend size before negation.
10317         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
10318         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
10319         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
10320         * config/m68k/t-m68kelf: Likewise.
10322 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
10324         * config/xtensa/elf.h: New file.
10325         * config/xtensa/lib1funcs.asm: New file.
10326         * config/xtensa/lib2funcs.S: New file.
10327         * config/xtensa/linux.h: New file.
10328         * config/xtensa/t-xtensa: New file.
10329         * config/xtensa/xtensa-config.h: New file.
10330         * config/xtensa/xtensa-protos.h: New file.
10331         * config/xtensa/xtensa.c: New file.
10332         * config/xtensa/xtensa.h: New file.
10333         * config/xtensa/xtensa.md: New file.
10334         * config.gcc (xtensa-*-elf*): New target.
10335         (xtensa-*-linux*): New target.
10336         * cse.c (canon_hash): Compare rtx pointers instead of register
10337         numbers.  This is required for the Xtensa port.
10338         * integrate.c (copy_insn_list): Handle case where the static
10339         chain is in memory and the memory address has to be copied to
10340         a register.
10341         * doc/invoke.texi (Option Summary): Add Xtensa options.
10342         (Xtensa Options): New node.
10343         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
10345 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
10347         * diagnostic.c (internal_error): Do ICE suppression only
10348         when ENABLE_CHECKING is not defined.
10350         * c-typeck.c (require_complete_type): Return error_mark_node
10351         if type is error_mark_node.
10353 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
10355         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
10356         -Os and issue a warning.
10358 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
10360         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
10361         current (lack of) need for host configuration by hand.
10363         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
10364         references.  Documentation of some target macros moved from
10365         hostconfig.texi to tm.texi.
10367 2002-01-23  Will Cohen  <wcohen@redhat.com>
10369         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
10370         defined.
10372 2002-01-23  Kazu Hirata  <kazu@hxi.com>
10374         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
10375         operand[3].
10377 2002-01-23  Jason Merrill  <jason@redhat.com>
10379         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
10381         * function.c (assign_parms): Don't put args of inline functions
10382         into registers when not optimizing.
10384 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
10386         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
10387         (prologue_use): New pattern.
10388         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
10389         preference to gen_rtx_USE.
10390         (thumb_expand_prologue): Use gen_prologue_use in preference to
10391         gen_rtx_USE.
10392         (thumb_expand_epilogue): Use gen_prologue_use in preference to
10393         gen_rtx_USE.
10395 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
10397         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
10399 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
10401         PR c/3504
10402         * doc/extend.texi: Correct documentation of __alignof__.
10404 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
10406         * params.h: Rename arguments of DEFPARAM so that it will be
10407         recognized as a translation keyword.
10409 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
10411         * extend.texi: Document altivec functions.
10412         Fix N-bit adjectives in X86 builtin documentation.
10414 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
10416         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
10417         auto_inc_dec values.
10419 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
10421         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
10422         after backslash.
10423         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
10425 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
10427         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
10429 2002-01-22  Richard Henderson  <rth@redhat.com>
10431         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
10432         copy_insn not copy_rtx.
10434 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
10436         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
10437         "nonzero" as that might add "1" bits.  Ensure "constop" is
10438         properly sign extened.
10439         (force_to_mode): Tweak for sign extended constop.
10441 2002-01-22  Richard Henderson  <rth@redhat.com>
10443         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
10444         for_each_rtx instead of assuming we're already looking at the MEM.
10445         (split_small_symbolic_mem_operand): Likewise.
10446         * config/alpha/alpha.h (PREDICATE_CODES): Update.
10447         * config/alpha/alpha.md (small symbolic memory splitters): Update.
10449 2002-01-22  Richard Henderson  <rth@redhat.com>
10451         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
10452         sequence number for the literal.
10453         (divmoddi_internal_er): Likewise.
10455 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10457         PR java/4972
10458         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
10459         in LIBICONV variable.
10460         * configure: Regenerated.
10462 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
10464         * dependence.c (build_def_use): Remove array_idx.
10466         * dwarfout.c (last_filename): Remove.
10467         (output_compile_unit_die): Remove last_filename.
10469 2002-01-22  Roger Sayle  <roger@eyesopen.com>
10470             Richard Henderson  <rth@redhat.com>
10472         PR opt/3640
10473         * fold-const.c (fold): Optimize unsigned comparisons against
10474         UINT_MAX (and similar unsigned constants).
10476 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
10478         * Makefile.in (loop.o): Depend on OPTABS_H.
10479         * loop.c (emit_prefetch_instructions): Check the prefetch operand
10480         against the predicate.
10482         PR target/5379
10483         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
10484         for the address operand.
10486 2002-01-22  Richard Henderson  <rth@redhat.com>
10488         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
10490 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10492         PR other/5450
10493         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
10494         preprocessor flags.
10496 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
10498         * config.gcc (x86_64-*-netbsd*): New target.
10499         * config/i386/netbsd64.h: New file.
10501 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
10503         * regrename.c (kill_value): Fix typo.
10505 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
10507         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
10509         * config/rs6000/rs6000.h: Same.
10511         * function.c (instantiate_virtual_regs): Remove
10512         STARTING_FRAME_PHASE.
10513         (assign_stack_local_1): Same.
10514         Calculate frame phase.
10516 2002-01-22  Nick Clifton  <nickc@redhat.com>
10518         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
10519         variable declaration to outer scope in order to simplify
10520         future extensions.
10521         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
10522         arm_hard_regno_mode_ok.
10523         * config/arm/arm-protos.h: Add a prototype for
10524         arm_hard_regno_mode_ok.
10525         * config/arm/arm.c (soft_df_operand): Remove now redundant
10526         check for DImode values using IP_REGNUM.
10527         (nonimmediate_soft_df_operand): Remove now redundant check for
10528         DImode values using IP_REGNUM.
10529         (arm_hard_regno_mode_ok): New function. New check: make sure
10530         that DImode values are not stored in IP_REGNUM.
10532         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
10533         note with a USE.
10534         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
10536 2002-01-22  Jason Merrill  <jason@redhat.com>
10538         * c-semantics.c (genrtl_compound_stmt): Only check nesting
10539         consistency if this COMPOUND_STMT is scoped.
10541 2002-01-22  Kazu Hirata  <kazu@hxi.com>
10543         * predict.c: Fix formatting.
10544         * print-tree.c: Likewise.
10545         * protoize.c: Likewise.
10546         * real.h: Likewise.
10547         * rtl.h: Likewise.
10548         * sbitmap.h: Likewise.
10549         * scan.c: Likewise.
10550         * sched-deps.c: Likewise.
10551         * sched-vis.c: Likewise.
10552         * sdbout.c: Likewise.
10553         * sibcall.c: Likewise.
10554         * ssa.c: Likewise.
10555         * ssa-ccp.c: Likewise.
10556         * ssa-dce.c: Likewise.
10557         * stmt.c: Likewise.
10558         * stor-layout.c: Likewise.
10559         * system.h: Likewise.
10561 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10563         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
10564         if fits in bounds of base type.
10566         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
10567         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
10568         (add_bound_info, default): If can't find a context, make a
10569         SAVE_EXPR.
10570         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
10572 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
10574         * c-typeck.c (parser_build_binary_op): If result from
10575         build_binary_op is ERROR_MARK just return error_mark_node without
10576         further processing.
10578 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
10580         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
10581         Split a.out-specific bits into...
10582         * config/netbsd-aout.h: ...this.
10583         * config/netbsd-elf.h: New file.
10584         * config/alpha/netbsd-elf.h: Remove.
10585         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
10586         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
10587         (STARTFILE_SPEC): Remove redundant definition.
10588         (ENDFILE_SPEC): Likewise.
10589         (LINK_SPEC): Likewise.
10590         (CPP_SPEC): Likewise.
10591         (ASM_SPEC): Likewise.
10592         (LIB_SPEC): Likewise.
10593         (SWITCH_TAKES_ARG): Likewise.
10594         (TARGET_MEM_FUNCTIONS): Likewise.
10595         (CPP_PREDEFINES): Redefine.
10596         (ASM_FINAL_SPEC): Remove redefinition.
10597         (ASM_COMMENT_START): Redefine.
10598         (FUNCTION_PROFILER): Define.
10599         (TARGET_VERSION): Redefine.
10600         Comment and formatting cleanup.
10601         * config/i386/netbsd.h: Include <netbsd-aout.h>.
10602         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
10603         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
10604         big- or little-endian.
10605         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
10606         * config.gcc (*-*-netbsd*): Add definitions common to all
10607         NetBSD configs.
10608         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
10609         gnu_ld definitions.  Add netbsd-elf.h to and remove
10610         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
10611         tmake_file, and don't lose previous tmake_file contents.
10612         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
10613         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
10614         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
10615         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
10616         (mipsel-*-netbsd*): Rename this to...
10617         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
10618         mips/little.h to tm_file for mips*el-*.
10619         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
10620         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
10621         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
10623 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10625         * pa-protos.h (reg_before_reload_operand): New function prototype.
10626         * pa.c (reg_before_reload_operand): New function implementation.
10627         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
10628         contraints to "*m".
10630 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10632         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
10634 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10636         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
10637         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
10638         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
10639         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
10640         (ENDFILE_SPEC): Undefine.
10641         (STARTFILE_SPEC): Redefine for PA.
10643 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10645         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
10647 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
10649         * config.gcc: Add entries to supported PowerPC --with-cpu
10650         types.
10652 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
10654         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
10655         true for 64-bit mode only SSE registers in 32-bit mode.
10657 2002-01-21  Kazu Hirata  <kazu@hxi.com>
10659         * unwind-dw2.c: Fix formatting.
10660         * unwind-dw2-fde.c: Likewise.
10661         * unwind-dw2-fde.h: Likewise.
10662         * unwind-pe.h: Likewise.
10663         * varasm.c: Likewise.
10664         * varray.h: Likewise.
10666 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
10668         Remove workaround for register stack overwrite bug in mmix.
10669         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
10670         support for TARGET_REG_STACK_FILL_BUG.
10671         * config/mmix/mmix.h: Remove member has_call_without_parameters.
10672         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
10673         Delete.
10674         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
10675         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
10676         -mno-reg-stack-fill-bug-workaround.
10677         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
10678         machine member has_call_without_parameters.
10679         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
10680         -mreg-stack-fill-bug-workaround and
10681         -mno-reg-stack-fill-bug-workaround.
10682         (MMIX Options): Ditto.
10684 2002-01-21  Kazu Hirata  <kazu@hxi.com>
10686         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
10687         as appropriate.
10688         Remove redundant code.
10690 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
10692         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
10693         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10694         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10695         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
10696         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
10697         out target macro definitions and non-target-specific comments
10698         mostly taken from old versions of the manual.
10700 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10702         * config/h8300/h8300.h: Fix comment formatting.
10703         * config/ia64/aix.h: Likewise.
10704         * config/ia64/ia64-protos.h: Likewise.
10705         * config/ia64/ia64.c: Likewise.
10706         * config/ia64/ia64.h: Likewise.
10707         * config/ia64/ia64intrin.h: Likewise.
10708         * config/ia64/linux.h: Likewise.
10709         * config/ia64/unwind-aix.c: Likewise.
10710         * config/ia64/unwind-ia64.c: Likewise.
10712 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10714         * config/h8300/h8300.c: Revise comments about shift code.
10716 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10718         * config/h8300/h8300.c (function_arg): Update a comment.
10720 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10722         * config/h8300/h8300.md: Update the comments at the beginning
10723         of the file.
10725 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10727         * config/i370/i370.c: Fix comment formatting.
10728         * config/i370/i370.h: Likewise.
10729         * config/i370/i370.md: Likewise.
10730         * config/i370/linux.h: Likewise.
10732 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10734         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
10736         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
10737         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
10738         in incomplete case.
10740 2002-01-20  Graham Stott  <grahams@redhat.com>
10742         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
10744 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10746         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
10748 2002-01-19  Tom Rix  <trix@redhat.com>
10750         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
10752 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
10754         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
10756         * function.c (assign_stack_local_1): Adjust x_frame_offset with
10757         STARTING_FRAME_PHASE.
10758         (STARTING_FRAME_PHASE): New.
10759         (instantiate_virtual_regs): Check saneness of
10760         STARTING_FRAME_PHASE.
10762         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
10764 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
10766         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
10768 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10770         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
10771         be used for bootstrapping GCC 3.0.
10773 2002-01-18  Kazu Hirata  <kazu@hxi.com>
10775         * config/h8300/h8300.md: Fix an insn length.
10777 2002-01-18  Kazu Hirata  <kazu@hxi.com>
10779         * bitmap.h: Fix comment formatting.
10780         * combine.c: Likewise.
10781         * cppfiles.c: Likewise.
10782         * c-pragma.h: Likewise.
10783         * c-typeck.c: Likewise.
10784         * df.c: Likewise.
10785         * dwarf2out.c: Likewise.
10786         * function.c: Likewise.
10787         * gcc.c: Likewise.
10788         * genattrtab.c: Likewise.
10789         * gthr-win32.h: Likewise.
10790         * haifa-sched.c: Likewise.
10791         * predict.c: Likewise.
10792         * rtlanal.c: Likewise.
10793         * rtl.h: Likewise.
10794         * unwind-dw2-fde.h: Likewise.
10795         * unwind-pe.h: Likewise.
10796         * vmsdbgout.c: Likewise.
10798 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10800         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
10801         if type_required and passed decl.
10803 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
10805         * config.gcc (cpu_type): Include altivec.h in powerpc
10806         extra_headers.
10807         Same for darwin.
10809         * config/rs6000/altivec.h: New.
10811 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
10813         * doc/install.texi (*-ibm-aix*): Update assembler and exception
10814         handling information.
10815         * doc/trouble.texi (Interoperation): Add libstdc++ information
10816         for AIX.
10817         (Misunderstandings): Add template instantiation and static template
10818         member information for AIX.
10820 2002-01-17  Jason Merrill  <jason@redhat.com>
10822         * dbxout.c (dbxout_type): Support const and volatile.
10824         * except.c (add_partial_entry): Remove backwards compatibility code.
10825         (end_protect_partials): Likewise.
10827 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
10829         * config/ia64/ia64.md (prologue_use): New.
10830         * config/ia64/ia64.c (ia64_expand_prologue): Use
10831         gen_prologue_use instead of gen_rtx_USE.
10832         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
10833         as CODE_FOR_pred_rel_mutex.
10834         (ia64_sched_reorder2): Likewise.
10836 2002-01-16  Eric Christopher  <echristo@redhat.com>
10838         * config/mips/r3900.h: Reformat.
10839         (SUBTARGET_CPP_SIZE_SPEC): Remove.
10840         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
10841         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
10842         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
10843         * config/mips/t-elf: Remove mips3 multilib.
10845 2002-01-16  H.J. Lu <hjl@gnu.org>
10847         * config/mips/linux.h: Include "mips/abi64.h".
10849 2002-01-16  H.J. Lu <hjl@gnu.org>
10851         * config/mips/t-linux: New.
10853         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
10855         * config/mips/linux.h: Don't include "gofast.h".
10856         (INIT_SUBTARGET_OPTABS): Removed.
10858 2002-01-16  Kazu Hirata  <kazu@hxi.com>
10860         * config/h8300/h8300-protos.h: Replace emit_a_shift with
10861         output_a_shift.
10862         * config/h8300/h8300.c: Likewise.
10863         * config/h8300/h8300.md: Likewise.
10865 2002-01-16  Kazu Hirata  <kazu@hxi.com>
10867         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
10868         spaces after an opcode name.
10869         (pushqi1_h8300hs): Likewise.
10870         (pushhi1_h8300hs): Likewise.
10872 2002-01-16  Kazu Hirata  <kazu@hxi.com>
10874         * doc/extend.texi: Replace "option" with "attribute"
10875         appropriately.
10877 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
10879         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
10880         (and:DI () (const_int -8)).
10881         (split_small_symbolic_mem_operand): Split
10882         (mem (and:DI () (const_int -8)).
10884 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
10886         PR target/5309:
10887         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
10888         same way as TYPE_IMUL.
10889         (ultrasparc_sched_reorder): Likewise.
10890         * config/sparc/sparc.md (type): Add comment to update
10891         ultrasparc_sched_reorder when making changes.
10893 2002-01-16  Kazu Hirata  <kazu@hxi.com>
10895         * doc/invoke.texi: Change the dump file name of block
10896         reordering pass from 28.bbro to 29.bbro.
10897         Mention -dk option.
10899 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
10901         * i386.md (minsf splitter): Fix pasto.
10903 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
10905         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
10906         to frame pointer initialisation instruction.
10907         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
10908         initialisation instruction.
10909         (soft_df_operand): Do not accept the IP register.
10910         (nonimmediate_soft_df_operand): Do not accept the IP register.
10912 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
10914         PR target/5357:
10915         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
10916         MASK_V8 being both set.
10918 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
10920         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
10921         insn for GOT register; add REG_MAYBE_DEAD notes instead.
10922         config/s390/s390.md (call, call_value): Add GOT register to
10923         CALL_INSN_FUNCTION_USAGE where needed.
10924         (call_exp, call_value_exp): New.
10926 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
10928         * config/arm/arm.c: General formatting tidy up.
10930 2002-01-16  Graham Stott  <grahams@redhat.com>
10932         * calls.c (try_to_integrate): Use "(size_t)" intermediate
10933         cast and when casting an integer literal to "rtx" pointer.
10934         (expand_call): Likewise.
10935         * flow.c (try_pre_increment): Likewise.
10936         (find_use_as_address): Likewise.
10937         * integrate.c (expand_iline_function): Likewise.
10938         * regmove.c (try_auto_increment): Likewise.
10940 2002-01-16  Graham Stott  <grahams@redhat.com>
10942         * sched-rgn.c (passed): Use sbitmap_free.
10943         (header): Likewise.
10944         (inner): Likewise.
10945         (in_queue): Likewise.
10946         (in_stack): Likewise.
10948 2002-01-15  Eric Christopher  <echristo@redhat.com>
10950         * flow.c (propagate_one_insn): Change to use fatal_insn.
10952 2002-01-15  Kazu Hirata  <kazu@hxi.com>
10954         * expmed.c (extract_fixed_bit_field): Remove unused code.
10955         * system.h: Poison SLOW_ZERO_EXTEND.
10956         * doc/tm.texi: Remove.
10957         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
10958         * config/arm/arm.h: Likewise.
10959         * config/avr/avr.h: Likewise.
10960         * config/clipper/clipper.h: Likewise.
10961         * config/convex/convex.h: Likewise.
10962         * config/d30v/d30v.h: Likewise.
10963         * config/dsp16xx/dsp16xx.h: Likewise.
10964         * config/elxsi/elxsi.h: Likewise.
10965         * config/fr30/fr30.h: Likewise.
10966         * config/h8300/h8300.h: Likewise.
10967         * config/i370/i370.h: Likewise.
10968         * config/i386/i386.h: Likewise.
10969         * config/m68k/m68k.h: Likewise.
10970         * config/mips/mips.h: Likewise.
10971         * config/ns32k/ns32k.h: Likewise.
10972         * config/pdp11/pdp11.h: Likewise.
10973         * config/pj/pj.h: Likewise.
10974         * config/s390/s390.h: Likewise.
10975         * config/sh/sh.h: Likewise.
10976         * config/stormy16/stormy16.h: Likewise.
10977         * config/v850/v850.h: Likewise.
10978         * config/vax/vax.h: Likewise.
10979         * config/we32k/we32k.h: Likewise.
10981 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
10983         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
10984         (altivec_lvsl): Change constraint to b.
10985         (altivec_lvsr): Same.
10986         (altivec_lvebx): Same.
10987         (altivec_lvehx): Same.
10988         (altivec_lvewx): Same.
10989         (altivec_lvxl): Same.
10990         (altivec_lvx): Same.
10991         (altivec_stvx): Add parallel.
10992         (altivec_stvxl): Same.
10993         (altivec_stvehx): Same.
10994         (altivec_stvebx): Same.
10995         (altivec_stvebx): Same.
10997 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
10999         * config.gcc: Change altivec.h to altivec-defs.h.
11001         * config/rs6000/altivec.h: Delete.
11003         * config/rs6000/altivec-defs.h: Add.
11005 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11007         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
11008         and UMOD modes.
11010         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
11011         less than or equal to eight bytes.
11013         * vax.md (andsi3): Remove constraints and change SET destination
11014         operand type to nonimmediate_operand.
11015         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
11016         when it is a CONST_INT.
11018 2002-01-15  Jason Merrill  <jason@redhat.com>
11020         * c-common.def (FILE_STMT): New code.
11021         * c-common.c (statement_code_p): It's a statement.
11022         * c-common.h (stmt_tree_s): Add x_last_filename.
11023         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
11024         (last_expr_filename): New macro.
11025         * c-semantics.c (begin_stmt_tree): Initialize it.
11026         (add_stmt): If the filename changed, also insert a
11027         FILE_STMT.
11028         (expand_stmt): Handle seeing one.
11030 2002-01-15  Eric Christopher  <echristo@redhat.com>
11032         * flow.c (propagate_one_insn): Add error message and print out
11033         insn for debugging.
11035 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
11037         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
11038         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
11039         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
11040         TRAMPOLINE_ALIGNMENT.
11041         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
11042         to be in bits.
11043         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
11044         PCC_BITFIELD_TYPE_MATTERS.
11045         * config/interix.h (STDC_VALUE): Remove.  Use
11046         STDC_0_IN_SYSTEM_HEADERS.
11047         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
11048         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
11049         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
11051 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11053         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
11054         not work on this platform currently.
11056 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
11058         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
11059         readonly_warning in _().
11061 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
11063         * gcc.c (delete_if_ordinary): Backout previous change.
11065 2002-01-15  Kazu Hirata  <kazu@hxi.com>
11067         * config/h8300/h8300.c (print_operand): Remove support for
11068         unused operand characters.
11070         * read-rtl.c: Fix formatting.
11071         * real.c: Likewise.
11072         * recog.c: Likewise.
11073         * regclass.c: Likewise.
11074         * regmove.c: Likewise.
11075         * reg-stack.c: Likewise.
11076         * reload1.c: Likewise.
11077         * rtlanal.c: Likewise.
11079 2002-01-15  Kazu Hirata  <kazu@hxi.com>
11081         * config/i386/i386.c: Fix formatting.
11083 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
11085         * c-typeck.c (process_init_element): Don't save_expr
11086         COMPOUND_LITERAL_EXPR if just its initializer will be used.
11088 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
11090         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
11091         emit optional traceback table if optimize_size or TARGET_ELF.
11092         * config/rs6000/rs6000.md (prefetch): New.
11094 2002-01-15  Andreas Jaeger  <aj@suse.de>
11096         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
11098 2002-01-15  Kazu Hirata  <kazu@hxi.com>
11100         * mips-tfile.c: Fix formatting.
11102 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
11104         * unroll.c (final_reg_note_copy): Fix previous commit.
11106 2002-01-14  Kazu Hirata  <kazu@hxi.com>
11108         * config/h8300/h8300-protos.h: Remove the prototype for
11109         eq_operator.
11110         * config/h8300/h8300.c (eq_operator): Remove.
11112 2002-01-14  Richard Henderson  <rth@redhat.com>
11114         * config/i386/i386.md (prefetch): Tidy.
11115         (prefetch_3dnow): Fix locality operand.
11117 2002-01-14  Richard Henderson  <rth@redhat.com>
11119         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
11120         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
11122 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
11124         * reload1.c (reload_combine): Pass reg_sum replacement through
11125         copy_rtx in loop performing multiple changes.
11127 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
11129         * except.c (remove_unreachable_regions): New.
11130         (free_eh_status): Clear exception_handler_labels.
11131         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
11132         (find_exception_handler_labels): Don't add the same label more than
11133         once.
11134         (remove_exception_handler_label): Don't die if
11135         find_exception_handler_labels hasn't been called for the current
11136         function yet.
11138 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
11140         * toplev.c (rest_of_compilation): Rebuild jump labels after
11141         gcse.
11143 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
11145         * doc/extend.texi: Move documentation of X86 built-in functions
11146         here.
11147         * doc/invoke.texi: From here.
11148         * doc/sourcebuild.texi: Document location of documentation for
11149         machine built-in functions.
11151 2002-01-13  Christopher Faylor  <cgf@redhat.com>
11153         * cppfiles.c (TEST_THRESHOLD): New macro.
11154         (SHOULD_MMAP): Ditto.
11155         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
11156         be used.
11158 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
11160         * unroll.c (final_reg_note_copy): Properly handle
11161         REG_LABEL
11162         (unroll_loops): Fix LOOP_CONDITION heuristics.
11164 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
11166         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
11167         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
11169 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
11171         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
11172         threaded loop.
11174 2002-01-14  Tom Rix  <trix@redhat.com>
11176         * config/rs6000/rs6000.md: Fix typo with sradi.
11178 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
11180         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
11181         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
11182         (clrstrdi, clrstrsi): Adapt callers.
11184         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
11186         (movti splitter): Never use register 0 as base register.
11188 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
11190         * combine.c (simplify_shift_const): Always generate new rtx
11191         for shift expression instead of reusing given expression.
11193 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11195         * config/alpha/alpha.c (alpha_expand_mov): Don't call
11196         alpha_legitimize_address unless mode is Pmode.
11198 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
11200         * doc/md.texi (Modifiers): Document the '*' constraint for the
11201         user.
11203         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
11204         * doc/extend.texi (Function Attributes): 'interrupt' is valid
11205         for xstormy16 too.
11207 2002-01-13  Richard Henderson  <rth@redhat.com>
11209         * reload.c (find_reloads): Use a hard reg destination as reload reg
11210         for an input reload of the source.
11212 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11214         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
11215         more generic.
11217 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
11219         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
11220         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
11222         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
11224 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11226         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
11228 2002-01-12  Tom Rix  <trix@redhat.com>
11230         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
11231         TARGET_POWERPC64.
11233 2002-01-12  Richard Henderson  <rth@redhat.com>
11235         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
11237         * doc/invoke.texi: Update Alpha options.
11239         * doc/invoke.texi: Update i386 built-in function lists.
11241 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
11243         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
11244         referencing outside.
11246 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11248         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
11249         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
11250         offsets, and change line folding.
11251         * optabs.c (expand_binop): Remove warnings.
11252         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
11254 2002-01-12  Graham Stott <grahams@redhat.com>
11256         * attribs.c (handle_deprecated_attribute): constify WHAT.
11257         * diagnostic.c (warn_deprecated_use): Add braces, fixes
11258         dangling else warning and constify WHAT.
11259         * except.h (struct function, struct inline_remap): Move
11260         struct tag forward defs before all prototypes.
11261         (duplicate_eh_regions): Whitespace.
11263 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
11265         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11266         MODE_BASE_REG_CLASS.
11267         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
11269 2002-01-12  Richard Henderson  <rth@redhat.com>
11271         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
11272         (ix86_expand_vector_move): New.
11273         (bdesc_2arg): Remove andps, andnps, orps, xorps.
11274         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
11275         Remove old prefetch builtins.  Special case the logicals removed above.
11276         (ix86_expand_builtin): Likewise.
11277         (safe_vector_operand): Use V4SFmode, not TImode.
11278         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
11279         (ix86_expand_timode_binop_builtin): New.
11280         * config/i386/i386-protos.h: Update.
11281         * config/i386/i386.h (enum ix86_builtins): Update.
11282         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
11283         Use ix86_expand_vector_move in vector move expanders.
11284         (movti_internal, movti_rex64): Add xorps alternative.
11285         (sse_clrv4sf): Rename and adjust from sse_clrti.
11286         (prefetch): Don't work so hard.
11287         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
11288         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
11289         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
11291 2002-01-11  Richard Henderson  <rth@redhat.com>
11293         * config/i386/mmintrin.h: New file.
11294         * config/i386/xmmintrin.h: New file.
11295         * config.gcc (i?86-*-*): Add extra_headers.
11296         * simplify-rtx.c (simplify_unary_operation): Handle saturating
11297         truncation codes.
11298         (simplify_binary_operation): Handle saturating arithmetic codes.
11299         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
11300         not the lowpart subreg.
11301         (ix86_expand_builtin): Return a TImode dummy register instead of 0
11302         on error.
11303         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
11305 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11307         * conflict.c (conflict_graph_compute): Free regsets when finished.
11308         * ssa.c (compute_coalesced_reg_partition): Likewise.
11310 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11312         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
11313         every where we allocate a register.
11315 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11317         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
11318         * lcm.c (compute_earliest, compute_farthest): Likewise.
11320 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
11322         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
11324 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
11326         * doc/rtl.texi (Insns): Fix 2 typos.
11328 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
11330         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
11331         options.  Use @table @gcctabopt for MMIX options.  Add index
11332         entries for MMIX options.  Start new paragraph with first
11333         heading of the machine-dependent options.
11335 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11337         PR other/5299
11338         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
11339         * combine.c (force_to_mode): Same.
11340         * reload1.c (clear_reload_reg_in_use): Same.
11342 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
11344         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
11345         and 'subtargets'.
11347 2002-01-11  Andreas Jaeger  <aj@suse.de>,
11348             Brad Lucier <lucier@math.purdue.edu>
11350         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
11351         mcpu.
11353 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
11355         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
11356         Protect with IN_LIBGCC.
11357         (LINK_EH_SPEC): Add required trailing space.
11359 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
11361         * c-tree.h: Move function declarations so that they are listed
11362         under the filename which contains them.
11363         (check_identifier, finish_decl_top_level,
11364         lookup_name_current_level_global, shadow_record_fields): Remove.
11366 2002-01-11  Andreas Jaeger  <aj@suse.de>
11368         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
11369         march.
11371 2002-01-10  Richard Henderson  <rth@redhat.com>
11373         * config/alpha/alpha.c (print_operand): Add 'J'.
11374         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
11375         new operand with the sequence number for the lituse.  When splitting
11376         the insns, use gen_movdi_er_high_g and generate a sequence number.
11377         (gen_movdi_er_high_g): Print the sequence number if non-zero.
11379 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
11381         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
11382         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
11383         stvxl.
11384         (altivec_expand_builtin): Same.
11385         (altivec_expand_stv_builtin): New.
11387         * config/rs6000/rs6000.h (rs6000_builtins): Same.
11389         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
11390         ("altivec_lvehx"): New.
11391         ("altivec_lvewx"): New.
11392         ("altivec_lvxl"): New.
11393         ("altivec_lvx"): New.
11394         ("altivec_stvx"): New.
11395         ("altivec_stvebx"): New.
11396         ("altivec_stvehx"): New.
11397         ("altivec_stvewx"): New.
11398         ("altivec_stvxl"): New.
11400 2002-01-10  Richard Henderson  <rth@redhat.com>
11402         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
11403         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
11404         care not to delete instructions twice.
11406 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
11408         * toplev.c: Don't declare environ (it's not used anywhere).
11409         * configure.in: Don't check for declaration of environ.
11410         * config/i386/xm-mingw32.h: Don't #define environ.
11411         * config.in, configure: Regenerate.
11413 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
11415         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
11416         * configure: Regenerate.
11418         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
11419         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
11420         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
11421         alpha/xm-vms.h.
11422         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
11423         LIMITS_H_TEST here, not in m68k/x-next.
11424         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
11425         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
11427         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
11428         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
11429         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
11431         * config/i386/x-djgpp: Renamed i386/t-djgpp.
11432         * config/m88k/x-dolph: Renamed m88k/t-dolph.
11433         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
11434         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
11435         replacement of quadlib.asm with quadlib.c.
11437         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
11438         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
11439         config/rs6000/xm-beos.h: Delete file.
11441         * config.gcc: Update to match above changes.
11443 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11445         * config/h8300/h8300.h: Fix comment typos.
11446         * config/h8300/h8300.md: Likewise.
11447         * config/h8300/lib1funcs.asm: Likewise.
11449 2002-01-10  Dale Johannesen  <dalej@apple.com>
11451         PR optimization/5269
11452         * unroll.c (precondition_loop_p): Make *increment be the correct
11453         sign when n_iterations known, to avoid confusing caller.
11455 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11457         * doc/extend.texi (deprecated): Fix a typo.
11459 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
11461         * basic-block.h (update_br_prob_note): Declare.
11462         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
11463         (try_forward_edges): Care negative frequencies and update note.
11464         (outgoing_edges_match): Tweek conditional merging heuristics.
11465         (try_crossjump_to_edge): use update_br_prob_note.
11466         * cfglayout.c (fixup_reorder_chain): Likewise.
11467         * cfrtl.c (update_br_prob_note): New.
11468         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
11470         * i386.c (ix86_decompose_address): Return -1 if address contains
11471         shift.
11472         (legitimate_address_p): Require ix86_decompose_address to return 1.
11474         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
11475         (cprop_insn): Likewise.
11477 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11479         * toplev.c: Fix formatting.
11480         * tree.c: Likewise.
11481         * tree-dump.c: Likewise.
11482         * unroll.c: Likewise.
11483         * unwind-dw2.c: Likewise.
11484         * unwind-dw2-fde.c: Likewise.
11485         * unwind-dw2-fde-glibc.c: Likewise.
11486         * unwind-sjlj.c: Likewise.
11488 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
11490         * doc/invoke.texi: Document PDP-11 options.
11492 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11494         * config/h8300/h8300.h: Fix formatting.
11496 2002-01-10  Ira Ruben   <ira@apple.com>
11498         Add __attribute__ ((deprecated)).
11499         * extend.texi: Document __attribute__ ((deprecated)).
11500         * invoke.texi: Document -Wno-deprecated-declarations.
11501         * testsuite/g++.dg/other/deprecated.C: New C++ test.
11502         * testsuite/gcc.dg/deprecated.c: New C test.
11503         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
11504         (c_common_attribute_table): Add "deprecated" entry.
11505         (handle_deprecated_attribute): New function.
11506         * c-decl.c (deprecated_states): New enum.
11507         deprecated_state: State of "deprecated" handling.
11508         (start_decl): Set deprecated_state based on attributes.
11509         (grokdeclarator): Test for deprecated uses, propagate attribute.
11510         * c-typeck.c (build_component_ref): Test for deprecated fields.
11511         (build_external_ref): Test for deprecated primaries.
11512         * diagnostic.c (warn_deprecated_use) New function to issue
11513         warnings about __attribute__ ((depricated)) references.
11514         * flags.h (warn_deprecated_decl): Extern declared for
11515         -W[no-]deprecated-declarations option.
11516         * print-tree.c (print_node): Show deprecated flag status.
11517         * toplev.c (warn_deprecated_decl): Defined.
11518         (W_options): Added "deprecated-declaration".
11519         * toplev.h (warn_deprecated_use): Extern declared.
11520         * tree.h (struct tree_common): Define deprecated_flag.
11521         (TREE_DEPRECATED): New macro to access flag.
11522         * cp/call.c (build_call): Test for deprecated calls.
11523         * cp/class.c (add_implicitly_declared_members): Set global
11524         flag to tell grokdeclarator to not issue deprecated warnings.
11525         * cp/cp-tree.h: Add extern for adding_implicit_members.
11526         * cp/decl.c (deprecated_states): New enum.
11527         (start_decl): Set deprecated_state based on attributes.
11528         (grokdeclarator): Test for deprecated uses, propagate attribute.
11529         * cp/lex.c (do_identifier): Test for deprecated primaries.
11530         * cp/typeck.c (build_component_ref): Test for deprecated fields.
11532 2002-01-10  Ira Ruben   <ira@apple.com>
11534         Fix to assign attributes to inline member functions.
11535         * cp/decl.c (start_method): Handle attrlist.
11537 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11539         * combine.c (expand_field_assignment): Use subreg_lsb().
11541 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
11543         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
11544         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
11545         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
11546         Recurse for any operand of AND as long as constant is non-zero.
11548 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11550         * config/h8300/h8300.md: Remove constraints from expanders.
11552 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11554         * varasm.c: Fix formatting.
11555         * varray.c: Likewise.
11556         * vmsdbgout.c: Likewise.
11557         * xcoffout.c: Likewise.
11559 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
11561         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
11562         update edge probabilities to match.
11564 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
11566         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
11567         dependencies.
11568         * doc/languages.texi, doc/sourcebuild.texi: New files.
11569         * doc/configfiles.texi: Make a subsubsection.  Update.
11570         * doc/configterms.texi: Add @node.  Remove warning that this isn't
11571         instructions for building GCC.
11572         * doc/makefile.texi: Make a subsection.
11573         * doc/gccint.texi: Update.
11575 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
11577         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
11579 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
11581         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
11583 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
11585         * optabs.c (expand_fix): Look for wider integer modes first.
11587         * i386.md (mov?f): Avoid the fake const double trick for medium
11588         memory model.
11589         (min?f*/max?f*): Prohibit memory operands for i387 variant.
11590         (fop_df_4): Disable for SSE compilation.
11592 2002-01-10  Graham Stott  <grahams@redhat.com>
11594         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
11595         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
11597 2002-01-10  Richard Henderson  <rth@redhat.com>
11599         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
11601 2002-01-10  Richard Henderson  <rth@redhat.com>
11603         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
11604         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
11606 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11608         * combine.c (can_combine_p): Fix a comment typo.
11610 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
11612         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
11613         empty list correctly.  Change loop index $t to $f for
11614         consistency with rest of Makefile.
11616 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
11618         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
11619         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
11621         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
11622         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
11623         (altivec_init_builtins): Same.
11624         (altivec_expand_unop_builtin): Return NULL_RTX on error.
11625         (altivec_expand_binop_builtin): Same.
11626         (altivec_expand_ternop_builtin): Same.
11627         (bdesc_dst): New.
11629         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
11630         ("altivec_vctuxs"): Fix typo.
11631         ("altivec_vnmsubfp"): Same.
11632         ("altivec_dssall"): New.
11633         ("altivec_mfvscr"): New.
11634         ("altivec_dss"): New.
11635         ("altivec_lvsl"): New.
11636         ("altivec_lvsr"): New.
11637         ("altivec_dstt"): New.
11638         ("altivec_dstst"): New.
11639         ("altivec_dststt"): New.
11640         ("altivec_dst"): New.
11642         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
11643         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
11645 2002-01-09  Richard Henderson  <rth@redhat.com>
11647         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
11649 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
11651         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
11652         function.
11653         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
11654         prototype.
11655         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
11657 2002-01-09  Kazu Hirata  <kazu@hxi.com>
11659         * read-rtl.c: Fix formatting.
11660         * real.c: Likewise.
11661         * regclass.c: Likewise.
11662         * regrename.c: Likewise.
11663         * reg-stack.c: Likewise.
11664         * reload1.c: Likewise.
11665         * reload.c: Likewise.
11666         * rtl.c: Likewise.
11668 2002-01-09  Kazu Hirata  <kazu@hxi.com>
11670         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
11671         to extract items in the expr_list chain.
11673 2002-01-09  Richard Henderson  <rth@redhat.com>
11675         * config/vax/vax.c (vax_rtx_cost): Never abort.
11677         * config/vax/vax.h (REAL_ARITHMETIC): Define.
11679 2002-01-09  Jan Hubicka  <jh@suse.cz>
11681         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
11683 2002-01-09  Richard Henderson  <rth@redhat.com>
11685         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
11686         Unify code from various alternatives.
11688 2002-01-09  Richard Henderson  <rth@redhat.com>
11690         * regrename.c (copy_value): Ignore the copy if the source register
11691         is present in the value chain with a narrower mode.
11693 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
11695         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
11696         for the c4x target. Also improve layout.
11698 2002-01-09  Richard Henderson  <rth@redhat.com>
11700         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
11701         * config/m32r/m32r.md (and ior xor splitters): Swap operands
11702         to match insn patterns.
11704 2002-01-09  Richard Henderson  <rth@redhat.com>
11706         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
11707         (copyprop_hardreg_forward_1): Likewise.
11709 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11711         * pa.md (decrement_and_branch_until_zero): Change predicate for
11712         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
11714 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
11716         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
11717         gets undefined. For Darwin.
11719 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11721         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
11723 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11725         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
11727 2002-01-08  Richard Henderson  <rth@redhat.com>
11729         * regrename.c (copy_value): Ignore overlapping copies.
11731 2002-01-08  Richard Henderson  <rth@redhat.com>
11733         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
11734         as needed to avoid shared structure.
11736 2002-01-08  Kazu Hirata  <kazu@hxi.com>
11738         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
11739         H8/300H and H8/S.
11741 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
11743         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
11744         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
11745         documentation of obsolete macros.
11746         * system.h: Poison these macros.
11747         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
11748         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
11749         config/c4x/c4x.h, config/clipper/clipper.h,
11750         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
11751         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
11752         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
11753         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
11754         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
11755         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
11756         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
11757         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
11758         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
11759         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
11760         config/sparc/sparc.h, config/stormy16/stormy16.h,
11761         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
11762         definitions and commented out definitions of obsolete macros.
11763         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
11764         of MAX_INT_TYPE_SIZE.
11766 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
11768         * config/s390/s390.c (s390_preferred_reload_class): Never
11769         return ADDR_REGS if it isn't a subset of the given class.
11770         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
11771         FP_REGS, but all superclasses as well.
11773         * config/s390/s390.c (s390_function_profiler): Fix thinko.
11775         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
11776         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
11777         must not be a const_int.
11779 2002-01-08  Richard Henderson  <rth@redhat.com>
11781         * Makefile.in (toplev.o): Depend on options.h.
11782         (gcc.o): Depend on specs.h.
11784 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
11786         * expr.c (store_expr): Convert VOIDmode constants back to target's
11787         mode.
11789 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11791         * doc/invoke.texi: Markup gcc as @command.  Refer to
11792         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
11793         of http://gcc.gnu.org/thanks.html.
11795 2002-01-08  Dale Johannesen  <dalej@apple.com>
11797         * config/rs6000/rs6000.md: Add missing int register
11798         target case to movdf_low.
11800 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
11802         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
11803         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
11804         (cppinit.o): Depend on except.h.
11805         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
11806         s-specs): New rules.
11808         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
11809         Don't create specs.h/options.h/gencheck.h here.  Remove
11810         unnecessary variable settings from last argument of AC_OUTPUT.
11811         * config.in, configure: Regenerate.
11812         * intl.c: Hardcode package name as "gcc".
11814         * cppinit.c: Include except.h.
11815         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
11816         appropriate.
11817         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
11818         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
11819         (!)USING_SJLJ_EXCEPTIONS.
11820         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
11822 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
11824         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
11825         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
11826         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
11827         documentation of obsolete macros.
11828         * system.h: Poison these macros.
11829         * config/d30v/d30v.h, config/ns32k/encore.h,
11830         config/stormy16/stormy16.h: Remove definitions and commented out
11831         definitions of obsolete macros.
11833 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
11835         * objc/objc-act.c (handle_class_ref): Mark the declaration of
11836         %sobjc_class_ref_%s as used - to prevent unwanted compiler
11837         warnings.
11839 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
11841         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
11842         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
11843         to insn adjusting stack/frame pointer.
11844         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
11845         accept operands that cause the insn to be non-splittable.
11847 2002-01-08  Graham Stott  <grahams@redhat.com>
11849         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
11850         (C_TYPE_FIELDS_VOLATILE): Likewise.
11851         (C_TYPE_BEING_DEFINED): Likewise.
11852         (C_IS_RESERVED_WORD): Likewise.
11853         (C_TYPE_VARIABLE_SIZE): Likewise.
11854         (C_DECL_VARIABLE_SIZE): Likewise.
11855         (C_MISSING_PROTOTYPE_WARNED): Likewise.
11856         (C_SET_EXP_ORIGINAL_CODE): Likewise.
11857         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
11858         parenthesis.
11859         (C_DECL_ANTICIPATED): Likewise.
11860         (c_build_type_variant): Add parenthesis.
11862 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
11864         * gcc.c (option_map): Remove --version.
11865         (process_command): Handle -fversion following the GNU Coding
11866         Standards.  Partially addresses PR other/704.
11868 2002-01-08  Graham Stott  <grahams@redhat.com>
11870         * combine.c (combine_instructions): Fix typo.
11872 2002-01-08  Graham Stott  <grahams@redhat.com>
11874         * debug.h: Use "tree" and "rtx" throughout.
11876         * debug.c: Likewise.
11878 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
11880         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
11881         constant pool, use the pool's version of the symbol instead.
11883 2002-01-07  Richard Henderson  <rth@redhat.com>
11885         * regrename.c (find_oldest_value_reg): Ignore the value chain if
11886         the original register was copied in a mode with a fewer number of
11887         hard registers than the desired mode.
11888         (copyprop_hardreg_forward_1): Likewise.
11889         (debug_value_data): Fix loop test.
11890         * toplev.c (parse_options_and_default_flags): Reenable
11891         -fcprop-registers at -O1.
11893 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
11895         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
11896         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
11898         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
11899         predicates.
11901         * config/rs6000/rs6000.md: Add altivec predicate patterns.
11903 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11905         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
11906         (pa_output_function_prologue): Output local label at the beginning of
11907         the prologue when profiling.
11908         (hppa_profile_hook): Use the local label rather than the function label.
11909         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
11911 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
11913         * config/rs6000/rs6000.c (print_operand): Remove extra space.
11914         (altivec_expand_unop_builtin): Fix thinko.
11915         (altivec_expand_binop_builtin): Same.
11916         (altivec_expand_ternop_builtin): Same.
11917         (altivec_expand_builtin): Same.
11919 2002-01-07  Richard Henderson  <rth@redhat.com>
11921         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
11923 2002-01-07  Jason Merrill  <jason@redhat.com>
11925         * unwind-dw2.c (execute_cfa_program): Use < again.
11927 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
11929         * predict.c (combine_predictions_for_insn): Avoid division by zero.
11931 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
11933         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
11934         Don't allow -1 - x -> ~x simplifications in the first pass.
11936 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
11938         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
11939         arguments.
11940         (altivec_expand_binop_builtin): Same.
11941         (altivec_expand_unop_builtin): Same.
11942         (print_operand): Fix typo.
11943         (bdesc_1arg): Add vupk* variants.
11945         * rs6000.h (rs6000_builtins): Add vupk* enums.
11947         * rs6000.md: Add altivec_vupk* variants.
11949 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
11951         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
11952         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
11953         and last update dates.
11955 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
11957         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
11959 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11961         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
11962         * config/avr/avr.h (CPP_SPEC): Likewise.
11963         (LINK_SPEC): Likewise.
11964         (CRT_BINUTILS_SPECS): Likewise.
11965         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11966         * doc/invoke.texi (AVR Options): Document them.
11968 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
11970         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
11971         LABEL_NUSES.
11973 2002-01-07  Graham Stott  <grahams@redhat.com>
11975         * config/i386/i386.h: Update copyright date.
11976         (HALF_PIC_PTR): Add parenthesis.
11977         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
11978         (CONSTANT_ALIGNMENT): Add parenthesis.
11979         (DATA_ALIGNMENT): Likewise.
11980         (LOCAL_ALIGNMENT): Likewise.
11981         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
11982         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
11983         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
11984         (HARD_REGNO_NREGS): Add paranethesis.
11985         (VALID_SSE_REG_MODE): Whitespace.
11986         (VALID_MMX_REG_MODE): Whitespace.
11987         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
11988         (ix86_hard_regno_mode_ok): Add parenthesis.
11989         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
11990         (RETURN_IN_MEMORY): Whitespace.
11991         (N_REG_CLASSES): Add parenthesis.
11992         (INTEGER_CLASS_P): Add parenthesis and wrap.
11993         (FLOAT_CLASS_P): Likewise.
11994         (SSE_CLASS_P): Likewise.
11995         (MMX_CLASS_P): Likewise.
11996         (MAYBE_INTEGER_CLASS_P): Likewise.
11997         (MAYBE_FLOAT_CLASS_P): Likewise.
11998         (MAYBE_SSE_CLASS_P): Likewise.
11999         (MAYBE_MMX_CLASS_P): Likewise.
12000         (Q_CLASS_P): Likewise.
12001         (GENERAL_REGNO_P): Uppercase macro parameter.
12002         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
12003         (FP_REGNO_P): Likewise.
12004         (ANY_FP_REGNO_P): Uppercase macro parameter.
12005         (SSE_REGNO_P): Likewise.
12006         (SSE_REGNO): Likewise.
12007         (SSE_REG_P): Likewise.
12008         (SSE_FLOAT_MODE_P): Likewise.
12009         (MMX_REGNO_P): Likewise.
12010         (MMX_REG_P):Likewise.
12011         (STACK_REG_P): Likewise.
12012         (NON_STACK_REG_P): Likewise.
12013         (STACK_TOP_P): Likewise.
12014         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
12015         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
12016         (SECONDARY_MEMORY_NEEDED): Likewise.
12017         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
12018         (MD_ASM_CLOBBERS): Whitespace and wrap.
12019         (MUST_PASS_IN_STACK): Whitespace and wrap.
12020         (RETURN_POPS_ARGS): Add parenthesis.
12021         (INIT_CUMULATIVE_ARGS): Likewise.
12022         (FUNCTION_ARG): Likewise.
12023         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
12024         (SETUP_INCOMING_VARARGS): Likewise.
12025         (BUILD_VA_LIST_TYPE):  Add parenthesis.
12026         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
12027         parenthsis.
12028         (EXPAND_BUILTIN_VA_ARG): Likewise.
12029         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
12030         (INITIALIZE_TRAMPOLINE): Add parenthesis.
12031         (INITIAL_ELIMINATION_OFFSET): Likewise.
12032         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
12033         (REGNO_OK_FOR_BASE_P): Likewise.
12034         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
12035         (REGNO_OK_FOR_DIREG_P): Likewise.
12036         (REG_OK_FOR_INDEX_P): Whitespace.
12037         (REG_OK_FOR_BASE_P): Whitespace.
12038         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
12039         parenthesis.
12040         (FIND_BASE_TERM): Fix typo.
12041         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
12042         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
12043         (SYMBOLIC_CONST; Whitespace.
12044         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
12045         (ENCODE_SECTION_INFO): Whitespace.
12046         (FINALIZE_PIC): Remove do { ... } while (0).
12047         (PROMOTE_MODE): Wrap in do { ... } while (0).
12048         (CONST_COSTS): Whitespace.
12049         (RTX_COSTS): Add paramethesis, whitespace and wrap.
12050         (REGISTER_MOVE_COST): Add parenthesis.
12051         (MEMORY_MOVE_COST): Likewise.
12052         (EXTRA_CC_MODES): Whitespace.
12053         (SELECT_CC_MODE): Add parenthesis and whitespace.
12054         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
12055         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
12056         (ASM_OUTPUT_LABEL): Add paramethesis.
12057         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
12058         (ASM_OUTPUT_REG_POP): Likewise.
12059         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
12060         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
12062         * config/i386/i386.c: Update copyright.
12063         (CHECK_STACK_LIMIT): Add parenthesis.
12064         (AT_BP): Uppercase macro parameter.
12065         (x86_64_int_parameter_registers): Constify.
12066         (x86_64_int_return_registers): Likewise.
12067         (ix86_compare_op0): Use rtx.
12068         (construct_container): Constify INTREG parameter.
12069         (function_arg): Use rtx.
12071         * diagnostic.h: Update copyright date.
12072         (output_buffer_state): Add parenthesis.
12073         (output_buffer_format_args): Likewise.
12075         * combine.c (combine_instructions): Replace XEXP (links, 0)
12076         with link.
12078 2002-01-06  H.J. Lu <hjl@gnu.org>
12080         * cfgcleanup.c (thread_jump): Fix 2 typos.
12082 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
12084         * config.gcc: Add support for --enable-altivec.
12086 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12088         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
12090 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
12092         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
12093         __objc_class_name_*.
12095 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12097         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
12099 2002-01-06  Richard Henderson  <rth@redhat.com>
12101         * reorg.c (emit_delay_sequence): Remove death notes, not merely
12102         nop them out.  Increment label reference count for REG_LABEL.
12103         (fill_slots_from_thread): Frob label reference count around
12104         delete_related_insns.
12106 2002-01-05  Richard Henderson  <rth@redhat.com>
12108         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
12109         jump threading.
12111 2002-01-05  Richard Henderson  <rth@redhat.com>
12113         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
12114         * integrate.c (output_inline_function): Likewise.
12115         * toplev.c (rest_of_compilation): Do it here instead.  Move call
12116         to remove_unnecessary_notes after emitting abstract instance.
12117         Force an emitted nested function to have its parent emited as well.
12118         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
12119         for null.
12120         (rtl_for_decl_location): Do not look at reload data structures
12121         before reload has run.
12123 2002-01-05  Kazu Hirata  <kazu@hxi.com>
12125         * cse.c: Fix formatting.
12126         * dwarf2asm.c: Likewise.
12127         * dwarf2out.c: Likewise.
12128         * explow.c: Likewise.
12129         * expmed.c: Likewise.
12130         * function.c: Likewise.
12131         * gcov.c: Likewise.
12132         * gencheck.c: Likewise.
12133         * genrecog.c: Likewise.
12134         * ggc-common.c: Likewise.
12135         * ggc-page.c: Likewise.
12136         * global.c: Likewise.
12138 2002-01-05  Kazu Hirata  <kazu@hxi.com>
12140         * combine.c: Fix formatting.
12142 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
12144         PR middle-end/1557
12145         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
12147 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
12149         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
12150         as 1 for __powerpc64__ as well.
12152         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
12154         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
12155         return it.
12157 2002-01-05  Daniel Berlin  <dan@dberlin.org>
12159         * lcm.c: Revert change, due to performance regression it causes on
12160         SPEC because it's slightly more conservative (sigh, I hate
12161         edge-based LCM).
12163 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
12165         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
12167 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
12169         * doc/cppinternals.texi: Update.
12171 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
12173         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
12174         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
12175         negatives.
12176         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
12177         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
12178         kludge for pre-october-14th mmix versions to handle new-found bug
12179         with PUSHJ/PUSHGO and the register stack.
12180         * config/mmix/mmix.h (struct machine_function): Rename member
12181         has_call_value_without_parameters to has_call_without_parameters.
12182         All referers changed.
12183         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
12184         TARGET_MASK_BRANCH_PREDICT): New macros.
12185         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
12186         -mno-reg-stack-fill-bug-workaround.
12187         * config/mmix/mmix.md ("call"): Set struct machine member
12188         has_call_without_parameters.
12190 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
12192         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
12194 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
12196         * cfgcleanup.c: Include tm_p.h
12197         (mark_effect): Fix handling of hard register; fix handling of SET
12199 2002-01-04  Kazu Hirata  <kazu@hxi.com>
12201         * config/h8300/h8300.md (anonymous patterns): Check that
12202         operands are registers before using REGNO on them.
12204 2002-01-03  Roland McGrath  <roland@frob.com>
12206         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
12208 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
12210         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
12211         * c-common.h (genrtl_expr_stmt_value): Likewise.
12212         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
12213         (expand_expr_stmt_value): Add maybe_last argument.
12214         Don't warn about statement with no effect if it is the last statement
12215         in expression statement.
12216         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
12217         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
12218         expand_expr_stmt_value.
12219         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
12220         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
12221         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
12222         as maybe_last to expand_expr_stmt_value.
12224 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
12226         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
12227         be passed in, do not build it.
12228         (c_begin_if_stmt): New function.
12229         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
12230         * c-common.h (c_expand_start_cond): Update prototype.
12231         (c_begin_if_stmt): Prototype new function.
12232         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
12233         * c-parse.in (if_prefix): Use c_begin_if_stmt,
12234         c_begin_while_stmt and c_finish_while_stmt_cond.
12236 2002-01-04  William Cohen  <wcohen@redhat.com>
12238         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
12239         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
12240         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
12241         * config/pa/som.h (ASM_FILE_START): Likewise.
12243 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
12245         * lcm.c: Include df.h.
12246         Add available_transfer_function prototype.
12247         (compute_available): Rework to use iterative dataflow framework.
12248         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
12249         with bb_info in df.h
12250         (available_transfer_function): New function.
12252         * Makefile.in (lcm.o): add df.h to dependencies.
12254 2002-01-04  Richard Henderson  <rth@redhat.com>
12256         * config/alpha/alpha.c (some_operand): Accept HIGH.
12257         (input_operand): Likewise; accept simple references to globals.
12258         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
12259         (alpha_const_double_ok_for_letter_p): Likewise.
12260         (alpha_extra_constraint): Likewise.
12261         (alpha_preferred_reload_class): Likewise.  Do not force
12262         symbolic constants to memory.
12263         (alpha_legitimate_address_p): Accept simple references
12264         to small_symbolic_operand.
12265         (alpha_legitimize_address): New arg scratch.  Be prepared to be
12266         called when no_new_pseudos.  Emit simple symbolic references.
12267         Split integers into low, high, and rest.
12268         (alpha_expand_mov): Use alpha_legitimize_address.
12269         (some_small_symbolic_mem_operand): New.
12270         (split_small_symbolic_mem_operand): New.
12271         * config/alpha/alpha-protos.h: Update.
12272         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
12273         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
12274         (EXTRA_CONSTRAINT): Likewise.
12275         (PREFERRED_RELOAD_CLASS): Likewise.
12276         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
12277         (PREDICATE_CODES): Update.
12278         * config/alpha/alpha.md: New post-reload splitters to convert
12279         simplfied symbolic operands to the form that references $29.
12280         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
12281         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
12283 2002-01-03  Richard Henderson  <rth@redhat.com>
12285         * local-alloc.c (function_invariant_p): Update commentary.
12287 2002-01-04  H.J. Lu <hjl@gnu.org>
12289         * toplev.c (rest_of_compilation): Fix a typo when calling
12290         cleanup_cfg.
12292 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12294         * c-common.c: Fix formatting.
12295         * diagnostic.c: Likewise.
12296         * doloop.c: Likewise.
12297         * dwarf2out.c: Likewise.
12299 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12301         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
12302         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
12304 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
12306         * cpperror.c: Update comments and copyright.
12307         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
12308         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
12310 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12312         * collect2.c (main): Use strcmp when testing for "-shared".
12314 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
12316         * cppmacro.c: Don't include intl.h.  Update comments.
12317         (new_number_token): Allocate enough buffer for 64-bit unsigned
12318         integers; update prototype.
12319         * cppmain.c: Update comments.
12321 2002-01-03  William Cohen  <wcohen@redhat.com>
12323         * function.h (struct function): Add profile.
12324         (current_function_profile): New.
12325         doc/extend.texi: Update documentation.
12326         * final.c (final_start_function): Use current_function_profile
12327         instead of profile_flag.
12328         (profile_after_prologue): Likewise.
12329         * function.c (expand_function_start): Likewise.
12330         (expand_function_start): Likewise.
12331         * config/alpha/alpha.c (direct_call_operand):
12332         (alpha_does_function_need_gp): Likewise.
12333         (alpha_expand_prologue): Likewise.
12334         * config/arm/arm.c (arm_expand_prologue): Likewise.
12335         thumb_expand_prologue: Likewise.
12336         * config/d30v/d30v.c (d30v_stack_info): Likewise.
12337         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
12338         (fr30_expand_prologue): Likewise.
12339         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
12340         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
12341         * config/i386/i386.h (FINALIZE_PIC): Likewise.
12342         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
12343         * config/i960/i960.c (i960_output_function_prologue): Likewise.
12344         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
12345         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
12346         (m32r_expand_prologue): Likewise.
12347         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
12348         (m88k_expand_prologue): Likewise.
12349         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
12350         * config/mips/mips.c (compute_frame_size): Likewise.
12351         (mips_expand_prologue): Likewise.
12352         (mips_can_use_return_insn): Likewise.
12353         * config/pa/elf.h (ASM_FILE_START): Likewise.
12354         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
12355         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
12356         * config/pa/som.h (ASM_FILE_START): Likewise.
12357         * config/romp/romp.c (romp_using_r14): Likewise.
12358         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
12359         (rs6000_stack_info): Likewise.
12360         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
12361         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
12362         * config/v850/v850.c (compute_register_save_size): Likewise.
12364 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
12366         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
12367         gen_lowpart_common fails, use gen_lowpart_SUBREG.
12369 2002-01-03  Turly O'Connor  <turly@apple.com>
12371         * darwin.c (machopic_output_possible_stub_label): Don't generate
12372         stub routines for pseudo-stubs which we've just defined.
12374 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12376         * builtins.c: Fix formatting.
12377         * c-typeck.c: Likewise.
12378         * combine.c: Likewise.
12379         * expr.c: Likewise.
12380         * loop.c: Likewise.
12382 2002-01-03  Andreas Schwab  <schwab@suse.de>
12384         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
12385         and return true if _cpp_push_next_buffer pushed a new include
12386         file.
12387         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
12388         _cpp_pop_file_buffer did not push a new file.
12389         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
12391 2002-01-02  Eric Christopher  <echristo@redhat.com>
12393         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
12394         FIND_REG_INC_NOTE call. Update copyright.
12395         * loop.c (canonicalize_condition): Ditto.
12396         * reorg.c (delete_scheduled_jump): Ditto.
12398 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12400         * gcse.c: Fix formatting.
12402 2002-01-03  Graham Stott  <grahams@redhat.com>
12404         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
12405         forward defs for struct tags rtx_def, union_tree, rtvec_def
12406         also output corresponding typedefs for rtx, tree, and rtvec.
12408         * system.h: Move forward defs for struct tags rtx_def, union_tree,
12409         rtvec_def along with corresponding typedefs for rtx, tree, and
12410         rtvec to config.h, hconfig.h, tconfig.h.
12412 2002-01-03  Graham Stott  <grahams@redhat.com>
12414         * tree.h: Update copyright date.
12415         (IS_EXPR_CODE_CLASS): Add parenthesis.
12416         (TREE_SET_CODE): Add whitespace.
12417         (TREE_CHECK): Add parenthesis.
12418         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
12419         (CST_OR_CONSTRUCTOR_CHECK):
12420         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
12421         (TREE_SYMBOL_REFERENCED): Whitespace.
12422         (INT_CST_LT): Likewise.
12423         (INT_CST_LT_UNSIGNED): Likewise.
12424         (tree_real_cst): Unwrap comment.
12425         (tree_string): Likewise.
12426         (tree_complex): Likewise.
12427         (IDENTIFIER_POINTER): correct cast.
12428         (SAVE_EXPR_CONTEXT): Whitespace.
12429         (EXPR_WFL_FILENAME_NODE): Likewise.
12430         (EXPR_WFL_FILENAME): Remove parenthesis.
12431         (DECL_ORIGIN): Add parenthesis.
12432         (DECL_FROM_INLINE): Use NULL_TREE.
12433         (build_int_2): Whitespace.
12434         (build_type_variant): Add parenthesis.
12436         * gcc/jcf-parse.c: Update copyright date.
12437         (yyparse): Constify resource_filename.
12439 2002-01-03  Graham Stott  <grahams@redhat.com>
12441         * rtl.h: Update copyright date.
12442         (RTL_CHECK1): Wrap long line.
12443         (RTL_CHECK2): Likewise.
12444         (RTL_CHECKC1): Wrap long line and whitespace.
12445         (RTL_CHECKC2): Likewise.
12446         (XWINT): Whitespace.
12447         (XINT): Likewise.
12448         (XSTR): Likewise.
12449         (XEXP): Likewise.
12450         (XVEC): Likewise.
12451         (XMODE): Likewise.
12452         (XBITMAP): Likewise.
12453         (XTREE): Likewise.
12454         (XBBDEF): Likewise.
12455         (XTMPL): Likewise.
12456         (X0WINT): Likewise.
12457         (X0INT):Likewise.
12458         (X0UINT): Likewise.
12459         (X0STR): Likewise.
12460         (X0EXP): Likewise.
12461         (X0VEC): Likewise.
12462         (X0MODE): Likewise.
12463         (X0BITMAP): Likewise.
12464         (X0TREE): Likewise.
12465         (X0BBDEF): Likewise.
12466         (X0ADVFLAGS): Likewise.
12467         (X0CSELIB): Likewise.
12468         (X0MEMATTR): Likewise.
12469         (XCWINT): Likewise.
12470         (XCINT): Likewise.
12471         (XCUINT): Likewise.
12472         (XCSTR): Likewise.
12473         (XCEXP): Likewise.
12474         (XCVEC): Likewise.
12475         (XCMODE): Likewise.
12476         (XCBITMAP): Likewise.
12477         (XCTREE): Likewise.
12478         (XCBBDEF): Likewise.
12479         (XCADVFLAGS): Likewise.
12480         (XCCSELIB): Likewise.
12481         (XC2EXP): Likewise.
12482         (INSN_UID): Likewise.
12483         (PREV_INSN): Likewise.
12484         (PATTERN): Likewise.
12485         (INSN_CODE): Likewise.
12486         (PUT_REG_NOTE_KIND): Likewise.
12487         (CODE_LABEL_NUMBER): Likewise.
12488         (NOTE_SOURCE_FILE): Likewise.
12489         (NOTE_BLOCK): Likewise.
12490         (NOTE_EH_HANDLER): Likewise.
12491         (NOTE_RANGE_INFO): Likewise.
12492         (NOTE_LIVE_INFO): Likewise.
12493         (NOTE_BASIC_BLOCK): Likewise.
12494         (NOTE_EXPECTED_VALUE): Likewise.
12495         (NOTE_LINE_NUMBER): Likewise.
12496         (LABEL_NAME): Likewise.
12497         (LABEL_NUSES): Likewise.
12498         (LABEL_ALTERNATE_NAME): Likewise.
12499         (ADDRESSOF_DECL): Likewise.
12500         (JUMP_LABEL): Likewise.
12501         (LABEL_NEXTREF): Likewise.
12502         (REGNO): Likewise.
12503         (ORIGINAL_REGNO: Likewise.
12504         (HARD_REGISTER_NUM_P): Add parenthesis.
12505         (SUBREG_REG): Whitespace.
12506         (SUBREG_BYTE): Likewise.
12507         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
12508         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
12509         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
12510         (ASM_OPERANDS_INPUT_VEC): Likewise.
12511         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
12512         (ASM_OPERANDS_INPUT): Likewise.
12513         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
12514         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
12515         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
12516         (ASM_OPERANDS_INPUT_MODE): Likewise.
12517         (ASM_OPERANDS_SOURCE_FILE): Likewise.
12518         (ASM_OPERANDS_SOURCE_LINE): Likewise.
12519         (MEM_SET_IN_STRUCT_P): Minor reformat.
12520         (TRAP_CONDITION): Whitespace.
12521         (TRAP_CODE): Likewise.
12522         (COND_EXEC_TEST): Likewise.
12523         (COND_EXEC_CODE): Likewise.
12524         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
12525         (PHI_NODE_P): Add parenthesis.
12526         (plus_constant): Whitespace and add parenthesis.
12528 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12530         * config/avr/avr.c: Fix comment typos.
12531         * config/c4x/c4x.md: Likewise.
12532         * config/dsp16xx/dsp16xx.h: Likewise.
12533         * config/dsp16xx/dsp16xx.md: Likewise.
12534         * config/i386/i386.md: Likewise.
12535         * config/ia64/ia64.c: Likewise.
12536         * config/m32r/m32r.h: Likewise.
12537         * config/m68hc11/m68hc11.md: Likewise.
12538         * config/mmix/mmix.c: Likewise.
12539         * config/mn10200/mn10200.c: Likewise.
12540         * config/romp/romp.c: Likewise.
12541         * config/sh/sh.c: Likewise.
12542         * config/stormy16/stormy16.c: Likewise.
12543         * config/stormy16/stormy16.h: Likewise.
12544         * config/stormy16/stormy16.md: Likewise.
12546 2002-01-03  Graham Stott  <grahams@redhat.com>
12548         * loop.h: Update copyright date.
12549         (LOOP_MOVABLES): Fix typo.
12550         (LOOP_REGS): Likewise.
12551         (LOOP_IVS): Likewise.
12553 2002-01-03  Graham Stott  <grahams@redhat.com>
12555         * cppinit.c: Update copyright date.
12556         Don't include output.h
12557         * Makefile.in: Update copyright date.
12558         Update dependency.
12560 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12562         PR c/5226
12563         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
12564         (-pthread) Add to RS/6000 options.
12566 2002-01-02  Kazu Hirata  <kazu@hxi.com>
12568         * except.c: Fix comment typos.
12569         * loop.c: Likewise.
12570         * varasm.c: Likewise.
12571         * doc/tm.texi: Fix a typo.
12573 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
12575         * c-typeck.c (output_init_element): Allow initializing static storage
12576         duration objects with compound literals.
12578 2002-01-02  Richard Henderson  <rth@redhat.com>
12580         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
12581         after abusing it.
12583 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12585         * gcc.c (default_compilers): Const-ify.
12586         * mips-tdump.c (stab_names): Likewise.
12587         * mips-tfile.c (map_coff_types, map_coff_storage,
12588         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
12589         pseudo_ops_t, pseudo_ops): Likewise.
12590         * protoize.c (default_include): Likewise
12592         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
12593         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
12594         Add array size in declaration.
12595         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
12596         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
12597         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
12598         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
12599         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
12600         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
12601         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
12602         emtens, make_nan): Const-ify.
12603         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
12604         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
12606 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
12608         * config.gcc (ia64-*-*): Set extra_headers.
12609         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
12610         * config/alpha/t-osf: Remove.
12611         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
12613 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
12615         * config/rs6000/t-aix43: Revert previous change.
12617 2002-01-02  Jason Merrill  <jason@redhat.com>
12619         * c-decl.c (c_expand_body): Call outlining_inline_function when
12620         emitting an inline function out of line.
12622 2002-01-02  Richard Henderson  <rth@redhat.com>
12624         * dwarf2out.c (limbo_die_node): Add created_for member.
12625         (new_die): New argument created_for.  Update all callers.
12626         (mark_limbo_die_list): New.
12627         (dwarf2out_init): Register limbo_die_list as a root.
12628         (dwarf2out_finish): Force insert limbo dies into their function
12629         context.
12631 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
12633         PR c++/5089
12634         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
12636 2002-01-02  Kazu Hirata  <kazu@hxi.com>
12638         * config/h8300/fixunssfsi.c: Update copyright.
12639         Fix comment typos.
12640         Fix formatting.
12641         * config/h8300/h8300.c: Update copyright.
12642         Eliminate warnings.
12644 2002-01-02  Kazu Hirata  <kazu@hxi.com>
12646         * config/romp/romp.c: Fix comment formatting.
12647         * config/romp/romp.h: Likewise.
12648         * config/romp/romp.md: Likewise.
12649         * config/s390/s390.c: Likewise.
12650         * config/stormy16/stormy16.c: Likewise.
12651         * config/stormy16/stormy16.h: Likewise.
12653 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
12655         * c-common.h (genrtl_expr_stmt_value): Declare.
12656         * c-semantics.c (genrtl_goto_stmt): Redirect to...
12657         (genrtl_goto_stmt_value): ... this new function.  Pass new
12658         argument down to expand_expr_stmt_value, taking
12659         TREE_ADDRESSABLE into account.
12660         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
12661         STMT_EXPR as addressable, i.e., one whose result we want.
12662         * expr.c (expand_expr): Don't save expression statement value
12663         of labeled_blocks or loop_exprs.
12664         * stmt.c (expand_expr_stmt): Redirect to...
12665         (expand_expr_stmt_value): ... this new function.  Use new
12666         argument to tell whether to save expression value.
12667         (expand_end_stmt_expr): Reset last_expr_type and
12668         last_expr_value if we don't have either.
12669         * tree-inline.c (declare_return_variable): Mark its use
12670         statement as addressable.
12671         * tree.h: Document new use of TREE_ADDRESSABLE.
12672         (expand_expr_stmt_value): Declare.
12674 2002-01-01  Tom Rix  <trix@redhat.com>
12676         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
12677         rs6000_emit_allocate_stack.
12679 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
12681         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
12682         ${srcdir}/ginclude/ to every entry in extra_headers.
12683         * configure: Regenerate.
12684         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
12685         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
12686         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
12687         * ginclude/proto.h: Rename to config/convex/proto.h.
12689 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12691         * attribs.c (handle_vector_size_attribute): Use host_integerp
12692         and tree_int_cst; remove warnings.
12693         * caller-save.c (insert_restore): Add cast to get rid of warning.
12694         (insert_save): Likewise.
12695         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
12696         * regmove.c (find_matches): Add temporary var to kill a warning.
12698 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
12700         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
12701         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
12702         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
12703         (vms-dwarf2eh.o): Add Makefile rule.
12704         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
12705         * config/alpha/vms-dwarf2eh.asm: New file.
12707         * gcc.c (delete_if_ordinary): Delete all versions.
12709 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
12711         * config/mmix/mmix.md: Update FIXME to not mention
12712         define_constants.
12713         (MMIX_rJ_REGNUM): New define_constants constant.
12714         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
12715         "*movdicc_real"): Adjust contraints formatting.
12716         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
12717         for branch prediction.
12718         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
12719         output template.
12720         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
12721         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
12722         number.  Delete related FIXMEs.
12723         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
12724         from number to MMIX_rJ_REGNUM.
12725         (TARGET_MASK_BRANCH_PREDICT): New.
12726         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
12727         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
12728         value.  Add -mbranch-predict and -mno-branch-predict.
12729         (TARGET_VERSION): Drop date.
12730         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
12731         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
12732         for finding out global symbols.
12733         (mmix_asm_output_labelref): Revert condition for global symbol.
12734         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
12735         (mmix_print_operand_punct_valid_p): A '+' is valid.
12737 See ChangeLog.6 for earlier changes.