* config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form of the frame
[official-gcc.git] / gcc / ChangeLog
blobfc1904ea838af03150fc5c47d4c0f19241291382
1 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
3         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
4         of the frame pointer or arg pointer register which strict register
5         checking is not enabled.
7 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
9         * gcc.dg/altivec-8.c: New.
11         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
12         PRE_INC and PRE_DEC for altivec modes.
14 2002-05-01  Bruce Korb  <bkorb@gnu.org>
16         * fixinc/check.tpl(set-writable): make sure the function exists first
17         * fixinc/inclhack.def(alpha_assert): fix test_text
18         * fixinc/tests/base/assert.h: add in missing result
20 2002-05-01  Jeff Law  <law@redhat.com>
22         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
23         'T' constraint.
25 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
27         * dbxout.c (dbxout_type): Emit size information for range types,
28         as well, but only when using GDB extensions.
30 2002-05-01  Richard Henderson  <rth@redhat.com>
32         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
33         target-independent gnu binutils date test.
35 2002-05-01  Richard Henderson  <rth@redhat.com>
37         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
38         info before expunging the block.
40 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
42         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
43         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
44         -M -or -MM is in effect.
46 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
48         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
49         A29k configurations.
50         * doc/install.texi: Update to match.
52 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
54         PR bootstrap/6514
55         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
56         for duplicates. Always loop over whole list.
58 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
60         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
62 2002-05-01      Joel Sherrill <joel@OARcorp.com>
64         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
65         support routines.
67 2002-05-01      Joel Sherrill <joel@OARcorp.com>
69         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
71 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
73         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
74         (nabs_nopower): Same.
75         (floatdisf2): New pattern.
76         (absdi2): Convert to define_insn_and_split.
77         (nabsdi2): Same.
78         (trunctfsf2): Same.
79         (floatditf2): Same.
80         (floatsitf2): Same.
81         (fix_trunctfdi2): Same.
82         (fix_trunctfsi2): Same.
84 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
86         * doc/install.texi: Update Texinfo version requirement
87         documentation.
89 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
91         PR target/6512, PR target/5628
92         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
93         when memory is not aligned.
94         (movdf_insn_v9only_vis): Likewise.
95         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
96         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
97         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
99 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
101         * gcc.dg/altivec-7.c: New.
103         * config/rs6000/altivec.h: Cleanup.
105 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
107         * doc/invoke.texi (Option Summary): Add -mvrsave=.
108         (RS/6000 and PowerPC Options): Document -mvrsave=.
110         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
111         (rs6000_altivec_vrsave_string): Same.
112         (rs6000_override_options): Call rs6000_parse_vrsave_option.
113         (rs6000_parse_vrsave_option): New.
114         (rs6000_stack_info): Only generate vrsave instructions when
115         TARGET_ALTIVEC_VRSAVE.
117         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
118         (rs6000_altivec_vrsave_string): Define extern.
119         (rs6000_altivec_vrsave): Same.
120         (TARGET_ALTIVEC_VRSAVE): New.
122 2002-04-30  Richard Henderson  <rth@redhat.com>
124         PR opt/6516
125         * toplev.c (rest_of_compilation): Don't run cross-jump before
126         bb-reorder.
128 2002-04-30  Tom Rix  <trix@redhat.com>
130         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
131         check which_alternative.
133 2002-04-30  Kazu Hirata  <kazu@hxi.com>
135         * cpplex.c: Fix comment formatting.
136         * function.c: Likewise.
137         * integrate.c: Likewise.
138         * regrename.c: Likewise.
139         * sibcall.c: Likewise.
140         * simplify-rtx.c: Likewise.
141         * tree-inline.c: Likewise.
143 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
145         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
146         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
147         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
148         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
149         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
150         * pa/x-ada: New file.  Define ADA_CFLAGS.
152 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
154         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
155         from MMIX_LAST_REGISTER_FILE_REGNUM.
156         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
157         (struct machine_function): New member highest_saved_stack_register
158         previously static variable in mmix.c.
159         (MACHINE_DEPENDENT_REORG): Define.
160         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
161         (MMIX_OUTPUT_REGNO): New.
162         (mmix_target_asm_function_prologue): Move calculation of last used
163         saved-stack-register into...
164         (mmix_machine_dependent_reorg): New function.  Update to also handle
165         !TARGET_ABI_GNU.
166         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
167         register names, simplify somewhat by new variable regno.
168         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
169         register.
170         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
171         emitting register names.
172         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
173         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
174         Remove fixed FIXME.
175         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
176         Declare.
178         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
180 2002-04-30  Richard Henderson  <rth@redhat.com>
182         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
183         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
184         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
185         emit_tfmode_cvt): New.
186         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
187         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
188         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
189         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
190         * config/sparc/sparc-protos.h: Update.
192 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
194         * install.texi (Final install): Add to the list of info to include
195         in a report of a successful bootstrap, and add link to 3.1 list.
197 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
199         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
200         (mode): Add vector modes
201         (i387): Kill attribute.
202         (unit): New attribute.
203         (length_immediate): Grok new types.
204         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
205         (modrm): Use "unit".
206         (memory): Handle MMX/SSE properly.
207         (scheduling descriptions): Kill uses of fop1.
208         (sse, mmx, fp patterns): Set type and mode properly.
210 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@cygnus.com)
212         * pa.c (override_options): Default to PA8000 scheduling.
213         * doc/invoke.texi (HP-PA options): Mention newly added 7300
214         scheduling parameter.
216         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
217         handling of double precision multiplies.
219         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
220         fpdiv and fpsqrt instructions.
221         (7200 & 7300 scheduling): Fix typo in handling of
222         store-load and store-store penalties.
224 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
226         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
227         mips.  Add two missing commas.
229 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
231         * doc/contrib.texi (Contributors): Update Paolo Carlini's
232         and Benjamin Kosnik's entries.
234 2002-04-29  David S. Miller  <davem@redhat.com>
236         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
237         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
238         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
239         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
241 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
243         * combine.c (find_split_point): Use gen_int_mode.
245 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
247         Merging code from dfa-branch:
249         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
251         * genautomata.c (output_reserv_sets): Fix typo.
253         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
255         * genautomata.c (output_reserv_sets): Remove
256         next_cycle_output_flag.
258         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
260         * sched-rgn.c (init_ready_list): Make the DFA code handle
261         USE/CLOBBER insns in the same way as the traditional
262         scheduler.
263         (new_ready): Similarly..
265         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
267         * haifa-sched.c (schedule_block): Change the DFA state only after
268         issuing insn.
270         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
272         * pa.c (hppa_use_dfa_pipeline_interface): New function.
273         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
274         (override_options): Add PA7300 scheduling support.
275         (pa_adjust_cost): Update various comments.  Properly
276         handle anti and output dependencies when using the
277         DFA scheduler.
278         (pa_issue_rate): Add PA7300 scheduling support.
279         (pa_can_combine_p): Call extract_insn before calling
280         constrain_operands (taken from mainline tree).
281         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
282         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
283         descriptions using DFA descriptions.  Add PA7300
284         scheduling support.
286         2002-03-30  David S. Miller  <davem@redhat.com>
288         Add UltraSPARC-III DFA scheduling support.
289         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
290         Update FP conditional move on register insn patterns to use it, as
291         appropriate.
292         (define_attr cpu): Add ultrasparc3.
293         (define_attr us3load_type): New, update integer load patterns to
294         set it, as appropriate.
295         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
296         (rest): Add UltraSPARC3 scheduling description.
297         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
298         (PROCESSOR_ULTRASPARC3): New.
299         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
300         ({ASM,CPP}_CPU_SPEC): Likewise.
301         (REGISTER_MOVE_COST): Likewise.
302         (RTX_COSTS): Likewise.
303         * config/sparc/sparc.c (sparc_override_options,
304         sparc_initialize_trampoline, sparc64_initialize_trampoline,
305         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
306         sparc_issue_rate): Likewise.
307         * config/sparc/sol2.h: Likewise.
308         * config/sparc/sol2-sld-64.h: Likewise.
309         * config/sparc/linux64.h: Likewise.
311         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
313         * doc/md.texi: Add comments about usage the latency time for the
314         different dependencies and about case when two or more conditions
315         in different define_insn_reservations returns TRUE for an insn.
317         * doc/md.texi: Add reference for automaton based pipeline
318         description.
320         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
322         * doc/passes.texi: Add missed information about genattrtab.
324         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
326         * genautomata.c (output_automata_list_transition_code): Check
327         automata_list on NULL.
329         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
331         * genautomata.c (output_insn_code_cases,
332         output_automata_list_min_issue_delay_code,
333         output_automata_list_transition_code,
334         output_automata_list_state_alts_code): Comment the functions.
336         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
338         * genautomata.c (automata_list_el_t): New typedef.
339         (get_free_automata_list_el,free_automata_list_el,
340         free_automata_list, automata_list_hash, automata_list_eq_p,
341         initiate_automata_lists, automata_list_start, automata_list_add,
342         automata_list_finish, finish_automata_lists,
343         output_insn_code_cases, output_automata_list_min_issue_delay_code,
344         output_automata_list_transition_code,
345         output_automata_list_state_alts_code, add_automaton_state,
346         form_important_insn_automata_lists): New functions and prototypes.
347         (insn_reserv_decl): Add members important_automata_list and
348         processed_p.
349         (ainsn): Add members important_p.
350         (automata_list_el): New structure.
351         (first_free_automata_list_el, current_automata_list,
352         automata_list_table): New global variables.
353         (create_ainsns): Initiate member important_p.
354         (output_internal_min_issue_delay_func): Generate the switch and
355         call output_insn_code_cases.
356         (output_internal_trans_func, output_internal_state_alts_func):
357         Ditto.
358         (generate): Call initiate_automata_lists.
359         (automaton_states): New global variable.
360         (expand_automata): Call form_important_insn_automata_lists.
361         (write_automata): Call finish_automata_lists.
363         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
365         * genautomata.c (add_excls, add_presence_absence): Check that
366         cpu units in the sets belong the same automaton.
368         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
369         about that cpu units in the sets belong the same automaton.
371         * doc/md.texi: Ditto.
373         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
374                     Nitin Gupta  <niting@noida.hcltech.com>
376         * config/sh/sh.c (sh_use_dfa_interface): New function.
378         (sh_issue_rate): New Function.
379         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
380         TARGET_SCHED_ISSUE_RATE: define.
382         * config/sh/sh.md: Add DFA based pipeline description for SH4.
384         (define_attr insn_class): New attribute used for DFA
385          scheduling.
386         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
387         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
388          cmpeqdi_t): Likewise.
390         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
391          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
392          ex_group.
393         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
395         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
397         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
398         break.
400         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
402         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
403         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
404         necessary.
405         (output_dfa_start_func): Initiate new variable insn_codes_length,
406         (write_automata): Output definition of the new variable.
408         2001-10-02  David S. Miller  <davem@redhat.com>
410         * haifa-sched.c (advance_one_cycle): New function.
411         (schedule_block): Use it.
412         (queue_to_ready): Use it, and also make sure to advance the DFA
413         state on all stall cycles, not just those where insn_queue links
414         are found.
416         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
418         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
419         non-zero if the highest-priority instruction could be scheduled.
420         (choose_ready): Remove last argument from max_issue call.
422         2001-09-28  David S. Miller  <davem@redhat.com>
424         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
425         ultrasparc and 3 for other multi-issue sparcs.
427         2001-09-27  David S. Miller  <davem@redhat.com>
429         * config/sparc/sparc.md (cycle_display): New pattern.
430         * config/sparc/sparc.c (sparc_cycle_display): New.
431         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
433         2001-09-25  David S. Miller  <davem@redhat.com>
435         Convert all of Sparc scheduling to DFA
436         * config/sparc/sparc.md: Kill all define_function_unit
437         directives and replace with DFA equivalent.
438         * config/sparc/sparc.c (ultrasparc_adjust_cost,
439         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
440         ultra_fpmode_conflict_exists, ultra_find_type,
441         ultra_build_types_avail, ultra_flush_pipeline,
442         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
443         ultrasparc_variable_issue, ultrasparc_sched_init,
444         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
445         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
446         ultra_cur_hist, ultra_cycles_elapsed): Kill.
447         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
448         ultrasparc_store_bypass_p): New.
449         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
450         Declare.
452         2001-09-24  David S. Miller  <davem@redhat.com>
454         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
455         ready->vec[foo] not ready[foo].
457         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
459         * doc/md.texi: Correct examples for define_insn_reservations
460         `mult' and `div'.
462         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
464         * genautomata.c (create_automata): Print message about creation of
465         each automaton.
466         (generate): Remove printing meease about creation of
467         automata.
469         2001-09-05  David S. Miller  <davem@redhat.com>
471         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
472         * config/sparc/linux64.h: Likewise.
474         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
476         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
477         schedule_block, sched_init, sched_finish): Add missed calls of
478         use_dfa_pipeline_interface.
480         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
481         Ditto.
483         * sched-vis.c (get_visual_tbl_length): Ditto.
485         2001-08-27  Richard Henderson  <rth@redhat.com>
487         * genattr.c (main): Emit state_t even when not doing scheduling.
489         2001-08-27  Richard Henderson  <rth@redhat.com>
491         * genautomata.c (expand_automata): Always create a description.
493         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
495         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
496         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
497         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
498         RTL constructions.
500         * genattr.c (main): New variable num_insn_reservations.  Increase
501         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
502         pipeline hazard recognizer interface.
504         * genattrtab.h: New file.
506         * genattrtab.c: Include genattrtab.h.
507         (attr_printf, check_attr_test, make_internal_attr,
508         make_numeric_value): Move protypes into genattrtab.h.  Define them
509         as external.
510         (num_dfa_decls): New global variable.
511         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
512         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
513         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
514         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
516         * genautomata.c: New file.
518         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
520         * sched-int.h: (curr_state): Add the external definition for
521         automaton pipeline interface.
522         (haifa_insn_data): Add comments for members blockage and units.
524         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
525         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
526         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
527         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
528         TARGET_SCHED_DFA_POST_CYCLE_INSN,
529         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
530         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
531         macros.
532         (TARGET_SCHED): Use the new macros.
534         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
535         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
536         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
537         dfa_bubble): New members in gcc_target.sched.
539         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
540         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
541         (insn_queue): Redefine it as pointer to array.
542         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
543         INSN_QUEUE_SIZE.
544         (max_insn_queue_index_macro_value): New variable.
545         (curr_state, dfa_state_size, ready_try): New varaibles for
546         automaton interface.
547         (ready_element, ready_remove, max_issue): New function prototypes
548         for automaton interface.
549         (choose_ready): New function prototype.
550         (insn_unit, blockage_range): Add comments.
551         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
552         FUNCTION_UNITS_SIZE == 0.
553         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
554         actual_hazard, potential_hazard): Add comments.
555         (insn_cost): Use cost -1 as undefined value.  Remove
556         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
557         pipeline interface.
558         (ready_element, ready_remove): New functions for automaton
559         interface.
560         (schedule_insn): Add new code for automaton pipeline interface.
561         (queue_to_ready): Add new code for automaton pipeline interface.
562         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
563         (debug_ready_list): Print newline when the queue is empty.
564         (max_issue): New function for automaton pipeline interface.
565         (choose_ready): New function.
566         (schedule_block): Add new code for automaton pipeline interface.
567         Print ready list before scheduling each insn.
568         (sched_init): Add new code for automaton pipeline interface.
569         Initiate insn cost by -1.
570         (sched_finish): Free the current automaton state and finalize
571         automaton pipeline interface.
573         * sched-rgn.c: Include target.h.
574         (init_ready_list, new_ready, debug_dependencies): Add new code for
575         automaton pipeline interface.
577         * sched-vis.c: Include target.h.
578         (get_visual_tbl_length): Add code for automaton interface.
579         (target_units, print_block_visualization):  Add comments.
581         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
582         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
583         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
584         (getruntime.o, genautomata.o): New entries.
585         (genattrtab.o): Add new dependency file genattrtab.h.
586         (genattrtab): Add new dependencies.  Link it with `libm.a'.
587         (getruntime.o, hashtab.o): New entries for canadian cross.
589         * doc/md.texi: Description of automaton based model.
591         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
592         Add comments.
593         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
594         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
595         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
596         TARGET_SCHED_DFA_POST_CYCLE_INSN,
597         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
598         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
599         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
600         hook descriptions.
601         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
602         MAX_DFA_ISSUE_RATE): New macro descriptions.
604         * doc/contrib.texi: Add dfa based scheduler contribution.
606         * doc/gcc.texi: Add more information about genattrtab.
608 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
610         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
611         adjust_address_nv call.
613 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
615         * doc/install.texi (Testing): Provide additional information, and
616         a stronger encouragement, for running the testsuites.
618 2002-04-29  DJ Delorie  <dj@redhat.com>
620         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
621         given in upper case.
623 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
625         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
626         Solaris 2 <widec.h> if missing.
627         * fixinc/fixincl.x: Regenerate.
628         * fixinc/tests/base/widec.h: New file.
630 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
632         * toplev.c (f_options): Add "profile" switch so that
633         -fno-profile can be used to disable -p.
635 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
637         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
638         UV2DImode.
639         * tree.c (build_common_tree_nodes_2): Likewise.
640         * tree.h (enum tree_index): Likewise.
641         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
643         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
644         entries.
645         (init_mmx_sse_builtins): Initialize SSE2 builtins.
646         (ix86_expand_builtin): Add support for SSE2 builtins.
647         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
648         (VALID_SSE_REG_MODE): Use it.
649         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
650         (enum ix86_builtins): Add SSE2 builtins.
651         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
652         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
653         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
654         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
655         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
656         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
657         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
658         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
659         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
660         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
661         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
662         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
663         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
664         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
665         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
666         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
667         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
668         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
669         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
670         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
671         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
672         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
673         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
674         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
675         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
676         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
677         lfence_insn): New patterns.
678         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
679         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
681 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
683         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
685 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
687         * doc/contrib.texi (Contributors): Add Paolo Carlini and
688         Janis Johnson.
689         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
690         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
691         and CPU instead of cpu.
693 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
695         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
696         variables.
697         (lang_independent_options): Add -fif-conversion, -fif-conversion2
698         (rest_of_compilation): Do if conversion only when asked for.
699         (parse_options_and_default_flags): Set new variables to 1 for -O1
700         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
702 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
704         * i386.c (dbx64_register_map): Fix typo.
706 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
708         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
709         real_one_half, real_bb_freq_max): New static variables.
710         (debug_profile_bbauxs): Kill.
711         (process_note_predictions): Kill unused variable.
712         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
713         volatile double.
714         (propagate_freq): Use REAL_ARITHMETICS.
715         (estimate_bb_frequencies): Likevise; init new static variables.
716         * Makefile.in (predict.o): Add dependency on real.h
718 2002-04-28  David S. Miller  <davem@redhat.com>
720         PR target/6500
721         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
722         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
723         several {reads,writes} instead.
724         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
725         Define.
727 2002-04-27  David S. Miller  <davem@redhat.com>
729         PR target/6494
730         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
731         of the stack bias.
733         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
734         including signal.h and sys/ucontext.h, not needed.
736 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
738         * varasm.c (output_constant_def): Correct test for not calling
739         ENCODE_SECTION_INFO for INTEGER_CST.
741 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
743         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
744         keep most cases as function eval_token.
745         (eval_token): New function.
746         (_cpp_parse_expr): Read token here for improved diagnostics.
747         Don't use op_as_text.  Detect bad ':' here.
748         (reduce): Don't detect bad ':' here.
749         (op_as_text): Remove.
750         * cpphash.h (_cpp_test_assertion): Change prototype.
751         * cpplib.c (_cpp_test_assertion): Change prototype.
753 2002-04-28  Richard Henderson  <rth@redhat.com>
755         PR c/5154
756         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
757         (ggc_mark_rtx_children): New.
759 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
761         PR target/6496
762         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
763         after call peepholes for UltraSPARC.
764         (call + jump 64-bit peepholes): Remove.
766 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
768         PR c/6497
769         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
770         result as temporary value.
772 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
774         PR c++/6396
775         * toplev.c (rest_of_compilation): Only run regrename and copy
776         propagation if optimizing.
778 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
780         PR optimization/6475
781         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
782         register of REGNO_DECL (i).
783         * Makefile.in (reload1.o): Add $(TREE_H).
785 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
787         * cppexp.c (lex): Update to use state.skip_eval.
788         (struct op): Remove prio and flags members.
789         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
790         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
791         (LEFT_ASSOC): New macro.
792         (optab): New table of operator priorities and flags.
793         (SHIFT): Update.
794         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
795         malloc-ed parser stack.
796         (reduce): New; reduce the operator stack.
797         (_cpp_expand_op_stack): Expand the operator stack as necessary.
798         * cpphash.h (struct op): Predeclare.
799         (struct cpp_reader): New members op_stack, op_limit.
800         (struct lexer_state): New member skip_eval.
801         (_cpp_parse_expr): Update.
802         (_cpp_expand_op_stack): New.
803         * cpplib.c (do_if): Update.
804         * cppinit.c (cpp_create_reader): Create op stack.
805         (cpp_destroy): And destroy it.
806         * cpplib.h (CPP_LAST_CPP_OP): Correct.
807         (TTYPE_TABLE): Correct.
809 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
811         PR c/6343
812         * c-decl.c (duplicate_decls): Call merge_weak.
813         * c-pragma.c (apply_pragma_weak): Warn about misuse.
814         * output.h (merge_weak): Prototype merge_weak.
815         * varasm.c (merge_weak): New function.
816         (declare_weak): Make sure we don't give an error on VAR_DECLs.
817         Mark RTL with SYMBOL_REF_WEAK.
819 2002-04-27  Kurt Garloff <garloff@suse.de>
821         * tree-inline.c (inlinable_function_p): Improve heuristics
822         by using a smoother function to cut down allowable inlinable size.
823         * param.def: Add parameters max-inline-insns-single,
824         max-inline-slope, min-inline-insns that determine the exact
825         shape of the above function.
826         * param.h: Likewise.
828 2002-04-26  Richard Henderson  <rth@redhat.com>
830         * c-parse.in (malloced_yyss, malloced_yyvs): New.
831         (yyoverflow): Re-add.  Set them.
832         (free_parser_stacks): New.
833         * c-common.h: Declare it.
834         * c-lex.c (c_common_parse_file): Call it.
836 2002-04-26  Richard Henderson  <rth@redhat.com>
838         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
839         for fallthru search.
841 2002-04-26  Eric Christopher  <echristo@redhat.com>
843         PR optimization/3700
844         * config/mips/mips.c (mips_issue_rate): Define.  New function.
845         (TARGET_SCHED_ISSUE_RATE): Use.
847 2002-04-25  David S. Miller  <davem@redhat.com>
849         PR target/6422
850         * reorg.c (optimize_skip): Do not allow exception causing
851         instructions to be considered for delay slots.
852         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
853         (relax_delay_slots): Do not try to consider exception causing
854         instructions as redundant.
856 2002-04-26  Richard Henderson  <rth@redhat.com>
858         PR c/5225
859         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
861 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
863         PR bootstrap/6445
864         * config/i386/i386.md (untyped_call): Return the value in a float
865         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
866         TARGET_80387.
868 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
870         * tree.c (tree_int_cst_lt): Compare constants whose types differ
871         in unsigned-ness correctly.
873 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
875         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
876         portable runtime model.
878 2002-04-26  Richard Henderson  <rth@redhat.com>
880         * c-parse.in (yyoverflow): Revert.
882 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
883             Richard Henderson  <rth@redhat.com>
885         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
886         result as temporary value.
888 2002-04-26  Richard Henderson  <rth@redhat.com>
890         PR c/3581
891         * c-common.c (fix_string_type): Split out of ...
892         (combine_strings): ... here.  Take a varray, not a tree list.
893         (c_expand_builtin_printf): Use fix_string_type.
894         * c-common.h: Update decls.
895         * c-parse.in (string): Remove.  Update all uses to use STRING
896         instead, and not call combine_strings.
897         (yylexstring): New.
898         (_yylex): Use it.
899         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
900         (build_asm_stmt): Likewise.
901         * objc/objc-act.c (my_build_string): Use fix_string_type.
902         (build_objc_string_object): Build varray for combine_strings.
904 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
906         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
907         x86-64.
909 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
911         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
912         (HAVE_NO_R_OPERAND): Remove.
913         (HAVE_VALUE): Remove.
914         (op_to_prio): Update.
915         (UNARY): Don't alter flags.
916         (_cpp_parse_expr): want_value used to indicate whether
917         a number or unary operator is expected next.  Distinguish
918         unary and binary +/-.
919         (op_as_text): Update for unary operators.
921 2002-04-25  Richard Henderson  <rth@redhat.com>
923         PR c/2161
924         * c-parse.in (yyoverflow): New.
926 2002-04-25  Richard Henderson  <rth@redhat.com>
928         PR c/2098
929         * c-common.c (shorten_compare): Simplfy conditions leading to
930         the generation of a warning.
932 2002-04-25  Richard Henderson  <rth@redhat.com>
934         PR c/2035
935         * expmed.c (extract_bit_field): Fall through to generic code rather
936         than aborting on subreg special case.
938 2002-04-25  David S. Miller  <davem@redhat.com>
940         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
941         for DECL being NULL.
943 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
945         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
947 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
949         * c-decl.c (grokdeclarator): Remove outdated ??? note
950         on invalid declaration of flexible array members.
952 2002-04-25  Richard Henderson  <rth@redhat.com>
954         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
956 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
958         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
959         needed by the compiler, even if they are used as global regs.
961 2002-04-25  Matt Hiller  <hiller@redhat.com>
963         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
964         functions.
965         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
966         of the corresponding functions.
967         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
968         New prototypes.
970 2002-04-25  Matt Hiller  <hiller@redhat.com>
972         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
974         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
975         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
976         registers, adjust comment accordingly.
977         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
978         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
979         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
980         for coprocessor registers.
981         (ADDITIONAL_REGISTER_NAMES): Include
982         ALL_COP_ADDITIONAL_REGISTER_NAMES.
984         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
985         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
986         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
987         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
988         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
990         (mips_char_to_class): Adjust comment to include coprocessor
991         constraint letters.
993         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
994         New functions.
995         (mips_reg_names, mips_regno_to_class): Include coprocessor
996         information.
997         (mips_sw_reg_names): Ditto, make non-static.
998         (mips_move_1word): Handle moves to and from coprocessor registers.
999         (mips_move_2words): Handle moves to and from coprocessor
1000         registers.
1001         (mips_class_max_nregs, mips_register_move_cost): Handle
1002         coprocessor register classes.
1003         (override_options): Initialize mips_char_to_class and
1004         mips_hard_regno_mode_ok properly for coprocessor registers.
1006         * config/mips/mips.md (movdi_internal, movdi_internal2,
1007         movsi_internal1, movsi_internal2): Add constraint-sets for
1008         coprocessor registers.
1009         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
1010         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
1011         isn't mips.
1012         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
1013         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
1014         isn't mips.
1015         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
1016         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
1017         isn't mips.
1018         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
1019         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
1020         isn't mips.
1022         * doc/tm.texi: Document feature.
1024 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
1026         * integrate.c (function_attribute_inlinable_p): Simplify.
1027         Check the table pointer is not NULL.
1029 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
1031         * doc/c-tree.texi: Fix typo in introduction.
1033 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
1035         * c-common.h (c_common_parse_file): Update.
1036         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
1037         * c-lex.c (YYDEBUG): Get from c-lex.h.
1038         (c_common_parse_file): Update.
1039         * c-lex.h (YYDEBUG, yydebug): New.
1040         * c-parse.in (YYDEBUG): Get from c-lex.h.
1041         (c_set_yydebug): Remove.
1042         * c-tree.h (c_set_yydebug): Remove.
1043         * langhooks-def.h (lhd_do_nothing_i): New.
1044         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
1045         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
1046         * langhooks.c  (lhd_do_nothing_i): New.
1047         (lhd_set_yydebug): Remove.
1048         * langhooks.h (struct lang_hooks): Update.
1049         * toplev.c (set_yydebug): New.
1050         (compile_file): Update call to parse_file hook.
1051         (decode_d_option): Update.
1052 objc:
1053         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
1055 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
1057         * loop.c (load_mems): Don't change the interface of called functions.
1059         * calls.c (expand_call): Take current_function_pretend_args_size
1060         into account when setting argblock for sibcalls.
1062 2002-04-24  Matt Hiller  <hiller@redhat.com>
1064         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
1065         * c-lex.c: Ditto.
1067         * cpplex.c (skip_line_comment): Process comment one multibyte
1068         character at a time rather than one char at a time, if
1069         appropriate.
1070         (parse_string): Process string one multibyte character at a time
1071         rather than one char at a time, if appropriate.
1072         * c-lex.c (lex_string): Lex and copy multibyte strings
1073         appropriately.
1074         * cpplib.h (cppchar_t): Change to unsigned.
1076 2002-04-24  Richard Henderson  <rth@redhat.com>
1078         PR c/3467
1079         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
1080         for c99.
1082 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
1084         * sh.c (sh_va_arg): If argument was passed by reference,
1085         dereference the pointer.
1087         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
1089         * sh.md (divsi3_i4_media): Use match_operand for input values
1090         rather than hard registers.
1091         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
1092         unnecessarily through hard registers.  Keep copies of pseudo
1093         registers outside of the libcall sequence.
1095         * sh.md (casesi_shift_media): Add modes.
1097         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
1098         values in memory.
1100 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
1102         * attribs.c (c_common_attribute_table): Move table and handlers
1103         to c-common.c.
1104         (format_attribute_table, lang_attribute_table,
1105         lang_attribute_common): Remove.
1106         (init_attributes): Replace NULL pointers with pointers to the
1107         empty table.
1108         (handle_packed_attribute, handle_nocommon_attribute,
1109         handle_common_attribute, handle_noreturn_attribute,
1110         handle_noinline_attribute, handle_always_inline_attribute,
1111         handle_used_attribute, handle_unused_attribute,
1112         handle_const_attribute, handle_transparent_union_attribute,
1113         handle_constructor_attribute, handle_destructor_attribute,
1114         handle_mode_attribute, handle_section_attribute,
1115         handle_aligned_attribute, handle_weak_attribute,
1116         handle_alias_attribute, handle_visibility_attribute,
1117         handle_no_instrument_function_attribute, handle_malloc_attribute,
1118         handle_no_limit_stack_attribute, handle_pure_attribute,
1119         handle_deprecated_attribute, handle_vector_size_attribute,
1120         vector_size_helper): Move to c-common.c.
1121         * c-common.c (c_common_attribute_table,
1122         handle_packed_attribute, handle_nocommon_attribute,
1123         handle_common_attribute, handle_noreturn_attribute,
1124         handle_noinline_attribute, handle_always_inline_attribute,
1125         handle_used_attribute, handle_unused_attribute,
1126         handle_const_attribute, handle_transparent_union_attribute,
1127         handle_constructor_attribute, handle_destructor_attribute,
1128         handle_mode_attribute, handle_section_attribute,
1129         handle_aligned_attribute, handle_weak_attribute,
1130         handle_alias_attribute, handle_visibility_attribute,
1131         handle_no_instrument_function_attribute, handle_malloc_attribute,
1132         handle_no_limit_stack_attribute, handle_pure_attribute,
1133         handle_deprecated_attribute, handle_vector_size_attribute,
1134         vector_size_helper): Move from attribs.c.
1135         * c-common.h (c_common_attribute_table,
1136         c_common_format_attribute_table): New.
1137         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
1138         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
1139         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
1140         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
1141         (LANG_HOOKS_INITIALIZER): Update.
1142         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
1143         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
1144         * target.h: Update comment.
1145         * tree.c (default_target_attribute_table): Remove.
1146         * tree.h (default_target_attribute_table, format_attribute_table,
1147         lang_attribute_table, lang_attribute_common): Remove.
1148 objc:
1149         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
1150         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
1152 2002-04-24  Jason Merrill  <jason@redhat.com>
1154         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
1155         * dwarf2out.c (dwarf_attr_name): Support it.
1156         (gen_array_type_die): Emit it.
1157         (lookup_type_die): No special handling for VECTOR_TYPE.
1158         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
1160 2002-04-24  Richard Henderson  <rth@redhat.com>
1162         * config/mips/mips.md (movdi_usd): Renumber.
1164 2002-04-24  David S. Miller  <davem@redhat.com>
1166         PR target/6420
1167         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
1168         32-bit Sparc and current_function_returns_struct is true.
1170 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
1172         * loop.c (canonicalize_condition): Use gen_int_mode.
1174 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
1176         * config/rs6000/altivec.h: Cleanup file.  Add non individual
1177         variants.
1178         (vec_vaddubm): New.
1179         (vec_vadduhm): New.
1180         (vec_vadduwm): New.
1181         (vec_vaddfp): New.
1182         (vec_vaddcuw): New.
1183         (vec_vaddubs): New.
1184         (vec_vaddsbs): New.
1185         (vec_vadduhs): New.
1186         (vec_vadduws): New.
1187         (vec_vaddsws): New.
1188         (vec_vand): New.
1189         (vec_vandc): New.
1190         (vec_vavgub): New.
1191         (vec_vavgsb): New.
1192         (vec_vavguh): New.
1193         (vec_vavgsh): New.
1194         (vec_vavguw): New.
1195         (vec_vavgsw): New.
1196         (vec_vrfip): New.
1197         (vec_vcmpbfp): New.
1198         (vec_vcmpequb): New.
1199         (vec_vcmpequh): New.
1200         (vec_vcmpequw): New.
1201         (vec_vcmpeqfp): New.
1202         (vec_vcmpgefp): New.
1203         (vec_vcmpgtub): New.
1204         (vec_vcmpgtsb): New.
1205         (vec_vcmpgtuh): New.
1206         (vec_vcmpgtsh): New.
1207         (vec_vcmpgtuw): New.
1208         (vec_vcmpgtsw): New.
1209         (vec_vcmpgtfp): New.
1210         (vec_vcmpgefp): New.
1211         (vec_vcfux): New.
1212         (vec_vcfsx): New.
1213         (vec_vctsxs): New.
1214         (vec_vctuxs): New.
1215         (vec_vexptefp): New.
1216         (vec_vrfim): New.
1217         (vec_lvx): New.
1218         (vec_lvebx): New.
1219         (vec_lvehx): New.
1220         (vec_lde): Add vector float variant.
1221         (vec_lvewx): New.
1222         (vec_lvxl): New.
1223         (vec_vlogefp): New.
1224         (vec_vmaddfp): New.
1225         (vec_vmhaddshs): New.
1226         (vec_vmaxub): New.
1227         (vec_vmaxsb): New.
1228         (vec_vmaxuh): New.
1229         (vec_vmaxsh): New.
1230         (vec_vmaxuw): New.
1231         (vec_vmaxsw): New.
1232         (vec_vmaxsw): New.
1233         (vec_vmaxfp): New.
1234         (vec_vmrghb): New.
1235         (vec_vmrghh): New.
1236         (vec_vmrghw): New.
1237         (vec_vmrglb): New.
1238         (vec_vmrglh): New.
1239         (vec_vmrglw): New.
1240         (vec_vminub): New.
1241         (vec_vminsb): New.
1242         (vec_vminuh): New.
1243         (vec_vminsh): New.
1244         (vec_vminuw): New.
1245         (vec_vminsw): New.
1246         (vec_vminfp): New.
1247         (vec_vmladduhm): New.
1248         (vec_vmhraddshs): New.
1249         (vec_msumubm): New.
1250         (vec_vmsummbm): New.
1251         (vec_vmsumuhm): New.
1252         (vec_vmsumshm): New.
1253         (vec_vmsumuhs): New.
1254         (vec_vmsumshs): New.
1255         (vec_vmuleub): New.
1256         (vec_vmulesb): New.
1257         (vec_vmuleuh): New.
1258         (vec_vmulesh): New.
1259         (vec_vmuloub): New.
1260         (vec_mulosb): New.
1261         (vec_vmulouh): New.
1262         (vec_vmulosh): New.
1263         (vec_vnmsubfp): New.
1264         (vec_vnor): New.
1265         (vec_vor): New.
1266         (vec_vpkuhum): New.
1267         (vec_vpkuwum): New.
1268         (vec_vpkpx): New.
1269         (vec_vpkuhus): New.
1270         (vec_vpkshss): New.
1271         (vec_vpkuwus): New.
1272         (vec_vpkswss): New.
1273         (vec_vpkshus): New.
1274         (vec_vpkswus): New.
1275         (vec_vperm): New.
1276         (vec_vrefp): New.
1277         (vec_vrlb): New.
1278         (vec_vrlh): New.
1279         (vec_vrlw): New.
1280         (vec_vrfin): New.
1281         (vec_vrsqrtefp): New.
1282         (vec_vsel): New.
1283         (vec_vslb): New.
1284         (vec_vslh): New.
1285         (vec_vslw): New.
1286         (vec_vsldoi): New.
1287         (vec_vsl): New.
1288         (vec_vslo): New.
1289         (vec_vspltb): New.
1290         (vec_vsplth): New.
1291         (vec_vspltw): New.
1292         (vec_vspltisb): New.
1293         (vec_vspltish): New.
1294         (vec_vspltisw): New.
1295         (vec_vsrb): New.
1296         (vec_vsrh): New.
1297         (vec_vsrw): New.
1298         (vec_vsrab): New.
1299         (vec_vsrah): New.
1300         (vec_vsraw): New.
1301         (vec_vsr): New.
1302         (vec_vsro): New.
1303         (vec_stvx): New.
1304         (vec_stvebx): New.
1305         (vec_stvehx): New.
1306         (vec_stvewx): New.
1307         (vec_stvxl): New.
1308         (vec_vsububm): New.
1309         (vec_vsubuhm): New.
1310         (vec_vsubuwm): New.
1311         (vec_vsubfp): New.
1312         (vec_vsubcuw): New.
1313         (vec_vsububs): New.
1314         (vec_vsubsbs): New.
1315         (vec_vsubuhs): New.
1316         (vec_vsubshs): New.
1317         (vec_vsubuws): New.
1318         (vec_vsubsws): New.
1319         (vec_vsum4ubs): New.
1320         (vec_vsum4sbs): New.
1321         (vec_vsum4shs): New.
1322         (vec_vsum2sws): New.
1323         (vec_vsumsws): New.
1324         (vec_vrfiz): New.
1325         (vec_vupkhsb): New.
1326         (vec_vupkhpx): New.
1327         (vec_vupkhsh): New.
1328         (vec_vupklsb): New.
1329         (vec_vupklpx): New.
1330         (vec_vupklsh): New.
1331         (vec_vxor): New.
1333 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
1335         PR c/5430
1336         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
1337         added literals from substracted literals.
1338         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
1339         (fold) [associate]: Preserve MINUS_EXPR if needed.
1341 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
1343         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
1344         are obsoleted.
1346 2002-04-23  Tom Tromey  <tromey@redhat.com>
1348         * gcc.c: Added --resource.  For PR java/6314.
1350 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
1352         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
1353         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
1354         these libraries.
1356 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
1358         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
1360 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
1362         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
1363         workaround.
1364         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
1365         (ix86_expand_clrstr): Fix typo.
1366         * loop.c (gen_load_of_final_value): New.
1367         (loop_givs_rescan, strength_reduce, check_dbra_loop):
1368         Use it.
1370 2002-04-23  Roger Sayle  <roger@eyesopen.com>
1372         * builtins.c (builtin_memset_gen_str): New function.
1373         (expand_builtin_memset): Optimize the case of constant length, but
1374         unknown value.
1376 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
1378         * config/rs6000/altivec.h (vec_step): Remove extraneous
1379         parentheses.
1380         (vec_ctu): Cast return.
1382 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
1384         PR target/6413
1385         * function.h: (struct function): Add profile_label_no field.
1386         (current_function_profile_label_no): Define.
1387         * function.c: (profile_label_no): New static var.
1388         (expand_function_start): Increment it, and copy to
1389         current_function_profile_label_no.
1390         * output.h (profile_label_no): Delete.
1391         * final.c (profile_label_no): Delete.
1392         (profile_function): Use current_function_profile_label_no.
1393         (final_end_function): Don't increment profile_label_no here.
1394         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
1395         profile_label_no with current_function_profile_label_no.
1396         * config/pa/pa.c (current_function_number): Delete.
1397         (pa_output_function_prologue): Don't output profile label here.
1398         (hppa_profile_hook): Use label_no param rather than
1399         current_function_number.
1400         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
1401         * config/pa/pa.h: .. here.
1402         (FUNCTION_PROFILER): Output profile label here.
1404 2002-04-22  Eric Christopher  <echristo@redhat.com>
1406         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
1407         patch of 2002-04-09 due to binutils issues.
1408         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
1410 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
1412         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
1413         constraint to 'o' for m=r and r=m alternatives.
1414         ("*movv8hi_internal1"): Same.
1415         ("*movv16qi_internal1"): Same.
1416         ("*movv4sf_internal1"): Same.
1418 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
1420         * rtl.h (RTX_FLAG): New macro.
1421         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
1422         * final.c (alter_subreg): Use macro to access rtx flag.
1423         * integrate.c (copy_rtx_and_substitute): Use new access macro.
1424         * print-rtl.c (print_rtx): Use new access macro.
1426         * cse.c (insert): Check rtx code before accessing flag.
1428         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
1429         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
1430         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
1431         convert_const_symbol_ref, make_canonical, make_alternative_compare,
1432         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
1433         simplify_test_exp, optimize_attrs, simplify_by_exploding,
1434         find_and_mark_used_attributes, unmark_used_attributes,
1435         add_values_to_cover, simplify_with_current_value,
1436         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
1437         copy_rtx_unchanging, main): Use new access macros.
1439 2002-04-22  Tom Rix  <trix@redhat.com>
1441         * expmed.c (init_expmed): Generate shifted constant once.
1443 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
1445         * c-lex.c (lex_charconst): Call convert to get constant in
1446         proper type; don't just smash the type field.
1447         Fixes PR c/6300.
1449         * config.gcc: Add list of obsolete configurations.  Disallow
1450         building these without --enable-obsolete.
1451         * doc/install.texi: Document --enable-obsolete and obsoletion
1452         policy.  Mention obsoletion of individual targets in
1453         appropriate places.
1455 2002-04-22  Richard Henderson  <rth@redhat.com>
1457         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
1459 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
1461         PR f/6138.
1462         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
1463         (walk_fixup_memory_subreg): Likewise.
1464         (fixup_var_refs_insn): Adjust accordingly.
1465         (fixup_var_refs_1): Likewise.
1467 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
1469         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
1470         LIBPATH_ARCH64_SPEC): Define.
1471         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
1472         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
1473         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
1474         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
1476 2002-04-22      Joel Sherrill <joel@OARcorp.com>
1478         * gthr-rtems.h: Correct prototypes to remove warnings.
1480 2002-04-22  Richard Henderson  <rth@redhat.com>
1482         PR c/6344
1483         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
1485         * gcse.c (free_insn_expr_list_list): New.
1486         (clear_modify_mem_tables): Use it.  Fix bit set usage.
1487         (canon_list_insert): Use EXPR_LISTs for expressions.
1488         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
1490 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
1492         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
1493         file change and include code to _cpp_pop_buffer.
1494         * cpphash.h (struct pending_option): Predeclare.
1495         (struct cpp_reader): New member next_include_file.
1496         (_cpp_pop_file_buffer): Update.
1497         (_cpp_push_next_buffer): Update, rename.
1498         * cppinit.c (cpp_destroy): Free include chain and pending here.
1499         (cpp_finish_options): Simplify.
1500         (_cpp_push_next_buffer): Rename and clean up.
1501         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
1502         Clarify.
1503         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
1505 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
1507         * config/rs6000/altivec.h (vec_xor): Add variant for both args
1508         being vector signed int.
1509         (vec_andc): Same.
1510         (vec_xor): Add variant for both args being vector signed char.
1511         Remove redundant variant.
1512         (vec_andc): Same.
1514 2002-04-21  David S. Miller  <davem@redhat.com>
1516         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
1517         compare mode in output RTL.
1519 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
1521         * config/rs6000/rs6000.c (rs6000_override_options): Correct
1522         style and formatting of previous patch.
1524 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
1526         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
1527         flag_pic for ABI_AIX.
1529 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
1531         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
1532         * cppfiles.c (read_include_file): Similarly.
1533         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
1534         uxstrdup ustrchr, ufputs): Similarly.
1535         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
1536         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
1537         cpp_ideq, parse_identifier, parse_number): Similarly.
1538         * cpplib.c (struct directive, dequote_string, D, run_directive,
1539         cpp_push_buffer): Similarly.
1540         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
1541         _cpp_create_definition, check_trad_stringification,
1542         cpp_macro_definition): Similarly.
1544 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
1546         * cppmacro.c (funlike_invocation_p): Don't step back
1547         over CPP_EOF.
1549 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
1551         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
1552         labelno.
1554 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
1556         * doc/invoke.texi: Remove Chill references.
1557         * doc/gcc.texi: Update last modified date.
1559 2002-04-20  Kazu Hirata  <kazu@hxi.com>
1561         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
1562         push and pop.  Replace add.l with add.w.
1564 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1566         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
1567         multiply instructions for H8/300H case.
1569 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1571         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
1572         Bum three instructions from each routine.
1574 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
1576         * Makefile.in: Update.
1577         * decl.c (push_c_function_context, pop_c_function_context,
1578         mark_c_function_context): Rename for consistency.
1579         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
1580         * c-tree.h (push_c_function_context, pop_c_function_context,
1581         mark_c_function_context): Rename for consistency.
1582         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1583         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
1584         * function.c (init_lang_status, save_lang_status,
1585         restore_lang_status, mark_lang_status, free_lang_status):
1586         Move to langhooks.h.
1587         (push_function_context_to, pop_function_context_from,
1588         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
1589         Update.
1590         * function.h (init_lang_status, save_lang_status,
1591         restore_lang_status, mark_lang_status, free_lang_status):
1592         Move to langhooks.h.
1593         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
1594         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
1595         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
1596         LANG_HOOKS_FUNCTION_INITIALIZER): New.
1597         (LANG_HOOKS_INITIALIZER): Update.
1598         (lhd_do_nothing_f): New.
1599         * langhooks.h (struct lang_hooks_for_functions): New.
1600         (struct lang_hooks): New hooks.
1601         * langhooks.c (lhd_do_nothing_f): New.
1602 objc:
1603         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1604         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
1606 2002-04-19  David S. Miller  <davem@redhat.com>
1608         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
1609         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
1611 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
1613         PR optimization/3756
1614         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
1615         x = ((int) y < 0) ? cst1 : cst2.
1617 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
1619         PR c/6358
1620         * function.c: Reapply patch for c/6358.
1621         (expand_function_end): Copy decl_rtl's mode, not
1622         current_function_return_rtx mode.
1624 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
1626         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
1627         targets.
1629 2002-04-19  Tom Tromey  <tromey@redhat.com>
1631         * doc/install.texi (Specific): Update status of Solaris 2.8.
1632         For PR libgcj/6158.
1634 2002-04-19  Andreas Schwab  <schwab@suse.de>
1636         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
1637         (PUT_REAL): Restore old definition.
1639 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
1640             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1642         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
1643         binutils 2.11.2 and higher generate smaller binaries than Sun's
1644         native tools.
1646 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
1648         PR c++/6352
1649         * toplev.c (rest_of_compilation): Do not defer functions for which
1650         TREE_SYMBOL_REFERENCED has already been set.
1652 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
1654         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
1655         alternative.
1657 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
1659         * builtins.c: Include langhooks.h.
1660         (lang_type_promotes_to): Remove.
1661         (expand_builtin_va_arg): Use new hook.
1662         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
1663         (simple_type_promotes_to): Move to c-typeck.c.
1664         * c-common.h (simple_type_promotes_to): Remove.
1665         * c-decl.c (duplicate_decls, grokdeclarator): Update.
1666         * c-format.c: Include langhooks.h.
1667         (check_format_types): Update.
1668         * c-tree.h (c_type_promotes_to): New.
1669         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
1670         (type_lists_compatible_p): Update.
1671         * langhooks-def.h (lhd_type_promotes_to): New.
1672         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
1673         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
1674         * langhooks.c (lhd_type_promotes_to): New.
1675         * langhooks.h (struct lang_hooks_for_types): New hook.
1676         * tree.h (lang_type_promotes_to): Remove.
1677 objc:
1678         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
1680 2002-04-18  Richard Henderson  <rth@redhat.com>
1682         * function.c: Revert patch for c/6358.
1684 2002-04-18  Richard Henderson  <rth@redhat.com>
1686         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
1687         blocks.  Handle multiple references to the TRAP block.  Handle
1688         non-adjacent THEN and OTHER blocks.
1690 2002-04-18  Richard Henderson  <rth@redhat.com>
1692         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
1693         crash with no type for by-mode libcalls.
1695         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
1697 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
1699         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
1700         __xtensa_nonlocal_goto): Use a syscall instructions to flush
1701         the register windows.
1703 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
1705         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
1706         appropriate.  Document need for extended precision even when
1707         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
1708         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
1709         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
1710         instead of relying on later syntax error when REAL_WIDTH > 5.
1711         * real.c: Define NE based only on whether or not we have a
1712         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
1713         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
1714         define GET_REAL and PUT_REAL as simple memcpy operations; no
1715         need to byteswap or round.
1716         Use #error instead of #ifdef-ing out the entire file, for
1717         prompt error detection.
1719         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
1721 2002-04-18  David S. Miller  <davem@redhat.com>
1723         * config/sparc/sparc.h (BRANCH_COST): Define.
1725         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
1726         does it.
1728 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
1730         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
1731         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
1732         propagate_block calls after relaxation loop using new variable
1733         stabilized_prop_flags.
1735 2002-04-18  Richard Henderson  <rth@redhat.com>
1737         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
1738         (ia64_va_arg): Expect variable sized types by reference.
1739         * config/ia64/ia64-protos.h: Update.
1740         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
1741         ia64_function_arg_pass_by_reference.
1743 2002-04-18  Richard Henderson  <rth@redhat.com>
1745         * ifcvt.c: Include except.h.
1746         (block_has_only_trap): Break out from find_cond_trap.
1747         (find_cond_trap): Use it.  Always delete the trap block.
1748         (merge_if_block): Allow then block null.  Be less simplistic about
1749         what insns can end a block.
1750         * Makefile.in (ifcvt.o): Depend on except.h.
1752         * config/ia64/ia64.md (trap, conditional_trap): New.
1754 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
1756         PR c/6358
1757         * function.c (assign_parms): Assign hard current_function_return_rtx
1758         register here...
1759         (expand_function_end): ...not here.
1761 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
1763         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
1764         * c-tree.h (c_incomplete_type_error): New.
1765         * c-typeck.c (require_complete_type, build_component_ref): Update.
1766         (incomplete_type_error): Rename.
1767         * langhooks-def.h (lhd_incomplete_type_error): New.
1768         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
1769         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
1770         * langhooks.c (lhd_incomplete_type_error): New.
1771         * langhooks.h (struct lang_hooks_for_types): New hook.
1772         * tree.c (size_in_bytes): Use new hook.
1773         * tree.h (incomplete_type_error): Remove.
1774 objc:
1775         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
1777 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
1779         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
1780         TARGET_FLOAT_FORMAT blocks.
1782 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1784         * doc/install.texi (Downloading the source): Do not mention Chill
1785         any longer, but mention Ada.
1786         (Configuration): Do not mention Chill any longer.
1788 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
1790         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
1792 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
1794         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
1795         in last patch.
1797 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
1799         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
1800         instead of unsigned_type.
1802 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
1804         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
1805         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
1806         later.
1808 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
1810         * attribs.c (vector_type_node_list): New static variable.
1811         (handle_vector_size_attribute): Use it to avoid generating a
1812         new type node each time we are called.
1814         * combine.c (subst): Avoid trying to make a vector mode subreg of
1815         an integer constant.
1816         (gen_lowpart_for_combine): Likewise.
1818 2002-04-18  Roger Sayle  <roger@eyesopen.com>
1819             Jakub Jelinek  <jakub@redhat.com>
1821         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
1822         for integer constant c (if x has unsigned type or sign bit is not
1823         set in c).  This folds the zero/sign extension into the bit-wise and
1824         operation.
1826 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
1828         PR middle-end/6205
1829         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
1830         otherwise xorps.
1832 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
1834         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
1836 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
1838         * gcc.c (read_specs): Detect and fail if an attempt is made to
1839         rename a spec string to an already existing string.
1841 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
1843         * config/s390/s390.c (legitimize_pic_address): Do not generate
1844         illegal address constant without CONST.
1846 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1848         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
1849         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1851 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
1853         PR optimization/6305
1854         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
1855         to make sure previous reloads are taken into account.  Generate
1856         better code if one operand is an in-range immediate constant.
1858 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
1860         * doc/install.texi (Building): libgcj requires GNU make.
1862 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
1864         PR bootstrap/6315
1865         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
1866         even if hard quad and register is not floating.
1867         (movtf reg<-mem split): Disallow splitting if hard quad and
1868         register is floating.
1869         (movtf mem<-reg split): Likewise.
1870         * config/sparc/sparc.c (fp_register_operand): New predicate.
1871         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
1873 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
1875         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
1876         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
1877         (unprotoize.o): Ditto.  Build from protoize.c.  Define
1878         UNPROTOIZE on command line.
1879         * protoize.c: Include cppdefault.h.  Delete include_defaults.
1880         (in_system_include_dir): Use cpp_include_defaults (defined in
1881         cppdefault.o).
1882         * unprotoize.c: Delete file.
1884 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
1886         * config/rs6000/altivec.h (vec_ld): Add array variants.
1887         (vec_lde): Same.
1888         (vec_ldl): Same.
1890 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
1891             Aldy Hernandez <aldyh@redhat.com>
1893         * config/rs6000/altivec.h: Define __ALTIVEC__.
1894         (bool): New.
1895         (__pixel): New.
1896         (pixel): New.
1897         (vec_cfux): New.
1898         (vec_vmaddfp): New.
1899         (vec_vsldoi): New.
1900         Add parentheses to all macro arguments.
1902 2002-04-16  Richard Henderson  <rth@redhat.com>
1904         PR c++/6320
1905         * except.c (remove_eh_handler): Insert inner regions at beginning
1906         of sibling chain.  Refactor expressions.
1908 2002-04-16  Richard Henderson  <rth@redhat.com>
1910         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
1911         * config/sparc/sol2-gas-bi.h: New file.
1912         * config.gcc (sparc*-solaris): Add it as needed.
1913         * configure.in (AS_SPARC64_FLAG): Remove check.
1914         * config.in, configure: Regenerate.
1916         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
1918 2002-04-16  Richard Henderson  <rth@redhat.com>
1920         * config/mips/mips.c (override_options): Don't override N32 for
1921         a 64-bit ISA.
1923         PR 6202
1924         * config/mips/mips.md (can_delay): Split out of existing define_delays.
1925         (HILO_delay): Set can_delay false.
1927 2002-04-16  Dale Johannesen <dalej@apple.com>
1929         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
1930         instruction addresses.
1931         (rs6000_output_function_epilogue): Likewise.
1933 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
1935         * c-parse.in (poplevel, compstmt_start,
1936         compstmt_primary_start): Add ending ';', in accordance
1937         with POSIX.
1939 2002-04-16  Richard Henderson  <rth@redhat.com>
1941         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
1942         Adjust tm_file order to get TARGET_DEFAULT set properly.
1943         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
1944         * doc/install.texi (sparc-solaris): Update.
1946 2002-04-16  Dale Johannesen <dalej@apple.com>
1948         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
1949         comparison operands do not match each other or if modes of
1950         conditions do not match result.
1952 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
1954         PR target/6305
1955         * config/s390/s390.md (mulsidi3): Set both subregs of the
1956         multiword register.
1958 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
1960         * config/rs6000/altivec.h (vec_addc): Type check.
1962 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
1964         PR middle-end/6279
1965         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
1967         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
1969 2002-04-15  Richard Henderson  <rth@redhat.com>
1971         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
1972         call_really_used_regs too.
1974 2002-04-15  Richard Henderson  <rth@redhat.com>
1976         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
1978 2002-04-15  David S. Miller  <davem@redhat.com>
1980         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
1981         as being CLOBBERed.
1983 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
1985         PR c/6290
1986         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
1987         CONST_VECTOR is { 0, ... 0 }.
1989 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
1991         * doc/install.texi (Installing GCC: Configuration): Clarify
1992         the only supported ways to configure gcc.
1994 2002-04-15  Roland McGrath  <roland@frob.com>
1996         * config.gcc (alpha*-*-gnu*): New target configuration.
1997         * config/alpha/gnu.h: New file for it.
1998         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
2000 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
2002         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
2003         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
2004         * tree.h (expand_start_stmt_expr): Update prototype.
2005         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
2006         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
2007         on the STMT_EXPR created for the inline function.
2009 2002-04-15  Richard Henderson  <rth@redhat.com>
2011         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
2012         config/i386/linux-aout.h, config/i386/linux-oldld.h,
2013         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
2014         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
2015         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
2016         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
2017         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
2018         Define __gnu_linux__, not gnu_linux.
2019         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
2021 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
2023         Remove Chill front end.
2024         * gcc.c (default_compilers): Remove Chill entries.
2025         * ch: Remove directory.
2026         * doc/frontends.texi: Remove information about Chill.
2027         * doc/sourcebuild.texi: Likewise.
2028         * doc/standards.texi: Likewise.
2030 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
2032         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
2033         (LONGLONG_STANDALONE): Define.
2035 2002-04-15  David S. Miller  <davem@redhat.com>
2037         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
2038         Call emit_library_call with LCT_NORMAL.
2039         (sparc_initialize_trampoline): Use LCT_foo instead of
2040         magic constant in emit_library_call invocations.
2041         (sparc64_initialize_trampoline): Likewise.
2042         (sparc_profile_hook): Likewise.
2043         * config/sparc/sparc.md: Likewise.
2045         * config/sparc/sparc.c (sparc_extra_constraint_check):
2046         Fix type of argument 'c'.
2047         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
2048         Likewise.
2050 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
2052         * diagnostic.h (output_buffer_state): Redefine.
2053         (output_format_decoder): New macro.
2054         (output_prefixing_rule): Likewise.
2055         (output_line_cutoff): Likewise.
2056         (diagnostic_format_decoder): Adjust.
2057         (diagnostic_prefixing_rule): Likewise.
2058         (diagnostic_line_cutoff): Likewise.
2059         (diagnostic_state): Likewise.
2060         (diagnostic_kind_count): Likewise.
2061         (diagnostic_buffer): Now a macro.
2063         * diagnostic.c (diagnostic_buffer): Remove definition.
2064         (output_is_line_wrapping): Adjust.
2065         (set_real_maximum_length): Likewise.
2066         (output_set_maximum_length): Likewise.
2067         (init_output_buffer): Likewise.
2068         (lhd_print_error_function): Likewise.
2069         (output_do_verbatim): Likewise.
2071 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
2073         * cpperror.c (print_location): Don't print include chain
2074         if line == 0.
2075         (cpp_begin_message): Update to use DL_ macros.
2076         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
2077         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
2078         cpp_notice, cpp_notice_from_errno): Remove.
2079         (cpp_error, cpp_error_with_line): Update to take a diagnostic
2080         level.
2081         (cpp_errno): New.
2082         * cppexp.c (CPP_ICE): Remove.
2083         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
2084         lex, integer_overflow, _cpp_parse_expr): Update.
2085         * cppfiles.c (read_include_file, find_include_file,
2086         handle_missing_header, _cpp_read_file, remap_filename): Update.
2087         * cpphash.h (enum error_type): Remove.
2088         (_cpp_begin_message): Update.
2089         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
2090         cpp_handle_option, cpp_post_options): Update.
2091         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
2092         skip_whitespace, parse_identifier, parse_slow, parse_string,
2093         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
2094         cpp_interpret_charconst): Update.
2095         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
2096         lex_macro_node, do_undef, glue_header_name, parse_include,
2097         do_include_common, read_flag, do_line, do_linemarker, do_ident,
2098         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
2099         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
2100         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
2101         _cpp_pop_buffer, do_diagnostic): Update.
2102         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
2103         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
2104         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
2105         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
2106         cpp_notice, cpp_notice_from_errno): Remove.
2107         (cpp_error, cpp_error_with_line): Update to take a diagnostic
2108         level.
2109         (cpp_errno): New.
2110         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
2111         collect_args, enter_macro_context, save_parameter, parse_params,
2112         _cpp_create_definition, check_trad_stringification,
2113         cpp_macro_definition): Update.
2114         * cppmain.c (cpp_preprocess_file): Update.
2115         * fix-header.c (read_scan_file): Update.
2117 2002-04-14  Andreas Schwab  <schwab@suse.de>
2119         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
2121 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
2123         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
2125 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
2127         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
2128         not gnu_hurd.
2130 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
2132         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
2134 2002-04-13      Joel Sherrill <joel@OARcorp.com>
2136         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
2137         sparc-elf and sparc-rtems targets.
2139 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
2141         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
2142         defined, and __gnu_hurd__ wherever __GNU__ is defined.
2143         * arm/linux-elf.h: Likewise.
2144         * cris/aout.h: Likewise.
2145         * cris/linux.h: Likewise.
2146         * i370/linux.h: Likewise.
2147         * i386/gnu.h: Likewise.
2148         * i386/linux-aout.h: Likewise.
2149         * i386/linux-oldld.h: Likewise.
2150         * i386/linux.h: Likewise.
2151         * i386/linux64.h: Likewise.
2152         * ia64/linux.h: Likewise.
2153         * m68k/linux-aout.h: Likewise.
2154         * m68k/linux.h: Likewise.
2155         * mips/linux.h: Likewise.
2156         * pa/pa-linux.h: Likewise.
2157         * pj/linux.h: Likewise.
2158         * rs6000/sysv4.h: Likewise.
2159         * s390/linux.h: Likewise.
2160         * sh/linux.h: Likewise.
2161         * sparc/linux-aout.h: Likewise.
2162         * sparc/linux.h: Likewise.
2163         * sparc/linux64.h: Likewise.
2164         * xtensa/linux.h: Likewise.
2166 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
2168         * stmt.c (check_unique_operand_names): Expect operand names to
2169         be strings rather than identifiers.  Use simple_cst_equal to
2170         compare them.
2171         (resolve_operand_name_1): Make same identifier to string change here.
2172         * c-parse.in (asm_operand): Convert a named operand into a string.
2173         * cp/parse.y (asm_operand): Likewise.
2175 2002-04-13  Andreas Schwab  <schwab@suse.de>
2177         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
2179 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
2181         Revert these changes:
2183         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
2185         PR c++/5571
2186         * stor-layout.c (layout_decl): Reset the RTL for the decl.
2188 2002-04-12  Richard Henderson  <rth@redhat.com>
2190         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
2191         (sparc*-*-solaris): Clean up header files.
2192         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
2193         and plan on generating 64-bit code.
2194         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
2195         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
2196         * config/sparc/sol2-sld-64.h: Rename ...
2197         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
2198         for AS_SPARC64_FLAG not defined.
2199         * config/sparc/sol2-gld-bi.h: New.
2200         * config/sparc/sol2-sld.h: Remove.
2201         * config/sparc/sol26-sld.h: New.
2202         * config/sparc/sol2.h: Tidy comments.
2203         * doc/install.texi: Document sparc-solaris configury changes.
2205 2002-04-12  Richard Henderson  <rth@redhat.com>
2207         * recog.c (offsettable_address_p): Match the logic in adjust_address.
2209         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
2210         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
2212 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2214         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
2216 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
2218         * pa.c (pa_can_combine_p): Call extract_insn before calling
2219         constrain_operands.
2221 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
2223         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
2224         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
2225         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
2226         (CPP_PREDEFINES): Handle __declspec.
2227         * config/i386/t-interix (USER_H): Remove.
2229 2002-04-12  DJ Delorie  <dj@redhat.com>
2231         * integrate.c (compare_blocks): Make comparisons safe for when
2232         sizeof(int) < sizeof(char *).
2233         (find_block): Likewise.
2235 2002-04-12  Jan Hubicka  <jh@suse.cz>
2236             David Edelsohn  <edelsohn@gnu.org>
2238         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
2239         registers.
2240         (symbol_ref_operand): New.
2241         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
2242         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
2244 2002-04-12  Andreas Schwab  <schwab@suse.de>
2246         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
2247         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
2248         overrides the definition in config/svr4.h.
2250 2002-04-12      Eric Norum <eric.norum@usask.ca>
2252         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
2253         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
2254         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
2255         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
2256         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
2257         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
2258         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
2259         definitions to config/rtems.h and make the targets more similar.
2261 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2263         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
2264         POINTERS_EXTEND_UNSIGNED.
2265         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
2266         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
2268         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
2269         not specified.
2271 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
2273         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
2274         depends on TARGET_SHMEDIA, not TARGET_SH5.
2276 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
2278         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
2279         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
2281 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
2283         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
2284         no r0 clobber.
2286 2002-04-12  Andreas Schwab  <schwab@suse.de>
2288         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
2290 2002-04-12  Richard Henderson  <rth@redhat.com>
2292         PR bootstrap/4191
2293         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
2295         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
2296         modes spanning multiple hard regs.
2298         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
2300 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2302         * pa.c (pa_output_function_prologue): Don't accumulate the total
2303         number of code bytes when using TARGET_64BIT, or gas, SOM and not
2304         the portable runtime.
2305         (output_deferred_plabels): Handle 64bit plabels.
2306         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
2307         generating pic code using the GAS assembler for object formats that
2308         are not SOM (ie., ELF32 and ELF64).
2309         (output_millicode_call): Check attribute type if attribute length is 28.
2310         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
2311         dbr_sequence_length once.
2312         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
2313         dbr_sequence_length once.
2314         * pa.h (TARGET_SOM): Define if not defined.
2315         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
2316         with GAS and not SOM.
2317         (jump, call_internal_reg, call_value_internal_reg): Likewise.
2318         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
2320 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2322         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
2323         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
2324         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
2325         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
2326         elfos.h and dbxelf.h values are fine now.
2327         * config/i386/freebsd.h, config/alpha/freebsd.h
2328         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
2330 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2332         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
2333         or set Acpu or Amachine.  Reformat.
2334         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2335         define.
2336         (LINK_SPEC): Do not need to undef.
2337         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
2338         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
2339         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2340         define.
2341         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
2342         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
2343         (LINK_SPEC): Do not need to undef.
2344         (DONT_USE_BUILTIN_SETJMP): Do not define.
2345         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
2346         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
2347         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
2348         Remove trailing spaces.
2349         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
2350         __ELF__, or set Acpu or Amachine.  Reformat.
2351         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2352         define.
2354 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2356         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
2357         all other *-*-freebsd* targets.
2359 2002-04-11  Richard Henderson  <rth@redhat.com>
2361         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
2363 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2365         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
2366         Include {cpu}/{cpu}.h thru tm_file.
2367         (alpha*-*-linux*ecoff): Remove target.
2368         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
2369         (LINK_SPEC): Remove, is not OS independent.
2370         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
2371         (LINK_SPEC): Do not need to #undef any longer.
2372         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
2373         any longer.
2374         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
2375         __ELF__.
2376         (LINK_SPEC): Moved here from alpha/elf.h.
2377         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
2378         SUB_CPP_PREDEFINES.
2379         * config/alpha/linux-ecoff.h: Remove.
2380         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
2381         (CPP_SPEC): Define _POSIX_SOURCE as needed.
2382         (CPP_SUBTARGET_SPEC): Do not define.
2383         (LINK_SPEC): Do not need to #undef any longer.
2384         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
2385         * config/alpha/vms.h: Likewise.
2387 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
2389         * doc/extend.texi: Remove old claim that typedefs cannot have
2390         an alignment attribute.
2392 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
2394         PR optimization/6177
2395         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
2396         bitpos is 0 and bitsize CONCAT size.
2398 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
2400         PR c/6223
2401         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
2403 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
2405         * config/alpha/freebsd.h: Minor reformatting.
2406         (CPP_SPEC): Define ELF and add cpp_subtarget.
2407         (ASM_SPEC): No longer needed.
2409 2002-04-11  Richard Henderson  <rth@redhat.com>
2411         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
2412         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
2413         (dimode mem/zero splitter): New.
2415 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
2417         * config/cris/cris.c (cris_override_options): Tweak error message
2418         for PIC not implemented.
2420         * config/cris/cris.h: Tweak comments related to parameter-passing.
2422         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
2424 2002-04-10  Richard Henderson  <rth@redhat.com>
2426         * except.c (add_ehl_entry): Allow duplicates after landing pad
2427         creation.
2429 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
2431         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
2433 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
2435         * c-decl.c (c_init_decl_processing): Move generation of
2436         decls for g77_integer_type_node and friends from here ...
2437         * c-common.c (c_common_nodes_and_builtins): ... to here.
2439 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
2441         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
2442         is only used as frame pointer when frame_pointer_needed is true.
2444 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
2446         PR target/817
2447         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
2448         for the fact that the pool entry uses two words.
2449         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
2450         1k bytes.
2451         (movdf_soft_insn): Similarly.
2452         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
2453         for the fact that the pool entry uses three words.
2455 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
2457         * config/mips/mips.c (mips_va_arg): When using the struct version
2458         of the EABI va_list, allow arguments in the register save area to
2459         take up less room than a stack argument.
2461 2002-04-10  Richard Henderson  <rth@redhat.com>
2463         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
2464         if EXPAND_INITIALIZER.
2466 2002-04-09  Richard Henderson  <rth@redhat.com>
2468         * config/alpha/alpha.md (movdi_er_maybe_g): New.
2469         * config/alpha/alpha.c (alpha_expand_mov): Use it.
2471 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
2473         PR optimization/6233
2474         * rtlanal.c (pure_call_p): New function.
2475         * rtl.h (pure_call_p): Declare.
2476         * loop.c (prescan_loop): Use it to set has_nonconst_call.
2477         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
2479 2002-04-09  Eric Christopher  <echristo@redhat.com>
2481         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
2482         information to .comm directive.
2484 2002-04-09  Richard Henderson  <rth@redhat.com>
2486         PR c/5078
2487         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
2489 2002-04-09  Richard Henderson  <rth@redhat.com>
2491         * basic-block.h (flow_delete_block_noexpunge): Declare.
2492         (expunge_block_nocompact): Declare.
2493         * cfg.c (expunge_block_nocompact): Split out from ...
2494         (expunge_block): ... here.
2495         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
2496         (flow_delete_block_noexpunge): Split out from ...
2497         (flow_delete_block): ... here.
2498         * cfgcleanup.c (delete_unreachable_blocks): Compact while
2499         removing dead blocks.
2500         * except.c (exception_handler_labels): Remove.
2501         (exception_handler_label_map): New.
2502         (struct eh_region): Add aka member.
2503         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
2504         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
2505         (for_each_eh_label, for_each_eh_label_1): New.
2506         (init_eh): Register exception_handler_label_map.
2507         (free_eh_status): Use free_region.
2508         (find_exception_handler_labels): Use the map, not the list.
2509         (remove_exception_handler_label): Likewise.
2510         (maybe_remove_eh_handler): Likewise.
2511         (remove_eh_handler): Use the region aka bitmap.
2512         * except.h (exception_handler_labels): Remove.
2513         (for_each_eh_label): Declare.
2514         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
2515         * loop.c (invalidate_loops_containing_label): New.
2516         (find_and_verify_loops): Use it.  Use for_each_eh_label.
2517         * sched-rgn.c (is_cfg_nonregular): Use
2518         current_function_has_exception_handlers.
2520 2002-04-09  Richard Henderson  <rth@redhat.com>
2522         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
2523         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
2524         Do not return changed status.
2525         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
2526         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
2527         New functions that do return changed status.
2528         * sbitmap.h: Update decls.
2529         * gcse.c, lcm.c: Use _cg functions as needed.
2531 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
2533         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
2534         (sh64-*-elf*, sh-*-rtemself*): Likewise.
2535         * config/sh/embed_bb.c: New file.
2536         * config/sh/embed-elf.h: New file.
2537         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
2538         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
2539         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
2540         __PTRDIFF_TYPE__ .
2541         (SUBTARGET_CPP_PTR_SPEC): Don't define.
2542         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
2543         Add subtarget_asm_endian_spec.
2544         (ASM_SPEC): Use subtarget_asm_endian_spec.
2545         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
2546         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
2547         (WCHAR_UNSIGNED): Define.
2548         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
2549         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
2550         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
2551         Fix value.
2552         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
2553         (sh_adjust_cost): Likewise.
2554         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
2555         __PTRDIFF_TYPE__ .
2556         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
2557         (WCHAR_TYPE_SIZE): Likewise.
2558         (ASM_SPEC): Use subtarget_asm_endian_spec.
2559         (SH_ELF_WCHAR_TYPE): #undef/ #define.
2560         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
2561         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
2562         (MAX_WCHAR_TYPE_SIZE): Don't #define .
2563         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
2564         (USER_LABEL_PREFIX): Don't #undef /#define .
2565         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
2566         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
2567         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
2568         (ASM_SPEC): Likewise.
2569         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
2570         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
2571         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
2572         (LIB2FUNCS_EXTRA): Define.
2573         * t-sh64 (LIB2FUNCS_EXTRA): Define.
2574         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
2575         (LIB1ASMFUNCS_CACHE): Define.
2576         (LIB2FUNCS_EXTRA): Redefine empty.
2578 2002-04-08  Richard Henderson  <rth@redhat.com>
2580         * reorg.c (get_branch_condition): Use reversed_comparison_code.
2582 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2584         * config/m68hc11/larith.asm (__map_data_section): Fix condition
2585         and optimize for size.
2586         (__do_global_ctors): Fix pointer comparison.
2587         (__do_global_dtors): Likewise.
2589 2002-04-09  David S. Miller  <davem@redhat.com>
2591         * config/sparc/sparc.c (sparc_extra_constraint_check): New
2592         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
2593         allow reloading pseudos.
2594         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
2595         * config/sparc/sparc-protos.h: Declare it.
2597         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
2598         unsigned comparison warning.
2599         (output_restore_regs): Mark leaf_function as unused.
2601 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2603         * expr.c (is_aligning_offset): New function.
2604         (expand_expr, case COMPONENT_EXPR): Call it.
2606 2002-04-08  David S. Miller  <davem@redhat.com>
2608         PR target/6082
2609         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
2611         Make init_priority work on Sparc when using GNU ld.
2612         * config/sparc/linux.h, config/sparc/linux64.h,
2613         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
2614         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
2615         * config/sparc/sol2-gld.h: New file to do the same.
2616         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
2617         sparc/sol2-gld.h to tm_file.
2619         PR optimization/4328
2620         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
2621         * doc/md.texi: Document it.
2622         * config/sparc/sparc.md (movdi_insn_sp64_novis,
2623         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
2624         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
2625         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
2626         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
2628 2002-04-08  Andreas Jaeger  <aj@suse.de>
2630         * stmt.c (expand_asm_operands): Revert last patch from Richard
2631         Henderson.
2633 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2635         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
2636         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
2638 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2640         * doc/contrib.texi (Contributors): Add David O'Brien.
2642 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
2644         * configure.in (auto-build.h): Use target_alias and build_alias
2645         when running configure.
2646         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
2647         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
2648         * configure: Regenerate.
2650 2002-04-07  David S. Miller  <davem@redhat.com>
2652         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
2654 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2656         PR 5933
2657         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
2658         generating 32-bit pic code.
2660 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
2662         * cppinit.c (cpp_create_reader): Initialize
2663         discard_comments_in_macro_exp.
2664         (COMMAND_LINE_OPTIONS): Add "-CC" option.
2665         (cpp_handle_option): Handle "-CC" option.
2666         * cpplex.c (save_comment): If saving a C++ comment in
2667         a directive, convert it to a C comment.
2668         (_cpp_lex_direct): Pass second comment start character to
2669         save_comment to indicate comment type.
2670         * cpplib.c (_cpp_handle_directive): If processing
2671         a "#define" directive and discard_comments_in_macro_exp
2672         is false,  re-enable saving of comments.
2673         (lex_macro_node): If discard_comments_in_macro_exp is false,
2674         discard any comments before the macro identifier.
2675         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
2676         member.
2677         * cppmacro.c (cpp_get_token): If expanding a macro while
2678         processing a directive, discard any comments we might encounter.
2679         (parse_params): If discard_comments_in_macro_exp is false,
2680         ignore comments in the macro parameter list.
2681         * gcc.c (cpp_unique_options): Add "-CC" option.
2682         (option_map): Map "--comments-in-macros" to "-CC".
2683         * doc/cppopts.texi: Document "-CC" option.
2684         * f/lang-specs.h: Add "-CC" option.
2685         * testsuite/gcc.dg/cpp/maccom1.c: New test.
2686         * testsuite/gcc.dg/cpp/maccom2.c: New test.
2687         * testsuite/gcc.dg/cpp/maccom3.c: New test.
2688         * testsuite/gcc.dg/cpp/maccom4.c: New test.
2689         * testsuite/gcc.dg/cpp/maccom5.c: New test.
2690         * testsuite/gcc.dg/cpp/maccom6.c: New test.
2692 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2694         PR middle-end/6180
2695         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
2697 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
2699         PR c++/5571
2700         * stor-layout.c (layout_decl): Reset the RTL for the decl.
2702         PR opt/5120
2703         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
2704         RTX_UNCHANGING_P for the functions arguments when a tail call
2705         is made.
2707 2002-04-06  Jason Merrill  <jason@redhat.com>
2709         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
2710         (parse_options_and_default_flags): Set them appropriately.
2711         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
2713 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
2715         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
2716         here.
2718         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
2719         semicolon.
2721         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
2722         types come in by-reference.  Fix typo in comment.
2724 2002-04-05  David S. Miller  <davem@redhat.com>
2726         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
2727         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
2728         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
2729         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
2731 2002-04-05  David S. Miller  <davem@redhat.com>
2733         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
2734         are not going to emit return instructions, emit at least a nop
2735         for the sake of sane backtraces.
2737 2002-04-05  Richard Henderson  <rth@redhat.com>
2739         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
2741 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
2743         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
2745 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
2747         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
2748         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
2749         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
2751 2002-04-05  Andreas Schwab  <schwab@suse.de>
2753         * c-convert.c: Include c-common.h.
2754         * Makefile.in (c-convert.o): Updated.
2756 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
2758         * mklibgcc.in: Use separate libgcc.map for each multilib.
2759         * Makefile.in (distclean): Don't remove libgcc.map here.
2761 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
2763         * Makefile.in (s-mlib): Handle --disable-multilib by separate
2764         genmultilib invocation.
2766 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
2768         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
2769         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
2770         to num_gprs for symmetry.
2771         * config/mips/mips.c: Adjust accordingly.
2773 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
2775         * c-common.c (truthvalue_conversion): Rename, update.
2776         * c-common.h (c_common_truthvalue_conversion): New.
2777         * c-convert.c (convert): Update.
2778         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
2779         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
2780         * c-typeck.c (build_binary_op, build_unary_op,
2781         build_conditional_expr): Update.
2782         * fold-const.c (constant_boolean_node, fold): Use langhook.
2783         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
2784         * langhooks.h (struct lang_hooks): New hook.
2785         * stmt.c (expand_decl_cleanup): Use langhook.
2786         * tree.h (truthvalue_conversion): Remove.
2787 objc:
2788         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
2790 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
2792         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
2793         Add rules to make null object file.
2795 2002-04-04  Jim Blandy  <jimb@redhat.com>
2797         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
2798         macro formal parameter names.
2800 2002-04-04  David S. Miller  <davem@redhat.com>
2802         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
2804 2002-04-04  Richard Henderson  <rth@redhat.com>
2806         PR middle-end/5099
2807         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
2808         Support copies into and out of memory.  Don't accept allows_reg
2809         and allows_mem as gospel.
2811 2002-04-04  Richard Henderson  <rth@redhat.com>
2813         PR opt/6165
2814         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
2815         (write_dependence_p): Likewise.
2817 2002-04-04  Richard Henderson  <rth@redhat.com>
2819         * predict.c (estimate_bb_frequencies): Do frequency calculation
2820         with a volatile temporary.
2822 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
2824         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
2826 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
2828         PR c++/6119
2829         * final.c (final_start_function): Don't bump profile_label_no here...
2830         (final_end_function): ...but here.
2832 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
2834         * config/sparc/sparc.md (pic): New attribute.
2835         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
2836         into stack slots.
2837         (split after do_builtin_setjmp_setup): New.
2839 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
2841         PR fortran/6106
2842         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
2843         change.
2845 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
2847         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
2848         UNITS_PER_WORD for zero sized aggregates.
2850 2002-04-03  David S. Miller  <davem@redhat.com>
2852         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
2853         one-character spec for this, just use %(link_gcc_c_sequence).
2855 2002-04-03  David S. Miller  <davem@redhat.com>
2857         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
2858         handling.
2860 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2862         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
2863         (DWARF_FRAME_RETURN_COLUMN): Move.
2864         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2865         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
2866         * pa.c (except.h, predict.h): Include.
2867         (FRP): Delete.
2868         (store_reg_modify, set_reg_plus_d): Revise prototypes.
2869         (output_ascii): Add cast.
2870         (store_reg_modify): Revise to add frame notes.
2871         (set_reg_plus_d): Likewise.
2872         (compute_frame_size): Include space for eh data registers in frame if
2873         the current function calls eh_return.
2874         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
2875         function calls eh_return.  Save eh data registers if the current
2876         function calls eh_return.  Fix code to add frame notes.  Emit
2877         blockage to prevent insns with frame notes being scheduled in the
2878         delay slot of calls.
2879         (hppa_expand_epilogue): Restore eh data registers and do final stack
2880         adjustment if the current function calls eh_return.  Don't add frame
2881         notes.
2882         (output_call): Revise for change in length of call insn.  Don't do
2883         return pointer adjustment for an unconditional jump in the delay slot
2884         of a call when using frame notes.
2885         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
2886         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
2887         (ARG_POINTER_CFA_OFFSET): Define.
2888         * pa.md (return_external_pic): New pattern.
2889         (prologue): Correct formatting.  Use return_external_pic if current
2890         function calls eh_return.
2891         (call_internal_symref, call_value_internal_symref,
2892         sibcall_internal_symref, sibcall_value_internal_symref): Change default
2893         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
2894         respectively.
2895         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
2897         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
2898         list of targets to check using "nop" insn.
2899         * configure: Rebuilt.
2901 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
2903         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
2905 2002-04-03  David S. Miller  <davem@redhat.com>
2907         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
2908         library sequence passed to the linker.
2909         (LINK_COMMAND_SPEC): Use it.
2910         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
2911         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
2912         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2914 2002-04-03  Jason Merrill  <jason@redhat.com>
2916         * except.c (struct eh_status): Remove protect_list.
2917         (begin_protect_partials, end_protect_partials): Remove.
2918         (add_partial_entry): Remove.
2919         * except.h: Remove prototypes.
2921         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
2922         expand_decl_cleanup_eh.
2924         PR c++/5636
2925         * tree.h (CLEANUP_EH_ONLY): New macro.
2926         * stmt.c (expand_decl_cleanup_eh): New fn.
2927         (expand_cleanups): Check CLEANUP_EH_ONLY.
2928         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
2929         Use expand_decl_cleanup_eh.
2930         (expand_stmt): Adjust.
2931         * c-common.h: Adjust prototype.
2933 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
2935         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
2936         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
2937         (cris_target_asm_function_epilogue): Ditto.
2938         (cris_initial_frame_pointer_offset): Ditto.
2939         (cris_simple_epilogue): Ditto.
2940         (cris_expand_builtin_va_arg): Variable-size types come in
2941         by-reference.
2943 2002-04-03  David S. Miller  <davem@redhat.com>
2945         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
2946         little-endian.
2947         (set_fast_math): Correct 'fsr' type.
2949 2002-04-03  Richard Henderson  <rth@redhat.com>
2951         PR opt/3569
2952         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
2953         * toplev.c (check_global_declarations): Use it.
2954         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
2955         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2956         (LANG_HOOKS_DECLS): Add it.
2957         * langhooks.c (lhd_warn_unused_global_decl): New.
2958         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2959         * c-objc-common.c (c_warn_unused_global_decl): New.
2960         * c-tree.h (c_warn_unused_global_decl): Declare.
2961         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2963 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
2965         * langhooks-def.h (lhd_set_decl_assembler_name,
2966         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
2967         (LANG_HOOKS_INITIALIZER): Update.
2968         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
2969         * langhooks.h (struct lang_hooks): New hook.
2970         * tree.c (set_decl_assembler_name): Move to langhooks.c.
2971         (lang_set_decl_assembler_name): Remove.
2972         (init_obstacks): Don't set hook.
2973         (decl_assembler_name): New function.
2974         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
2975         (decl_assembler_name): New.
2976         (lang_set_decl_assembler_name): Remove.
2978 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
2980         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
2981         works properly with .hidden symbols.
2982         * configure: Rebuilt.
2983         * config.in: Rebuilt.
2984         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
2985         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
2986         properly with .hidden symbols.
2988 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
2990         PR middle-end/6102
2991         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
2992         USE argument.
2994 2002-04-03  Richard Henderson  <rth@redhat.com>
2996         PR opt/4120
2997         * sched-rgn.c (sets_likely_spilled): New.
2998         (sets_likely_spilled_1): New.
2999         (add_branch_dependences): Use it.
3001 2002-04-02  Richard Henderson  <rth@redhat.com>
3003         PR opt/4311
3004         * loop.h (LOOP_FIRST_PASS): New.
3005         * loop.c (strength_reduce): Mind it when deciding to unroll.
3006         * toplev.c (rest_of_compilation): Set it.
3008 2002-04-02  David S. Miller  <davem@redhat.com>
3010         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
3011         mems_ok_for_ldd_peep when the order of the loads being examined
3012         is reversed.
3013         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
3014         existing comment to increase comprehension of this situation.
3016 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
3018         * config/sh/sh.md: Don't use union real_extract.
3020 2002-04-02  Richard Henderson  <rth@redhat.com>
3022         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
3024 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
3026         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
3027         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
3028         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
3029         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
3030         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
3031         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
3032         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
3033         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
3034         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
3035         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
3036         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
3037         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
3038         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
3039         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
3040         Include as many configury headers via tm_file as possible.  This
3041         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
3042         * config/openbsd-oldgas.h: New file.
3043         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
3044         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
3045         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
3046         config/i386/i386-coff.h, config/i386/i386-interix.h,
3047         config/i386/iscdbx.h, config/i386/linux-aout.h,
3048         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
3049         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
3050         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
3051         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
3052         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
3053         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
3054         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
3055         config/i386/vxi386.h: Do not directly include configury headers.
3056         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
3057         Directly include configury headers that are no longer automatically
3058         included by the above headers.
3059         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
3060         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
3061         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
3062         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
3063         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
3064         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
3065         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
3066         (TARGET_VERSION): Define.
3067         * config/i386/beos-elf.h, config/i386/freebsd.h,
3068         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
3069         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
3070         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
3071         config/i386/sco5.h, config/i386/sysv4.h
3072         (TARGET_VERSION): Do not need to protect.
3073         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
3074         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
3075         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
3076         config/i386/i386-interix.h, config/i386/linux-aout.h,
3077         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
3078         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
3079         (YES_UNDERSCORES): Do not define - not needed.
3080         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
3081         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
3082         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
3083         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
3084         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
3085         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
3086         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
3087         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
3089 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
3090             Richard Henderson  <rth@redhat.com>
3092         PR c/5484
3093         * function.c (assign_temp): Accept either type or decl argument.
3094         Detect variables whose size is too large to fit into an integer.
3095         * stmt.c (expand_decl): Pass the decl, not the type.
3097 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
3099         * protoize.c: Match include directory usage with cppdefault.c.
3101 2002-04-03  Jeffrey A Law  (law@redhat.com)
3102             Hans-Peter Nilsson  <hp@bitrange.com>
3104         * combine.c (simplify_comparison): Avoid narrowing a comparison
3105         with a paradoxical subreg when doing so would drop signficant bits.
3107 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
3109         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
3110         if POINTERS_EXTEND_UNSIGNED is defined.
3112 2002-04-02  Richard Henderson  <rth@redhat.com>
3114         PR opt/3967
3115         * local-alloc.c (contains_replace_regs): LO_SUM may contain
3116         replace regs.
3118 2002-04-02  Richard Henderson  <rth@redhat.com>
3120         * doc/standards.texi: Document required freestanding libc entry points.
3122 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
3124         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
3125         associated splitter.  Remove MQ constraint.
3126         (ctrdi_internal4): Correct CCmode clobber.
3128 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3130         * milli64.S ($$dyncall): New function.
3131         * t-linux (LIB1ASMFUNCS): Revise module list.
3132         (LIB1ASMSRC): Use pa/milli64.S.
3134 2002-04-02  Richard Henderson  <rth@redhat.com>
3136         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
3137         rename solaris_sys_varargs_h.
3139 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3141         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
3142         the same mode as its component.
3144 2002-04-02  Richard Henderson  <rth@redhat.com>
3146         PR opt/190
3147         * final.c (this_is_asm_operands): Export.
3148         * output.h (this_is_asm_operands): Declare.
3149         * config/i386/i386.c (print_operand): Error odd asm operands.
3151 2002-04-02  Richard Henderson  <rth@redhat.com>
3153         PR opt/420
3154         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
3156 2002-04-01  Richard Henderson  <rth@redhat.com>
3158         PR target/1538
3159         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
3160         * fixinc/fixincl.x: Rebuild.
3162 2002-04-01  Richard Henderson  <rth@redhat.com>
3164         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
3165         (atomic_alloc, atomic_free): New.
3166         (SIZE, MASK_FOR, PTR_IN): New.
3167         (emergency_reg_state, emergency_reg_state_free): New.
3168         (emergency_labeled_state, emergency_labeled_state_free): New.
3169         (reg_state_alloced, labeled_state_alloced): New.
3170         (alloc_reg_state, free_reg_state): New.
3171         (alloc_label_state, free_label_state, free_label_states): New.
3172         (push, pop, dup_state_stack, free_state_stack): Use them.
3173         (desc_label_state): Likewise.
3174         (uw_frame_state_for): Free label states and state stack.
3175         (uw_update_reg_address): Eliminate warnings.
3177 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
3179         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
3180         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
3182 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3184         * c-decl.c (grokdeclarator): Update.
3185         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
3186         * c-tree.h (c_mark_addressable): New.
3187         * c-typeck.c (default_function_array_conversion, build_unary_op,
3188         build_array_ref, convert_for_assignment): Update.
3189         (mark_addressable): Rename.
3190         * calls.c (try_to_integrate, expand_call): Use langhook.
3191         * expr.c (expand_expr): Use langhook.
3192         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
3193         * langhooks.h (struct lang_hooks): New hook.
3194         * stmt.c (expand_asm_operands): Use langhook.
3195         * tree.h (mark_addressable): Remove.
3196 objc:
3197         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
3199 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
3201         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
3202         in previous change.
3204 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
3206         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
3207         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
3209 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3211         * c-common.c (unsigned_conversion_warning, convert_and_check,
3212         unsigned_type, signed_type, shorten_compare,
3213         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
3214         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
3215         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
3216         New.
3217         * c-decl.c (grokdeclarator): Update.
3218         * c-format.c (check_format_types): Update.
3219         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
3220         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
3221         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
3222         * convert.c (convert_to_integer): Use new hooks.
3223         * expmed.c (make_tree): Use new hooks.
3224         * expr.c (store_expr): Use new hooks.
3225         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
3226         all_ones_mask_p, unextend, fold): Use new hooks.
3227         * langhooks.h (struct lang_hooks_for_types): New hooks.
3228         * tree.h (signed_or_unsigned_type, signed_type,
3229         unsigned_type): Remove.
3230 objc:
3231         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
3232         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
3234 2002-03-31  Richard Henderson  <rth@redhat.com>
3236         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
3237         (desc_frgr_mem): Fix reference to f16-f31.
3239 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3241         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
3242         RTVEC_ELT): Const-ify.
3243         * varray.h (VARRAY_CHECK): Const-ify.
3244         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
3245         ggc_mark_rtvec, ggc_mark): Const-ify.
3247 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3249         * diagnostic.c: Include langhooks-def.h.
3250         * Makefile.in (diagnostic.o): Update.
3252 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
3254         * c-common.c (c_unsafe_for_reeval): Rename.
3255         * c-common.h (c_unsafe_for_reeval): Rename.
3256         * c-decl.c (finish_incomplete_decl): Rename.
3257         (c_init_decl_processing): Don't set langhook.
3258         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
3259         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3260         * c-objc-common.c (c_objc_common_init): Don't set langhook.
3261         * c-tree.h (finish_incomplete_decl): Rename.
3262         * langhooks-def.h (lhd_unsafe_for_reeval): New.
3263         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
3264         (LANG_HOOKS_INITIALIZER): Update.
3265         * langhooks.c (lhd_unsafe_For_reeval): New.
3266         * langhooks.h (struct langhooks): New hooks.
3267         * toplev.c (incomplete_decl_finalize_hook): Remove.
3268         (wrapup_global_declarations): Update.
3269         * tree.c (lang_unsafe_for_reeval): Remove.
3270         (unsafe_for_reeval): Update.
3271         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
3272         Remove.
3273 objc:
3274         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
3275         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3277 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
3279         * diagnostic.c (print_error_function): Remove.
3280         (default_print_error_function): Rename.
3281         (report_error_function): Update.
3282         * diagnostic.h (print_error_function): Remove.
3283         (default_print_error_function): Remove.
3284         * langhooks-def.h (struct diagnostic_context): Predeclare.
3285         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
3286         (LANG_HOOKS_INITIALIZER): Update.
3287         * langhooks.h (struct diagnostic context): Predeclare.
3288         (struct lang_hooks): New hook.
3290 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3292         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
3293         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
3294         !flag_pic.
3295         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
3296         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
3297         of PIC_OFFSET_TABLE_REGNUM thruout.
3298         * config/rs6000/rs6000.md: Likewise.
3299         * config/rs6000/darwin.h: Likewise.
3301 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3303         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
3304         unsigned HOST_WIDE_INT, not unsigned int.
3306 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
3308         PR middle-end/6096, middle-end/6098, middle-end/6099
3309         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
3310         CODE_LABELs.
3311         (fill_slots_from_thread): Likewise.
3313 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
3315         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
3316         floating fields in float regs.
3317         (function_arg_record_value_2): Likewise.
3319 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
3321         * config/mmix/mmix.md (define_constants): Remove misleading
3322         FIXME.  Add MMIX_fp_rO_OFFSET.
3323         ("nonlocal_goto_receiver"): Don't have stack-frame address of
3324         saved rO as part of the pattern.  Remove FIXME.
3325         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
3326         here, at output-time.
3328 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
3330         PR middle-end/6100
3331         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
3332         REG_BR_PRED.
3333         (output_v9branch): Likewise.
3335 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
3337         * gcc.c: Revert previous patch for now.
3338         * config/i386/djgpp.h: Likewise.
3340 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
3342         * config/mmix/crti.asm (_init): Register _fini with atexit.
3343         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
3345 2002-03-31  Richard Henderson  <rth@redhat.com>
3347         PR target/3997
3348         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
3349         (ASM_OUTPUT_DEF_FROM_DECLS): New.
3351 2002-03-31  Richard Henderson  <rth@redhat.com>
3353         * libgcc2.c (__bb_exit_func): Make static.
3355         * config/alpha/alpha.md (trap): New.
3357 2002-03-31  Richard Henderson  <rth@redhat.com>
3359         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
3360         promoted argument types; build trap.
3361         (expand_builtin_trap): New.
3362         (expand_builtin): Use it.
3363         * stmt.c (expand_nl_goto_receivers): Likewise.
3364         * expr.h (expand_builtin_trap): Declare.
3365         * libfuncs.h (LTI_abort, abort_libfunc): New.
3366         * optabs.c (init_optabs): Init abort_libfunc.
3368 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
3370         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
3371         (LINK_COMMAND_SPEC): ... from here.
3372         (init_gcc_specs): Duplicate it here too, omitting
3373         shared_name in the second copy.
3374         (init_spec): Test for duplicate
3375         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
3377 2002-03-30  David S. Miller  <davem@redhat.com>
3379         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3380         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
3382 2002-03-30  Roger Sayle <roger@eyesopen.com>
3383             Richard Henderson  <rth@redhat.com>
3385         * regmove.c (combine_stack_adjustments_for_block): Avoid
3386         emitting a stack adjustment of zero bytes.  Let delete_insn
3387         update bb->head.
3389 2002-03-30  Richard Henderson  <rth@redhat.com>
3391         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
3392         (sparc_emitting_epilogue): New.
3393         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
3394         * config/sparc/sparc-protos.h: Update.
3395         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
3396         (TARGET_SWITCHES): Update.
3397         * config/sparc/sparc.md (return): Remove.
3398         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
3399         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
3400         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
3401         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
3402         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
3403         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
3404         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
3405         Remove MASK_EPILOGUE.
3406         * doc/invoke.texi: Update.
3408 2002-03-30  Daniel Berlin  <dan@dberlin.org>
3410         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
3411         CPP will start the file for us.
3413 2002-03-30  Richard Henderson  <rth@redhat.com>
3415         PR target/5446
3416         * config/ia64/ia64.c (group_barrier_needed_p): Special case
3417         prologue_allocate_stack.
3418         (ia64_single_set): Use insn codes for recognition of special
3419         cases, not rtl matching.
3420         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
3422 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
3424         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
3426 2002-03-30  Richard Henderson  <rth@redhat.com>
3428         PR target/6032
3429         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
3430         or -fomit-frame-pointer with profiling.
3431         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3432         (FUNCTION_PROFILER): Do nothing.
3433         (PROFILE_HOOK): New.
3434         * config/sparc/sparc.c (sparc_override_options): Don't check
3435         code models for profiling.
3436         (sparc_function_profiler): Remove.
3437         (sparc_profile_hook): New.
3438         * config/sparc/sparc-protos.h: Update.
3440 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
3442         PR optimization/6086
3443         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
3444         of SUBREG of volatile MEM or because the MEM was mode dependent,
3445         return CLOBBER instead of unmodified SUBREG.
3447 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
3449         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
3450         when not optimizing.
3452         * toplev.c (rest_of_compilation): Cann mark_constant_function
3453         only when optimizing.
3455         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
3456         are NULL.
3458         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
3459         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
3460         (try_optimize_cfg): clear all AUX fields.
3462         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
3463         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
3464         (ix86_address_cost): Be prepared for SUBREGed registers.
3465         (legitimate_address_p): Accept SUBREGed registers.
3467 2002-03-29  Richard Henderson  <rth@redhat.com>
3469         PR target/5672
3470         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
3472 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3474         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
3475         for aggregate and TFmode types.
3477 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
3479         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
3481 2002-03-29  Richard Henderson  <rth@redhat.com>
3483         PR target/5886
3484         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
3485         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
3487 2002-03-29  Richard Henderson  <rth@redhat.com>
3489         PR target/6041
3490         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
3491         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
3492         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
3493         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
3494         conditional.
3495         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
3497 2002-03-29  Dale Johannesen <dalej@apple.com>
3499         * loop.c (combine_movables): Do allow combination of pseudos.
3501 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
3503         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
3504         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
3505         No functional change except ...
3506         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
3507         * doc/install.texi (*-*-freebsd*): Document port configuration.
3509 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3511         * Makefile.in (convert.o, calls.o, expmed.o): Update.
3512         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
3513         Use new hooks.
3514         * builtin-types.def (BT_PTRMODE): Update.
3515         * c-common.c (type_for_size): Rename c_common_type_for_size.
3516         (type_for_mode): Similarly.
3517         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
3518         Use new hook.
3519         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
3520         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
3521         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
3522         Redefine.
3523         * c-typeck.c (common_type, comptypes, default_conversion):
3524         Use new hooks.
3525         * calls.c: Include langhooks.h.
3526         (emit_library_call_value_1): Use new hooks.  Avoid redundant
3527         calls.
3528         * convert.c: Include langhooks.h
3529         (convert_to_pointer, convert_to_integer): Use new hooks.
3530         * except.c (init_eh): Similarly.
3531         * expmed.c: Include langhooks.h.
3532         (expand_mult_add): Use new hooks.
3533         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
3534         try_casesi): Similarly.
3535         * fold-const.c (optimize_bit_field_compare, make_range,
3536         decode_field_reference, fold_truthop, fold): Similarly.
3537         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
3538         put_var_into_stack): Similarly.
3539         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
3540         LANG_HOOKS_TYPE_FOR_SIZE): New.
3541         (LANG_HOOKS_TYPES_INITIALIZER): Update.
3542         * langhooks.h (lang_hooks_for_types): New hooks.
3543         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
3544         * tree.c (get_unwidened, get_narrower): Similarly.
3545         * tree.h (type_for_mode, type_for_size): Remove.
3546         * varasm.c (force_const_mem): Use new hooks.
3547         * utils2.c (nonbinary_modular_operation): Update.
3548 objc:
3549         * objc-act.c (handle_impent): Update.
3550         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
3551         Redefine.
3553 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
3555         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
3556         * config/ia64/ia64.c (basereg_operand): New.
3557         * config/ia64/ia64-protos.h (basereg_operand): Declare.
3558         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
3560 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
3562         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
3563         unwind information when frame_pointer_needed.
3564         (mmix_assemble_integer): Tweak wording in comment.
3566 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3568         * Makefile.in (except.o): Update.
3569         * except.c: Include langhooks.h.
3570         (init_eh): Use langhook.
3571         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
3572         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
3573         (LANG_HOOKS_INITIALIZER): Update.
3574         * langhooks.h (lang_hooks_for_types): New.
3575         (struct lang_hooks): Add it.
3576         * tree.c (make_lang_type_fn, make_lang_type): Remove.
3577         * tree.h (make_lang_type_fn, make_lang_type): Remove.
3578 config:
3579         * alpha/alpha.c: Include langhooks.h.
3580         (alpha_build_va_list): Use langhook.
3581         * d30v/d30v.c: Include langhooks.h.
3582         (d30v_build_va_list): Use langhook.
3583         * i386/i386.c: Include langhooks.h.
3584         (ix86_build_va_list): Use langhook.
3585         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
3586         * s390/s390.c: Include langhooks.h.
3587         (s390_build_va_list): Use langhook.
3588         * stormy16/stormy16.c: Include langhooks.h.
3589         (stormy16_build_va_list): Use langhook.
3591 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
3593         PR c++/5964
3594         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
3595         attributes.
3596         (length): Compute variable length for branches/calls/jumps here.
3597         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
3598         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
3599         define branch_type attribute.
3600         (divsi3_sp32): Maximum length is 6 not 7.
3601         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
3602         call_address_untyped_struct_value_sp32,
3603         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
3604         * config/sparc/sparc.c (empty_delay_slot): New function.
3605         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
3606         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
3608 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
3610         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
3611         nonzero_bits if not needed.
3612         (nonzero_bits) [XOR]: Likewise.
3613         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
3614         reg_last_set_mode and mode are both MODE_INT, but not equal.
3615         (record_value_for_reg): Compute reg_last_set_nonzero_bits
3616         in nonzero_bits_mode for MODE_INT modes.
3618 2002-03-28  Richard Henderson  <rth@redhat.com>
3620         PR target/5715
3621         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
3622         to GAS.  Correct drift between alternatives.
3624 2002-03-28  Richard Henderson  <rth@redhat.com>
3626         PR target/6087
3627         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
3629 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
3631         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
3632         emulation to the linker.
3634 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
3636         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
3637         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
3639 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
3641         * combine.c (simplify_and_const_int): Make sure to apply mask
3642         when force_to_mode returns a constant integer.  PR3311.
3644 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3646         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
3648 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3650         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
3651         and Objective-C Dialect Options.
3653 2002-03-28  Richard Henderson  <rth@redhat.com>
3655         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
3656         comparison should be done vs !=0 not >0 return code.  Tidy cases.
3658 2002-03-28  Richard Henderson  <rth@redhat.com>
3660         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
3661         on to c_expand_body.
3662         * c-tree.h (finish_function): Update decl.
3663         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
3665 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
3667         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
3669 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
3671         * rtlanal.c: Include flags.h
3672         (may_trap_p): Do not mark FP operations if trapping
3673         if !flag_trapping_math
3674         * Makefile.in (rtlanal.o): Add dependency on flag.h
3675         * ifcvt.c (noce_operand_ok): Avoid the lameness.
3677 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
3679         * mips.md: Use dconst1, not 1.0, as first argument of
3680         REAL_VALUE_LDEXP.  Don't use union real_extract.
3682 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
3684         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
3685         rather than $target.  Heed program_prefix and
3686         program_transform_name.  Search for gas in cross-compiler case too.
3687         "test -x" rather than "test -f".
3688         (gcc_cv_ld): Likewise.
3689         (gcc_cv_nm): Heed program_prefix and program_transform_name.
3690         (gcc_cv_objdump): Likewise.
3691         * configure: Regenerate.
3693 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3695         * Makefile.in (attribs.o): Update.
3696         * attribs.c: Include langhooks.h.
3697         (decl_attributes): Use langhook.
3698         * c-decl.c (insert_default_attributes): Rename.
3699         * c-tree.h (c_insert_default_attributes): New.
3700         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
3701         (LANG_HOOKS_INITIALIZER): Update.
3702         * langhooks.h (struct lang_hooks): New hook.
3703         * tree.h (insert_default_attributes): Remove.
3704 objc:
3705         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
3707 2002-03-27  Andreas Schwab  <schwab@suse.de>
3709         * config/i386/i386.c (classify_argument): Also check for
3710         QUAL_UNION_TYPE.
3712 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3714         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
3715         any more.
3717 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
3719         * i960.md (ret): Set PC.
3720         (nonlocal_goto): Fix expander.
3721         * builtins.c (epxand_builin_longjmp): Check that we've emitted
3722         some jump or call.
3724 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
3726         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
3727         of libcall regions.
3729 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3731         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
3732         assigning to BLOCK_FOR_INSN directly.
3734 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
3736         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
3738 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3740         * c-common.c (c_expand_expr): Fix prototype.
3741         * c-common.h (c_expand_expr): Always declare, update.
3742         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
3743         * c-objc-common.c (c_objc_common_init): No global hook.
3744         * expr.c (expand_expr): Use langhook.
3745         * expr.h (enum expand_modifier): Conditionally declare.
3746         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
3747         (LANG_HOOKS_INITIALIZER): Update.
3748         * langhooks.c (lhd_expand_expr): New.
3749         * langhooks.h (struct lang_hooks): New hook.
3750         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
3751         (lang_independent_init): Don't default hook.
3752 objc:
3753         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
3755 2002-03-27  Richard Henderson  <rth@redhat.com>
3757         PR target/6054
3758         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
3759         TARGET_CONST_GP.  Simplify conditions.
3761 2002-03-27  Richard Henderson  <rth@redhat.com>
3763         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
3764         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
3765         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
3767 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
3769         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
3770         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
3771         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
3772         Remove unnecessary masks.
3773         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
3774         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
3775         -mwindows, -mdll switches and their negations.
3777 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3779         * gcc-common.c (lang_mark_false_label_stack): Remove.
3780         * ggc.h (lang_mark_false_label_stack): Similarly.
3782 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
3784         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
3786         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
3787         or __rtems_ is defined.
3789 2002-03-26  Richard Henderson  <rth@redhat.com>
3791         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
3792         if a non-trivial load was emitted.
3793         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
3794         in high+extra+low case.
3796 2002-03-26  Richard Henderson  <rth@redhat.com>
3798         * config.gcc (sparc*-solaris): Use float_format=sparc.
3800 2002-03-26  Richard Henderson  <rth@redhat.com>
3802         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
3803         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
3804         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
3805         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
3806         (WINT_TYPE_SIZE): Fix at 32.
3808 2002-03-26  Richard Henderson  <rth@redhat.com>
3810         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
3811         until after eh landing pad generation.
3812         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
3813         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
3815 2002-03-26  Richard Henderson  <rth@redhat.com>
3817         * expr.h (ADD_PARM_SIZE): One more convert for INC.
3819 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
3821         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
3822         and warning switches.
3823         (cc1_options):  Likewise.
3825 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
3827         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
3828         Restore more of the signal context.  Set no_reg_stack_frame.
3829         * config/ia64/unwind-ia64.c (unw_state_record):
3830         Add no_reg_stack_frame, comments.
3831         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
3832         (uw_update_context): Adjust bsp when unwinding from leaf,
3833         but not signal frame.
3835 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
3837         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
3839 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
3841         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
3843 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
3845         PR target/5621
3846         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
3847         "Add a pool_range attribute", which was lost during the ARM/Thumb
3848         merge.
3850 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
3852         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
3853         a register into the MAC16 accumulator.
3855 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
3857         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
3858         (Warning Options): Document -Wswitch-enum.
3859         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
3860         -Wswitch.
3861         (warn_switch_enum): Define variables.
3862         * flags.h (warn_switch_enum): Declare variables.
3863         * stmt.c (expand_end_case_type): When warn_switch_enum /
3864         -Wswitch-enum, perform switch checks.
3865         Fix PR c/5044.
3867 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
3869         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
3870         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
3871         (reload_muladdsi_compare0_scratch): Delete.
3873 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
3875         * doc/install.texi (*-*-freebsd*): Update.
3877 2002-03-26  Richard Henderson  <rth@redhat.com>
3879         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
3880         (SUB_PARM_SIZE): Cast DEC to ssizetype.
3882         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
3883         types from the normal argument frame.
3885         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
3886         variable sized objects by reference.
3887         (sparc_va_arg): Receive them by reference too.
3889 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
3891         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
3892         code to not restoring global registers.
3894 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
3896         * Makefile.in (ggc-common.o): Update.
3897         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
3898         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
3899         * c-tree.h (c_mark_tree): New.
3900         * ggc-common.c: Include langhooks.h.
3901         (gcc_mark_trees): Use new langhook.
3902         * ggc-callbacks.c: Delete file.
3903         * ggc.h (lang_mark_tree): Remove.
3904         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
3905         (LANG_HOOKS_INITIALIZER): Update.
3906         * langhooks.h (struct lang_hooks): New hook.
3907 objc:
3908         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
3910 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
3912         * doc/cpp.texi: Exclude entire Top node from printed manual.
3913         Move option index after directive index.  Insert page breaks
3914         before GFDL and concept index.  Index environment variables
3915         with command line options.
3916         * doc/cppenv.texi: Use @vtable for environment variable list.
3917         Add paragraph explaining semantics of empty elements in path
3918         variables.  Exclude a cross-reference to Fishkill from the
3919         manpage.  Remove an unnecessary cross-reference of the entry
3920         right above the referer.  Don't use @anchor in text that goes
3921         into manpage.
3922         * doc/cppopts.texi: Cross-reference the environment variables
3923         section, not the specific environment variable, for consistency.
3925 2002-03-25  Richard Henderson  <rth@redhat.com>
3927         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
3928         anywhere in the block.  Don't refer to insns that have been
3929         removed from the chain.  Iterate backward through the new insns.
3930         Don't refer to edges that have been removed.
3932 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
3934         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
3935         test for overflow of constant.
3937 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
3939         PR target/2623
3940         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
3941         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
3942         these patterns on arm_archv4.
3944 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
3946         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
3947         int".
3949 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
3951         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
3952         float_handled, float_handler, float_signal, set_float_handler,
3953         and do_float_handler.  Set handler for SIGFPE to crash_signal.
3954         * toplev.h: Don't prototype do_float_handler.
3956         * c-lex.c: Fold parse_float into lex_number.  Make warning
3957         about portability of hex float constants more informative, and
3958         don't issue it on top of a syntax error.
3959         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
3960         their callers.
3961         * real.h: Define REAL_VALUE_ABS here...
3962         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
3963         simplify_unary_real, simplify_binary_real, and
3964         simplify_binary_is2orm1 into their callers.
3965         * tree.c: Fold build_real_from_int_cst_1 into caller.
3967         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
3969         * tsystem.h: Include float.h here...
3970         * libgcc2.c: ... not here.
3972 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
3974         Fixes for: PR bootstrap/3591, target/5676
3975         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
3976         defined.  Do not disable exceptions or rtti.
3977         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
3978         mcore.h.  Disable exceptions and rtti, since they are not
3979         supported by EPOC.
3981 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
3983         * c-decl.c (maybe_build_cleanup): Remove.
3984         * expr.c (expand_expr): Use langhook.
3985         * langhooks-def.h (lhd_return_null_tree,
3986         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
3987         (LANGHOOKS_INITIALIZER): Update.
3988         * langhooks.c (lhd_return_null_tree): New.
3989         * langhooks.h (struct lang_hooks): New hook.
3990         * tree-inline.c (initialize_inlined_parameters): Use langhook.
3991         * tree.h (maybe_build_cleanup): Remove.
3993 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
3995         * regrename.c (build_def_use): Move recog_memoized
3996         before extract_insn.
3998 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
4000         PR target/6043
4001         * expr.c (emit_group_store): Handle storing into CONCAT.
4003 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
4005         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
4006         corresponding MATCH_DUP.
4008 2002-03-24  Richard Henderson  <rth@redhat.com>
4010         * unroll.c (unroll_loop): Zero label_map.
4012         * gcse.c: Include except.h.
4013         * Makefile.in (gcse.o): Update.
4015 2002-03-24  Richard Henderson  <rth@redhat.com>
4017         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
4018         Do resolve_unique_section before shared data clause.
4020 2002-03-24  Richard Henderson  <rth@redhat.com>
4022         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
4024 2002-03-24  Richard Henderson  <rth@redhat.com>
4026         * recog.c (peephole2_optimize): Split blocks when EH insns are
4027         generated in the middle of a block.  Do global life update if
4028         zapped EH edges.
4030 2002-03-24  Richard Henderson  <rth@redhat.com>
4032         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
4034 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4036         preprocessor/3951
4037         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
4038         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
4039         (init_dependency_output): Don't make no_output decision here.
4041 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
4043         * stmt.c (check_for_full_enumeration_handling): Remove tests of
4044         warn_switch.  Update description.
4045         (expand_end_case_type): Call check_for_full_enumeration_handling
4046         when warn_switch.
4048 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4050         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
4051         (m68hc11_split_move): Call it to see if the source and destination
4052         operands use the same direction auto inc/dec mode, otherwise make the
4053         source an offsetable memory operand and generate an add.
4055 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4057         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
4058         register for operand 2.
4059         ("*subsi3_zero_extendqi"): Likewise.
4060         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
4061         bits so that it is compatible with a pop.
4062         ("*andhi3_gen"): Likewise.
4063         ("xorhi3"): Likewise.
4065 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4067         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
4068         -pedantic here...
4069         (cpp_post_options): ... not here.
4071 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4072             Aldy Hernandez  <aldyh@redhat.com>
4074         Removal of separate preprocessor cpp0.
4076         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
4077         cpp0, install-common): Update.
4078         * c-common.c (flag_preprocess_only): New.
4079         (c_common_init): Preprocess for -E.
4080         * c-common.h (flag_preprocess_only): New.
4081         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
4082         * c-objc-common.c (c_init_decl_processing): Exit quickly
4083         for NULL return from c_common_init.
4084         * cpplib.h (cpp_preprocess_file): New.
4085         * cppmain.c (main, general_init, pfile, progname): Remove.
4086         (do_preprocessing): Rename cpp_preprocess_file, don't call
4087         cpp_finish.  Don't close stdout here.
4088         (setup_callbacks): Update prototype.
4089         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
4090         Update.
4091         * tradcpp.c (main): Ignore -quiet.
4092 objc:
4093         * lang-specs.h (default_compilers): Preprocess with cc1obj.
4095 2002-03-24  Richard Henderson  <rth@redhat.com>
4097         PR optimization/5742
4098         * machmode.def: Add inner mode field to complex modes.
4099         * config/mips/mips.c (mips_function_value): Always define.  Add
4100         new argument to handle libcalls.
4101         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
4102         (FUNCTION_VALUE): Likewise.
4103         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
4104         * config/mips/mips-protos.h: Update.
4106 2002-03-23  Richard Henderson  <rth@redhat.com>
4108         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
4109         * config/sparc/sparc-protos.h: Update.
4110         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
4112 2002-03-23  Richard Henderson  <rth@redhat.com>
4114         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
4115         _start or _init begins the text segment.
4117 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
4119         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
4120         not HOST_WIDEST_INT.
4121         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
4123 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
4125         PR java/5489
4126         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
4127         operand argument to output_return_instruction.
4128         * arm.c (arm_print_operand, case 'd'): If the operand is
4129         const_true_rtx then just return.
4130         (arm_print_operand, case 'D'): If the operand is const_true_rtx
4131         then abort.
4133 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
4135         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
4136         (Warning Options): Document -Wswitch-default.
4137         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
4138         -Wswitch.
4139         (warn_switch_default): Define variable.
4140         (warn_switch): Update comment.
4141         * flags.h (warn_switch_default): Declare variable.
4142         (warn_switch): Update comment.
4143         * stmt.c (expand_end_case): Check for and, when
4144         warn_switch_no_default, warn of a missing default case.
4146 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
4148         * real.h (N): Special case 128 bit doubles.
4150         * combine.c (simplify_comparison): When widening modes, ignore
4151         sign extension on CONST_INTs.
4153 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
4155         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
4156         passed to adjust_address.  Fix comment formatting.
4159 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
4161         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
4162         Always make REAL_VALUE_TYPE a struct containing an array of
4163         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
4164         big it is.  Don't declare or use union real_extract.
4166         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
4167         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
4168         (print_operand), config/arm/arm.c (output_move_double),
4169         config/arm/arm.md (consttable_4, consttable_8),
4170         config/romp/romp.c (output_fpops), config/s390/s390.h
4171         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
4172         (xtensa_output_literal): Don't use union real_extract.
4174         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
4175         (sfmode_constant_to_ulong), config/ns32k/merlin.h
4176         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
4177         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
4178         (PRINT_OPERAND): Don't use local version of union
4179         real_extract.
4181         * config/convex/convex.c (check_float_value), config/vax/vax.c
4182         (vax_float_literal), config/m88k/m88k.md (divdf3),
4183         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
4184         config/pdp11/pdp11.c (output_move_quad): Don't do host
4185         arithmetic on target floating point quantities.
4187         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
4188         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
4190         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
4191         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
4193         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
4194         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
4195         INFINITY.
4196         * print-rtl.c (print_rtx): Disable code which needs
4197         floating-point emulator.
4198         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
4199         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
4200         depending on HOST_FLOAT_FORMAT to be defined properly.
4202         * config/1750a/1750a.c (get_double, float_label): Delete.
4203         (print_operand): Delete huge commented-out chunk.  Use
4204         REAL_VALUE_TO_DECIMAL.
4205         * config/1750a/1750a-protos.h: Delete prototypes of deleted
4206         functions.
4207         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
4208         IEEE_FLOAT_FORMAT.
4209         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
4210         Use REAL_VALUE_TO_DECIMAL as ELF version does.
4211         * config/m88k/m88k.c (real_power_of_2_operand,
4212         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
4213         real_extract out of the union; run the input through
4214         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
4215         from that into the union.
4216         * config/pdp11/pdp11.c (output_move_double): Rearrange
4217         parentheses to make automatic indenter happy.
4219         * doc/tm.texi (Cross-compilation): Rename node to "Floating
4220         Point" and rewrite to describe current situation.  Also adjust
4221         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
4222         match code.
4223         * doc/rtl.texi: Adjust cross reference.
4225 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
4227         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
4228         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
4229         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
4230         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
4231         prevent use of sp as a reload register.
4232         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
4233         non_acc_reg_operand.
4234         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
4235         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
4236         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
4237         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
4239 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
4241         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
4242         * cpplex.c (unterminated): Delete.
4243         (parse_string): No string literal may extend over multiple
4244         lines.  Suppress the error when preprocessing assembly.
4245         * cppmain.c (scan_translation_unit): Strings are single-line.
4247         * doc/cpp.texi: Update to match.
4249 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
4251         PR optimization/5854
4252         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
4253         Shut up warnings.
4254         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
4255         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
4256         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
4257         const0 if scratch register was not allocated.
4258         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
4259         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
4260         with GEN_INT (...).
4261         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
4262         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
4263         with GEN_INT (...) everywhere.  Remove constraints in define_split
4264         patterns.
4265         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
4266         require scratch register for setting 0 into regs/non-pushable memory.
4268 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
4270         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
4271         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
4273 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
4275         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
4276         * cppinit.c (cpp_create_reader):  On by default.
4277         (cpp_handle_option):  Handle -W[no-]endif-labels.
4278         (cpp_post_options):  Also enable if -pedantic.
4279         * cpplib.c (do_else):  Use it.
4280         (do_endif):  Likewise.
4281         * doc/cppopts.texi:  Document new option.
4282         * doc/invoke.texi:  Document new option.
4284 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
4286         * config/i386/i386.c, config/i386/i386.md: Change all occurences
4287         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
4289 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
4291         * flow.c (calculate_global_regs_live): Clear aux fields of
4292         ENTRY and EXIT.
4294 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
4296         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
4297         REG or MEM subregs, pass rtx * instead of rtx to it.
4298         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
4299         rtx * instead of rtx to alter_subreg.
4300         * config/m32r/m32r.c (gen_split_move_double): Likewise.
4301         * config/pj/pj.c (pj_output_rval): Likewise.
4303 2002-03-22  Richard Henderson  <rth@redhat.com>
4305         PR target/3177
4306         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
4307         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
4308         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
4309         (ia64_expand_prologue): Look at int_regs, not words, for number
4310         of incomming int regs.
4312 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
4314         * expr.c (expand_expr): A RESULT_DECL is part of a call.
4316 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
4318         * toplev.c (flag_loop_optimize, flag_crossjumping):
4319         New static variables.
4320         (rest_of_compilation): Conditionalize crossjumping and
4321         loop optimizer.
4322         (parse_options_and_default_flags): Default loop_optimize and
4323         crossjumping.
4324         (lang_independent_options): Add -fcrossjumping and -floop-optimize
4325         * invoke.texi (crossjumping, loop-optimize): Document.
4327 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
4329         * real.c (eiisneg): Move outside #ifdef NANS.
4331 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
4333         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
4334         frequencies match; avoid match on different loop depths.
4335         (try_crossjump_to_bb): Kill tests that no longer brings time
4336         savings.
4337         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
4338         updating code.
4339         (split_edge): Likewise.
4341         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
4342         variable.
4344         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
4345         * cfgrtl.c: Include insn-config.h
4346         (split_block) Dirtify block in presence of conditional execution
4348 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
4350         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
4351         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
4352         (function_arg): Constify CUMULATIVE_ARGS.
4353         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
4354         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
4355         (UNITS_PER_DOUBLE): New macro.
4356         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
4357         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
4358         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
4359         fp_regs and stack_words.
4360         (EABI_FLOAT_VARARGS_P): New macro.
4361         * config/mips/mips.c (struct mips_arg_info): New.
4362         (mips_arg_info): New function.
4363         (function_arg_advance): Use it.  Add adjustment instructions here
4364         rather than in function_arg.
4365         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
4366         for VOIDmode at the beginning of the function.
4367         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
4368         (function_arg_pass_by_reference): Likewise.
4369         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
4370         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
4371         (mips_va_start): Likewise.  Use the new stack_words field of
4372         CUMULATIVE_ARGS to set up overflow area.  Reformat.
4373         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
4374         doubles and other types, aligning the overflow pointer for non-doubles
4375         too.  Remove some code duplication.  Replace hard-coded constants.
4377 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
4379         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
4380         (CLASS_UNITS): Undefine.
4381         (CLASS_MAX_NREGS): Use FP_INC.
4382         * config/mips/mips.c (compute_frame_size): Likewise.
4383         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
4385 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
4387         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
4388         prototype, and handle lexing numbers and identifiers.
4389         (parse_identifier): Update to new form of parse_slow.
4390         (parse_number): Fast path only, use parse_slow otherwise.
4391         (_cpp_lex_direct): Update calls to parse_number.
4393 2002-03-21  DJ Delorie  <dj@redhat.com>
4395         * bb-reorder.c (make_reorder_chain_1): Protect against
4396         when redundant edges are omitted.
4397         * predict.c (dump_prediction): Likewise.
4399 2002-03-21  Richard Henderson  <rth@redhat.com>
4401         PR target/5996
4402         * fixinc/inclhack.def (solaris_stdio_tag): New.
4403         * fixinc/fixincl.x: Regenerate.
4405 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
4407         PR c/5597
4408         * c-typeck.c (process_init_element): Flag non-static
4409         initialization of a flexible array member as illegal.
4411 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
4413         * config/rs6000/t-linux64: New.
4414         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
4415         t-ppccomm.  Use t-rs6000 and t-linux64.
4416         (powerpc64-*-gnu* <tmake_file>): Likewise.
4417         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
4418         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
4419         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
4421 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
4423         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
4424         flag_really_no_inline instead of optimize == 0.
4426         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
4428         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
4430         * flags.h (flag_really_no_inline): New.
4432         * c-common.c (c_common_post_options): Initialize
4433         flag_really_no_inline.
4435         * toplev.c (flag_really_no_inline): New.
4437 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
4439         * config/avr/avr.md (length): Fix length computation for
4440         conditional branches.
4442 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
4444         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
4445         sdbout.o, profile.o): Update.
4446         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
4447         langhook.
4448         * c-common.h (gettags): Move here from tree.h.
4449         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
4450         insert_block, getdecls, kept_level_p, global_bindings_p): New.
4451         * dbxout.c (dbxout_init): Use getdecls langhook.
4452         * expr.c (expand_expr): Use insert_block langhook.
4453         * fold-const.c: Include langhooks.h.
4454         (fold_range_test, fold_binary_op_with_conditional_arg,
4455         fold): Use global_bindings_p langhook.
4456         * integrate.c (expand_inline_function): Use insert_block langhook.
4457         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
4458         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
4459         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
4460         LANG_HOOKS_GETDECLS): New.
4461         (LANG_HOOKS_INITIALIZER): Update.
4462         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
4463         langhook.
4464         * langhooks.h (struct lang_hooks_for_decls): New.
4465         (struct lang_hooks): Update.
4466         * profile.c: Include langhooks.h.
4467         (output_func_start_profiler): Use new langhooks.
4468         * sdbout.c: Include langhooks.h.
4469         (sdbout_init, sdbout_finish): Use getdecls langhook.
4470         * stmt.c: Include langhooks.h.
4471         (expand_fixup, fixup_gotos): Use new langhooks.
4472         * stor-layout.c: Include langhooks.h.
4473         (variable_size): Use global_bindings_p langhook.
4474         * toplev.c (compile_file): Use getdecls langhook.
4475         * tree-inline.c (remap_block): Use insert_block langhook.
4476         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
4477         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
4479 2002-03-21  Richard Henderson  <rth@redhat.com>
4481         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
4482         constants in .data when -fpic.
4484 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4486         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
4487         where appropriate.
4489 2002-03-21  Tom Tromey  <tromey@redhat.com>
4491         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
4493 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4495         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
4497         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
4499 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
4500             Richard Henderson  <rth@redhat.com>
4502         PR c/5354
4503         * c-common.c (c_expand_expr): Preserve result of a statement
4504         expression if needed.
4506 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
4508         PR bootstrap/4195
4509         * genrecog.c (maybe_both_true_mode): Remove.
4510         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
4511         * machmode.def (Pmode): Likewise.
4513 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
4515         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
4516         (nonlocal_mentioned_p_1): New function.
4517         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
4518         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
4519         (mark_constant_function): Recognize pure functions.
4520         * rtl.h (global_reg_mentioned_p): New prototype.
4521         * rtlanal.c (global_reg_mentioned_p,
4522         global_reg_mentioned_p_1): New function.
4524 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4526         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
4527         UNIX assert.h.
4528         * fixinc/fixincl.x: Regenerate.
4530 2002-03-20  Jason Merrill  <jason@redhat.com>
4532         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
4534 2002-03-20  Michael Meissner  <meissner@redhat.com>
4536         * doc/invoke.texi (Optimize Options): Document that -O2 sets
4537         -fstrict-aliasing.
4539 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
4541         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
4542         ".literal_position" directive before the constant pool.
4544 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4546         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
4547         Add Craig Rodrigues.
4548         Add Brad Lucier to testers.
4550 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
4552         PR target/4792
4553         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
4554         to if_then_else.
4555         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
4556         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
4557         instead of insn_extract.
4559 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
4561         PR bootstrap/4192
4562         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
4564         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
4565         stmt if some case has been output.
4567 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
4569         PR c/5972
4570         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
4571         movsfcc_1, movdfcc_1): Add %O2.
4572         * config/i386/i386.c (print_operand): Handle %ON.
4573         Print . before float condition codes in Sun as cmov syntax.
4574         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
4575         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
4576         no longer true.
4578 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
4580         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
4581         return instruction if PC was popped.
4583 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
4585         * config/xtensa/xtensa.md: Remove unused type attributes.
4586         (adddi_carry, subddi_carry): Change type attribute to "multi".
4588 2002-03-19  Dale Johannesen  <dalej@apple.com>
4590         PR optimization/5999, middle-end/5731
4591         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
4592         multiplications by reciprocals.
4594 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
4596         * Makefile.in: Update.
4597         * c-common.c: Include langhooks.h.
4598         (inline_forbidden_p): Use new hook.
4599         * diagnostic.c: Include langhooks.h.
4600         (format_with_decl, announce_function,
4601         default_print_error_function): Use new hook.
4602         * dwarf2out.c (dwarf2_name): Use new hook.
4603         * function.c: Include langhooks.h.
4604         (init_function_start): Use new hook.
4605         * langhooks-def.h (lhd_decl_printable_name): New.
4606         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
4607         (LANGHOOKS_INITIALIZER): Update.
4608         * langhooks.c (lhd_decl_printable_name): New.
4609         * langhooks.h (struct lang_hooks): New hook.
4610         * toplev.c (decl_name, decl_printable_name): Remove.
4611         (open_dump_file): Use new hook.
4612         (process_options): Remove old hook.
4613         * tree.h (decl_printable_name): Remove.
4614 objc:
4615         * objc-act.c (objc_init): Remove old hook.
4616         (objc_printable_name): Export.
4617         * objc-act.h (objc_printable_name): New.
4618         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
4620 2002-03-19  Jim Blandy  <jimb@redhat.com>
4622         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
4623         the start_source_file debug hook, not the current line number.
4625 2002-03-19  Richard Henderson  <rth@redhat.com>
4627         * flow.c (EH_USES): Provide default.
4628         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
4629         * doc/tm.texi (EH_USES): New.
4631         * config/ia64/ia64.c (ia64_eh_uses): New.
4632         * config/ia64/ia64-protos.h: Update.
4633         * config/ia64/ia64.h (EH_USES): New.
4635 2002-03-19  Richard Henderson  <rth@redhat.com>
4637         * varasm.c (output_constant_def): Fix stupid typo.
4639 2002-03-19  Richard Henderson  <rth@redhat.com>
4641         PR 5879
4642         * except.c (current_function_has_exception_handlers): New.
4643         * except.h: Declare it.
4644         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
4645         Combine tests that disable all sibcalls for the function.
4647 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
4649         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
4650         for INTEGER_CST.
4652 2002-03-19  Richard Henderson  <rth@redhat.com>
4654         PR 5977, 5991
4655         * config/ia64/ia64.c: Revert 2002-03-01 patch.
4656         * config/ia64/ia64.h (INIT_EXPANDERS): New.
4658 2002-03-19  Jim Blandy  <jimb@redhat.com>
4660         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
4661         name, even if the replacement list contains no tokens, as required
4662         by Dwarf.
4664 2002-03-19  Jason Merrill  <jason@redhat.com>
4666         * varasm.c (globalize_decl): Get the name from the RTL, not
4667         DECL_ASSEMBLER_NAME.
4669         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
4671 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
4673         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
4674         subdi_carry): Define.
4676 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
4678         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
4679         about -fpic/-fPIC if extra_warnings set.
4681 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
4683         * expr.c (expand_expr): Sign-extend CONST_INT generated from
4684         TREE_STRING_POINTER.
4685         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
4687 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4689         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
4690         in favor of SP if FRAME_POINTER_REQUIRED is false.
4692 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
4694         * emit-rtl.c (gen_int_mode): New function.
4695         * rtl.h: Prototype for it.
4696         * combine.c (make_extraction, simplify_comparison), expmed.c
4697         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
4698         (convert_modes, store_field), optabs.c (expand_fix),
4699         simplify-rtx.c (neg_const_int, simplify_unary_real),
4701         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
4702         Use it instead of GEN_INT (trunc_int_for_mode (...)).
4704 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
4706         PR c/5656
4707         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
4708         convert_parm_for_inlining.
4709         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
4710         Define.
4711         * langhooks-def.h: Likewise.
4712         * objc/objc-lang.c: Likewise.
4713         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
4714         function.
4715         * tree-inline.c (initialize_inlined_parameters):
4716         Call convert_parm_for_inlining lang hook if needed.
4717         * c-typeck.c (c_convert_parm_for_inlining): New function.
4718         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
4720 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
4722         * calls.c (precompute_arguments): Do not assume that temporaries
4723         can be destroyed after expanding the argument.
4724         (expand_call): Likewise.
4726 2002-03-15  Eric Christopher  <echristo@redhat.com>
4728         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
4729         Fix register preference on last change.
4730         * config/mips/mips.c (mips_return_in_memory): New function.
4731         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
4732         * config/mips/mips-protos.h: Declare.
4733         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
4734         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
4736 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
4738         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
4739         a register too.
4740         (anddi3, iorsi3): Likewise.
4742         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
4743         use %gprel for symbols that are going to be placed in linkonce
4744         sections.
4746         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
4747         RETURN_ADDRESS_POINTER_REGNUM to $ra.
4748         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
4749         not needed.  Disregard leaf_function_p().
4750         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
4751         mips16 frame pointer.
4752         * config/mips/mips.md (store ra): Only to small SP offsets.
4753         2001-08-22  Graham Stott  <grahams@redhat.com>
4754         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
4755         return a REG rtx for the return address register.
4757 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
4759         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
4760         constant-pool addresses as "mode-dependent".
4761         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
4763 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
4765         PR target/5740
4766         * expr.c (emit_group_load): Use extract_bit_field if
4767         needed for CONCAT arguments.
4769 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
4771         PR target/4863
4772         * arm.md (tablejump): Make this a define_expand.  For PIC add the
4773         offset to the base of the table.
4774         (thumb_tablejump): Matcher for Thumb tablejump insn.
4775         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
4776         as the difference of two labels.
4777         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4778         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
4779         tables in the code.
4780         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
4781         * arm.c (get_jump_table_size): If the table is not in the text
4782         section, return zero.
4784 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
4786         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
4787         of gen_rtx_SUBREG.
4788         (arm_reload_out_hi): Use gen_lowpart instead of
4789         gen_rtx_SUBREG to access QImode components.
4790         * config/arm/arm.md: Disable zero_extend split for QImode
4791         subregs in BIG_ENDIAN mode.
4792         (storehi_bigend): Match use of least significant byte.
4793         (storeinthi): Remove extraneous SUBREG.
4794         Add missing construction of operands[2].
4795         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
4796         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
4797         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
4799 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
4801         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
4802         any_operand.
4804 2002-03-17  Richard Henderson  <rth@redhat.com>
4806         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
4807         explicitly.
4809 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
4811         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
4812         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
4814 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4816         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
4818         * predict.c (estimate_bb_frequencies): Delete unused variables.
4820 2002-03-17  Richard Henderson  <rth@redhat.com>
4822         * config/ia64/ia64.c (ia64_attribute_table): Move before
4823         targetm definition.  Make static.
4825 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
4827         * c-common.h (yyparse, c_common_parse_file): New.
4828         * c-lang.c: Include c-common.h.
4829         (LANG_HOOKS_PARSE_FILE): Redefine.
4830         * c-lex.c: Include c-common.h.
4831         (yyparse): Rename c_common_parse_file.  Call yyparse.
4832         * c-parse.in (yyparse): Remove macro.
4833         * c-tree.h (yyparse_1): Remove.
4834         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
4835         (LANG_HOOKS_INITIALIZER): Update.
4836         * langhooks.h (struct lang_hoooks): New hook parse_file.
4837         * toplev.c (compile_file): Use parse_file hook.
4838         * tree.h (yyparse): Remove.
4839         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
4841 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
4843         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
4844         float_truncate, not fix.
4845         ("*truncdfsf2_real"): Ditto.
4846         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
4848         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
4850 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
4852         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
4853         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
4854         where appropriate.  Make the second reference to
4855         leaf_function_p a function call, as intended.  Reindented.
4857         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
4858         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
4860         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
4861         add register to non-constant into sp.
4863         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
4864         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
4865         (mips16_gp_pseudo_rtx): Lose.
4866         (INIT_EXPANDERS): Deleted.
4867         * config/mips/mips.c (mips_init_machine_status): New.
4868         (mips_free_machine_status): New.
4869         (mips_mark_machine_status): New.
4870         (override_options): Set them.
4871         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
4872         (struct machine_function): ... new.  Replaced all references.
4873         (mips_add_gc_roots): Don't mark them.
4874         (embedded_pic_fnaddr_reg): New, extracted from...
4875         (embedded_pic_offset): ... here.
4876         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
4877         (movsi): Likewise.
4879 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
4881         * cppinit.c: Revert -MD removal.
4883 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4885         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
4886         soft registers by default for 68HC12.
4887         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
4888         when compiling with -fomit-frame-pointer.
4889         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
4890         (expand_epilogue): Likewise.
4891         (m68hc11_gen_rotate): Use exg when rotating by 8.
4893 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4895         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
4896         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
4897         (splits): Remove unused add splits.
4898         ("*addhi3_68hc12"): Tune constraints.
4899         ("addhi_sp"): Try to use X instead of Y in all cases and if the
4900         constant fits in 8-bits and D is dead use abx/aby instructions.
4901         ("*addhi3"): Remove extern declaration of ix_reg.
4902         ("*subsi3"): Optimize and provide new split.
4903         ("subhi3"): Cleanup.
4904         ("*subhi3_sp"): Avoid saving X if we know it is dead.
4905         (arith splits): For 68hc12 save the address register on the stack
4906         and do the arithmetic operation with a pop.
4908 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4910         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
4911         allocating QImode in address registers.
4912         ("*movqi_m68hc11"): Likewise.
4914 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
4916         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
4918 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
4920         * cppinit.c (print_help): Display -MD and -MMD.
4921         Don't display usage string.  Update assertion syntax and
4922         typo.
4923         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
4924         (cpp_handle_option): Update.
4926 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
4928         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
4929         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
4930         and define it so that regardless of target CPU size,
4931         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
4932         of "int" rather than "long."
4934 2002-03-15  Richard Henderson  <rth@redhat.com>
4936         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
4937         size as a tree.
4939 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4941         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
4942         ("tstqi" split): Avoid using memory for tstqi on address register.
4943         (splits): Remove constraints.
4944         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
4945         ("cmpdf", "cmpsf"): Remove since not used.
4946         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
4947         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
4949 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4951         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
4952         ("neghi2"): Tighten constraints.
4953         ("one_cmplsi2"): Optimize and simplify split.
4954         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
4956 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4958         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
4959         and split of AND operation to clear the upper bits.
4960         ("*logicalsi3_zextqi"): Likewise.
4961         ("*logicallhi3_zexthi_ashift8"): Likewise.
4962         ("*logicalsi3_silshr16"): Likewise.
4963         ("logicalsi3_silshl16"): Likewise.
4964         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
4966 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4968         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
4969         (m68hc11_indirect_p): New function.
4970         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
4971         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
4972         TARGET_M6812.
4973         (asm_print_register): Likewise.
4974         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
4975         (m68hc11_indirect_p): Declare.
4976         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
4977         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
4978         (TARGET_SWITCHES): New option -mrelax.
4979         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
4980         destination.
4981         ("iorsi3", "xorsi3"): Likewise.
4982         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
4983         ("*andhi3_mem"): New to handle destination in memory with bclr
4984         and a scratch register.
4985         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
4986         ("*andhi3_const"): New when operand2 is constant.
4987         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
4988         ("*andhi3_gen"): Cleanup of the old "andhi3".
4989         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
4990         ("xorqi3"): Update constraints.
4992 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4994         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
4995         for reg_equiv_memory_loc when the operand is a register that does
4996         not get a hard register (stack location).
4997         (tst_operand): After reload, accept all memory operand.
4998         (symbolic_memory_operand): Fix detection of symbolic references.
4999         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
5000         accept symbols and any constant.
5002 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5004         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
5005         note on the insn that sets the soft frame register.
5006         (must_parenthesize): ix and iy are also reserved names.
5007         (print_operand_address): One more place where parenthesis are required
5008         to avoid confusion with register names.
5009         (m68hc11_gen_movhi): Allow push of stack pointer.
5010         (m68hc11_check_z_replacement): Fix handling of parallel with a
5011         clobber.
5012         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
5013         the replacement register is.
5014         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
5015         and D8_REGS classes.
5016         (MODES_TIEABLE_P): All modes are tieable except QImode.
5018 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5020         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
5021         (___subdi3): Likewise.
5022         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
5023         (__map_data_section): Optimize 68hc11 case.
5025 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5027         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
5028         than a shift to avoid adding a register with itself.
5029         (m68hc11_memory_move_cost): Take into account NO_REGS.
5030         (m68hc11_register_move_cost): Update and use memory move cost
5031         for soft registers.
5032         (m68hc11_address_cost): Make cost of valid offset not 0 so that
5033         it gives more opportunities to cse to optimize.
5034         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
5035         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
5037 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
5039         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
5040         * c-common.def (CLEANUP_STMT): New tree node.
5041         * c-common.h (CLEANUP_DECL): New macro.
5042         (CLEANUP_EXPR): Likewise.
5043         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
5044         * expr.c (expand_expr): Tidy.
5045         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
5046         * tree-inline.c (initialize_inlined_parameters): Clean up
5047         new local variables.
5049 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
5051         PR bootstrap/4128
5052         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
5053         before movrXX only, use reg_overlap_mentioned_p.
5054         Only special case NE if just one insn can be generated.
5056 2002-03-15  Jason Merrill  <jason@redhat.com>
5058         * varasm.c (assemble_variable): Call resolve_unique_section before
5059         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
5060         of error_mark_node.
5062 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
5064         PR target/5170
5065         * arm.md (split pattern for thumb shiftable immediates): Add comment
5066         explaining non-obvious test.
5068 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
5070         PR target/5712
5071         * arm.md (movaddr, movaddr_insn): Delete.
5073 2002-03-15  Jason Merrill  <jason@redhat.com>
5075         * toplev.c (wrapup_global_declarations): Clarify variable handling.
5076         -fkeep-static-consts doesn't apply to comdats.
5078 2002-03-14  Richard Henderson  <rth@redhat.com>
5080         * c-decl.c: Include c-pragma.h.
5081         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
5082         (finish_function): Tidy.
5083         * c-pragma.c: Include c-common.h.
5084         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
5085         (handle_pragma_weak): Use them.
5086         (init_pragma): Register pending_weaks.
5087         * c-pragma.h (maybe_apply_pragma_weak): Declare.
5088         * print-tree.c (print_node): Print DECL_WEAK.
5089         * varasm.c (mark_weak_decls): Remove.
5090         (remove_from_pending_weak_list): Remove.
5091         (add_weak): Remove.
5092         (asm_emit_uninitialised): Call globalize_decl for weak commons.
5093         (weak_decls): Make a tree_list.
5094         (declare_weak): Cons weak_decls directly.
5095         (globalize_decl): Remove weak_decls elements directly.
5096         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
5097         symbols.  Don't pretend to handle aliases.
5098         (init_varasm_once): Update weak_decls registry.
5099         * Makefile.in: Update dependencies.
5101 2002-03-14  Richard Henderson  <rth@redhat.com>
5103         PR target/5312
5104         * config/ia64/ia64.c: Include tm_p.h last.
5105         (gen_nop_type): Remove duplicate definition.
5106         (cycle_end_fill_slots): Set sched_data for second L slot.
5107         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
5108         (nop_cycles_until): Fix typos.
5110 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
5112         PR optimization/5891
5113         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
5115 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
5117         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
5118           descriptors correctly.
5120 2002-03-14  Michael Meissner  <meissner@redhat.com>
5122         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
5123         100, allowing MAX_UNROLLED_INSNS to be overridden.
5125         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
5126         --param.
5128         * unroll.c (params.h): Include.
5129         (MAX_UNROLLED_INSNS): Delete, now in params.h.
5131         * doc/invoke.texi (--param max-unroll-insns): Document.
5133         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
5135 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
5137         * arm.md: Fix warnings about constraints in peepholes and splits.
5139 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
5141         * cpphash.h (struct lexer_state): Remove line_extension member.
5142         * cpplib.c (dequote_string, do_linemarker): New functions.
5143         (linemarker_dir): New data object.
5144         (DIRECTIVE_TABLE): No longer need to interpret #line in
5145         preprocessed source.  Delete obsolete comment about return
5146         values of handlers.
5147         (end_directive, directive_diagnostics, _cpp_handle_directive):
5148         Don't muck with line_extension.
5149         (directive_diagnostics): No need to issue warnings for
5150         linemarkers here.
5151         (_cpp_handle_directive): Issue warnings for linemarkers here,
5152         when appropriate.  Dispatch linemarkers to do_linemarker, not
5153         do_line.
5154         (do_line): Code to handle linemarkers split out to do_linemarker.
5155         Convert escape sequences in filename argument, both places.
5157         * cppmacro.c (quote_string): Rename cpp_quote_string and
5158         export.  All callers changed.
5159         * cpplib.h (cpp_quote_string): Prototype.
5160         * cppmain.c (print_line): Call cpp_quote_string on to_file
5161         before printing it.
5163         * doc/cpp.texi: Document that escapes are now interpreted in
5164         #line and in linemarkers, and that non-printing characters are
5165         converted to octal escapes when linemarkers are generated.
5167 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
5169         * emit-rtl.c (try_split): Use delete_insns.
5170         * recog.c (split_all_insns): Fix terminating condition.
5172 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
5173             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
5175         PR target/5828
5176         * arm.c (arm_output_epilogue): Fix floating-point register save
5177         adjustment when using a frame pointer.
5179 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
5181         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
5182         * config/mips/mips.c (compute_frame_size): Retrofit them here.
5183         (save_restore_insns, mips_expand_epilogue): And here.
5184         (build_mips16_call_stub): And here.
5185         (mips_function_value): Use the new macros to decide whether a single
5186         or complex float can be returned in floating-point registers.  Return
5187         a parallel rtx in the complex case.
5189 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
5191         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
5192         call after liveness analysis.
5194         * recog.c (split_insn): Use delete_insn_and_edges.
5196         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
5197         instructions to have branch prediction notes.
5198         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
5200 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
5202         * configure.in: Don't pass -Wno-long-long to a ADA compiler
5203         that doesn't support it.
5204         * configure: Regenerate.
5206 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5208         PR target/5626
5209         * config/sparc/sparc.md (normal_branch, inverted_branch,
5210         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
5211         inverted_fp_branch): Adjust calls to output_cbranch.
5212         Set length attribute.
5213         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
5214         output_v9branch.  Set length attribute.
5215         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
5216         predicates.
5217         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
5218         (output_cbranch): Likewise.  Handle far branches.
5219         (output_v9branch): Handle far branches.
5220         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
5221         Adjust prototypes.
5222         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
5223         noov_compare64_op predicates.
5225 2002-03-13  Jason Merrill  <jason@redhat.com>
5227         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
5228         into the function and constify it.
5229         * gthr-dce.h, gthr-solaris.h: Likewise.
5231 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
5233         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
5234         * config/rs6000/rs6000.c (rs6000_va_arg): Use
5235         std_expand_builtin_va_arg if not ABI_V4.
5237 2002-03-13  Jason Merrill  <jason@redhat.com>
5239         * varasm.c (globalize_decl): New fn.
5240         (assemble_start_function): Use it.
5241         (asm_emit_uninitialized): Use it.
5242         (assemble_alias): Use it.
5243         (assemble_variable): Use it.
5245 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
5247         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
5248         2002-03-12 internal visibility change.
5249         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
5250         visibility into SYMBOL_REF_FLAG.
5252 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
5254         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
5255         VOIDmode operand.  Add compile-time optimization for constant results.
5257 2002-03-12  Jason Merrill  <jason@redhat.com>
5259         * c-typeck.c (convert_for_assignment): Don't allow conversions
5260         between pointers and references.  Only allow lvalues to convert to
5261         reference.
5263 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
5265         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
5266         before prologue, to avoid scheduling problems.
5268 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5270         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
5271         (ELIMINABLE_REGS): Add sfp->sp.
5272         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
5274 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5276         PR optimization/5892
5277         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
5279 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5281         * loop.c (basic_induction_var): Don't call convert_modes if mode
5282         classes are different.
5284 2002-03-12  Richard Henderson  <rth@redhat.com>
5286         PR optimization/5901
5287         * function.c (reposition_prologue_and_epilogue_notes): Position
5288         the markers after/before the last/first insn not deleted.
5290 2002-03-12  Richard Henderson  <rth@redhat.com>
5292         PR optimization/5878
5293         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
5294         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
5295         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5297         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
5298         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
5299         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
5301         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
5302         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
5303         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
5304         also.  Don't set it if not flag_pic.
5305         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
5306         to be INVALID_REGNUM when not used.
5308 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
5310         * expmed.c (store_bit_field): Reset alias set for memory.
5311         (extract_bit_field): Same.
5313 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5315         * c-common.c (c_tree_code_type, c_tree_code_length,
5316         c_tree_code_name, add_c_tree_codes): Delete.
5317         * c-common.h (add_c_tree_codes): Delete.
5318         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
5319         Define.
5320         * c-objc-common.c (c_objc_common_init): Don't call
5321         add_c_tree_codes, instead set lang_unsafe_for_reeval.
5322         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
5323         objc_tree_code_name, add_objc_tree_codes): Delete.
5324         (objc_init): Don't call add_objc_tree_codes.
5325         * objc/objc-lang.c (tree_code_type, tree_code_length,
5326         tree_code_name): Define.
5327         * toplev.c (lang_independent_init): Don't set
5328         tree_code_length[IDENTIFIER_NODE].
5329         * tree.c (tree_code_type, tree_code_length, tree_code_name):
5330         Delete definitions, moved to language front-ends.
5331         * tree.def (IDENTIFIER_NODE): Hardwire the length.
5332         * tree.h (tree_code_type, tree_code_length, tree_code_name):
5333         Const-ify.
5334         (tree_code_length): Change type to unsigned char.
5336 2002-03-12  Richard Henderson  <rth@redhat.com>
5338         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
5339         internal visibility change.
5341 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5343         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
5344         validize_mem() instead of change_address to avoid clobbering
5345         memory attributes.
5347 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
5349         * c-lex.h (position_after_whitespace): Remove.
5351 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
5353         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
5354         (lex_string): Use unsigned char pointers.
5356 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
5358         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
5359         is not a valid memory_operand.
5361 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5363         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
5364         * config/xtensa/lib1funcs.asm: Fix copyright to include
5365         special case for libgcc files.
5366         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
5367         (__divsi3): Likewise.
5368         (__umodsi3): Likewise.
5369         (__modsi3): Likewise.
5370         * config/xtensa/lib2funcs.S: Fix copyright to include
5371         special case for libgcc files.
5373 2002-03-12  Tom Rix  <trix@redhat.com>
5375         * collect2.c (resolve_lib_name): Move outside of
5376         OBJECT_FORMAT_COFF ifdef.
5377         (ignore_library): Same.
5379 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5381         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
5383 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5385         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
5386         to function_section before writing out the constant pool.
5388 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
5390         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
5391         zero_constant.
5392         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
5394 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
5396         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
5397         (adddi3): Likewise.
5398         (movdf): Likewise.
5399         (movdi): Likewise.
5400         (cmpsi splitter): Likewise.
5401         (modsi3): Fail if <= 0.
5402         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
5403         redundant test when HOST_BITS_PER_WIDE_INT != 32.
5404         (reg_or_sub_cint64_operand): Likewise.
5405         (num_insns_constant_wide): Optimize sign extension.
5406         (rs6000_legitimize_address): Likewise.
5408 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
5410         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5411         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5413 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
5415         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
5416         address calculation.
5418 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
5420         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
5421         scratch register to DImode / TImode.
5422         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
5423         register used does not overlap the target.
5425 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5427         * Makefile.in (debug.o): Depend on debug.h.
5428         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
5429         * debug.c (do_nothing_debug_hooks): Likewise.
5430         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
5431         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
5432         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
5433         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
5434         * dwarfout.c (dwarf_debug_hooks): Likewise.
5435         * integrate.c (output_inline_function): Likewise.
5436         * objc/objc-act.c (synth_module_prologue): Likewise.
5437         * sdbout.c (sdb_debug_hooks): Likewise.
5438         * toplev.c (debug_hooks): Likewise.
5439         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5441 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5443         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
5444         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
5445         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
5446         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
5447         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
5448         * defaults.h (POINTER_SIZE): Define.
5449         * doc/tm.texi (POINTER_SIZE): Document default.
5451 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5453         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
5455 2002-03-11  Richard Henderson  <rth@redhat.com>
5457         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
5458         if rebuild_label_notes_after_reload.
5460 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
5462         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
5463         emit pic register load if "internal" visibility.
5464         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
5465         (cris_expand_builtin_va_arg): Do all computations on trees.
5467 2002-03-11  Richard Henderson  <rth@redhat.com>
5469         * rtlanal.c: Include recog.h.
5470         (keep_with_call_p): Fix thinko.
5471         * Makefile.in (rtlanal.o): Update dependencies.
5473 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
5475         * genflags.c (gen_insn): Use IS_VSPACE.
5476         * genoutput.c (output_insn_data): Likewise.
5477         (process_template): Likewise.
5479 2002-03-11  Richard Henderson  <rth@redhat.com>
5481         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
5483 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
5485         * Makefile.in: Update.
5486         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
5487         Update documentation.
5488         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
5489         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
5491 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
5493         * Makefile.in: Give texi2pod its input file as a command line
5494         argument, not on stdin.
5496 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
5497             Daniel Berlin  <dan@dberlin.org>
5499         C++ alias analysis improvement.
5500         * alias.c (record_component_aliases): Record aliases for base
5501         classes too.
5503 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
5505         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
5507 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
5509         * toplev.c (vms_fopen): Remove, not needed.
5511         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
5513         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
5515         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
5516         for FP, already done later.
5518         * toplev.c (debug_args): Add entry for VMS_DEBUG.
5519         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
5521 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
5523         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
5524         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
5525         LARGEST_EXPONENT_IS_NORMAL for the given mode.
5526         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
5527         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
5528         (ediv, emul, eldexp, esqrt): Likewise.
5529         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
5530         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
5531         (saturate): New function.
5532         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
5533         (make_nan): Use a saturation value instead of a NaN if
5534         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
5535         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
5536         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
5537         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
5538         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
5539         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
5540         !ROUND_TOWARDS_ZERO.
5541         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
5542         (ROUND_TOWARDS_ZERO): Document.
5544 2002-03-11  Andreas Jaeger  <aj@suse.de>
5546         * cfg.c (dump_flow_info): Remove unused variable.
5548 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
5550         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
5551         computations on trees.
5553 2002-03-10  Richard Henderson  <rth@redhat.com>
5555         PR 5693:
5556         * reload.c (copy_replacements_1): New.
5557         (copy_replacements): Use it to recurse through the rtx.
5559 2002-03-10  Richard Henderson  <rth@redhat.com>
5561         * loop.c (strength_reduce): Compute number of iterations as
5562         unsigned HOST_WIDE_INT.
5564 2002-03-10  Richard Henderson  <rth@redhat.com>
5566         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
5567         to move away from the end of the block.
5569 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
5571         PR preprocessor/5899
5572         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
5574 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5576         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
5578         * attribs.c (decl_attributes): Fix signed/unsigned warning.
5580 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
5582         * config/mmix/mmix.c: Improve comments.
5583         (mmix_target_asm_function_prologue): Drop variable
5584         empty_stack_frame.  Don't allocate unused slot above fp.
5585         (mmix_target_asm_function_epilogue): Mirror prologue changes.
5586         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
5587         brace in first column.
5588         (enum reg_class): Ditto.
5589         (FIRST_PARM_OFFSET): Now 0.
5590         (USER_LABEL_PREFIX): Remove #if 0:d definition.
5592 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5594         * combine.c (make_extraction): Fix error in last change.
5596 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5598         * c4x.c (c4x_fp_reglist): Const-ify.
5599         * cris.c (cris_print_operand): Likewise.
5600         * i386.c (ix86_va_arg): Likewise.
5601         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
5602         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
5603         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
5604         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
5605         * mcore.h (regno_reg_class): Likewise.
5606         * mips.c (gen_int_relational): Likewise.
5607         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
5608         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
5609         * pdp11.c (move_costs): Likewise.
5610         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
5611         * s390.c (s390_branch_condition_mnemonic, regclass_map):
5612         Likewise.
5613         * s390.h (regclass_map): Likewise.
5614         * sh.c (shift_amounts): Likewise.
5615         * sh.md (rotlsi3): Likewise.
5617 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
5619         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
5620         (ne0+5): Use new clobber to generate proper shift pattern.
5621         Patch by Michael Matz <matz@kde.org>.
5623 2002-03-09  Andreas Schwab  <schwab@suse.de>
5625         * gcc.c (validate_all_switches): Also handle `%W{...}'.
5627 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
5629         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
5631 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
5633         PR middle-end/5877
5634         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
5635         even for non-representable constants.
5637 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5639         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
5640         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
5641         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
5642         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
5643         (pop_function_context): Compute MAY_SHARE parameter for
5644         fixup_var_refs.
5645         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
5646         (gen_mem_addressof): Call fixup_var_refs with new parm.
5648         * combine.c (make_extraction): Don't make extension of CONST_INT.
5650 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
5652         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
5653         in o32 and o64 ABIs.
5654         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
5655         but getting fixed-size structs passed in registers regardless of
5656         padding in o32 and o64 ABIs.
5658         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
5659         offset before loading address of argument passed by transparent
5660         reference.
5662 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5664         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
5666 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
5668         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
5669         marker such that registers after it are saved.
5671 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5673         * sparc.c (arith_4096_operand): Fix error in last change.
5675 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
5677         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
5678         defaults for MEABI.
5680 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
5682         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
5683         vectors.
5685 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
5687         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
5689 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
5691         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
5692         removed; fix return value.
5693         * combine.c (combine_instructions): Dirtify blocks where we failed to
5694         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
5695         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
5697 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5699         * gcse.c (insert_insn_end_bb): Fix typo in last change.
5701 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
5703         * recog.c (peephole2_optimize): Re-distribute EH edges.
5705 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
5707         * expr.c (expand_expr): Use unsave lang hook.
5708         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
5709         (LANG_HOOKS_INITIALIZER): Update.
5710         * langhooks.h (struct lang_hooks): New hook unsave.
5711         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
5712         (unsave_expr_1): Remove unused lang_unsave_expr_now.
5713         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
5714         (unsave_expr_now): Remove.
5715         * tree.h (unsave_expr_now, lang_unsave,
5716         lang_unsave_expr_now): Remove.
5717         (lhd_unsave): New.
5719 2002-03-08  Andreas Jaeger  <aj@suse.de>
5721         * flow.c (propagate_block_delete_insn): Remove unused variable.
5723 2002-03-08  Kazu Hirata  <kazu@hxi.com>
5725         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
5726         insn length for memory load/store.
5728 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5730         * doc/install.texi (--with-libiconv-prefix): Document.
5732 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
5734         * doc/sourcebuild.texi: Fix typo.
5736 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
5738         PR c/3711
5739         * builtins.c (std_expand_builtin_va_arg): Do all computations on
5740         trees.
5742 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5744         * rtl.c (copy_most_rtx): Move from here ...
5745         * emit-rtl.c (copy_most_rtx): ... to here.
5747 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
5749         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
5750         SUBTARGET_CPP_SIZE_SPEC.
5751         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
5753         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
5755 2002-03-07  Matt Hiller  <hiller@redhat.com>
5757         * gensupport.c (first_dir_md_include): Renamed from include;
5758         change all references.
5759         (last_dir_md_include): Renamed from last_include; change all
5760         references.
5761         (init_md_reader): Unconditionally initialize base_dir whether or
5762         not filename is a relative path.
5764 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
5766         * config/fp-bit.c (_unord_f2): Compile it in even if
5767         US_SOFTWARE_GOFAST is enabled.
5769         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
5770         NULL_RTX.  Set all HFmode operations as NULL_RTX.
5771         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
5772         NULL_RTX, try reversing the comparison and the operands.
5774 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
5776         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
5777         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
5778         and MATCH_OP_DUP.
5780 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
5782         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
5784 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
5786         * basic-block.h (fixup_abnormal_edges): Declare.
5787         * reload1.c (fixup_abnormal_edges): New function.
5788         * reg-stack.c (convert_regs): Use it.
5790         * gcse.c (insert_insn_end_bb): Handle trapping insns.
5792         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
5794 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
5796         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
5797         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
5798         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
5799         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
5800         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
5801         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
5802         unless x and y could be infinite.
5803         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
5804         Check that the common type of both arguments is a real, even for
5805         targets without unordered comparisons.  Allow an integer argument
5806         to be compared against a real.
5807         (expand_tree_builtin): Use expand_unordered_cmp.
5808         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
5809         * cse.c (fold_rtx): Likewise.  Fix indentation.
5810         * fold-const.c (fold_real_zero_addition_p): New.
5811         (fold): Use it, and the new HONOR_... macros.
5812         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
5813         * jump.c (reversed_comparison_code_parts): After searching for
5814         the true comparison mode, use HONOR_NANS to decide whether it
5815         can be safely reversed.
5816         (reverse_condition_maybe_unordered): Remove IEEE check.
5817         * simplify-rtx.c (simplify_binary_operation): Use the new macros
5818         to decide which simplifications are valid.  Allow the following
5819         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
5820         and (a - -b) to (a + b).
5821         (simplify_relational_operation): Use HONOR_NANS.
5822         * doc/tm.texi: Document the MODE_HAS_... macros.
5824 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
5826         * combine.c (simplify_comparison): If simplifying a logical shift
5827         right and compare with constant, force the comparison to unsigned.
5829 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
5831         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
5833         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
5834         -mabi=no-altivec
5835         (alt_reg_names): Remove % for vrsave.
5837 2002-03-06  Richard Henderson  <rth@redhat.com>
5839         PR optimization/5844
5840         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
5841         if used indicates we've already emitted one copy of an operand.
5842         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
5843         (gen_split): Supply a non-null used.
5845 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
5847         * reload1.c (reload): Unshare all rtl after reload is done.
5849         * simplify-rtx.c (simplify_plus_minus): Do not abort,
5850         but simply fail if the expression is too complex to simplify.
5851         (simplify_gen_binary): Handle simplify_plus_minus failures.
5853 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
5855         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
5856         consistently call delete_trivially_dead_insns after CSE and GCSE;
5857         fix DFI_life dumping; do jump threading after liveness; do crossjumping
5858         after liveness2; update comment in last crossjumping.
5859         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
5861 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
5863         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
5864         after completing fast dead code elimination.
5866         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
5867         COMPARE operator.
5869 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
5871         * version.c:  Fix misplaced leading blanks on first line.
5873 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
5875         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
5877 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
5879         * cfgcleanup.c (mentions_nonequal_regs): New function.
5880         (thread_jump): Use it.
5881         * toplev.c (rest_of_compilation): Run jump threading after
5882         liveness.
5884 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
5886         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
5887         patch.
5889 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
5891         * predict.c (estimate_bb_frequencies): Do not reload the
5892         frequencies from notes.
5894 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
5896         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
5897         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
5899         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
5900         delete_noop_moves): Return indeger.
5901         * flow.c (ndead): New variable.
5902         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
5903         BB argument; update callers.
5904         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
5905         (life_analysis): Do not call purge_all_dead_edges.
5906         (update_life_info): Return number of deleted insns; print statistics.
5907         (update_life_info_in_dirty_blocks): likewise.
5908         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
5909         return number of insns deleted.
5911         * cse.c: Include timevar.h
5912         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
5913         iterate until stabilizes; print statistics; return number of killed
5914         insns.
5915         * Makefile.in: (cse.o): Add timevar.h dependency
5916         * rtl.h (delete_trivially_dead_insns): New.
5917         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
5918         * toplev.c (rest_of_compilation): Update callers.
5920         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
5921         (try_optimize_cfg): Do not update liveness.
5922         (cleanup-cfg): Loop until try_optimize_cfg and dead code
5923         removal stabilizes; use delete_trivially_dead_insns.
5925         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
5927 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
5929         * cppmain.c (setup_callbacks): Disable #pragma and #ident
5930         callbacks when processing assembly language.
5932 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5934         * pa.h (ASM_FILE_END): Define.
5935         * som.h (ASM_FILE_END): Delete.
5937         * pa.c (function_arg): Don't pass floats in general registers in
5938         indirect calls if TARGET_ELF32.
5940 2002-03-05  Richard Henderson  <rth@redhat.com>
5942         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
5944 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
5946         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
5948 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
5950         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
5951         -r command line.  Don't hide any symbols if not building
5952         shared libgcc.
5954 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
5956         * cfg.c (dump_flow_info): Warn about profile mismatches.
5957         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
5958         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
5960 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
5962         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
5963         wide volatile memory by parts.
5965 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
5967         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
5968         is NULL.
5970 2002-03-05  Richard Henderson  <rth@redhat.com>
5972         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
5974 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
5976         * toplev.c (documented_lang_options): Document more
5977         language-specific options.
5978         * doc/invoke.texi (Warning Options): Correct documentation for
5979         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
5980         * c-decl.c (c_decode_option): Use a table to handle warning options.
5982 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
5984         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
5985         parameter to mmix_encode_section_info.
5986         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
5987         relocatably.  Always produce ELF, not mmo if linking relocatably.
5988         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
5989         first is non-zero, don't add symbol prefix.
5990         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
5991         prototype accordingly.
5993 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
5995         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
5997 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
5999         * configure.in: Increase required makeinfo version to 4.1.
6000         * configure: Regenerate.
6002 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
6004         * .cvsignore: Remove *.info* and genrtl*; these files are generated
6005         elsewhere now.
6007 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
6009         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
6010         * doc/invoke.texi: Fix @math uses.
6012 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
6014         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
6015         removal
6017 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
6019         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
6020         (powerpc-*-eabisimaltivec*): Same.
6022         * config/rs6000/t-ppcendian: New.
6024 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6026         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
6027         nonimmediate_src_operand and nonimmediate_lsrc_operand to
6028         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
6030 2002-03-03  Richard Henderson  <rth@redhat.com>
6032         * toplev.c (rest_of_decl_compilation): Revert last two changes.
6034 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
6036         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
6037         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
6038         tree.c, config/m68k/m68k.c:
6039         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
6040         REAL_ARITHMETIC blocks unconditional.  Delete some further
6041         #ifdef blocks predicated on REAL_ARITHMETIC.
6042         * flags.h, toplev.c: Delete remaining references to
6043         flag_pretend_float.
6045         * doc/invoke.texi: Remove documentation of -fpretend-float.
6046         * doc/tm.texi: Describe the various REAL_* macros as provided by
6047         real.h, not by the target configuration files.
6049         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
6050         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
6051         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
6052         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
6053         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
6054         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
6055         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
6056         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
6057         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
6058         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
6059         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
6060         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
6061         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
6062         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
6063         config/xtensa/xtensa.h:
6064         Do not define, undefine, or mention in comments any of
6065         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
6066         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
6067         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
6068         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
6069         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
6070         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
6071         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
6072         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
6073         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
6075 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6077         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
6078         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
6079         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
6080         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
6081         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
6082         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
6083         Delete.
6084         * defaults.h (BITS_PER_WORD): Define.
6085         * doc/tm.texi (BITS_PER_WORD): Document default value.
6087         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
6088         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
6089         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
6091 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6093         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
6094         lieu of explicit sizeof/sizeof.
6095         * i386.c (override_options, ix86_init_mmx_sse_builtins,
6096         ix86_expand_builtin): Likewise.
6097         * mips.c (mips_add_gc_roots): Likewise.
6098         * mmix.c (mmix_output_condition): Likewise.
6099         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
6100         altivec_init_builtins): Likewise.
6101         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
6102         * cppexp.c (Nsuff, parse_number): Likewise.
6103         * cppinit.c (builtin_array_end): Likewise.
6104         * gcc.c (n_default_compilers, process_command): Likewise.
6105         * genpreds.c (output_predicate_decls): Likewise.
6106         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
6107         * lcm.c (N_ENTITIES): Likewise.
6108         * stor-layout.c (set_sizetype): Likewise.
6110 2002-03-03  Richard Henderson  <rth@redhat.com>
6112         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
6113         for types or labels.
6115 2002-03-03  Richard Henderson  <rth@redhat.com>
6117         * c-decl.c (start_decl): Initialized variables are not common.
6119 2002-03-02  Per Bothner  <per@bothner.com>
6121         * gcc.c (option_map):  Suport new --bootclasspath option.
6122         --CLASSPATH is now just an alias for --classpath.
6124 2002-03-02  Richard Henderson  <rth@redhat.com>
6126         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
6127         load if "internal" visibility.
6128         * doc/extend.texi: Document visibility meanings.
6130 2002-03-02  Richard Henderson  <rth@redhat.com>
6132         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
6133         to functions as well.
6135 2002-03-02  Richard Henderson  <rth@redhat.com>
6137         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
6138         (handle_visibility_attribute): Don't call assemble_visibility.
6139         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
6140         without asmspec.  Invoke assemble_alias when needed.
6141         * varasm.c (maybe_assemble_visibility): New.
6142         (assemble_start_function, assemble_variable, assemble_alias): Use it.
6144 2002-03-02  Richard Henderson  <rth@redhat.com>
6146         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
6147         invoke ENCODE_SECTION_INFO with first call flag.
6149         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
6150         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
6151         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
6152         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
6153         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
6154         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
6155         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
6156         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
6157         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
6158         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
6159         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
6160         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
6161         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
6162         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
6163         config/mcore/mcore-protos.h, config/mcore/mcore.c,
6164         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
6165         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
6166         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
6167         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
6168         config/sh/sh.h, config/sparc/sparc.h,
6169         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
6170         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
6171         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
6172         FIRST argument.  As needed, examine it and do nothing.
6174         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
6175         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
6176         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
6178         * config/arm/t-pe (pe.o): Add dependencies.
6180 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6182         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
6183         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
6184         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
6185         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
6186         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
6187         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
6188         * defaults.h (BITS_PER_UNIT): Define.
6189         * doc/tm.texi (BITS_PER_UNIT): Document default value.
6191 2002-03-02  Kazu Hirata  <kazu@hxi.com>
6193         * config/h8300/h8300-protos.h: Add a prototype for
6194         compute_a_shift_length.
6195         * config/h8300/h8300.c (h8300_asm_insn_count): New.
6196         (compute_a_shift_length): Likewise.
6197         (h8300_adjust_insn_length): Do not adjust insn length of shift
6198         insns.
6199         * config/h8300/h8300.md (anonymous shift patterns): Use
6200         compute_a_shift_length.
6202 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6204         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
6205         trunc_int_for_mode.
6207         * emit-rtl.c (offset_address): Call update_temp_slot_address.
6209 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6211         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
6212         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
6213         * flags.h (flag_zero_initialized_in_bss): Declare.
6214         * toplev.c (flag_zero_initialized_in_bss): New flag.
6215         (lang_independent_options): Add flag_zero_initialized_in_bss.
6216         * tree.c (initializer_zerop): New function.
6217         * tree.h (initializer_zerop): Declare.
6218         * varasm.c (assemble_variable): If we can emit bss, put zero
6219         initializers in the bss section.
6221 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
6223         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
6224         like more than one symbol per .weak directive.
6226 2002-03-01  Richard Henderson  <rth@redhat.com>
6228         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
6229         adjust argument_pointer by pretend_args_size.
6230         (ia64_va_start): Adjust va_start address by -pretend_args_size.
6232 2002-03-01  Kazu Hirata  <kazu@hxi.com>
6234         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
6236 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
6238         * toplev.c (rest_of_compilation): Delete dead jumptables before
6239         loop.
6240         * flow.c (delete_dead_jumptables): Make global.
6241         * rtl.h (delete_dead_jumptables): Declare.
6243 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
6245         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
6246         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
6247         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
6249 2002-03-01  Kazu Hirata  <kazu@hxi.com>
6251         * config/h8300/h8300-protos.h: Fix formatting.
6252         * config/h8300/h8300.c: Likewise.
6253         * config/h8300/h8300.h: Likewise.
6255 2002-03-01  Kazu Hirata  <kazu@hxi.com>
6257         * config/h8300/h8300.c (print_operand): Support 16-bit
6258         constant addresses.
6259         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
6261 2002-02-28  Richard Henderson  <rth@redhat.com>
6263         * expmed.c (store_bit_field): Prevent generation of CONCATs;
6264         pun complex values as integers; use gen_lowpart instead of
6265         gen_rtx_SUBREG.
6266         (extract_bit_field): Likewise.
6268 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
6269             David Edelsohn  <edelsohn@gnu.org>
6271         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
6272         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
6273         (SUPPORTS_WEAK): Likewise.
6274         * output.h (add_weak): Add tree param.
6275         * varasm.c (add_weak): Likewise.  Save decl.
6276         (struct weak_syms): Add decl field.
6277         (mark_weak_decls): New function.
6278         (init_varasm_once): ggc_add_root mark_weak_decls.
6279         (assemble_start_function): Use ASM_WEAKEN_DECL.
6280         (assemble_variable): Likewise.
6281         (assemble_alias): Likewise.
6282         (declare_weak): Pass decl to add_weak.
6283         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
6284         (remove_from_pending_weak_list): Declare and define for
6285         ASM_WEAKEN_DECL.
6286         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
6287         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
6288         * defaults.h (SUPPORTS_WEAK): Likewise.
6289         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
6290         .weak for code sym.  Do emit .size for descriptor sym.
6291         (ASM_DECLARE_FUNCTION_SIZE): Define.
6292         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
6293         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
6294         .lglobl unless TARGET_XCOFF.  Formatting fixes.
6295         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
6296         .weak for code sym.
6297         (HANDLE_PRAGMA_WEAK): Remove.
6298         (ASM_WEAKEN_LABEL): Remove.
6299         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
6301 2002-03-01  Jason Merrill  <jason@redhat.com>
6303         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
6304         (TARGET_EXPR_CLEANUP): New macro.
6306 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
6308         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
6309         to take ptr_extend into account as third type of extension.
6310         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
6311         fields used by SUBREG_PROMOTED_UNSIGNED_P.
6312         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
6313         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
6314         * calls.c (precompute_arguments): Use new macro.
6315         (expand_call): Ditto.
6316         * combine.c (nonzero_bits): Ditto.
6317         (record_promoted_value): Ditto.
6318         * expr.c (store_expr): Ditto.
6319         (expand_expr): Ditto.
6320         * function.c (assign_parms): Ditto.
6322 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
6324         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
6325         override -shared and -shared-libgcc.
6327 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
6329         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
6330         of "ultrasparc".
6331         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
6332         to be broken.
6334 2002-02-28  Richard Henderson  <rth@redhat.com>
6336         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
6337         4 cycle latency from MM producers.
6338         (ia64_internal_sched_reorder): Likewise with pipeline flush.
6340 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
6342         * mklibgcc.in: Don't use GNU make extension.
6344 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
6346         * c-parse.in (STATIC): New terminal.
6347         (scspec): New non-terminal.  Update productions accordingly.
6348         (program): Remove bogus ifc / end ifc.
6349         (array_declarator): Simplify production using STATIC.
6351 2002-02-28  Jim Meyering  <meyering@lucent.com>
6353         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
6354         \a still means TARGET_BELL.
6356 2002-02-28  Richard Henderson  <rth@redhat.com>
6358         * haifa-sched.c (sched_emit_insn): New.
6359         (schedule_block): Use last_scheduled_insn to track last insn.
6360         * sched-int.h (sched_emit_insn): Prototype.
6361         * config/ia64/ia64.c (last_issued): Remove.
6362         (ia64_variable_issue): Don't set it.
6363         (nop_cycles_until): Use sched_emit_insn.
6365 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
6367         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
6368         extended constants.
6370 2002-02-28  Kazu Hirata  <kazu@hxi.com>
6372         * config/h8300/h8300.c: Fix formatting.
6373         * config/h8300/h8300.h: Likewise.
6375 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6377         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
6378         which may overwrite the high byte of the frame pointer.
6380 2002-02-28  Bo Thorsen  <bo@suse.de>
6382         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
6383         (STARTFILE_SPEC): Add 64 bit files.
6384         (ENDFILE_SPEC): Likewise.
6386 2002-02-28  Jason Merrill  <jason@redhat.com>
6388         * c-decl.c (finish_function): Only warn about missing return
6389         statement with -Wreturn-type.
6391 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
6393         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
6395         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
6396         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
6398 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
6400         * basic-block.h (BB_REACHABLE): Renumber.
6401         (BB_DIRTY, BB_NEW): New flags.
6402         (clear_bb_flags): Declare.
6403         (update_life_info_in_dirty_blocks): Declare.
6404         * cfg.c (clear_bb_flags): New function.
6405         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
6406         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
6407         reorder_insns, emit_insn_after): Mark block as dirty.
6408         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
6409         (update_life_info_in_dirty_blocks): New function.
6410         * recog.c (apply_change_group): Dirtify block.
6412         * cse.c (cse_insn): Reorder emitting of jump insn to keep
6413         cfg consistent.
6414         * gcse.c (delete_null_pointer_checks): Likewise.
6416         * toplev.c (dump_file_index): Move cse2 after bp,
6417         add DFI_null
6418         (dump_file_info): Similary.
6419         (rest_of_compilation): Avoid most of CFG rebuilds;
6420         do first if converision after null pointer checks, do cse2
6421         after branch prediction; avoid full liveness rebuild after
6422         initializing subregs.
6423         * invoke.texi (-d options): Document -du, renumber.
6425         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
6426         (notice_new_block): Do not set BB_UPDATE_LIFE.
6427         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
6428          merge_blocks_move_successor_nojumps, merge_blocks,
6429          try_crossjump_to_edge): Likewise.
6430         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
6431         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
6432         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
6433         (merge_of_block): Do not use life_data_ok.
6434         (find_if_case_1): Do not use SET_UPDATE_LIFE.
6435         (if_convert): Use BB_DIRTY mechanizm to update life.
6436         * lcm.c (optimize_mode_switching): Update
6437         update_life_info_in_dirty_blocks
6439 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
6441         * Makefile.in (integrate.o): Update.
6442         * c-decl.c (copy_lang_decl): Rename.
6443         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
6444         * integrate.c: Include langhooks.h.
6445         (copy_decl_for_inlining): Update to use langhook.
6446         * langhooks-def.h (lhd_do_nothing_t,
6447         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
6448         (LANG_HOOKS_INITIALIZER): Update.
6449         * langhooks.c (lhd_do_nothing_t): New.
6450         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
6451         * tree.h (copy_lang_decl): Remove.
6452 objc:
6453         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
6455 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
6457         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
6458         POST_DEC, and POST_MODIFY.
6460 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
6462         * c-typeck.c (digest_init): Remove unused parameter; all
6463         callers changed.
6465 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
6467         * expmed.c (expand_shift): Correctly test for low part of a
6468         subreg.
6470 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
6472         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
6473         insn UIDs with insn addresses.
6475 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
6477         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
6478         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
6479         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
6480         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
6481         gcc.c, toplev.c: Delete code implementing -traditional mode.
6483         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
6484         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
6485         Document removal of -traditional mode for compilation, and
6486         remove documentation only relevant to that mode.
6488         * config/nextstep.h, config/ptx4.h, config/svr4.h,
6489         config/convex/convex.h, config/d30v/d30v.h,
6490         config/i386/dgux.h, config/i386/osf1elf.h,
6491         config/i386/osfelf.h, config/i386/osfrose.h,
6492         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
6493         config/m68k/hp310.h, config/m88k/dgux.h,
6494         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
6495         config/m88k/m88k.h, config/m88k/openbsd.h,
6496         config/mips/abi64.h, config/mips/osfrose.h,
6497         config/mips/svr4-5.h, config/mips/svr4-t.h,
6498         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
6499         config/stormy16/stormy16.h: Remove all references to
6500         -traditional from target specs.  Delete all mention of the
6501         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
6502         delete a couple of commented-out definitions of
6503         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
6504         to -traditional.
6506         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
6507         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
6509 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
6511         * mklibgcc.in: Don't use \n in a line subject to
6512         interpretation by echo.
6514 2002-02-27  Graham Stott  <grahams@redhat.com>
6516         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
6517         Constify NAME.
6519         * loop.c (prescan_loop): Handle PARALLEL.
6521         * unroll.c (loop_iterations): Return 0 if the add_val for
6522         a BIV is REG.
6524         * final.c (output_operand_lossage): Constify PFX_STR.
6526         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
6528 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
6530         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
6531         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
6533 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
6535         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
6537 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6539         * cpplex.c (_cpp_lex_token): Handle directives in macro
6540         arguments.
6541         * cpplib.c (_cpp_handle_directive): Save and restore state
6542         if parsing macro args when entering a directive.
6543         * cppmacro.c (collect_args): No need to handle directives
6544         in macro arguments.
6545         (enter_macro_context, replace_args): Use the original macro
6546         definition in case it was redefined whilst collecting arguments.
6547 doc:
6548         * cpp.texi: Update.
6550 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
6552         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
6553         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
6554         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
6555         method on AIX.
6556         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
6557         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
6558         (load_toc_v4_PIC_2): Same.
6560 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
6562         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
6564 2002-02-26  Richard Henderson  <rth@redhat.com>
6566         * config/alpha/alpha.md (ashldi_se): Re-enable.
6568 2002-02-26  Richard Henderson  <rth@redhat.com>
6570         * config/alpha/alpha.c (alpha_encode_section_info): Examine
6571         MODULE_LOCAL_P; improve commentary.
6573 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
6575         * doc/cpp.texi: Clarify documentation of relationship between
6576         #line and #include.
6578 2002-02-26  Kazu Hirata  <kazu@hxi.com>
6580         * config/h8300/h8300-protos.h: Update the prototype for
6581         compute_logical_op_length.  Add the prototype for
6582         compute_logical_op_cc.
6583         * config/h8300/h8300.c (compute_logical_op_length): Figure out
6584         code from operands.
6585         (compute_logical_op_cc): New.
6586         * config/h8300/h8300.md: Combine all the logical op patterns
6587         in HImode and SImode.  Use compute_logical_op_cc.
6589 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
6591         * config/i386/i386.c (print_operand): Don't append ATT-style
6592         length suffixs to x87 opcodes when in Intel mode.
6594 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
6596         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
6597         (init_emit_once): Update calls.
6598         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
6599         (init_syntax_once): Prototype.
6601 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6603         * pa-linux.h (LIB_SPEC): Update definition.
6604         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6606 2002-02-26  Richard Henderson  <rth@redhat.com>
6608         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
6609         if we emitted a stop bit.
6611 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
6613         * configure.in (libgcc_visibility): Substitute.
6614         * configure: Rebuilt.
6615         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
6616         defined symbols .hidden.
6618 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
6620         * attribs.c (c_common_attribute_table): Add visibility.
6621         (handle_visibility_attribute): New function.
6622         * varasm.c (assemble_visibility): New function.
6623         * output.h (assemble_visibility): Add prototype.
6624         * tree.h (MODULE_LOCAL_P): Define.
6625         * crtstuff.c (__dso_handle): Use visibility attribute.
6626         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
6627         for MODULE_LOCAL_P symbols too.
6628         * config/ia64/ia64.c (ia64_encode_section_info): Handle
6629         MODULE_LOCAL_P symbols the same way as local symbols.
6630         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
6631         into .sdata/.sbss by the user.
6632         * doc/extend.texi (Function Attributes): Document visibility
6633         attribute.
6635 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
6637         PR debug/5770
6638         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
6639         STRING_CST initializer spanning the whole variable without
6640         embedded zeros.
6641         If expand_expr returned MEM, don't use it.
6643 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
6645         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
6646         generate a die for the lexical block.
6648 2002-02-26  Kazu Hirata  <kazu@hxi.com>
6650         * config/h8300/h8300-protos.h: Add a prototype for
6651         compute_logical_op_length.
6652         * config/h8300/h8300.c (compute_logical_op_length): New.
6653         * config/h8300/h8300.md (anonymous logical patterns): Use
6654         compute_logical_op_length for length.
6656 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
6658         * dwarf2out.c (modified_type_die): Do not call type_main_variant
6659         for vectors.
6660         (gen_type_die): Same.
6662         * attribs.c (handle_vector_size_attribute): Set debug information.
6664 2002-02-26  Daniel Egger  <degger@fhm.edu>
6666         * config/rs6000/rs6000.md: Swap define_insn attributes to
6667         fix incorrect generation of merge high instructions instead
6668         of merge low.
6670 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
6672         * c-typeck.c (really_start_incremental_init): Use
6673         bitsize_zero_node for vectors.
6675 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
6677         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
6678         ("*set_vrsave_internal"): Same.
6680 2002-02-25  Richard Henderson  <rth@redhat.com>
6682         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
6683         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
6685 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
6687         PR target/5755
6688         * config/i386/i386.c (ix86_return_pops_args): Only pop
6689         fake structure return argument if it was passed on the stack.
6691 2002-02-25  Jason Merrill  <jason@redhat.com>
6693         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
6694         RESULT_DECL.
6696 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
6698         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
6699         link with shared_name only.
6700         * doc/invoke.texi (Link Options): Document new behavior.
6702 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
6704         * c-typeck.c (push_init_level): Handle vectors.
6706 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
6708         * config/sparc/sparc.c (const64_high_operand): Zero-extend
6709         operands of SPARC_SETHI_P.
6710         (input_operand): Likewise.
6711         (sparc_emit_set_const32): Likewise.
6712         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
6713         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
6714         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
6715         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
6716         (movdi_insn_sp64_vis): Likewise.
6717         (movdi split, movdf split): Use SETHI32.
6718         * doc/md.texi: Document SPARC constraints L, M and N.
6720 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
6722         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
6723         ("*set_vrsave_internal"): use mfspr for Darwin.
6725         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
6726         gen_get_vrsave_internal.
6728 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6730         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
6732 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6734         * cpplex.c (cpp_interpret_charconst): Get signedness or
6735         otherwise of wide character constants correct.
6736         * cppexp.c (lex): Get signedness of wide charconsts correct.
6738 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6740         * optabs.c (widen_operand): Only call convert_modes for
6741         promoted SUBREG if signedness matches.
6742         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
6744 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
6746         * cpplib.c (glue_header_name): Use local buffer to build up
6747         header name.
6749 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
6751         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
6753 2002-02-23  Kazu Hirata  <kazu@hxi.com>
6755         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
6756         H8/300[HS] separately.
6757         * config/h8300/h8300.md: Remove the early clobber constraint
6758         from bit field patterns.
6760 2002-02-23  Kazu Hirata  <kazu@hxi.com>
6762         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
6763         register_operand.
6764         (mulhisi3): Likewise.
6765         (umulqisi3): Likewise.
6766         (umulhisi3): Likewise.
6768 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
6770         * cppinit.c (output_deps): Correct test for stdout output.
6771         (init_dependency_output): Cure warning.
6773 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6775         * expr.c (store_expr): When converting expression to promoted
6776         equivalent type, allow using SUBREG_REG of TARGET as the target
6777         of the expansion of EXP.
6778         * loop.c (basic_induction_var, case SUBREG): Always look inside.
6779         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
6780         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
6781         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
6782         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
6784 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
6786         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
6787         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
6788         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
6790 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
6792         PR optimization/5747
6793         * loop.c (scan_loop): Update reg info if move_movables created new
6794         pseudos.
6796 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
6798         * gcc.c (init_gcc_spec): Revert last change.
6800 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
6802         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
6803         gpc_reg_operand constraint.
6805 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
6807         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
6808         Simplify comparison of `low'.
6809         (add_operand): Fix formatting.
6810         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
6811         (mask_operand): Disallow mask to wrap in 64-bit mode.
6812         (rs6000_stack_info): Remove redundant test setting push_p.
6813         (output_toc): Fix formatting.
6814         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
6815         cc_reg_not_cr0_operand constraint.
6816         (booldi3, boolcdi3 splitters): Same.
6818 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
6820         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
6822 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
6824         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
6825         gcc invoked with -shared-libgcc.
6827 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
6829         PR c++/5748
6830         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
6831         decl if any of elements was TREE_USED.
6833 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
6835         * config/sparc/sol2.h: Don't include sys/mman.h.
6836         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
6837         (arith_4096_operand): Don't throw high bits away.
6838         (const64_operand): Take sign extension of CONST_INTs into account.
6839         (const64_high_operand, sparc_emit_set_const32): Likewise.
6840         (GEN_HIGHINT64): Likewise.
6841         (sparc_emit_set_const64_quick1): Likewise.
6842         (const64_is_2insns): Likewise.
6843         (print_operand): Use trunc_int_for_mode for sign extension.
6844         * config/sparc/sparc.h (SMALL_INT32): Likewise.
6845         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
6846         chars.  Assume CONST_INT is already properly sign-extended.
6847         (movdi split): Sign-extend each SImode part.
6848         (andsi3 split): Don't mask high bits off, so that result
6849         remains properly sign-extend.
6850         (iorsi3 split): Likewise.
6851         (xorsi3 split): Likewise.
6853 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
6855         * fold-const.c (fold): Fix typo in comments.
6857 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
6859         * Makefile.in (langhooks.o): Update dependencies.
6861 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
6863         * langhooks.c: Include flags.h.
6865 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
6867         * testsuite/gcc.dg/attr-alwaysinline.c: New.
6869         * c-common.c (c_common_post_options): Set inline trees by
6870         default.
6872         * doc/extend.texi (Function Attributes): Document always_inline
6873         attribute.
6874         Update documentation about inlining when not optimizing.
6876         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
6878         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
6879         unless DECL_ALWAYS_INLINE.
6881         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
6882         unless DECL_ALWAYS_INLINE.
6883         (c_disregard_inline_limits): Disregard if always_inline set.
6885         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
6886         Disregard if always_inline set.
6887         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
6888         unless DECL_ALWAYS_INLINE.
6890         * attribs.c (handle_always_inline_attribute): New.
6891         (c_common_attribute_table): Add always_inline.
6893         * config/rs6000/altivec.h: Add prototypes for builtins
6894         requiring the always_inline attribute.
6896 2002-02-21  Eric Christopher  <echristo@redhat.com>
6898         * expmed.c (store_bit_field): Try to simplify the subreg
6899         before generating a new one when when the mode size of
6900         value is less than maxmode.
6902 2002-02-21  Richard Henderson  <rth@redhat.com>
6904         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
6905         than gen_rtx_PLUS to form the sum.
6906         * explow.c (force_reg): Rearrange to not allocate new pseudo
6907         when force_operand returns a register.
6908         * expr.c (expand_assignment): Allow offset_rtx expansion to
6909         return a sum.  Do not force addresses into registers.
6910         (expand_expr): Likewise.
6911         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
6912         to canonicalize arithmetic that didn't simpify.
6913         (simplify_plus_minus): New argument force; update
6914         all callers.  Don't split CONST unless we can do something with it,
6915         and wouldn't lose the constness of the operands.
6917         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
6918         that we generated earlier.
6920 2002-02-21  Tom Tromey  <tromey@redhat.com>
6922         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6923         (output_line_info): Use constant `1', with a long explanatory
6924         comment.
6925         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
6927 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
6929         * jump.c (redirect_jump): If old label has no UID, don't try to
6930         delete it.
6932 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
6934         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
6935         If input is constant, do shifts at compile time.
6937 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
6939         * doc/extend.texi: Fix some more overfull hboxes.
6941 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
6943         PR optimization/4994
6944         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
6945         register moves.
6947 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
6949         PR c++/4574
6950         * expr.h (expand_and): Add mode argument.
6951         * expmed.c (expand_and): Add mode argument.
6952         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
6953         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
6954         * except.c (expand_builtin_extract_return_addr): Likewise.
6955         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
6956         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
6957         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
6958         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
6959         * config/c4x/c4x.md: Use GEN_INT (x) instead of
6960         gen_rtx (CONST_INT, VOIDmode, x).
6962 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
6964         PR c/4697:
6965         * stmt.c (warn_if_unused_value): Move side effects test once more.
6967 2002-02-20  Torbjorn Granlund  <tege@swox.com>
6969         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
6970         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
6972 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
6974         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
6975         SUBREG or ZERO_EXTEND.
6977 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
6979         * sh.h (current_function_anonymous_args): Remove.
6980         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
6981         of current_function_varargs and current_function_stdarg is set.
6982         * sh.c (sh_expand_prologue): Check current_function_varargs /
6983         current_function_stdarg / TARGET_SH5 instead of
6984         current_function_anonymous_args.
6986         * sh64.h (TARGET_VERSION): Define.
6988 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
6990         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
6991         VRSAVE_REGNO on TARGET_ALTIVEC.
6993 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
6995         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
6996         bits of SImode const_int.
6997         (includes_rshift_p): Likewise.
6998         (print_operand): Call mask_operand and mask64_operand with correct
6999         mode.
7000         (rs6000_output_function_epilogue): Pad traceback table to word.
7001         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
7002         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
7003         mask64_operand with correct mode.
7004         (FUNCTION_ARG_REGNO_P): Correct parentheses.
7006 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
7008         PR debug/4461
7009         * varasm.c (get_pool_constant_mark): New.
7010         * rtl.h (get_pool_constant_mark): Add prototype.
7011         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
7012         be represented if it has not been output.
7014 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
7016         * combine.c (do_SUBST): Sanity check substitutions of
7017         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
7018         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
7019         CONST_INT into its operand.
7020         (known_cond): Likewise, for ZERO_EXTEND.
7021         * simplify-rtx.c (simplify_unary_operation): Fix condition to
7022         allow for simplification of wide modes.  Reject CONST_INTs in
7023         ZERO_EXTEND when their actual mode is not given.
7025 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
7027         * c-decl.c (pushdecl): If no global declaration is found for an
7028         extern declaration in block scope, try a limbo one.
7030 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
7032         PR c++/4401
7033         * c-common.c (pointer_int_sum): Moved from...
7034         * c-typeck.c (pointer_int_sum): ...here.
7035         * c-common.h (pointer_int_sum): Add prototype.
7037 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
7039         PR c++/5713
7040         * c-decl.c (duplicate_decls): Return 0 if issued error about
7041         redeclaration.
7043 2002-02-20  Roger Sayle  <roger@eyesopen.com>
7044             Jakub Jelinek  <jakub@redhat.com>
7046         PR c/4389
7047         * tree.c (host_integerp): Ensure that the constant integer is
7048         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
7049         when pos is zero or non-zero respectively.  Clarify comment.
7050         * c-format.c (check_format_info_recurse): Fix host_integerp
7051         usage; the pos argument should be zero when assigning to a
7052         signed HOST_WIDE_INT.
7054 2002-02-20  Richard Henderson  <rth@redhat.com>
7056         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
7057         of the operand, rather than assuming TImode.
7058         (ix86_expand_binop_builtin): Cope with commutative patterns
7059         using nonimmediate_operand for both operands.
7060         (ix86_expand_timode_binop_builtin): Likewise.
7061         (ix86_expand_store_builtin): Validate operand 1.
7062         (ix86_expand_unop1_builtin): Likewise.
7064 2002-02-20  Philip Blundell  <philb@gnu.org>
7066         PR 5705
7067         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
7069 2002-02-20  Richard Henderson  <rth@redhat.com>
7071         PR c/5615
7072         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
7074 2002-02-20  Tom Tromey  <tromey@redhat.com>
7076         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7077         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7078         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7079         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7080         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
7081         unconditionally.
7083 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
7085         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
7086           for (const_int 0) in X not just INTVAL.
7088 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
7090         * doc/extend.texi: Avoid or reduce overfull hboxes.
7092 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
7094         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
7095         operations if the field does not start at a mode boundary.
7097 2001-02-20      Joel Sherrill <joel@OARcorp.com>
7099         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
7100         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
7101         Also done for -Acpu and -Amachine.
7103 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
7105         * cppinit.c (init_dependency_output): Take deps output file
7106         from -o if none given with -MF.  Suppress normal output.
7107         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
7108         * doc/cpp.texi, doc/invoke.texi: Update.
7110 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
7112         * toplev.c (output_quoted_string): Write unprintable
7113         characters with octal escapes.
7115 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
7117         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
7118         really_call_used[VRSAVE_REGNO] if not Altivec.
7120 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
7122         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
7123         MODE_MASK.
7124         (constant_pool_expr_1): Fix formatting.
7125         (rs6000_legitimize_reload_address): Likewise.
7127 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7129         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
7130         now that we have one.
7132 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
7134         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
7135         end of first block of bitfields (which was only seven bits);
7136         rename dummy to unused_1; remove comment which is no longer true.
7138 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
7140         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
7142 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
7144         PR 5399
7145         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
7146         if generating PIC.
7148         PR 5054
7149         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
7150         arm_is_longcall_p rather than inspecting call-type cookie
7151         directly.
7152         (call_value_insn) [TARGET_THUMB]: Likewise.
7154 2002-02-19  Graham Stott  <grahams@redhat.com>
7156         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
7158 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
7160         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
7161         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
7162         (FP_SAVE_INLINE): Delete.
7164         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
7165         * config/rs6000/eabi.asm: Remove ABI save restore routines.
7166         * config/rs6000/t-ppccomm: Build crtsavres.o.
7167         * config/rs6000/crtsavres.asm: New file.
7169 2002-02-19  Philip Blundell  <philb@gnu.org>
7171         * config/arm/arm.c (use_return_insn): Don't reject interrupt
7172         functions.
7173         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
7174         (output_return_instruction): Allow interrupt functions to return with
7175         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
7176         (arm_expand_prologue): Subtract 4 before stacking LR in an
7177         interrupt function.
7179 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
7181         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
7182         decl, not just FUNCTION_DECL.
7183         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
7184         (arm_assemble_integer): Likewise.
7185         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
7186         marked local.
7188 2002-02-19  matthew green  <mrg@eterna.com.au>
7190         * config.gcc (sparc-*-netbsdelf*): Enable target.
7191         (sparc64-*-netbsd*): New target.
7192         * config/sparc/netbsd-elf.h: New file.
7193         * config/sparc/t-netbsd64: New file.
7195 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
7197         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
7199 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
7201         * doc/invoke.texi: explicitly list the style guidelines that
7202         -Weffc++ checks for.
7204 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
7206         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
7208 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
7210         PR other/5718
7211         * gcc.c (cpp_unique_options): Treat -o as indicating object file
7212         only if not -E.  If -E, pass -o through to the preprocessor.
7214 2002-02-19  Kazu Hirata  <kazu@hxi.com>
7216         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
7217         register number with an appropriate macro.
7219 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
7221         * doc/rtl.texi (Constants): Close @code tag.
7223 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
7225         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
7226         ("mmx_uavgv4hi3"): Same.
7227         ("pmulhrwv4hi3"): Same.
7229         * tree-inline.c (walk_tree): Handle vectors.
7231         * c-common.c (constant_expression_warning): Handle vectors.
7232         (overflow_warning): Same.
7234         * sched-deps.c (sched_analyze_2): Handle vectors.
7236         * rtlanal.c (rtx_unstable_p): Handle vectors.
7237         (rtx_varies_p): Same.
7238         (count_occurrences): Same.
7239         (regs_set_between_p): Same.
7240         (modified_between_p): Same.
7241         (modified_in_p): Same.
7242         (volatile_insn_p): Same.
7243         (volatile_refs_p): Same.
7244         (side_effects_p): Same.
7245         (may_trap_p): Same.
7246         (inequality_comparisons_p): Same.
7247         (replace_regs): Same.
7248         (computed_jump_p_1): Same.
7250         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
7251         argument.
7252         (inner_mode_array): New.
7253         (copy_rtx): Handle vectors.
7254         (copy_most_rtx): Same.
7255         (rtx_equal_p): Same.
7256         (get_mode_alignment): Adjust for vectors.
7258         * resource.c (mark_referenced_resources): Handle vectors.
7259         (mark_set_resources): Same.
7261         * reload1.c (eliminate_regs): Handle vectors.
7262         (elimination_effects): Same.
7263         (scan_paradoxical_subregs): Same.
7265         * reload.c (subst_reg_equivs): Handle vectors.
7267         * regrename.c (scan_rtx): Handle vectors.
7269         * regclass.c (reg_scan_mark_refs): Handle vectors.
7271         * recog.c (find_single_use_1): Handle vectors.
7273         * local-alloc.c (equiv_init_varies_p): Handle vectors.
7274         (contains_replace_regs): Same.
7275         (memref_referenced_p): Same.
7277         * integrate.c (copy_rtx_and_substitute): Handle vectors.
7278         (subst_constants): Same.
7280         * genattrtab.c (attr_copy_rtx): Handle vectors.
7281         (encode_units_mask): Same.
7282         (clear_struct_flag): Same.
7283         (count_sub_rtxs): Same.
7285         * gcse.c (want_to_gcse_p): Handle vectors.
7286         (oprs_unchanged_p): Same.
7287         (hash_expr_1): Same.
7288         (oprs_not_set_p): Same.
7289         (expr_killed_p): Same.
7290         (compute_transp): Same.
7291         (store_ops_ok): Same.
7293         * function.c (purge_addressof_1): Do not allow paradoxical subregs
7294         of vectors.
7295         (fixup_var_refs_1): Same.
7296         (instantiate_virtual_regs_1): Same.
7298         * fold-const.c (operand_equal_p): Handle vectors.
7299         (fold): Same.
7300         (rtl_expr_nonnegative_p): Same.
7302         * flow.c (mark_used_regs): Handle vectors.
7304         * df.c (df_uses_record): Handle vectors.
7306         * cselib.c (cselib_subst_to_values): Handle vectors.
7307         (cselib_mem_conflict_p): Same.
7308         (hash_rtx): Same.
7310         * cse.c (canon_reg): Handle vectors.
7311         (fold_rt): Same.
7312         (cse_process_notes): Same.
7313         (count_reg_usage): Same.
7314         (canon_hash): Same.
7316         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
7318         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
7320         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
7321         (gen_rtx): Handle CONST_VECTOR.
7322         (gen_const_vector_0): New.
7323         (copy_rtx_if_shared): CONST_VECTORs can be shared.
7324         (reset_used_flags): Same.
7325         (copy_insn_1): Same.
7326         (initializer_constant_valid_p): Handle VECTOR_CST.
7328         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
7330         * doc/rtl.texi (Constants): Document const_vector.
7331         (CONST0_RTX): Update for vectors.
7332         (RTL sharing): Same.
7334         * print-tree.c (print_node): Add case for VECTOR_CST.
7336         * tree.h (TREE_VECTOR_CST_ELTS): New.
7337         (struct tree_vector): New.
7338         (union tree_node): Add vector node.
7339         (build_vector): Add prototype.
7341         * tree.def (VECTOR_CST): New.
7343         * tree.c (build_vector): New.
7345         * expmed.c (make_tree): Handle CONST_VECTOR.
7347         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
7348         (CONST_VECTOR_ELT): New.
7349         (CONST_VECTOR_NUNITS): New.
7351         * machmode.h (GET_MODE_INNER): New.
7352         (DEF_MACHMODE): Accept 8th arg.
7354         * machmode.def: Add 8th argument for vector inner mode.
7355         Add inner vector modes for vectors.
7357         * rtl.def (VEC_CONST): Remove.
7358         (CONST_VECTOR): New.
7360         * expr.c (clear_storage): Allow vectors.
7361         (is_zeros_p): Handle VECTOR_CST.
7363         * varasm.c (output_constant_pool): Handle vectors.
7364         (rtx_const): Add veclo and vechi fields.
7365         (kind): Add RTX_VECTOR.
7366         (decode_rtx_const): Add case for vector.
7368         * config/rs6000/rs6000-protos.h: Add zero_constant.
7370         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
7371         constants.  Force easy vector constants into memory.
7372         (easy_vector_constant): New.
7373         (emit_easy_vector_constant): New.
7374         (rs6000_legitimize_reload_address): Do not generate bad reloads on
7375         darwin.
7377         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
7378         instruction does.
7379         ("altivec_lvxl"): Same.
7380         (altivec_lvebx): Same.
7381         (altivec_lvehx): Same.
7382         (altivec_lvewx): Same.
7383         ("*movv4si_const0"): New.
7384         ("*movv4sf_const0"): New.
7385         ("*movv8hi_const0"): New.
7386         ("*movv16qi_const0"): New.
7388 2002-02-18  Kazu Hirata  <kazu@hxi.com>
7390         * config/h8300/h8300.c (notice_update_cc): Use
7391         cc_status.value2.
7393 2002-02-18  Kazu Hirata  <kazu@hxi.com>
7395         * config/h8300/h8300.md (divmod patterns): Change the
7396         constraints for operands[1] to register_operand.
7398 2002-02-18  Kazu Hirata  <kazu@hxi.com>
7400         * config/h8300/h8300-protos.h: Remove the prototype for
7401         p_operand.
7402         * config/h8300/h8300.c (p_operand): Remove.
7403         * config/h8300/h8300.md: Replace p_operand with
7404         const_int_operand.
7406 2002-02-18 Philip Blundell <pb@nexus.co.uk>
7408         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
7409         comment.
7410         (output_return_instruction): Allow use of LDR to unstack
7411         return addresss even for interrupt handlers or when
7412         interworking.  If compiling for ARMv5, use interworking-safe
7413         return instructions by default.  Remove duplicated code and
7414         lengthy "strcat" sequences.
7416 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7418         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
7419         (LINK_EH_SPEC): Define.
7420         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
7422 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
7424         * config/s390/s390.c (s390_emit_prologue): Do not set the
7425         frame_related flag for call-clobbered registers.
7427 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
7429         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
7430         (construct_container): Fix handling of SSE operands.
7431         (ix86_expand_builtin): Fix handling of 64bit pointers.
7432         (mmx_maskmovq_rex): New pattern.
7434 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
7436         * regrename.c (kill_set_value): Handle subregs properly.
7438 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
7440         * objc/objc-act.c (handle_impent): Remove leading '*'
7441         from objc_class_name.
7443 2002-02-17  Richard Henderson  <rth@redhat.com>
7445         * config/alpha/alpha.c (some_small_symbolic_operand,
7446         some_small_symbolic_operand_1, split_small_symbolic_operand,
7447         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
7448         Handle small SYMBOL_REFs anywhere, not just inside memories.
7449         * config/alpha/alpha-protos.h: Update.
7450         * config/alpha/alpha.h (PREDICATE_CODES): Update.
7451         * config/alpha/alpha.md (small symbolic operand splitter): Update.
7453 2002-02-17  Roland McGrath  <roland@frob.com>
7455         * config.gcc (powerpc-*-gnu-gnualtivec*,
7456         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
7457         * config/rs6000/gnu.h: New file.
7458         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
7459         Grok "gnu" in rs6000_abi_name.
7460         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
7461         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
7462         Grok -mcall-gnu analogous to -mcall-linux et al.
7463         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
7464         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
7465         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
7467 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
7469         PR c/3444:
7470         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
7471         shortening.
7473 2002-02-17  Philipp Thomas  <pthomas@suse.de>
7475         * config/cris/cris.h: Undefine STARTFILE_SPEC and
7476         ENDFILE_SPEC before (re)defining them.
7478 2002-02-17  Kazu Hirata  <kazu@hxi.com>
7480         * config/h8300/h8300.c: Fix formatting.
7481         * config/h8300/h8300.h: Likewise.
7483 2002-02-17  Philipp Thomas  <pthomas@suse.de>
7485         * doc/tm.texi: Explain why empty strings should not be
7486         marked for translation.
7488 2002-02-17  Philipp Thomas  <pthomas@suse.de>
7490         * final.c (output_operand_lossage): Changed to accept
7491         printf style arguments. Change calls where necessary.
7492         * output.h (output_operand_lossage): Change declaration
7493         accordingly. Update copyright.
7494         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
7495         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
7496         Update copyright date where necessary.
7498         * config/i386/i386.c (print_operand): Likewise. Remove use of
7499         sprintf.
7501         * config/cris/cris.c (cris_operand_lossage): Likewise.
7502         Rename parameter so that exgettext recognizes it as
7503         translatable message.
7504         (LOSE_AND_RETURN): Rename parameter to msgid.
7506 2002-02-17  Kazu Hirata  <kazu@hxi.com>
7508         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
7509         hard coded register number with an appropriate macro.
7510         (HARD_REGNO_MODE_OK): Likewise.
7511         (ARG_POINTER_REGNUM): Likewise.
7512         (STATIC_CHAIN_REGNUM): Likewise.
7513         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
7514         * config/h8300/h8300.md (define_constants): Define more
7515         register numbers.
7517 2002-02-17  Philipp Thomas  <pthomas@suse.de>
7519         * config/i386/i386.h: Don't mark empty strings for translation.
7521 2002-02-16  H.J. Lu <hjl@gnu.org>
7523         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
7525 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
7527         * cppinit.c (merge_include_chains): Check for brack being
7528         NULL before attempting to merge it with qtail.
7530 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
7532         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
7533         DBX_DEBUG.
7535 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7537         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
7539 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7541         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
7542         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
7543         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
7545 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7547         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
7548         now only if !TARGET_FIX.
7549         (*movsi_nt_vms_fix): New pattern.
7551 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
7553         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
7554         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
7555         (alpha_sa_mask, alpha_sa_size): Reflect above change.
7556         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
7557         (alpha_start_function, alpha_expand_epilogue): Likewise.
7558         (unicosmk_gen_dsib): Likewise.
7560 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7562         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
7564 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
7566         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
7567         check_and_change_labels, s390_final_chunkify): Delete.
7568         (s390_split_branches, s390_chunkify_pool): New functions.
7569         (s390_function_prologue): Call them.
7571         * config/s390/s390.h (S390_REL_MAX): Delete.
7572         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
7574         * config/s390/s390.md (cjump, icjump, jump): Fix length
7575         attribute calculation.
7578 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
7580         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
7581         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
7583 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7585         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
7586         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
7587         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
7589 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
7591         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
7593 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
7595         * reload.c (find_dummy_reload): Check that an output register
7596         is valid for its mode.
7598 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
7600         * combine.c (known_cond): After replacing the REG of a SUBREG, try
7601         to simplify it.
7603         * function.c (assign_parms): Demote promoted argument passed by
7604         transparent reference.
7606 2001-02-14      Joel Sherrill <joel@OARcorp.com>
7608         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
7609         -Acpu() and -Amachine() to eliminate warnings.
7611 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
7613         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
7615 2002-02-14  Kazu Hirata  <kazu@hxi.com>
7617         * config/h8300/h8300-protos.h: Update the prototype for
7618         const_costs.
7619         * config/h8300/h8300.c (const_costs): Treat SET as a little
7620         more expensive operation.
7621         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
7622         reference to const_costs.
7624 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
7626         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
7628 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
7630         PR c/5503:
7631         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
7632         use arguments from newtype.
7634 2002-02-13  Eric Christopher  <echristo@redhat.com>
7636         * config/mips/mips.c (override_options): Add check for march/mipsX
7637         on the same command line. Fix error message in cpu processing.
7638         Remove architecture and ISA checks.
7640 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
7642         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
7644         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
7646 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
7648         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
7649         alternatives.
7650         ("*movv8hi_internal1"): Same.
7651         ("*movv16qi_internal1"): Same.
7652         ("*movv4sf_internal1"): Same.
7654         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
7655         not push_reload for altivec modes.
7657 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
7659         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
7660         all RTEMS targets including removal of #includes from config/*/rtems*.h
7661         file and adding them to tm_file setting. Added xm_defines=POSIX to
7662         many targets.
7663         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
7664         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
7665         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
7666         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
7667         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
7668         config/m68k/rtemself.h: Ditto.
7669         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
7670         config/mips/rtems64.h: Ditto.
7671         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
7672         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
7673         Ditto.
7674         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
7675         config/sparc/rtemself.h: Ditto.
7676         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
7677         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
7678         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
7679         more like arm-elf.
7680         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
7681         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
7682         target made more similar to i386-elf.
7683         * config/i386/t-rtems-i386: Added soft float support and multilibs.
7684         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
7685         be similar to config/m68k/t-m68kelf.
7686         * gthr-rtems.h: Encapsulate with extern "C" for C++.
7688 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
7690         * regmove.c (kill_value): Handle subregs.
7692 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
7694         * i386.md (mul patterns): Allow memory operand to be first;
7695         add expanders where needed; fix constraints.
7696         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
7697         Allow memory operand to be the first.
7699         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
7700         operands.
7702 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
7704         PR c/5681:
7705         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
7706         GET_MODE (x).
7708 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
7710         PR optimization/5547:
7711         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
7712         all valid IA-32 address modes involving non-scaled %ebx and
7713         GOT/GOTOFF as displacement.
7715 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
7717         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
7718         after emitting ltorg insns.
7720         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
7721         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
7722         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
7723         *abssf2): Fix "op_type" attribute.
7725 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
7727         * mkconfig.sh: Avoid using a subshell redirect.
7728         ($output.T): Change to $(output)T.
7729         (ENABLE_NLS): Remove unneeded undef.
7731         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
7732         * config/alpha/x-vms (libsubdir): Define.
7734         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
7735         register frame procedures. Optimize retrieving context.
7737         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
7738         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
7739         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
7741 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7743         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
7744         Make same change as for find_base_value.
7746 2002-02-13  Kazu Hirata  <kazu@hxi.com>
7748         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
7749         of QImode and SImode.
7751 2002-02-13  Kazu Hirata  <kazu@hxi.com>
7753         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
7754         length computation of movsi.
7755         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
7757 2002-02-13  Kazu Hirata  <kazu@hxi.com>
7759         * config/h8300/h8300.md (subqi3): Tighten the predicate for
7760         operands[2] to register_operand.
7762 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
7764         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
7766 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
7768         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
7769         for altivec_lvx* and altivec_stvx*.
7770         ("*movv4si_internal"): Add constraint for loading from GPRs.
7771         ("*movv8hi_internal1"): Same.
7772         ("*movv16qi_internal1"): Same.
7773         ("*movv4sf_internal1"): Same.
7775         * config/rs6000/rs6000.c (altivec_register_operand): New.
7777         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
7778         altivec_register_operand.
7780 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
7782         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
7783         handle SYMBOL_REF.
7785 2002-02-13  Stan Shebs  <shebs@apple.com>
7787         * c-typeck.c (digest_init): Handle vectors.
7788         (really_start_incremental_init): Same.
7789         (pop_init_level): Same.
7790         (process_init_element): Same.
7792         * varasm.c (output_constant): Same.
7794         * expr.c (clear_storage): Same.
7795         (store_constructor): Same.
7797 2002-02-12  Eric Christopher  <echristo@redhat.com>
7799         * explow.c (hard_function_value): Add comment explaining
7800         signed/unsigned comparison.
7802 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
7804         * jump.c (never_reached_warning): Add finish argument.
7805         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
7806         real insn after end.
7807         * rtl.h (never_reached_warning): Adjust prototype.
7808         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
7809         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
7810         never_reached_warning.
7812 2002-02-12  Graham Stott  <grahams@redhat.com>
7814         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
7816 2002-02-12  Kazu Hirata  <kazu@hxi.com>
7818         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
7819         logical shifts on H8/300.
7820         (shift_alg_si): Improve several shifts on H8/300.
7821         (get_shift_alg): Likewise.
7823 2002-02-12  Graham Stott  <grahams@redhat.com>
7825         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
7827 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7829         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
7830         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
7832 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
7834         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
7835         non-CONST_INT through default_assemble_integer.
7836         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
7837         <case 8>: Abort for CONST_DOUBLE.
7839 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7841         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
7842         is specified.
7843         * config/pa/pa-linux.h (LIB_SPEC): Delete.
7844         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
7846 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
7848         * config/stormy16/stormy16.md (zero_extendqihi2): New.
7850 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
7852         * regrename.c (regrename_optimize): Don't accept a
7853         part-clobbered register if the replaced register is not part
7854         clobbered.
7856         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
7857         take padding into account when computing the argument value.
7859         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
7861         * combine.c (try_combine): Apply substitutions in
7862         CALL_INSN_FUNCTION_USAGE too.
7864 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
7866         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
7867         __builtin_altivec_abs*.
7868         (bdesc_abs): New.
7870         * config/rs6000/rs6000.h (rs6000_builtins): Add
7871         ALTIVEC_BUILTIN_ABS*.
7873         * config/rs6000/altivec.h: Use const char for builtins expecting
7874         literals.
7875         (vec_abs): New versions for C and C++.
7876         (vec_abss): Same.
7878 2002-02-10  Kazu Hirata  <kazu@hxi.com>
7880         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
7881         using Pmode.
7883 2002-02-10  Kazu Hirata  <kazu@hxi.com>
7885         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
7886         constant definition from h8300.md.
7887         (FRAME_POINTER_REGNUM): Likewise.
7888         * config/h8300/h8300.md (define_constants): Add FP_REG.
7890 2002-02-10  Kazu Hirata  <kazu@hxi.com>
7892         * config/h8300/h8300.c (print_operand): Remove redundant code.
7894 2002-02-10  Kazu Hirata  <kazu@hxi.com>
7896         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
7897         * config/h8300/h8300.c (byte_reg): Make it static.
7899 2002-02-10  Richard Henderson  <rth@redhat.com>
7901         PR c/5623
7902         * c-typeck.c (incomplete_type_error): Handle flexible array members.
7904 2002-02-10  Richard Henderson  <rth@redhat.com>
7906         PR c++/5624
7907         * tree.c (append_random_chars): Don't abort if main_input_filename
7908         does not exist.
7910 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
7912         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
7914 2002-02-10  Kazu Hirata  <kazu@hxi.com>
7916         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
7917         (pushhi1): Likewise.
7919 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7921         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
7922         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
7924 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
7926         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
7927         remove MASK_VIS.
7928         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
7930 2002-02-09  Kazu Hirata  <kazu@hxi.com>
7932         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
7933         a half of an SImode register on H8/300.
7935 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
7937         * i386.md (movdi_2): Add missing '!'.
7939 2002-02-09  Kazu Hirata  <kazu@hxi.com>
7941         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
7942         definitions.
7944 2002-02-09  Kazu Hirata  <kazu@hxi.com>
7946         * config/h8300/h8300.md (length): Correct the distance valid
7947         for the short branch.
7949 2002-02-09  Kazu Hirata  <kazu@hxi.com>
7951         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
7953 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
7955         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
7956         registers in SImode.
7957         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
7958         part-clobbered.
7960         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
7961         patch.
7963         Contribute sh64-elf.
7964         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
7965         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
7966         (sh_cannot_modify_jumps_p): New function.
7967         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
7968         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
7969         (sh_ms_bitfield_layout_p): New function.
7970         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
7971                     Zack Weinberg  <zack@codesourcery.com>
7972         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
7973         expand_simple_binop instead of expand_binop.
7974         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
7975         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
7976         use of .quad and .uaquad.
7977         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
7978         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
7979         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
7980         * config/sh/sh.md (movdi_const, movdi_const_32bit,
7981         movdi_const_16bit): Make sure all CONSTs have modes.
7982         (sym2PIC): Ditto, but by adjusting all callers.
7983         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
7984         if the prologue calls the SHmedia argument decoder or register
7985         saver.
7986         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
7987         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
7988         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
7989         (sh_expand_epilogue): Don't emit USE of return target register.
7990         (prepare_move_operands): Legitimize DImode PIC addresses.
7991         (sh_media_register_for_return): Skip tr0, used to initialize the
7992         PIC register.
7993         (sh_expand_prologue): Remove explicit USE of return register.
7994         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
7995         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
7996         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
7997         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
7998         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
7999         EXTRA_CONSTRAINT_T.
8000         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
8001         (MOVI_SHORI_BASE_OPERAND_P): New.
8002         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
8003         (EXTRA_CONSTRAINT_T): Define in terms of them.
8004         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
8005         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
8006         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
8007         alternatives supporting TARGET_REGS.
8008         (UNSPEC_GOTPLT): New constant.
8009         (movdi split): Move incrementing of LABEL_NUSES...
8010         (movdi_const, movdi_const_32bit): Here.  Use
8011         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
8012         (movdi_const_16bit): New.
8013         (call, call_value) [flag_pic]: Use GOTPLT.
8014         (call_pop, call_value_pop): New expands.
8015         (call_pop_compact, call_pop_rettramp): New insns.
8016         (call_value_pop_compact, call_value_pop_rettramp): New insns.
8017         (sibcall) [flag_pic]: Use GOT.
8018         (builtint_setjmp_receiver): Remove bogus, unused expand.
8019         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
8020         (*pt, *ptb, ptrel): New insns.
8021         (sym2GOT): Handle DImode GOT.
8022         (sym2GOTPLT, symGOTPLT2reg): New expands.
8023         (sym2PIC): New expand.
8024         (shcompact_return_tramp): Use GOTPLT to return trampoline.
8025         (shcompact_return_tramp_i): Use return register explicitly.
8026         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
8027         disable flag_reorder_blocks.
8028         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
8029         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
8030         clobbers, for clarity.
8031         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
8032         restoring of r0 in macl as MAYBE_DEAD.
8033         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
8034         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
8035         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
8036         alter_subreg all over.
8037         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
8038         reload, instead of emitting instructions that would require
8039         reloading.
8040         (casesi_load_media): Add missing modes.
8041         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
8042         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
8043         as used if the argument decoder is called.
8044         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
8045         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
8046         Pmode, then extend it to DImode if necessary.
8047         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
8048         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
8049         constants in FPU-enabled SHmedia, let them be loaded from memory.
8050         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
8051         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
8052         Adjust whitespace in assembly output templates.
8053         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
8054         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
8055         mode of if_then_else.
8056         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
8057         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
8058         sh.h.
8059         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
8060                     Joern Rennecke <amylaar@redhat.com>
8061         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
8062         (SUBTARGET_CPP_PTR_SPEC): New.
8063         (SUBTARGET_CPP_SPEC): Remove.
8064         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
8065         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
8066         Fix typo in previous checkin.
8067         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
8068         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
8069         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
8070                     Alexandre Oliva  <aoliva@redhat.com>
8071         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
8072         what single FP register can hold for SHmedia target.
8073         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
8074                     Alexandre Oliva  <aoliva@redhat.com>
8075         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
8076         Do not split into SUBREG.
8077         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
8078         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
8079         and added new functions as specified in SH5 ABI r9.
8080         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
8081         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
8082         8-byte boundary.
8083         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
8084         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
8085         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
8086         and consttable_window_ends.
8087         2001-06-03  Graham Stott  <grahams@redhat,com>
8088         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
8089         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
8090         * config/sh/sh.c (print_operand): Handle floating-point pair,
8091         vector and matrix registers.
8092         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
8093         vector modes into account.
8094         * config/sh/sh.md (movv2sf): Split move between registers into
8095         movdf.
8096         (movv4sf, movv16sf): Introduce insns that get split only after
8097         reload.
8098         * config/sh/shmedia.h: Fix Copyright dates.
8099         * config/sh/ushmedia.h: Likewise.  Move loop counter
8100         declarations into conditionals that uses them.
8101         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
8102         loop boundary.
8103         * config/sh/sshmedia.h: Fix Copyright dates.
8104         (sh_media_PUTCFG): Fix constraints.
8105         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
8106         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
8107         ptrmemfunc_vbit_in_delta for SH5.
8108         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
8109         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
8110         * invoke.texi: Likewise.
8111         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
8112         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
8113         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
8114         GCC_pop_shmedia_regs_nofpu): New global symbols.
8115         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
8116         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
8117         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
8118         compact function with nonlocal labels.
8119         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
8120         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
8121         (initial_elimination_offset): Account for their stack space.
8122         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
8123         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
8124         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
8125         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
8126         least one of the operands to be a register.
8127         (movv2sf): Likewise.  Renamed to movv2sf_i.
8128         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
8129         prepare_move_operands() before emitting SHmedia insns.
8130         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
8131         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
8132         Don't save nor initialize r12.  Don't mis-align the stack.
8133         Pad the code with a nop.
8134         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
8135         stack.
8136         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
8137         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
8138         [__SHMEDIA__]: Implement.
8139         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
8140         * config/sh/sh.md: Set latency of `pt' closer to reality.
8141         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
8142         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
8143         Set move, load and store type attributes.
8144         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
8145         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
8146         profiling.
8147         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
8148         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
8149         * config/sh/sh.c (sh_media_register_for_return): New function.
8150         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
8151         branch-target register.
8152         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
8153         * config/sh/sh.md (return_media_i): Use any call-clobbered
8154         branch-target register.
8155         (return_media): If r18 wasn't copied in the prologue, copy it
8156         here.
8157         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
8158         Clear class FP0_REGS.
8159         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
8160         from elf.h.
8161         2001-03-08  DJ Delorie  <dj@redhat.com>
8162         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
8163         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
8164         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
8165         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
8166         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
8167         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
8168         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
8169         return value correctly for call_cookie.
8170         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
8171         * config/sh/crt1.asm (start): Modified so as to call
8172         ___setup_argv_and_call_main.
8173         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
8174         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
8175         SHmedia mode.
8176         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
8177         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
8178         (STRIP_NAME_ENCODING): Use it.
8179         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
8180         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
8181         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
8182         prepare_scc_operands().
8183         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
8184         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
8185         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
8186         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
8187         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
8188         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
8189         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
8190         used in shcompact_incoming_args.
8191         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
8192         change.
8193         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
8194         mode.
8195         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
8196         Adjust accordingly.
8197         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
8198         Simplify.  Adjust.  Add sanity check.
8199         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
8200         FPU_SINGLE_BIT.
8201         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
8202         TARGET_SHCOMPACT.
8203         (udivsi3, divsi3): Use them.
8204         (force_mode_for_call): New insn.
8205         (call, call_value, sibcall_value): Emit it before SHcompact
8206         calls.
8207         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
8208         * config/sh/sh.md (call, call_value, sibcall): Make sure the
8209         call cookie is non-NULL before taking its value.
8210         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
8211         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
8212         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
8213         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
8214         block.
8215         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
8216         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
8217         temporary for stack adjusts.  Use MACL and MACH to pass
8218         arguments to shcompact_incoming_args.
8219         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
8220         clobber r1.
8221         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
8222         (nested_trampoline): Load static chain address into r1.
8223         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
8224         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
8225         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
8226         fp_arith_reg_operand().
8227         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
8228         * config/sh/sh.md (casesi): Sign-extend the first two operands,
8229         and use signed compares for them.
8230         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
8231         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
8232         ones properly aligned.
8233         (find_barrier): Account for extra alignment needed for 8-byte wide
8234         constants.
8235         (machine_dependent_reorg): Require a label for the second 4-byte
8236         constant after an 8-byte one.
8237         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
8238         change.
8239         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
8240         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
8241         last_float when switching float modes.
8242         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
8243         auto-increment for general-purpose registers.
8244         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
8245         result.
8246         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
8247         for stack adjust.
8248         * config/sh/sh.c (sh_builtin_saveregs): Support using all
8249         registers for varargs.
8250         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
8251         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
8252         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
8253         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
8254         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
8255         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
8256         call_cookie accordingly.
8257         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
8258         (SHCOMPACT_BYREF): Likewise.
8259         (SHCOMPACT_FORCE_ON_STACK): New macro.
8260         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
8261         (sh_builtin_saveregs): Likewise.
8262         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8263         shcompact_incoming_args): Use new shift values.  Support
8264         sequences of consecutive and non-consecutive pushes/pops.
8265         * config/sh/sh.md (return): Don't explicitly use PR_REG.
8266         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
8267         * config/sh/sh.h (TEXT_SECTION): Define.
8268         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
8269         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
8270         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
8271         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
8272         return values on FPU-enabled SHmedia.
8273         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
8274         FPU-enabled SHmedia.
8275         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
8276         value is returned in a non-FP reg and is not returned by
8277         reference.
8278         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
8279         jump_ind.
8280         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
8281         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
8282         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
8283         quad-aligned to be passed by callee-copy reference.
8284         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
8285         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
8286         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
8287         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
8288         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
8289         copying low-numbered FP regs to r7 and r8.
8290         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
8291         FP regs to general-purpose regs only if the copy was passed on the
8292         stack.
8293         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
8294         copying FP reg to r9.
8295         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
8296         copy FP regs to general-purpose regs only in outgoing calls.
8297         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
8298         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
8299         HOST_WIDE_INT.
8300         * config/sh/sh.h (struct sh_args): Document all fields.
8301         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
8302         passed partially on the stack should not consider making
8303         sibcalls.
8304         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
8305         stack_regs only for incoming calls.  When passing FP args,
8306         make sure there are FP regs available before modifying
8307         call_cookie.
8308         (SHCOMPACT_BYREF): Pass double args in general-purpose
8309         registers by reference.
8310         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
8311         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
8312         attempt to generate sibcalls if the caller got any arguments
8313         by reference.
8314         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
8315         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
8316         to 8-byte boundaries.
8317         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
8318         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
8319         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
8320         stored in the stack.
8321         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
8322         for the offsets to have the ISA bit set.
8323         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
8324         invocation.  Use beq instead of bgt to mark end of sequence of
8325         loads.
8326         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
8327         bgt to mark end of sequence of stores.
8328         * config/sh/sh.c (arith_operand): Don't check whether
8329         CONST_OK_FOR_J for now.
8330         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
8331         instead of long for conversion.
8332         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
8333         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
8334         before passing it to fprintf.
8335         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
8336         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
8337         Call set_fpscr before reading/writing SR.
8338         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
8339         Call set_fpscr.
8340         * config/sh/lib1funcs.asm: Add `.align 2' directives before
8341         SHmedia code.
8342         (FMOVD_WORKS): Define on SH5 with FPU.
8343         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
8344         setting.
8345         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
8346         _fpscr_values.
8347         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
8348         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
8349         address.
8350         (ia_main_table): Ditto.
8351         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
8352         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8353         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
8354         the definitions from sh.h.
8355         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
8356         TARGET_SH5.
8357         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
8358         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
8359         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
8360         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
8361         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
8362         Increment LABEL_NUSES.
8364         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
8365         TARGET_SH5.
8366         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
8367         defined.
8368         * config/sh/elf.h (SIZE_TYPE): Likewise.
8369         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
8370         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8371         shcompact_incoming_args): Load switch table addresses using
8372         datalabel.
8373         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
8374         (NO_BUILTIN_SIZE_TYPE): Define.
8375         (SIZE_TYPE): Don't define.
8376         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
8377         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
8378         definition of __SH5__=32 for -m5-compact-nofpu.
8379         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
8380         ADDR_DIFF_VEC.
8381         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
8382         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
8383         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
8384         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
8385         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
8386         (INSN_LENGTH_ALIGNMENT): Likewise.
8387         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
8388         * config/sh/sh.md (call, call_value, sibcall): Simplify
8389         copying of non-branch-target register.
8390         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
8391         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
8392         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
8393         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
8394         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
8395         floating-point values as structs.
8396         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
8397         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
8398         general-purpose register.
8399         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
8400         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
8401         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
8402         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
8403         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
8404         (ENCODE_SECTION_INFO): Enclose variables and constants in
8405         DATALABEL unspecs.
8406         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
8407         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
8408         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
8409         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
8410         only for LABEL_REFs.  For SYMBOL_REFs, prepend
8411         SH_DATALABEL_ENCODING to the symbol name.
8412         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
8413         convert_mode().
8414         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
8415         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
8416         UNSPEC_DATALABEL.
8417         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
8418         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
8419         (DATALABEL_REF_P): Don't require CONST.
8420         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
8421         REL label.
8422         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
8423         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
8424         right.
8425         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
8426         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
8427         Use shallow_copy_rtx and PUT_MODE to change the mode of
8428         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
8429         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
8430         on SHmedia using GENERAL_REGs.
8431         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
8432         bltu_media_i): Fix reversion of conditions.
8433         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
8434         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
8435         * config/sh/sh.c (output_far_jump): Save r13 in macl.
8436         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
8437         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
8438         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
8439         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
8440         (GCC_nested_trampoline): Likewise.
8441         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
8442         * config/sh/sh.c (gen_datalabel_ref): Define.
8443         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
8444         (INITIALIZE_TRAMPOLINE): Likewise.
8445         (TRAMPOLINE_ADJUST_ADDRESS): Define.
8446         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
8447         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
8448         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
8449         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
8450         (ic_invalidate): Adjust for SH5.
8451         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
8452         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
8453         _nested_trampoline.
8454         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
8455         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
8456         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
8457         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
8458         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
8459         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
8460         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
8461         * config/sh/sh.c (target_reg_operand): Match only target-branch
8462         registers and pseudos that aren't virtual registers.
8463         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
8464         Copy operands that don't match target_reg_operand to pseudos.
8465         (call_media, call_value_media, sibcall_media): Use
8466         target_reg_operand instead of target_operand.
8467         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
8468         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
8469         * config/sh/sh.c (target_reg_operand): Match hardware registers
8470         other than branch-target registers.
8471         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
8472         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
8473         (fpscr_values) [SH5 == 32]: Define.
8474         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
8475         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
8476         Handle function addresses coming in SUBREGs.
8477         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
8478         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8479         shcompact_return_trampoline): Use datalabel where appropriate.
8480         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
8481         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
8482         general-purpose register to copy one branch-target register to
8483         another.
8484         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
8485         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
8486         SYMBOL_REFs with VOIDmode.
8487         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
8488         bltu_media_i): New insns.
8489         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
8490         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
8491         (INIT_CUMULATIVE_ARGS): Likewise.
8492         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
8493         * machmode.def (V16SFmode): New mode.
8494         * c-common.c (type_for_mode): Support V2SF and V16SF.
8495         * tree.c (build_common_tree_nodes_2): Likewise.
8496         * tree.h (tree_index): Likewise.
8497         * calls.c (emit_call_1): Take args_so_far.  Adjust all
8498         callers.  Introduce CALL_POPS_ARGS.
8499         * tm.texi (CALL_POPS_ARGS): Document.
8500         * config/sh/crt1.asm: Implement in SHmedia mode.
8501         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
8502         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
8503         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
8504         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
8505         Implement divsi and udivsi in SHmedia mode.  Introduce
8506         SHcompact trampolines.
8507         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
8508         only in SHmedia64.
8509         (regno_reg_class): Rewrite.
8510         (fp_reg_names): Remove.
8511         (sh_register_names, sh_additional_register_names): New.
8512         (print_operand): Added `u'.  Support SUBREGs in addresses.
8513         Add parentheses around shifted CONSTs.
8514         (output_file_start): Output .mode and .abi directives.
8515         (shiftcosts, addsubcosts, multcosts): Adjust.
8516         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
8517         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
8518         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
8519         bytes, not registers.  Take into account the need for the
8520         SHcompact incoming args trampoline.  Adjust all callers.
8521         (sh_expand_prologue): Take stack_regs into account.  Call
8522         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
8523         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
8524         stack aligned as per SH5 ABI.
8525         (sh_builtin_saveregs): Support SH5 ABI.
8526         (sh_build_va_list, sh_va_start): Likewise.
8527         (initial_elimination_offset): Take alignment into account.
8528         Compute location of PR according to the SH5 stack frame.
8529         (arith_reg_operand): Reject branch-target registers.
8530         (shmedia_6bit_operand): New.
8531         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
8532         (target_reg_operand): Match DImode only.  Accept SUBREGs.
8533         (target_operand): New.
8534         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
8535         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
8536         SIBCALL_REGS for SHmedia.
8537         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
8538         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
8539         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
8540         (TARGET_SWITCHES): New SH5 flags.
8541         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
8542         VALID_REGISTER_P to disable unsupported registers.
8543         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
8544         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
8545         (FUNCTION_ARG_PADDING): Define.
8546         (FASTEST_ALIGNMENT): Adjust.
8547         (SH_REGISTER_NAMES_INITIALIZER): New.
8548         (sh_register_names): Declare.
8549         (DEBUG_REGISTER_NAMES): Define.
8550         (REGISTER_NAMES): Define based on sh_register_names.
8551         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
8552         (sh_additional_register_names): Declare.
8553         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
8554         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
8555         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
8556         (REGISTER_NATURAL_MODE): Define.
8557         (FIRST_PSEUDO_REGISTER): Adjust.
8558         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
8559         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
8560         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
8561         (VECTOR_MODE_SUPPORTED_P): Define.
8562         (REG_CLASS_CONTENTS): Adjust.
8563         (SMALL_REGISTER_CLASSES): Adjust.
8564         (REG_ALLOC_ORDER): Adjust.
8565         (INDEX_REG_CLASS): Adjust.
8566         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
8567         (CONST_OK_FOR_LETTER_P): Adjust.
8568         (PREFERRED_RELOAD_CLASS): Adjust.
8569         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
8570         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
8571         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
8572         (FIRST_FP_PARM_REG): Adjust.
8573         (CALL_POPS_ARGS): Define.
8574         (FUNCTION_ARG_REGNO_P): Adjust.
8575         (struct sh_args): New fields.
8576         (GET_SH_ARG_CLASS): Adjust.
8577         (INIT_CUMULATIVE_ARGS): Adjust.
8578         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
8579         (FUNCTION_ARG_ADVANCE): Adjust.
8580         (FUNCTION_ARG): Adjust.
8581         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
8582         (FUNCTION_ARG_CALLEE_COPIES): Define.
8583         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
8584         (STRICT_ARGUMENT_NAMING): Define.
8585         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
8586         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
8587         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
8588         (SETUP_INCOMING_VARARGS): Adjust.
8589         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
8590         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
8591         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
8592         (SUBREG_OK_FOR_INDEX_P): Adjust.
8593         (EXTRA_CONSTRAINT_S): Update.
8594         (EXTRA_CONSTRAINT_T): New.
8595         (EXTRA_CONSTRAINT): Adjust.
8596         (GO_IF_LEGITIMATE_INDEX): Adjust.
8597         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
8598         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
8599         (MOVE_MAX): Adjust.
8600         (MAX_MOVE_MAX): Define.
8601         (Pmode): Adjust.
8602         (CONST_COSTS): Adjust.
8603         (REGISTER_MOVE_COST): Adjust.
8604         (BRANCH_COST): Adjust.
8605         (TEXT_SECTION_ASM_OP): Adjust.
8606         (DBX_REGISTER_NUMBER): Adjust.
8607         (ASM_OUTPUT_DOUBLE_INT): New.
8608         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
8609         (PREDICATE_CODES): Adjust.
8610         (PROMOTE_MODE): Adjust.
8611         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
8612         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
8613         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
8614         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
8615         (DR0_REG, DR2_REG, DR4_REG): Renumber.
8616         (TR0_REG, TR1_REG, TR2_REG): New.
8617         (XD0_REG): Renumber.
8618         (UNSPEC_COMPACT_ARGS): New.
8619         (type): Added pt and ptabs.
8620         (length): Default to 4 on SHmedia.  Default pt length to 12
8621         and     20 on SHmedia32 and SHmedia64, respectively.
8622         (pt): New function unit.
8623         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
8624         Add whitespace between operands of SHmedia instructions.
8625         (movdicc): Fix.
8626         (adddi3_media, addsi3_media): Adjust constraints.
8627         (subsi3) [SHmedia]: Force operand 1 into a register.
8628         (udivsi3_i1_media, udivsi3_i4_media): New.
8629         (udivsi3): Support SHmedia.
8630         (divsi3_i1_media, divsi3_i4_media): New.
8631         (divsi3): Support SHmedia.
8632         (anddi3, iordi3, xordi3): Adjust constraints.
8633         (zero_extendhidi2, zero_extendqidi2): New.
8634         (extendsidi2, extendhidi2, extendqidi2): New.
8635         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
8636         (pop_e, pop_fpul, pop_4): Likewise.
8637         (movsi_media): Support FP and BT registers.
8638         (movsi_media_nofpu): New.  Adjust splits to DImode.
8639         (lduw, ldub): Renamed to zero_extend* above.
8640         (movqi_media): Fix typo.
8641         (movdi_media): Support FP and BT registers.
8642         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
8643         (movdi_const_32bit): New.
8644         (shori_media): Require immediate operand.  Use `u' for output.
8645         (movdf_media, movsf_media): Simplified.
8646         (movdf_media_nofpu, movsf_media_nofpu): New.
8647         (movdf, movsf): Adjust
8648         (movv2sf, movv2sf, movv16sf): New.
8649         (beq_media, beq_media_i): Adjust constraints.  Don't use
8650         scratch BT register.
8651         (bne_media, bne_media_i): Likewise.
8652         (bgt_media, bgt_media_i): Likewise.
8653         (bge_media, bge_media_i): Likewise.
8654         (bgtu_media, bgtu_media_i): Likewise.
8655         (bgeu_media, bgeu_media_i): Likewise.
8656         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
8657         bunordered): Emit jump insn.  Force operands to registers when
8658         needed.
8659         (jump_media, jump): Simplify.
8660         (call_compact, call_compact_rettramp): New.
8661         (call_value_compact, call_value_compact_rettramp): New.
8662         (call_media, call_value_media): Simplify.
8663         (sibcall_compact, sibcall_media): New.
8664         (call, call_value): Adjust for SHmedia and SHcompact.
8665         (sibcall, sibcall_value, untyped_call): Likewise.
8666         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
8667         (indirect_jump): Adjust for SHmedia.
8668         (casesi_jump_media): New.
8669         (nop): Re-enable for SHmedia.
8670         (call_site): Restrict to SH1.
8671         (casesi): Adjust for SHmedia.
8672         (casesi_shift_media, casesi_load_media): New.
8673         (return): Explicitly use PR register.  Call return trampoline
8674         on SHcompact.
8675         (return_i): Explicitly use PR register.
8676         (shcompact_return_tramp, shcompact_return_tramp_i): New.
8677         (return_media): Adjust.
8678         (shcompact_incoming_args): New.
8679         (epilogue): Adjust.
8680         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
8681         (movstrsi): Disable on SH5.
8682         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
8683         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
8684         (subsf3, subsf3_media): Likewise.
8685         (mulsf3, mulsf3_media, mac_media): Likewise.
8686         (divsf3, divsf3_media): Likewise.
8687         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
8688         (floatsisf2, fux_truncsfsi2): Likewise.
8689         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
8690         constraints.
8691         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
8692         (cmpunsf_media, cmpsf): Likewise.
8693         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
8694         (abssf2, abssf2_media): Likewise.
8695         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
8696         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
8697         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
8698         (floatsidf2, fix_truncdfsi2): Likewise.
8699         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
8700         constraints.
8701         (cmpeqdf_media, cmpgtdf_media): Likewise.
8702         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
8703         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
8704         (absdf2, absdf2_media): Likewise.
8705         (extendsfdf2, extendsfdf2_media): Likewise.
8706         (truncsfdf2, truncsfdf2_media): Likewise.
8707         * config/sh/sh64.h: New file.
8708         * config/sh/t-sh64: New file.
8709         * config/sh/shmedia.h: New file.
8710         * config/sh/ushmedia.h: New file.
8711         * config/sh/sshmedia.h: New file.
8712         * configure.in: Added sh64-*-elf.
8713         * configure: Rebuilt.
8714         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
8715         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
8716         (reg_class_from_letter): Use `b' for TARGET_REGS.
8717         (print_operand): Support `%M', `%m', `AND' and
8718         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
8719         (andcosts): Adjust for SHmedia.
8720         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
8721         Likewise.
8722         (target_reg_operand): New function.
8723         * config/sh/sh-protos.h (target_reg_operand): Declare.
8724         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
8725         FP registers on SH5.
8726         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
8727         on SH4.
8728         (TARGET_REGISTER_P): New macro.
8729         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
8730         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
8731         (EXTRA_CONSTRAINT_S): New macro.
8732         (EXTRA_CONSTRAINT): Adjust.
8733         (FLOAT_TYPE_SIZE): Define to 32.
8734         (Pmode): DImode on SHmedia.
8735         (CONST_COSTS): Adjust for SHmedia literals.
8736         (PREDICATE_CODES): Added target_reg_operand.
8737         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
8738         * config/sh/sh.md: Remove all attrs from SHmedia insns.
8739         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
8740         (cmpdi): Accept SHmedia.
8741         (movdicc_false, movdicc_true): New insns.
8742         (movdicc): New expand.
8743         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
8744         no_new_pseudos.
8745         (addsi3_media): Match `S' constraint.
8746         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
8747         (negdi2): Expand for SHmedia.
8748         (one_cmpldi2): New expand.
8749         (zero_extendsidi2): Change from expand to insn.
8750         (extendsidi2): Add constraints.
8751         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
8752         LD/ST address.  Fix SI immediate loading split.
8753         (movhi_media, movqi_media, lduw, ldub): New insns.
8754         (movhi, movqi): Accept SHmedia.
8755         (shori_media, movdi_media): Relax input constraints.  Split
8756         symbolic constants.
8757         (movdf_media, movsf_media): New insn.  New split to movdi.
8758         (movdf, movsf): Match on SHmedia.
8759         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
8760         bgeu_media): New insns and splits.  New insns with `_i' suffix.
8761         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
8762         (bunordered): New expand.
8763         (jump_compact): Renamed from `jump'.
8764         (jump_media): New insn.
8765         (jump): New expand.
8766         (call_media, call_value_media): New insns.
8767         (call, call_value): Adjust.
8768         (indirect_jump_compact): Renamed from `indirect_jump'.
8769         (indirect_jump_media): New insn.
8770         (indirect_jump): New expand.
8771         (untyped_call, return): Accept SHmedia.
8772         (return_media): New insn.
8773         (prologue, epilogue, blockage): Accept SHmedia.
8774         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
8775         (sunordered): New expand.
8776         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
8777         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
8778         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
8779         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
8780         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
8781         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
8782         abssf2_media): New insns.
8783         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
8784         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
8785         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
8786         floatdidf2, floatsidf2_media, fix_truncdfdi2,
8787         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
8788         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
8789         absdf2_media): New insns.
8790         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
8791         (extendsfdf2_media, truncdfsf2_media): New insns.
8792         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
8793         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
8794         * config/sh/sh.h (CONST_OK_FOR_J): Document.
8795         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
8796         * config/sh/sh.md (adddi3): New expand.
8797         (adddi3_media, adddi3z_media): New insns.
8798         (adddi3_compact): Renamed from adddi3.
8799         (addsi3_media): Use add.l r63 to add constant zero.
8800         (subdi3): New expand.
8801         (subdi3_media): New insn.
8802         (subdi3_compact): Renamed from subdi3.
8803         (mulsidi3): New expand.
8804         (mulsidi3_media): New insn.
8805         (mulsidi3_compact): Renamed from mulsidi3.
8806         (umulsidi3): New expand.
8807         (umulsidi3_media): New insn.
8808         (umulsidi3_compact): Renamed from umulsidi3.
8809         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
8810         (ashlsi3, ashrsi3, lshrsi3): Use them.
8811         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
8812         (ashldi3, ashrdi3, lshrdi3): Use them.
8813         (zero_extendsidi2): New expand.
8814         (extendsidi2): New insn.
8815         (movsi_media): New insn.  Split to movdi to load constants.
8816         (movsi): Enable for shmedia.
8817         (movdi_media): New insn.  Use shori_media to load wide constants.
8818         (short_media): New insn.
8819         (movdi): Enable for shmedia.
8820         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
8821         * config/sh/sh.h (CPP_SPEC): Added `m5'.
8822         (SUBTARGET_CPP_SPEC): Added `!m5'.
8823         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
8824         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
8825         to all other SH variants.
8826         (TARGET_DEFAULT): Set to SH1_BIT.
8827         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
8828         (BITS_PER_WORD): Raise to 64 on shmedia.
8829         (MAX_BITS_PER_WORD): Change to 64.
8830         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
8831         (INT_TYPE_SIZE): Keep as 32.
8832         (UNITS_PER_WORD): Raise to 8 on shmedia.
8833         (MIN_UNITS_PER_WORD): Keep as 4.
8834         (POINTER_SIZE): Raise to 64 on shmedia.
8835         (CONST_OK_FOR_J): New macro.
8836         (CONST_OK_FOR_LETTER_P): Use it.
8837         (processor_type): Add PROCESSOR_SH5.
8838         * config/sh/sh.md: Conditionalize all expands, insns and
8839         splits to TARGET_SH1.
8840         (cpu): Added sh5.
8841         (addsi3_compact): Renamed from...
8842         (addsi3): Now an expand.
8843         (addsi3_media, subsi3_media): New insns.
8844         (subsi3): Don't negate constants with SHmedia.
8846         * hooks.c: New file.
8847         * hooks.h: New file.
8848         * Makefile.in (HOOKS_H): New.
8849         (TARGET_DEF_H): Added $(HOOKS_H).
8850         (OBJS): Added hooks.o.
8851         (cfgcleanup.o, bb-reorder.o): Added target.h.
8852         (hooks.o): Added dependencies.
8853         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
8854         (TARGET_INITIALIZER): this.
8855         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
8856         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
8857         * bb-reorder.c: Include target.h.
8858         (reorder_basic_blocks): Skip if cannot modify jumps.
8859         * cfgcleanup.c: Include target.h.
8860         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
8862 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
8864         * config/mips/mips.md (casesi_internal, casesi_internal_di):
8865         Protect jump delay slot instructions with .set noreorder and
8866         .set nomacro.
8868 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
8870         * config/mips/mips.md (casesi_internal_di): Calculate
8871         the index into the target offset table correctly.
8873 2002-02-08  Richard Henderson  <rth@redhat.com>
8875         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
8876         * final.c (output_addr_const): Accept and discard SUBREG.
8877         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
8878         mark them unknown instead.
8879         (simplify_subtraction): Handle RTX_UNKNOWN.
8880         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
8882 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
8884         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
8886 2002-02-08  Richard Henderson  <rth@redhat.com>
8888         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
8890 2002-02-08  Andreas Jaeger  <aj@suse.de>
8892         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
8893         * config/i386/t-linux64: New file.
8895 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
8897         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
8898         * c-parse.in (compstmt): Clear last_expr_type.
8900 2002-02-07  Richard Henderson  <rth@redhat.com>
8902         * loop.c (strength_reduce): Sink final_value when not
8903         eliminating a biv.
8905 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
8907         * config/sparc/freebsd.h: Fix mismatched spec {.
8909 2002-02-07  Richard Henderson  <rth@redhat.com>
8911         * cfgrtl.c: Include recog.h and insn-config.h.
8912         (keep_with_call_p): Fix general_operand invocation.
8913         * Makefile.in (cfgrtl.o): Update dependencies.
8915 2002-02-07  Kazu Hirata  <kazu@hxi.com>
8917         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
8918         comment.  Accept HImode only if TARGET_H8300.
8920 2002-02-07  Eric Christopher  <echristo@redhat.com>
8922         * config/mips/crtn.asm: Cleanup #ifdefs.
8924 2002-02-07  Eric Christopher  <echristo@redhat.com>
8926         * config/mips/crti.asm: Add changes for mips16. mips16 uses
8927         register 7 as RA instead of $31.
8928         * config/mips/crtn.asm: Ditto.
8929         * config/mips/mips.c (mips_move_2words): Add case for
8930         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
8931         (compute_frame_size): Fix typo.
8932         (save_restore_insns): Ditto.  Make documentation about using
8933         register $7 as return register more precise.
8934         (mips_expand_epilogue): Fix comment. Add code to work around not
8935         being able to add to the stack pointer directly.
8936         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
8937         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
8938         epilogue.
8940 2002-02-07  Tom Rix  <trix@redhat.com>
8942         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
8943         immediates in ldu and stdu DS opcode field.
8944         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
8945         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
8946         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
8948 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
8950         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
8951         offset for stack bias.
8953 2002-02-07  H.J. Lu <hjl@gnu.org>
8955         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
8957 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
8959         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
8961 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
8963         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
8964         * i386.c (x86_order_regs_for_local_alloc): New global function.
8965         * i386.h (REG_ALLOC_ORDER): CLeanup.
8966         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
8968 2002-02-07  Richard Henderson  <rth@redhat.com>
8970         PR optimization/2463
8971         * alias.c (find_base_value): Recall base values for fixed hard regs.
8972         * loop.c (loop_regs_update): Don't use single_set on non-insns.
8974 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
8976         * config/mips/mips.md (define_delay) [mips16]: Adjust required
8977         length.
8979 2002-02-06  Richard Henderson  <rth@redhat.com>
8981         PR c/5609
8982         * stmt.c (resolve_operand_name_1): Take more care with mixed
8983         named and unnamed operands.
8985 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
8986             Jan Hubicka  <jh@suse.cz>
8988         * loop.c (remove_constant_addition): Avoid clobbering a shared
8989         CONST expression.
8991 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
8993         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
8994         * config/s390/t-linux64: New file.
8995         * config/s390/libgcc-glibc.ver: New file.
8997 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
8999         * config/s390/linux64.h: Delete file.
9000         * config/s390/s390x.h: New file.
9001         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
9002         as target header file.
9003         * config/s390/linux.h (TARGET_VERSION): Define depending on
9004         DEFAULT_TARGET_64BIT.
9005         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
9006         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
9007         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
9008         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
9009         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
9010         (EXTRA_SPEC): New define.
9011         * config/s390/s390.h (TARGET_VERSION): Define depending on
9012         DEFAULT_TARGET_64BIT.
9013         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
9015 2002-02-06  Jason Merrill  <jason@redhat.com>
9017         * c-decl.c (finish_function): Warn about a non-void function with
9018         no return statement and no abnormal exit.
9019         (current_function_returns_abnormally): New variable.
9020         (start_function): Clear it.
9021         (struct c_language_function): Add returns_abnormally.
9022         (push_c_function_context): Save it.
9023         (pop_c_function_context): Restore it.
9024         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
9025         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
9026         an explicit return type.
9027         * c-tree.h: Declare current_function_returns_abnormally.
9028         (C_FUNCTION_IMPLICIT_INT): New macro.
9029         * c-typeck.c (build_function_call): Set it.
9030         (c_expand_return): Set current_function_returns_value even if the
9031         value is erroneous.
9033 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9035         PR c/5420:
9036         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
9037         unsafe for reevaluation.
9039 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9041         PR c/5482:
9042         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
9043         EXPR_STMT, but COMPOUND_STMT, recurse into it.
9045 2002-02-06  Richard Henderson  <rth@redhat.com>
9047         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
9048         be a general_operand.  Dest for function value must be a pseudo.
9050 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
9052         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
9053         as SYMBOL_REFs from the constant pool.
9055 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
9057         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
9058         passed by invisible reference.
9060 2002-02-05  Richard Henderson  <rth@redhat.com>
9062         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
9064 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
9066         Implement using "base addresses" in insn operands as default.
9067         * config/mmix/mmix.c (mmix_conditional_register_usage): if
9068         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
9069         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
9070         used to read the rtx value.
9071         (mmix_target_asm_function_epilogue): Fix spacing.
9072         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
9073         (mmix_legitimate_address): Ditto.
9074         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
9075         should be loaded with a GETA insn.  Don't allocate needless extra
9076         char for nul termination and fix misleading comment.
9077         (mmix_print_operand_address): Handle constants if
9078         TARGET_BASE_ADDRESSES.
9079         (mmix_output_register_setting): Use base addressing if
9080         TARGET_BASE_ADDRESSES and the number of insns is 3.
9081         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
9082         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
9083         to use R as constraint, add LDA to match s.
9084         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
9085         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
9086         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
9087         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
9088         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
9089         order with other fixed registers.
9090         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
9091         other parameter/call-clobbered registers.
9092         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
9093         -mbase-addresses, -mno-base-addresses.
9094         (MMIX Options): Ditto.
9096 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9098         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
9100 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
9102         * config/rs6000/altivec.h: Change elem to _S_elem.
9104 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
9106         * config/netbsd.h (WCHAR_TYPE): Define.
9107         (WCHAR_TYPE_SIZE): Ditto.
9108         (WINT_TYPE): Ditto.
9109         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
9110         (WCHAR_UNSIGNED): Ditto.
9111         (WCHAR_TYPE_SIZE): Ditto.
9112         (WINT_TYPE): Ditto.
9113         * config/arm/netbsd.h: Likewise.
9114         * config/i386/netbsd-elf.h: Likewise.
9115         * config/i386/netbsd.h: Likewise.
9116         * config/m68k/netbsd-elf.h: Likewise.
9117         * config/m68k/netbsd.h: Likewise.
9118         * config/ns32k/netbsd.h: Likewise.
9119         * config/sparc/netbsd.h: Likewise.
9120         * config/vax/netbsd.: Likewise.
9122 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
9124         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
9125         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
9126         (TARGET_INITIALIZER): this.
9127         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
9128         (BITFIELD_NBYTES_LIMITED): Markup fix.
9129         * tree.h (default_ms_bitfield_layout_p): Declare.
9130         (record_layout_info): Added prev_field.
9131         * tree.c (default_ms_bitfield_layout_p): New fn.
9132         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
9133         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
9134         * stor-layout.c: Include target.h.
9135         (start_record_layout): Initialize prev_field.
9136         (place_field): Handle MS bit-field layout, and disregard
9137         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
9138         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
9139         * Makefile.in (stor-layout.o): Adjust dependencies.
9141 2002-02-05  Jason Merrill  <jason@redhat.com>
9143         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
9145 2002-02-05  Andreas Jaeger  <aj@suse.de>
9147         * crtstuff.c: Fix comments.
9149 2002-02-05  Richard Henderson  <rth@redhat.com>
9151         PR fortran/3393
9152         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
9153         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
9155         PR fortran/3392
9156         * config/mips/mips.c (function_arg): Handle TImode.
9157         (function_arg_advance): Likewise.
9159 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9161         * config/rs6000/altivec.h (vec_step_help): Rename to
9162         __vec_step_help.
9164 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9166         * config/rs6000/altivec.h: Fix typos.
9168 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
9170         * config/arm/netbsd.h: Correct a comment.
9172 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9174         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
9175         building void typed builtins.
9177         * config/rs6000/altivec.h (vec_ld*): Fix typos.
9178         (vec_step): Implement for C++.
9180 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9182         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
9184 2002-02-04  Richard Henderson  <rth@redhat.com>
9186         * combine.c (nonzero_bits): Re-introduce special case for
9187         sp/fp/ap wrt REGNO_POINTER_ALIGN.
9189 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9191         * doc/extend.texi: Warn about unsupported usage of altivec
9192         builtins.
9194         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
9195         (altivec_predicate_*): New.
9197         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
9198         Add C++ version of vec_*() functions.
9200         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
9201         (bdesc_2arg): Remove altivec predicates.
9202         (altivec_expand_builtin): Handle predicates.
9203         (altivec_init_builtins): Handle predicates.
9204         (altivec_expand_predicate_builtin): New.
9206 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9208         * pa.c (DO_FRAME_NOTES): Move forward.
9209         (store_reg): Revise handling of frame notes.
9210         (load_reg): Likewise.
9211         (set_reg_plus_d): Likewise.
9212         (hppa_expand_prologue): Likewise.
9213         (hppa_expand_epilogue): Likewise.
9215 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9217         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
9219 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
9221         PR c/4475, c++/3780:
9222         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
9223         * c-common.h (SWITCH_TYPE): Define.
9224         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
9225         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
9226         Rename spareness variable to sparseness.
9227         (expand_end_case_type): Renamed from expand_end_case, use orig_type
9228         if non-NULL instead of TREE_TYPE (orig_index).
9229         * tree.h (expand_end_case_type): Renamed from expand_end_case.
9230         (expand_end_case): Define using expand_end_case_type.
9231         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
9232         to expand_end_case_type.
9233         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
9235 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9237         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
9238         (BIGGEST_ALIGNMENT): Change to 128.
9240 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9242         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
9244 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9246         * pa.md (call_internal_reg_64bit): Remove unused variable.
9248 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
9250         * config/arm/arm.h (machine_function): Add uses_anonymous_args
9251         field.
9252         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
9253         * config/arm/arm.c (current_function_anonymous_args): Delete,
9254         replace uses with cfun->machine->uses_anonymous_args.
9255         (arm_reorg): Do not reset uses_anonymous_args.
9257         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
9258         any geenral register.
9260 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
9262         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
9263         the entry block.
9265 2002-02-04  Richard Henderson  <rth@redhat.com>
9267         * combine.c (force_to_mode): Remove STACK_BIAS code.
9268         (nonzero_bits): Likewise.  Replace sp/fp special case with
9269         REGNO_POINTER_ALIGN.
9271         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
9272         (HARD_FRAME_POINTER_REGNUM): New.
9273         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
9274         (FIXED_REGS, CALL_USED_REGS): Update.
9275         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
9276         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
9277         (HARD_REGNO_NREGS): Update for SFP.
9278         (STACK_POINTER_OFFSET): Include bias here ...
9279         (FIRST_PARM_OFFSET): ... not here.
9280         (STACK_BIAS): Remove.
9281         (INIT_EXPANDERS): New.
9282         (STARTING_FRAME_OFFSET): Do not include bias.
9283         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
9284         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
9285         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
9286         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
9287         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
9288         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
9289         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
9290         (MUST_SAVE_REGISTER): Likewise.
9291         (sparc_flat_function_prologue): Likewise.
9292         (sparc_flat_function_epilogue): Likewise.
9293         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
9294         (sparc_init_modes): SFP is GENERAL_REGS.
9295         (sparc_builtin_saveregs): SFP does not have bias applied.
9297 2002-02-04  Richard Henderson  <rth@redhat.com>
9299         * config/alpha/alpha.c (current_function_is_thunk): Don't check
9300         current_function_is_thunk.
9301         (alpha_sa_mask): Distinguish between current_function_is_thunk
9302         called from ASM_OUTPUT_MI_THUNK and not.
9303         (alpha_does_function_need_gp): Thunks always need gp.
9304         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9305         (alpha_output_mi_thunk_osf): New.
9306         * config/alpha/alpha-protos.h: Update.
9307         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
9309 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
9311         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
9312         function types, not when they're taken away.
9314 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
9316         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
9317         CODE_LABEL and jump table when replacing a table jump with a
9318         simple jump.
9320 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
9322         * config/s390/s390-protos.h (legitimize_la_operand,
9323         s390_secondary_input_reload_class, s390_plus_operand,
9324         s390_expand_plus_operand): Add prototypes.
9326         config/s390/s390.c (s390_secondary_input_reload_class,
9327         s390_plus_operand, s390_expand_plus_operand): New functions.
9329         (struct s390_address): New member 'pointer'.
9330         (s390_decompose_address): Compute it.
9331         (legitimate_la_operand_p): Use it.
9332         (legitimize_la_operand): New function.
9333         (movti, movdi, movdf splitters): Call it.
9335         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
9336         (PREDICATE_CODES): Add s390_plus_operand.
9338         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
9339         (la_ccclobber): Allow GENERAL_REGS as output operand.
9341         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
9342         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
9343         (*la_64, *la_31, reload_indi, reload_insi): ... these.
9345 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
9347         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
9348         register names for regular asm () construct.
9350 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
9352         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
9353         registers.
9355 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
9357         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
9358         pat for recog.
9360 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
9362         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
9363         constant pool to be identical by string address and index.
9365 2002-02-04  Anthony Green  <green@redhat.com>
9367         * output.h (SECTION_OVERRIDE): Define.
9368         * varasm.c (named_section): Obey SECTION_OVERRIDE.
9370 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
9372         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
9373         by existing arm*-*-netbsd* (a.out) target.
9374         (ns32k-*-netbsdelf*): Likewise.
9375         (sparc-*-netbsdelf*): Likewise.
9376         (vax-*-netbsdelf*): Likewise.
9378 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
9380         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
9381         headers and libobjc headers.
9383 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
9385         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
9386         (_mingw.h): Remove duplicate include.
9388 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
9390         * config.gcc: Set cpu_type to m68k for 68010, as well.
9391         (m68010-*-netbsdelf*): New...
9392         (m68k*-*-netbsdelf*): ...targets.
9393         * config/m68k/netbsd-elf.h: New file.
9395 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9397         * config/h8300/h8300.c (hand_list): Move inside function_arg.
9399 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9401         * config/h8300/h8300.c (h8_push_ops): Move inside
9402         h8300_init_once.
9403         (h8_pop_ops): Likewise.
9404         (h8_move_ops): Likewise.
9406 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9408         * config/h8300/h8300.c (os_task): Make it static.
9409         (monitor): Likewise.
9410         (pragma_saveall): Likewise.
9412 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
9414         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
9415         constant is a valid sign-extension for Pmode.
9417 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9419         * config/h8300/h8300.c: Fix formatting.
9421 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9423         * config/h8300/h8300.md: Fix formatting.
9425 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9427         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
9428         predicates of operands[1].  Split the patterns for each
9429         processor variant.
9431 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9433         * config/h8300/h8300.md (xor patterns): Tighten the predicates
9434         of operands[1] to register_operand.
9436 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
9438         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
9439         * cpphash.c (_cpp_init_hashtable): Similarly.
9440         * cppinit.c (cpp_create_reader): Default the signed_char flag.
9441         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
9442         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
9443         (cpp_handle_option): Handle the new options.
9444         * cpplex.c (cpp_interpret_charconst): Use new flag.
9445         * cpplib.h (struct cpp_options): New member signed_char.
9446         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
9447         (cpp_options): Handle -fsigned-char and -funsigned-char.
9448         (static_specs): Remove signed_char_spec.
9449         (do_spec1): Don't handle %c.
9450         * system.h: Poison SIGNED_CHAR_SPEC.
9451         * tradcif.y (yylex): Use flag_signed_char.
9452         * tradcpp.h (flag_signed_char): New.
9453         * tradcpp.c (flag_signed_char): New.
9454         (main): Handle new command-line options.
9455         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
9456 config:
9457         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
9458         * avr/avr.h: Remove old comments.
9459         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
9460         (CC1_SPEC): Pass -fsigned-char if -mic*.
9461         (SIGNED_CHAR_SPEC): Remove.
9462 doc:
9463         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
9465 2002-02-01  Eric Christopher  <echristo@redhat.com>
9467         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
9468         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
9469         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
9470         (ASM_OUTPUT_REG_POP): Ditto.
9472 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
9474         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
9475         patch.
9477 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
9479         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
9481 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
9483         PR c/5304:
9484         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
9485         unconditionally.
9487 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
9489         * cfganal.c: Include tm_p.h.
9490         (keep_with_call_p): Fix the test that determines if a register holds
9491         the return value of a call.
9493 2002-02-01  DJ Delorie  <dj@redhat.com>
9495         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
9496         we are given conflicting registers, switch to the other one we
9497         had allocated for us.
9498         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
9499         as TImode so we know when the "other" register is available.
9501 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
9503         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
9504         sparc/sparc_bi.h.
9506 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
9508         * cfganal.c (keep_with_call_p): New function.
9509         (flow_call_edges_add): Prevent splitting a block between a call and
9510         a single-set instruction that should be kept in the same block.
9512 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9514         * doc/install.texi (avr): Update outdated URL.
9516 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
9518         * config/stormy16/stormy16.md (pushqi): New.
9519         (popqi): New.
9520         (pushhi): New.
9521         (pophi): New.
9522         (movhi): Remove stack operands.
9523         (movqi): Likewise.
9524         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
9525         nonimmediate_nonstack_operand.
9526         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
9527         New.
9528         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
9529         New.
9531 2002-01-31  Jason Merrill  <jason@redhat.com>
9533         * Makefile.in (c-parse.c): Handle .output file.
9534         * objc/Make-lang.in (objc-parse.c): Likewise.
9536 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
9538         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
9539         the -me[lb] option is given.  Don't output the default flag
9540         twice.
9542 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
9544         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
9545         the primary source file; this has not been done yet.
9546         * c-decl.c (c_expand_body): Reset input_filename from
9547         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
9549 2002-01-31  Kazu Hirata  <kazu@hxi.com>
9551         * rtlanal.c (subreg_regno_offset): Do not use
9552         SUBREG_REGNO_OFFSET.
9553         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
9554         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
9556 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
9558         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
9559         version rather than GNATS version in --version output.
9561 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
9563         * ifcvt.c (noce_process_if_block): Make a copy of the destination
9564         when copying back from a temporary.
9566 2002-01-30  Richard Henderson  <rth@redhat.com>
9568         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
9569         and new_dest are the same.
9571 2002-01-30  Richard Henderson  <rth@redhat.com>
9573         PR opt/5076
9574         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
9575         * rtl.c (note_insn_name): Update.
9576         * emit-rtl.c (remove_unnecessary_notes): Kill it.
9577         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
9578         to perform loop rotation.
9579         (expand_exit_loop_top_cond): New.
9580         * tree.h (expand_exit_loop_top_cond): Declare it.
9581         * c-semantics.c (genrtl_while_stmt): Use it.
9582         (genrtl_for_stmt): Likewise.
9584 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
9586         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
9587         arguments to 64-bit boundaries on 64-bit ABIs.
9589 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
9591         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
9593 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
9595         * c-decl.c (grokdeclarator): Handle type being a typedef for an
9596         invalid type.
9598 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
9600         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
9601         * config/sparc/sparc_bi.h: Remove file.
9602         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
9604 2002-01-30  Richard Henderson  <rth@redhat.com>
9606         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
9608 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
9610         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
9612 2002-01-30  Jason Merrill  <jason@redhat.com>
9614         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
9615         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
9616         (reg_save): Use DW_CFA_offset_extended_sf instead.
9618         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
9620 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
9622         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
9623         in cselib_lookup.
9625 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
9627         * rs6000.md ("*call_value_local32"): Remove constraints.
9628         ("*call_value_local64"): Same.
9629         ("*call_value_indirect_nonlocal_aix32"): Same.
9630         ("*call_value_nonlocal_aix32"): Same.
9631         ("*call_value_indirect_nonlocal_aix64"): Same.
9632         ("*call_value_nonlocal_aix64"): Same.
9633         ("*call_value_nonlocal_sysv"): Same.
9635 2002-01-29  Richard Henderson  <rth@redhat.com>
9637         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
9639 2002-01-29  Richard Henderson  <rth@redhat.com>
9641         * expr.c (force_operand): Ignore flag_pic for detecting pic
9642         address loads.
9643         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
9644         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
9645         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
9646         instead of open-coded loop.
9647         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
9648         be fixed when in use.
9650 2002-01-29  Richard Henderson  <rth@redhat.com>
9652         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
9653         * sched-rgn.c (propagate_deps): Update them.
9654         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
9655         clobbers list when either gets too long.
9657 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
9659         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
9660         and INDEX_REGS the same as GENERAL_REGS.
9661         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
9663 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
9665         * tree.c (build_nonstandard_integer_type): Correct prototype.
9667 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
9669         * config/s390/s390.md (movstrsico, movstrdix_64,
9670         movstrsix_31): Remove, replace by ...
9671         (movstrdi_short, movstrsi_short, movstrdi_long,
9672         movstrsi_long): ... these.  New.
9673         (movstrdi, movstrsi): Adapt.
9675         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
9676         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
9677         Remove unnecessary CC clobber.
9678         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
9679         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
9681         (divmoddi4): Don't partially initialize TImode register.
9683 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
9685         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
9687 2002-01-29  Richard Henderson  <rth@redhat.com>
9689         * flow.c (print_rtl_and_abort): Remove.
9690         (print_rtl_and_abort_fcn): Remove.
9691         (verify_local_live_at_start): Use dump_bb instead.
9692         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
9693         (verify_wide_reg_1): Return 2 on mode test failure.
9695 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
9697         PR c/3325, c/3326, c/2511, c/3347
9698         * c-decl.c (enum_decl_context): Remove BITFIELD.
9699         (grokdeclarator): Take bitfield width as an input.
9700         Ensure bitfields are given the correct type.  Perform
9701         bitfield width validation with build_bitfield_integer_type
9702         rather than waiting for finish_struct.
9703         (grok_typename, grok_typename_in_parm_context, start_decl,
9704         push_parmdecl, grokfield, start_function): Update calls to
9705         grokdeclarator.
9706         (build_bitfield_integer_type): New function.
9707         (finish_struct): Move bitfield validation to grokdeclarator
9708         and build_bitfield_integer_type.
9709         * tree.c (build_nonstandard_integer_type): New function.
9710         * tree.h (build_nonstandard_integer_type): New prototype.
9711 objc:
9712         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
9714 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
9716         PR other/1502:
9717         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
9718         don't ignore unrecognized -W* options.
9719         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
9720         * cpplib.h (cpp_handle_option): Adjust prototype.
9721         * c-decl.c (c_decode_options): Pass 0 as last argument to
9722         cpp_handle_option.
9724         PR c/2896:
9725         * gcc.c (cpp_unique_options): Split from cpp_options.
9726         (cpp_options): Source cpp_unique_options.
9727         (default_compilers): Use cpp_unique_options instead of cpp_options
9728         when used together with cc1_options.
9729         (static_specs): Add cpp_unique_options.
9730         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
9731         when used together with cc1_options.
9733 2002-01-29  Kazu Hirata  <kazu@hxi.com>
9735         * config/h8300/h8300-protos.h: Update the prototype of
9736         output_a_shift.
9737         * config/h8300/h8300.c (output_a_shift): Remove an unused
9738         argument 'insn'.  Remove redundant code.
9739         * config/h8300/h8300.md: Adust to the new prototype of
9740         output_a_shift.
9742 2002-01-29  Kazu Hirata  <kazu@hxi.com>
9744         * config/h8300/h8300-protos.h: Update the prototypes of
9745         emit_a_rotate and expand_a_rotate.
9746         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
9747         first argument to 'enum rtx_code'.
9748         (expand_a_rotate): Likewise.
9750 2002-01-28  Kazu Hirata  <kazu@hxi.com>
9752         * config/h8300/h8300-protos.h: Update the prototype of
9753         output_simode_bld.
9754         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
9755         'log2'.
9756         * config/h8300/h8300.md: Adjust to the new prototype.
9758 2002-01-28  Kazu Hirata  <kazu@hxi.com>
9760         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
9761         redundant code.
9763 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9765         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
9766         is a fixed register before returning pic_offset_table_rtx.
9767         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
9768         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
9770 2002-01-28  Jason Merrill  <jason@redhat.com>
9772         * dwarf2.h: Sync with src version.
9774 2002-01-28  Paul Koning  <pkoning@equallogic.com>
9776         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
9777         BT_FN_VOID_PTR_VAR.
9778         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
9779         * doc/extend.texi (__builtin_prefetch): Update documentation:
9780         first argument is now const void ptr.
9782 2002-01-28  Kazu Hirata  <kazu@hxi.com>
9784         * config/h8300/h8300-protos.h: Remove an unused prototype.
9786 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
9788         * toplev.c (lang_independent_init): Round up identifier size.
9790 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
9792         * config.gcc: Revert previous change.
9794 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
9796         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
9798 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
9800         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
9801         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
9802         other non-elf netbsd config frags.
9803         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
9804         collect2 will does that.
9805         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
9806         shared-lib frobbing will work.
9808 2002-01-28  Kazu Hirata  <kazu@hxi.com>
9810         * config/h8300/h8300.h: Fix formatting.
9811         * config/h8300/h8300.md: Likewise.
9813 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
9815         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
9816         the old, removed AAA_standards fix.
9817         * fixinc/fixincl.x: Rebuilt.
9819 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
9821         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
9822         atexit call in crtbegin, hooked in after call to frame_dummy;
9823         register EH before registering __fini__start.
9825 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
9827         * config/rs6000/altivec.h: Remove spurious semicolons.
9829 2002-01-27  Kazu Hirata  <kazu@hxi.com>
9831         * config/h8300/h8300.md: Replace dead bit extraction patterns
9832         with ones that work.
9834 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9836         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
9837         if not STRICT_ALIGNMENT.
9838         * rtl.h (MEM_ALIGN): Likewise.
9840 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9842         * doc/invoke.texi (-fdump-translation-unit): Revert this
9843         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9845 2002-01-27  Kazu Hirata  <kazu@hxi.com>
9847         * config/h8300/h8300.md (define_constants): New.
9848         (anonymous patterns) Use defined constants appropriately.
9850 2002-01-27  Kazu Hirata  <kazu@hxi.com>
9852         * config/h8300/h8300.c (function_arg): Remove redundant code.
9854 2002-01-26  Richard Henderson  <rth@redhat.com>
9856         * sched-deps.c (reg_pending_uses_head): New.
9857         (reg_pending_barrier): Rename from reg_pending_sets_all.
9858         (find_insn_list): Don't mark inline.
9859         (find_insn_mem_list): Remove.
9860         (add_dependence_list, add_dependence_list_and_free): New.
9861         (flush_pending_lists): Replace only_write param with separate
9862         for_read and for_write parameters.  Update all callers.  Use
9863         add_dependence_list_and_free.
9864         (sched_analyze_1): Do not add reg dependencies here; just set
9865         the pending bits.  Use add_dependence_list.
9866         (sched_analyze_2): Likewise.
9867         (sched_analyze_insn): Replace schedule_barrier_found with
9868         reg_pending_barrier.  Add all dependencies for pending reg
9869         uses, sets, and clobbers.
9870         (sched_analyze): Don't add reg dependencies for calls, just
9871         set pending bits.  Use regs_invalidated_by_call.  Treat
9872         sched_before_next_call as a normal list, not a fake insn.
9873         (init_deps): No funny init for sched_before_next_call.
9874         (free_deps): Free pending mems lists.  Don't zero reg_last.
9875         (init_deps_global): Init reg_pending_uses.
9876         (finish_deps_global): Free it.
9877         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
9878         (find_insn_mem_list): Remove.
9879         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
9880         (propagate_deps): Use them.  Zero temp mem lists.
9882 2002-01-26  Richard Henderson  <rth@redhat.com>
9884         * Makefile.in (CRTSTUFF_CFLAGS): New.
9885         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
9886         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
9887         crtstuff.c instead of alpha assembly version.
9888         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
9889         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
9890         not FORCE_{INIT,FINI}_SECTION_ALIGN.
9891         (__do_global_dtors_aux): Mark used.
9892         (frame_dummy, __do_global_ctors_aux): Mark used.
9893         (fini_dummy, init_dummy): Remove.
9895         * config/alpha/crtbegin.asm: Remove file.
9896         * config/alpha/crtend.asm: Remove file.
9897         * config/alpha/t-crtbe: Remove file.
9898         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
9899         (LINK_EH_SPEC): New.
9901         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
9902         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
9903         calling constructors.
9904         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
9906         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
9907         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
9908         CRT_END_INIT_DUMMY hack.
9909         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
9910         FORCE_{INIT,FINI}_SECTION_ALIGN.
9912         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
9913         FORCE_{INIT,FINI}_SECTION_ALIGN.
9915         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
9916         invocation sequence.
9917         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
9919         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
9920         (FORCE_CODE_SECTION_ALIGN): New.
9922 2002-01-26  Richard Henderson  <rth@redhat.com>
9924         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
9926 2002-01-26  Richard Henderson  <rth@redhat.com>
9928         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
9929         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
9931 2002-01-26  Kazu Hirata  <kazu@hxi.com>
9933         * config/h8300/h8300.md: Remove bit extraction patterns that
9934         cannot be triggered.
9935         Restrict each bit extraction pattern to a variant on which the
9936         pattern is tested.
9938 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
9940         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
9942 2002-01-26  Kazu Hirata  <kazu@hxi.com>
9944         * config/h8300/h8300.md: Remove bit test patterns that cannot
9945         be triggered.
9946         Restrict each bit test pattern to a variant on which the
9947         pattern is tested.
9949 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9951         * builtins.c (expand_builtin_strncat): Remove redundant check for
9952         INTEGER_CST.
9954 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
9956         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
9957         default setting.
9958         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
9959         existing setting.
9961 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
9963         * dbxout.c (dbxout_init): Use assemble_name rather than just
9964         stripping off the first character.
9965         (dbxout_source_file): Likewise.
9967 2002-01-25  DJ Delorie  <dj@redhat.com>
9969         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
9970         using rtx_equal_p, not by comparing pointers.
9972 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
9974         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
9975         for PIC_OFFSET_TABLE_REGNUM.
9976         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
9978 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
9980         * config.gcc (x86_64-*-freebsd*): New target.
9981         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
9982         value.
9983         (i[34567]86-*-freebsd*): Don't include svr4.h.
9984         * config/i386/freebsd64.h: New file.
9986 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
9988         * config/alpha/x-vms (version): Make static.
9990         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
9991         in previous checkin.
9993         * Makefile.in (install-headers-cp): New target.
9994         * config.gcc (alpha-dec-*vms*): Install headers with
9995         install-headers-cp
9997 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
9999         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
10000         avoid it's copies.
10002 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10004         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
10005         of compare_tree_int.
10006         (expand_builtin_strncat): Likewise.
10007         * c-decl.c (finish_struct): Use tree_low_cst.
10008         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
10009         * tree.c (compare_tree_int): Likewise.
10011 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
10013         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
10014         adjustments even if they are implemented by more than two insns.
10016 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
10018         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
10019         * df.h (struct ref): Kill B.
10020         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
10022         * basic-block.h (PROP_EQUAL_NOTES): New flag.
10023         * flow.c (propagate_one_insn): Use it.
10024         (mark_used_regs): Handle NIL.
10026 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
10028         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
10029         to help folding.
10031 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
10033         * rs6000.md (prefetch): Make address V4SI mode so that the address
10034         is restricted to legitimate form for instruction.
10036 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
10038         * doc/install.texi (xtensa-*-elf): New target.
10039         (xtensa-*-linux*): New target.
10040         * doc/contrib.texi: Add myself.
10042 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
10044         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
10045         purpose register to hold an SImode (or smaller) value.
10047 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
10049         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
10050         registry only.
10051         * crtstuff.c: Likewise.
10053 2002-01-25  Kazu Hirata  <kazu@hxi.com>
10055         * config/h8300/h8300.md (negation patterns): Tighten
10056         predicates to register_operand.
10058 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
10060         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
10061         mode, not Pmode.
10063         * builtins.c (expand_builtin_prefetch): Same.
10065 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10067         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
10068         modes.
10070 2002-01-24  Kazu Hirata  <kazu@hxi.com>
10072         * config/h8300/h8300.c (print_operand): Remove support for
10073         operand character 'A'.
10074         * config/h8300/h8300.md (three anonymous patterns): Replace
10075         operand character 'A' with either 'T' or 'S'.
10077 2002-01-24  Kazu Hirata  <kazu@hxi.com>
10079         * config/h8300/h8300.c (print_operand): Remove support for
10080         operand character 'U'.
10082 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
10084         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
10086 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
10088         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
10089         values to be assigned to the stack pointer.
10091 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
10093         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
10094         to const_double needs to be done right for big-endian systems.
10096 2002-01-24  Jason Merrill  <jason@redhat.com>
10098         PR c++/2432
10099         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
10100         to can_throw_internal.
10102 2002-01-23  Richard Henderson  <rth@redhat.com>
10104         * fold-const.c (fold): Change UINT_MAX test to check vs precision
10105         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
10107 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10109         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
10110         (symGOT2reg): Use them, then set as GOT value as unchanging.
10111         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
10112         as a temporary, if possible.
10113         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
10114         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
10116 2002-01-23  Kazu Hirata  <kazu@hxi.com>
10118         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
10119         accept to accept 0x80 as operands[2].
10121 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10123         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
10125 2002-01-23  Richard Henderson  <rth@redhat.com>
10127         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
10129 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
10131         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
10132         (parmlist_or_identifiers_1): Verify that only a parmlist follows
10133         an attribute.
10135 2002-01-23  Richard Henderson  <rth@redhat.com>
10137         * expr.c (move_by_pieces_1): Extend size before negation.
10139         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
10140         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
10141         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
10142         * config/m68k/t-m68kelf: Likewise.
10144 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
10146         * config/xtensa/elf.h: New file.
10147         * config/xtensa/lib1funcs.asm: New file.
10148         * config/xtensa/lib2funcs.S: New file.
10149         * config/xtensa/linux.h: New file.
10150         * config/xtensa/t-xtensa: New file.
10151         * config/xtensa/xtensa-config.h: New file.
10152         * config/xtensa/xtensa-protos.h: New file.
10153         * config/xtensa/xtensa.c: New file.
10154         * config/xtensa/xtensa.h: New file.
10155         * config/xtensa/xtensa.md: New file.
10156         * config.gcc (xtensa-*-elf*): New target.
10157         (xtensa-*-linux*): New target.
10158         * cse.c (canon_hash): Compare rtx pointers instead of register
10159         numbers.  This is required for the Xtensa port.
10160         * integrate.c (copy_insn_list): Handle case where the static
10161         chain is in memory and the memory address has to be copied to
10162         a register.
10163         * doc/invoke.texi (Option Summary): Add Xtensa options.
10164         (Xtensa Options): New node.
10165         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
10167 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
10169         * diagnostic.c (internal_error): Do ICE suppression only
10170         when ENABLE_CHECKING is not defined.
10172         * c-typeck.c (require_complete_type): Return error_mark_node
10173         if type is error_mark_node.
10175 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
10177         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
10178         -Os and issue a warning.
10180 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
10182         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
10183         current (lack of) need for host configuration by hand.
10185         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
10186         references.  Documentation of some target macros moved from
10187         hostconfig.texi to tm.texi.
10189 2002-01-23  Will Cohen  <wcohen@redhat.com>
10191         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
10192         defined.
10194 2002-01-23  Kazu Hirata  <kazu@hxi.com>
10196         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
10197         operand[3].
10199 2002-01-23  Jason Merrill  <jason@redhat.com>
10201         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
10203         * function.c (assign_parms): Don't put args of inline functions
10204         into registers when not optimizing.
10206 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
10208         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
10209         (prologue_use): New pattern.
10210         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
10211         preference to gen_rtx_USE.
10212         (thumb_expand_prologue): Use gen_prologue_use in preference to
10213         gen_rtx_USE.
10214         (thumb_expand_epilogue): Use gen_prologue_use in preference to
10215         gen_rtx_USE.
10217 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
10219         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
10221 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
10223         PR c/3504
10224         * doc/extend.texi: Correct documentation of __alignof__.
10226 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
10228         * params.h: Rename arguments of DEFPARAM so that it will be
10229         recognized as a translation keyword.
10231 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
10233         * extend.texi: Document altivec functions.
10234         Fix N-bit adjectives in X86 builtin documentation.
10236 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
10238         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
10239         auto_inc_dec values.
10241 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
10243         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
10244         after backslash.
10245         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
10247 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
10249         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
10251 2002-01-22  Richard Henderson  <rth@redhat.com>
10253         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
10254         copy_insn not copy_rtx.
10256 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
10258         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
10259         "nonzero" as that might add "1" bits.  Ensure "constop" is
10260         properly sign extened.
10261         (force_to_mode): Tweak for sign extended constop.
10263 2002-01-22  Richard Henderson  <rth@redhat.com>
10265         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
10266         for_each_rtx instead of assuming we're already looking at the MEM.
10267         (split_small_symbolic_mem_operand): Likewise.
10268         * config/alpha/alpha.h (PREDICATE_CODES): Update.
10269         * config/alpha/alpha.md (small symbolic memory splitters): Update.
10271 2002-01-22  Richard Henderson  <rth@redhat.com>
10273         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
10274         sequence number for the literal.
10275         (divmoddi_internal_er): Likewise.
10277 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10279         PR java/4972
10280         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
10281         in LIBICONV variable.
10282         * configure: Regenerated.
10284 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
10286         * dependence.c (build_def_use): Remove array_idx.
10288         * dwarfout.c (last_filename): Remove.
10289         (output_compile_unit_die): Remove last_filename.
10291 2002-01-22  Roger Sayle  <roger@eyesopen.com>
10292             Richard Henderson  <rth@redhat.com>
10294         PR opt/3640
10295         * fold-const.c (fold): Optimize unsigned comparisons against
10296         UINT_MAX (and similar unsigned constants).
10298 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
10300         * Makefile.in (loop.o): Depend on OPTABS_H.
10301         * loop.c (emit_prefetch_instructions): Check the prefetch operand
10302         against the predicate.
10304         PR target/5379
10305         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
10306         for the address operand.
10308 2002-01-22  Richard Henderson  <rth@redhat.com>
10310         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
10312 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10314         PR other/5450
10315         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
10316         preprocessor flags.
10318 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
10320         * config.gcc (x86_64-*-netbsd*): New target.
10321         * config/i386/netbsd64.h: New file.
10323 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
10325         * regrename.c (kill_value): Fix typo.
10327 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
10329         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
10331         * config/rs6000/rs6000.h: Same.
10333         * function.c (instantiate_virtual_regs): Remove
10334         STARTING_FRAME_PHASE.
10335         (assign_stack_local_1): Same.
10336         Calculate frame phase.
10338 2002-01-22  Nick Clifton  <nickc@redhat.com>
10340         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
10341         variable declaration to outer scope in order to simplify
10342         future extensions.
10343         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
10344         arm_hard_regno_mode_ok.
10345         * config/arm/arm-protos.h: Add a prototype for
10346         arm_hard_regno_mode_ok.
10347         * config/arm/arm.c (soft_df_operand): Remove now redundant
10348         check for DImode values using IP_REGNUM.
10349         (nonimmediate_soft_df_operand): Remove now redundant check for
10350         DImode values using IP_REGNUM.
10351         (arm_hard_regno_mode_ok): New function. New check: make sure
10352         that DImode values are not stored in IP_REGNUM.
10354         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
10355         note with a USE.
10356         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
10358 2002-01-22  Jason Merrill  <jason@redhat.com>
10360         * c-semantics.c (genrtl_compound_stmt): Only check nesting
10361         consistency if this COMPOUND_STMT is scoped.
10363 2002-01-22  Kazu Hirata  <kazu@hxi.com>
10365         * predict.c: Fix formatting.
10366         * print-tree.c: Likewise.
10367         * protoize.c: Likewise.
10368         * real.h: Likewise.
10369         * rtl.h: Likewise.
10370         * sbitmap.h: Likewise.
10371         * scan.c: Likewise.
10372         * sched-deps.c: Likewise.
10373         * sched-vis.c: Likewise.
10374         * sdbout.c: Likewise.
10375         * sibcall.c: Likewise.
10376         * ssa.c: Likewise.
10377         * ssa-ccp.c: Likewise.
10378         * ssa-dce.c: Likewise.
10379         * stmt.c: Likewise.
10380         * stor-layout.c: Likewise.
10381         * system.h: Likewise.
10383 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10385         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
10386         if fits in bounds of base type.
10388         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
10389         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
10390         (add_bound_info, default): If can't find a context, make a
10391         SAVE_EXPR.
10392         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
10394 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
10396         * c-typeck.c (parser_build_binary_op): If result from
10397         build_binary_op is ERROR_MARK just return error_mark_node without
10398         further processing.
10400 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
10402         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
10403         Split a.out-specific bits into...
10404         * config/netbsd-aout.h: ...this.
10405         * config/netbsd-elf.h: New file.
10406         * config/alpha/netbsd-elf.h: Remove.
10407         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
10408         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
10409         (STARTFILE_SPEC): Remove redundant definition.
10410         (ENDFILE_SPEC): Likewise.
10411         (LINK_SPEC): Likewise.
10412         (CPP_SPEC): Likewise.
10413         (ASM_SPEC): Likewise.
10414         (LIB_SPEC): Likewise.
10415         (SWITCH_TAKES_ARG): Likewise.
10416         (TARGET_MEM_FUNCTIONS): Likewise.
10417         (CPP_PREDEFINES): Redefine.
10418         (ASM_FINAL_SPEC): Remove redefinition.
10419         (ASM_COMMENT_START): Redefine.
10420         (FUNCTION_PROFILER): Define.
10421         (TARGET_VERSION): Redefine.
10422         Comment and formatting cleanup.
10423         * config/i386/netbsd.h: Include <netbsd-aout.h>.
10424         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
10425         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
10426         big- or little-endian.
10427         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
10428         * config.gcc (*-*-netbsd*): Add definitions common to all
10429         NetBSD configs.
10430         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
10431         gnu_ld definitions.  Add netbsd-elf.h to and remove
10432         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
10433         tmake_file, and don't lose previous tmake_file contents.
10434         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
10435         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
10436         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
10437         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
10438         (mipsel-*-netbsd*): Rename this to...
10439         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
10440         mips/little.h to tm_file for mips*el-*.
10441         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
10442         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
10443         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
10445 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10447         * pa-protos.h (reg_before_reload_operand): New function prototype.
10448         * pa.c (reg_before_reload_operand): New function implementation.
10449         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
10450         contraints to "*m".
10452 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10454         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
10456 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10458         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
10459         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
10460         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
10461         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
10462         (ENDFILE_SPEC): Undefine.
10463         (STARTFILE_SPEC): Redefine for PA.
10465 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10467         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
10469 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
10471         * config.gcc: Add entries to supported PowerPC --with-cpu
10472         types.
10474 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
10476         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
10477         true for 64-bit mode only SSE registers in 32-bit mode.
10479 2002-01-21  Kazu Hirata  <kazu@hxi.com>
10481         * unwind-dw2.c: Fix formatting.
10482         * unwind-dw2-fde.c: Likewise.
10483         * unwind-dw2-fde.h: Likewise.
10484         * unwind-pe.h: Likewise.
10485         * varasm.c: Likewise.
10486         * varray.h: Likewise.
10488 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
10490         Remove workaround for register stack overwrite bug in mmix.
10491         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
10492         support for TARGET_REG_STACK_FILL_BUG.
10493         * config/mmix/mmix.h: Remove member has_call_without_parameters.
10494         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
10495         Delete.
10496         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
10497         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
10498         -mno-reg-stack-fill-bug-workaround.
10499         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
10500         machine member has_call_without_parameters.
10501         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
10502         -mreg-stack-fill-bug-workaround and
10503         -mno-reg-stack-fill-bug-workaround.
10504         (MMIX Options): Ditto.
10506 2002-01-21  Kazu Hirata  <kazu@hxi.com>
10508         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
10509         as appropriate.
10510         Remove redundant code.
10512 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
10514         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
10515         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10516         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10517         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
10518         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
10519         out target macro definitions and non-target-specific comments
10520         mostly taken from old versions of the manual.
10522 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10524         * config/h8300/h8300.h: Fix comment formatting.
10525         * config/ia64/aix.h: Likewise.
10526         * config/ia64/ia64-protos.h: Likewise.
10527         * config/ia64/ia64.c: Likewise.
10528         * config/ia64/ia64.h: Likewise.
10529         * config/ia64/ia64intrin.h: Likewise.
10530         * config/ia64/linux.h: Likewise.
10531         * config/ia64/unwind-aix.c: Likewise.
10532         * config/ia64/unwind-ia64.c: Likewise.
10534 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10536         * config/h8300/h8300.c: Revise comments about shift code.
10538 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10540         * config/h8300/h8300.c (function_arg): Update a comment.
10542 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10544         * config/h8300/h8300.md: Update the comments at the beginning
10545         of the file.
10547 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10549         * config/i370/i370.c: Fix comment formatting.
10550         * config/i370/i370.h: Likewise.
10551         * config/i370/i370.md: Likewise.
10552         * config/i370/linux.h: Likewise.
10554 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10556         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
10558         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
10559         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
10560         in incomplete case.
10562 2002-01-20  Graham Stott  <grahams@redhat.com>
10564         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
10566 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10568         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
10570 2002-01-19  Tom Rix  <trix@redhat.com>
10572         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
10574 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
10576         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
10578         * function.c (assign_stack_local_1): Adjust x_frame_offset with
10579         STARTING_FRAME_PHASE.
10580         (STARTING_FRAME_PHASE): New.
10581         (instantiate_virtual_regs): Check saneness of
10582         STARTING_FRAME_PHASE.
10584         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
10586 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
10588         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
10590 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10592         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
10593         be used for bootstrapping GCC 3.0.
10595 2002-01-18  Kazu Hirata  <kazu@hxi.com>
10597         * config/h8300/h8300.md: Fix an insn length.
10599 2002-01-18  Kazu Hirata  <kazu@hxi.com>
10601         * bitmap.h: Fix comment formatting.
10602         * combine.c: Likewise.
10603         * cppfiles.c: Likewise.
10604         * c-pragma.h: Likewise.
10605         * c-typeck.c: Likewise.
10606         * df.c: Likewise.
10607         * dwarf2out.c: Likewise.
10608         * function.c: Likewise.
10609         * gcc.c: Likewise.
10610         * genattrtab.c: Likewise.
10611         * gthr-win32.h: Likewise.
10612         * haifa-sched.c: Likewise.
10613         * predict.c: Likewise.
10614         * rtlanal.c: Likewise.
10615         * rtl.h: Likewise.
10616         * unwind-dw2-fde.h: Likewise.
10617         * unwind-pe.h: Likewise.
10618         * vmsdbgout.c: Likewise.
10620 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10622         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
10623         if type_required and passed decl.
10625 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
10627         * config.gcc (cpu_type): Include altivec.h in powerpc
10628         extra_headers.
10629         Same for darwin.
10631         * config/rs6000/altivec.h: New.
10633 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
10635         * doc/install.texi (*-ibm-aix*): Update assembler and exception
10636         handling information.
10637         * doc/trouble.texi (Interoperation): Add libstdc++ information
10638         for AIX.
10639         (Misunderstandings): Add template instantiation and static template
10640         member information for AIX.
10642 2002-01-17  Jason Merrill  <jason@redhat.com>
10644         * dbxout.c (dbxout_type): Support const and volatile.
10646         * except.c (add_partial_entry): Remove backwards compatibility code.
10647         (end_protect_partials): Likewise.
10649 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
10651         * config/ia64/ia64.md (prologue_use): New.
10652         * config/ia64/ia64.c (ia64_expand_prologue): Use
10653         gen_prologue_use instead of gen_rtx_USE.
10654         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
10655         as CODE_FOR_pred_rel_mutex.
10656         (ia64_sched_reorder2): Likewise.
10658 2002-01-16  Eric Christopher  <echristo@redhat.com>
10660         * config/mips/r3900.h: Reformat.
10661         (SUBTARGET_CPP_SIZE_SPEC): Remove.
10662         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
10663         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
10664         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
10665         * config/mips/t-elf: Remove mips3 multilib.
10667 2002-01-16  H.J. Lu <hjl@gnu.org>
10669         * config/mips/linux.h: Include "mips/abi64.h".
10671 2002-01-16  H.J. Lu <hjl@gnu.org>
10673         * config/mips/t-linux: New.
10675         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
10677         * config/mips/linux.h: Don't include "gofast.h".
10678         (INIT_SUBTARGET_OPTABS): Removed.
10680 2002-01-16  Kazu Hirata  <kazu@hxi.com>
10682         * config/h8300/h8300-protos.h: Replace emit_a_shift with
10683         output_a_shift.
10684         * config/h8300/h8300.c: Likewise.
10685         * config/h8300/h8300.md: Likewise.
10687 2002-01-16  Kazu Hirata  <kazu@hxi.com>
10689         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
10690         spaces after an opcode name.
10691         (pushqi1_h8300hs): Likewise.
10692         (pushhi1_h8300hs): Likewise.
10694 2002-01-16  Kazu Hirata  <kazu@hxi.com>
10696         * doc/extend.texi: Replace "option" with "attribute"
10697         appropriately.
10699 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
10701         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
10702         (and:DI () (const_int -8)).
10703         (split_small_symbolic_mem_operand): Split
10704         (mem (and:DI () (const_int -8)).
10706 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
10708         PR target/5309:
10709         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
10710         same way as TYPE_IMUL.
10711         (ultrasparc_sched_reorder): Likewise.
10712         * config/sparc/sparc.md (type): Add comment to update
10713         ultrasparc_sched_reorder when making changes.
10715 2002-01-16  Kazu Hirata  <kazu@hxi.com>
10717         * doc/invoke.texi: Change the dump file name of block
10718         reordering pass from 28.bbro to 29.bbro.
10719         Mention -dk option.
10721 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
10723         * i386.md (minsf splitter): Fix pasto.
10725 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
10727         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
10728         to frame pointer initialisation instruction.
10729         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
10730         initialisation instruction.
10731         (soft_df_operand): Do not accept the IP register.
10732         (nonimmediate_soft_df_operand): Do not accept the IP register.
10734 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
10736         PR target/5357:
10737         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
10738         MASK_V8 being both set.
10740 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
10742         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
10743         insn for GOT register; add REG_MAYBE_DEAD notes instead.
10744         config/s390/s390.md (call, call_value): Add GOT register to
10745         CALL_INSN_FUNCTION_USAGE where needed.
10746         (call_exp, call_value_exp): New.
10748 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
10750         * config/arm/arm.c: General formatting tidy up.
10752 2002-01-16  Graham Stott  <grahams@redhat.com>
10754         * calls.c (try_to_integrate): Use "(size_t)" intermediate
10755         cast and when casting an integer literal to "rtx" pointer.
10756         (expand_call): Likewise.
10757         * flow.c (try_pre_increment): Likewise.
10758         (find_use_as_address): Likewise.
10759         * integrate.c (expand_iline_function): Likewise.
10760         * regmove.c (try_auto_increment): Likewise.
10762 2002-01-16  Graham Stott  <grahams@redhat.com>
10764         * sched-rgn.c (passed): Use sbitmap_free.
10765         (header): Likewise.
10766         (inner): Likewise.
10767         (in_queue): Likewise.
10768         (in_stack): Likewise.
10770 2002-01-15  Eric Christopher  <echristo@redhat.com>
10772         * flow.c (propagate_one_insn): Change to use fatal_insn.
10774 2002-01-15  Kazu Hirata  <kazu@hxi.com>
10776         * expmed.c (extract_fixed_bit_field): Remove unused code.
10777         * system.h: Poison SLOW_ZERO_EXTEND.
10778         * doc/tm.texi: Remove.
10779         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
10780         * config/arm/arm.h: Likewise.
10781         * config/avr/avr.h: Likewise.
10782         * config/clipper/clipper.h: Likewise.
10783         * config/convex/convex.h: Likewise.
10784         * config/d30v/d30v.h: Likewise.
10785         * config/dsp16xx/dsp16xx.h: Likewise.
10786         * config/elxsi/elxsi.h: Likewise.
10787         * config/fr30/fr30.h: Likewise.
10788         * config/h8300/h8300.h: Likewise.
10789         * config/i370/i370.h: Likewise.
10790         * config/i386/i386.h: Likewise.
10791         * config/m68k/m68k.h: Likewise.
10792         * config/mips/mips.h: Likewise.
10793         * config/ns32k/ns32k.h: Likewise.
10794         * config/pdp11/pdp11.h: Likewise.
10795         * config/pj/pj.h: Likewise.
10796         * config/s390/s390.h: Likewise.
10797         * config/sh/sh.h: Likewise.
10798         * config/stormy16/stormy16.h: Likewise.
10799         * config/v850/v850.h: Likewise.
10800         * config/vax/vax.h: Likewise.
10801         * config/we32k/we32k.h: Likewise.
10803 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
10805         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
10806         (altivec_lvsl): Change constraint to b.
10807         (altivec_lvsr): Same.
10808         (altivec_lvebx): Same.
10809         (altivec_lvehx): Same.
10810         (altivec_lvewx): Same.
10811         (altivec_lvxl): Same.
10812         (altivec_lvx): Same.
10813         (altivec_stvx): Add parallel.
10814         (altivec_stvxl): Same.
10815         (altivec_stvehx): Same.
10816         (altivec_stvebx): Same.
10817         (altivec_stvebx): Same.
10819 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
10821         * config.gcc: Change altivec.h to altivec-defs.h.
10823         * config/rs6000/altivec.h: Delete.
10825         * config/rs6000/altivec-defs.h: Add.
10827 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10829         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
10830         and UMOD modes.
10832         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
10833         less than or equal to eight bytes.
10835         * vax.md (andsi3): Remove constraints and change SET destination
10836         operand type to nonimmediate_operand.
10837         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
10838         when it is a CONST_INT.
10840 2002-01-15  Jason Merrill  <jason@redhat.com>
10842         * c-common.def (FILE_STMT): New code.
10843         * c-common.c (statement_code_p): It's a statement.
10844         * c-common.h (stmt_tree_s): Add x_last_filename.
10845         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
10846         (last_expr_filename): New macro.
10847         * c-semantics.c (begin_stmt_tree): Initialize it.
10848         (add_stmt): If the filename changed, also insert a
10849         FILE_STMT.
10850         (expand_stmt): Handle seeing one.
10852 2002-01-15  Eric Christopher  <echristo@redhat.com>
10854         * flow.c (propagate_one_insn): Add error message and print out
10855         insn for debugging.
10857 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
10859         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
10860         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
10861         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
10862         TRAMPOLINE_ALIGNMENT.
10863         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
10864         to be in bits.
10865         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
10866         PCC_BITFIELD_TYPE_MATTERS.
10867         * config/interix.h (STDC_VALUE): Remove.  Use
10868         STDC_0_IN_SYSTEM_HEADERS.
10869         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
10870         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
10871         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
10873 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10875         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
10876         not work on this platform currently.
10878 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
10880         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
10881         readonly_warning in _().
10883 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
10885         * gcc.c (delete_if_ordinary): Backout previous change.
10887 2002-01-15  Kazu Hirata  <kazu@hxi.com>
10889         * config/h8300/h8300.c (print_operand): Remove support for
10890         unused operand characters.
10892         * read-rtl.c: Fix formatting.
10893         * real.c: Likewise.
10894         * recog.c: Likewise.
10895         * regclass.c: Likewise.
10896         * regmove.c: Likewise.
10897         * reg-stack.c: Likewise.
10898         * reload1.c: Likewise.
10899         * rtlanal.c: Likewise.
10901 2002-01-15  Kazu Hirata  <kazu@hxi.com>
10903         * config/i386/i386.c: Fix formatting.
10905 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
10907         * c-typeck.c (process_init_element): Don't save_expr
10908         COMPOUND_LITERAL_EXPR if just its initializer will be used.
10910 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
10912         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
10913         emit optional traceback table if optimize_size or TARGET_ELF.
10914         * config/rs6000/rs6000.md (prefetch): New.
10916 2002-01-15  Andreas Jaeger  <aj@suse.de>
10918         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
10920 2002-01-15  Kazu Hirata  <kazu@hxi.com>
10922         * mips-tfile.c: Fix formatting.
10924 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
10926         * unroll.c (final_reg_note_copy): Fix previous commit.
10928 2002-01-14  Kazu Hirata  <kazu@hxi.com>
10930         * config/h8300/h8300-protos.h: Remove the prototype for
10931         eq_operator.
10932         * config/h8300/h8300.c (eq_operator): Remove.
10934 2002-01-14  Richard Henderson  <rth@redhat.com>
10936         * config/i386/i386.md (prefetch): Tidy.
10937         (prefetch_3dnow): Fix locality operand.
10939 2002-01-14  Richard Henderson  <rth@redhat.com>
10941         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
10942         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
10944 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
10946         * reload1.c (reload_combine): Pass reg_sum replacement through
10947         copy_rtx in loop performing multiple changes.
10949 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
10951         * except.c (remove_unreachable_regions): New.
10952         (free_eh_status): Clear exception_handler_labels.
10953         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
10954         (find_exception_handler_labels): Don't add the same label more than
10955         once.
10956         (remove_exception_handler_label): Don't die if
10957         find_exception_handler_labels hasn't been called for the current
10958         function yet.
10960 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
10962         * toplev.c (rest_of_compilation): Rebuild jump labels after
10963         gcse.
10965 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
10967         * doc/extend.texi: Move documentation of X86 built-in functions
10968         here.
10969         * doc/invoke.texi: From here.
10970         * doc/sourcebuild.texi: Document location of documentation for
10971         machine built-in functions.
10973 2002-01-13  Christopher Faylor  <cgf@redhat.com>
10975         * cppfiles.c (TEST_THRESHOLD): New macro.
10976         (SHOULD_MMAP): Ditto.
10977         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
10978         be used.
10980 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
10982         * unroll.c (final_reg_note_copy): Properly handle
10983         REG_LABEL
10984         (unroll_loops): Fix LOOP_CONDITION heuristics.
10986 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
10988         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
10989         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
10991 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
10993         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
10994         threaded loop.
10996 2002-01-14  Tom Rix  <trix@redhat.com>
10998         * config/rs6000/rs6000.md: Fix typo with sradi.
11000 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
11002         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
11003         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
11004         (clrstrdi, clrstrsi): Adapt callers.
11006         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
11008         (movti splitter): Never use register 0 as base register.
11010 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
11012         * combine.c (simplify_shift_const): Always generate new rtx
11013         for shift expression instead of reusing given expression.
11015 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11017         * config/alpha/alpha.c (alpha_expand_mov): Don't call
11018         alpha_legitimize_address unless mode is Pmode.
11020 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
11022         * doc/md.texi (Modifiers): Document the '*' constraint for the
11023         user.
11025         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
11026         * doc/extend.texi (Function Attributes): 'interrupt' is valid
11027         for xstormy16 too.
11029 2002-01-13  Richard Henderson  <rth@redhat.com>
11031         * reload.c (find_reloads): Use a hard reg destination as reload reg
11032         for an input reload of the source.
11034 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11036         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
11037         more generic.
11039 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
11041         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
11042         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
11044         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
11046 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11048         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
11050 2002-01-12  Tom Rix  <trix@redhat.com>
11052         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
11053         TARGET_POWERPC64.
11055 2002-01-12  Richard Henderson  <rth@redhat.com>
11057         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
11059         * doc/invoke.texi: Update Alpha options.
11061         * doc/invoke.texi: Update i386 built-in function lists.
11063 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
11065         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
11066         referencing outside.
11068 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11070         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
11071         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
11072         offsets, and change line folding.
11073         * optabs.c (expand_binop): Remove warnings.
11074         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
11076 2002-01-12  Graham Stott <grahams@redhat.com>
11078         * attribs.c (handle_deprecated_attribute): constify WHAT.
11079         * diagnostic.c (warn_deprecated_use): Add braces, fixes
11080         dangling else warning and constify WHAT.
11081         * except.h (struct function, struct inline_remap): Move
11082         struct tag forward defs before all prototypes.
11083         (duplicate_eh_regions): Whitespace.
11085 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
11087         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11088         MODE_BASE_REG_CLASS.
11089         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
11091 2002-01-12  Richard Henderson  <rth@redhat.com>
11093         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
11094         (ix86_expand_vector_move): New.
11095         (bdesc_2arg): Remove andps, andnps, orps, xorps.
11096         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
11097         Remove old prefetch builtins.  Special case the logicals removed above.
11098         (ix86_expand_builtin): Likewise.
11099         (safe_vector_operand): Use V4SFmode, not TImode.
11100         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
11101         (ix86_expand_timode_binop_builtin): New.
11102         * config/i386/i386-protos.h: Update.
11103         * config/i386/i386.h (enum ix86_builtins): Update.
11104         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
11105         Use ix86_expand_vector_move in vector move expanders.
11106         (movti_internal, movti_rex64): Add xorps alternative.
11107         (sse_clrv4sf): Rename and adjust from sse_clrti.
11108         (prefetch): Don't work so hard.
11109         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
11110         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
11111         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
11113 2002-01-11  Richard Henderson  <rth@redhat.com>
11115         * config/i386/mmintrin.h: New file.
11116         * config/i386/xmmintrin.h: New file.
11117         * config.gcc (i?86-*-*): Add extra_headers.
11118         * simplify-rtx.c (simplify_unary_operation): Handle saturating
11119         truncation codes.
11120         (simplify_binary_operation): Handle saturating arithmetic codes.
11121         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
11122         not the lowpart subreg.
11123         (ix86_expand_builtin): Return a TImode dummy register instead of 0
11124         on error.
11125         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
11127 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11129         * conflict.c (conflict_graph_compute): Free regsets when finished.
11130         * ssa.c (compute_coalesced_reg_partition): Likewise.
11132 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11134         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
11135         every where we allocate a register.
11137 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11139         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
11140         * lcm.c (compute_earliest, compute_farthest): Likewise.
11142 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
11144         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
11146 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
11148         * doc/rtl.texi (Insns): Fix 2 typos.
11150 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
11152         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
11153         options.  Use @table @gcctabopt for MMIX options.  Add index
11154         entries for MMIX options.  Start new paragraph with first
11155         heading of the machine-dependent options.
11157 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11159         PR other/5299
11160         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
11161         * combine.c (force_to_mode): Same.
11162         * reload1.c (clear_reload_reg_in_use): Same.
11164 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
11166         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
11167         and 'subtargets'.
11169 2002-01-11  Andreas Jaeger  <aj@suse.de>,
11170             Brad Lucier <lucier@math.purdue.edu>
11172         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
11173         mcpu.
11175 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
11177         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
11178         Protect with IN_LIBGCC.
11179         (LINK_EH_SPEC): Add required trailing space.
11181 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
11183         * c-tree.h: Move function declarations so that they are listed
11184         under the filename which contains them.
11185         (check_identifier, finish_decl_top_level,
11186         lookup_name_current_level_global, shadow_record_fields): Remove.
11188 2002-01-11  Andreas Jaeger  <aj@suse.de>
11190         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
11191         march.
11193 2002-01-10  Richard Henderson  <rth@redhat.com>
11195         * config/alpha/alpha.c (print_operand): Add 'J'.
11196         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
11197         new operand with the sequence number for the lituse.  When splitting
11198         the insns, use gen_movdi_er_high_g and generate a sequence number.
11199         (gen_movdi_er_high_g): Print the sequence number if non-zero.
11201 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
11203         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
11204         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
11205         stvxl.
11206         (altivec_expand_builtin): Same.
11207         (altivec_expand_stv_builtin): New.
11209         * config/rs6000/rs6000.h (rs6000_builtins): Same.
11211         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
11212         ("altivec_lvehx"): New.
11213         ("altivec_lvewx"): New.
11214         ("altivec_lvxl"): New.
11215         ("altivec_lvx"): New.
11216         ("altivec_stvx"): New.
11217         ("altivec_stvebx"): New.
11218         ("altivec_stvehx"): New.
11219         ("altivec_stvewx"): New.
11220         ("altivec_stvxl"): New.
11222 2002-01-10  Richard Henderson  <rth@redhat.com>
11224         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
11225         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
11226         care not to delete instructions twice.
11228 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
11230         * toplev.c: Don't declare environ (it's not used anywhere).
11231         * configure.in: Don't check for declaration of environ.
11232         * config/i386/xm-mingw32.h: Don't #define environ.
11233         * config.in, configure: Regenerate.
11235 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
11237         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
11238         * configure: Regenerate.
11240         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
11241         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
11242         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
11243         alpha/xm-vms.h.
11244         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
11245         LIMITS_H_TEST here, not in m68k/x-next.
11246         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
11247         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
11249         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
11250         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
11251         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
11253         * config/i386/x-djgpp: Renamed i386/t-djgpp.
11254         * config/m88k/x-dolph: Renamed m88k/t-dolph.
11255         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
11256         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
11257         replacement of quadlib.asm with quadlib.c.
11259         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
11260         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
11261         config/rs6000/xm-beos.h: Delete file.
11263         * config.gcc: Update to match above changes.
11265 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11267         * config/h8300/h8300.h: Fix comment typos.
11268         * config/h8300/h8300.md: Likewise.
11269         * config/h8300/lib1funcs.asm: Likewise.
11271 2002-01-10  Dale Johannesen  <dalej@apple.com>
11273         PR optimization/5269
11274         * unroll.c (precondition_loop_p): Make *increment be the correct
11275         sign when n_iterations known, to avoid confusing caller.
11277 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11279         * doc/extend.texi (deprecated): Fix a typo.
11281 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
11283         * basic-block.h (update_br_prob_note): Declare.
11284         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
11285         (try_forward_edges): Care negative frequencies and update note.
11286         (outgoing_edges_match): Tweek conditional merging heuristics.
11287         (try_crossjump_to_edge): use update_br_prob_note.
11288         * cfglayout.c (fixup_reorder_chain): Likewise.
11289         * cfrtl.c (update_br_prob_note): New.
11290         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
11292         * i386.c (ix86_decompose_address): Return -1 if address contains
11293         shift.
11294         (legitimate_address_p): Require ix86_decompose_address to return 1.
11296         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
11297         (cprop_insn): Likewise.
11299 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11301         * toplev.c: Fix formatting.
11302         * tree.c: Likewise.
11303         * tree-dump.c: Likewise.
11304         * unroll.c: Likewise.
11305         * unwind-dw2.c: Likewise.
11306         * unwind-dw2-fde.c: Likewise.
11307         * unwind-dw2-fde-glibc.c: Likewise.
11308         * unwind-sjlj.c: Likewise.
11310 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
11312         * doc/invoke.texi: Document PDP-11 options.
11314 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11316         * config/h8300/h8300.h: Fix formatting.
11318 2002-01-10  Ira Ruben   <ira@apple.com>
11320         Add __attribute__ ((deprecated)).
11321         * extend.texi: Document __attribute__ ((deprecated)).
11322         * invoke.texi: Document -Wno-deprecated-declarations.
11323         * testsuite/g++.dg/other/deprecated.C: New C++ test.
11324         * testsuite/gcc.dg/deprecated.c: New C test.
11325         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
11326         (c_common_attribute_table): Add "deprecated" entry.
11327         (handle_deprecated_attribute): New function.
11328         * c-decl.c (deprecated_states): New enum.
11329         deprecated_state: State of "deprecated" handling.
11330         (start_decl): Set deprecated_state based on attributes.
11331         (grokdeclarator): Test for deprecated uses, propagate attribute.
11332         * c-typeck.c (build_component_ref): Test for deprecated fields.
11333         (build_external_ref): Test for deprecated primaries.
11334         * diagnostic.c (warn_deprecated_use) New function to issue
11335         warnings about __attribute__ ((depricated)) references.
11336         * flags.h (warn_deprecated_decl): Extern declared for
11337         -W[no-]deprecated-declarations option.
11338         * print-tree.c (print_node): Show deprecated flag status.
11339         * toplev.c (warn_deprecated_decl): Defined.
11340         (W_options): Added "deprecated-declaration".
11341         * toplev.h (warn_deprecated_use): Extern declared.
11342         * tree.h (struct tree_common): Define deprecated_flag.
11343         (TREE_DEPRECATED): New macro to access flag.
11344         * cp/call.c (build_call): Test for deprecated calls.
11345         * cp/class.c (add_implicitly_declared_members): Set global
11346         flag to tell grokdeclarator to not issue deprecated warnings.
11347         * cp/cp-tree.h: Add extern for adding_implicit_members.
11348         * cp/decl.c (deprecated_states): New enum.
11349         (start_decl): Set deprecated_state based on attributes.
11350         (grokdeclarator): Test for deprecated uses, propagate attribute.
11351         * cp/lex.c (do_identifier): Test for deprecated primaries.
11352         * cp/typeck.c (build_component_ref): Test for deprecated fields.
11354 2002-01-10  Ira Ruben   <ira@apple.com>
11356         Fix to assign attributes to inline member functions.
11357         * cp/decl.c (start_method): Handle attrlist.
11359 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11361         * combine.c (expand_field_assignment): Use subreg_lsb().
11363 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
11365         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
11366         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
11367         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
11368         Recurse for any operand of AND as long as constant is non-zero.
11370 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11372         * config/h8300/h8300.md: Remove constraints from expanders.
11374 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11376         * varasm.c: Fix formatting.
11377         * varray.c: Likewise.
11378         * vmsdbgout.c: Likewise.
11379         * xcoffout.c: Likewise.
11381 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
11383         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
11384         update edge probabilities to match.
11386 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
11388         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
11389         dependencies.
11390         * doc/languages.texi, doc/sourcebuild.texi: New files.
11391         * doc/configfiles.texi: Make a subsubsection.  Update.
11392         * doc/configterms.texi: Add @node.  Remove warning that this isn't
11393         instructions for building GCC.
11394         * doc/makefile.texi: Make a subsection.
11395         * doc/gccint.texi: Update.
11397 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
11399         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
11401 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
11403         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
11405 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
11407         * optabs.c (expand_fix): Look for wider integer modes first.
11409         * i386.md (mov?f): Avoid the fake const double trick for medium
11410         memory model.
11411         (min?f*/max?f*): Prohibit memory operands for i387 variant.
11412         (fop_df_4): Disable for SSE compilation.
11414 2002-01-10  Graham Stott  <grahams@redhat.com>
11416         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
11417         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
11419 2002-01-10  Richard Henderson  <rth@redhat.com>
11421         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
11423 2002-01-10  Richard Henderson  <rth@redhat.com>
11425         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
11426         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
11428 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11430         * combine.c (can_combine_p): Fix a comment typo.
11432 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
11434         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
11435         empty list correctly.  Change loop index $t to $f for
11436         consistency with rest of Makefile.
11438 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
11440         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
11441         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
11443         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
11444         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
11445         (altivec_init_builtins): Same.
11446         (altivec_expand_unop_builtin): Return NULL_RTX on error.
11447         (altivec_expand_binop_builtin): Same.
11448         (altivec_expand_ternop_builtin): Same.
11449         (bdesc_dst): New.
11451         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
11452         ("altivec_vctuxs"): Fix typo.
11453         ("altivec_vnmsubfp"): Same.
11454         ("altivec_dssall"): New.
11455         ("altivec_mfvscr"): New.
11456         ("altivec_dss"): New.
11457         ("altivec_lvsl"): New.
11458         ("altivec_lvsr"): New.
11459         ("altivec_dstt"): New.
11460         ("altivec_dstst"): New.
11461         ("altivec_dststt"): New.
11462         ("altivec_dst"): New.
11464         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
11465         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
11467 2002-01-09  Richard Henderson  <rth@redhat.com>
11469         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
11471 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
11473         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
11474         function.
11475         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
11476         prototype.
11477         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
11479 2002-01-09  Kazu Hirata  <kazu@hxi.com>
11481         * read-rtl.c: Fix formatting.
11482         * real.c: Likewise.
11483         * regclass.c: Likewise.
11484         * regrename.c: Likewise.
11485         * reg-stack.c: Likewise.
11486         * reload1.c: Likewise.
11487         * reload.c: Likewise.
11488         * rtl.c: Likewise.
11490 2002-01-09  Kazu Hirata  <kazu@hxi.com>
11492         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
11493         to extract items in the expr_list chain.
11495 2002-01-09  Richard Henderson  <rth@redhat.com>
11497         * config/vax/vax.c (vax_rtx_cost): Never abort.
11499         * config/vax/vax.h (REAL_ARITHMETIC): Define.
11501 2002-01-09  Jan Hubicka  <jh@suse.cz>
11503         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
11505 2002-01-09  Richard Henderson  <rth@redhat.com>
11507         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
11508         Unify code from various alternatives.
11510 2002-01-09  Richard Henderson  <rth@redhat.com>
11512         * regrename.c (copy_value): Ignore the copy if the source register
11513         is present in the value chain with a narrower mode.
11515 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
11517         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
11518         for the c4x target. Also improve layout.
11520 2002-01-09  Richard Henderson  <rth@redhat.com>
11522         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
11523         * config/m32r/m32r.md (and ior xor splitters): Swap operands
11524         to match insn patterns.
11526 2002-01-09  Richard Henderson  <rth@redhat.com>
11528         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
11529         (copyprop_hardreg_forward_1): Likewise.
11531 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11533         * pa.md (decrement_and_branch_until_zero): Change predicate for
11534         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
11536 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
11538         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
11539         gets undefined. For Darwin.
11541 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11543         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
11545 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11547         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
11549 2002-01-08  Richard Henderson  <rth@redhat.com>
11551         * regrename.c (copy_value): Ignore overlapping copies.
11553 2002-01-08  Richard Henderson  <rth@redhat.com>
11555         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
11556         as needed to avoid shared structure.
11558 2002-01-08  Kazu Hirata  <kazu@hxi.com>
11560         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
11561         H8/300H and H8/S.
11563 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
11565         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
11566         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
11567         documentation of obsolete macros.
11568         * system.h: Poison these macros.
11569         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
11570         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
11571         config/c4x/c4x.h, config/clipper/clipper.h,
11572         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
11573         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
11574         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
11575         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
11576         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
11577         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
11578         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
11579         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
11580         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
11581         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
11582         config/sparc/sparc.h, config/stormy16/stormy16.h,
11583         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
11584         definitions and commented out definitions of obsolete macros.
11585         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
11586         of MAX_INT_TYPE_SIZE.
11588 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
11590         * config/s390/s390.c (s390_preferred_reload_class): Never
11591         return ADDR_REGS if it isn't a subset of the given class.
11592         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
11593         FP_REGS, but all superclasses as well.
11595         * config/s390/s390.c (s390_function_profiler): Fix thinko.
11597         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
11598         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
11599         must not be a const_int.
11601 2002-01-08  Richard Henderson  <rth@redhat.com>
11603         * Makefile.in (toplev.o): Depend on options.h.
11604         (gcc.o): Depend on specs.h.
11606 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
11608         * expr.c (store_expr): Convert VOIDmode constants back to target's
11609         mode.
11611 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11613         * doc/invoke.texi: Markup gcc as @command.  Refer to
11614         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
11615         of http://gcc.gnu.org/thanks.html.
11617 2002-01-08  Dale Johannesen  <dalej@apple.com>
11619         * config/rs6000/rs6000.md: Add missing int register
11620         target case to movdf_low.
11622 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
11624         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
11625         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
11626         (cppinit.o): Depend on except.h.
11627         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
11628         s-specs): New rules.
11630         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
11631         Don't create specs.h/options.h/gencheck.h here.  Remove
11632         unnecessary variable settings from last argument of AC_OUTPUT.
11633         * config.in, configure: Regenerate.
11634         * intl.c: Hardcode package name as "gcc".
11636         * cppinit.c: Include except.h.
11637         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
11638         appropriate.
11639         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
11640         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
11641         (!)USING_SJLJ_EXCEPTIONS.
11642         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
11644 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
11646         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
11647         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
11648         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
11649         documentation of obsolete macros.
11650         * system.h: Poison these macros.
11651         * config/d30v/d30v.h, config/ns32k/encore.h,
11652         config/stormy16/stormy16.h: Remove definitions and commented out
11653         definitions of obsolete macros.
11655 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
11657         * objc/objc-act.c (handle_class_ref): Mark the declaration of
11658         %sobjc_class_ref_%s as used - to prevent unwanted compiler
11659         warnings.
11661 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
11663         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
11664         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
11665         to insn adjusting stack/frame pointer.
11666         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
11667         accept operands that cause the insn to be non-splittable.
11669 2002-01-08  Graham Stott  <grahams@redhat.com>
11671         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
11672         (C_TYPE_FIELDS_VOLATILE): Likewise.
11673         (C_TYPE_BEING_DEFINED): Likewise.
11674         (C_IS_RESERVED_WORD): Likewise.
11675         (C_TYPE_VARIABLE_SIZE): Likewise.
11676         (C_DECL_VARIABLE_SIZE): Likewise.
11677         (C_MISSING_PROTOTYPE_WARNED): Likewise.
11678         (C_SET_EXP_ORIGINAL_CODE): Likewise.
11679         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
11680         parenthesis.
11681         (C_DECL_ANTICIPATED): Likewise.
11682         (c_build_type_variant): Add parenthesis.
11684 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
11686         * gcc.c (option_map): Remove --version.
11687         (process_command): Handle -fversion following the GNU Coding
11688         Standards.  Partially addresses PR other/704.
11690 2002-01-08  Graham Stott  <grahams@redhat.com>
11692         * combine.c (combine_instructions): Fix typo.
11694 2002-01-08  Graham Stott  <grahams@redhat.com>
11696         * debug.h: Use "tree" and "rtx" throughout.
11698         * debug.c: Likewise.
11700 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
11702         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
11703         constant pool, use the pool's version of the symbol instead.
11705 2002-01-07  Richard Henderson  <rth@redhat.com>
11707         * regrename.c (find_oldest_value_reg): Ignore the value chain if
11708         the original register was copied in a mode with a fewer number of
11709         hard registers than the desired mode.
11710         (copyprop_hardreg_forward_1): Likewise.
11711         (debug_value_data): Fix loop test.
11712         * toplev.c (parse_options_and_default_flags): Reenable
11713         -fcprop-registers at -O1.
11715 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
11717         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
11718         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
11720         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
11721         predicates.
11723         * config/rs6000/rs6000.md: Add altivec predicate patterns.
11725 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11727         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
11728         (pa_output_function_prologue): Output local label at the beginning of
11729         the prologue when profiling.
11730         (hppa_profile_hook): Use the local label rather than the function label.
11731         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
11733 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
11735         * config/rs6000/rs6000.c (print_operand): Remove extra space.
11736         (altivec_expand_unop_builtin): Fix thinko.
11737         (altivec_expand_binop_builtin): Same.
11738         (altivec_expand_ternop_builtin): Same.
11739         (altivec_expand_builtin): Same.
11741 2002-01-07  Richard Henderson  <rth@redhat.com>
11743         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
11745 2002-01-07  Jason Merrill  <jason@redhat.com>
11747         * unwind-dw2.c (execute_cfa_program): Use < again.
11749 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
11751         * predict.c (combine_predictions_for_insn): Avoid division by zero.
11753 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
11755         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
11756         Don't allow -1 - x -> ~x simplifications in the first pass.
11758 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
11760         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
11761         arguments.
11762         (altivec_expand_binop_builtin): Same.
11763         (altivec_expand_unop_builtin): Same.
11764         (print_operand): Fix typo.
11765         (bdesc_1arg): Add vupk* variants.
11767         * rs6000.h (rs6000_builtins): Add vupk* enums.
11769         * rs6000.md: Add altivec_vupk* variants.
11771 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
11773         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
11774         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
11775         and last update dates.
11777 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
11779         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
11781 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11783         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
11784         * config/avr/avr.h (CPP_SPEC): Likewise.
11785         (LINK_SPEC): Likewise.
11786         (CRT_BINUTILS_SPECS): Likewise.
11787         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11788         * doc/invoke.texi (AVR Options): Document them.
11790 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
11792         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
11793         LABEL_NUSES.
11795 2002-01-07  Graham Stott  <grahams@redhat.com>
11797         * config/i386/i386.h: Update copyright date.
11798         (HALF_PIC_PTR): Add parenthesis.
11799         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
11800         (CONSTANT_ALIGNMENT): Add parenthesis.
11801         (DATA_ALIGNMENT): Likewise.
11802         (LOCAL_ALIGNMENT): Likewise.
11803         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
11804         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
11805         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
11806         (HARD_REGNO_NREGS): Add paranethesis.
11807         (VALID_SSE_REG_MODE): Whitespace.
11808         (VALID_MMX_REG_MODE): Whitespace.
11809         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
11810         (ix86_hard_regno_mode_ok): Add parenthesis.
11811         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
11812         (RETURN_IN_MEMORY): Whitespace.
11813         (N_REG_CLASSES): Add parenthesis.
11814         (INTEGER_CLASS_P): Add parenthesis and wrap.
11815         (FLOAT_CLASS_P): Likewise.
11816         (SSE_CLASS_P): Likewise.
11817         (MMX_CLASS_P): Likewise.
11818         (MAYBE_INTEGER_CLASS_P): Likewise.
11819         (MAYBE_FLOAT_CLASS_P): Likewise.
11820         (MAYBE_SSE_CLASS_P): Likewise.
11821         (MAYBE_MMX_CLASS_P): Likewise.
11822         (Q_CLASS_P): Likewise.
11823         (GENERAL_REGNO_P): Uppercase macro parameter.
11824         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
11825         (FP_REGNO_P): Likewise.
11826         (ANY_FP_REGNO_P): Uppercase macro parameter.
11827         (SSE_REGNO_P): Likewise.
11828         (SSE_REGNO): Likewise.
11829         (SSE_REG_P): Likewise.
11830         (SSE_FLOAT_MODE_P): Likewise.
11831         (MMX_REGNO_P): Likewise.
11832         (MMX_REG_P):Likewise.
11833         (STACK_REG_P): Likewise.
11834         (NON_STACK_REG_P): Likewise.
11835         (STACK_TOP_P): Likewise.
11836         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
11837         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
11838         (SECONDARY_MEMORY_NEEDED): Likewise.
11839         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
11840         (MD_ASM_CLOBBERS): Whitespace and wrap.
11841         (MUST_PASS_IN_STACK): Whitespace and wrap.
11842         (RETURN_POPS_ARGS): Add parenthesis.
11843         (INIT_CUMULATIVE_ARGS): Likewise.
11844         (FUNCTION_ARG): Likewise.
11845         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
11846         (SETUP_INCOMING_VARARGS): Likewise.
11847         (BUILD_VA_LIST_TYPE):  Add parenthesis.
11848         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
11849         parenthsis.
11850         (EXPAND_BUILTIN_VA_ARG): Likewise.
11851         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
11852         (INITIALIZE_TRAMPOLINE): Add parenthesis.
11853         (INITIAL_ELIMINATION_OFFSET): Likewise.
11854         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
11855         (REGNO_OK_FOR_BASE_P): Likewise.
11856         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
11857         (REGNO_OK_FOR_DIREG_P): Likewise.
11858         (REG_OK_FOR_INDEX_P): Whitespace.
11859         (REG_OK_FOR_BASE_P): Whitespace.
11860         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
11861         parenthesis.
11862         (FIND_BASE_TERM): Fix typo.
11863         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
11864         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
11865         (SYMBOLIC_CONST; Whitespace.
11866         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
11867         (ENCODE_SECTION_INFO): Whitespace.
11868         (FINALIZE_PIC): Remove do { ... } while (0).
11869         (PROMOTE_MODE): Wrap in do { ... } while (0).
11870         (CONST_COSTS): Whitespace.
11871         (RTX_COSTS): Add paramethesis, whitespace and wrap.
11872         (REGISTER_MOVE_COST): Add parenthesis.
11873         (MEMORY_MOVE_COST): Likewise.
11874         (EXTRA_CC_MODES): Whitespace.
11875         (SELECT_CC_MODE): Add parenthesis and whitespace.
11876         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
11877         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
11878         (ASM_OUTPUT_LABEL): Add paramethesis.
11879         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
11880         (ASM_OUTPUT_REG_POP): Likewise.
11881         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
11882         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11884         * config/i386/i386.c: Update copyright.
11885         (CHECK_STACK_LIMIT): Add parenthesis.
11886         (AT_BP): Uppercase macro parameter.
11887         (x86_64_int_parameter_registers): Constify.
11888         (x86_64_int_return_registers): Likewise.
11889         (ix86_compare_op0): Use rtx.
11890         (construct_container): Constify INTREG parameter.
11891         (function_arg): Use rtx.
11893         * diagnostic.h: Update copyright date.
11894         (output_buffer_state): Add parenthesis.
11895         (output_buffer_format_args): Likewise.
11897         * combine.c (combine_instructions): Replace XEXP (links, 0)
11898         with link.
11900 2002-01-06  H.J. Lu <hjl@gnu.org>
11902         * cfgcleanup.c (thread_jump): Fix 2 typos.
11904 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
11906         * config.gcc: Add support for --enable-altivec.
11908 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11910         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
11912 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
11914         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
11915         __objc_class_name_*.
11917 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11919         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
11921 2002-01-06  Richard Henderson  <rth@redhat.com>
11923         * reorg.c (emit_delay_sequence): Remove death notes, not merely
11924         nop them out.  Increment label reference count for REG_LABEL.
11925         (fill_slots_from_thread): Frob label reference count around
11926         delete_related_insns.
11928 2002-01-05  Richard Henderson  <rth@redhat.com>
11930         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
11931         jump threading.
11933 2002-01-05  Richard Henderson  <rth@redhat.com>
11935         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
11936         * integrate.c (output_inline_function): Likewise.
11937         * toplev.c (rest_of_compilation): Do it here instead.  Move call
11938         to remove_unnecessary_notes after emitting abstract instance.
11939         Force an emitted nested function to have its parent emited as well.
11940         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
11941         for null.
11942         (rtl_for_decl_location): Do not look at reload data structures
11943         before reload has run.
11945 2002-01-05  Kazu Hirata  <kazu@hxi.com>
11947         * cse.c: Fix formatting.
11948         * dwarf2asm.c: Likewise.
11949         * dwarf2out.c: Likewise.
11950         * explow.c: Likewise.
11951         * expmed.c: Likewise.
11952         * function.c: Likewise.
11953         * gcov.c: Likewise.
11954         * gencheck.c: Likewise.
11955         * genrecog.c: Likewise.
11956         * ggc-common.c: Likewise.
11957         * ggc-page.c: Likewise.
11958         * global.c: Likewise.
11960 2002-01-05  Kazu Hirata  <kazu@hxi.com>
11962         * combine.c: Fix formatting.
11964 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
11966         PR middle-end/1557
11967         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
11969 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
11971         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
11972         as 1 for __powerpc64__ as well.
11974         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
11976         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
11977         return it.
11979 2002-01-05  Daniel Berlin  <dan@dberlin.org>
11981         * lcm.c: Revert change, due to performance regression it causes on
11982         SPEC because it's slightly more conservative (sigh, I hate
11983         edge-based LCM).
11985 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
11987         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
11989 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
11991         * doc/cppinternals.texi: Update.
11993 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
11995         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
11996         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
11997         negatives.
11998         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
11999         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
12000         kludge for pre-october-14th mmix versions to handle new-found bug
12001         with PUSHJ/PUSHGO and the register stack.
12002         * config/mmix/mmix.h (struct machine_function): Rename member
12003         has_call_value_without_parameters to has_call_without_parameters.
12004         All referers changed.
12005         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
12006         TARGET_MASK_BRANCH_PREDICT): New macros.
12007         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
12008         -mno-reg-stack-fill-bug-workaround.
12009         * config/mmix/mmix.md ("call"): Set struct machine member
12010         has_call_without_parameters.
12012 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
12014         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
12016 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
12018         * cfgcleanup.c: Include tm_p.h
12019         (mark_effect): Fix handling of hard register; fix handling of SET
12021 2002-01-04  Kazu Hirata  <kazu@hxi.com>
12023         * config/h8300/h8300.md (anonymous patterns): Check that
12024         operands are registers before using REGNO on them.
12026 2002-01-03  Roland McGrath  <roland@frob.com>
12028         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
12030 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
12032         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
12033         * c-common.h (genrtl_expr_stmt_value): Likewise.
12034         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
12035         (expand_expr_stmt_value): Add maybe_last argument.
12036         Don't warn about statement with no effect if it is the last statement
12037         in expression statement.
12038         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
12039         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
12040         expand_expr_stmt_value.
12041         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
12042         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
12043         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
12044         as maybe_last to expand_expr_stmt_value.
12046 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
12048         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
12049         be passed in, do not build it.
12050         (c_begin_if_stmt): New function.
12051         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
12052         * c-common.h (c_expand_start_cond): Update prototype.
12053         (c_begin_if_stmt): Prototype new function.
12054         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
12055         * c-parse.in (if_prefix): Use c_begin_if_stmt,
12056         c_begin_while_stmt and c_finish_while_stmt_cond.
12058 2002-01-04  William Cohen  <wcohen@redhat.com>
12060         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
12061         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
12062         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
12063         * config/pa/som.h (ASM_FILE_START): Likewise.
12065 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
12067         * lcm.c: Include df.h.
12068         Add available_transfer_function prototype.
12069         (compute_available): Rework to use iterative dataflow framework.
12070         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
12071         with bb_info in df.h
12072         (available_transfer_function): New function.
12074         * Makefile.in (lcm.o): add df.h to dependencies.
12076 2002-01-04  Richard Henderson  <rth@redhat.com>
12078         * config/alpha/alpha.c (some_operand): Accept HIGH.
12079         (input_operand): Likewise; accept simple references to globals.
12080         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
12081         (alpha_const_double_ok_for_letter_p): Likewise.
12082         (alpha_extra_constraint): Likewise.
12083         (alpha_preferred_reload_class): Likewise.  Do not force
12084         symbolic constants to memory.
12085         (alpha_legitimate_address_p): Accept simple references
12086         to small_symbolic_operand.
12087         (alpha_legitimize_address): New arg scratch.  Be prepared to be
12088         called when no_new_pseudos.  Emit simple symbolic references.
12089         Split integers into low, high, and rest.
12090         (alpha_expand_mov): Use alpha_legitimize_address.
12091         (some_small_symbolic_mem_operand): New.
12092         (split_small_symbolic_mem_operand): New.
12093         * config/alpha/alpha-protos.h: Update.
12094         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
12095         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
12096         (EXTRA_CONSTRAINT): Likewise.
12097         (PREFERRED_RELOAD_CLASS): Likewise.
12098         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
12099         (PREDICATE_CODES): Update.
12100         * config/alpha/alpha.md: New post-reload splitters to convert
12101         simplfied symbolic operands to the form that references $29.
12102         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
12103         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
12105 2002-01-03  Richard Henderson  <rth@redhat.com>
12107         * local-alloc.c (function_invariant_p): Update commentary.
12109 2002-01-04  H.J. Lu <hjl@gnu.org>
12111         * toplev.c (rest_of_compilation): Fix a typo when calling
12112         cleanup_cfg.
12114 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12116         * c-common.c: Fix formatting.
12117         * diagnostic.c: Likewise.
12118         * doloop.c: Likewise.
12119         * dwarf2out.c: Likewise.
12121 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12123         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
12124         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
12126 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
12128         * cpperror.c: Update comments and copyright.
12129         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
12130         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
12132 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12134         * collect2.c (main): Use strcmp when testing for "-shared".
12136 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
12138         * cppmacro.c: Don't include intl.h.  Update comments.
12139         (new_number_token): Allocate enough buffer for 64-bit unsigned
12140         integers; update prototype.
12141         * cppmain.c: Update comments.
12143 2002-01-03  William Cohen  <wcohen@redhat.com>
12145         * function.h (struct function): Add profile.
12146         (current_function_profile): New.
12147         doc/extend.texi: Update documentation.
12148         * final.c (final_start_function): Use current_function_profile
12149         instead of profile_flag.
12150         (profile_after_prologue): Likewise.
12151         * function.c (expand_function_start): Likewise.
12152         (expand_function_start): Likewise.
12153         * config/alpha/alpha.c (direct_call_operand):
12154         (alpha_does_function_need_gp): Likewise.
12155         (alpha_expand_prologue): Likewise.
12156         * config/arm/arm.c (arm_expand_prologue): Likewise.
12157         thumb_expand_prologue: Likewise.
12158         * config/d30v/d30v.c (d30v_stack_info): Likewise.
12159         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
12160         (fr30_expand_prologue): Likewise.
12161         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
12162         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
12163         * config/i386/i386.h (FINALIZE_PIC): Likewise.
12164         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
12165         * config/i960/i960.c (i960_output_function_prologue): Likewise.
12166         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
12167         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
12168         (m32r_expand_prologue): Likewise.
12169         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
12170         (m88k_expand_prologue): Likewise.
12171         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
12172         * config/mips/mips.c (compute_frame_size): Likewise.
12173         (mips_expand_prologue): Likewise.
12174         (mips_can_use_return_insn): Likewise.
12175         * config/pa/elf.h (ASM_FILE_START): Likewise.
12176         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
12177         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
12178         * config/pa/som.h (ASM_FILE_START): Likewise.
12179         * config/romp/romp.c (romp_using_r14): Likewise.
12180         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
12181         (rs6000_stack_info): Likewise.
12182         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
12183         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
12184         * config/v850/v850.c (compute_register_save_size): Likewise.
12186 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
12188         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
12189         gen_lowpart_common fails, use gen_lowpart_SUBREG.
12191 2002-01-03  Turly O'Connor  <turly@apple.com>
12193         * darwin.c (machopic_output_possible_stub_label): Don't generate
12194         stub routines for pseudo-stubs which we've just defined.
12196 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12198         * builtins.c: Fix formatting.
12199         * c-typeck.c: Likewise.
12200         * combine.c: Likewise.
12201         * expr.c: Likewise.
12202         * loop.c: Likewise.
12204 2002-01-03  Andreas Schwab  <schwab@suse.de>
12206         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
12207         and return true if _cpp_push_next_buffer pushed a new include
12208         file.
12209         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
12210         _cpp_pop_file_buffer did not push a new file.
12211         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
12213 2002-01-02  Eric Christopher  <echristo@redhat.com>
12215         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
12216         FIND_REG_INC_NOTE call. Update copyright.
12217         * loop.c (canonicalize_condition): Ditto.
12218         * reorg.c (delete_scheduled_jump): Ditto.
12220 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12222         * gcse.c: Fix formatting.
12224 2002-01-03  Graham Stott  <grahams@redhat.com>
12226         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
12227         forward defs for struct tags rtx_def, union_tree, rtvec_def
12228         also output corresponding typedefs for rtx, tree, and rtvec.
12230         * system.h: Move forward defs for struct tags rtx_def, union_tree,
12231         rtvec_def along with corresponding typedefs for rtx, tree, and
12232         rtvec to config.h, hconfig.h, tconfig.h.
12234 2002-01-03  Graham Stott  <grahams@redhat.com>
12236         * tree.h: Update copyright date.
12237         (IS_EXPR_CODE_CLASS): Add parenthesis.
12238         (TREE_SET_CODE): Add whitespace.
12239         (TREE_CHECK): Add parenthesis.
12240         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
12241         (CST_OR_CONSTRUCTOR_CHECK):
12242         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
12243         (TREE_SYMBOL_REFERENCED): Whitespace.
12244         (INT_CST_LT): Likewise.
12245         (INT_CST_LT_UNSIGNED): Likewise.
12246         (tree_real_cst): Unwrap comment.
12247         (tree_string): Likewise.
12248         (tree_complex): Likewise.
12249         (IDENTIFIER_POINTER): correct cast.
12250         (SAVE_EXPR_CONTEXT): Whitespace.
12251         (EXPR_WFL_FILENAME_NODE): Likewise.
12252         (EXPR_WFL_FILENAME): Remove parenthesis.
12253         (DECL_ORIGIN): Add parenthesis.
12254         (DECL_FROM_INLINE): Use NULL_TREE.
12255         (build_int_2): Whitespace.
12256         (build_type_variant): Add parenthesis.
12258         * gcc/jcf-parse.c: Update copyright date.
12259         (yyparse): Constify resource_filename.
12261 2002-01-03  Graham Stott  <grahams@redhat.com>
12263         * rtl.h: Update copyright date.
12264         (RTL_CHECK1): Wrap long line.
12265         (RTL_CHECK2): Likewise.
12266         (RTL_CHECKC1): Wrap long line and whitespace.
12267         (RTL_CHECKC2): Likewise.
12268         (XWINT): Whitespace.
12269         (XINT): Likewise.
12270         (XSTR): Likewise.
12271         (XEXP): Likewise.
12272         (XVEC): Likewise.
12273         (XMODE): Likewise.
12274         (XBITMAP): Likewise.
12275         (XTREE): Likewise.
12276         (XBBDEF): Likewise.
12277         (XTMPL): Likewise.
12278         (X0WINT): Likewise.
12279         (X0INT):Likewise.
12280         (X0UINT): Likewise.
12281         (X0STR): Likewise.
12282         (X0EXP): Likewise.
12283         (X0VEC): Likewise.
12284         (X0MODE): Likewise.
12285         (X0BITMAP): Likewise.
12286         (X0TREE): Likewise.
12287         (X0BBDEF): Likewise.
12288         (X0ADVFLAGS): Likewise.
12289         (X0CSELIB): Likewise.
12290         (X0MEMATTR): Likewise.
12291         (XCWINT): Likewise.
12292         (XCINT): Likewise.
12293         (XCUINT): Likewise.
12294         (XCSTR): Likewise.
12295         (XCEXP): Likewise.
12296         (XCVEC): Likewise.
12297         (XCMODE): Likewise.
12298         (XCBITMAP): Likewise.
12299         (XCTREE): Likewise.
12300         (XCBBDEF): Likewise.
12301         (XCADVFLAGS): Likewise.
12302         (XCCSELIB): Likewise.
12303         (XC2EXP): Likewise.
12304         (INSN_UID): Likewise.
12305         (PREV_INSN): Likewise.
12306         (PATTERN): Likewise.
12307         (INSN_CODE): Likewise.
12308         (PUT_REG_NOTE_KIND): Likewise.
12309         (CODE_LABEL_NUMBER): Likewise.
12310         (NOTE_SOURCE_FILE): Likewise.
12311         (NOTE_BLOCK): Likewise.
12312         (NOTE_EH_HANDLER): Likewise.
12313         (NOTE_RANGE_INFO): Likewise.
12314         (NOTE_LIVE_INFO): Likewise.
12315         (NOTE_BASIC_BLOCK): Likewise.
12316         (NOTE_EXPECTED_VALUE): Likewise.
12317         (NOTE_LINE_NUMBER): Likewise.
12318         (LABEL_NAME): Likewise.
12319         (LABEL_NUSES): Likewise.
12320         (LABEL_ALTERNATE_NAME): Likewise.
12321         (ADDRESSOF_DECL): Likewise.
12322         (JUMP_LABEL): Likewise.
12323         (LABEL_NEXTREF): Likewise.
12324         (REGNO): Likewise.
12325         (ORIGINAL_REGNO: Likewise.
12326         (HARD_REGISTER_NUM_P): Add parenthesis.
12327         (SUBREG_REG): Whitespace.
12328         (SUBREG_BYTE): Likewise.
12329         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
12330         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
12331         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
12332         (ASM_OPERANDS_INPUT_VEC): Likewise.
12333         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
12334         (ASM_OPERANDS_INPUT): Likewise.
12335         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
12336         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
12337         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
12338         (ASM_OPERANDS_INPUT_MODE): Likewise.
12339         (ASM_OPERANDS_SOURCE_FILE): Likewise.
12340         (ASM_OPERANDS_SOURCE_LINE): Likewise.
12341         (MEM_SET_IN_STRUCT_P): Minor reformat.
12342         (TRAP_CONDITION): Whitespace.
12343         (TRAP_CODE): Likewise.
12344         (COND_EXEC_TEST): Likewise.
12345         (COND_EXEC_CODE): Likewise.
12346         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
12347         (PHI_NODE_P): Add parenthesis.
12348         (plus_constant): Whitespace and add parenthesis.
12350 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12352         * config/avr/avr.c: Fix comment typos.
12353         * config/c4x/c4x.md: Likewise.
12354         * config/dsp16xx/dsp16xx.h: Likewise.
12355         * config/dsp16xx/dsp16xx.md: Likewise.
12356         * config/i386/i386.md: Likewise.
12357         * config/ia64/ia64.c: Likewise.
12358         * config/m32r/m32r.h: Likewise.
12359         * config/m68hc11/m68hc11.md: Likewise.
12360         * config/mmix/mmix.c: Likewise.
12361         * config/mn10200/mn10200.c: Likewise.
12362         * config/romp/romp.c: Likewise.
12363         * config/sh/sh.c: Likewise.
12364         * config/stormy16/stormy16.c: Likewise.
12365         * config/stormy16/stormy16.h: Likewise.
12366         * config/stormy16/stormy16.md: Likewise.
12368 2002-01-03  Graham Stott  <grahams@redhat.com>
12370         * loop.h: Update copyright date.
12371         (LOOP_MOVABLES): Fix typo.
12372         (LOOP_REGS): Likewise.
12373         (LOOP_IVS): Likewise.
12375 2002-01-03  Graham Stott  <grahams@redhat.com>
12377         * cppinit.c: Update copyright date.
12378         Don't include output.h
12379         * Makefile.in: Update copyright date.
12380         Update dependency.
12382 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12384         PR c/5226
12385         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
12386         (-pthread) Add to RS/6000 options.
12388 2002-01-02  Kazu Hirata  <kazu@hxi.com>
12390         * except.c: Fix comment typos.
12391         * loop.c: Likewise.
12392         * varasm.c: Likewise.
12393         * doc/tm.texi: Fix a typo.
12395 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
12397         * c-typeck.c (output_init_element): Allow initializing static storage
12398         duration objects with compound literals.
12400 2002-01-02  Richard Henderson  <rth@redhat.com>
12402         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
12403         after abusing it.
12405 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12407         * gcc.c (default_compilers): Const-ify.
12408         * mips-tdump.c (stab_names): Likewise.
12409         * mips-tfile.c (map_coff_types, map_coff_storage,
12410         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
12411         pseudo_ops_t, pseudo_ops): Likewise.
12412         * protoize.c (default_include): Likewise
12414         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
12415         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
12416         Add array size in declaration.
12417         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
12418         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
12419         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
12420         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
12421         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
12422         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
12423         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
12424         emtens, make_nan): Const-ify.
12425         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
12426         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
12428 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
12430         * config.gcc (ia64-*-*): Set extra_headers.
12431         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
12432         * config/alpha/t-osf: Remove.
12433         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
12435 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
12437         * config/rs6000/t-aix43: Revert previous change.
12439 2002-01-02  Jason Merrill  <jason@redhat.com>
12441         * c-decl.c (c_expand_body): Call outlining_inline_function when
12442         emitting an inline function out of line.
12444 2002-01-02  Richard Henderson  <rth@redhat.com>
12446         * dwarf2out.c (limbo_die_node): Add created_for member.
12447         (new_die): New argument created_for.  Update all callers.
12448         (mark_limbo_die_list): New.
12449         (dwarf2out_init): Register limbo_die_list as a root.
12450         (dwarf2out_finish): Force insert limbo dies into their function
12451         context.
12453 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
12455         PR c++/5089
12456         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
12458 2002-01-02  Kazu Hirata  <kazu@hxi.com>
12460         * config/h8300/fixunssfsi.c: Update copyright.
12461         Fix comment typos.
12462         Fix formatting.
12463         * config/h8300/h8300.c: Update copyright.
12464         Eliminate warnings.
12466 2002-01-02  Kazu Hirata  <kazu@hxi.com>
12468         * config/romp/romp.c: Fix comment formatting.
12469         * config/romp/romp.h: Likewise.
12470         * config/romp/romp.md: Likewise.
12471         * config/s390/s390.c: Likewise.
12472         * config/stormy16/stormy16.c: Likewise.
12473         * config/stormy16/stormy16.h: Likewise.
12475 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
12477         * c-common.h (genrtl_expr_stmt_value): Declare.
12478         * c-semantics.c (genrtl_goto_stmt): Redirect to...
12479         (genrtl_goto_stmt_value): ... this new function.  Pass new
12480         argument down to expand_expr_stmt_value, taking
12481         TREE_ADDRESSABLE into account.
12482         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
12483         STMT_EXPR as addressable, i.e., one whose result we want.
12484         * expr.c (expand_expr): Don't save expression statement value
12485         of labeled_blocks or loop_exprs.
12486         * stmt.c (expand_expr_stmt): Redirect to...
12487         (expand_expr_stmt_value): ... this new function.  Use new
12488         argument to tell whether to save expression value.
12489         (expand_end_stmt_expr): Reset last_expr_type and
12490         last_expr_value if we don't have either.
12491         * tree-inline.c (declare_return_variable): Mark its use
12492         statement as addressable.
12493         * tree.h: Document new use of TREE_ADDRESSABLE.
12494         (expand_expr_stmt_value): Declare.
12496 2002-01-01  Tom Rix  <trix@redhat.com>
12498         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
12499         rs6000_emit_allocate_stack.
12501 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
12503         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
12504         ${srcdir}/ginclude/ to every entry in extra_headers.
12505         * configure: Regenerate.
12506         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
12507         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
12508         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
12509         * ginclude/proto.h: Rename to config/convex/proto.h.
12511 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12513         * attribs.c (handle_vector_size_attribute): Use host_integerp
12514         and tree_int_cst; remove warnings.
12515         * caller-save.c (insert_restore): Add cast to get rid of warning.
12516         (insert_save): Likewise.
12517         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
12518         * regmove.c (find_matches): Add temporary var to kill a warning.
12520 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
12522         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
12523         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
12524         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
12525         (vms-dwarf2eh.o): Add Makefile rule.
12526         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
12527         * config/alpha/vms-dwarf2eh.asm: New file.
12529         * gcc.c (delete_if_ordinary): Delete all versions.
12531 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
12533         * config/mmix/mmix.md: Update FIXME to not mention
12534         define_constants.
12535         (MMIX_rJ_REGNUM): New define_constants constant.
12536         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
12537         "*movdicc_real"): Adjust contraints formatting.
12538         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
12539         for branch prediction.
12540         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
12541         output template.
12542         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
12543         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
12544         number.  Delete related FIXMEs.
12545         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
12546         from number to MMIX_rJ_REGNUM.
12547         (TARGET_MASK_BRANCH_PREDICT): New.
12548         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
12549         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
12550         value.  Add -mbranch-predict and -mno-branch-predict.
12551         (TARGET_VERSION): Drop date.
12552         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
12553         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
12554         for finding out global symbols.
12555         (mmix_asm_output_labelref): Revert condition for global symbol.
12556         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
12557         (mmix_print_operand_punct_valid_p): A '+' is valid.
12559 See ChangeLog.6 for earlier changes.