OSDN Git Service

0c2c5e964ad929835e4edbab509ef58b37e61f0c
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
2
3         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
4         jumps post reload.
5         * toplev.c (rest_of_compilation): Revert Richard's patch.
6
7 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8
9         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
10
11 2002-05-02  Catherine Moore  <clm@redhat.com>
12
13         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
14
15 2002-05-02  Kazu Hirata  <kazu@hxi.com>
16
17         * combine.c: Fix comment typos.
18         * expr.c: Likewise.
19         * genautomata.c: Likewise.
20         * stmt.c: Likewise.
21         * tree.h: Likewise.
22
23 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
24
25         * doc/install.texi: State GNAT version requirements.
26
27 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
28
29         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
30         of the frame pointer or arg pointer register which strict register
31         checking is not enabled.
32
33 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
34
35         * gcc.dg/altivec-8.c: New.
36
37         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
38         PRE_INC and PRE_DEC for altivec modes.
39
40 2002-05-01  Bruce Korb  <bkorb@gnu.org>
41
42         * fixinc/check.tpl(set-writable): make sure the function exists first
43         * fixinc/inclhack.def(alpha_assert): fix test_text
44         * fixinc/tests/base/assert.h: add in missing result
45
46 2002-05-01  Jeff Law  <law@redhat.com>
47
48         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
49         'T' constraint.
50
51 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
52
53         * dbxout.c (dbxout_type): Emit size information for range types,
54         as well, but only when using GDB extensions.
55
56 2002-05-01  Richard Henderson  <rth@redhat.com>
57
58         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
59         target-independent gnu binutils date test.
60
61 2002-05-01  Richard Henderson  <rth@redhat.com>
62
63         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
64         info before expunging the block.
65
66 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
67
68         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
69         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
70         -M -or -MM is in effect.
71
72 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
73
74         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
75         A29k configurations.
76         * doc/install.texi: Update to match.
77
78 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
79
80         PR bootstrap/6514
81         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
82         for duplicates. Always loop over whole list.
83
84 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
85
86         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
87
88 2002-05-01      Joel Sherrill <joel@OARcorp.com>
89
90         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
91         support routines.
92
93 2002-05-01      Joel Sherrill <joel@OARcorp.com>
94
95         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
96
97 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
98
99         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
100         (nabs_nopower): Same.
101         (floatdisf2): New pattern.
102         (absdi2): Convert to define_insn_and_split.
103         (nabsdi2): Same.
104         (trunctfsf2): Same.
105         (floatditf2): Same.
106         (floatsitf2): Same.
107         (fix_trunctfdi2): Same.
108         (fix_trunctfsi2): Same.
109
110 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
111
112         * doc/install.texi: Update Texinfo version requirement
113         documentation.
114
115 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
116
117         PR target/6512, PR target/5628
118         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
119         when memory is not aligned.
120         (movdf_insn_v9only_vis): Likewise.
121         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
122         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
123         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
124
125 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
126
127         * gcc.dg/altivec-7.c: New.
128
129         * config/rs6000/altivec.h: Cleanup.
130
131 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
132
133         * doc/invoke.texi (Option Summary): Add -mvrsave=.
134         (RS/6000 and PowerPC Options): Document -mvrsave=.
135
136         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
137         (rs6000_altivec_vrsave_string): Same.
138         (rs6000_override_options): Call rs6000_parse_vrsave_option.
139         (rs6000_parse_vrsave_option): New.
140         (rs6000_stack_info): Only generate vrsave instructions when
141         TARGET_ALTIVEC_VRSAVE.
142
143         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
144         (rs6000_altivec_vrsave_string): Define extern.
145         (rs6000_altivec_vrsave): Same.
146         (TARGET_ALTIVEC_VRSAVE): New.
147
148 2002-04-30  Richard Henderson  <rth@redhat.com>
149
150         PR opt/6516
151         * toplev.c (rest_of_compilation): Don't run cross-jump before
152         bb-reorder.
153
154 2002-04-30  Tom Rix  <trix@redhat.com>
155
156         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
157         check which_alternative.
158
159 2002-04-30  Kazu Hirata  <kazu@hxi.com>
160
161         * cpplex.c: Fix comment formatting.
162         * function.c: Likewise.
163         * integrate.c: Likewise.
164         * regrename.c: Likewise.
165         * sibcall.c: Likewise.
166         * simplify-rtx.c: Likewise.
167         * tree-inline.c: Likewise.
168
169 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
170
171         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
172         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
173         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
174         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
175         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
176         * pa/x-ada: New file.  Define ADA_CFLAGS.
177
178 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
179
180         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
181         from MMIX_LAST_REGISTER_FILE_REGNUM.
182         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
183         (struct machine_function): New member highest_saved_stack_register
184         previously static variable in mmix.c.
185         (MACHINE_DEPENDENT_REORG): Define.
186         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
187         (MMIX_OUTPUT_REGNO): New.
188         (mmix_target_asm_function_prologue): Move calculation of last used
189         saved-stack-register into...
190         (mmix_machine_dependent_reorg): New function.  Update to also handle
191         !TARGET_ABI_GNU.
192         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
193         register names, simplify somewhat by new variable regno.
194         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
195         register.
196         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
197         emitting register names.
198         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
199         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
200         Remove fixed FIXME.
201         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
202         Declare.
203
204         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
205
206 2002-04-30  Richard Henderson  <rth@redhat.com>
207
208         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
209         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
210         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
211         emit_tfmode_cvt): New.
212         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
213         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
214         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
215         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
216         * config/sparc/sparc-protos.h: Update.
217
218 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
219
220         * install.texi (Final install): Add to the list of info to include
221         in a report of a successful bootstrap, and add link to 3.1 list.
222
223 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
224
225         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
226         (mode): Add vector modes
227         (i387): Kill attribute.
228         (unit): New attribute.
229         (length_immediate): Grok new types.
230         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
231         (modrm): Use "unit".
232         (memory): Handle MMX/SSE properly.
233         (scheduling descriptions): Kill uses of fop1.
234         (sse, mmx, fp patterns): Set type and mode properly.
235
236 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@cygnus.com)
237
238         * pa.c (override_options): Default to PA8000 scheduling.
239         * doc/invoke.texi (HP-PA options): Mention newly added 7300
240         scheduling parameter.
241
242         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
243         handling of double precision multiplies.
244
245         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
246         fpdiv and fpsqrt instructions.
247         (7200 & 7300 scheduling): Fix typo in handling of
248         store-load and store-store penalties.
249
250 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
251
252         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
253         mips.  Add two missing commas.
254
255 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
256
257         * doc/contrib.texi (Contributors): Update Paolo Carlini's
258         and Benjamin Kosnik's entries.
259
260 2002-04-29  David S. Miller  <davem@redhat.com>
261
262         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
263         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
264         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
265         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
266
267 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
268
269         * combine.c (find_split_point): Use gen_int_mode.
270
271 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
272
273         Merging code from dfa-branch:
274
275         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
276
277         * genautomata.c (output_reserv_sets): Fix typo.
278
279         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
280
281         * genautomata.c (output_reserv_sets): Remove
282         next_cycle_output_flag.
283
284         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
285
286         * sched-rgn.c (init_ready_list): Make the DFA code handle
287         USE/CLOBBER insns in the same way as the traditional
288         scheduler.
289         (new_ready): Similarly..
290
291         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
292
293         * haifa-sched.c (schedule_block): Change the DFA state only after
294         issuing insn.
295
296         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
297
298         * pa.c (hppa_use_dfa_pipeline_interface): New function.
299         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
300         (override_options): Add PA7300 scheduling support.
301         (pa_adjust_cost): Update various comments.  Properly
302         handle anti and output dependencies when using the
303         DFA scheduler.
304         (pa_issue_rate): Add PA7300 scheduling support.
305         (pa_can_combine_p): Call extract_insn before calling
306         constrain_operands (taken from mainline tree).
307         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
308         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
309         descriptions using DFA descriptions.  Add PA7300
310         scheduling support.
311
312         2002-03-30  David S. Miller  <davem@redhat.com>
313
314         Add UltraSPARC-III DFA scheduling support.
315         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
316         Update FP conditional move on register insn patterns to use it, as
317         appropriate.
318         (define_attr cpu): Add ultrasparc3.
319         (define_attr us3load_type): New, update integer load patterns to
320         set it, as appropriate.
321         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
322         (rest): Add UltraSPARC3 scheduling description.
323         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
324         (PROCESSOR_ULTRASPARC3): New.
325         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
326         ({ASM,CPP}_CPU_SPEC): Likewise.
327         (REGISTER_MOVE_COST): Likewise.
328         (RTX_COSTS): Likewise.
329         * config/sparc/sparc.c (sparc_override_options,
330         sparc_initialize_trampoline, sparc64_initialize_trampoline,
331         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
332         sparc_issue_rate): Likewise.
333         * config/sparc/sol2.h: Likewise.
334         * config/sparc/sol2-sld-64.h: Likewise.
335         * config/sparc/linux64.h: Likewise.
336
337         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
338
339         * doc/md.texi: Add comments about usage the latency time for the
340         different dependencies and about case when two or more conditions
341         in different define_insn_reservations returns TRUE for an insn.
342
343         * doc/md.texi: Add reference for automaton based pipeline
344         description.
345
346         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
347
348         * doc/passes.texi: Add missed information about genattrtab.
349
350         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
351
352         * genautomata.c (output_automata_list_transition_code): Check
353         automata_list on NULL.
354
355         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
356
357         * genautomata.c (output_insn_code_cases,
358         output_automata_list_min_issue_delay_code,
359         output_automata_list_transition_code,
360         output_automata_list_state_alts_code): Comment the functions.
361
362         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
363
364         * genautomata.c (automata_list_el_t): New typedef.
365         (get_free_automata_list_el,free_automata_list_el,
366         free_automata_list, automata_list_hash, automata_list_eq_p,
367         initiate_automata_lists, automata_list_start, automata_list_add,
368         automata_list_finish, finish_automata_lists,
369         output_insn_code_cases, output_automata_list_min_issue_delay_code,
370         output_automata_list_transition_code,
371         output_automata_list_state_alts_code, add_automaton_state,
372         form_important_insn_automata_lists): New functions and prototypes.
373         (insn_reserv_decl): Add members important_automata_list and
374         processed_p.
375         (ainsn): Add members important_p.
376         (automata_list_el): New structure.
377         (first_free_automata_list_el, current_automata_list,
378         automata_list_table): New global variables.
379         (create_ainsns): Initiate member important_p.
380         (output_internal_min_issue_delay_func): Generate the switch and
381         call output_insn_code_cases.
382         (output_internal_trans_func, output_internal_state_alts_func):
383         Ditto.
384         (generate): Call initiate_automata_lists.
385         (automaton_states): New global variable.
386         (expand_automata): Call form_important_insn_automata_lists.
387         (write_automata): Call finish_automata_lists.
388
389         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
390
391         * genautomata.c (add_excls, add_presence_absence): Check that
392         cpu units in the sets belong the same automaton.
393
394         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
395         about that cpu units in the sets belong the same automaton.
396
397         * doc/md.texi: Ditto.
398
399         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
400                     Nitin Gupta  <niting@noida.hcltech.com>
401
402         * config/sh/sh.c (sh_use_dfa_interface): New function.
403
404         (sh_issue_rate): New Function.
405         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
406         TARGET_SCHED_ISSUE_RATE: define.
407
408         * config/sh/sh.md: Add DFA based pipeline description for SH4.
409
410         (define_attr insn_class): New attribute used for DFA
411          scheduling.
412         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
413         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
414          cmpeqdi_t): Likewise.
415
416         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
417          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
418          ex_group.
419         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
420
421         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
422
423         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
424         break.
425
426         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
427
428         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
429         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
430         necessary.
431         (output_dfa_start_func): Initiate new variable insn_codes_length,
432         (write_automata): Output definition of the new variable.
433
434         2001-10-02  David S. Miller  <davem@redhat.com>
435
436         * haifa-sched.c (advance_one_cycle): New function.
437         (schedule_block): Use it.
438         (queue_to_ready): Use it, and also make sure to advance the DFA
439         state on all stall cycles, not just those where insn_queue links
440         are found.
441
442         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
443
444         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
445         non-zero if the highest-priority instruction could be scheduled.
446         (choose_ready): Remove last argument from max_issue call.
447
448         2001-09-28  David S. Miller  <davem@redhat.com>
449
450         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
451         ultrasparc and 3 for other multi-issue sparcs.
452
453         2001-09-27  David S. Miller  <davem@redhat.com>
454
455         * config/sparc/sparc.md (cycle_display): New pattern.
456         * config/sparc/sparc.c (sparc_cycle_display): New.
457         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
458
459         2001-09-25  David S. Miller  <davem@redhat.com>
460
461         Convert all of Sparc scheduling to DFA
462         * config/sparc/sparc.md: Kill all define_function_unit
463         directives and replace with DFA equivalent.
464         * config/sparc/sparc.c (ultrasparc_adjust_cost,
465         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
466         ultra_fpmode_conflict_exists, ultra_find_type,
467         ultra_build_types_avail, ultra_flush_pipeline,
468         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
469         ultrasparc_variable_issue, ultrasparc_sched_init,
470         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
471         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
472         ultra_cur_hist, ultra_cycles_elapsed): Kill.
473         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
474         ultrasparc_store_bypass_p): New.
475         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
476         Declare.
477
478         2001-09-24  David S. Miller  <davem@redhat.com>
479
480         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
481         ready->vec[foo] not ready[foo].
482
483         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
484
485         * doc/md.texi: Correct examples for define_insn_reservations
486         `mult' and `div'.
487
488         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
489
490         * genautomata.c (create_automata): Print message about creation of
491         each automaton.
492         (generate): Remove printing meease about creation of
493         automata.
494
495         2001-09-05  David S. Miller  <davem@redhat.com>
496
497         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
498         * config/sparc/linux64.h: Likewise.
499
500         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
501
502         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
503         schedule_block, sched_init, sched_finish): Add missed calls of
504         use_dfa_pipeline_interface.
505
506         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
507         Ditto.
508
509         * sched-vis.c (get_visual_tbl_length): Ditto.
510
511         2001-08-27  Richard Henderson  <rth@redhat.com>
512
513         * genattr.c (main): Emit state_t even when not doing scheduling.
514
515         2001-08-27  Richard Henderson  <rth@redhat.com>
516
517         * genautomata.c (expand_automata): Always create a description.
518
519         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
520
521         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
522         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
523         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
524         RTL constructions.
525
526         * genattr.c (main): New variable num_insn_reservations.  Increase
527         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
528         pipeline hazard recognizer interface.
529
530         * genattrtab.h: New file.
531
532         * genattrtab.c: Include genattrtab.h.
533         (attr_printf, check_attr_test, make_internal_attr,
534         make_numeric_value): Move protypes into genattrtab.h.  Define them
535         as external.
536         (num_dfa_decls): New global variable.
537         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
538         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
539         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
540         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
541
542         * genautomata.c: New file.
543
544         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
545
546         * sched-int.h: (curr_state): Add the external definition for
547         automaton pipeline interface.
548         (haifa_insn_data): Add comments for members blockage and units.
549
550         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
551         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
552         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
553         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
554         TARGET_SCHED_DFA_POST_CYCLE_INSN,
555         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
556         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
557         macros.
558         (TARGET_SCHED): Use the new macros.
559
560         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
561         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
562         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
563         dfa_bubble): New members in gcc_target.sched.
564
565         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
566         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
567         (insn_queue): Redefine it as pointer to array.
568         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
569         INSN_QUEUE_SIZE.
570         (max_insn_queue_index_macro_value): New variable.
571         (curr_state, dfa_state_size, ready_try): New varaibles for
572         automaton interface.
573         (ready_element, ready_remove, max_issue): New function prototypes
574         for automaton interface.
575         (choose_ready): New function prototype.
576         (insn_unit, blockage_range): Add comments.
577         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
578         FUNCTION_UNITS_SIZE == 0.
579         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
580         actual_hazard, potential_hazard): Add comments.
581         (insn_cost): Use cost -1 as undefined value.  Remove
582         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
583         pipeline interface.
584         (ready_element, ready_remove): New functions for automaton
585         interface.
586         (schedule_insn): Add new code for automaton pipeline interface.
587         (queue_to_ready): Add new code for automaton pipeline interface.
588         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
589         (debug_ready_list): Print newline when the queue is empty.
590         (max_issue): New function for automaton pipeline interface.
591         (choose_ready): New function.
592         (schedule_block): Add new code for automaton pipeline interface.
593         Print ready list before scheduling each insn.
594         (sched_init): Add new code for automaton pipeline interface.
595         Initiate insn cost by -1.
596         (sched_finish): Free the current automaton state and finalize
597         automaton pipeline interface.
598
599         * sched-rgn.c: Include target.h.
600         (init_ready_list, new_ready, debug_dependencies): Add new code for
601         automaton pipeline interface.
602
603         * sched-vis.c: Include target.h.
604         (get_visual_tbl_length): Add code for automaton interface.
605         (target_units, print_block_visualization):  Add comments.
606
607         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
608         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
609         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
610         (getruntime.o, genautomata.o): New entries.
611         (genattrtab.o): Add new dependency file genattrtab.h.
612         (genattrtab): Add new dependencies.  Link it with `libm.a'.
613         (getruntime.o, hashtab.o): New entries for canadian cross.
614
615         * doc/md.texi: Description of automaton based model.
616
617         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
618         Add comments.
619         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
620         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
621         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
622         TARGET_SCHED_DFA_POST_CYCLE_INSN,
623         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
624         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
625         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
626         hook descriptions.
627         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
628         MAX_DFA_ISSUE_RATE): New macro descriptions.
629
630         * doc/contrib.texi: Add dfa based scheduler contribution.
631
632         * doc/gcc.texi: Add more information about genattrtab.
633
634 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
635
636         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
637         adjust_address_nv call.
638
639 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
640
641         * doc/install.texi (Testing): Provide additional information, and
642         a stronger encouragement, for running the testsuites.
643
644 2002-04-29  DJ Delorie  <dj@redhat.com>
645
646         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
647         given in upper case.
648
649 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
650
651         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
652         Solaris 2 <widec.h> if missing.
653         * fixinc/fixincl.x: Regenerate.
654         * fixinc/tests/base/widec.h: New file.
655
656 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
657
658         * toplev.c (f_options): Add "profile" switch so that
659         -fno-profile can be used to disable -p.
660
661 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
662
663         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
664         UV2DImode.
665         * tree.c (build_common_tree_nodes_2): Likewise.
666         * tree.h (enum tree_index): Likewise.
667         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
668
669         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
670         entries.
671         (init_mmx_sse_builtins): Initialize SSE2 builtins.
672         (ix86_expand_builtin): Add support for SSE2 builtins.
673         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
674         (VALID_SSE_REG_MODE): Use it.
675         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
676         (enum ix86_builtins): Add SSE2 builtins.
677         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
678         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
679         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
680         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
681         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
682         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
683         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
684         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
685         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
686         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
687         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
688         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
689         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
690         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
691         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
692         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
693         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
694         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
695         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
696         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
697         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
698         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
699         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
700         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
701         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
702         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
703         lfence_insn): New patterns.
704         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
705         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
706
707 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
708
709         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
710
711 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
712
713         * doc/contrib.texi (Contributors): Add Paolo Carlini and
714         Janis Johnson.
715         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
716         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
717         and CPU instead of cpu.
718
719 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
720
721         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
722         variables.
723         (lang_independent_options): Add -fif-conversion, -fif-conversion2
724         (rest_of_compilation): Do if conversion only when asked for.
725         (parse_options_and_default_flags): Set new variables to 1 for -O1
726         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
727
728 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
729
730         * i386.c (dbx64_register_map): Fix typo.
731
732 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
733
734         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
735         real_one_half, real_bb_freq_max): New static variables.
736         (debug_profile_bbauxs): Kill.
737         (process_note_predictions): Kill unused variable.
738         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
739         volatile double.
740         (propagate_freq): Use REAL_ARITHMETICS.
741         (estimate_bb_frequencies): Likevise; init new static variables.
742         * Makefile.in (predict.o): Add dependency on real.h
743
744 2002-04-28  David S. Miller  <davem@redhat.com>
745
746         PR target/6500
747         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
748         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
749         several {reads,writes} instead.
750         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
751         Define.
752
753 2002-04-27  David S. Miller  <davem@redhat.com>
754
755         PR target/6494
756         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
757         of the stack bias.
758
759         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
760         including signal.h and sys/ucontext.h, not needed.
761
762 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
763
764         * varasm.c (output_constant_def): Correct test for not calling
765         ENCODE_SECTION_INFO for INTEGER_CST.
766
767 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
768
769         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
770         keep most cases as function eval_token.
771         (eval_token): New function.
772         (_cpp_parse_expr): Read token here for improved diagnostics.
773         Don't use op_as_text.  Detect bad ':' here.
774         (reduce): Don't detect bad ':' here.
775         (op_as_text): Remove.
776         * cpphash.h (_cpp_test_assertion): Change prototype.
777         * cpplib.c (_cpp_test_assertion): Change prototype.
778
779 2002-04-28  Richard Henderson  <rth@redhat.com>
780
781         PR c/5154
782         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
783         (ggc_mark_rtx_children): New.
784
785 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
786
787         PR target/6496
788         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
789         after call peepholes for UltraSPARC.
790         (call + jump 64-bit peepholes): Remove.
791
792 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
793
794         PR c/6497
795         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
796         result as temporary value.
797
798 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
799
800         PR c++/6396
801         * toplev.c (rest_of_compilation): Only run regrename and copy
802         propagation if optimizing.
803
804 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
805
806         PR optimization/6475
807         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
808         register of REGNO_DECL (i).
809         * Makefile.in (reload1.o): Add $(TREE_H).
810
811 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
812
813         * cppexp.c (lex): Update to use state.skip_eval.
814         (struct op): Remove prio and flags members.
815         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
816         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
817         (LEFT_ASSOC): New macro.
818         (optab): New table of operator priorities and flags.
819         (SHIFT): Update.
820         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
821         malloc-ed parser stack.
822         (reduce): New; reduce the operator stack.
823         (_cpp_expand_op_stack): Expand the operator stack as necessary.
824         * cpphash.h (struct op): Predeclare.
825         (struct cpp_reader): New members op_stack, op_limit.
826         (struct lexer_state): New member skip_eval.
827         (_cpp_parse_expr): Update.
828         (_cpp_expand_op_stack): New.
829         * cpplib.c (do_if): Update.
830         * cppinit.c (cpp_create_reader): Create op stack.
831         (cpp_destroy): And destroy it.
832         * cpplib.h (CPP_LAST_CPP_OP): Correct.
833         (TTYPE_TABLE): Correct.
834
835 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
836
837         PR c/6343
838         * c-decl.c (duplicate_decls): Call merge_weak.
839         * c-pragma.c (apply_pragma_weak): Warn about misuse.
840         * output.h (merge_weak): Prototype merge_weak.
841         * varasm.c (merge_weak): New function.
842         (declare_weak): Make sure we don't give an error on VAR_DECLs.
843         Mark RTL with SYMBOL_REF_WEAK.
844
845 2002-04-27  Kurt Garloff <garloff@suse.de>
846
847         * tree-inline.c (inlinable_function_p): Improve heuristics
848         by using a smoother function to cut down allowable inlinable size.
849         * param.def: Add parameters max-inline-insns-single,
850         max-inline-slope, min-inline-insns that determine the exact
851         shape of the above function.
852         * param.h: Likewise.
853
854 2002-04-26  Richard Henderson  <rth@redhat.com>
855
856         * c-parse.in (malloced_yyss, malloced_yyvs): New.
857         (yyoverflow): Re-add.  Set them.
858         (free_parser_stacks): New.
859         * c-common.h: Declare it.
860         * c-lex.c (c_common_parse_file): Call it.
861
862 2002-04-26  Richard Henderson  <rth@redhat.com>
863
864         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
865         for fallthru search.
866
867 2002-04-26  Eric Christopher  <echristo@redhat.com>
868
869         PR optimization/3700
870         * config/mips/mips.c (mips_issue_rate): Define.  New function.
871         (TARGET_SCHED_ISSUE_RATE): Use.
872
873 2002-04-25  David S. Miller  <davem@redhat.com>
874
875         PR target/6422
876         * reorg.c (optimize_skip): Do not allow exception causing
877         instructions to be considered for delay slots.
878         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
879         (relax_delay_slots): Do not try to consider exception causing
880         instructions as redundant.
881
882 2002-04-26  Richard Henderson  <rth@redhat.com>
883
884         PR c/5225
885         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
886
887 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
888
889         PR bootstrap/6445
890         * config/i386/i386.md (untyped_call): Return the value in a float
891         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
892         TARGET_80387.
893
894 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
895
896         * tree.c (tree_int_cst_lt): Compare constants whose types differ
897         in unsigned-ness correctly.
898
899 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
900
901         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
902         portable runtime model.
903
904 2002-04-26  Richard Henderson  <rth@redhat.com>
905
906         * c-parse.in (yyoverflow): Revert.
907
908 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
909             Richard Henderson  <rth@redhat.com>
910
911         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
912         result as temporary value.
913
914 2002-04-26  Richard Henderson  <rth@redhat.com>
915
916         PR c/3581
917         * c-common.c (fix_string_type): Split out of ...
918         (combine_strings): ... here.  Take a varray, not a tree list.
919         (c_expand_builtin_printf): Use fix_string_type.
920         * c-common.h: Update decls.
921         * c-parse.in (string): Remove.  Update all uses to use STRING
922         instead, and not call combine_strings.
923         (yylexstring): New.
924         (_yylex): Use it.
925         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
926         (build_asm_stmt): Likewise.
927         * objc/objc-act.c (my_build_string): Use fix_string_type.
928         (build_objc_string_object): Build varray for combine_strings.
929
930 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
931
932         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
933         x86-64.
934
935 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
936
937         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
938         (HAVE_NO_R_OPERAND): Remove.
939         (HAVE_VALUE): Remove.
940         (op_to_prio): Update.
941         (UNARY): Don't alter flags.
942         (_cpp_parse_expr): want_value used to indicate whether
943         a number or unary operator is expected next.  Distinguish
944         unary and binary +/-.
945         (op_as_text): Update for unary operators.
946
947 2002-04-25  Richard Henderson  <rth@redhat.com>
948
949         PR c/2161
950         * c-parse.in (yyoverflow): New.
951
952 2002-04-25  Richard Henderson  <rth@redhat.com>
953
954         PR c/2098
955         * c-common.c (shorten_compare): Simplfy conditions leading to
956         the generation of a warning.
957
958 2002-04-25  Richard Henderson  <rth@redhat.com>
959
960         PR c/2035
961         * expmed.c (extract_bit_field): Fall through to generic code rather
962         than aborting on subreg special case.
963
964 2002-04-25  David S. Miller  <davem@redhat.com>
965
966         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
967         for DECL being NULL.
968
969 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
970
971         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
972
973 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
974
975         * c-decl.c (grokdeclarator): Remove outdated ??? note
976         on invalid declaration of flexible array members.
977
978 2002-04-25  Richard Henderson  <rth@redhat.com>
979
980         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
981
982 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
983
984         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
985         needed by the compiler, even if they are used as global regs.
986
987 2002-04-25  Matt Hiller  <hiller@redhat.com>
988
989         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
990         functions.
991         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
992         of the corresponding functions.
993         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
994         New prototypes.
995
996 2002-04-25  Matt Hiller  <hiller@redhat.com>
997
998         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
999
1000         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
1001         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
1002         registers, adjust comment accordingly.
1003         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
1004         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
1005         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
1006         for coprocessor registers.
1007         (ADDITIONAL_REGISTER_NAMES): Include
1008         ALL_COP_ADDITIONAL_REGISTER_NAMES.
1009
1010         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
1011         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
1012         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
1013         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
1014         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
1015
1016         (mips_char_to_class): Adjust comment to include coprocessor
1017         constraint letters.
1018
1019         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
1020         New functions.
1021         (mips_reg_names, mips_regno_to_class): Include coprocessor
1022         information.
1023         (mips_sw_reg_names): Ditto, make non-static.
1024         (mips_move_1word): Handle moves to and from coprocessor registers.
1025         (mips_move_2words): Handle moves to and from coprocessor
1026         registers.
1027         (mips_class_max_nregs, mips_register_move_cost): Handle
1028         coprocessor register classes.
1029         (override_options): Initialize mips_char_to_class and
1030         mips_hard_regno_mode_ok properly for coprocessor registers.
1031
1032         * config/mips/mips.md (movdi_internal, movdi_internal2,
1033         movsi_internal1, movsi_internal2): Add constraint-sets for
1034         coprocessor registers.
1035         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
1036         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
1037         isn't mips.
1038         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
1039         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
1040         isn't mips.
1041         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
1042         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
1043         isn't mips.
1044         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
1045         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
1046         isn't mips.
1047
1048         * doc/tm.texi: Document feature.
1049
1050 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
1051
1052         * integrate.c (function_attribute_inlinable_p): Simplify.
1053         Check the table pointer is not NULL.
1054
1055 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
1056
1057         * doc/c-tree.texi: Fix typo in introduction.
1058
1059 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
1060
1061         * c-common.h (c_common_parse_file): Update.
1062         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
1063         * c-lex.c (YYDEBUG): Get from c-lex.h.
1064         (c_common_parse_file): Update.
1065         * c-lex.h (YYDEBUG, yydebug): New.
1066         * c-parse.in (YYDEBUG): Get from c-lex.h.
1067         (c_set_yydebug): Remove.
1068         * c-tree.h (c_set_yydebug): Remove.
1069         * langhooks-def.h (lhd_do_nothing_i): New.
1070         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
1071         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
1072         * langhooks.c  (lhd_do_nothing_i): New.
1073         (lhd_set_yydebug): Remove.
1074         * langhooks.h (struct lang_hooks): Update.
1075         * toplev.c (set_yydebug): New.
1076         (compile_file): Update call to parse_file hook.
1077         (decode_d_option): Update.
1078 objc:
1079         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
1080
1081 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
1082
1083         * loop.c (load_mems): Don't change the interface of called functions.
1084
1085         * calls.c (expand_call): Take current_function_pretend_args_size
1086         into account when setting argblock for sibcalls.
1087
1088 2002-04-24  Matt Hiller  <hiller@redhat.com>
1089
1090         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
1091         * c-lex.c: Ditto.
1092
1093         * cpplex.c (skip_line_comment): Process comment one multibyte
1094         character at a time rather than one char at a time, if
1095         appropriate.
1096         (parse_string): Process string one multibyte character at a time
1097         rather than one char at a time, if appropriate.
1098         * c-lex.c (lex_string): Lex and copy multibyte strings
1099         appropriately.
1100         * cpplib.h (cppchar_t): Change to unsigned.
1101
1102 2002-04-24  Richard Henderson  <rth@redhat.com>
1103
1104         PR c/3467
1105         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
1106         for c99.
1107
1108 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
1109
1110         * sh.c (sh_va_arg): If argument was passed by reference,
1111         dereference the pointer.
1112
1113         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
1114
1115         * sh.md (divsi3_i4_media): Use match_operand for input values
1116         rather than hard registers.
1117         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
1118         unnecessarily through hard registers.  Keep copies of pseudo
1119         registers outside of the libcall sequence.
1120
1121         * sh.md (casesi_shift_media): Add modes.
1122
1123         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
1124         values in memory.
1125
1126 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
1127
1128         * attribs.c (c_common_attribute_table): Move table and handlers
1129         to c-common.c.
1130         (format_attribute_table, lang_attribute_table,
1131         lang_attribute_common): Remove.
1132         (init_attributes): Replace NULL pointers with pointers to the
1133         empty table.
1134         (handle_packed_attribute, handle_nocommon_attribute,
1135         handle_common_attribute, handle_noreturn_attribute,
1136         handle_noinline_attribute, handle_always_inline_attribute,
1137         handle_used_attribute, handle_unused_attribute,
1138         handle_const_attribute, handle_transparent_union_attribute,
1139         handle_constructor_attribute, handle_destructor_attribute,
1140         handle_mode_attribute, handle_section_attribute,
1141         handle_aligned_attribute, handle_weak_attribute,
1142         handle_alias_attribute, handle_visibility_attribute,
1143         handle_no_instrument_function_attribute, handle_malloc_attribute,
1144         handle_no_limit_stack_attribute, handle_pure_attribute,
1145         handle_deprecated_attribute, handle_vector_size_attribute,
1146         vector_size_helper): Move to c-common.c.
1147         * c-common.c (c_common_attribute_table,
1148         handle_packed_attribute, handle_nocommon_attribute,
1149         handle_common_attribute, handle_noreturn_attribute,
1150         handle_noinline_attribute, handle_always_inline_attribute,
1151         handle_used_attribute, handle_unused_attribute,
1152         handle_const_attribute, handle_transparent_union_attribute,
1153         handle_constructor_attribute, handle_destructor_attribute,
1154         handle_mode_attribute, handle_section_attribute,
1155         handle_aligned_attribute, handle_weak_attribute,
1156         handle_alias_attribute, handle_visibility_attribute,
1157         handle_no_instrument_function_attribute, handle_malloc_attribute,
1158         handle_no_limit_stack_attribute, handle_pure_attribute,
1159         handle_deprecated_attribute, handle_vector_size_attribute,
1160         vector_size_helper): Move from attribs.c.
1161         * c-common.h (c_common_attribute_table,
1162         c_common_format_attribute_table): New.
1163         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
1164         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
1165         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
1166         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
1167         (LANG_HOOKS_INITIALIZER): Update.
1168         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
1169         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
1170         * target.h: Update comment.
1171         * tree.c (default_target_attribute_table): Remove.
1172         * tree.h (default_target_attribute_table, format_attribute_table,
1173         lang_attribute_table, lang_attribute_common): Remove.
1174 objc:
1175         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
1176         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
1177
1178 2002-04-24  Jason Merrill  <jason@redhat.com>
1179
1180         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
1181         * dwarf2out.c (dwarf_attr_name): Support it.
1182         (gen_array_type_die): Emit it.
1183         (lookup_type_die): No special handling for VECTOR_TYPE.
1184         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
1185
1186 2002-04-24  Richard Henderson  <rth@redhat.com>
1187
1188         * config/mips/mips.md (movdi_usd): Renumber.
1189
1190 2002-04-24  David S. Miller  <davem@redhat.com>
1191
1192         PR target/6420
1193         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
1194         32-bit Sparc and current_function_returns_struct is true.
1195
1196 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
1197
1198         * loop.c (canonicalize_condition): Use gen_int_mode.
1199
1200 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
1201
1202         * config/rs6000/altivec.h: Cleanup file.  Add non individual
1203         variants.
1204         (vec_vaddubm): New.
1205         (vec_vadduhm): New.
1206         (vec_vadduwm): New.
1207         (vec_vaddfp): New.
1208         (vec_vaddcuw): New.
1209         (vec_vaddubs): New.
1210         (vec_vaddsbs): New.
1211         (vec_vadduhs): New.
1212         (vec_vadduws): New.
1213         (vec_vaddsws): New.
1214         (vec_vand): New.
1215         (vec_vandc): New.
1216         (vec_vavgub): New.
1217         (vec_vavgsb): New.
1218         (vec_vavguh): New.
1219         (vec_vavgsh): New.
1220         (vec_vavguw): New.
1221         (vec_vavgsw): New.
1222         (vec_vrfip): New.
1223         (vec_vcmpbfp): New.
1224         (vec_vcmpequb): New.
1225         (vec_vcmpequh): New.
1226         (vec_vcmpequw): New.
1227         (vec_vcmpeqfp): New.
1228         (vec_vcmpgefp): New.
1229         (vec_vcmpgtub): New.
1230         (vec_vcmpgtsb): New.
1231         (vec_vcmpgtuh): New.
1232         (vec_vcmpgtsh): New.
1233         (vec_vcmpgtuw): New.
1234         (vec_vcmpgtsw): New.
1235         (vec_vcmpgtfp): New.
1236         (vec_vcmpgefp): New.
1237         (vec_vcfux): New.
1238         (vec_vcfsx): New.
1239         (vec_vctsxs): New.
1240         (vec_vctuxs): New.
1241         (vec_vexptefp): New.
1242         (vec_vrfim): New.
1243         (vec_lvx): New.
1244         (vec_lvebx): New.
1245         (vec_lvehx): New.
1246         (vec_lde): Add vector float variant.
1247         (vec_lvewx): New.
1248         (vec_lvxl): New.
1249         (vec_vlogefp): New.
1250         (vec_vmaddfp): New.
1251         (vec_vmhaddshs): New.
1252         (vec_vmaxub): New.
1253         (vec_vmaxsb): New.
1254         (vec_vmaxuh): New.
1255         (vec_vmaxsh): New.
1256         (vec_vmaxuw): New.
1257         (vec_vmaxsw): New.
1258         (vec_vmaxsw): New.
1259         (vec_vmaxfp): New.
1260         (vec_vmrghb): New.
1261         (vec_vmrghh): New.
1262         (vec_vmrghw): New.
1263         (vec_vmrglb): New.
1264         (vec_vmrglh): New.
1265         (vec_vmrglw): New.
1266         (vec_vminub): New.
1267         (vec_vminsb): New.
1268         (vec_vminuh): New.
1269         (vec_vminsh): New.
1270         (vec_vminuw): New.
1271         (vec_vminsw): New.
1272         (vec_vminfp): New.
1273         (vec_vmladduhm): New.
1274         (vec_vmhraddshs): New.
1275         (vec_msumubm): New.
1276         (vec_vmsummbm): New.
1277         (vec_vmsumuhm): New.
1278         (vec_vmsumshm): New.
1279         (vec_vmsumuhs): New.
1280         (vec_vmsumshs): New.
1281         (vec_vmuleub): New.
1282         (vec_vmulesb): New.
1283         (vec_vmuleuh): New.
1284         (vec_vmulesh): New.
1285         (vec_vmuloub): New.
1286         (vec_mulosb): New.
1287         (vec_vmulouh): New.
1288         (vec_vmulosh): New.
1289         (vec_vnmsubfp): New.
1290         (vec_vnor): New.
1291         (vec_vor): New.
1292         (vec_vpkuhum): New.
1293         (vec_vpkuwum): New.
1294         (vec_vpkpx): New.
1295         (vec_vpkuhus): New.
1296         (vec_vpkshss): New.
1297         (vec_vpkuwus): New.
1298         (vec_vpkswss): New.
1299         (vec_vpkshus): New.
1300         (vec_vpkswus): New.
1301         (vec_vperm): New.
1302         (vec_vrefp): New.
1303         (vec_vrlb): New.
1304         (vec_vrlh): New.
1305         (vec_vrlw): New.
1306         (vec_vrfin): New.
1307         (vec_vrsqrtefp): New.
1308         (vec_vsel): New.
1309         (vec_vslb): New.
1310         (vec_vslh): New.
1311         (vec_vslw): New.
1312         (vec_vsldoi): New.
1313         (vec_vsl): New.
1314         (vec_vslo): New.
1315         (vec_vspltb): New.
1316         (vec_vsplth): New.
1317         (vec_vspltw): New.
1318         (vec_vspltisb): New.
1319         (vec_vspltish): New.
1320         (vec_vspltisw): New.
1321         (vec_vsrb): New.
1322         (vec_vsrh): New.
1323         (vec_vsrw): New.
1324         (vec_vsrab): New.
1325         (vec_vsrah): New.
1326         (vec_vsraw): New.
1327         (vec_vsr): New.
1328         (vec_vsro): New.
1329         (vec_stvx): New.
1330         (vec_stvebx): New.
1331         (vec_stvehx): New.
1332         (vec_stvewx): New.
1333         (vec_stvxl): New.
1334         (vec_vsububm): New.
1335         (vec_vsubuhm): New.
1336         (vec_vsubuwm): New.
1337         (vec_vsubfp): New.
1338         (vec_vsubcuw): New.
1339         (vec_vsububs): New.
1340         (vec_vsubsbs): New.
1341         (vec_vsubuhs): New.
1342         (vec_vsubshs): New.
1343         (vec_vsubuws): New.
1344         (vec_vsubsws): New.
1345         (vec_vsum4ubs): New.
1346         (vec_vsum4sbs): New.
1347         (vec_vsum4shs): New.
1348         (vec_vsum2sws): New.
1349         (vec_vsumsws): New.
1350         (vec_vrfiz): New.
1351         (vec_vupkhsb): New.
1352         (vec_vupkhpx): New.
1353         (vec_vupkhsh): New.
1354         (vec_vupklsb): New.
1355         (vec_vupklpx): New.
1356         (vec_vupklsh): New.
1357         (vec_vxor): New.
1358
1359 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
1360
1361         PR c/5430
1362         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
1363         added literals from substracted literals.
1364         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
1365         (fold) [associate]: Preserve MINUS_EXPR if needed.
1366
1367 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
1368
1369         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
1370         are obsoleted.
1371
1372 2002-04-23  Tom Tromey  <tromey@redhat.com>
1373
1374         * gcc.c: Added --resource.  For PR java/6314.
1375
1376 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
1377
1378         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
1379         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
1380         these libraries.
1381
1382 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
1383
1384         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
1385
1386 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
1387
1388         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
1389         workaround.
1390         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
1391         (ix86_expand_clrstr): Fix typo.
1392         * loop.c (gen_load_of_final_value): New.
1393         (loop_givs_rescan, strength_reduce, check_dbra_loop):
1394         Use it.
1395
1396 2002-04-23  Roger Sayle  <roger@eyesopen.com>
1397
1398         * builtins.c (builtin_memset_gen_str): New function.
1399         (expand_builtin_memset): Optimize the case of constant length, but
1400         unknown value.
1401
1402 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
1403
1404         * config/rs6000/altivec.h (vec_step): Remove extraneous
1405         parentheses.
1406         (vec_ctu): Cast return.
1407
1408 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
1409
1410         PR target/6413
1411         * function.h: (struct function): Add profile_label_no field.
1412         (current_function_profile_label_no): Define.
1413         * function.c: (profile_label_no): New static var.
1414         (expand_function_start): Increment it, and copy to
1415         current_function_profile_label_no.
1416         * output.h (profile_label_no): Delete.
1417         * final.c (profile_label_no): Delete.
1418         (profile_function): Use current_function_profile_label_no.
1419         (final_end_function): Don't increment profile_label_no here.
1420         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
1421         profile_label_no with current_function_profile_label_no.
1422         * config/pa/pa.c (current_function_number): Delete.
1423         (pa_output_function_prologue): Don't output profile label here.
1424         (hppa_profile_hook): Use label_no param rather than
1425         current_function_number.
1426         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
1427         * config/pa/pa.h: .. here.
1428         (FUNCTION_PROFILER): Output profile label here.
1429
1430 2002-04-22  Eric Christopher  <echristo@redhat.com>
1431
1432         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
1433         patch of 2002-04-09 due to binutils issues.
1434         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
1435
1436 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
1437
1438         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
1439         constraint to 'o' for m=r and r=m alternatives.
1440         ("*movv8hi_internal1"): Same.
1441         ("*movv16qi_internal1"): Same.
1442         ("*movv4sf_internal1"): Same.
1443
1444 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
1445
1446         * rtl.h (RTX_FLAG): New macro.
1447         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
1448         * final.c (alter_subreg): Use macro to access rtx flag.
1449         * integrate.c (copy_rtx_and_substitute): Use new access macro.
1450         * print-rtl.c (print_rtx): Use new access macro.
1451
1452         * cse.c (insert): Check rtx code before accessing flag.
1453
1454         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
1455         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
1456         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
1457         convert_const_symbol_ref, make_canonical, make_alternative_compare,
1458         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
1459         simplify_test_exp, optimize_attrs, simplify_by_exploding,
1460         find_and_mark_used_attributes, unmark_used_attributes,
1461         add_values_to_cover, simplify_with_current_value,
1462         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
1463         copy_rtx_unchanging, main): Use new access macros.
1464
1465 2002-04-22  Tom Rix  <trix@redhat.com>
1466
1467         * expmed.c (init_expmed): Generate shifted constant once.
1468
1469 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
1470
1471         * c-lex.c (lex_charconst): Call convert to get constant in
1472         proper type; don't just smash the type field.
1473         Fixes PR c/6300.
1474
1475         * config.gcc: Add list of obsolete configurations.  Disallow
1476         building these without --enable-obsolete.
1477         * doc/install.texi: Document --enable-obsolete and obsoletion
1478         policy.  Mention obsoletion of individual targets in
1479         appropriate places.
1480
1481 2002-04-22  Richard Henderson  <rth@redhat.com>
1482
1483         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
1484
1485 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
1486
1487         PR f/6138.
1488         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
1489         (walk_fixup_memory_subreg): Likewise.
1490         (fixup_var_refs_insn): Adjust accordingly.
1491         (fixup_var_refs_1): Likewise.
1492
1493 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
1494
1495         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
1496         LIBPATH_ARCH64_SPEC): Define.
1497         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
1498         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
1499         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
1500         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
1501
1502 2002-04-22      Joel Sherrill <joel@OARcorp.com>
1503
1504         * gthr-rtems.h: Correct prototypes to remove warnings.
1505
1506 2002-04-22  Richard Henderson  <rth@redhat.com>
1507
1508         PR c/6344
1509         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
1510
1511         * gcse.c (free_insn_expr_list_list): New.
1512         (clear_modify_mem_tables): Use it.  Fix bit set usage.
1513         (canon_list_insert): Use EXPR_LISTs for expressions.
1514         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
1515
1516 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
1517
1518         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
1519         file change and include code to _cpp_pop_buffer.
1520         * cpphash.h (struct pending_option): Predeclare.
1521         (struct cpp_reader): New member next_include_file.
1522         (_cpp_pop_file_buffer): Update.
1523         (_cpp_push_next_buffer): Update, rename.
1524         * cppinit.c (cpp_destroy): Free include chain and pending here.
1525         (cpp_finish_options): Simplify.
1526         (_cpp_push_next_buffer): Rename and clean up.
1527         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
1528         Clarify.
1529         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
1530
1531 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
1532
1533         * config/rs6000/altivec.h (vec_xor): Add variant for both args
1534         being vector signed int.
1535         (vec_andc): Same.
1536         (vec_xor): Add variant for both args being vector signed char.
1537         Remove redundant variant.
1538         (vec_andc): Same.
1539
1540 2002-04-21  David S. Miller  <davem@redhat.com>
1541
1542         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
1543         compare mode in output RTL.
1544
1545 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
1546
1547         * config/rs6000/rs6000.c (rs6000_override_options): Correct
1548         style and formatting of previous patch.
1549
1550 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
1551
1552         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
1553         flag_pic for ABI_AIX.
1554
1555 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
1556
1557         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
1558         * cppfiles.c (read_include_file): Similarly.
1559         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
1560         uxstrdup ustrchr, ufputs): Similarly.
1561         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
1562         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
1563         cpp_ideq, parse_identifier, parse_number): Similarly.
1564         * cpplib.c (struct directive, dequote_string, D, run_directive,
1565         cpp_push_buffer): Similarly.
1566         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
1567         _cpp_create_definition, check_trad_stringification,
1568         cpp_macro_definition): Similarly.
1569
1570 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
1571
1572         * cppmacro.c (funlike_invocation_p): Don't step back
1573         over CPP_EOF.
1574
1575 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
1576
1577         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
1578         labelno.
1579
1580 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
1581
1582         * doc/invoke.texi: Remove Chill references.
1583         * doc/gcc.texi: Update last modified date.
1584
1585 2002-04-20  Kazu Hirata  <kazu@hxi.com>
1586
1587         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
1588         push and pop.  Replace add.l with add.w.
1589
1590 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1591
1592         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
1593         multiply instructions for H8/300H case.
1594
1595 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1596
1597         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
1598         Bum three instructions from each routine.
1599
1600 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
1601
1602         * Makefile.in: Update.
1603         * decl.c (push_c_function_context, pop_c_function_context,
1604         mark_c_function_context): Rename for consistency.
1605         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
1606         * c-tree.h (push_c_function_context, pop_c_function_context,
1607         mark_c_function_context): Rename for consistency.
1608         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1609         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
1610         * function.c (init_lang_status, save_lang_status,
1611         restore_lang_status, mark_lang_status, free_lang_status):
1612         Move to langhooks.h.
1613         (push_function_context_to, pop_function_context_from,
1614         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
1615         Update.
1616         * function.h (init_lang_status, save_lang_status,
1617         restore_lang_status, mark_lang_status, free_lang_status):
1618         Move to langhooks.h.
1619         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
1620         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
1621         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
1622         LANG_HOOKS_FUNCTION_INITIALIZER): New.
1623         (LANG_HOOKS_INITIALIZER): Update.
1624         (lhd_do_nothing_f): New.
1625         * langhooks.h (struct lang_hooks_for_functions): New.
1626         (struct lang_hooks): New hooks.
1627         * langhooks.c (lhd_do_nothing_f): New.
1628 objc:
1629         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1630         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
1631
1632 2002-04-19  David S. Miller  <davem@redhat.com>
1633
1634         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
1635         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
1636
1637 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
1638
1639         PR optimization/3756
1640         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
1641         x = ((int) y < 0) ? cst1 : cst2.
1642
1643 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
1644
1645         PR c/6358
1646         * function.c: Reapply patch for c/6358.
1647         (expand_function_end): Copy decl_rtl's mode, not
1648         current_function_return_rtx mode.
1649
1650 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
1651
1652         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
1653         targets.
1654
1655 2002-04-19  Tom Tromey  <tromey@redhat.com>
1656
1657         * doc/install.texi (Specific): Update status of Solaris 2.8.
1658         For PR libgcj/6158.
1659
1660 2002-04-19  Andreas Schwab  <schwab@suse.de>
1661
1662         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
1663         (PUT_REAL): Restore old definition.
1664
1665 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
1666             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1667
1668         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
1669         binutils 2.11.2 and higher generate smaller binaries than Sun's
1670         native tools.
1671
1672 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
1673
1674         PR c++/6352
1675         * toplev.c (rest_of_compilation): Do not defer functions for which
1676         TREE_SYMBOL_REFERENCED has already been set.
1677
1678 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
1679
1680         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
1681         alternative.
1682
1683 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
1684
1685         * builtins.c: Include langhooks.h.
1686         (lang_type_promotes_to): Remove.
1687         (expand_builtin_va_arg): Use new hook.
1688         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
1689         (simple_type_promotes_to): Move to c-typeck.c.
1690         * c-common.h (simple_type_promotes_to): Remove.
1691         * c-decl.c (duplicate_decls, grokdeclarator): Update.
1692         * c-format.c: Include langhooks.h.
1693         (check_format_types): Update.
1694         * c-tree.h (c_type_promotes_to): New.
1695         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
1696         (type_lists_compatible_p): Update.
1697         * langhooks-def.h (lhd_type_promotes_to): New.
1698         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
1699         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
1700         * langhooks.c (lhd_type_promotes_to): New.
1701         * langhooks.h (struct lang_hooks_for_types): New hook.
1702         * tree.h (lang_type_promotes_to): Remove.
1703 objc:
1704         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
1705
1706 2002-04-18  Richard Henderson  <rth@redhat.com>
1707
1708         * function.c: Revert patch for c/6358.
1709
1710 2002-04-18  Richard Henderson  <rth@redhat.com>
1711
1712         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
1713         blocks.  Handle multiple references to the TRAP block.  Handle
1714         non-adjacent THEN and OTHER blocks.
1715
1716 2002-04-18  Richard Henderson  <rth@redhat.com>
1717
1718         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
1719         crash with no type for by-mode libcalls.
1720
1721         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
1722
1723 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
1724
1725         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
1726         __xtensa_nonlocal_goto): Use a syscall instructions to flush
1727         the register windows.
1728
1729 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
1730
1731         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
1732         appropriate.  Document need for extended precision even when
1733         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
1734         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
1735         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
1736         instead of relying on later syntax error when REAL_WIDTH > 5.
1737         * real.c: Define NE based only on whether or not we have a
1738         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
1739         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
1740         define GET_REAL and PUT_REAL as simple memcpy operations; no
1741         need to byteswap or round.
1742         Use #error instead of #ifdef-ing out the entire file, for
1743         prompt error detection.
1744
1745         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
1746
1747 2002-04-18  David S. Miller  <davem@redhat.com>
1748
1749         * config/sparc/sparc.h (BRANCH_COST): Define.
1750
1751         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
1752         does it.
1753
1754 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
1755
1756         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
1757         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
1758         propagate_block calls after relaxation loop using new variable
1759         stabilized_prop_flags.
1760
1761 2002-04-18  Richard Henderson  <rth@redhat.com>
1762
1763         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
1764         (ia64_va_arg): Expect variable sized types by reference.
1765         * config/ia64/ia64-protos.h: Update.
1766         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
1767         ia64_function_arg_pass_by_reference.
1768
1769 2002-04-18  Richard Henderson  <rth@redhat.com>
1770
1771         * ifcvt.c: Include except.h.
1772         (block_has_only_trap): Break out from find_cond_trap.
1773         (find_cond_trap): Use it.  Always delete the trap block.
1774         (merge_if_block): Allow then block null.  Be less simplistic about
1775         what insns can end a block.
1776         * Makefile.in (ifcvt.o): Depend on except.h.
1777
1778         * config/ia64/ia64.md (trap, conditional_trap): New.
1779
1780 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
1781
1782         PR c/6358
1783         * function.c (assign_parms): Assign hard current_function_return_rtx
1784         register here...
1785         (expand_function_end): ...not here.
1786
1787 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
1788
1789         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
1790         * c-tree.h (c_incomplete_type_error): New.
1791         * c-typeck.c (require_complete_type, build_component_ref): Update.
1792         (incomplete_type_error): Rename.
1793         * langhooks-def.h (lhd_incomplete_type_error): New.
1794         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
1795         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
1796         * langhooks.c (lhd_incomplete_type_error): New.
1797         * langhooks.h (struct lang_hooks_for_types): New hook.
1798         * tree.c (size_in_bytes): Use new hook.
1799         * tree.h (incomplete_type_error): Remove.
1800 objc:
1801         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
1802
1803 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
1804
1805         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
1806         TARGET_FLOAT_FORMAT blocks.
1807
1808 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1809
1810         * doc/install.texi (Downloading the source): Do not mention Chill
1811         any longer, but mention Ada.
1812         (Configuration): Do not mention Chill any longer.
1813
1814 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
1815
1816         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
1817
1818 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
1819
1820         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
1821         in last patch.
1822
1823 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
1824
1825         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
1826         instead of unsigned_type.
1827
1828 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
1829
1830         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
1831         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
1832         later.
1833
1834 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
1835
1836         * attribs.c (vector_type_node_list): New static variable.
1837         (handle_vector_size_attribute): Use it to avoid generating a
1838         new type node each time we are called.
1839
1840         * combine.c (subst): Avoid trying to make a vector mode subreg of
1841         an integer constant.
1842         (gen_lowpart_for_combine): Likewise.
1843
1844 2002-04-18  Roger Sayle  <roger@eyesopen.com>
1845             Jakub Jelinek  <jakub@redhat.com>
1846
1847         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
1848         for integer constant c (if x has unsigned type or sign bit is not
1849         set in c).  This folds the zero/sign extension into the bit-wise and
1850         operation.
1851
1852 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
1853
1854         PR middle-end/6205
1855         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
1856         otherwise xorps.
1857
1858 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
1859
1860         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
1861
1862 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
1863
1864         * gcc.c (read_specs): Detect and fail if an attempt is made to
1865         rename a spec string to an already existing string.
1866
1867 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
1868
1869         * config/s390/s390.c (legitimize_pic_address): Do not generate
1870         illegal address constant without CONST.
1871
1872 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1873
1874         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
1875         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1876
1877 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
1878
1879         PR optimization/6305
1880         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
1881         to make sure previous reloads are taken into account.  Generate
1882         better code if one operand is an in-range immediate constant.
1883
1884 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
1885
1886         * doc/install.texi (Building): libgcj requires GNU make.
1887
1888 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
1889
1890         PR bootstrap/6315
1891         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
1892         even if hard quad and register is not floating.
1893         (movtf reg<-mem split): Disallow splitting if hard quad and
1894         register is floating.
1895         (movtf mem<-reg split): Likewise.
1896         * config/sparc/sparc.c (fp_register_operand): New predicate.
1897         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
1898
1899 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
1900
1901         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
1902         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
1903         (unprotoize.o): Ditto.  Build from protoize.c.  Define
1904         UNPROTOIZE on command line.
1905         * protoize.c: Include cppdefault.h.  Delete include_defaults.
1906         (in_system_include_dir): Use cpp_include_defaults (defined in
1907         cppdefault.o).
1908         * unprotoize.c: Delete file.
1909
1910 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
1911
1912         * config/rs6000/altivec.h (vec_ld): Add array variants.
1913         (vec_lde): Same.
1914         (vec_ldl): Same.
1915
1916 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
1917             Aldy Hernandez <aldyh@redhat.com>
1918
1919         * config/rs6000/altivec.h: Define __ALTIVEC__.
1920         (bool): New.
1921         (__pixel): New.
1922         (pixel): New.
1923         (vec_cfux): New.
1924         (vec_vmaddfp): New.
1925         (vec_vsldoi): New.
1926         Add parentheses to all macro arguments.
1927
1928 2002-04-16  Richard Henderson  <rth@redhat.com>
1929
1930         PR c++/6320
1931         * except.c (remove_eh_handler): Insert inner regions at beginning
1932         of sibling chain.  Refactor expressions.
1933
1934 2002-04-16  Richard Henderson  <rth@redhat.com>
1935
1936         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
1937         * config/sparc/sol2-gas-bi.h: New file.
1938         * config.gcc (sparc*-solaris): Add it as needed.
1939         * configure.in (AS_SPARC64_FLAG): Remove check.
1940         * config.in, configure: Regenerate.
1941
1942         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
1943
1944 2002-04-16  Richard Henderson  <rth@redhat.com>
1945
1946         * config/mips/mips.c (override_options): Don't override N32 for
1947         a 64-bit ISA.
1948
1949         PR 6202
1950         * config/mips/mips.md (can_delay): Split out of existing define_delays.
1951         (HILO_delay): Set can_delay false.
1952
1953 2002-04-16  Dale Johannesen <dalej@apple.com>
1954
1955         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
1956         instruction addresses.
1957         (rs6000_output_function_epilogue): Likewise.
1958
1959 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
1960
1961         * c-parse.in (poplevel, compstmt_start,
1962         compstmt_primary_start): Add ending ';', in accordance
1963         with POSIX.
1964
1965 2002-04-16  Richard Henderson  <rth@redhat.com>
1966
1967         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
1968         Adjust tm_file order to get TARGET_DEFAULT set properly.
1969         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
1970         * doc/install.texi (sparc-solaris): Update.
1971
1972 2002-04-16  Dale Johannesen <dalej@apple.com>
1973
1974         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
1975         comparison operands do not match each other or if modes of
1976         conditions do not match result.
1977
1978 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
1979
1980         PR target/6305
1981         * config/s390/s390.md (mulsidi3): Set both subregs of the
1982         multiword register.
1983
1984 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
1985
1986         * config/rs6000/altivec.h (vec_addc): Type check.
1987
1988 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
1989
1990         PR middle-end/6279
1991         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
1992
1993         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
1994
1995 2002-04-15  Richard Henderson  <rth@redhat.com>
1996
1997         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
1998         call_really_used_regs too.
1999
2000 2002-04-15  Richard Henderson  <rth@redhat.com>
2001
2002         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
2003
2004 2002-04-15  David S. Miller  <davem@redhat.com>
2005
2006         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
2007         as being CLOBBERed.
2008
2009 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
2010
2011         PR c/6290
2012         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
2013         CONST_VECTOR is { 0, ... 0 }.
2014
2015 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
2016
2017         * doc/install.texi (Installing GCC: Configuration): Clarify
2018         the only supported ways to configure gcc.
2019
2020 2002-04-15  Roland McGrath  <roland@frob.com>
2021
2022         * config.gcc (alpha*-*-gnu*): New target configuration.
2023         * config/alpha/gnu.h: New file for it.
2024         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
2025
2026 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
2027
2028         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
2029         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
2030         * tree.h (expand_start_stmt_expr): Update prototype.
2031         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
2032         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
2033         on the STMT_EXPR created for the inline function.
2034
2035 2002-04-15  Richard Henderson  <rth@redhat.com>
2036
2037         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
2038         config/i386/linux-aout.h, config/i386/linux-oldld.h,
2039         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
2040         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
2041         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
2042         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
2043         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
2044         Define __gnu_linux__, not gnu_linux.
2045         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
2046
2047 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
2048
2049         Remove Chill front end.
2050         * gcc.c (default_compilers): Remove Chill entries.
2051         * ch: Remove directory.
2052         * doc/frontends.texi: Remove information about Chill.
2053         * doc/sourcebuild.texi: Likewise.
2054         * doc/standards.texi: Likewise.
2055
2056 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
2057
2058         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
2059         (LONGLONG_STANDALONE): Define.
2060
2061 2002-04-15  David S. Miller  <davem@redhat.com>
2062
2063         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
2064         Call emit_library_call with LCT_NORMAL.
2065         (sparc_initialize_trampoline): Use LCT_foo instead of
2066         magic constant in emit_library_call invocations.
2067         (sparc64_initialize_trampoline): Likewise.
2068         (sparc_profile_hook): Likewise.
2069         * config/sparc/sparc.md: Likewise.
2070
2071         * config/sparc/sparc.c (sparc_extra_constraint_check):
2072         Fix type of argument 'c'.
2073         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
2074         Likewise.
2075
2076 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
2077
2078         * diagnostic.h (output_buffer_state): Redefine.
2079         (output_format_decoder): New macro.
2080         (output_prefixing_rule): Likewise.
2081         (output_line_cutoff): Likewise.
2082         (diagnostic_format_decoder): Adjust.
2083         (diagnostic_prefixing_rule): Likewise.
2084         (diagnostic_line_cutoff): Likewise.
2085         (diagnostic_state): Likewise.
2086         (diagnostic_kind_count): Likewise.
2087         (diagnostic_buffer): Now a macro.
2088
2089         * diagnostic.c (diagnostic_buffer): Remove definition.
2090         (output_is_line_wrapping): Adjust.
2091         (set_real_maximum_length): Likewise.
2092         (output_set_maximum_length): Likewise.
2093         (init_output_buffer): Likewise.
2094         (lhd_print_error_function): Likewise.
2095         (output_do_verbatim): Likewise.
2096
2097 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
2098
2099         * cpperror.c (print_location): Don't print include chain
2100         if line == 0.
2101         (cpp_begin_message): Update to use DL_ macros.
2102         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
2103         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
2104         cpp_notice, cpp_notice_from_errno): Remove.
2105         (cpp_error, cpp_error_with_line): Update to take a diagnostic
2106         level.
2107         (cpp_errno): New.
2108         * cppexp.c (CPP_ICE): Remove.
2109         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
2110         lex, integer_overflow, _cpp_parse_expr): Update.
2111         * cppfiles.c (read_include_file, find_include_file,
2112         handle_missing_header, _cpp_read_file, remap_filename): Update.
2113         * cpphash.h (enum error_type): Remove.
2114         (_cpp_begin_message): Update.
2115         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
2116         cpp_handle_option, cpp_post_options): Update.
2117         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
2118         skip_whitespace, parse_identifier, parse_slow, parse_string,
2119         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
2120         cpp_interpret_charconst): Update.
2121         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
2122         lex_macro_node, do_undef, glue_header_name, parse_include,
2123         do_include_common, read_flag, do_line, do_linemarker, do_ident,
2124         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
2125         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
2126         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
2127         _cpp_pop_buffer, do_diagnostic): Update.
2128         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
2129         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
2130         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
2131         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
2132         cpp_notice, cpp_notice_from_errno): Remove.
2133         (cpp_error, cpp_error_with_line): Update to take a diagnostic
2134         level.
2135         (cpp_errno): New.
2136         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
2137         collect_args, enter_macro_context, save_parameter, parse_params,
2138         _cpp_create_definition, check_trad_stringification,
2139         cpp_macro_definition): Update.
2140         * cppmain.c (cpp_preprocess_file): Update.
2141         * fix-header.c (read_scan_file): Update.
2142
2143 2002-04-14  Andreas Schwab  <schwab@suse.de>
2144
2145         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
2146
2147 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
2148
2149         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
2150
2151 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
2152
2153         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
2154         not gnu_hurd.
2155
2156 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
2157
2158         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
2159
2160 2002-04-13      Joel Sherrill <joel@OARcorp.com>
2161
2162         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
2163         sparc-elf and sparc-rtems targets.
2164
2165 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
2166
2167         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
2168         defined, and __gnu_hurd__ wherever __GNU__ is defined.
2169         * arm/linux-elf.h: Likewise.
2170         * cris/aout.h: Likewise.
2171         * cris/linux.h: Likewise.
2172         * i370/linux.h: Likewise.
2173         * i386/gnu.h: Likewise.
2174         * i386/linux-aout.h: Likewise.
2175         * i386/linux-oldld.h: Likewise.
2176         * i386/linux.h: Likewise.
2177         * i386/linux64.h: Likewise.
2178         * ia64/linux.h: Likewise.
2179         * m68k/linux-aout.h: Likewise.
2180         * m68k/linux.h: Likewise.
2181         * mips/linux.h: Likewise.
2182         * pa/pa-linux.h: Likewise.
2183         * pj/linux.h: Likewise.
2184         * rs6000/sysv4.h: Likewise.
2185         * s390/linux.h: Likewise.
2186         * sh/linux.h: Likewise.
2187         * sparc/linux-aout.h: Likewise.
2188         * sparc/linux.h: Likewise.
2189         * sparc/linux64.h: Likewise.
2190         * xtensa/linux.h: Likewise.
2191
2192 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
2193
2194         * stmt.c (check_unique_operand_names): Expect operand names to
2195         be strings rather than identifiers.  Use simple_cst_equal to
2196         compare them.
2197         (resolve_operand_name_1): Make same identifier to string change here.
2198         * c-parse.in (asm_operand): Convert a named operand into a string.
2199         * cp/parse.y (asm_operand): Likewise.
2200
2201 2002-04-13  Andreas Schwab  <schwab@suse.de>
2202
2203         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
2204
2205 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
2206
2207         Revert these changes:
2208
2209         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
2210
2211         PR c++/5571
2212         * stor-layout.c (layout_decl): Reset the RTL for the decl.
2213
2214 2002-04-12  Richard Henderson  <rth@redhat.com>
2215
2216         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
2217         (sparc*-*-solaris): Clean up header files.
2218         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
2219         and plan on generating 64-bit code.
2220         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
2221         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
2222         * config/sparc/sol2-sld-64.h: Rename ...
2223         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
2224         for AS_SPARC64_FLAG not defined.
2225         * config/sparc/sol2-gld-bi.h: New.
2226         * config/sparc/sol2-sld.h: Remove.
2227         * config/sparc/sol26-sld.h: New.
2228         * config/sparc/sol2.h: Tidy comments.
2229         * doc/install.texi: Document sparc-solaris configury changes.
2230
2231 2002-04-12  Richard Henderson  <rth@redhat.com>
2232
2233         * recog.c (offsettable_address_p): Match the logic in adjust_address.
2234
2235         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
2236         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
2237
2238 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2239
2240         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
2241
2242 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
2243
2244         * pa.c (pa_can_combine_p): Call extract_insn before calling
2245         constrain_operands.
2246
2247 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
2248
2249         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
2250         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
2251         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
2252         (CPP_PREDEFINES): Handle __declspec.
2253         * config/i386/t-interix (USER_H): Remove.
2254
2255 2002-04-12  DJ Delorie  <dj@redhat.com>
2256
2257         * integrate.c (compare_blocks): Make comparisons safe for when
2258         sizeof(int) < sizeof(char *).
2259         (find_block): Likewise.
2260
2261 2002-04-12  Jan Hubicka  <jh@suse.cz>
2262             David Edelsohn  <edelsohn@gnu.org>
2263
2264         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
2265         registers.
2266         (symbol_ref_operand): New.
2267         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
2268         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
2269
2270 2002-04-12  Andreas Schwab  <schwab@suse.de>
2271
2272         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
2273         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
2274         overrides the definition in config/svr4.h.
2275
2276 2002-04-12      Eric Norum <eric.norum@usask.ca>
2277
2278         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
2279         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
2280         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
2281         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
2282         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
2283         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
2284         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
2285         definitions to config/rtems.h and make the targets more similar.
2286
2287 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2288
2289         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
2290         POINTERS_EXTEND_UNSIGNED.
2291         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
2292         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
2293
2294         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
2295         not specified.
2296
2297 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
2298
2299         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
2300         depends on TARGET_SHMEDIA, not TARGET_SH5.
2301
2302 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
2303
2304         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
2305         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
2306
2307 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
2308
2309         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
2310         no r0 clobber.
2311
2312 2002-04-12  Andreas Schwab  <schwab@suse.de>
2313
2314         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
2315
2316 2002-04-12  Richard Henderson  <rth@redhat.com>
2317
2318         PR bootstrap/4191
2319         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
2320
2321         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
2322         modes spanning multiple hard regs.
2323
2324         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
2325
2326 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2327
2328         * pa.c (pa_output_function_prologue): Don't accumulate the total
2329         number of code bytes when using TARGET_64BIT, or gas, SOM and not
2330         the portable runtime.
2331         (output_deferred_plabels): Handle 64bit plabels.
2332         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
2333         generating pic code using the GAS assembler for object formats that
2334         are not SOM (ie., ELF32 and ELF64).
2335         (output_millicode_call): Check attribute type if attribute length is 28.
2336         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
2337         dbr_sequence_length once.
2338         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
2339         dbr_sequence_length once.
2340         * pa.h (TARGET_SOM): Define if not defined.
2341         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
2342         with GAS and not SOM.
2343         (jump, call_internal_reg, call_value_internal_reg): Likewise.
2344         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
2345
2346 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2347
2348         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
2349         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
2350         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
2351         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
2352         elfos.h and dbxelf.h values are fine now.
2353         * config/i386/freebsd.h, config/alpha/freebsd.h
2354         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
2355
2356 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2357
2358         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
2359         or set Acpu or Amachine.  Reformat.
2360         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2361         define.
2362         (LINK_SPEC): Do not need to undef.
2363         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
2364         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
2365         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2366         define.
2367         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
2368         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
2369         (LINK_SPEC): Do not need to undef.
2370         (DONT_USE_BUILTIN_SETJMP): Do not define.
2371         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
2372         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
2373         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
2374         Remove trailing spaces.
2375         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
2376         __ELF__, or set Acpu or Amachine.  Reformat.
2377         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2378         define.
2379
2380 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2381
2382         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
2383         all other *-*-freebsd* targets.
2384
2385 2002-04-11  Richard Henderson  <rth@redhat.com>
2386
2387         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
2388
2389 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2390
2391         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
2392         Include {cpu}/{cpu}.h thru tm_file.
2393         (alpha*-*-linux*ecoff): Remove target.
2394         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
2395         (LINK_SPEC): Remove, is not OS independent.
2396         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
2397         (LINK_SPEC): Do not need to #undef any longer.
2398         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
2399         any longer.
2400         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
2401         __ELF__.
2402         (LINK_SPEC): Moved here from alpha/elf.h.
2403         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
2404         SUB_CPP_PREDEFINES.
2405         * config/alpha/linux-ecoff.h: Remove.
2406         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
2407         (CPP_SPEC): Define _POSIX_SOURCE as needed.
2408         (CPP_SUBTARGET_SPEC): Do not define.
2409         (LINK_SPEC): Do not need to #undef any longer.
2410         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
2411         * config/alpha/vms.h: Likewise.
2412
2413 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
2414
2415         * doc/extend.texi: Remove old claim that typedefs cannot have
2416         an alignment attribute.
2417
2418 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
2419
2420         PR optimization/6177
2421         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
2422         bitpos is 0 and bitsize CONCAT size.
2423
2424 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
2425
2426         PR c/6223
2427         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
2428
2429 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
2430
2431         * config/alpha/freebsd.h: Minor reformatting.
2432         (CPP_SPEC): Define ELF and add cpp_subtarget.
2433         (ASM_SPEC): No longer needed.
2434
2435 2002-04-11  Richard Henderson  <rth@redhat.com>
2436
2437         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
2438         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
2439         (dimode mem/zero splitter): New.
2440
2441 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
2442
2443         * config/cris/cris.c (cris_override_options): Tweak error message
2444         for PIC not implemented.
2445
2446         * config/cris/cris.h: Tweak comments related to parameter-passing.
2447
2448         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
2449
2450 2002-04-10  Richard Henderson  <rth@redhat.com>
2451
2452         * except.c (add_ehl_entry): Allow duplicates after landing pad
2453         creation.
2454
2455 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
2456
2457         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
2458
2459 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
2460
2461         * c-decl.c (c_init_decl_processing): Move generation of
2462         decls for g77_integer_type_node and friends from here ...
2463         * c-common.c (c_common_nodes_and_builtins): ... to here.
2464
2465 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
2466
2467         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
2468         is only used as frame pointer when frame_pointer_needed is true.
2469
2470 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
2471
2472         PR target/817
2473         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
2474         for the fact that the pool entry uses two words.
2475         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
2476         1k bytes.
2477         (movdf_soft_insn): Similarly.
2478         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
2479         for the fact that the pool entry uses three words.
2480
2481 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
2482
2483         * config/mips/mips.c (mips_va_arg): When using the struct version
2484         of the EABI va_list, allow arguments in the register save area to
2485         take up less room than a stack argument.
2486
2487 2002-04-10  Richard Henderson  <rth@redhat.com>
2488
2489         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
2490         if EXPAND_INITIALIZER.
2491
2492 2002-04-09  Richard Henderson  <rth@redhat.com>
2493
2494         * config/alpha/alpha.md (movdi_er_maybe_g): New.
2495         * config/alpha/alpha.c (alpha_expand_mov): Use it.
2496
2497 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
2498
2499         PR optimization/6233
2500         * rtlanal.c (pure_call_p): New function.
2501         * rtl.h (pure_call_p): Declare.
2502         * loop.c (prescan_loop): Use it to set has_nonconst_call.
2503         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
2504
2505 2002-04-09  Eric Christopher  <echristo@redhat.com>
2506
2507         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
2508         information to .comm directive.
2509
2510 2002-04-09  Richard Henderson  <rth@redhat.com>
2511
2512         PR c/5078
2513         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
2514
2515 2002-04-09  Richard Henderson  <rth@redhat.com>
2516
2517         * basic-block.h (flow_delete_block_noexpunge): Declare.
2518         (expunge_block_nocompact): Declare.
2519         * cfg.c (expunge_block_nocompact): Split out from ...
2520         (expunge_block): ... here.
2521         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
2522         (flow_delete_block_noexpunge): Split out from ...
2523         (flow_delete_block): ... here.
2524         * cfgcleanup.c (delete_unreachable_blocks): Compact while
2525         removing dead blocks.
2526         * except.c (exception_handler_labels): Remove.
2527         (exception_handler_label_map): New.
2528         (struct eh_region): Add aka member.
2529         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
2530         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
2531         (for_each_eh_label, for_each_eh_label_1): New.
2532         (init_eh): Register exception_handler_label_map.
2533         (free_eh_status): Use free_region.
2534         (find_exception_handler_labels): Use the map, not the list.
2535         (remove_exception_handler_label): Likewise.
2536         (maybe_remove_eh_handler): Likewise.
2537         (remove_eh_handler): Use the region aka bitmap.
2538         * except.h (exception_handler_labels): Remove.
2539         (for_each_eh_label): Declare.
2540         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
2541         * loop.c (invalidate_loops_containing_label): New.
2542         (find_and_verify_loops): Use it.  Use for_each_eh_label.
2543         * sched-rgn.c (is_cfg_nonregular): Use
2544         current_function_has_exception_handlers.
2545
2546 2002-04-09  Richard Henderson  <rth@redhat.com>
2547
2548         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
2549         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
2550         Do not return changed status.
2551         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
2552         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
2553         New functions that do return changed status.
2554         * sbitmap.h: Update decls.
2555         * gcse.c, lcm.c: Use _cg functions as needed.
2556
2557 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
2558
2559         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
2560         (sh64-*-elf*, sh-*-rtemself*): Likewise.
2561         * config/sh/embed_bb.c: New file.
2562         * config/sh/embed-elf.h: New file.
2563         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
2564         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
2565         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
2566         __PTRDIFF_TYPE__ .
2567         (SUBTARGET_CPP_PTR_SPEC): Don't define.
2568         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
2569         Add subtarget_asm_endian_spec.
2570         (ASM_SPEC): Use subtarget_asm_endian_spec.
2571         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
2572         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
2573         (WCHAR_UNSIGNED): Define.
2574         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
2575         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
2576         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
2577         Fix value.
2578         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
2579         (sh_adjust_cost): Likewise.
2580         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
2581         __PTRDIFF_TYPE__ .
2582         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
2583         (WCHAR_TYPE_SIZE): Likewise.
2584         (ASM_SPEC): Use subtarget_asm_endian_spec.
2585         (SH_ELF_WCHAR_TYPE): #undef/ #define.
2586         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
2587         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
2588         (MAX_WCHAR_TYPE_SIZE): Don't #define .
2589         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
2590         (USER_LABEL_PREFIX): Don't #undef /#define .
2591         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
2592         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
2593         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
2594         (ASM_SPEC): Likewise.
2595         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
2596         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
2597         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
2598         (LIB2FUNCS_EXTRA): Define.
2599         * t-sh64 (LIB2FUNCS_EXTRA): Define.
2600         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
2601         (LIB1ASMFUNCS_CACHE): Define.
2602         (LIB2FUNCS_EXTRA): Redefine empty.
2603
2604 2002-04-08  Richard Henderson  <rth@redhat.com>
2605
2606         * reorg.c (get_branch_condition): Use reversed_comparison_code.
2607
2608 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2609
2610         * config/m68hc11/larith.asm (__map_data_section): Fix condition
2611         and optimize for size.
2612         (__do_global_ctors): Fix pointer comparison.
2613         (__do_global_dtors): Likewise.
2614
2615 2002-04-09  David S. Miller  <davem@redhat.com>
2616
2617         * config/sparc/sparc.c (sparc_extra_constraint_check): New
2618         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
2619         allow reloading pseudos.
2620         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
2621         * config/sparc/sparc-protos.h: Declare it.
2622
2623         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
2624         unsigned comparison warning.
2625         (output_restore_regs): Mark leaf_function as unused.
2626
2627 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2628
2629         * expr.c (is_aligning_offset): New function.
2630         (expand_expr, case COMPONENT_EXPR): Call it.
2631
2632 2002-04-08  David S. Miller  <davem@redhat.com>
2633
2634         PR target/6082
2635         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
2636
2637         Make init_priority work on Sparc when using GNU ld.
2638         * config/sparc/linux.h, config/sparc/linux64.h,
2639         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
2640         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
2641         * config/sparc/sol2-gld.h: New file to do the same.
2642         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
2643         sparc/sol2-gld.h to tm_file.
2644
2645         PR optimization/4328
2646         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
2647         * doc/md.texi: Document it.
2648         * config/sparc/sparc.md (movdi_insn_sp64_novis,
2649         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
2650         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
2651         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
2652         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
2653
2654 2002-04-08  Andreas Jaeger  <aj@suse.de>
2655
2656         * stmt.c (expand_asm_operands): Revert last patch from Richard
2657         Henderson.
2658
2659 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2660
2661         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
2662         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
2663
2664 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2665
2666         * doc/contrib.texi (Contributors): Add David O'Brien.
2667
2668 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
2669
2670         * configure.in (auto-build.h): Use target_alias and build_alias
2671         when running configure.
2672         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
2673         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
2674         * configure: Regenerate.
2675
2676 2002-04-07  David S. Miller  <davem@redhat.com>
2677
2678         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
2679
2680 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2681
2682         PR 5933
2683         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
2684         generating 32-bit pic code.
2685
2686 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
2687
2688         * cppinit.c (cpp_create_reader): Initialize
2689         discard_comments_in_macro_exp.
2690         (COMMAND_LINE_OPTIONS): Add "-CC" option.
2691         (cpp_handle_option): Handle "-CC" option.
2692         * cpplex.c (save_comment): If saving a C++ comment in
2693         a directive, convert it to a C comment.
2694         (_cpp_lex_direct): Pass second comment start character to
2695         save_comment to indicate comment type.
2696         * cpplib.c (_cpp_handle_directive): If processing
2697         a "#define" directive and discard_comments_in_macro_exp
2698         is false,  re-enable saving of comments.
2699         (lex_macro_node): If discard_comments_in_macro_exp is false,
2700         discard any comments before the macro identifier.
2701         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
2702         member.
2703         * cppmacro.c (cpp_get_token): If expanding a macro while
2704         processing a directive, discard any comments we might encounter.
2705         (parse_params): If discard_comments_in_macro_exp is false,
2706         ignore comments in the macro parameter list.
2707         * gcc.c (cpp_unique_options): Add "-CC" option.
2708         (option_map): Map "--comments-in-macros" to "-CC".
2709         * doc/cppopts.texi: Document "-CC" option.
2710         * f/lang-specs.h: Add "-CC" option.
2711         * testsuite/gcc.dg/cpp/maccom1.c: New test.
2712         * testsuite/gcc.dg/cpp/maccom2.c: New test.
2713         * testsuite/gcc.dg/cpp/maccom3.c: New test.
2714         * testsuite/gcc.dg/cpp/maccom4.c: New test.
2715         * testsuite/gcc.dg/cpp/maccom5.c: New test.
2716         * testsuite/gcc.dg/cpp/maccom6.c: New test.
2717
2718 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2719
2720         PR middle-end/6180
2721         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
2722
2723 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
2724
2725         PR c++/5571
2726         * stor-layout.c (layout_decl): Reset the RTL for the decl.
2727
2728         PR opt/5120
2729         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
2730         RTX_UNCHANGING_P for the functions arguments when a tail call
2731         is made.
2732
2733 2002-04-06  Jason Merrill  <jason@redhat.com>
2734
2735         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
2736         (parse_options_and_default_flags): Set them appropriately.
2737         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
2738
2739 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
2740
2741         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
2742         here.
2743
2744         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
2745         semicolon.
2746
2747         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
2748         types come in by-reference.  Fix typo in comment.
2749
2750 2002-04-05  David S. Miller  <davem@redhat.com>
2751
2752         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
2753         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
2754         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
2755         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
2756
2757 2002-04-05  David S. Miller  <davem@redhat.com>
2758
2759         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
2760         are not going to emit return instructions, emit at least a nop
2761         for the sake of sane backtraces.
2762
2763 2002-04-05  Richard Henderson  <rth@redhat.com>
2764
2765         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
2766
2767 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
2768
2769         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
2770
2771 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
2772
2773         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
2774         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
2775         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
2776
2777 2002-04-05  Andreas Schwab  <schwab@suse.de>
2778
2779         * c-convert.c: Include c-common.h.
2780         * Makefile.in (c-convert.o): Updated.
2781
2782 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
2783
2784         * mklibgcc.in: Use separate libgcc.map for each multilib.
2785         * Makefile.in (distclean): Don't remove libgcc.map here.
2786
2787 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
2788
2789         * Makefile.in (s-mlib): Handle --disable-multilib by separate
2790         genmultilib invocation.
2791
2792 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
2793
2794         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
2795         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
2796         to num_gprs for symmetry.
2797         * config/mips/mips.c: Adjust accordingly.
2798
2799 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
2800
2801         * c-common.c (truthvalue_conversion): Rename, update.
2802         * c-common.h (c_common_truthvalue_conversion): New.
2803         * c-convert.c (convert): Update.
2804         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
2805         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
2806         * c-typeck.c (build_binary_op, build_unary_op,
2807         build_conditional_expr): Update.
2808         * fold-const.c (constant_boolean_node, fold): Use langhook.
2809         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
2810         * langhooks.h (struct lang_hooks): New hook.
2811         * stmt.c (expand_decl_cleanup): Use langhook.
2812         * tree.h (truthvalue_conversion): Remove.
2813 objc:
2814         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
2815
2816 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
2817
2818         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
2819         Add rules to make null object file.
2820
2821 2002-04-04  Jim Blandy  <jimb@redhat.com>
2822
2823         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
2824         macro formal parameter names.
2825
2826 2002-04-04  David S. Miller  <davem@redhat.com>
2827
2828         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
2829
2830 2002-04-04  Richard Henderson  <rth@redhat.com>
2831
2832         PR middle-end/5099
2833         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
2834         Support copies into and out of memory.  Don't accept allows_reg
2835         and allows_mem as gospel.
2836
2837 2002-04-04  Richard Henderson  <rth@redhat.com>
2838
2839         PR opt/6165
2840         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
2841         (write_dependence_p): Likewise.
2842
2843 2002-04-04  Richard Henderson  <rth@redhat.com>
2844
2845         * predict.c (estimate_bb_frequencies): Do frequency calculation
2846         with a volatile temporary.
2847
2848 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
2849
2850         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
2851
2852 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
2853
2854         PR c++/6119
2855         * final.c (final_start_function): Don't bump profile_label_no here...
2856         (final_end_function): ...but here.
2857
2858 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
2859
2860         * config/sparc/sparc.md (pic): New attribute.
2861         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
2862         into stack slots.
2863         (split after do_builtin_setjmp_setup): New.
2864
2865 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
2866
2867         PR fortran/6106
2868         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
2869         change.
2870
2871 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
2872
2873         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
2874         UNITS_PER_WORD for zero sized aggregates.
2875
2876 2002-04-03  David S. Miller  <davem@redhat.com>
2877
2878         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
2879         one-character spec for this, just use %(link_gcc_c_sequence).
2880
2881 2002-04-03  David S. Miller  <davem@redhat.com>
2882
2883         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
2884         handling.
2885
2886 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2887
2888         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
2889         (DWARF_FRAME_RETURN_COLUMN): Move.
2890         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2891         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
2892         * pa.c (except.h, predict.h): Include.
2893         (FRP): Delete.
2894         (store_reg_modify, set_reg_plus_d): Revise prototypes.
2895         (output_ascii): Add cast.
2896         (store_reg_modify): Revise to add frame notes.
2897         (set_reg_plus_d): Likewise.
2898         (compute_frame_size): Include space for eh data registers in frame if
2899         the current function calls eh_return.
2900         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
2901         function calls eh_return.  Save eh data registers if the current
2902         function calls eh_return.  Fix code to add frame notes.  Emit
2903         blockage to prevent insns with frame notes being scheduled in the
2904         delay slot of calls.
2905         (hppa_expand_epilogue): Restore eh data registers and do final stack
2906         adjustment if the current function calls eh_return.  Don't add frame
2907         notes.
2908         (output_call): Revise for change in length of call insn.  Don't do
2909         return pointer adjustment for an unconditional jump in the delay slot
2910         of a call when using frame notes.
2911         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
2912         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
2913         (ARG_POINTER_CFA_OFFSET): Define.
2914         * pa.md (return_external_pic): New pattern.
2915         (prologue): Correct formatting.  Use return_external_pic if current
2916         function calls eh_return.
2917         (call_internal_symref, call_value_internal_symref,
2918         sibcall_internal_symref, sibcall_value_internal_symref): Change default
2919         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
2920         respectively.
2921         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
2922
2923         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
2924         list of targets to check using "nop" insn.
2925         * configure: Rebuilt.
2926
2927 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
2928
2929         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
2930
2931 2002-04-03  David S. Miller  <davem@redhat.com>
2932
2933         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
2934         library sequence passed to the linker.
2935         (LINK_COMMAND_SPEC): Use it.
2936         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
2937         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
2938         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2939
2940 2002-04-03  Jason Merrill  <jason@redhat.com>
2941
2942         * except.c (struct eh_status): Remove protect_list.
2943         (begin_protect_partials, end_protect_partials): Remove.
2944         (add_partial_entry): Remove.
2945         * except.h: Remove prototypes.
2946
2947         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
2948         expand_decl_cleanup_eh.
2949
2950         PR c++/5636
2951         * tree.h (CLEANUP_EH_ONLY): New macro.
2952         * stmt.c (expand_decl_cleanup_eh): New fn.
2953         (expand_cleanups): Check CLEANUP_EH_ONLY.
2954         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
2955         Use expand_decl_cleanup_eh.
2956         (expand_stmt): Adjust.
2957         * c-common.h: Adjust prototype.
2958
2959 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
2960
2961         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
2962         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
2963         (cris_target_asm_function_epilogue): Ditto.
2964         (cris_initial_frame_pointer_offset): Ditto.
2965         (cris_simple_epilogue): Ditto.
2966         (cris_expand_builtin_va_arg): Variable-size types come in
2967         by-reference.
2968
2969 2002-04-03  David S. Miller  <davem@redhat.com>
2970
2971         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
2972         little-endian.
2973         (set_fast_math): Correct 'fsr' type.
2974
2975 2002-04-03  Richard Henderson  <rth@redhat.com>
2976
2977         PR opt/3569
2978         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
2979         * toplev.c (check_global_declarations): Use it.
2980         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
2981         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2982         (LANG_HOOKS_DECLS): Add it.
2983         * langhooks.c (lhd_warn_unused_global_decl): New.
2984         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2985         * c-objc-common.c (c_warn_unused_global_decl): New.
2986         * c-tree.h (c_warn_unused_global_decl): Declare.
2987         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2988
2989 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
2990
2991         * langhooks-def.h (lhd_set_decl_assembler_name,
2992         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
2993         (LANG_HOOKS_INITIALIZER): Update.
2994         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
2995         * langhooks.h (struct lang_hooks): New hook.
2996         * tree.c (set_decl_assembler_name): Move to langhooks.c.
2997         (lang_set_decl_assembler_name): Remove.
2998         (init_obstacks): Don't set hook.
2999         (decl_assembler_name): New function.
3000         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
3001         (decl_assembler_name): New.
3002         (lang_set_decl_assembler_name): Remove.
3003
3004 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
3005
3006         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
3007         works properly with .hidden symbols.
3008         * configure: Rebuilt.
3009         * config.in: Rebuilt.
3010         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
3011         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
3012         properly with .hidden symbols.
3013
3014 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
3015
3016         PR middle-end/6102
3017         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
3018         USE argument.
3019
3020 2002-04-03  Richard Henderson  <rth@redhat.com>
3021
3022         PR opt/4120
3023         * sched-rgn.c (sets_likely_spilled): New.
3024         (sets_likely_spilled_1): New.
3025         (add_branch_dependences): Use it.
3026
3027 2002-04-02  Richard Henderson  <rth@redhat.com>
3028
3029         PR opt/4311
3030         * loop.h (LOOP_FIRST_PASS): New.
3031         * loop.c (strength_reduce): Mind it when deciding to unroll.
3032         * toplev.c (rest_of_compilation): Set it.
3033
3034 2002-04-02  David S. Miller  <davem@redhat.com>
3035
3036         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
3037         mems_ok_for_ldd_peep when the order of the loads being examined
3038         is reversed.
3039         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
3040         existing comment to increase comprehension of this situation.
3041
3042 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
3043
3044         * config/sh/sh.md: Don't use union real_extract.
3045
3046 2002-04-02  Richard Henderson  <rth@redhat.com>
3047
3048         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
3049
3050 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
3051
3052         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
3053         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
3054         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
3055         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
3056         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
3057         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
3058         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
3059         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
3060         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
3061         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
3062         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
3063         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
3064         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
3065         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
3066         Include as many configury headers via tm_file as possible.  This
3067         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
3068         * config/openbsd-oldgas.h: New file.
3069         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
3070         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
3071         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
3072         config/i386/i386-coff.h, config/i386/i386-interix.h,
3073         config/i386/iscdbx.h, config/i386/linux-aout.h,
3074         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
3075         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
3076         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
3077         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
3078         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
3079         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
3080         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
3081         config/i386/vxi386.h: Do not directly include configury headers.
3082         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
3083         Directly include configury headers that are no longer automatically
3084         included by the above headers.
3085         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
3086         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
3087         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
3088         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
3089         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
3090         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
3091         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
3092         (TARGET_VERSION): Define.
3093         * config/i386/beos-elf.h, config/i386/freebsd.h,
3094         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
3095         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
3096         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
3097         config/i386/sco5.h, config/i386/sysv4.h
3098         (TARGET_VERSION): Do not need to protect.
3099         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
3100         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
3101         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
3102         config/i386/i386-interix.h, config/i386/linux-aout.h,
3103         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
3104         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
3105         (YES_UNDERSCORES): Do not define - not needed.
3106         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
3107         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
3108         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
3109         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
3110         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
3111         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
3112         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
3113         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
3114
3115 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
3116             Richard Henderson  <rth@redhat.com>
3117
3118         PR c/5484
3119         * function.c (assign_temp): Accept either type or decl argument.
3120         Detect variables whose size is too large to fit into an integer.
3121         * stmt.c (expand_decl): Pass the decl, not the type.
3122
3123 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
3124
3125         * protoize.c: Match include directory usage with cppdefault.c.
3126
3127 2002-04-03  Jeffrey A Law  (law@redhat.com)
3128             Hans-Peter Nilsson  <hp@bitrange.com>
3129
3130         * combine.c (simplify_comparison): Avoid narrowing a comparison
3131         with a paradoxical subreg when doing so would drop signficant bits.
3132
3133 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
3134
3135         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
3136         if POINTERS_EXTEND_UNSIGNED is defined.
3137
3138 2002-04-02  Richard Henderson  <rth@redhat.com>
3139
3140         PR opt/3967
3141         * local-alloc.c (contains_replace_regs): LO_SUM may contain
3142         replace regs.
3143
3144 2002-04-02  Richard Henderson  <rth@redhat.com>
3145
3146         * doc/standards.texi: Document required freestanding libc entry points.
3147
3148 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
3149
3150         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
3151         associated splitter.  Remove MQ constraint.
3152         (ctrdi_internal4): Correct CCmode clobber.
3153
3154 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3155
3156         * milli64.S ($$dyncall): New function.
3157         * t-linux (LIB1ASMFUNCS): Revise module list.
3158         (LIB1ASMSRC): Use pa/milli64.S.
3159
3160 2002-04-02  Richard Henderson  <rth@redhat.com>
3161
3162         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
3163         rename solaris_sys_varargs_h.
3164
3165 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3166
3167         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
3168         the same mode as its component.
3169
3170 2002-04-02  Richard Henderson  <rth@redhat.com>
3171
3172         PR opt/190
3173         * final.c (this_is_asm_operands): Export.
3174         * output.h (this_is_asm_operands): Declare.
3175         * config/i386/i386.c (print_operand): Error odd asm operands.
3176
3177 2002-04-02  Richard Henderson  <rth@redhat.com>
3178
3179         PR opt/420
3180         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
3181
3182 2002-04-01  Richard Henderson  <rth@redhat.com>
3183
3184         PR target/1538
3185         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
3186         * fixinc/fixincl.x: Rebuild.
3187
3188 2002-04-01  Richard Henderson  <rth@redhat.com>
3189
3190         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
3191         (atomic_alloc, atomic_free): New.
3192         (SIZE, MASK_FOR, PTR_IN): New.
3193         (emergency_reg_state, emergency_reg_state_free): New.
3194         (emergency_labeled_state, emergency_labeled_state_free): New.
3195         (reg_state_alloced, labeled_state_alloced): New.
3196         (alloc_reg_state, free_reg_state): New.
3197         (alloc_label_state, free_label_state, free_label_states): New.
3198         (push, pop, dup_state_stack, free_state_stack): Use them.
3199         (desc_label_state): Likewise.
3200         (uw_frame_state_for): Free label states and state stack.
3201         (uw_update_reg_address): Eliminate warnings.
3202
3203 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
3204
3205         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
3206         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
3207
3208 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3209
3210         * c-decl.c (grokdeclarator): Update.
3211         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
3212         * c-tree.h (c_mark_addressable): New.
3213         * c-typeck.c (default_function_array_conversion, build_unary_op,
3214         build_array_ref, convert_for_assignment): Update.
3215         (mark_addressable): Rename.
3216         * calls.c (try_to_integrate, expand_call): Use langhook.
3217         * expr.c (expand_expr): Use langhook.
3218         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
3219         * langhooks.h (struct lang_hooks): New hook.
3220         * stmt.c (expand_asm_operands): Use langhook.
3221         * tree.h (mark_addressable): Remove.
3222 objc:
3223         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
3224
3225 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
3226
3227         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
3228         in previous change.
3229
3230 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
3231
3232         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
3233         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
3234
3235 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3236
3237         * c-common.c (unsigned_conversion_warning, convert_and_check,
3238         unsigned_type, signed_type, shorten_compare,
3239         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
3240         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
3241         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
3242         New.
3243         * c-decl.c (grokdeclarator): Update.
3244         * c-format.c (check_format_types): Update.
3245         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
3246         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
3247         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
3248         * convert.c (convert_to_integer): Use new hooks.
3249         * expmed.c (make_tree): Use new hooks.
3250         * expr.c (store_expr): Use new hooks.
3251         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
3252         all_ones_mask_p, unextend, fold): Use new hooks.
3253         * langhooks.h (struct lang_hooks_for_types): New hooks.
3254         * tree.h (signed_or_unsigned_type, signed_type,
3255         unsigned_type): Remove.
3256 objc:
3257         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
3258         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
3259
3260 2002-03-31  Richard Henderson  <rth@redhat.com>
3261
3262         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
3263         (desc_frgr_mem): Fix reference to f16-f31.
3264
3265 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3266
3267         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
3268         RTVEC_ELT): Const-ify.
3269         * varray.h (VARRAY_CHECK): Const-ify.
3270         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
3271         ggc_mark_rtvec, ggc_mark): Const-ify.
3272
3273 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3274
3275         * diagnostic.c: Include langhooks-def.h.
3276         * Makefile.in (diagnostic.o): Update.
3277
3278 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
3279
3280         * c-common.c (c_unsafe_for_reeval): Rename.
3281         * c-common.h (c_unsafe_for_reeval): Rename.
3282         * c-decl.c (finish_incomplete_decl): Rename.
3283         (c_init_decl_processing): Don't set langhook.
3284         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
3285         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3286         * c-objc-common.c (c_objc_common_init): Don't set langhook.
3287         * c-tree.h (finish_incomplete_decl): Rename.
3288         * langhooks-def.h (lhd_unsafe_for_reeval): New.
3289         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
3290         (LANG_HOOKS_INITIALIZER): Update.
3291         * langhooks.c (lhd_unsafe_For_reeval): New.
3292         * langhooks.h (struct langhooks): New hooks.
3293         * toplev.c (incomplete_decl_finalize_hook): Remove.
3294         (wrapup_global_declarations): Update.
3295         * tree.c (lang_unsafe_for_reeval): Remove.
3296         (unsafe_for_reeval): Update.
3297         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
3298         Remove.
3299 objc:
3300         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
3301         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3302
3303 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
3304
3305         * diagnostic.c (print_error_function): Remove.
3306         (default_print_error_function): Rename.
3307         (report_error_function): Update.
3308         * diagnostic.h (print_error_function): Remove.
3309         (default_print_error_function): Remove.
3310         * langhooks-def.h (struct diagnostic_context): Predeclare.
3311         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
3312         (LANG_HOOKS_INITIALIZER): Update.
3313         * langhooks.h (struct diagnostic context): Predeclare.
3314         (struct lang_hooks): New hook.
3315
3316 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3317
3318         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
3319         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
3320         !flag_pic.
3321         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
3322         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
3323         of PIC_OFFSET_TABLE_REGNUM thruout.
3324         * config/rs6000/rs6000.md: Likewise.
3325         * config/rs6000/darwin.h: Likewise.
3326
3327 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3328
3329         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
3330         unsigned HOST_WIDE_INT, not unsigned int.
3331
3332 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
3333
3334         PR middle-end/6096, middle-end/6098, middle-end/6099
3335         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
3336         CODE_LABELs.
3337         (fill_slots_from_thread): Likewise.
3338
3339 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
3340
3341         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
3342         floating fields in float regs.
3343         (function_arg_record_value_2): Likewise.
3344
3345 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
3346
3347         * config/mmix/mmix.md (define_constants): Remove misleading
3348         FIXME.  Add MMIX_fp_rO_OFFSET.
3349         ("nonlocal_goto_receiver"): Don't have stack-frame address of
3350         saved rO as part of the pattern.  Remove FIXME.
3351         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
3352         here, at output-time.
3353
3354 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
3355
3356         PR middle-end/6100
3357         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
3358         REG_BR_PRED.
3359         (output_v9branch): Likewise.
3360
3361 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
3362
3363         * gcc.c: Revert previous patch for now.
3364         * config/i386/djgpp.h: Likewise.
3365
3366 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
3367
3368         * config/mmix/crti.asm (_init): Register _fini with atexit.
3369         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
3370
3371 2002-03-31  Richard Henderson  <rth@redhat.com>
3372
3373         PR target/3997
3374         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
3375         (ASM_OUTPUT_DEF_FROM_DECLS): New.
3376
3377 2002-03-31  Richard Henderson  <rth@redhat.com>
3378
3379         * libgcc2.c (__bb_exit_func): Make static.
3380
3381         * config/alpha/alpha.md (trap): New.
3382
3383 2002-03-31  Richard Henderson  <rth@redhat.com>
3384
3385         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
3386         promoted argument types; build trap.
3387         (expand_builtin_trap): New.
3388         (expand_builtin): Use it.
3389         * stmt.c (expand_nl_goto_receivers): Likewise.
3390         * expr.h (expand_builtin_trap): Declare.
3391         * libfuncs.h (LTI_abort, abort_libfunc): New.
3392         * optabs.c (init_optabs): Init abort_libfunc.
3393
3394 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
3395
3396         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
3397         (LINK_COMMAND_SPEC): ... from here.
3398         (init_gcc_specs): Duplicate it here too, omitting
3399         shared_name in the second copy.
3400         (init_spec): Test for duplicate
3401         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
3402
3403 2002-03-30  David S. Miller  <davem@redhat.com>
3404
3405         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3406         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
3407
3408 2002-03-30  Roger Sayle <roger@eyesopen.com>
3409             Richard Henderson  <rth@redhat.com>
3410
3411         * regmove.c (combine_stack_adjustments_for_block): Avoid
3412         emitting a stack adjustment of zero bytes.  Let delete_insn
3413         update bb->head.
3414
3415 2002-03-30  Richard Henderson  <rth@redhat.com>
3416
3417         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
3418         (sparc_emitting_epilogue): New.
3419         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
3420         * config/sparc/sparc-protos.h: Update.
3421         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
3422         (TARGET_SWITCHES): Update.
3423         * config/sparc/sparc.md (return): Remove.
3424         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
3425         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
3426         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
3427         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
3428         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
3429         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
3430         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
3431         Remove MASK_EPILOGUE.
3432         * doc/invoke.texi: Update.
3433
3434 2002-03-30  Daniel Berlin  <dan@dberlin.org>
3435
3436         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
3437         CPP will start the file for us.
3438
3439 2002-03-30  Richard Henderson  <rth@redhat.com>
3440
3441         PR target/5446
3442         * config/ia64/ia64.c (group_barrier_needed_p): Special case
3443         prologue_allocate_stack.
3444         (ia64_single_set): Use insn codes for recognition of special
3445         cases, not rtl matching.
3446         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
3447
3448 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
3449
3450         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
3451
3452 2002-03-30  Richard Henderson  <rth@redhat.com>
3453
3454         PR target/6032
3455         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
3456         or -fomit-frame-pointer with profiling.
3457         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3458         (FUNCTION_PROFILER): Do nothing.
3459         (PROFILE_HOOK): New.
3460         * config/sparc/sparc.c (sparc_override_options): Don't check
3461         code models for profiling.
3462         (sparc_function_profiler): Remove.
3463         (sparc_profile_hook): New.
3464         * config/sparc/sparc-protos.h: Update.
3465
3466 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
3467
3468         PR optimization/6086
3469         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
3470         of SUBREG of volatile MEM or because the MEM was mode dependent,
3471         return CLOBBER instead of unmodified SUBREG.
3472
3473 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
3474
3475         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
3476         when not optimizing.
3477
3478         * toplev.c (rest_of_compilation): Cann mark_constant_function
3479         only when optimizing.
3480
3481         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
3482         are NULL.
3483
3484         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
3485         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
3486         (try_optimize_cfg): clear all AUX fields.
3487
3488         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
3489         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
3490         (ix86_address_cost): Be prepared for SUBREGed registers.
3491         (legitimate_address_p): Accept SUBREGed registers.
3492
3493 2002-03-29  Richard Henderson  <rth@redhat.com>
3494
3495         PR target/5672
3496         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
3497
3498 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3499
3500         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
3501         for aggregate and TFmode types.
3502
3503 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
3504
3505         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
3506
3507 2002-03-29  Richard Henderson  <rth@redhat.com>
3508
3509         PR target/5886
3510         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
3511         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
3512
3513 2002-03-29  Richard Henderson  <rth@redhat.com>
3514
3515         PR target/6041
3516         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
3517         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
3518         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
3519         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
3520         conditional.
3521         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
3522
3523 2002-03-29  Dale Johannesen <dalej@apple.com>
3524
3525         * loop.c (combine_movables): Do allow combination of pseudos.
3526
3527 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
3528
3529         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
3530         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
3531         No functional change except ...
3532         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
3533         * doc/install.texi (*-*-freebsd*): Document port configuration.
3534
3535 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3536
3537         * Makefile.in (convert.o, calls.o, expmed.o): Update.
3538         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
3539         Use new hooks.
3540         * builtin-types.def (BT_PTRMODE): Update.
3541         * c-common.c (type_for_size): Rename c_common_type_for_size.
3542         (type_for_mode): Similarly.
3543         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
3544         Use new hook.
3545         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
3546         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
3547         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
3548         Redefine.
3549         * c-typeck.c (common_type, comptypes, default_conversion):
3550         Use new hooks.
3551         * calls.c: Include langhooks.h.
3552         (emit_library_call_value_1): Use new hooks.  Avoid redundant
3553         calls.
3554         * convert.c: Include langhooks.h
3555         (convert_to_pointer, convert_to_integer): Use new hooks.
3556         * except.c (init_eh): Similarly.
3557         * expmed.c: Include langhooks.h.
3558         (expand_mult_add): Use new hooks.
3559         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
3560         try_casesi): Similarly.
3561         * fold-const.c (optimize_bit_field_compare, make_range,
3562         decode_field_reference, fold_truthop, fold): Similarly.
3563         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
3564         put_var_into_stack): Similarly.
3565         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
3566         LANG_HOOKS_TYPE_FOR_SIZE): New.
3567         (LANG_HOOKS_TYPES_INITIALIZER): Update.
3568         * langhooks.h (lang_hooks_for_types): New hooks.
3569         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
3570         * tree.c (get_unwidened, get_narrower): Similarly.
3571         * tree.h (type_for_mode, type_for_size): Remove.
3572         * varasm.c (force_const_mem): Use new hooks.
3573         * utils2.c (nonbinary_modular_operation): Update.
3574 objc:
3575         * objc-act.c (handle_impent): Update.
3576         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
3577         Redefine.
3578
3579 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
3580
3581         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
3582         * config/ia64/ia64.c (basereg_operand): New.
3583         * config/ia64/ia64-protos.h (basereg_operand): Declare.
3584         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
3585
3586 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
3587
3588         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
3589         unwind information when frame_pointer_needed.
3590         (mmix_assemble_integer): Tweak wording in comment.
3591
3592 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3593
3594         * Makefile.in (except.o): Update.
3595         * except.c: Include langhooks.h.
3596         (init_eh): Use langhook.
3597         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
3598         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
3599         (LANG_HOOKS_INITIALIZER): Update.
3600         * langhooks.h (lang_hooks_for_types): New.
3601         (struct lang_hooks): Add it.
3602         * tree.c (make_lang_type_fn, make_lang_type): Remove.
3603         * tree.h (make_lang_type_fn, make_lang_type): Remove.
3604 config:
3605         * alpha/alpha.c: Include langhooks.h.
3606         (alpha_build_va_list): Use langhook.
3607         * d30v/d30v.c: Include langhooks.h.
3608         (d30v_build_va_list): Use langhook.
3609         * i386/i386.c: Include langhooks.h.
3610         (ix86_build_va_list): Use langhook.
3611         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
3612         * s390/s390.c: Include langhooks.h.
3613         (s390_build_va_list): Use langhook.
3614         * stormy16/stormy16.c: Include langhooks.h.
3615         (stormy16_build_va_list): Use langhook.
3616
3617 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
3618
3619         PR c++/5964
3620         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
3621         attributes.
3622         (length): Compute variable length for branches/calls/jumps here.
3623         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
3624         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
3625         define branch_type attribute.
3626         (divsi3_sp32): Maximum length is 6 not 7.
3627         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
3628         call_address_untyped_struct_value_sp32,
3629         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
3630         * config/sparc/sparc.c (empty_delay_slot): New function.
3631         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
3632         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
3633
3634 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
3635
3636         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
3637         nonzero_bits if not needed.
3638         (nonzero_bits) [XOR]: Likewise.
3639         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
3640         reg_last_set_mode and mode are both MODE_INT, but not equal.
3641         (record_value_for_reg): Compute reg_last_set_nonzero_bits
3642         in nonzero_bits_mode for MODE_INT modes.
3643
3644 2002-03-28  Richard Henderson  <rth@redhat.com>
3645
3646         PR target/5715
3647         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
3648         to GAS.  Correct drift between alternatives.
3649
3650 2002-03-28  Richard Henderson  <rth@redhat.com>
3651
3652         PR target/6087
3653         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
3654
3655 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
3656
3657         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
3658         emulation to the linker.
3659
3660 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
3661
3662         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
3663         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
3664
3665 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
3666
3667         * combine.c (simplify_and_const_int): Make sure to apply mask
3668         when force_to_mode returns a constant integer.  PR3311.
3669
3670 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3671
3672         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
3673
3674 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3675
3676         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
3677         and Objective-C Dialect Options.
3678
3679 2002-03-28  Richard Henderson  <rth@redhat.com>
3680
3681         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
3682         comparison should be done vs !=0 not >0 return code.  Tidy cases.
3683
3684 2002-03-28  Richard Henderson  <rth@redhat.com>
3685
3686         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
3687         on to c_expand_body.
3688         * c-tree.h (finish_function): Update decl.
3689         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
3690
3691 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
3692
3693         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
3694
3695 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
3696
3697         * rtlanal.c: Include flags.h
3698         (may_trap_p): Do not mark FP operations if trapping
3699         if !flag_trapping_math
3700         * Makefile.in (rtlanal.o): Add dependency on flag.h
3701         * ifcvt.c (noce_operand_ok): Avoid the lameness.
3702
3703 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
3704
3705         * mips.md: Use dconst1, not 1.0, as first argument of
3706         REAL_VALUE_LDEXP.  Don't use union real_extract.
3707
3708 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
3709
3710         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
3711         rather than $target.  Heed program_prefix and
3712         program_transform_name.  Search for gas in cross-compiler case too.
3713         "test -x" rather than "test -f".
3714         (gcc_cv_ld): Likewise.
3715         (gcc_cv_nm): Heed program_prefix and program_transform_name.
3716         (gcc_cv_objdump): Likewise.
3717         * configure: Regenerate.
3718
3719 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3720
3721         * Makefile.in (attribs.o): Update.
3722         * attribs.c: Include langhooks.h.
3723         (decl_attributes): Use langhook.
3724         * c-decl.c (insert_default_attributes): Rename.
3725         * c-tree.h (c_insert_default_attributes): New.
3726         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
3727         (LANG_HOOKS_INITIALIZER): Update.
3728         * langhooks.h (struct lang_hooks): New hook.
3729         * tree.h (insert_default_attributes): Remove.
3730 objc:
3731         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
3732
3733 2002-03-27  Andreas Schwab  <schwab@suse.de>
3734
3735         * config/i386/i386.c (classify_argument): Also check for
3736         QUAL_UNION_TYPE.
3737
3738 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3739
3740         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
3741         any more.
3742
3743 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
3744
3745         * i960.md (ret): Set PC.
3746         (nonlocal_goto): Fix expander.
3747         * builtins.c (epxand_builin_longjmp): Check that we've emitted
3748         some jump or call.
3749
3750 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
3751
3752         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
3753         of libcall regions.
3754
3755 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3756
3757         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
3758         assigning to BLOCK_FOR_INSN directly.
3759
3760 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
3761
3762         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
3763
3764 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3765
3766         * c-common.c (c_expand_expr): Fix prototype.
3767         * c-common.h (c_expand_expr): Always declare, update.
3768         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
3769         * c-objc-common.c (c_objc_common_init): No global hook.
3770         * expr.c (expand_expr): Use langhook.
3771         * expr.h (enum expand_modifier): Conditionally declare.
3772         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
3773         (LANG_HOOKS_INITIALIZER): Update.
3774         * langhooks.c (lhd_expand_expr): New.
3775         * langhooks.h (struct lang_hooks): New hook.
3776         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
3777         (lang_independent_init): Don't default hook.
3778 objc:
3779         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
3780
3781 2002-03-27  Richard Henderson  <rth@redhat.com>
3782
3783         PR target/6054
3784         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
3785         TARGET_CONST_GP.  Simplify conditions.
3786
3787 2002-03-27  Richard Henderson  <rth@redhat.com>
3788
3789         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
3790         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
3791         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
3792
3793 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
3794
3795         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
3796         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
3797         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
3798         Remove unnecessary masks.
3799         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
3800         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
3801         -mwindows, -mdll switches and their negations.
3802
3803 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3804
3805         * gcc-common.c (lang_mark_false_label_stack): Remove.
3806         * ggc.h (lang_mark_false_label_stack): Similarly.
3807
3808 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
3809
3810         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
3811
3812         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
3813         or __rtems_ is defined.
3814
3815 2002-03-26  Richard Henderson  <rth@redhat.com>
3816
3817         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
3818         if a non-trivial load was emitted.
3819         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
3820         in high+extra+low case.
3821
3822 2002-03-26  Richard Henderson  <rth@redhat.com>
3823
3824         * config.gcc (sparc*-solaris): Use float_format=sparc.
3825
3826 2002-03-26  Richard Henderson  <rth@redhat.com>
3827
3828         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
3829         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
3830         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
3831         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
3832         (WINT_TYPE_SIZE): Fix at 32.
3833
3834 2002-03-26  Richard Henderson  <rth@redhat.com>
3835
3836         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
3837         until after eh landing pad generation.
3838         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
3839         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
3840
3841 2002-03-26  Richard Henderson  <rth@redhat.com>
3842
3843         * expr.h (ADD_PARM_SIZE): One more convert for INC.
3844
3845 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
3846
3847         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
3848         and warning switches.
3849         (cc1_options):  Likewise.
3850
3851 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
3852
3853         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
3854         Restore more of the signal context.  Set no_reg_stack_frame.
3855         * config/ia64/unwind-ia64.c (unw_state_record):
3856         Add no_reg_stack_frame, comments.
3857         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
3858         (uw_update_context): Adjust bsp when unwinding from leaf,
3859         but not signal frame.
3860
3861 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
3862
3863         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
3864
3865 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
3866
3867         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
3868
3869 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
3870
3871         PR target/5621
3872         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
3873         "Add a pool_range attribute", which was lost during the ARM/Thumb
3874         merge.
3875
3876 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
3877
3878         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
3879         a register into the MAC16 accumulator.
3880
3881 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
3882
3883         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
3884         (Warning Options): Document -Wswitch-enum.
3885         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
3886         -Wswitch.
3887         (warn_switch_enum): Define variables.
3888         * flags.h (warn_switch_enum): Declare variables.
3889         * stmt.c (expand_end_case_type): When warn_switch_enum /
3890         -Wswitch-enum, perform switch checks.
3891         Fix PR c/5044.
3892
3893 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
3894
3895         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
3896         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
3897         (reload_muladdsi_compare0_scratch): Delete.
3898
3899 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
3900
3901         * doc/install.texi (*-*-freebsd*): Update.
3902
3903 2002-03-26  Richard Henderson  <rth@redhat.com>
3904
3905         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
3906         (SUB_PARM_SIZE): Cast DEC to ssizetype.
3907
3908         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
3909         types from the normal argument frame.
3910
3911         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
3912         variable sized objects by reference.
3913         (sparc_va_arg): Receive them by reference too.
3914
3915 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
3916
3917         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
3918         code to not restoring global registers.
3919
3920 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
3921
3922         * Makefile.in (ggc-common.o): Update.
3923         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
3924         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
3925         * c-tree.h (c_mark_tree): New.
3926         * ggc-common.c: Include langhooks.h.
3927         (gcc_mark_trees): Use new langhook.
3928         * ggc-callbacks.c: Delete file.
3929         * ggc.h (lang_mark_tree): Remove.
3930         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
3931         (LANG_HOOKS_INITIALIZER): Update.
3932         * langhooks.h (struct lang_hooks): New hook.
3933 objc:
3934         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
3935
3936 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
3937
3938         * doc/cpp.texi: Exclude entire Top node from printed manual.
3939         Move option index after directive index.  Insert page breaks
3940         before GFDL and concept index.  Index environment variables
3941         with command line options.
3942         * doc/cppenv.texi: Use @vtable for environment variable list.
3943         Add paragraph explaining semantics of empty elements in path
3944         variables.  Exclude a cross-reference to Fishkill from the
3945         manpage.  Remove an unnecessary cross-reference of the entry
3946         right above the referer.  Don't use @anchor in text that goes
3947         into manpage.
3948         * doc/cppopts.texi: Cross-reference the environment variables
3949         section, not the specific environment variable, for consistency.
3950
3951 2002-03-25  Richard Henderson  <rth@redhat.com>
3952
3953         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
3954         anywhere in the block.  Don't refer to insns that have been
3955         removed from the chain.  Iterate backward through the new insns.
3956         Don't refer to edges that have been removed.
3957
3958 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
3959
3960         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
3961         test for overflow of constant.
3962
3963 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
3964
3965         PR target/2623
3966         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
3967         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
3968         these patterns on arm_archv4.
3969
3970 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
3971
3972         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
3973         int".
3974
3975 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
3976
3977         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
3978         float_handled, float_handler, float_signal, set_float_handler,
3979         and do_float_handler.  Set handler for SIGFPE to crash_signal.
3980         * toplev.h: Don't prototype do_float_handler.
3981
3982         * c-lex.c: Fold parse_float into lex_number.  Make warning
3983         about portability of hex float constants more informative, and
3984         don't issue it on top of a syntax error.
3985         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
3986         their callers.
3987         * real.h: Define REAL_VALUE_ABS here...
3988         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
3989         simplify_unary_real, simplify_binary_real, and
3990         simplify_binary_is2orm1 into their callers.
3991         * tree.c: Fold build_real_from_int_cst_1 into caller.
3992
3993         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
3994
3995         * tsystem.h: Include float.h here...
3996         * libgcc2.c: ... not here.
3997
3998 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
3999
4000         Fixes for: PR bootstrap/3591, target/5676
4001         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
4002         defined.  Do not disable exceptions or rtti.
4003         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
4004         mcore.h.  Disable exceptions and rtti, since they are not
4005         supported by EPOC.
4006
4007 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
4008
4009         * c-decl.c (maybe_build_cleanup): Remove.
4010         * expr.c (expand_expr): Use langhook.
4011         * langhooks-def.h (lhd_return_null_tree,
4012         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
4013         (LANGHOOKS_INITIALIZER): Update.
4014         * langhooks.c (lhd_return_null_tree): New.
4015         * langhooks.h (struct lang_hooks): New hook.
4016         * tree-inline.c (initialize_inlined_parameters): Use langhook.
4017         * tree.h (maybe_build_cleanup): Remove.
4018
4019 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
4020
4021         * regrename.c (build_def_use): Move recog_memoized
4022         before extract_insn.
4023
4024 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
4025
4026         PR target/6043
4027         * expr.c (emit_group_store): Handle storing into CONCAT.
4028
4029 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
4030
4031         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
4032         corresponding MATCH_DUP.
4033
4034 2002-03-24  Richard Henderson  <rth@redhat.com>
4035
4036         * unroll.c (unroll_loop): Zero label_map.
4037
4038         * gcse.c: Include except.h.
4039         * Makefile.in (gcse.o): Update.
4040
4041 2002-03-24  Richard Henderson  <rth@redhat.com>
4042
4043         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
4044         Do resolve_unique_section before shared data clause.
4045
4046 2002-03-24  Richard Henderson  <rth@redhat.com>
4047
4048         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
4049
4050 2002-03-24  Richard Henderson  <rth@redhat.com>
4051
4052         * recog.c (peephole2_optimize): Split blocks when EH insns are
4053         generated in the middle of a block.  Do global life update if
4054         zapped EH edges.
4055
4056 2002-03-24  Richard Henderson  <rth@redhat.com>
4057
4058         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
4059
4060 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4061
4062         preprocessor/3951
4063         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
4064         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
4065         (init_dependency_output): Don't make no_output decision here.
4066
4067 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
4068
4069         * stmt.c (check_for_full_enumeration_handling): Remove tests of
4070         warn_switch.  Update description.
4071         (expand_end_case_type): Call check_for_full_enumeration_handling
4072         when warn_switch.
4073
4074 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4075
4076         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
4077         (m68hc11_split_move): Call it to see if the source and destination
4078         operands use the same direction auto inc/dec mode, otherwise make the
4079         source an offsetable memory operand and generate an add.
4080
4081 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4082
4083         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
4084         register for operand 2.
4085         ("*subsi3_zero_extendqi"): Likewise.
4086         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
4087         bits so that it is compatible with a pop.
4088         ("*andhi3_gen"): Likewise.
4089         ("xorhi3"): Likewise.
4090
4091 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4092
4093         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
4094         -pedantic here...
4095         (cpp_post_options): ... not here.
4096
4097 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4098             Aldy Hernandez  <aldyh@redhat.com>
4099
4100         Removal of separate preprocessor cpp0.
4101
4102         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
4103         cpp0, install-common): Update.
4104         * c-common.c (flag_preprocess_only): New.
4105         (c_common_init): Preprocess for -E.
4106         * c-common.h (flag_preprocess_only): New.
4107         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
4108         * c-objc-common.c (c_init_decl_processing): Exit quickly
4109         for NULL return from c_common_init.
4110         * cpplib.h (cpp_preprocess_file): New.
4111         * cppmain.c (main, general_init, pfile, progname): Remove.
4112         (do_preprocessing): Rename cpp_preprocess_file, don't call
4113         cpp_finish.  Don't close stdout here.
4114         (setup_callbacks): Update prototype.
4115         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
4116         Update.
4117         * tradcpp.c (main): Ignore -quiet.
4118 objc:
4119         * lang-specs.h (default_compilers): Preprocess with cc1obj.
4120
4121 2002-03-24  Richard Henderson  <rth@redhat.com>
4122
4123         PR optimization/5742
4124         * machmode.def: Add inner mode field to complex modes.
4125         * config/mips/mips.c (mips_function_value): Always define.  Add
4126         new argument to handle libcalls.
4127         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
4128         (FUNCTION_VALUE): Likewise.
4129         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
4130         * config/mips/mips-protos.h: Update.
4131
4132 2002-03-23  Richard Henderson  <rth@redhat.com>
4133
4134         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
4135         * config/sparc/sparc-protos.h: Update.
4136         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
4137
4138 2002-03-23  Richard Henderson  <rth@redhat.com>
4139
4140         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
4141         _start or _init begins the text segment.
4142
4143 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
4144
4145         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
4146         not HOST_WIDEST_INT.
4147         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
4148
4149 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
4150
4151         PR java/5489
4152         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
4153         operand argument to output_return_instruction.
4154         * arm.c (arm_print_operand, case 'd'): If the operand is
4155         const_true_rtx then just return.
4156         (arm_print_operand, case 'D'): If the operand is const_true_rtx
4157         then abort.
4158
4159 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
4160
4161         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
4162         (Warning Options): Document -Wswitch-default.
4163         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
4164         -Wswitch.
4165         (warn_switch_default): Define variable.
4166         (warn_switch): Update comment.
4167         * flags.h (warn_switch_default): Declare variable.
4168         (warn_switch): Update comment.
4169         * stmt.c (expand_end_case): Check for and, when
4170         warn_switch_no_default, warn of a missing default case.
4171
4172 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
4173
4174         * real.h (N): Special case 128 bit doubles.
4175
4176         * combine.c (simplify_comparison): When widening modes, ignore
4177         sign extension on CONST_INTs.
4178
4179 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
4180
4181         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
4182         passed to adjust_address.  Fix comment formatting.
4183
4184
4185 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
4186
4187         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
4188         Always make REAL_VALUE_TYPE a struct containing an array of
4189         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
4190         big it is.  Don't declare or use union real_extract.
4191
4192         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
4193         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
4194         (print_operand), config/arm/arm.c (output_move_double),
4195         config/arm/arm.md (consttable_4, consttable_8),
4196         config/romp/romp.c (output_fpops), config/s390/s390.h
4197         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
4198         (xtensa_output_literal): Don't use union real_extract.
4199
4200         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
4201         (sfmode_constant_to_ulong), config/ns32k/merlin.h
4202         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
4203         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
4204         (PRINT_OPERAND): Don't use local version of union
4205         real_extract.
4206
4207         * config/convex/convex.c (check_float_value), config/vax/vax.c
4208         (vax_float_literal), config/m88k/m88k.md (divdf3),
4209         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
4210         config/pdp11/pdp11.c (output_move_quad): Don't do host
4211         arithmetic on target floating point quantities.
4212
4213         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
4214         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
4215
4216         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
4217         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
4218
4219         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
4220         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
4221         INFINITY.
4222         * print-rtl.c (print_rtx): Disable code which needs
4223         floating-point emulator.
4224         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
4225         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
4226         depending on HOST_FLOAT_FORMAT to be defined properly.
4227
4228         * config/1750a/1750a.c (get_double, float_label): Delete.
4229         (print_operand): Delete huge commented-out chunk.  Use
4230         REAL_VALUE_TO_DECIMAL.
4231         * config/1750a/1750a-protos.h: Delete prototypes of deleted
4232         functions.
4233         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
4234         IEEE_FLOAT_FORMAT.
4235         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
4236         Use REAL_VALUE_TO_DECIMAL as ELF version does.
4237         * config/m88k/m88k.c (real_power_of_2_operand,
4238         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
4239         real_extract out of the union; run the input through
4240         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
4241         from that into the union.
4242         * config/pdp11/pdp11.c (output_move_double): Rearrange
4243         parentheses to make automatic indenter happy.
4244
4245         * doc/tm.texi (Cross-compilation): Rename node to "Floating
4246         Point" and rewrite to describe current situation.  Also adjust
4247         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
4248         match code.
4249         * doc/rtl.texi: Adjust cross reference.
4250
4251 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
4252
4253         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
4254         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
4255         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
4256         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
4257         prevent use of sp as a reload register.
4258         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
4259         non_acc_reg_operand.
4260         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
4261         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
4262         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
4263         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
4264
4265 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
4266
4267         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
4268         * cpplex.c (unterminated): Delete.
4269         (parse_string): No string literal may extend over multiple
4270         lines.  Suppress the error when preprocessing assembly.
4271         * cppmain.c (scan_translation_unit): Strings are single-line.
4272
4273         * doc/cpp.texi: Update to match.
4274
4275 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
4276
4277         PR optimization/5854
4278         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
4279         Shut up warnings.
4280         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
4281         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
4282         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
4283         const0 if scratch register was not allocated.
4284         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
4285         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
4286         with GEN_INT (...).
4287         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
4288         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
4289         with GEN_INT (...) everywhere.  Remove constraints in define_split
4290         patterns.
4291         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
4292         require scratch register for setting 0 into regs/non-pushable memory.
4293
4294 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
4295
4296         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
4297         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
4298
4299 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
4300
4301         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
4302         * cppinit.c (cpp_create_reader):  On by default.
4303         (cpp_handle_option):  Handle -W[no-]endif-labels.
4304         (cpp_post_options):  Also enable if -pedantic.
4305         * cpplib.c (do_else):  Use it.
4306         (do_endif):  Likewise.
4307         * doc/cppopts.texi:  Document new option.
4308         * doc/invoke.texi:  Document new option.
4309
4310 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
4311
4312         * config/i386/i386.c, config/i386/i386.md: Change all occurences
4313         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
4314
4315 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
4316
4317         * flow.c (calculate_global_regs_live): Clear aux fields of
4318         ENTRY and EXIT.
4319
4320 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
4321
4322         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
4323         REG or MEM subregs, pass rtx * instead of rtx to it.
4324         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
4325         rtx * instead of rtx to alter_subreg.
4326         * config/m32r/m32r.c (gen_split_move_double): Likewise.
4327         * config/pj/pj.c (pj_output_rval): Likewise.
4328
4329 2002-03-22  Richard Henderson  <rth@redhat.com>
4330
4331         PR target/3177
4332         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
4333         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
4334         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
4335         (ia64_expand_prologue): Look at int_regs, not words, for number
4336         of incomming int regs.
4337
4338 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
4339
4340         * expr.c (expand_expr): A RESULT_DECL is part of a call.
4341
4342 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
4343
4344         * toplev.c (flag_loop_optimize, flag_crossjumping):
4345         New static variables.
4346         (rest_of_compilation): Conditionalize crossjumping and
4347         loop optimizer.
4348         (parse_options_and_default_flags): Default loop_optimize and
4349         crossjumping.
4350         (lang_independent_options): Add -fcrossjumping and -floop-optimize
4351         * invoke.texi (crossjumping, loop-optimize): Document.
4352
4353 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
4354
4355         * real.c (eiisneg): Move outside #ifdef NANS.
4356
4357 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
4358
4359         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
4360         frequencies match; avoid match on different loop depths.
4361         (try_crossjump_to_bb): Kill tests that no longer brings time
4362         savings.
4363         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
4364         updating code.
4365         (split_edge): Likewise.
4366
4367         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
4368         variable.
4369
4370         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
4371         * cfgrtl.c: Include insn-config.h
4372         (split_block) Dirtify block in presence of conditional execution
4373
4374 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
4375
4376         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
4377         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
4378         (function_arg): Constify CUMULATIVE_ARGS.
4379         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
4380         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
4381         (UNITS_PER_DOUBLE): New macro.
4382         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
4383         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
4384         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
4385         fp_regs and stack_words.
4386         (EABI_FLOAT_VARARGS_P): New macro.
4387         * config/mips/mips.c (struct mips_arg_info): New.
4388         (mips_arg_info): New function.
4389         (function_arg_advance): Use it.  Add adjustment instructions here
4390         rather than in function_arg.
4391         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
4392         for VOIDmode at the beginning of the function.
4393         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
4394         (function_arg_pass_by_reference): Likewise.
4395         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
4396         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
4397         (mips_va_start): Likewise.  Use the new stack_words field of
4398         CUMULATIVE_ARGS to set up overflow area.  Reformat.
4399         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
4400         doubles and other types, aligning the overflow pointer for non-doubles
4401         too.  Remove some code duplication.  Replace hard-coded constants.
4402
4403 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
4404
4405         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
4406         (CLASS_UNITS): Undefine.
4407         (CLASS_MAX_NREGS): Use FP_INC.
4408         * config/mips/mips.c (compute_frame_size): Likewise.
4409         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
4410
4411 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
4412
4413         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
4414         prototype, and handle lexing numbers and identifiers.
4415         (parse_identifier): Update to new form of parse_slow.
4416         (parse_number): Fast path only, use parse_slow otherwise.
4417         (_cpp_lex_direct): Update calls to parse_number.
4418
4419 2002-03-21  DJ Delorie  <dj@redhat.com>
4420
4421         * bb-reorder.c (make_reorder_chain_1): Protect against
4422         when redundant edges are omitted.
4423         * predict.c (dump_prediction): Likewise.
4424
4425 2002-03-21  Richard Henderson  <rth@redhat.com>
4426
4427         PR target/5996
4428         * fixinc/inclhack.def (solaris_stdio_tag): New.
4429         * fixinc/fixincl.x: Regenerate.
4430
4431 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
4432
4433         PR c/5597
4434         * c-typeck.c (process_init_element): Flag non-static
4435         initialization of a flexible array member as illegal.
4436
4437 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
4438
4439         * config/rs6000/t-linux64: New.
4440         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
4441         t-ppccomm.  Use t-rs6000 and t-linux64.
4442         (powerpc64-*-gnu* <tmake_file>): Likewise.
4443         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
4444         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
4445         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
4446
4447 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
4448
4449         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
4450         flag_really_no_inline instead of optimize == 0.
4451
4452         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
4453
4454         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
4455
4456         * flags.h (flag_really_no_inline): New.
4457
4458         * c-common.c (c_common_post_options): Initialize
4459         flag_really_no_inline.
4460
4461         * toplev.c (flag_really_no_inline): New.
4462
4463 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
4464
4465         * config/avr/avr.md (length): Fix length computation for
4466         conditional branches.
4467
4468 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
4469
4470         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
4471         sdbout.o, profile.o): Update.
4472         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
4473         langhook.
4474         * c-common.h (gettags): Move here from tree.h.
4475         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
4476         insert_block, getdecls, kept_level_p, global_bindings_p): New.
4477         * dbxout.c (dbxout_init): Use getdecls langhook.
4478         * expr.c (expand_expr): Use insert_block langhook.
4479         * fold-const.c: Include langhooks.h.
4480         (fold_range_test, fold_binary_op_with_conditional_arg,
4481         fold): Use global_bindings_p langhook.
4482         * integrate.c (expand_inline_function): Use insert_block langhook.
4483         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
4484         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
4485         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
4486         LANG_HOOKS_GETDECLS): New.
4487         (LANG_HOOKS_INITIALIZER): Update.
4488         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
4489         langhook.
4490         * langhooks.h (struct lang_hooks_for_decls): New.
4491         (struct lang_hooks): Update.
4492         * profile.c: Include langhooks.h.
4493         (output_func_start_profiler): Use new langhooks.
4494         * sdbout.c: Include langhooks.h.
4495         (sdbout_init, sdbout_finish): Use getdecls langhook.
4496         * stmt.c: Include langhooks.h.
4497         (expand_fixup, fixup_gotos): Use new langhooks.
4498         * stor-layout.c: Include langhooks.h.
4499         (variable_size): Use global_bindings_p langhook.
4500         * toplev.c (compile_file): Use getdecls langhook.
4501         * tree-inline.c (remap_block): Use insert_block langhook.
4502         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
4503         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
4504
4505 2002-03-21  Richard Henderson  <rth@redhat.com>
4506
4507         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
4508         constants in .data when -fpic.
4509
4510 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4511
4512         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
4513         where appropriate.
4514
4515 2002-03-21  Tom Tromey  <tromey@redhat.com>
4516
4517         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
4518
4519 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4520
4521         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
4522
4523         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
4524
4525 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
4526             Richard Henderson  <rth@redhat.com>
4527
4528         PR c/5354
4529         * c-common.c (c_expand_expr): Preserve result of a statement
4530         expression if needed.
4531
4532 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
4533
4534         PR bootstrap/4195
4535         * genrecog.c (maybe_both_true_mode): Remove.
4536         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
4537         * machmode.def (Pmode): Likewise.
4538
4539 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
4540
4541         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
4542         (nonlocal_mentioned_p_1): New function.
4543         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
4544         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
4545         (mark_constant_function): Recognize pure functions.
4546         * rtl.h (global_reg_mentioned_p): New prototype.
4547         * rtlanal.c (global_reg_mentioned_p,
4548         global_reg_mentioned_p_1): New function.
4549
4550 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4551
4552         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
4553         UNIX assert.h.
4554         * fixinc/fixincl.x: Regenerate.
4555
4556 2002-03-20  Jason Merrill  <jason@redhat.com>
4557
4558         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
4559
4560 2002-03-20  Michael Meissner  <meissner@redhat.com>
4561
4562         * doc/invoke.texi (Optimize Options): Document that -O2 sets
4563         -fstrict-aliasing.
4564
4565 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
4566
4567         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
4568         ".literal_position" directive before the constant pool.
4569
4570 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4571
4572         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
4573         Add Craig Rodrigues.
4574         Add Brad Lucier to testers.
4575
4576 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
4577
4578         PR target/4792
4579         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
4580         to if_then_else.
4581         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
4582         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
4583         instead of insn_extract.
4584
4585 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
4586
4587         PR bootstrap/4192
4588         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
4589
4590         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
4591         stmt if some case has been output.
4592
4593 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
4594
4595         PR c/5972
4596         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
4597         movsfcc_1, movdfcc_1): Add %O2.
4598         * config/i386/i386.c (print_operand): Handle %ON.
4599         Print . before float condition codes in Sun as cmov syntax.
4600         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
4601         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
4602         no longer true.
4603
4604 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
4605
4606         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
4607         return instruction if PC was popped.
4608
4609 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
4610
4611         * config/xtensa/xtensa.md: Remove unused type attributes.
4612         (adddi_carry, subddi_carry): Change type attribute to "multi".
4613
4614 2002-03-19  Dale Johannesen  <dalej@apple.com>
4615
4616         PR optimization/5999, middle-end/5731
4617         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
4618         multiplications by reciprocals.
4619
4620 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
4621
4622         * Makefile.in: Update.
4623         * c-common.c: Include langhooks.h.
4624         (inline_forbidden_p): Use new hook.
4625         * diagnostic.c: Include langhooks.h.
4626         (format_with_decl, announce_function,
4627         default_print_error_function): Use new hook.
4628         * dwarf2out.c (dwarf2_name): Use new hook.
4629         * function.c: Include langhooks.h.
4630         (init_function_start): Use new hook.
4631         * langhooks-def.h (lhd_decl_printable_name): New.
4632         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
4633         (LANGHOOKS_INITIALIZER): Update.
4634         * langhooks.c (lhd_decl_printable_name): New.
4635         * langhooks.h (struct lang_hooks): New hook.
4636         * toplev.c (decl_name, decl_printable_name): Remove.
4637         (open_dump_file): Use new hook.
4638         (process_options): Remove old hook.
4639         * tree.h (decl_printable_name): Remove.
4640 objc:
4641         * objc-act.c (objc_init): Remove old hook.
4642         (objc_printable_name): Export.
4643         * objc-act.h (objc_printable_name): New.
4644         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
4645
4646 2002-03-19  Jim Blandy  <jimb@redhat.com>
4647
4648         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
4649         the start_source_file debug hook, not the current line number.
4650
4651 2002-03-19  Richard Henderson  <rth@redhat.com>
4652
4653         * flow.c (EH_USES): Provide default.
4654         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
4655         * doc/tm.texi (EH_USES): New.
4656
4657         * config/ia64/ia64.c (ia64_eh_uses): New.
4658         * config/ia64/ia64-protos.h: Update.
4659         * config/ia64/ia64.h (EH_USES): New.
4660
4661 2002-03-19  Richard Henderson  <rth@redhat.com>
4662
4663         * varasm.c (output_constant_def): Fix stupid typo.
4664
4665 2002-03-19  Richard Henderson  <rth@redhat.com>
4666
4667         PR 5879
4668         * except.c (current_function_has_exception_handlers): New.
4669         * except.h: Declare it.
4670         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
4671         Combine tests that disable all sibcalls for the function.
4672
4673 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
4674
4675         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
4676         for INTEGER_CST.
4677
4678 2002-03-19  Richard Henderson  <rth@redhat.com>
4679
4680         PR 5977, 5991
4681         * config/ia64/ia64.c: Revert 2002-03-01 patch.
4682         * config/ia64/ia64.h (INIT_EXPANDERS): New.
4683
4684 2002-03-19  Jim Blandy  <jimb@redhat.com>
4685
4686         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
4687         name, even if the replacement list contains no tokens, as required
4688         by Dwarf.
4689
4690 2002-03-19  Jason Merrill  <jason@redhat.com>
4691
4692         * varasm.c (globalize_decl): Get the name from the RTL, not
4693         DECL_ASSEMBLER_NAME.
4694
4695         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
4696
4697 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
4698
4699         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
4700         subdi_carry): Define.
4701
4702 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
4703
4704         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
4705         about -fpic/-fPIC if extra_warnings set.
4706
4707 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
4708
4709         * expr.c (expand_expr): Sign-extend CONST_INT generated from
4710         TREE_STRING_POINTER.
4711         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
4712
4713 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4714
4715         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
4716         in favor of SP if FRAME_POINTER_REQUIRED is false.
4717
4718 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
4719
4720         * emit-rtl.c (gen_int_mode): New function.
4721         * rtl.h: Prototype for it.
4722         * combine.c (make_extraction, simplify_comparison), expmed.c
4723         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
4724         (convert_modes, store_field), optabs.c (expand_fix),
4725         simplify-rtx.c (neg_const_int, simplify_unary_real),
4726
4727         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
4728         Use it instead of GEN_INT (trunc_int_for_mode (...)).
4729
4730 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
4731
4732         PR c/5656
4733         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
4734         convert_parm_for_inlining.
4735         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
4736         Define.
4737         * langhooks-def.h: Likewise.
4738         * objc/objc-lang.c: Likewise.
4739         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
4740         function.
4741         * tree-inline.c (initialize_inlined_parameters):
4742         Call convert_parm_for_inlining lang hook if needed.
4743         * c-typeck.c (c_convert_parm_for_inlining): New function.
4744         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
4745
4746 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
4747
4748         * calls.c (precompute_arguments): Do not assume that temporaries
4749         can be destroyed after expanding the argument.
4750         (expand_call): Likewise.
4751
4752 2002-03-15  Eric Christopher  <echristo@redhat.com>
4753
4754         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
4755         Fix register preference on last change.
4756         * config/mips/mips.c (mips_return_in_memory): New function.
4757         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
4758         * config/mips/mips-protos.h: Declare.
4759         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
4760         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
4761
4762 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
4763
4764         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
4765         a register too.
4766         (anddi3, iorsi3): Likewise.
4767
4768         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
4769         use %gprel for symbols that are going to be placed in linkonce
4770         sections.
4771
4772         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
4773         RETURN_ADDRESS_POINTER_REGNUM to $ra.
4774         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
4775         not needed.  Disregard leaf_function_p().
4776         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
4777         mips16 frame pointer.
4778         * config/mips/mips.md (store ra): Only to small SP offsets.
4779         2001-08-22  Graham Stott  <grahams@redhat.com>
4780         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
4781         return a REG rtx for the return address register.
4782
4783 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
4784
4785         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
4786         constant-pool addresses as "mode-dependent".
4787         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
4788
4789 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
4790
4791         PR target/5740
4792         * expr.c (emit_group_load): Use extract_bit_field if
4793         needed for CONCAT arguments.
4794
4795 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
4796
4797         PR target/4863
4798         * arm.md (tablejump): Make this a define_expand.  For PIC add the
4799         offset to the base of the table.
4800         (thumb_tablejump): Matcher for Thumb tablejump insn.
4801         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
4802         as the difference of two labels.
4803         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4804         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
4805         tables in the code.
4806         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
4807         * arm.c (get_jump_table_size): If the table is not in the text
4808         section, return zero.
4809
4810 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
4811
4812         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
4813         of gen_rtx_SUBREG.
4814         (arm_reload_out_hi): Use gen_lowpart instead of
4815         gen_rtx_SUBREG to access QImode components.
4816         * config/arm/arm.md: Disable zero_extend split for QImode
4817         subregs in BIG_ENDIAN mode.
4818         (storehi_bigend): Match use of least significant byte.
4819         (storeinthi): Remove extraneous SUBREG.
4820         Add missing construction of operands[2].
4821         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
4822         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
4823         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
4824
4825 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
4826
4827         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
4828         any_operand.
4829
4830 2002-03-17  Richard Henderson  <rth@redhat.com>
4831
4832         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
4833         explicitly.
4834
4835 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
4836
4837         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
4838         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
4839
4840 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4841
4842         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
4843
4844         * predict.c (estimate_bb_frequencies): Delete unused variables.
4845
4846 2002-03-17  Richard Henderson  <rth@redhat.com>
4847
4848         * config/ia64/ia64.c (ia64_attribute_table): Move before
4849         targetm definition.  Make static.
4850
4851 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
4852
4853         * c-common.h (yyparse, c_common_parse_file): New.
4854         * c-lang.c: Include c-common.h.
4855         (LANG_HOOKS_PARSE_FILE): Redefine.
4856         * c-lex.c: Include c-common.h.
4857         (yyparse): Rename c_common_parse_file.  Call yyparse.
4858         * c-parse.in (yyparse): Remove macro.
4859         * c-tree.h (yyparse_1): Remove.
4860         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
4861         (LANG_HOOKS_INITIALIZER): Update.
4862         * langhooks.h (struct lang_hoooks): New hook parse_file.
4863         * toplev.c (compile_file): Use parse_file hook.
4864         * tree.h (yyparse): Remove.
4865         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
4866
4867 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
4868
4869         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
4870         float_truncate, not fix.
4871         ("*truncdfsf2_real"): Ditto.
4872         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
4873
4874         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
4875
4876 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
4877
4878         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
4879         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
4880         where appropriate.  Make the second reference to
4881         leaf_function_p a function call, as intended.  Reindented.
4882
4883         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
4884         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
4885
4886         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
4887         add register to non-constant into sp.
4888
4889         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
4890         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
4891         (mips16_gp_pseudo_rtx): Lose.
4892         (INIT_EXPANDERS): Deleted.
4893         * config/mips/mips.c (mips_init_machine_status): New.
4894         (mips_free_machine_status): New.
4895         (mips_mark_machine_status): New.
4896         (override_options): Set them.
4897         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
4898         (struct machine_function): ... new.  Replaced all references.
4899         (mips_add_gc_roots): Don't mark them.
4900         (embedded_pic_fnaddr_reg): New, extracted from...
4901         (embedded_pic_offset): ... here.
4902         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
4903         (movsi): Likewise.
4904
4905 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
4906
4907         * cppinit.c: Revert -MD removal.
4908
4909 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4910
4911         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
4912         soft registers by default for 68HC12.
4913         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
4914         when compiling with -fomit-frame-pointer.
4915         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
4916         (expand_epilogue): Likewise.
4917         (m68hc11_gen_rotate): Use exg when rotating by 8.
4918
4919 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4920
4921         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
4922         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
4923         (splits): Remove unused add splits.
4924         ("*addhi3_68hc12"): Tune constraints.
4925         ("addhi_sp"): Try to use X instead of Y in all cases and if the
4926         constant fits in 8-bits and D is dead use abx/aby instructions.
4927         ("*addhi3"): Remove extern declaration of ix_reg.
4928         ("*subsi3"): Optimize and provide new split.
4929         ("subhi3"): Cleanup.
4930         ("*subhi3_sp"): Avoid saving X if we know it is dead.
4931         (arith splits): For 68hc12 save the address register on the stack
4932         and do the arithmetic operation with a pop.
4933
4934 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4935
4936         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
4937         allocating QImode in address registers.
4938         ("*movqi_m68hc11"): Likewise.
4939
4940 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
4941
4942         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
4943
4944 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
4945
4946         * cppinit.c (print_help): Display -MD and -MMD.
4947         Don't display usage string.  Update assertion syntax and
4948         typo.
4949         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
4950         (cpp_handle_option): Update.
4951
4952 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
4953
4954         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
4955         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
4956         and define it so that regardless of target CPU size,
4957         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
4958         of "int" rather than "long."
4959
4960 2002-03-15  Richard Henderson  <rth@redhat.com>
4961
4962         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
4963         size as a tree.
4964
4965 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4966
4967         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
4968         ("tstqi" split): Avoid using memory for tstqi on address register.
4969         (splits): Remove constraints.
4970         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
4971         ("cmpdf", "cmpsf"): Remove since not used.
4972         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
4973         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
4974
4975 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4976
4977         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
4978         ("neghi2"): Tighten constraints.
4979         ("one_cmplsi2"): Optimize and simplify split.
4980         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
4981
4982 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4983
4984         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
4985         and split of AND operation to clear the upper bits.
4986         ("*logicalsi3_zextqi"): Likewise.
4987         ("*logicallhi3_zexthi_ashift8"): Likewise.
4988         ("*logicalsi3_silshr16"): Likewise.
4989         ("logicalsi3_silshl16"): Likewise.
4990         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
4991
4992 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4993
4994         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
4995         (m68hc11_indirect_p): New function.
4996         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
4997         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
4998         TARGET_M6812.
4999         (asm_print_register): Likewise.
5000         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
5001         (m68hc11_indirect_p): Declare.
5002         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
5003         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
5004         (TARGET_SWITCHES): New option -mrelax.
5005         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
5006         destination.
5007         ("iorsi3", "xorsi3"): Likewise.
5008         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
5009         ("*andhi3_mem"): New to handle destination in memory with bclr
5010         and a scratch register.
5011         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
5012         ("*andhi3_const"): New when operand2 is constant.
5013         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
5014         ("*andhi3_gen"): Cleanup of the old "andhi3".
5015         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
5016         ("xorqi3"): Update constraints.
5017
5018 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5019
5020         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
5021         for reg_equiv_memory_loc when the operand is a register that does
5022         not get a hard register (stack location).
5023         (tst_operand): After reload, accept all memory operand.
5024         (symbolic_memory_operand): Fix detection of symbolic references.
5025         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
5026         accept symbols and any constant.
5027
5028 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5029
5030         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
5031         note on the insn that sets the soft frame register.
5032         (must_parenthesize): ix and iy are also reserved names.
5033         (print_operand_address): One more place where parenthesis are required
5034         to avoid confusion with register names.
5035         (m68hc11_gen_movhi): Allow push of stack pointer.
5036         (m68hc11_check_z_replacement): Fix handling of parallel with a
5037         clobber.
5038         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
5039         the replacement register is.
5040         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
5041         and D8_REGS classes.
5042         (MODES_TIEABLE_P): All modes are tieable except QImode.
5043
5044 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5045
5046         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
5047         (___subdi3): Likewise.
5048         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
5049         (__map_data_section): Optimize 68hc11 case.
5050
5051 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5052
5053         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
5054         than a shift to avoid adding a register with itself.
5055         (m68hc11_memory_move_cost): Take into account NO_REGS.
5056         (m68hc11_register_move_cost): Update and use memory move cost
5057         for soft registers.
5058         (m68hc11_address_cost): Make cost of valid offset not 0 so that
5059         it gives more opportunities to cse to optimize.
5060         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
5061         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
5062
5063 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
5064
5065         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
5066         * c-common.def (CLEANUP_STMT): New tree node.
5067         * c-common.h (CLEANUP_DECL): New macro.
5068         (CLEANUP_EXPR): Likewise.
5069         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
5070         * expr.c (expand_expr): Tidy.
5071         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
5072         * tree-inline.c (initialize_inlined_parameters): Clean up
5073         new local variables.
5074
5075 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
5076
5077         PR bootstrap/4128
5078         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
5079         before movrXX only, use reg_overlap_mentioned_p.
5080         Only special case NE if just one insn can be generated.
5081
5082 2002-03-15  Jason Merrill  <jason@redhat.com>
5083
5084         * varasm.c (assemble_variable): Call resolve_unique_section before
5085         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
5086         of error_mark_node.
5087
5088 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
5089
5090         PR target/5170
5091         * arm.md (split pattern for thumb shiftable immediates): Add comment
5092         explaining non-obvious test.
5093
5094 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
5095
5096         PR target/5712
5097         * arm.md (movaddr, movaddr_insn): Delete.
5098
5099 2002-03-15  Jason Merrill  <jason@redhat.com>
5100
5101         * toplev.c (wrapup_global_declarations): Clarify variable handling.
5102         -fkeep-static-consts doesn't apply to comdats.
5103
5104 2002-03-14  Richard Henderson  <rth@redhat.com>
5105
5106         * c-decl.c: Include c-pragma.h.
5107         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
5108         (finish_function): Tidy.
5109         * c-pragma.c: Include c-common.h.
5110         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
5111         (handle_pragma_weak): Use them.
5112         (init_pragma): Register pending_weaks.
5113         * c-pragma.h (maybe_apply_pragma_weak): Declare.
5114         * print-tree.c (print_node): Print DECL_WEAK.
5115         * varasm.c (mark_weak_decls): Remove.
5116         (remove_from_pending_weak_list): Remove.
5117         (add_weak): Remove.
5118         (asm_emit_uninitialised): Call globalize_decl for weak commons.
5119         (weak_decls): Make a tree_list.
5120         (declare_weak): Cons weak_decls directly.
5121         (globalize_decl): Remove weak_decls elements directly.
5122         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
5123         symbols.  Don't pretend to handle aliases.
5124         (init_varasm_once): Update weak_decls registry.
5125         * Makefile.in: Update dependencies.
5126
5127 2002-03-14  Richard Henderson  <rth@redhat.com>
5128
5129         PR target/5312
5130         * config/ia64/ia64.c: Include tm_p.h last.
5131         (gen_nop_type): Remove duplicate definition.
5132         (cycle_end_fill_slots): Set sched_data for second L slot.
5133         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
5134         (nop_cycles_until): Fix typos.
5135
5136 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
5137
5138         PR optimization/5891
5139         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
5140
5141 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
5142
5143         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
5144           descriptors correctly.
5145
5146 2002-03-14  Michael Meissner  <meissner@redhat.com>
5147
5148         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
5149         100, allowing MAX_UNROLLED_INSNS to be overridden.
5150
5151         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
5152         --param.
5153
5154         * unroll.c (params.h): Include.
5155         (MAX_UNROLLED_INSNS): Delete, now in params.h.
5156
5157         * doc/invoke.texi (--param max-unroll-insns): Document.
5158
5159         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
5160
5161 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
5162
5163         * arm.md: Fix warnings about constraints in peepholes and splits.
5164
5165 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
5166
5167         * cpphash.h (struct lexer_state): Remove line_extension member.
5168         * cpplib.c (dequote_string, do_linemarker): New functions.
5169         (linemarker_dir): New data object.
5170         (DIRECTIVE_TABLE): No longer need to interpret #line in
5171         preprocessed source.  Delete obsolete comment about return
5172         values of handlers.
5173         (end_directive, directive_diagnostics, _cpp_handle_directive):
5174         Don't muck with line_extension.
5175         (directive_diagnostics): No need to issue warnings for
5176         linemarkers here.
5177         (_cpp_handle_directive): Issue warnings for linemarkers here,
5178         when appropriate.  Dispatch linemarkers to do_linemarker, not
5179         do_line.
5180         (do_line): Code to handle linemarkers split out to do_linemarker.
5181         Convert escape sequences in filename argument, both places.
5182
5183         * cppmacro.c (quote_string): Rename cpp_quote_string and
5184         export.  All callers changed.
5185         * cpplib.h (cpp_quote_string): Prototype.
5186         * cppmain.c (print_line): Call cpp_quote_string on to_file
5187         before printing it.
5188
5189         * doc/cpp.texi: Document that escapes are now interpreted in
5190         #line and in linemarkers, and that non-printing characters are
5191         converted to octal escapes when linemarkers are generated.
5192
5193 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
5194
5195         * emit-rtl.c (try_split): Use delete_insns.
5196         * recog.c (split_all_insns): Fix terminating condition.
5197
5198 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
5199             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
5200
5201         PR target/5828
5202         * arm.c (arm_output_epilogue): Fix floating-point register save
5203         adjustment when using a frame pointer.
5204
5205 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
5206
5207         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
5208         * config/mips/mips.c (compute_frame_size): Retrofit them here.
5209         (save_restore_insns, mips_expand_epilogue): And here.
5210         (build_mips16_call_stub): And here.
5211         (mips_function_value): Use the new macros to decide whether a single
5212         or complex float can be returned in floating-point registers.  Return
5213         a parallel rtx in the complex case.
5214
5215 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
5216
5217         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
5218         call after liveness analysis.
5219
5220         * recog.c (split_insn): Use delete_insn_and_edges.
5221
5222         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
5223         instructions to have branch prediction notes.
5224         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
5225
5226 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
5227
5228         * configure.in: Don't pass -Wno-long-long to a ADA compiler
5229         that doesn't support it.
5230         * configure: Regenerate.
5231
5232 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5233
5234         PR target/5626
5235         * config/sparc/sparc.md (normal_branch, inverted_branch,
5236         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
5237         inverted_fp_branch): Adjust calls to output_cbranch.
5238         Set length attribute.
5239         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
5240         output_v9branch.  Set length attribute.
5241         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
5242         predicates.
5243         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
5244         (output_cbranch): Likewise.  Handle far branches.
5245         (output_v9branch): Handle far branches.
5246         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
5247         Adjust prototypes.
5248         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
5249         noov_compare64_op predicates.
5250
5251 2002-03-13  Jason Merrill  <jason@redhat.com>
5252
5253         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
5254         into the function and constify it.
5255         * gthr-dce.h, gthr-solaris.h: Likewise.
5256
5257 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
5258
5259         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
5260         * config/rs6000/rs6000.c (rs6000_va_arg): Use
5261         std_expand_builtin_va_arg if not ABI_V4.
5262
5263 2002-03-13  Jason Merrill  <jason@redhat.com>
5264
5265         * varasm.c (globalize_decl): New fn.
5266         (assemble_start_function): Use it.
5267         (asm_emit_uninitialized): Use it.
5268         (assemble_alias): Use it.
5269         (assemble_variable): Use it.
5270
5271 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
5272
5273         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
5274         2002-03-12 internal visibility change.
5275         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
5276         visibility into SYMBOL_REF_FLAG.
5277
5278 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
5279
5280         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
5281         VOIDmode operand.  Add compile-time optimization for constant results.
5282
5283 2002-03-12  Jason Merrill  <jason@redhat.com>
5284
5285         * c-typeck.c (convert_for_assignment): Don't allow conversions
5286         between pointers and references.  Only allow lvalues to convert to
5287         reference.
5288
5289 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
5290
5291         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
5292         before prologue, to avoid scheduling problems.
5293
5294 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5295
5296         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
5297         (ELIMINABLE_REGS): Add sfp->sp.
5298         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
5299
5300 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5301
5302         PR optimization/5892
5303         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
5304
5305 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5306
5307         * loop.c (basic_induction_var): Don't call convert_modes if mode
5308         classes are different.
5309
5310 2002-03-12  Richard Henderson  <rth@redhat.com>
5311
5312         PR optimization/5901
5313         * function.c (reposition_prologue_and_epilogue_notes): Position
5314         the markers after/before the last/first insn not deleted.
5315
5316 2002-03-12  Richard Henderson  <rth@redhat.com>
5317
5318         PR optimization/5878
5319         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
5320         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
5321         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5322
5323         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
5324         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
5325         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
5326
5327         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
5328         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
5329         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
5330         also.  Don't set it if not flag_pic.
5331         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
5332         to be INVALID_REGNUM when not used.
5333
5334 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
5335
5336         * expmed.c (store_bit_field): Reset alias set for memory.
5337         (extract_bit_field): Same.
5338
5339 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5340
5341         * c-common.c (c_tree_code_type, c_tree_code_length,
5342         c_tree_code_name, add_c_tree_codes): Delete.
5343         * c-common.h (add_c_tree_codes): Delete.
5344         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
5345         Define.
5346         * c-objc-common.c (c_objc_common_init): Don't call
5347         add_c_tree_codes, instead set lang_unsafe_for_reeval.
5348         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
5349         objc_tree_code_name, add_objc_tree_codes): Delete.
5350         (objc_init): Don't call add_objc_tree_codes.
5351         * objc/objc-lang.c (tree_code_type, tree_code_length,
5352         tree_code_name): Define.
5353         * toplev.c (lang_independent_init): Don't set
5354         tree_code_length[IDENTIFIER_NODE].
5355         * tree.c (tree_code_type, tree_code_length, tree_code_name):
5356         Delete definitions, moved to language front-ends.
5357         * tree.def (IDENTIFIER_NODE): Hardwire the length.
5358         * tree.h (tree_code_type, tree_code_length, tree_code_name):
5359         Const-ify.
5360         (tree_code_length): Change type to unsigned char.
5361
5362 2002-03-12  Richard Henderson  <rth@redhat.com>
5363
5364         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
5365         internal visibility change.
5366
5367 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5368
5369         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
5370         validize_mem() instead of change_address to avoid clobbering
5371         memory attributes.
5372
5373 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
5374
5375         * c-lex.h (position_after_whitespace): Remove.
5376
5377 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
5378
5379         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
5380         (lex_string): Use unsigned char pointers.
5381
5382 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
5383
5384         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
5385         is not a valid memory_operand.
5386
5387 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5388
5389         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
5390         * config/xtensa/lib1funcs.asm: Fix copyright to include
5391         special case for libgcc files.
5392         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
5393         (__divsi3): Likewise.
5394         (__umodsi3): Likewise.
5395         (__modsi3): Likewise.
5396         * config/xtensa/lib2funcs.S: Fix copyright to include
5397         special case for libgcc files.
5398
5399 2002-03-12  Tom Rix  <trix@redhat.com>
5400
5401         * collect2.c (resolve_lib_name): Move outside of
5402         OBJECT_FORMAT_COFF ifdef.
5403         (ignore_library): Same.
5404
5405 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5406
5407         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
5408
5409 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5410
5411         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
5412         to function_section before writing out the constant pool.
5413
5414 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
5415
5416         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
5417         zero_constant.
5418         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
5419
5420 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
5421
5422         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
5423         (adddi3): Likewise.
5424         (movdf): Likewise.
5425         (movdi): Likewise.
5426         (cmpsi splitter): Likewise.
5427         (modsi3): Fail if <= 0.
5428         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
5429         redundant test when HOST_BITS_PER_WIDE_INT != 32.
5430         (reg_or_sub_cint64_operand): Likewise.
5431         (num_insns_constant_wide): Optimize sign extension.
5432         (rs6000_legitimize_address): Likewise.
5433
5434 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
5435
5436         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5437         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5438
5439 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
5440
5441         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
5442         address calculation.
5443
5444 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
5445
5446         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
5447         scratch register to DImode / TImode.
5448         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
5449         register used does not overlap the target.
5450
5451 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5452
5453         * Makefile.in (debug.o): Depend on debug.h.
5454         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
5455         * debug.c (do_nothing_debug_hooks): Likewise.
5456         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
5457         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
5458         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
5459         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
5460         * dwarfout.c (dwarf_debug_hooks): Likewise.
5461         * integrate.c (output_inline_function): Likewise.
5462         * objc/objc-act.c (synth_module_prologue): Likewise.
5463         * sdbout.c (sdb_debug_hooks): Likewise.
5464         * toplev.c (debug_hooks): Likewise.
5465         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5466
5467 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5468
5469         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
5470         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
5471         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
5472         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
5473         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
5474         * defaults.h (POINTER_SIZE): Define.
5475         * doc/tm.texi (POINTER_SIZE): Document default.
5476
5477 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5478
5479         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
5480
5481 2002-03-11  Richard Henderson  <rth@redhat.com>
5482
5483         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
5484         if rebuild_label_notes_after_reload.
5485
5486 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
5487
5488         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
5489         emit pic register load if "internal" visibility.
5490         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
5491         (cris_expand_builtin_va_arg): Do all computations on trees.
5492
5493 2002-03-11  Richard Henderson  <rth@redhat.com>
5494
5495         * rtlanal.c: Include recog.h.
5496         (keep_with_call_p): Fix thinko.
5497         * Makefile.in (rtlanal.o): Update dependencies.
5498
5499 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
5500
5501         * genflags.c (gen_insn): Use IS_VSPACE.
5502         * genoutput.c (output_insn_data): Likewise.
5503         (process_template): Likewise.
5504
5505 2002-03-11  Richard Henderson  <rth@redhat.com>
5506
5507         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
5508
5509 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
5510
5511         * Makefile.in: Update.
5512         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
5513         Update documentation.
5514         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
5515         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
5516
5517 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
5518
5519         * Makefile.in: Give texi2pod its input file as a command line
5520         argument, not on stdin.
5521
5522 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
5523             Daniel Berlin  <dan@dberlin.org>
5524
5525         C++ alias analysis improvement.
5526         * alias.c (record_component_aliases): Record aliases for base
5527         classes too.
5528
5529 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
5530
5531         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
5532
5533 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
5534
5535         * toplev.c (vms_fopen): Remove, not needed.
5536
5537         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
5538
5539         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
5540
5541         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
5542         for FP, already done later.
5543
5544         * toplev.c (debug_args): Add entry for VMS_DEBUG.
5545         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
5546
5547 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
5548
5549         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
5550         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
5551         LARGEST_EXPONENT_IS_NORMAL for the given mode.
5552         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
5553         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
5554         (ediv, emul, eldexp, esqrt): Likewise.
5555         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
5556         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
5557         (saturate): New function.
5558         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
5559         (make_nan): Use a saturation value instead of a NaN if
5560         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
5561         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
5562         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
5563         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
5564         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
5565         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
5566         !ROUND_TOWARDS_ZERO.
5567         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
5568         (ROUND_TOWARDS_ZERO): Document.
5569
5570 2002-03-11  Andreas Jaeger  <aj@suse.de>
5571
5572         * cfg.c (dump_flow_info): Remove unused variable.
5573
5574 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
5575
5576         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
5577         computations on trees.
5578
5579 2002-03-10  Richard Henderson  <rth@redhat.com>
5580
5581         PR 5693:
5582         * reload.c (copy_replacements_1): New.
5583         (copy_replacements): Use it to recurse through the rtx.
5584
5585 2002-03-10  Richard Henderson  <rth@redhat.com>
5586
5587         * loop.c (strength_reduce): Compute number of iterations as
5588         unsigned HOST_WIDE_INT.
5589
5590 2002-03-10  Richard Henderson  <rth@redhat.com>
5591
5592         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
5593         to move away from the end of the block.
5594
5595 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
5596
5597         PR preprocessor/5899
5598         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
5599
5600 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5601
5602         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
5603
5604         * attribs.c (decl_attributes): Fix signed/unsigned warning.
5605
5606 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
5607
5608         * config/mmix/mmix.c: Improve comments.
5609         (mmix_target_asm_function_prologue): Drop variable
5610         empty_stack_frame.  Don't allocate unused slot above fp.
5611         (mmix_target_asm_function_epilogue): Mirror prologue changes.
5612         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
5613         brace in first column.
5614         (enum reg_class): Ditto.
5615         (FIRST_PARM_OFFSET): Now 0.
5616         (USER_LABEL_PREFIX): Remove #if 0:d definition.
5617
5618 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5619
5620         * combine.c (make_extraction): Fix error in last change.
5621
5622 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5623
5624         * c4x.c (c4x_fp_reglist): Const-ify.
5625         * cris.c (cris_print_operand): Likewise.
5626         * i386.c (ix86_va_arg): Likewise.
5627         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
5628         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
5629         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
5630         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
5631         * mcore.h (regno_reg_class): Likewise.
5632         * mips.c (gen_int_relational): Likewise.
5633         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
5634         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
5635         * pdp11.c (move_costs): Likewise.
5636         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
5637         * s390.c (s390_branch_condition_mnemonic, regclass_map):
5638         Likewise.
5639         * s390.h (regclass_map): Likewise.
5640         * sh.c (shift_amounts): Likewise.
5641         * sh.md (rotlsi3): Likewise.
5642
5643 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
5644
5645         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
5646         (ne0+5): Use new clobber to generate proper shift pattern.
5647         Patch by Michael Matz <matz@kde.org>.
5648
5649 2002-03-09  Andreas Schwab  <schwab@suse.de>
5650
5651         * gcc.c (validate_all_switches): Also handle `%W{...}'.
5652
5653 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
5654
5655         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
5656
5657 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
5658
5659         PR middle-end/5877
5660         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
5661         even for non-representable constants.
5662
5663 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5664
5665         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
5666         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
5667         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
5668         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
5669         (pop_function_context): Compute MAY_SHARE parameter for
5670         fixup_var_refs.
5671         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
5672         (gen_mem_addressof): Call fixup_var_refs with new parm.
5673
5674         * combine.c (make_extraction): Don't make extension of CONST_INT.
5675
5676 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
5677
5678         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
5679         in o32 and o64 ABIs.
5680         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
5681         but getting fixed-size structs passed in registers regardless of
5682         padding in o32 and o64 ABIs.
5683
5684         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
5685         offset before loading address of argument passed by transparent
5686         reference.
5687
5688 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5689
5690         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
5691
5692 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
5693
5694         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
5695         marker such that registers after it are saved.
5696
5697 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5698
5699         * sparc.c (arith_4096_operand): Fix error in last change.
5700
5701 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
5702
5703         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
5704         defaults for MEABI.
5705
5706 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
5707
5708         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
5709         vectors.
5710
5711 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
5712
5713         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
5714
5715 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
5716
5717         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
5718         removed; fix return value.
5719         * combine.c (combine_instructions): Dirtify blocks where we failed to
5720         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
5721         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
5722
5723 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5724
5725         * gcse.c (insert_insn_end_bb): Fix typo in last change.
5726
5727 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
5728
5729         * recog.c (peephole2_optimize): Re-distribute EH edges.
5730
5731 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
5732
5733         * expr.c (expand_expr): Use unsave lang hook.
5734         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
5735         (LANG_HOOKS_INITIALIZER): Update.
5736         * langhooks.h (struct lang_hooks): New hook unsave.
5737         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
5738         (unsave_expr_1): Remove unused lang_unsave_expr_now.
5739         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
5740         (unsave_expr_now): Remove.
5741         * tree.h (unsave_expr_now, lang_unsave,
5742         lang_unsave_expr_now): Remove.
5743         (lhd_unsave): New.
5744
5745 2002-03-08  Andreas Jaeger  <aj@suse.de>
5746
5747         * flow.c (propagate_block_delete_insn): Remove unused variable.
5748
5749 2002-03-08  Kazu Hirata  <kazu@hxi.com>
5750
5751         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
5752         insn length for memory load/store.
5753
5754 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5755
5756         * doc/install.texi (--with-libiconv-prefix): Document.
5757
5758 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
5759
5760         * doc/sourcebuild.texi: Fix typo.
5761
5762 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
5763
5764         PR c/3711
5765         * builtins.c (std_expand_builtin_va_arg): Do all computations on
5766         trees.
5767
5768 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5769
5770         * rtl.c (copy_most_rtx): Move from here ...
5771         * emit-rtl.c (copy_most_rtx): ... to here.
5772
5773 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
5774
5775         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
5776         SUBTARGET_CPP_SIZE_SPEC.
5777         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
5778
5779         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
5780
5781 2002-03-07  Matt Hiller  <hiller@redhat.com>
5782
5783         * gensupport.c (first_dir_md_include): Renamed from include;
5784         change all references.
5785         (last_dir_md_include): Renamed from last_include; change all
5786         references.
5787         (init_md_reader): Unconditionally initialize base_dir whether or
5788         not filename is a relative path.
5789
5790 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
5791
5792         * config/fp-bit.c (_unord_f2): Compile it in even if
5793         US_SOFTWARE_GOFAST is enabled.
5794
5795         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
5796         NULL_RTX.  Set all HFmode operations as NULL_RTX.
5797         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
5798         NULL_RTX, try reversing the comparison and the operands.
5799
5800 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
5801
5802         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
5803         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
5804         and MATCH_OP_DUP.
5805
5806 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
5807
5808         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
5809
5810 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
5811
5812         * basic-block.h (fixup_abnormal_edges): Declare.
5813         * reload1.c (fixup_abnormal_edges): New function.
5814         * reg-stack.c (convert_regs): Use it.
5815
5816         * gcse.c (insert_insn_end_bb): Handle trapping insns.
5817
5818         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
5819
5820 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
5821
5822         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
5823         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
5824         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
5825         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
5826         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
5827         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
5828         unless x and y could be infinite.
5829         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
5830         Check that the common type of both arguments is a real, even for
5831         targets without unordered comparisons.  Allow an integer argument
5832         to be compared against a real.
5833         (expand_tree_builtin): Use expand_unordered_cmp.
5834         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
5835         * cse.c (fold_rtx): Likewise.  Fix indentation.
5836         * fold-const.c (fold_real_zero_addition_p): New.
5837         (fold): Use it, and the new HONOR_... macros.
5838         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
5839         * jump.c (reversed_comparison_code_parts): After searching for
5840         the true comparison mode, use HONOR_NANS to decide whether it
5841         can be safely reversed.
5842         (reverse_condition_maybe_unordered): Remove IEEE check.
5843         * simplify-rtx.c (simplify_binary_operation): Use the new macros
5844         to decide which simplifications are valid.  Allow the following
5845         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
5846         and (a - -b) to (a + b).
5847         (simplify_relational_operation): Use HONOR_NANS.
5848         * doc/tm.texi: Document the MODE_HAS_... macros.
5849
5850 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
5851
5852         * combine.c (simplify_comparison): If simplifying a logical shift
5853         right and compare with constant, force the comparison to unsigned.
5854
5855 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
5856
5857         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
5858
5859         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
5860         -mabi=no-altivec
5861         (alt_reg_names): Remove % for vrsave.
5862
5863 2002-03-06  Richard Henderson  <rth@redhat.com>
5864
5865         PR optimization/5844
5866         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
5867         if used indicates we've already emitted one copy of an operand.
5868         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
5869         (gen_split): Supply a non-null used.
5870
5871 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
5872
5873         * reload1.c (reload): Unshare all rtl after reload is done.
5874
5875         * simplify-rtx.c (simplify_plus_minus): Do not abort,
5876         but simply fail if the expression is too complex to simplify.
5877         (simplify_gen_binary): Handle simplify_plus_minus failures.
5878
5879 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
5880
5881         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
5882         consistently call delete_trivially_dead_insns after CSE and GCSE;
5883         fix DFI_life dumping; do jump threading after liveness; do crossjumping
5884         after liveness2; update comment in last crossjumping.
5885         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
5886
5887 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
5888
5889         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
5890         after completing fast dead code elimination.
5891
5892         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
5893         COMPARE operator.
5894
5895 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
5896
5897         * version.c:  Fix misplaced leading blanks on first line.
5898
5899 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
5900
5901         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
5902
5903 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
5904
5905         * cfgcleanup.c (mentions_nonequal_regs): New function.
5906         (thread_jump): Use it.
5907         * toplev.c (rest_of_compilation): Run jump threading after
5908         liveness.
5909
5910 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
5911
5912         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
5913         patch.
5914
5915 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
5916
5917         * predict.c (estimate_bb_frequencies): Do not reload the
5918         frequencies from notes.
5919
5920 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
5921
5922         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
5923         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
5924
5925         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
5926         delete_noop_moves): Return indeger.
5927         * flow.c (ndead): New variable.
5928         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
5929         BB argument; update callers.
5930         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
5931         (life_analysis): Do not call purge_all_dead_edges.
5932         (update_life_info): Return number of deleted insns; print statistics.
5933         (update_life_info_in_dirty_blocks): likewise.
5934         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
5935         return number of insns deleted.
5936
5937         * cse.c: Include timevar.h
5938         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
5939         iterate until stabilizes; print statistics; return number of killed
5940         insns.
5941         * Makefile.in: (cse.o): Add timevar.h dependency
5942         * rtl.h (delete_trivially_dead_insns): New.
5943         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
5944         * toplev.c (rest_of_compilation): Update callers.
5945
5946         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
5947         (try_optimize_cfg): Do not update liveness.
5948         (cleanup-cfg): Loop until try_optimize_cfg and dead code
5949         removal stabilizes; use delete_trivially_dead_insns.
5950
5951         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
5952
5953 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
5954
5955         * cppmain.c (setup_callbacks): Disable #pragma and #ident
5956         callbacks when processing assembly language.
5957
5958 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5959
5960         * pa.h (ASM_FILE_END): Define.
5961         * som.h (ASM_FILE_END): Delete.
5962
5963         * pa.c (function_arg): Don't pass floats in general registers in
5964         indirect calls if TARGET_ELF32.
5965
5966 2002-03-05  Richard Henderson  <rth@redhat.com>
5967
5968         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
5969
5970 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
5971
5972         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
5973
5974 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
5975
5976         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
5977         -r command line.  Don't hide any symbols if not building
5978         shared libgcc.
5979
5980 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
5981
5982         * cfg.c (dump_flow_info): Warn about profile mismatches.
5983         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
5984         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
5985
5986 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
5987
5988         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
5989         wide volatile memory by parts.
5990
5991 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
5992
5993         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
5994         is NULL.
5995
5996 2002-03-05  Richard Henderson  <rth@redhat.com>
5997
5998         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
5999
6000 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
6001
6002         * toplev.c (documented_lang_options): Document more
6003         language-specific options.
6004         * doc/invoke.texi (Warning Options): Correct documentation for
6005         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
6006         * c-decl.c (c_decode_option): Use a table to handle warning options.
6007
6008 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
6009
6010         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
6011         parameter to mmix_encode_section_info.
6012         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
6013         relocatably.  Always produce ELF, not mmo if linking relocatably.
6014         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
6015         first is non-zero, don't add symbol prefix.
6016         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
6017         prototype accordingly.
6018
6019 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
6020
6021         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
6022
6023 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
6024
6025         * configure.in: Increase required makeinfo version to 4.1.
6026         * configure: Regenerate.
6027
6028 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
6029
6030         * .cvsignore: Remove *.info* and genrtl*; these files are generated
6031         elsewhere now.
6032
6033 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
6034
6035         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
6036         * doc/invoke.texi: Fix @math uses.
6037
6038 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
6039
6040         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
6041         removal
6042
6043 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
6044
6045         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
6046         (powerpc-*-eabisimaltivec*): Same.
6047
6048         * config/rs6000/t-ppcendian: New.
6049
6050 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6051
6052         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
6053         nonimmediate_src_operand and nonimmediate_lsrc_operand to
6054         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
6055
6056 2002-03-03  Richard Henderson  <rth@redhat.com>
6057
6058         * toplev.c (rest_of_decl_compilation): Revert last two changes.
6059
6060 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
6061
6062         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
6063         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
6064         tree.c, config/m68k/m68k.c:
6065         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
6066         REAL_ARITHMETIC blocks unconditional.  Delete some further
6067         #ifdef blocks predicated on REAL_ARITHMETIC.
6068         * flags.h, toplev.c: Delete remaining references to
6069         flag_pretend_float.
6070
6071         * doc/invoke.texi: Remove documentation of -fpretend-float.
6072         * doc/tm.texi: Describe the various REAL_* macros as provided by
6073         real.h, not by the target configuration files.
6074
6075         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
6076         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
6077         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
6078         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
6079         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
6080         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
6081         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
6082         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
6083         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
6084         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
6085         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
6086         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
6087         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
6088         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
6089         config/xtensa/xtensa.h:
6090         Do not define, undefine, or mention in comments any of
6091         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
6092         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
6093         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
6094         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
6095         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
6096         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
6097         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
6098         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
6099         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
6100
6101 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6102
6103         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
6104         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
6105         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
6106         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
6107         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
6108         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
6109         Delete.
6110         * defaults.h (BITS_PER_WORD): Define.
6111         * doc/tm.texi (BITS_PER_WORD): Document default value.
6112
6113         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
6114         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
6115         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
6116
6117 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6118
6119         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
6120         lieu of explicit sizeof/sizeof.
6121         * i386.c (override_options, ix86_init_mmx_sse_builtins,
6122         ix86_expand_builtin): Likewise.
6123         * mips.c (mips_add_gc_roots): Likewise.
6124         * mmix.c (mmix_output_condition): Likewise.
6125         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
6126         altivec_init_builtins): Likewise.
6127         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
6128         * cppexp.c (Nsuff, parse_number): Likewise.
6129         * cppinit.c (builtin_array_end): Likewise.
6130         * gcc.c (n_default_compilers, process_command): Likewise.
6131         * genpreds.c (output_predicate_decls): Likewise.
6132         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
6133         * lcm.c (N_ENTITIES): Likewise.
6134         * stor-layout.c (set_sizetype): Likewise.
6135
6136 2002-03-03  Richard Henderson  <rth@redhat.com>
6137
6138         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
6139         for types or labels.
6140
6141 2002-03-03  Richard Henderson  <rth@redhat.com>
6142
6143         * c-decl.c (start_decl): Initialized variables are not common.
6144
6145 2002-03-02  Per Bothner  <per@bothner.com>
6146
6147         * gcc.c (option_map):  Suport new --bootclasspath option.
6148         --CLASSPATH is now just an alias for --classpath.
6149
6150 2002-03-02  Richard Henderson  <rth@redhat.com>
6151
6152         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
6153         load if "internal" visibility.
6154         * doc/extend.texi: Document visibility meanings.
6155
6156 2002-03-02  Richard Henderson  <rth@redhat.com>
6157
6158         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
6159         to functions as well.
6160
6161 2002-03-02  Richard Henderson  <rth@redhat.com>
6162
6163         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
6164         (handle_visibility_attribute): Don't call assemble_visibility.
6165         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
6166         without asmspec.  Invoke assemble_alias when needed.
6167         * varasm.c (maybe_assemble_visibility): New.
6168         (assemble_start_function, assemble_variable, assemble_alias): Use it.
6169
6170 2002-03-02  Richard Henderson  <rth@redhat.com>
6171
6172         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
6173         invoke ENCODE_SECTION_INFO with first call flag.
6174
6175         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
6176         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
6177         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
6178         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
6179         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
6180         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
6181         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
6182         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
6183         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
6184         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
6185         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
6186         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
6187         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
6188         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
6189         config/mcore/mcore-protos.h, config/mcore/mcore.c,
6190         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
6191         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
6192         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
6193         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
6194         config/sh/sh.h, config/sparc/sparc.h,
6195         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
6196         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
6197         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
6198         FIRST argument.  As needed, examine it and do nothing.
6199
6200         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
6201         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
6202         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
6203
6204         * config/arm/t-pe (pe.o): Add dependencies.
6205
6206 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6207
6208         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
6209         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
6210         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
6211         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
6212         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
6213         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
6214         * defaults.h (BITS_PER_UNIT): Define.
6215         * doc/tm.texi (BITS_PER_UNIT): Document default value.
6216
6217 2002-03-02  Kazu Hirata  <kazu@hxi.com>
6218
6219         * config/h8300/h8300-protos.h: Add a prototype for
6220         compute_a_shift_length.
6221         * config/h8300/h8300.c (h8300_asm_insn_count): New.
6222         (compute_a_shift_length): Likewise.
6223         (h8300_adjust_insn_length): Do not adjust insn length of shift
6224         insns.
6225         * config/h8300/h8300.md (anonymous shift patterns): Use
6226         compute_a_shift_length.
6227
6228 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6229
6230         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
6231         trunc_int_for_mode.
6232
6233         * emit-rtl.c (offset_address): Call update_temp_slot_address.
6234
6235 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6236
6237         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
6238         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
6239         * flags.h (flag_zero_initialized_in_bss): Declare.
6240         * toplev.c (flag_zero_initialized_in_bss): New flag.
6241         (lang_independent_options): Add flag_zero_initialized_in_bss.
6242         * tree.c (initializer_zerop): New function.
6243         * tree.h (initializer_zerop): Declare.
6244         * varasm.c (assemble_variable): If we can emit bss, put zero
6245         initializers in the bss section.
6246
6247 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
6248
6249         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
6250         like more than one symbol per .weak directive.
6251
6252 2002-03-01  Richard Henderson  <rth@redhat.com>
6253
6254         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
6255         adjust argument_pointer by pretend_args_size.
6256         (ia64_va_start): Adjust va_start address by -pretend_args_size.
6257
6258 2002-03-01  Kazu Hirata  <kazu@hxi.com>
6259
6260         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
6261
6262 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
6263
6264         * toplev.c (rest_of_compilation): Delete dead jumptables before
6265         loop.
6266         * flow.c (delete_dead_jumptables): Make global.
6267         * rtl.h (delete_dead_jumptables): Declare.
6268
6269 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
6270
6271         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
6272         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
6273         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
6274
6275 2002-03-01  Kazu Hirata  <kazu@hxi.com>
6276
6277         * config/h8300/h8300-protos.h: Fix formatting.
6278         * config/h8300/h8300.c: Likewise.
6279         * config/h8300/h8300.h: Likewise.
6280
6281 2002-03-01  Kazu Hirata  <kazu@hxi.com>
6282
6283         * config/h8300/h8300.c (print_operand): Support 16-bit
6284         constant addresses.
6285         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
6286
6287 2002-02-28  Richard Henderson  <rth@redhat.com>
6288
6289         * expmed.c (store_bit_field): Prevent generation of CONCATs;
6290         pun complex values as integers; use gen_lowpart instead of
6291         gen_rtx_SUBREG.
6292         (extract_bit_field): Likewise.
6293
6294 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
6295             David Edelsohn  <edelsohn@gnu.org>
6296
6297         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
6298         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
6299         (SUPPORTS_WEAK): Likewise.
6300         * output.h (add_weak): Add tree param.
6301         * varasm.c (add_weak): Likewise.  Save decl.
6302         (struct weak_syms): Add decl field.
6303         (mark_weak_decls): New function.
6304         (init_varasm_once): ggc_add_root mark_weak_decls.
6305         (assemble_start_function): Use ASM_WEAKEN_DECL.
6306         (assemble_variable): Likewise.
6307         (assemble_alias): Likewise.
6308         (declare_weak): Pass decl to add_weak.
6309         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
6310         (remove_from_pending_weak_list): Declare and define for
6311         ASM_WEAKEN_DECL.
6312         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
6313         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
6314         * defaults.h (SUPPORTS_WEAK): Likewise.
6315         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
6316         .weak for code sym.  Do emit .size for descriptor sym.
6317         (ASM_DECLARE_FUNCTION_SIZE): Define.
6318         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
6319         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
6320         .lglobl unless TARGET_XCOFF.  Formatting fixes.
6321         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
6322         .weak for code sym.
6323         (HANDLE_PRAGMA_WEAK): Remove.
6324         (ASM_WEAKEN_LABEL): Remove.
6325         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
6326
6327 2002-03-01  Jason Merrill  <jason@redhat.com>
6328
6329         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
6330         (TARGET_EXPR_CLEANUP): New macro.
6331
6332 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
6333
6334         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
6335         to take ptr_extend into account as third type of extension.
6336         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
6337         fields used by SUBREG_PROMOTED_UNSIGNED_P.
6338         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
6339         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
6340         * calls.c (precompute_arguments): Use new macro.
6341         (expand_call): Ditto.
6342         * combine.c (nonzero_bits): Ditto.
6343         (record_promoted_value): Ditto.
6344         * expr.c (store_expr): Ditto.
6345         (expand_expr): Ditto.
6346         * function.c (assign_parms): Ditto.
6347
6348 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
6349
6350         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
6351         override -shared and -shared-libgcc.
6352
6353 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
6354
6355         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
6356         of "ultrasparc".
6357         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
6358         to be broken.
6359
6360 2002-02-28  Richard Henderson  <rth@redhat.com>
6361
6362         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
6363         4 cycle latency from MM producers.
6364         (ia64_internal_sched_reorder): Likewise with pipeline flush.
6365
6366 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
6367
6368         * mklibgcc.in: Don't use GNU make extension.
6369
6370 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
6371
6372         * c-parse.in (STATIC): New terminal.
6373         (scspec): New non-terminal.  Update productions accordingly.
6374         (program): Remove bogus ifc / end ifc.
6375         (array_declarator): Simplify production using STATIC.
6376
6377 2002-02-28  Jim Meyering  <meyering@lucent.com>
6378
6379         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
6380         \a still means TARGET_BELL.
6381
6382 2002-02-28  Richard Henderson  <rth@redhat.com>
6383
6384         * haifa-sched.c (sched_emit_insn): New.
6385         (schedule_block): Use last_scheduled_insn to track last insn.
6386         * sched-int.h (sched_emit_insn): Prototype.
6387         * config/ia64/ia64.c (last_issued): Remove.
6388         (ia64_variable_issue): Don't set it.
6389         (nop_cycles_until): Use sched_emit_insn.
6390
6391 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
6392
6393         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
6394         extended constants.
6395
6396 2002-02-28  Kazu Hirata  <kazu@hxi.com>
6397
6398         * config/h8300/h8300.c: Fix formatting.
6399         * config/h8300/h8300.h: Likewise.
6400
6401 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6402
6403         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
6404         which may overwrite the high byte of the frame pointer.
6405
6406 2002-02-28  Bo Thorsen  <bo@suse.de>
6407
6408         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
6409         (STARTFILE_SPEC): Add 64 bit files.
6410         (ENDFILE_SPEC): Likewise.
6411
6412 2002-02-28  Jason Merrill  <jason@redhat.com>
6413
6414         * c-decl.c (finish_function): Only warn about missing return
6415         statement with -Wreturn-type.
6416
6417 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
6418
6419         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
6420
6421         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
6422         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
6423
6424 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
6425
6426         * basic-block.h (BB_REACHABLE): Renumber.
6427         (BB_DIRTY, BB_NEW): New flags.
6428         (clear_bb_flags): Declare.
6429         (update_life_info_in_dirty_blocks): Declare.
6430         * cfg.c (clear_bb_flags): New function.
6431         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
6432         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
6433         reorder_insns, emit_insn_after): Mark block as dirty.
6434         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
6435         (update_life_info_in_dirty_blocks): New function.
6436         * recog.c (apply_change_group): Dirtify block.
6437
6438         * cse.c (cse_insn): Reorder emitting of jump insn to keep
6439         cfg consistent.
6440         * gcse.c (delete_null_pointer_checks): Likewise.
6441
6442         * toplev.c (dump_file_index): Move cse2 after bp,
6443         add DFI_null
6444         (dump_file_info): Similary.
6445         (rest_of_compilation): Avoid most of CFG rebuilds;
6446         do first if converision after null pointer checks, do cse2
6447         after branch prediction; avoid full liveness rebuild after
6448         initializing subregs.
6449         * invoke.texi (-d options): Document -du, renumber.
6450
6451         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
6452         (notice_new_block): Do not set BB_UPDATE_LIFE.
6453         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
6454          merge_blocks_move_successor_nojumps, merge_blocks,
6455          try_crossjump_to_edge): Likewise.
6456         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
6457         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
6458         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
6459         (merge_of_block): Do not use life_data_ok.
6460         (find_if_case_1): Do not use SET_UPDATE_LIFE.
6461         (if_convert): Use BB_DIRTY mechanizm to update life.
6462         * lcm.c (optimize_mode_switching): Update
6463         update_life_info_in_dirty_blocks
6464
6465 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
6466
6467         * Makefile.in (integrate.o): Update.
6468         * c-decl.c (copy_lang_decl): Rename.
6469         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
6470         * integrate.c: Include langhooks.h.
6471         (copy_decl_for_inlining): Update to use langhook.
6472         * langhooks-def.h (lhd_do_nothing_t,
6473         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
6474         (LANG_HOOKS_INITIALIZER): Update.
6475         * langhooks.c (lhd_do_nothing_t): New.
6476         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
6477         * tree.h (copy_lang_decl): Remove.
6478 objc:
6479         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
6480
6481 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
6482
6483         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
6484         POST_DEC, and POST_MODIFY.
6485
6486 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
6487
6488         * c-typeck.c (digest_init): Remove unused parameter; all
6489         callers changed.
6490
6491 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
6492
6493         * expmed.c (expand_shift): Correctly test for low part of a
6494         subreg.
6495
6496 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
6497
6498         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
6499         insn UIDs with insn addresses.
6500
6501 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
6502
6503         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
6504         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
6505         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
6506         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
6507         gcc.c, toplev.c: Delete code implementing -traditional mode.
6508
6509         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
6510         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
6511         Document removal of -traditional mode for compilation, and
6512         remove documentation only relevant to that mode.
6513
6514         * config/nextstep.h, config/ptx4.h, config/svr4.h,
6515         config/convex/convex.h, config/d30v/d30v.h,
6516         config/i386/dgux.h, config/i386/osf1elf.h,
6517         config/i386/osfelf.h, config/i386/osfrose.h,
6518         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
6519         config/m68k/hp310.h, config/m88k/dgux.h,
6520         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
6521         config/m88k/m88k.h, config/m88k/openbsd.h,
6522         config/mips/abi64.h, config/mips/osfrose.h,
6523         config/mips/svr4-5.h, config/mips/svr4-t.h,
6524         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
6525         config/stormy16/stormy16.h: Remove all references to
6526         -traditional from target specs.  Delete all mention of the
6527         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
6528         delete a couple of commented-out definitions of
6529         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
6530         to -traditional.
6531
6532         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
6533         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
6534
6535 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
6536
6537         * mklibgcc.in: Don't use \n in a line subject to
6538         interpretation by echo.
6539
6540 2002-02-27  Graham Stott  <grahams@redhat.com>
6541
6542         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
6543         Constify NAME.
6544
6545         * loop.c (prescan_loop): Handle PARALLEL.
6546
6547         * unroll.c (loop_iterations): Return 0 if the add_val for
6548         a BIV is REG.
6549
6550         * final.c (output_operand_lossage): Constify PFX_STR.
6551
6552         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
6553
6554 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
6555
6556         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
6557         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
6558
6559 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
6560
6561         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
6562
6563 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6564
6565         * cpplex.c (_cpp_lex_token): Handle directives in macro
6566         arguments.
6567         * cpplib.c (_cpp_handle_directive): Save and restore state
6568         if parsing macro args when entering a directive.
6569         * cppmacro.c (collect_args): No need to handle directives
6570         in macro arguments.
6571         (enter_macro_context, replace_args): Use the original macro
6572         definition in case it was redefined whilst collecting arguments.
6573 doc:
6574         * cpp.texi: Update.
6575
6576 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
6577
6578         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
6579         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
6580         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
6581         method on AIX.
6582         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
6583         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
6584         (load_toc_v4_PIC_2): Same.
6585
6586 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
6587
6588         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
6589
6590 2002-02-26  Richard Henderson  <rth@redhat.com>
6591
6592         * config/alpha/alpha.md (ashldi_se): Re-enable.
6593
6594 2002-02-26  Richard Henderson  <rth@redhat.com>
6595
6596         * config/alpha/alpha.c (alpha_encode_section_info): Examine
6597         MODULE_LOCAL_P; improve commentary.
6598
6599 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
6600
6601         * doc/cpp.texi: Clarify documentation of relationship between
6602         #line and #include.
6603
6604 2002-02-26  Kazu Hirata  <kazu@hxi.com>
6605
6606         * config/h8300/h8300-protos.h: Update the prototype for
6607         compute_logical_op_length.  Add the prototype for
6608         compute_logical_op_cc.
6609         * config/h8300/h8300.c (compute_logical_op_length): Figure out
6610         code from operands.
6611         (compute_logical_op_cc): New.
6612         * config/h8300/h8300.md: Combine all the logical op patterns
6613         in HImode and SImode.  Use compute_logical_op_cc.
6614
6615 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
6616
6617         * config/i386/i386.c (print_operand): Don't append ATT-style
6618         length suffixs to x87 opcodes when in Intel mode.
6619
6620 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
6621
6622         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
6623         (init_emit_once): Update calls.
6624         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
6625         (init_syntax_once): Prototype.
6626
6627 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6628
6629         * pa-linux.h (LIB_SPEC): Update definition.
6630         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6631
6632 2002-02-26  Richard Henderson  <rth@redhat.com>
6633
6634         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
6635         if we emitted a stop bit.
6636
6637 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
6638
6639         * configure.in (libgcc_visibility): Substitute.
6640         * configure: Rebuilt.
6641         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
6642         defined symbols .hidden.
6643
6644 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
6645
6646         * attribs.c (c_common_attribute_table): Add visibility.
6647         (handle_visibility_attribute): New function.
6648         * varasm.c (assemble_visibility): New function.
6649         * output.h (assemble_visibility): Add prototype.
6650         * tree.h (MODULE_LOCAL_P): Define.
6651         * crtstuff.c (__dso_handle): Use visibility attribute.
6652         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
6653         for MODULE_LOCAL_P symbols too.
6654         * config/ia64/ia64.c (ia64_encode_section_info): Handle
6655         MODULE_LOCAL_P symbols the same way as local symbols.
6656         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
6657         into .sdata/.sbss by the user.
6658         * doc/extend.texi (Function Attributes): Document visibility
6659         attribute.
6660
6661 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
6662
6663         PR debug/5770
6664         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
6665         STRING_CST initializer spanning the whole variable without
6666         embedded zeros.
6667         If expand_expr returned MEM, don't use it.
6668
6669 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
6670
6671         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
6672         generate a die for the lexical block.
6673
6674 2002-02-26  Kazu Hirata  <kazu@hxi.com>
6675
6676         * config/h8300/h8300-protos.h: Add a prototype for
6677         compute_logical_op_length.
6678         * config/h8300/h8300.c (compute_logical_op_length): New.
6679         * config/h8300/h8300.md (anonymous logical patterns): Use
6680         compute_logical_op_length for length.
6681
6682 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
6683
6684         * dwarf2out.c (modified_type_die): Do not call type_main_variant
6685         for vectors.
6686         (gen_type_die): Same.
6687
6688         * attribs.c (handle_vector_size_attribute): Set debug information.
6689
6690 2002-02-26  Daniel Egger  <degger@fhm.edu>
6691
6692         * config/rs6000/rs6000.md: Swap define_insn attributes to
6693         fix incorrect generation of merge high instructions instead
6694         of merge low.
6695
6696 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
6697
6698         * c-typeck.c (really_start_incremental_init): Use
6699         bitsize_zero_node for vectors.
6700
6701 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
6702
6703         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
6704         ("*set_vrsave_internal"): Same.
6705
6706 2002-02-25  Richard Henderson  <rth@redhat.com>
6707
6708         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
6709         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
6710
6711 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
6712
6713         PR target/5755
6714         * config/i386/i386.c (ix86_return_pops_args): Only pop
6715         fake structure return argument if it was passed on the stack.
6716
6717 2002-02-25  Jason Merrill  <jason@redhat.com>
6718
6719         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
6720         RESULT_DECL.
6721
6722 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
6723
6724         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
6725         link with shared_name only.
6726         * doc/invoke.texi (Link Options): Document new behavior.
6727
6728 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
6729
6730         * c-typeck.c (push_init_level): Handle vectors.
6731
6732 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
6733
6734         * config/sparc/sparc.c (const64_high_operand): Zero-extend
6735         operands of SPARC_SETHI_P.
6736         (input_operand): Likewise.
6737         (sparc_emit_set_const32): Likewise.
6738         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
6739         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
6740         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
6741         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
6742         (movdi_insn_sp64_vis): Likewise.
6743         (movdi split, movdf split): Use SETHI32.
6744         * doc/md.texi: Document SPARC constraints L, M and N.
6745
6746 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
6747
6748         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
6749         ("*set_vrsave_internal"): use mfspr for Darwin.
6750
6751         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
6752         gen_get_vrsave_internal.
6753
6754 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6755
6756         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
6757
6758 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6759
6760         * cpplex.c (cpp_interpret_charconst): Get signedness or
6761         otherwise of wide character constants correct.
6762         * cppexp.c (lex): Get signedness of wide charconsts correct.
6763
6764 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6765
6766         * optabs.c (widen_operand): Only call convert_modes for
6767         promoted SUBREG if signedness matches.
6768         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
6769
6770 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
6771
6772         * cpplib.c (glue_header_name): Use local buffer to build up
6773         header name.
6774
6775 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
6776
6777         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
6778
6779 2002-02-23  Kazu Hirata  <kazu@hxi.com>
6780
6781         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
6782         H8/300[HS] separately.
6783         * config/h8300/h8300.md: Remove the early clobber constraint
6784         from bit field patterns.
6785
6786 2002-02-23  Kazu Hirata  <kazu@hxi.com>
6787
6788         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
6789         register_operand.
6790         (mulhisi3): Likewise.
6791         (umulqisi3): Likewise.
6792         (umulhisi3): Likewise.
6793
6794 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
6795
6796         * cppinit.c (output_deps): Correct test for stdout output.
6797         (init_dependency_output): Cure warning.
6798
6799 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6800
6801         * expr.c (store_expr): When converting expression to promoted
6802         equivalent type, allow using SUBREG_REG of TARGET as the target
6803         of the expansion of EXP.
6804         * loop.c (basic_induction_var, case SUBREG): Always look inside.
6805         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
6806         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
6807         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
6808         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
6809
6810 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
6811
6812         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
6813         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
6814         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
6815
6816 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
6817
6818         PR optimization/5747
6819         * loop.c (scan_loop): Update reg info if move_movables created new
6820         pseudos.
6821
6822 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
6823
6824         * gcc.c (init_gcc_spec): Revert last change.
6825
6826 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
6827
6828         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
6829         gpc_reg_operand constraint.
6830
6831 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
6832
6833         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
6834         Simplify comparison of `low'.
6835         (add_operand): Fix formatting.
6836         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
6837         (mask_operand): Disallow mask to wrap in 64-bit mode.
6838         (rs6000_stack_info): Remove redundant test setting push_p.
6839         (output_toc): Fix formatting.
6840         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
6841         cc_reg_not_cr0_operand constraint.
6842         (booldi3, boolcdi3 splitters): Same.
6843
6844 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
6845
6846         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
6847
6848 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
6849
6850         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
6851         gcc invoked with -shared-libgcc.
6852
6853 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
6854
6855         PR c++/5748
6856         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
6857         decl if any of elements was TREE_USED.
6858
6859 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
6860
6861         * config/sparc/sol2.h: Don't include sys/mman.h.
6862         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
6863         (arith_4096_operand): Don't throw high bits away.
6864         (const64_operand): Take sign extension of CONST_INTs into account.
6865         (const64_high_operand, sparc_emit_set_const32): Likewise.
6866         (GEN_HIGHINT64): Likewise.
6867         (sparc_emit_set_const64_quick1): Likewise.
6868         (const64_is_2insns): Likewise.
6869         (print_operand): Use trunc_int_for_mode for sign extension.
6870         * config/sparc/sparc.h (SMALL_INT32): Likewise.
6871         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
6872         chars.  Assume CONST_INT is already properly sign-extended.
6873         (movdi split): Sign-extend each SImode part.
6874         (andsi3 split): Don't mask high bits off, so that result
6875         remains properly sign-extend.
6876         (iorsi3 split): Likewise.
6877         (xorsi3 split): Likewise.
6878
6879 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
6880
6881         * fold-const.c (fold): Fix typo in comments.
6882
6883 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
6884
6885         * Makefile.in (langhooks.o): Update dependencies.
6886
6887 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
6888
6889         * langhooks.c: Include flags.h.
6890
6891 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
6892
6893         * testsuite/gcc.dg/attr-alwaysinline.c: New.
6894
6895         * c-common.c (c_common_post_options): Set inline trees by
6896         default.
6897
6898         * doc/extend.texi (Function Attributes): Document always_inline
6899         attribute.
6900         Update documentation about inlining when not optimizing.
6901
6902         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
6903
6904         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
6905         unless DECL_ALWAYS_INLINE.
6906
6907         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
6908         unless DECL_ALWAYS_INLINE.
6909         (c_disregard_inline_limits): Disregard if always_inline set.
6910
6911         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
6912         Disregard if always_inline set.
6913         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
6914         unless DECL_ALWAYS_INLINE.
6915
6916         * attribs.c (handle_always_inline_attribute): New.
6917         (c_common_attribute_table): Add always_inline.
6918
6919         * config/rs6000/altivec.h: Add prototypes for builtins
6920         requiring the always_inline attribute.
6921
6922 2002-02-21  Eric Christopher  <echristo@redhat.com>
6923
6924         * expmed.c (store_bit_field): Try to simplify the subreg
6925         before generating a new one when when the mode size of
6926         value is less than maxmode.
6927
6928 2002-02-21  Richard Henderson  <rth@redhat.com>
6929
6930         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
6931         than gen_rtx_PLUS to form the sum.
6932         * explow.c (force_reg): Rearrange to not allocate new pseudo
6933         when force_operand returns a register.
6934         * expr.c (expand_assignment): Allow offset_rtx expansion to
6935         return a sum.  Do not force addresses into registers.
6936         (expand_expr): Likewise.
6937         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
6938         to canonicalize arithmetic that didn't simpify.
6939         (simplify_plus_minus): New argument force; update
6940         all callers.  Don't split CONST unless we can do something with it,
6941         and wouldn't lose the constness of the operands.
6942
6943         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
6944         that we generated earlier.
6945
6946 2002-02-21  Tom Tromey  <tromey@redhat.com>
6947
6948         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6949         (output_line_info): Use constant `1', with a long explanatory
6950         comment.
6951         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
6952
6953 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
6954
6955         * jump.c (redirect_jump): If old label has no UID, don't try to
6956         delete it.
6957
6958 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
6959
6960         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
6961         If input is constant, do shifts at compile time.
6962
6963 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
6964
6965         * doc/extend.texi: Fix some more overfull hboxes.
6966
6967 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
6968
6969         PR optimization/4994
6970         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
6971         register moves.
6972
6973 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
6974
6975         PR c++/4574
6976         * expr.h (expand_and): Add mode argument.
6977         * expmed.c (expand_and): Add mode argument.
6978         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
6979         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
6980         * except.c (expand_builtin_extract_return_addr): Likewise.
6981         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
6982         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
6983         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
6984         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
6985         * config/c4x/c4x.md: Use GEN_INT (x) instead of
6986         gen_rtx (CONST_INT, VOIDmode, x).
6987
6988 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
6989
6990         PR c/4697:
6991         * stmt.c (warn_if_unused_value): Move side effects test once more.
6992
6993 2002-02-20  Torbjorn Granlund  <tege@swox.com>
6994
6995         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
6996         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
6997
6998 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
6999
7000         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
7001         SUBREG or ZERO_EXTEND.
7002
7003 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
7004
7005         * sh.h (current_function_anonymous_args): Remove.
7006         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
7007         of current_function_varargs and current_function_stdarg is set.
7008         * sh.c (sh_expand_prologue): Check current_function_varargs /
7009         current_function_stdarg / TARGET_SH5 instead of
7010         current_function_anonymous_args.
7011
7012         * sh64.h (TARGET_VERSION): Define.
7013
7014 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
7015
7016         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
7017         VRSAVE_REGNO on TARGET_ALTIVEC.
7018
7019 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
7020
7021         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
7022         bits of SImode const_int.
7023         (includes_rshift_p): Likewise.
7024         (print_operand): Call mask_operand and mask64_operand with correct
7025         mode.
7026         (rs6000_output_function_epilogue): Pad traceback table to word.
7027         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
7028         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
7029         mask64_operand with correct mode.
7030         (FUNCTION_ARG_REGNO_P): Correct parentheses.
7031
7032 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
7033
7034         PR debug/4461
7035         * varasm.c (get_pool_constant_mark): New.
7036         * rtl.h (get_pool_constant_mark): Add prototype.
7037         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
7038         be represented if it has not been output.
7039
7040 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
7041
7042         * combine.c (do_SUBST): Sanity check substitutions of
7043         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
7044         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
7045         CONST_INT into its operand.
7046         (known_cond): Likewise, for ZERO_EXTEND.
7047         * simplify-rtx.c (simplify_unary_operation): Fix condition to
7048         allow for simplification of wide modes.  Reject CONST_INTs in
7049         ZERO_EXTEND when their actual mode is not given.
7050
7051 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
7052
7053         * c-decl.c (pushdecl): If no global declaration is found for an
7054         extern declaration in block scope, try a limbo one.
7055
7056 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
7057
7058         PR c++/4401
7059         * c-common.c (pointer_int_sum): Moved from...
7060         * c-typeck.c (pointer_int_sum): ...here.
7061         * c-common.h (pointer_int_sum): Add prototype.
7062
7063 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
7064
7065         PR c++/5713
7066         * c-decl.c (duplicate_decls): Return 0 if issued error about
7067         redeclaration.
7068
7069 2002-02-20  Roger Sayle  <roger@eyesopen.com>
7070             Jakub Jelinek  <jakub@redhat.com>
7071
7072         PR c/4389
7073         * tree.c (host_integerp): Ensure that the constant integer is
7074         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
7075         when pos is zero or non-zero respectively.  Clarify comment.
7076         * c-format.c (check_format_info_recurse): Fix host_integerp
7077         usage; the pos argument should be zero when assigning to a
7078         signed HOST_WIDE_INT.
7079
7080 2002-02-20  Richard Henderson  <rth@redhat.com>
7081
7082         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
7083         of the operand, rather than assuming TImode.
7084         (ix86_expand_binop_builtin): Cope with commutative patterns
7085         using nonimmediate_operand for both operands.
7086         (ix86_expand_timode_binop_builtin): Likewise.
7087         (ix86_expand_store_builtin): Validate operand 1.
7088         (ix86_expand_unop1_builtin): Likewise.
7089
7090 2002-02-20  Philip Blundell  <philb@gnu.org>
7091
7092         PR 5705
7093         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
7094
7095 2002-02-20  Richard Henderson  <rth@redhat.com>
7096
7097         PR c/5615
7098         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
7099
7100 2002-02-20  Tom Tromey  <tromey@redhat.com>
7101
7102         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7103         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7104         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7105         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7106         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
7107         unconditionally.
7108
7109 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
7110
7111         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
7112           for (const_int 0) in X not just INTVAL.
7113
7114 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
7115
7116         * doc/extend.texi: Avoid or reduce overfull hboxes.
7117
7118 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
7119
7120         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
7121         operations if the field does not start at a mode boundary.
7122
7123 2001-02-20      Joel Sherrill <joel@OARcorp.com>
7124
7125         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
7126         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
7127         Also done for -Acpu and -Amachine.
7128
7129 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
7130
7131         * cppinit.c (init_dependency_output): Take deps output file
7132         from -o if none given with -MF.  Suppress normal output.
7133         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
7134         * doc/cpp.texi, doc/invoke.texi: Update.
7135
7136 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
7137
7138         * toplev.c (output_quoted_string): Write unprintable
7139         characters with octal escapes.
7140
7141 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
7142
7143         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
7144         really_call_used[VRSAVE_REGNO] if not Altivec.
7145
7146 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
7147
7148         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
7149         MODE_MASK.
7150         (constant_pool_expr_1): Fix formatting.
7151         (rs6000_legitimize_reload_address): Likewise.
7152
7153 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7154
7155         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
7156         now that we have one.
7157
7158 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
7159
7160         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
7161         end of first block of bitfields (which was only seven bits);
7162         rename dummy to unused_1; remove comment which is no longer true.
7163
7164 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
7165
7166         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
7167
7168 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
7169
7170         PR 5399
7171         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
7172         if generating PIC.
7173
7174         PR 5054
7175         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
7176         arm_is_longcall_p rather than inspecting call-type cookie
7177         directly.
7178         (call_value_insn) [TARGET_THUMB]: Likewise.
7179
7180 2002-02-19  Graham Stott  <grahams@redhat.com>
7181
7182         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
7183
7184 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
7185
7186         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
7187         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
7188         (FP_SAVE_INLINE): Delete.
7189
7190         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
7191         * config/rs6000/eabi.asm: Remove ABI save restore routines.
7192         * config/rs6000/t-ppccomm: Build crtsavres.o.
7193         * config/rs6000/crtsavres.asm: New file.
7194
7195 2002-02-19  Philip Blundell  <philb@gnu.org>
7196
7197         * config/arm/arm.c (use_return_insn): Don't reject interrupt
7198         functions.
7199         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
7200         (output_return_instruction): Allow interrupt functions to return with
7201         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
7202         (arm_expand_prologue): Subtract 4 before stacking LR in an
7203         interrupt function.
7204
7205 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
7206
7207         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
7208         decl, not just FUNCTION_DECL.
7209         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
7210         (arm_assemble_integer): Likewise.
7211         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
7212         marked local.
7213
7214 2002-02-19  matthew green  <mrg@eterna.com.au>
7215
7216         * config.gcc (sparc-*-netbsdelf*): Enable target.
7217         (sparc64-*-netbsd*): New target.
7218         * config/sparc/netbsd-elf.h: New file.
7219         * config/sparc/t-netbsd64: New file.
7220
7221 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
7222
7223         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
7224
7225 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
7226
7227         * doc/invoke.texi: explicitly list the style guidelines that
7228         -Weffc++ checks for.
7229
7230 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
7231
7232         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
7233
7234 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
7235
7236         PR other/5718
7237         * gcc.c (cpp_unique_options): Treat -o as indicating object file
7238         only if not -E.  If -E, pass -o through to the preprocessor.
7239
7240 2002-02-19  Kazu Hirata  <kazu@hxi.com>
7241
7242         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
7243         register number with an appropriate macro.
7244
7245 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
7246
7247         * doc/rtl.texi (Constants): Close @code tag.
7248
7249 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
7250
7251         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
7252         ("mmx_uavgv4hi3"): Same.
7253         ("pmulhrwv4hi3"): Same.
7254
7255         * tree-inline.c (walk_tree): Handle vectors.
7256
7257         * c-common.c (constant_expression_warning): Handle vectors.
7258         (overflow_warning): Same.
7259
7260         * sched-deps.c (sched_analyze_2): Handle vectors.
7261
7262         * rtlanal.c (rtx_unstable_p): Handle vectors.
7263         (rtx_varies_p): Same.
7264         (count_occurrences): Same.
7265         (regs_set_between_p): Same.
7266         (modified_between_p): Same.
7267         (modified_in_p): Same.
7268         (volatile_insn_p): Same.
7269         (volatile_refs_p): Same.
7270         (side_effects_p): Same.
7271         (may_trap_p): Same.
7272         (inequality_comparisons_p): Same.
7273         (replace_regs): Same.
7274         (computed_jump_p_1): Same.
7275
7276         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
7277         argument.
7278         (inner_mode_array): New.
7279         (copy_rtx): Handle vectors.
7280         (copy_most_rtx): Same.
7281         (rtx_equal_p): Same.
7282         (get_mode_alignment): Adjust for vectors.
7283
7284         * resource.c (mark_referenced_resources): Handle vectors.
7285         (mark_set_resources): Same.
7286
7287         * reload1.c (eliminate_regs): Handle vectors.
7288         (elimination_effects): Same.
7289         (scan_paradoxical_subregs): Same.
7290
7291         * reload.c (subst_reg_equivs): Handle vectors.
7292
7293         * regrename.c (scan_rtx): Handle vectors.
7294
7295         * regclass.c (reg_scan_mark_refs): Handle vectors.
7296
7297         * recog.c (find_single_use_1): Handle vectors.
7298
7299         * local-alloc.c (equiv_init_varies_p): Handle vectors.
7300         (contains_replace_regs): Same.
7301         (memref_referenced_p): Same.
7302
7303         * integrate.c (copy_rtx_and_substitute): Handle vectors.
7304         (subst_constants): Same.
7305
7306         * genattrtab.c (attr_copy_rtx): Handle vectors.
7307         (encode_units_mask): Same.
7308         (clear_struct_flag): Same.
7309         (count_sub_rtxs): Same.
7310
7311         * gcse.c (want_to_gcse_p): Handle vectors.
7312         (oprs_unchanged_p): Same.
7313         (hash_expr_1): Same.
7314         (oprs_not_set_p): Same.
7315         (expr_killed_p): Same.
7316         (compute_transp): Same.
7317         (store_ops_ok): Same.
7318
7319         * function.c (purge_addressof_1): Do not allow paradoxical subregs
7320         of vectors.
7321         (fixup_var_refs_1): Same.
7322         (instantiate_virtual_regs_1): Same.
7323
7324         * fold-const.c (operand_equal_p): Handle vectors.
7325         (fold): Same.
7326         (rtl_expr_nonnegative_p): Same.
7327
7328         * flow.c (mark_used_regs): Handle vectors.
7329
7330         * df.c (df_uses_record): Handle vectors.
7331
7332         * cselib.c (cselib_subst_to_values): Handle vectors.
7333         (cselib_mem_conflict_p): Same.
7334         (hash_rtx): Same.
7335
7336         * cse.c (canon_reg): Handle vectors.
7337         (fold_rt): Same.
7338         (cse_process_notes): Same.
7339         (count_reg_usage): Same.
7340         (canon_hash): Same.
7341
7342         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
7343
7344         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
7345
7346         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
7347         (gen_rtx): Handle CONST_VECTOR.
7348         (gen_const_vector_0): New.
7349         (copy_rtx_if_shared): CONST_VECTORs can be shared.
7350         (reset_used_flags): Same.
7351         (copy_insn_1): Same.
7352         (initializer_constant_valid_p): Handle VECTOR_CST.
7353
7354         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
7355
7356         * doc/rtl.texi (Constants): Document const_vector.
7357         (CONST0_RTX): Update for vectors.
7358         (RTL sharing): Same.
7359
7360         * print-tree.c (print_node): Add case for VECTOR_CST.
7361
7362         * tree.h (TREE_VECTOR_CST_ELTS): New.
7363         (struct tree_vector): New.
7364         (union tree_node): Add vector node.
7365         (build_vector): Add prototype.
7366
7367         * tree.def (VECTOR_CST): New.
7368
7369         * tree.c (build_vector): New.
7370
7371         * expmed.c (make_tree): Handle CONST_VECTOR.
7372
7373         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
7374         (CONST_VECTOR_ELT): New.
7375         (CONST_VECTOR_NUNITS): New.
7376
7377         * machmode.h (GET_MODE_INNER): New.
7378         (DEF_MACHMODE): Accept 8th arg.
7379
7380         * machmode.def: Add 8th argument for vector inner mode.
7381         Add inner vector modes for vectors.
7382
7383         * rtl.def (VEC_CONST): Remove.
7384         (CONST_VECTOR): New.
7385
7386         * expr.c (clear_storage): Allow vectors.
7387         (is_zeros_p): Handle VECTOR_CST.
7388
7389         * varasm.c (output_constant_pool): Handle vectors.
7390         (rtx_const): Add veclo and vechi fields.
7391         (kind): Add RTX_VECTOR.
7392         (decode_rtx_const): Add case for vector.
7393
7394         * config/rs6000/rs6000-protos.h: Add zero_constant.
7395
7396         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
7397         constants.  Force easy vector constants into memory.
7398         (easy_vector_constant): New.
7399         (emit_easy_vector_constant): New.
7400         (rs6000_legitimize_reload_address): Do not generate bad reloads on
7401         darwin.
7402
7403         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
7404         instruction does.
7405         ("altivec_lvxl"): Same.
7406         (altivec_lvebx): Same.
7407         (altivec_lvehx): Same.
7408         (altivec_lvewx): Same.
7409         ("*movv4si_const0"): New.
7410         ("*movv4sf_const0"): New.
7411         ("*movv8hi_const0"): New.
7412         ("*movv16qi_const0"): New.
7413
7414 2002-02-18  Kazu Hirata  <kazu@hxi.com>
7415
7416         * config/h8300/h8300.c (notice_update_cc): Use
7417         cc_status.value2.
7418
7419 2002-02-18  Kazu Hirata  <kazu@hxi.com>
7420
7421         * config/h8300/h8300.md (divmod patterns): Change the
7422         constraints for operands[1] to register_operand.
7423
7424 2002-02-18  Kazu Hirata  <kazu@hxi.com>
7425
7426         * config/h8300/h8300-protos.h: Remove the prototype for
7427         p_operand.
7428         * config/h8300/h8300.c (p_operand): Remove.
7429         * config/h8300/h8300.md: Replace p_operand with
7430         const_int_operand.
7431
7432 2002-02-18 Philip Blundell <pb@nexus.co.uk>
7433
7434         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
7435         comment.
7436         (output_return_instruction): Allow use of LDR to unstack
7437         return addresss even for interrupt handlers or when
7438         interworking.  If compiling for ARMv5, use interworking-safe
7439         return instructions by default.  Remove duplicated code and
7440         lengthy "strcat" sequences.
7441
7442 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7443
7444         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
7445         (LINK_EH_SPEC): Define.
7446         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
7447
7448 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
7449
7450         * config/s390/s390.c (s390_emit_prologue): Do not set the
7451         frame_related flag for call-clobbered registers.
7452
7453 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
7454
7455         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
7456         (construct_container): Fix handling of SSE operands.
7457         (ix86_expand_builtin): Fix handling of 64bit pointers.
7458         (mmx_maskmovq_rex): New pattern.
7459
7460 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
7461
7462         * regrename.c (kill_set_value): Handle subregs properly.
7463
7464 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
7465
7466         * objc/objc-act.c (handle_impent): Remove leading '*'
7467         from objc_class_name.
7468
7469 2002-02-17  Richard Henderson  <rth@redhat.com>
7470
7471         * config/alpha/alpha.c (some_small_symbolic_operand,
7472         some_small_symbolic_operand_1, split_small_symbolic_operand,
7473         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
7474         Handle small SYMBOL_REFs anywhere, not just inside memories.
7475         * config/alpha/alpha-protos.h: Update.
7476         * config/alpha/alpha.h (PREDICATE_CODES): Update.
7477         * config/alpha/alpha.md (small symbolic operand splitter): Update.
7478
7479 2002-02-17  Roland McGrath  <roland@frob.com>
7480
7481         * config.gcc (powerpc-*-gnu-gnualtivec*,
7482         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
7483         * config/rs6000/gnu.h: New file.
7484         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
7485         Grok "gnu" in rs6000_abi_name.
7486         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
7487         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
7488         Grok -mcall-gnu analogous to -mcall-linux et al.
7489         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
7490         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
7491         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
7492
7493 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
7494
7495         PR c/3444:
7496         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
7497         shortening.
7498
7499 2002-02-17  Philipp Thomas  <pthomas@suse.de>
7500
7501         * config/cris/cris.h: Undefine STARTFILE_SPEC and
7502         ENDFILE_SPEC before (re)defining them.
7503
7504 2002-02-17  Kazu Hirata  <kazu@hxi.com>
7505
7506         * config/h8300/h8300.c: Fix formatting.
7507         * config/h8300/h8300.h: Likewise.
7508
7509 2002-02-17  Philipp Thomas  <pthomas@suse.de>
7510
7511         * doc/tm.texi: Explain why empty strings should not be
7512         marked for translation.
7513
7514 2002-02-17  Philipp Thomas  <pthomas@suse.de>
7515
7516         * final.c (output_operand_lossage): Changed to accept
7517         printf style arguments. Change calls where necessary.
7518         * output.h (output_operand_lossage): Change declaration
7519         accordingly. Update copyright.
7520         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
7521         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
7522         Update copyright date where necessary.
7523
7524         * config/i386/i386.c (print_operand): Likewise. Remove use of
7525         sprintf.
7526
7527         * config/cris/cris.c (cris_operand_lossage): Likewise.
7528         Rename parameter so that exgettext recognizes it as
7529         translatable message.
7530         (LOSE_AND_RETURN): Rename parameter to msgid.
7531
7532 2002-02-17  Kazu Hirata  <kazu@hxi.com>
7533
7534         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
7535         hard coded register number with an appropriate macro.
7536         (HARD_REGNO_MODE_OK): Likewise.
7537         (ARG_POINTER_REGNUM): Likewise.
7538         (STATIC_CHAIN_REGNUM): Likewise.
7539         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
7540         * config/h8300/h8300.md (define_constants): Define more
7541         register numbers.
7542
7543 2002-02-17  Philipp Thomas  <pthomas@suse.de>
7544
7545         * config/i386/i386.h: Don't mark empty strings for translation.
7546
7547 2002-02-16  H.J. Lu <hjl@gnu.org>
7548
7549         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
7550
7551 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
7552
7553         * cppinit.c (merge_include_chains): Check for brack being
7554         NULL before attempting to merge it with qtail.
7555
7556 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
7557
7558         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
7559         DBX_DEBUG.
7560
7561 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7562
7563         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
7564
7565 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7566
7567         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
7568         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
7569         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
7570
7571 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7572
7573         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
7574         now only if !TARGET_FIX.
7575         (*movsi_nt_vms_fix): New pattern.
7576
7577 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
7578
7579         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
7580         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
7581         (alpha_sa_mask, alpha_sa_size): Reflect above change.
7582         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
7583         (alpha_start_function, alpha_expand_epilogue): Likewise.
7584         (unicosmk_gen_dsib): Likewise.
7585
7586 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7587
7588         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
7589
7590 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
7591
7592         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
7593         check_and_change_labels, s390_final_chunkify): Delete.
7594         (s390_split_branches, s390_chunkify_pool): New functions.
7595         (s390_function_prologue): Call them.
7596
7597         * config/s390/s390.h (S390_REL_MAX): Delete.
7598         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
7599
7600         * config/s390/s390.md (cjump, icjump, jump): Fix length
7601         attribute calculation.
7602
7603
7604 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
7605
7606         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
7607         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
7608
7609 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7610
7611         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
7612         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
7613         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
7614
7615 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
7616
7617         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
7618
7619 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
7620
7621         * reload.c (find_dummy_reload): Check that an output register
7622         is valid for its mode.
7623
7624 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
7625
7626         * combine.c (known_cond): After replacing the REG of a SUBREG, try
7627         to simplify it.
7628
7629         * function.c (assign_parms): Demote promoted argument passed by
7630         transparent reference.
7631
7632 2001-02-14      Joel Sherrill <joel@OARcorp.com>
7633
7634         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
7635         -Acpu() and -Amachine() to eliminate warnings.
7636
7637 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
7638
7639         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
7640
7641 2002-02-14  Kazu Hirata  <kazu@hxi.com>
7642
7643         * config/h8300/h8300-protos.h: Update the prototype for
7644         const_costs.
7645         * config/h8300/h8300.c (const_costs): Treat SET as a little
7646         more expensive operation.
7647         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
7648         reference to const_costs.
7649
7650 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
7651
7652         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
7653
7654 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
7655
7656         PR c/5503:
7657         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
7658         use arguments from newtype.
7659
7660 2002-02-13  Eric Christopher  <echristo@redhat.com>
7661
7662         * config/mips/mips.c (override_options): Add check for march/mipsX
7663         on the same command line. Fix error message in cpu processing.
7664         Remove architecture and ISA checks.
7665
7666 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
7667
7668         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
7669
7670         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
7671
7672 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
7673
7674         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
7675         alternatives.
7676         ("*movv8hi_internal1"): Same.
7677         ("*movv16qi_internal1"): Same.
7678         ("*movv4sf_internal1"): Same.
7679
7680         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
7681         not push_reload for altivec modes.
7682
7683 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
7684
7685         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
7686         all RTEMS targets including removal of #includes from config/*/rtems*.h
7687         file and adding them to tm_file setting. Added xm_defines=POSIX to
7688         many targets.
7689         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
7690         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
7691         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
7692         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
7693         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
7694         config/m68k/rtemself.h: Ditto.
7695         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
7696         config/mips/rtems64.h: Ditto.
7697         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
7698         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
7699         Ditto.
7700         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
7701         config/sparc/rtemself.h: Ditto.
7702         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
7703         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
7704         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
7705         more like arm-elf.
7706         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
7707         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
7708         target made more similar to i386-elf.
7709         * config/i386/t-rtems-i386: Added soft float support and multilibs.
7710         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
7711         be similar to config/m68k/t-m68kelf.
7712         * gthr-rtems.h: Encapsulate with extern "C" for C++.
7713
7714 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
7715
7716         * regmove.c (kill_value): Handle subregs.
7717
7718 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
7719
7720         * i386.md (mul patterns): Allow memory operand to be first;
7721         add expanders where needed; fix constraints.
7722         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
7723         Allow memory operand to be the first.
7724
7725         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
7726         operands.
7727
7728 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
7729
7730         PR c/5681:
7731         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
7732         GET_MODE (x).
7733
7734 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
7735
7736         PR optimization/5547:
7737         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
7738         all valid IA-32 address modes involving non-scaled %ebx and
7739         GOT/GOTOFF as displacement.
7740
7741 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
7742
7743         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
7744         after emitting ltorg insns.
7745
7746         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
7747         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
7748         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
7749         *abssf2): Fix "op_type" attribute.
7750
7751 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
7752
7753         * mkconfig.sh: Avoid using a subshell redirect.
7754         ($output.T): Change to $(output)T.
7755         (ENABLE_NLS): Remove unneeded undef.
7756
7757         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
7758         * config/alpha/x-vms (libsubdir): Define.
7759
7760         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
7761         register frame procedures. Optimize retrieving context.
7762
7763         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
7764         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
7765         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
7766
7767 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7768
7769         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
7770         Make same change as for find_base_value.
7771
7772 2002-02-13  Kazu Hirata  <kazu@hxi.com>
7773
7774         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
7775         of QImode and SImode.
7776
7777 2002-02-13  Kazu Hirata  <kazu@hxi.com>
7778
7779         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
7780         length computation of movsi.
7781         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
7782
7783 2002-02-13  Kazu Hirata  <kazu@hxi.com>
7784
7785         * config/h8300/h8300.md (subqi3): Tighten the predicate for
7786         operands[2] to register_operand.
7787
7788 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
7789
7790         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
7791
7792 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
7793
7794         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
7795         for altivec_lvx* and altivec_stvx*.
7796         ("*movv4si_internal"): Add constraint for loading from GPRs.
7797         ("*movv8hi_internal1"): Same.
7798         ("*movv16qi_internal1"): Same.
7799         ("*movv4sf_internal1"): Same.
7800
7801         * config/rs6000/rs6000.c (altivec_register_operand): New.
7802
7803         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
7804         altivec_register_operand.
7805
7806 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
7807
7808         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
7809         handle SYMBOL_REF.
7810
7811 2002-02-13  Stan Shebs  <shebs@apple.com>
7812
7813         * c-typeck.c (digest_init): Handle vectors.
7814         (really_start_incremental_init): Same.
7815         (pop_init_level): Same.
7816         (process_init_element): Same.
7817
7818         * varasm.c (output_constant): Same.
7819
7820         * expr.c (clear_storage): Same.
7821         (store_constructor): Same.
7822
7823 2002-02-12  Eric Christopher  <echristo@redhat.com>
7824
7825         * explow.c (hard_function_value): Add comment explaining
7826         signed/unsigned comparison.
7827
7828 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
7829
7830         * jump.c (never_reached_warning): Add finish argument.
7831         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
7832         real insn after end.
7833         * rtl.h (never_reached_warning): Adjust prototype.
7834         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
7835         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
7836         never_reached_warning.
7837
7838 2002-02-12  Graham Stott  <grahams@redhat.com>
7839
7840         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
7841
7842 2002-02-12  Kazu Hirata  <kazu@hxi.com>
7843
7844         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
7845         logical shifts on H8/300.
7846         (shift_alg_si): Improve several shifts on H8/300.
7847         (get_shift_alg): Likewise.
7848
7849 2002-02-12  Graham Stott  <grahams@redhat.com>
7850
7851         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
7852
7853 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7854
7855         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
7856         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
7857
7858 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
7859
7860         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
7861         non-CONST_INT through default_assemble_integer.
7862         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
7863         <case 8>: Abort for CONST_DOUBLE.
7864
7865 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7866
7867         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
7868         is specified.
7869         * config/pa/pa-linux.h (LIB_SPEC): Delete.
7870         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
7871
7872 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
7873
7874         * config/stormy16/stormy16.md (zero_extendqihi2): New.
7875
7876 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
7877
7878         * regrename.c (regrename_optimize): Don't accept a
7879         part-clobbered register if the replaced register is not part
7880         clobbered.
7881
7882         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
7883         take padding into account when computing the argument value.
7884
7885         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
7886
7887         * combine.c (try_combine): Apply substitutions in
7888         CALL_INSN_FUNCTION_USAGE too.
7889
7890 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
7891
7892         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
7893         __builtin_altivec_abs*.
7894         (bdesc_abs): New.
7895
7896         * config/rs6000/rs6000.h (rs6000_builtins): Add
7897         ALTIVEC_BUILTIN_ABS*.
7898
7899         * config/rs6000/altivec.h: Use const char for builtins expecting
7900         literals.
7901         (vec_abs): New versions for C and C++.
7902         (vec_abss): Same.
7903
7904 2002-02-10  Kazu Hirata  <kazu@hxi.com>
7905
7906         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
7907         using Pmode.
7908
7909 2002-02-10  Kazu Hirata  <kazu@hxi.com>
7910
7911         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
7912         constant definition from h8300.md.
7913         (FRAME_POINTER_REGNUM): Likewise.
7914         * config/h8300/h8300.md (define_constants): Add FP_REG.
7915
7916 2002-02-10  Kazu Hirata  <kazu@hxi.com>
7917
7918         * config/h8300/h8300.c (print_operand): Remove redundant code.
7919
7920 2002-02-10  Kazu Hirata  <kazu@hxi.com>
7921
7922         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
7923         * config/h8300/h8300.c (byte_reg): Make it static.
7924
7925 2002-02-10  Richard Henderson  <rth@redhat.com>
7926
7927         PR c/5623
7928         * c-typeck.c (incomplete_type_error): Handle flexible array members.
7929
7930 2002-02-10  Richard Henderson  <rth@redhat.com>
7931
7932         PR c++/5624
7933         * tree.c (append_random_chars): Don't abort if main_input_filename
7934         does not exist.
7935
7936 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
7937
7938         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
7939
7940 2002-02-10  Kazu Hirata  <kazu@hxi.com>
7941
7942         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
7943         (pushhi1): Likewise.
7944
7945 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7946
7947         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
7948         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
7949
7950 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
7951
7952         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
7953         remove MASK_VIS.
7954         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
7955
7956 2002-02-09  Kazu Hirata  <kazu@hxi.com>
7957
7958         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
7959         a half of an SImode register on H8/300.
7960
7961 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
7962
7963         * i386.md (movdi_2): Add missing '!'.
7964
7965 2002-02-09  Kazu Hirata  <kazu@hxi.com>
7966
7967         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
7968         definitions.
7969
7970 2002-02-09  Kazu Hirata  <kazu@hxi.com>
7971
7972         * config/h8300/h8300.md (length): Correct the distance valid
7973         for the short branch.
7974
7975 2002-02-09  Kazu Hirata  <kazu@hxi.com>
7976
7977         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
7978
7979 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
7980
7981         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
7982         registers in SImode.
7983         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
7984         part-clobbered.
7985
7986         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
7987         patch.
7988
7989         Contribute sh64-elf.
7990         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
7991         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
7992         (sh_cannot_modify_jumps_p): New function.
7993         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
7994         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
7995         (sh_ms_bitfield_layout_p): New function.
7996         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
7997                     Zack Weinberg  <zack@codesourcery.com>
7998         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
7999         expand_simple_binop instead of expand_binop.
8000         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
8001         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
8002         use of .quad and .uaquad.
8003         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
8004         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
8005         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8006         * config/sh/sh.md (movdi_const, movdi_const_32bit,
8007         movdi_const_16bit): Make sure all CONSTs have modes.
8008         (sym2PIC): Ditto, but by adjusting all callers.
8009         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
8010         if the prologue calls the SHmedia argument decoder or register
8011         saver.
8012         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8013         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
8014         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
8015         (sh_expand_epilogue): Don't emit USE of return target register.
8016         (prepare_move_operands): Legitimize DImode PIC addresses.
8017         (sh_media_register_for_return): Skip tr0, used to initialize the
8018         PIC register.
8019         (sh_expand_prologue): Remove explicit USE of return register.
8020         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
8021         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
8022         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
8023         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
8024         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
8025         EXTRA_CONSTRAINT_T.
8026         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
8027         (MOVI_SHORI_BASE_OPERAND_P): New.
8028         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
8029         (EXTRA_CONSTRAINT_T): Define in terms of them.
8030         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
8031         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
8032         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
8033         alternatives supporting TARGET_REGS.
8034         (UNSPEC_GOTPLT): New constant.
8035         (movdi split): Move incrementing of LABEL_NUSES...
8036         (movdi_const, movdi_const_32bit): Here.  Use
8037         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
8038         (movdi_const_16bit): New.
8039         (call, call_value) [flag_pic]: Use GOTPLT.
8040         (call_pop, call_value_pop): New expands.
8041         (call_pop_compact, call_pop_rettramp): New insns.
8042         (call_value_pop_compact, call_value_pop_rettramp): New insns.
8043         (sibcall) [flag_pic]: Use GOT.
8044         (builtint_setjmp_receiver): Remove bogus, unused expand.
8045         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
8046         (*pt, *ptb, ptrel): New insns.
8047         (sym2GOT): Handle DImode GOT.
8048         (sym2GOTPLT, symGOTPLT2reg): New expands.
8049         (sym2PIC): New expand.
8050         (shcompact_return_tramp): Use GOTPLT to return trampoline.
8051         (shcompact_return_tramp_i): Use return register explicitly.
8052         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
8053         disable flag_reorder_blocks.
8054         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
8055         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
8056         clobbers, for clarity.
8057         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
8058         restoring of r0 in macl as MAYBE_DEAD.
8059         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
8060         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
8061         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
8062         alter_subreg all over.
8063         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
8064         reload, instead of emitting instructions that would require
8065         reloading.
8066         (casesi_load_media): Add missing modes.
8067         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
8068         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
8069         as used if the argument decoder is called.
8070         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
8071         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
8072         Pmode, then extend it to DImode if necessary.
8073         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
8074         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
8075         constants in FPU-enabled SHmedia, let them be loaded from memory.
8076         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
8077         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
8078         Adjust whitespace in assembly output templates.
8079         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
8080         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
8081         mode of if_then_else.
8082         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
8083         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
8084         sh.h.
8085         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
8086                     Joern Rennecke <amylaar@redhat.com>
8087         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
8088         (SUBTARGET_CPP_PTR_SPEC): New.
8089         (SUBTARGET_CPP_SPEC): Remove.
8090         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
8091         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
8092         Fix typo in previous checkin.
8093         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
8094         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
8095         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
8096                     Alexandre Oliva  <aoliva@redhat.com>
8097         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
8098         what single FP register can hold for SHmedia target.
8099         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
8100                     Alexandre Oliva  <aoliva@redhat.com>
8101         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
8102         Do not split into SUBREG.
8103         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
8104         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
8105         and added new functions as specified in SH5 ABI r9.
8106         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
8107         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
8108         8-byte boundary.
8109         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
8110         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
8111         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
8112         and consttable_window_ends.
8113         2001-06-03  Graham Stott  <grahams@redhat,com>
8114         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
8115         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
8116         * config/sh/sh.c (print_operand): Handle floating-point pair,
8117         vector and matrix registers.
8118         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
8119         vector modes into account.
8120         * config/sh/sh.md (movv2sf): Split move between registers into
8121         movdf.
8122         (movv4sf, movv16sf): Introduce insns that get split only after
8123         reload.
8124         * config/sh/shmedia.h: Fix Copyright dates.
8125         * config/sh/ushmedia.h: Likewise.  Move loop counter
8126         declarations into conditionals that uses them.
8127         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
8128         loop boundary.
8129         * config/sh/sshmedia.h: Fix Copyright dates.
8130         (sh_media_PUTCFG): Fix constraints.
8131         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
8132         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
8133         ptrmemfunc_vbit_in_delta for SH5.
8134         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
8135         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
8136         * invoke.texi: Likewise.
8137         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
8138         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
8139         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
8140         GCC_pop_shmedia_regs_nofpu): New global symbols.
8141         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
8142         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
8143         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
8144         compact function with nonlocal labels.
8145         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
8146         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
8147         (initial_elimination_offset): Account for their stack space.
8148         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
8149         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
8150         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
8151         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
8152         least one of the operands to be a register.
8153         (movv2sf): Likewise.  Renamed to movv2sf_i.
8154         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
8155         prepare_move_operands() before emitting SHmedia insns.
8156         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
8157         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
8158         Don't save nor initialize r12.  Don't mis-align the stack.
8159         Pad the code with a nop.
8160         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
8161         stack.
8162         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
8163         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
8164         [__SHMEDIA__]: Implement.
8165         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
8166         * config/sh/sh.md: Set latency of `pt' closer to reality.
8167         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
8168         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
8169         Set move, load and store type attributes.
8170         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
8171         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
8172         profiling.
8173         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
8174         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
8175         * config/sh/sh.c (sh_media_register_for_return): New function.
8176         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
8177         branch-target register.
8178         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
8179         * config/sh/sh.md (return_media_i): Use any call-clobbered
8180         branch-target register.
8181         (return_media): If r18 wasn't copied in the prologue, copy it
8182         here.
8183         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
8184         Clear class FP0_REGS.
8185         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
8186         from elf.h.
8187         2001-03-08  DJ Delorie  <dj@redhat.com>
8188         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
8189         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
8190         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
8191         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
8192         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
8193         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
8194         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
8195         return value correctly for call_cookie.
8196         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
8197         * config/sh/crt1.asm (start): Modified so as to call
8198         ___setup_argv_and_call_main.
8199         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
8200         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
8201         SHmedia mode.
8202         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
8203         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
8204         (STRIP_NAME_ENCODING): Use it.
8205         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
8206         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
8207         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
8208         prepare_scc_operands().
8209         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
8210         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
8211         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
8212         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
8213         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
8214         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
8215         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
8216         used in shcompact_incoming_args.
8217         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
8218         change.
8219         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
8220         mode.
8221         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
8222         Adjust accordingly.
8223         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
8224         Simplify.  Adjust.  Add sanity check.
8225         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
8226         FPU_SINGLE_BIT.
8227         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
8228         TARGET_SHCOMPACT.
8229         (udivsi3, divsi3): Use them.
8230         (force_mode_for_call): New insn.
8231         (call, call_value, sibcall_value): Emit it before SHcompact
8232         calls.
8233         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
8234         * config/sh/sh.md (call, call_value, sibcall): Make sure the
8235         call cookie is non-NULL before taking its value.
8236         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
8237         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
8238         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
8239         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
8240         block.
8241         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
8242         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
8243         temporary for stack adjusts.  Use MACL and MACH to pass
8244         arguments to shcompact_incoming_args.
8245         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
8246         clobber r1.
8247         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
8248         (nested_trampoline): Load static chain address into r1.
8249         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
8250         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
8251         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
8252         fp_arith_reg_operand().
8253         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
8254         * config/sh/sh.md (casesi): Sign-extend the first two operands,
8255         and use signed compares for them.
8256         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
8257         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
8258         ones properly aligned.
8259         (find_barrier): Account for extra alignment needed for 8-byte wide
8260         constants.
8261         (machine_dependent_reorg): Require a label for the second 4-byte
8262         constant after an 8-byte one.
8263         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
8264         change.
8265         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
8266         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
8267         last_float when switching float modes.
8268         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
8269         auto-increment for general-purpose registers.
8270         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
8271         result.
8272         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
8273         for stack adjust.
8274         * config/sh/sh.c (sh_builtin_saveregs): Support using all
8275         registers for varargs.
8276         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
8277         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
8278         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
8279         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
8280         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
8281         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
8282         call_cookie accordingly.
8283         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
8284         (SHCOMPACT_BYREF): Likewise.
8285         (SHCOMPACT_FORCE_ON_STACK): New macro.
8286         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
8287         (sh_builtin_saveregs): Likewise.
8288         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8289         shcompact_incoming_args): Use new shift values.  Support
8290         sequences of consecutive and non-consecutive pushes/pops.
8291         * config/sh/sh.md (return): Don't explicitly use PR_REG.
8292         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
8293         * config/sh/sh.h (TEXT_SECTION): Define.
8294         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
8295         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
8296         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
8297         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
8298         return values on FPU-enabled SHmedia.
8299         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
8300         FPU-enabled SHmedia.
8301         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
8302         value is returned in a non-FP reg and is not returned by
8303         reference.
8304         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
8305         jump_ind.
8306         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
8307         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
8308         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
8309         quad-aligned to be passed by callee-copy reference.
8310         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
8311         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
8312         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
8313         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
8314         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
8315         copying low-numbered FP regs to r7 and r8.
8316         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
8317         FP regs to general-purpose regs only if the copy was passed on the
8318         stack.
8319         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
8320         copying FP reg to r9.
8321         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
8322         copy FP regs to general-purpose regs only in outgoing calls.
8323         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
8324         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
8325         HOST_WIDE_INT.
8326         * config/sh/sh.h (struct sh_args): Document all fields.
8327         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
8328         passed partially on the stack should not consider making
8329         sibcalls.
8330         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
8331         stack_regs only for incoming calls.  When passing FP args,
8332         make sure there are FP regs available before modifying
8333         call_cookie.
8334         (SHCOMPACT_BYREF): Pass double args in general-purpose
8335         registers by reference.
8336         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
8337         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
8338         attempt to generate sibcalls if the caller got any arguments
8339         by reference.
8340         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
8341         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
8342         to 8-byte boundaries.
8343         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
8344         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
8345         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
8346         stored in the stack.
8347         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
8348         for the offsets to have the ISA bit set.
8349         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
8350         invocation.  Use beq instead of bgt to mark end of sequence of
8351         loads.
8352         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
8353         bgt to mark end of sequence of stores.
8354         * config/sh/sh.c (arith_operand): Don't check whether
8355         CONST_OK_FOR_J for now.
8356         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
8357         instead of long for conversion.
8358         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
8359         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
8360         before passing it to fprintf.
8361         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
8362         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
8363         Call set_fpscr before reading/writing SR.
8364         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
8365         Call set_fpscr.
8366         * config/sh/lib1funcs.asm: Add `.align 2' directives before
8367         SHmedia code.
8368         (FMOVD_WORKS): Define on SH5 with FPU.
8369         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
8370         setting.
8371         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
8372         _fpscr_values.
8373         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
8374         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
8375         address.
8376         (ia_main_table): Ditto.
8377         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
8378         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8379         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
8380         the definitions from sh.h.
8381         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
8382         TARGET_SH5.
8383         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
8384         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
8385         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
8386         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
8387         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
8388         Increment LABEL_NUSES.
8389
8390         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
8391         TARGET_SH5.
8392         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
8393         defined.
8394         * config/sh/elf.h (SIZE_TYPE): Likewise.
8395         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
8396         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8397         shcompact_incoming_args): Load switch table addresses using
8398         datalabel.
8399         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
8400         (NO_BUILTIN_SIZE_TYPE): Define.
8401         (SIZE_TYPE): Don't define.
8402         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
8403         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
8404         definition of __SH5__=32 for -m5-compact-nofpu.
8405         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
8406         ADDR_DIFF_VEC.
8407         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
8408         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
8409         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
8410         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
8411         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
8412         (INSN_LENGTH_ALIGNMENT): Likewise.
8413         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
8414         * config/sh/sh.md (call, call_value, sibcall): Simplify
8415         copying of non-branch-target register.
8416         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
8417         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
8418         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
8419         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
8420         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
8421         floating-point values as structs.
8422         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
8423         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
8424         general-purpose register.
8425         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
8426         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
8427         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
8428         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
8429         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
8430         (ENCODE_SECTION_INFO): Enclose variables and constants in
8431         DATALABEL unspecs.
8432         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
8433         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
8434         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
8435         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
8436         only for LABEL_REFs.  For SYMBOL_REFs, prepend
8437         SH_DATALABEL_ENCODING to the symbol name.
8438         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
8439         convert_mode().
8440         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
8441         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
8442         UNSPEC_DATALABEL.
8443         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
8444         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
8445         (DATALABEL_REF_P): Don't require CONST.
8446         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
8447         REL label.
8448         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
8449         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
8450         right.
8451         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
8452         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
8453         Use shallow_copy_rtx and PUT_MODE to change the mode of
8454         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
8455         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
8456         on SHmedia using GENERAL_REGs.
8457         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
8458         bltu_media_i): Fix reversion of conditions.
8459         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
8460         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
8461         * config/sh/sh.c (output_far_jump): Save r13 in macl.
8462         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
8463         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
8464         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
8465         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
8466         (GCC_nested_trampoline): Likewise.
8467         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
8468         * config/sh/sh.c (gen_datalabel_ref): Define.
8469         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
8470         (INITIALIZE_TRAMPOLINE): Likewise.
8471         (TRAMPOLINE_ADJUST_ADDRESS): Define.
8472         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
8473         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
8474         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
8475         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
8476         (ic_invalidate): Adjust for SH5.
8477         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
8478         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
8479         _nested_trampoline.
8480         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
8481         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
8482         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
8483         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
8484         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
8485         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
8486         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
8487         * config/sh/sh.c (target_reg_operand): Match only target-branch
8488         registers and pseudos that aren't virtual registers.
8489         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
8490         Copy operands that don't match target_reg_operand to pseudos.
8491         (call_media, call_value_media, sibcall_media): Use
8492         target_reg_operand instead of target_operand.
8493         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
8494         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
8495         * config/sh/sh.c (target_reg_operand): Match hardware registers
8496         other than branch-target registers.
8497         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
8498         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
8499         (fpscr_values) [SH5 == 32]: Define.
8500         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
8501         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
8502         Handle function addresses coming in SUBREGs.
8503         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
8504         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8505         shcompact_return_trampoline): Use datalabel where appropriate.
8506         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
8507         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
8508         general-purpose register to copy one branch-target register to
8509         another.
8510         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
8511         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
8512         SYMBOL_REFs with VOIDmode.
8513         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
8514         bltu_media_i): New insns.
8515         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
8516         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
8517         (INIT_CUMULATIVE_ARGS): Likewise.
8518         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
8519         * machmode.def (V16SFmode): New mode.
8520         * c-common.c (type_for_mode): Support V2SF and V16SF.
8521         * tree.c (build_common_tree_nodes_2): Likewise.
8522         * tree.h (tree_index): Likewise.
8523         * calls.c (emit_call_1): Take args_so_far.  Adjust all
8524         callers.  Introduce CALL_POPS_ARGS.
8525         * tm.texi (CALL_POPS_ARGS): Document.
8526         * config/sh/crt1.asm: Implement in SHmedia mode.
8527         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
8528         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
8529         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
8530         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
8531         Implement divsi and udivsi in SHmedia mode.  Introduce
8532         SHcompact trampolines.
8533         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
8534         only in SHmedia64.
8535         (regno_reg_class): Rewrite.
8536         (fp_reg_names): Remove.
8537         (sh_register_names, sh_additional_register_names): New.
8538         (print_operand): Added `u'.  Support SUBREGs in addresses.
8539         Add parentheses around shifted CONSTs.
8540         (output_file_start): Output .mode and .abi directives.
8541         (shiftcosts, addsubcosts, multcosts): Adjust.
8542         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
8543         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
8544         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
8545         bytes, not registers.  Take into account the need for the
8546         SHcompact incoming args trampoline.  Adjust all callers.
8547         (sh_expand_prologue): Take stack_regs into account.  Call
8548         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
8549         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
8550         stack aligned as per SH5 ABI.
8551         (sh_builtin_saveregs): Support SH5 ABI.
8552         (sh_build_va_list, sh_va_start): Likewise.
8553         (initial_elimination_offset): Take alignment into account.
8554         Compute location of PR according to the SH5 stack frame.
8555         (arith_reg_operand): Reject branch-target registers.
8556         (shmedia_6bit_operand): New.
8557         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
8558         (target_reg_operand): Match DImode only.  Accept SUBREGs.
8559         (target_operand): New.
8560         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
8561         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
8562         SIBCALL_REGS for SHmedia.
8563         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
8564         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
8565         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
8566         (TARGET_SWITCHES): New SH5 flags.
8567         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
8568         VALID_REGISTER_P to disable unsupported registers.
8569         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
8570         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
8571         (FUNCTION_ARG_PADDING): Define.
8572         (FASTEST_ALIGNMENT): Adjust.
8573         (SH_REGISTER_NAMES_INITIALIZER): New.
8574         (sh_register_names): Declare.
8575         (DEBUG_REGISTER_NAMES): Define.
8576         (REGISTER_NAMES): Define based on sh_register_names.
8577         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
8578         (sh_additional_register_names): Declare.
8579         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
8580         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
8581         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
8582         (REGISTER_NATURAL_MODE): Define.
8583         (FIRST_PSEUDO_REGISTER): Adjust.
8584         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
8585         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
8586         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
8587         (VECTOR_MODE_SUPPORTED_P): Define.
8588         (REG_CLASS_CONTENTS): Adjust.
8589         (SMALL_REGISTER_CLASSES): Adjust.
8590         (REG_ALLOC_ORDER): Adjust.
8591         (INDEX_REG_CLASS): Adjust.
8592         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
8593         (CONST_OK_FOR_LETTER_P): Adjust.
8594         (PREFERRED_RELOAD_CLASS): Adjust.
8595         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
8596         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
8597         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
8598         (FIRST_FP_PARM_REG): Adjust.
8599         (CALL_POPS_ARGS): Define.
8600         (FUNCTION_ARG_REGNO_P): Adjust.
8601         (struct sh_args): New fields.
8602         (GET_SH_ARG_CLASS): Adjust.
8603         (INIT_CUMULATIVE_ARGS): Adjust.
8604         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
8605         (FUNCTION_ARG_ADVANCE): Adjust.
8606         (FUNCTION_ARG): Adjust.
8607         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
8608         (FUNCTION_ARG_CALLEE_COPIES): Define.
8609         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
8610         (STRICT_ARGUMENT_NAMING): Define.
8611         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
8612         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
8613         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
8614         (SETUP_INCOMING_VARARGS): Adjust.
8615         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
8616         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
8617         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
8618         (SUBREG_OK_FOR_INDEX_P): Adjust.
8619         (EXTRA_CONSTRAINT_S): Update.
8620         (EXTRA_CONSTRAINT_T): New.
8621         (EXTRA_CONSTRAINT): Adjust.
8622         (GO_IF_LEGITIMATE_INDEX): Adjust.
8623         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
8624         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
8625         (MOVE_MAX): Adjust.
8626         (MAX_MOVE_MAX): Define.
8627         (Pmode): Adjust.
8628         (CONST_COSTS): Adjust.
8629         (REGISTER_MOVE_COST): Adjust.
8630         (BRANCH_COST): Adjust.
8631         (TEXT_SECTION_ASM_OP): Adjust.
8632         (DBX_REGISTER_NUMBER): Adjust.
8633         (ASM_OUTPUT_DOUBLE_INT): New.
8634         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
8635         (PREDICATE_CODES): Adjust.
8636         (PROMOTE_MODE): Adjust.
8637         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
8638         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
8639         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
8640         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
8641         (DR0_REG, DR2_REG, DR4_REG): Renumber.
8642         (TR0_REG, TR1_REG, TR2_REG): New.
8643         (XD0_REG): Renumber.
8644         (UNSPEC_COMPACT_ARGS): New.
8645         (type): Added pt and ptabs.
8646         (length): Default to 4 on SHmedia.  Default pt length to 12
8647         and     20 on SHmedia32 and SHmedia64, respectively.
8648         (pt): New function unit.
8649         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
8650         Add whitespace between operands of SHmedia instructions.
8651         (movdicc): Fix.
8652         (adddi3_media, addsi3_media): Adjust constraints.
8653         (subsi3) [SHmedia]: Force operand 1 into a register.
8654         (udivsi3_i1_media, udivsi3_i4_media): New.
8655         (udivsi3): Support SHmedia.
8656         (divsi3_i1_media, divsi3_i4_media): New.
8657         (divsi3): Support SHmedia.
8658         (anddi3, iordi3, xordi3): Adjust constraints.
8659         (zero_extendhidi2, zero_extendqidi2): New.
8660         (extendsidi2, extendhidi2, extendqidi2): New.
8661         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
8662         (pop_e, pop_fpul, pop_4): Likewise.
8663         (movsi_media): Support FP and BT registers.
8664         (movsi_media_nofpu): New.  Adjust splits to DImode.
8665         (lduw, ldub): Renamed to zero_extend* above.
8666         (movqi_media): Fix typo.
8667         (movdi_media): Support FP and BT registers.
8668         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
8669         (movdi_const_32bit): New.
8670         (shori_media): Require immediate operand.  Use `u' for output.
8671         (movdf_media, movsf_media): Simplified.
8672         (movdf_media_nofpu, movsf_media_nofpu): New.
8673         (movdf, movsf): Adjust
8674         (movv2sf, movv2sf, movv16sf): New.
8675         (beq_media, beq_media_i): Adjust constraints.  Don't use
8676         scratch BT register.
8677         (bne_media, bne_media_i): Likewise.
8678         (bgt_media, bgt_media_i): Likewise.
8679         (bge_media, bge_media_i): Likewise.
8680         (bgtu_media, bgtu_media_i): Likewise.
8681         (bgeu_media, bgeu_media_i): Likewise.
8682         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
8683         bunordered): Emit jump insn.  Force operands to registers when
8684         needed.
8685         (jump_media, jump): Simplify.
8686         (call_compact, call_compact_rettramp): New.
8687         (call_value_compact, call_value_compact_rettramp): New.
8688         (call_media, call_value_media): Simplify.
8689         (sibcall_compact, sibcall_media): New.
8690         (call, call_value): Adjust for SHmedia and SHcompact.
8691         (sibcall, sibcall_value, untyped_call): Likewise.
8692         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
8693         (indirect_jump): Adjust for SHmedia.
8694         (casesi_jump_media): New.
8695         (nop): Re-enable for SHmedia.
8696         (call_site): Restrict to SH1.
8697         (casesi): Adjust for SHmedia.
8698         (casesi_shift_media, casesi_load_media): New.
8699         (return): Explicitly use PR register.  Call return trampoline
8700         on SHcompact.
8701         (return_i): Explicitly use PR register.
8702         (shcompact_return_tramp, shcompact_return_tramp_i): New.
8703         (return_media): Adjust.
8704         (shcompact_incoming_args): New.
8705         (epilogue): Adjust.
8706         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
8707         (movstrsi): Disable on SH5.
8708         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
8709         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
8710         (subsf3, subsf3_media): Likewise.
8711         (mulsf3, mulsf3_media, mac_media): Likewise.
8712         (divsf3, divsf3_media): Likewise.
8713         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
8714         (floatsisf2, fux_truncsfsi2): Likewise.
8715         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
8716         constraints.
8717         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
8718         (cmpunsf_media, cmpsf): Likewise.
8719         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
8720         (abssf2, abssf2_media): Likewise.
8721         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
8722         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
8723         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
8724         (floatsidf2, fix_truncdfsi2): Likewise.
8725         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
8726         constraints.
8727         (cmpeqdf_media, cmpgtdf_media): Likewise.
8728         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
8729         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
8730         (absdf2, absdf2_media): Likewise.
8731         (extendsfdf2, extendsfdf2_media): Likewise.
8732         (truncsfdf2, truncsfdf2_media): Likewise.
8733         * config/sh/sh64.h: New file.
8734         * config/sh/t-sh64: New file.
8735         * config/sh/shmedia.h: New file.
8736         * config/sh/ushmedia.h: New file.
8737         * config/sh/sshmedia.h: New file.
8738         * configure.in: Added sh64-*-elf.
8739         * configure: Rebuilt.
8740         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
8741         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
8742         (reg_class_from_letter): Use `b' for TARGET_REGS.
8743         (print_operand): Support `%M', `%m', `AND' and
8744         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
8745         (andcosts): Adjust for SHmedia.
8746         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
8747         Likewise.
8748         (target_reg_operand): New function.
8749         * config/sh/sh-protos.h (target_reg_operand): Declare.
8750         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
8751         FP registers on SH5.
8752         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
8753         on SH4.
8754         (TARGET_REGISTER_P): New macro.
8755         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
8756         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
8757         (EXTRA_CONSTRAINT_S): New macro.
8758         (EXTRA_CONSTRAINT): Adjust.
8759         (FLOAT_TYPE_SIZE): Define to 32.
8760         (Pmode): DImode on SHmedia.
8761         (CONST_COSTS): Adjust for SHmedia literals.
8762         (PREDICATE_CODES): Added target_reg_operand.
8763         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
8764         * config/sh/sh.md: Remove all attrs from SHmedia insns.
8765         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
8766         (cmpdi): Accept SHmedia.
8767         (movdicc_false, movdicc_true): New insns.
8768         (movdicc): New expand.
8769         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
8770         no_new_pseudos.
8771         (addsi3_media): Match `S' constraint.
8772         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
8773         (negdi2): Expand for SHmedia.
8774         (one_cmpldi2): New expand.
8775         (zero_extendsidi2): Change from expand to insn.
8776         (extendsidi2): Add constraints.
8777         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
8778         LD/ST address.  Fix SI immediate loading split.
8779         (movhi_media, movqi_media, lduw, ldub): New insns.
8780         (movhi, movqi): Accept SHmedia.
8781         (shori_media, movdi_media): Relax input constraints.  Split
8782         symbolic constants.
8783         (movdf_media, movsf_media): New insn.  New split to movdi.
8784         (movdf, movsf): Match on SHmedia.
8785         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
8786         bgeu_media): New insns and splits.  New insns with `_i' suffix.
8787         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
8788         (bunordered): New expand.
8789         (jump_compact): Renamed from `jump'.
8790         (jump_media): New insn.
8791         (jump): New expand.
8792         (call_media, call_value_media): New insns.
8793         (call, call_value): Adjust.
8794         (indirect_jump_compact): Renamed from `indirect_jump'.
8795         (indirect_jump_media): New insn.
8796         (indirect_jump): New expand.
8797         (untyped_call, return): Accept SHmedia.
8798         (return_media): New insn.
8799         (prologue, epilogue, blockage): Accept SHmedia.
8800         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
8801         (sunordered): New expand.
8802         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
8803         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
8804         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
8805         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
8806         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
8807         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
8808         abssf2_media): New insns.
8809         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
8810         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
8811         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
8812         floatdidf2, floatsidf2_media, fix_truncdfdi2,
8813         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
8814         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
8815         absdf2_media): New insns.
8816         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
8817         (extendsfdf2_media, truncdfsf2_media): New insns.
8818         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
8819         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
8820         * config/sh/sh.h (CONST_OK_FOR_J): Document.
8821         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
8822         * config/sh/sh.md (adddi3): New expand.
8823         (adddi3_media, adddi3z_media): New insns.
8824         (adddi3_compact): Renamed from adddi3.
8825         (addsi3_media): Use add.l r63 to add constant zero.
8826         (subdi3): New expand.
8827         (subdi3_media): New insn.
8828         (subdi3_compact): Renamed from subdi3.
8829         (mulsidi3): New expand.
8830         (mulsidi3_media): New insn.
8831         (mulsidi3_compact): Renamed from mulsidi3.
8832         (umulsidi3): New expand.
8833         (umulsidi3_media): New insn.
8834         (umulsidi3_compact): Renamed from umulsidi3.
8835         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
8836         (ashlsi3, ashrsi3, lshrsi3): Use them.
8837         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
8838         (ashldi3, ashrdi3, lshrdi3): Use them.
8839         (zero_extendsidi2): New expand.
8840         (extendsidi2): New insn.
8841         (movsi_media): New insn.  Split to movdi to load constants.
8842         (movsi): Enable for shmedia.
8843         (movdi_media): New insn.  Use shori_media to load wide constants.
8844         (short_media): New insn.
8845         (movdi): Enable for shmedia.
8846         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
8847         * config/sh/sh.h (CPP_SPEC): Added `m5'.
8848         (SUBTARGET_CPP_SPEC): Added `!m5'.
8849         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
8850         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
8851         to all other SH variants.
8852         (TARGET_DEFAULT): Set to SH1_BIT.
8853         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
8854         (BITS_PER_WORD): Raise to 64 on shmedia.
8855         (MAX_BITS_PER_WORD): Change to 64.
8856         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
8857         (INT_TYPE_SIZE): Keep as 32.
8858         (UNITS_PER_WORD): Raise to 8 on shmedia.
8859         (MIN_UNITS_PER_WORD): Keep as 4.
8860         (POINTER_SIZE): Raise to 64 on shmedia.
8861         (CONST_OK_FOR_J): New macro.
8862         (CONST_OK_FOR_LETTER_P): Use it.
8863         (processor_type): Add PROCESSOR_SH5.
8864         * config/sh/sh.md: Conditionalize all expands, insns and
8865         splits to TARGET_SH1.
8866         (cpu): Added sh5.
8867         (addsi3_compact): Renamed from...
8868         (addsi3): Now an expand.
8869         (addsi3_media, subsi3_media): New insns.
8870         (subsi3): Don't negate constants with SHmedia.
8871
8872         * hooks.c: New file.
8873         * hooks.h: New file.
8874         * Makefile.in (HOOKS_H): New.
8875         (TARGET_DEF_H): Added $(HOOKS_H).
8876         (OBJS): Added hooks.o.
8877         (cfgcleanup.o, bb-reorder.o): Added target.h.
8878         (hooks.o): Added dependencies.
8879         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
8880         (TARGET_INITIALIZER): this.
8881         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
8882         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
8883         * bb-reorder.c: Include target.h.
8884         (reorder_basic_blocks): Skip if cannot modify jumps.
8885         * cfgcleanup.c: Include target.h.
8886         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
8887
8888 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
8889
8890         * config/mips/mips.md (casesi_internal, casesi_internal_di):
8891         Protect jump delay slot instructions with .set noreorder and
8892         .set nomacro.
8893
8894 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
8895
8896         * config/mips/mips.md (casesi_internal_di): Calculate
8897         the index into the target offset table correctly.
8898
8899 2002-02-08  Richard Henderson  <rth@redhat.com>
8900
8901         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
8902         * final.c (output_addr_const): Accept and discard SUBREG.
8903         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
8904         mark them unknown instead.
8905         (simplify_subtraction): Handle RTX_UNKNOWN.
8906         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
8907
8908 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
8909
8910         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
8911
8912 2002-02-08  Richard Henderson  <rth@redhat.com>
8913
8914         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
8915
8916 2002-02-08  Andreas Jaeger  <aj@suse.de>
8917
8918         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
8919         * config/i386/t-linux64: New file.
8920
8921 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
8922
8923         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
8924         * c-parse.in (compstmt): Clear last_expr_type.
8925
8926 2002-02-07  Richard Henderson  <rth@redhat.com>
8927
8928         * loop.c (strength_reduce): Sink final_value when not
8929         eliminating a biv.
8930
8931 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
8932
8933         * config/sparc/freebsd.h: Fix mismatched spec {.
8934
8935 2002-02-07  Richard Henderson  <rth@redhat.com>
8936
8937         * cfgrtl.c: Include recog.h and insn-config.h.
8938         (keep_with_call_p): Fix general_operand invocation.
8939         * Makefile.in (cfgrtl.o): Update dependencies.
8940
8941 2002-02-07  Kazu Hirata  <kazu@hxi.com>
8942
8943         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
8944         comment.  Accept HImode only if TARGET_H8300.
8945
8946 2002-02-07  Eric Christopher  <echristo@redhat.com>
8947
8948         * config/mips/crtn.asm: Cleanup #ifdefs.
8949
8950 2002-02-07  Eric Christopher  <echristo@redhat.com>
8951
8952         * config/mips/crti.asm: Add changes for mips16. mips16 uses
8953         register 7 as RA instead of $31.
8954         * config/mips/crtn.asm: Ditto.
8955         * config/mips/mips.c (mips_move_2words): Add case for
8956         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
8957         (compute_frame_size): Fix typo.
8958         (save_restore_insns): Ditto.  Make documentation about using
8959         register $7 as return register more precise.
8960         (mips_expand_epilogue): Fix comment. Add code to work around not
8961         being able to add to the stack pointer directly.
8962         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
8963         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
8964         epilogue.
8965
8966 2002-02-07  Tom Rix  <trix@redhat.com>
8967
8968         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
8969         immediates in ldu and stdu DS opcode field.
8970         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
8971         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
8972         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
8973
8974 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
8975
8976         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
8977         offset for stack bias.
8978
8979 2002-02-07  H.J. Lu <hjl@gnu.org>
8980
8981         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
8982
8983 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
8984
8985         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
8986
8987 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
8988
8989         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
8990         * i386.c (x86_order_regs_for_local_alloc): New global function.
8991         * i386.h (REG_ALLOC_ORDER): CLeanup.
8992         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
8993
8994 2002-02-07  Richard Henderson  <rth@redhat.com>
8995
8996         PR optimization/2463
8997         * alias.c (find_base_value): Recall base values for fixed hard regs.
8998         * loop.c (loop_regs_update): Don't use single_set on non-insns.
8999
9000 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
9001
9002         * config/mips/mips.md (define_delay) [mips16]: Adjust required
9003         length.
9004
9005 2002-02-06  Richard Henderson  <rth@redhat.com>
9006
9007         PR c/5609
9008         * stmt.c (resolve_operand_name_1): Take more care with mixed
9009         named and unnamed operands.
9010
9011 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
9012             Jan Hubicka  <jh@suse.cz>
9013
9014         * loop.c (remove_constant_addition): Avoid clobbering a shared
9015         CONST expression.
9016
9017 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
9018
9019         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
9020         * config/s390/t-linux64: New file.
9021         * config/s390/libgcc-glibc.ver: New file.
9022
9023 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
9024
9025         * config/s390/linux64.h: Delete file.
9026         * config/s390/s390x.h: New file.
9027         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
9028         as target header file.
9029         * config/s390/linux.h (TARGET_VERSION): Define depending on
9030         DEFAULT_TARGET_64BIT.
9031         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
9032         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
9033         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
9034         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
9035         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
9036         (EXTRA_SPEC): New define.
9037         * config/s390/s390.h (TARGET_VERSION): Define depending on
9038         DEFAULT_TARGET_64BIT.
9039         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
9040
9041 2002-02-06  Jason Merrill  <jason@redhat.com>
9042
9043         * c-decl.c (finish_function): Warn about a non-void function with
9044         no return statement and no abnormal exit.
9045         (current_function_returns_abnormally): New variable.
9046         (start_function): Clear it.
9047         (struct c_language_function): Add returns_abnormally.
9048         (push_c_function_context): Save it.
9049         (pop_c_function_context): Restore it.
9050         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
9051         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
9052         an explicit return type.
9053         * c-tree.h: Declare current_function_returns_abnormally.
9054         (C_FUNCTION_IMPLICIT_INT): New macro.
9055         * c-typeck.c (build_function_call): Set it.
9056         (c_expand_return): Set current_function_returns_value even if the
9057         value is erroneous.
9058
9059 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9060
9061         PR c/5420:
9062         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
9063         unsafe for reevaluation.
9064
9065 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
9066
9067         PR c/5482:
9068         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
9069         EXPR_STMT, but COMPOUND_STMT, recurse into it.
9070
9071 2002-02-06  Richard Henderson  <rth@redhat.com>
9072
9073         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
9074         be a general_operand.  Dest for function value must be a pseudo.
9075
9076 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
9077
9078         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
9079         as SYMBOL_REFs from the constant pool.
9080
9081 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
9082
9083         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
9084         passed by invisible reference.
9085
9086 2002-02-05  Richard Henderson  <rth@redhat.com>
9087
9088         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
9089
9090 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
9091
9092         Implement using "base addresses" in insn operands as default.
9093         * config/mmix/mmix.c (mmix_conditional_register_usage): if
9094         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
9095         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
9096         used to read the rtx value.
9097         (mmix_target_asm_function_epilogue): Fix spacing.
9098         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
9099         (mmix_legitimate_address): Ditto.
9100         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
9101         should be loaded with a GETA insn.  Don't allocate needless extra
9102         char for nul termination and fix misleading comment.
9103         (mmix_print_operand_address): Handle constants if
9104         TARGET_BASE_ADDRESSES.
9105         (mmix_output_register_setting): Use base addressing if
9106         TARGET_BASE_ADDRESSES and the number of insns is 3.
9107         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
9108         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
9109         to use R as constraint, add LDA to match s.
9110         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
9111         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
9112         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
9113         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
9114         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
9115         order with other fixed registers.
9116         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
9117         other parameter/call-clobbered registers.
9118         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
9119         -mbase-addresses, -mno-base-addresses.
9120         (MMIX Options): Ditto.
9121
9122 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9123
9124         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
9125
9126 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
9127
9128         * config/rs6000/altivec.h: Change elem to _S_elem.
9129
9130 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
9131
9132         * config/netbsd.h (WCHAR_TYPE): Define.
9133         (WCHAR_TYPE_SIZE): Ditto.
9134         (WINT_TYPE): Ditto.
9135         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
9136         (WCHAR_UNSIGNED): Ditto.
9137         (WCHAR_TYPE_SIZE): Ditto.
9138         (WINT_TYPE): Ditto.
9139         * config/arm/netbsd.h: Likewise.
9140         * config/i386/netbsd-elf.h: Likewise.
9141         * config/i386/netbsd.h: Likewise.
9142         * config/m68k/netbsd-elf.h: Likewise.
9143         * config/m68k/netbsd.h: Likewise.
9144         * config/ns32k/netbsd.h: Likewise.
9145         * config/sparc/netbsd.h: Likewise.
9146         * config/vax/netbsd.: Likewise.
9147
9148 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
9149
9150         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
9151         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
9152         (TARGET_INITIALIZER): this.
9153         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
9154         (BITFIELD_NBYTES_LIMITED): Markup fix.
9155         * tree.h (default_ms_bitfield_layout_p): Declare.
9156         (record_layout_info): Added prev_field.
9157         * tree.c (default_ms_bitfield_layout_p): New fn.
9158         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
9159         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
9160         * stor-layout.c: Include target.h.
9161         (start_record_layout): Initialize prev_field.
9162         (place_field): Handle MS bit-field layout, and disregard
9163         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
9164         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
9165         * Makefile.in (stor-layout.o): Adjust dependencies.
9166
9167 2002-02-05  Jason Merrill  <jason@redhat.com>
9168
9169         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
9170
9171 2002-02-05  Andreas Jaeger  <aj@suse.de>
9172
9173         * crtstuff.c: Fix comments.
9174
9175 2002-02-05  Richard Henderson  <rth@redhat.com>
9176
9177         PR fortran/3393
9178         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
9179         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
9180
9181         PR fortran/3392
9182         * config/mips/mips.c (function_arg): Handle TImode.
9183         (function_arg_advance): Likewise.
9184
9185 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9186
9187         * config/rs6000/altivec.h (vec_step_help): Rename to
9188         __vec_step_help.
9189
9190 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9191
9192         * config/rs6000/altivec.h: Fix typos.
9193
9194 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
9195
9196         * config/arm/netbsd.h: Correct a comment.
9197
9198 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9199
9200         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
9201         building void typed builtins.
9202
9203         * config/rs6000/altivec.h (vec_ld*): Fix typos.
9204         (vec_step): Implement for C++.
9205
9206 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9207
9208         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
9209
9210 2002-02-04  Richard Henderson  <rth@redhat.com>
9211
9212         * combine.c (nonzero_bits): Re-introduce special case for
9213         sp/fp/ap wrt REGNO_POINTER_ALIGN.
9214
9215 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9216
9217         * doc/extend.texi: Warn about unsupported usage of altivec
9218         builtins.
9219
9220         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
9221         (altivec_predicate_*): New.
9222
9223         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
9224         Add C++ version of vec_*() functions.
9225
9226         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
9227         (bdesc_2arg): Remove altivec predicates.
9228         (altivec_expand_builtin): Handle predicates.
9229         (altivec_init_builtins): Handle predicates.
9230         (altivec_expand_predicate_builtin): New.
9231
9232 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9233
9234         * pa.c (DO_FRAME_NOTES): Move forward.
9235         (store_reg): Revise handling of frame notes.
9236         (load_reg): Likewise.
9237         (set_reg_plus_d): Likewise.
9238         (hppa_expand_prologue): Likewise.
9239         (hppa_expand_epilogue): Likewise.
9240
9241 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9242
9243         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
9244
9245 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
9246
9247         PR c/4475, c++/3780:
9248         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
9249         * c-common.h (SWITCH_TYPE): Define.
9250         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
9251         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
9252         Rename spareness variable to sparseness.
9253         (expand_end_case_type): Renamed from expand_end_case, use orig_type
9254         if non-NULL instead of TREE_TYPE (orig_index).
9255         * tree.h (expand_end_case_type): Renamed from expand_end_case.
9256         (expand_end_case): Define using expand_end_case_type.
9257         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
9258         to expand_end_case_type.
9259         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
9260
9261 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9262
9263         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
9264         (BIGGEST_ALIGNMENT): Change to 128.
9265
9266 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9267
9268         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
9269
9270 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9271
9272         * pa.md (call_internal_reg_64bit): Remove unused variable.
9273
9274 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
9275
9276         * config/arm/arm.h (machine_function): Add uses_anonymous_args
9277         field.
9278         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
9279         * config/arm/arm.c (current_function_anonymous_args): Delete,
9280         replace uses with cfun->machine->uses_anonymous_args.
9281         (arm_reorg): Do not reset uses_anonymous_args.
9282
9283         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
9284         any geenral register.
9285
9286 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
9287
9288         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
9289         the entry block.
9290
9291 2002-02-04  Richard Henderson  <rth@redhat.com>
9292
9293         * combine.c (force_to_mode): Remove STACK_BIAS code.
9294         (nonzero_bits): Likewise.  Replace sp/fp special case with
9295         REGNO_POINTER_ALIGN.
9296
9297         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
9298         (HARD_FRAME_POINTER_REGNUM): New.
9299         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
9300         (FIXED_REGS, CALL_USED_REGS): Update.
9301         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
9302         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
9303         (HARD_REGNO_NREGS): Update for SFP.
9304         (STACK_POINTER_OFFSET): Include bias here ...
9305         (FIRST_PARM_OFFSET): ... not here.
9306         (STACK_BIAS): Remove.
9307         (INIT_EXPANDERS): New.
9308         (STARTING_FRAME_OFFSET): Do not include bias.
9309         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
9310         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
9311         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
9312         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
9313         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
9314         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
9315         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
9316         (MUST_SAVE_REGISTER): Likewise.
9317         (sparc_flat_function_prologue): Likewise.
9318         (sparc_flat_function_epilogue): Likewise.
9319         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
9320         (sparc_init_modes): SFP is GENERAL_REGS.
9321         (sparc_builtin_saveregs): SFP does not have bias applied.
9322
9323 2002-02-04  Richard Henderson  <rth@redhat.com>
9324
9325         * config/alpha/alpha.c (current_function_is_thunk): Don't check
9326         current_function_is_thunk.
9327         (alpha_sa_mask): Distinguish between current_function_is_thunk
9328         called from ASM_OUTPUT_MI_THUNK and not.
9329         (alpha_does_function_need_gp): Thunks always need gp.
9330         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9331         (alpha_output_mi_thunk_osf): New.
9332         * config/alpha/alpha-protos.h: Update.
9333         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
9334
9335 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
9336
9337         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
9338         function types, not when they're taken away.
9339
9340 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
9341
9342         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
9343         CODE_LABEL and jump table when replacing a table jump with a
9344         simple jump.
9345
9346 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
9347
9348         * config/s390/s390-protos.h (legitimize_la_operand,
9349         s390_secondary_input_reload_class, s390_plus_operand,
9350         s390_expand_plus_operand): Add prototypes.
9351
9352         config/s390/s390.c (s390_secondary_input_reload_class,
9353         s390_plus_operand, s390_expand_plus_operand): New functions.
9354
9355         (struct s390_address): New member 'pointer'.
9356         (s390_decompose_address): Compute it.
9357         (legitimate_la_operand_p): Use it.
9358         (legitimize_la_operand): New function.
9359         (movti, movdi, movdf splitters): Call it.
9360
9361         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
9362         (PREDICATE_CODES): Add s390_plus_operand.
9363
9364         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
9365         (la_ccclobber): Allow GENERAL_REGS as output operand.
9366
9367         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
9368         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
9369         (*la_64, *la_31, reload_indi, reload_insi): ... these.
9370
9371 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
9372
9373         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
9374         register names for regular asm () construct.
9375
9376 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
9377
9378         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
9379         registers.
9380
9381 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
9382
9383         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
9384         pat for recog.
9385
9386 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
9387
9388         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
9389         constant pool to be identical by string address and index.
9390
9391 2002-02-04  Anthony Green  <green@redhat.com>
9392
9393         * output.h (SECTION_OVERRIDE): Define.
9394         * varasm.c (named_section): Obey SECTION_OVERRIDE.
9395
9396 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
9397
9398         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
9399         by existing arm*-*-netbsd* (a.out) target.
9400         (ns32k-*-netbsdelf*): Likewise.
9401         (sparc-*-netbsdelf*): Likewise.
9402         (vax-*-netbsdelf*): Likewise.
9403
9404 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
9405
9406         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
9407         headers and libobjc headers.
9408
9409 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
9410
9411         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
9412         (_mingw.h): Remove duplicate include.
9413
9414 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
9415
9416         * config.gcc: Set cpu_type to m68k for 68010, as well.
9417         (m68010-*-netbsdelf*): New...
9418         (m68k*-*-netbsdelf*): ...targets.
9419         * config/m68k/netbsd-elf.h: New file.
9420
9421 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9422
9423         * config/h8300/h8300.c (hand_list): Move inside function_arg.
9424
9425 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9426
9427         * config/h8300/h8300.c (h8_push_ops): Move inside
9428         h8300_init_once.
9429         (h8_pop_ops): Likewise.
9430         (h8_move_ops): Likewise.
9431
9432 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9433
9434         * config/h8300/h8300.c (os_task): Make it static.
9435         (monitor): Likewise.
9436         (pragma_saveall): Likewise.
9437
9438 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
9439
9440         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
9441         constant is a valid sign-extension for Pmode.
9442
9443 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9444
9445         * config/h8300/h8300.c: Fix formatting.
9446
9447 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9448
9449         * config/h8300/h8300.md: Fix formatting.
9450
9451 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9452
9453         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
9454         predicates of operands[1].  Split the patterns for each
9455         processor variant.
9456
9457 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9458
9459         * config/h8300/h8300.md (xor patterns): Tighten the predicates
9460         of operands[1] to register_operand.
9461
9462 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
9463
9464         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
9465         * cpphash.c (_cpp_init_hashtable): Similarly.
9466         * cppinit.c (cpp_create_reader): Default the signed_char flag.
9467         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
9468         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
9469         (cpp_handle_option): Handle the new options.
9470         * cpplex.c (cpp_interpret_charconst): Use new flag.
9471         * cpplib.h (struct cpp_options): New member signed_char.
9472         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
9473         (cpp_options): Handle -fsigned-char and -funsigned-char.
9474         (static_specs): Remove signed_char_spec.
9475         (do_spec1): Don't handle %c.
9476         * system.h: Poison SIGNED_CHAR_SPEC.
9477         * tradcif.y (yylex): Use flag_signed_char.
9478         * tradcpp.h (flag_signed_char): New.
9479         * tradcpp.c (flag_signed_char): New.
9480         (main): Handle new command-line options.
9481         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
9482 config:
9483         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
9484         * avr/avr.h: Remove old comments.
9485         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
9486         (CC1_SPEC): Pass -fsigned-char if -mic*.
9487         (SIGNED_CHAR_SPEC): Remove.
9488 doc:
9489         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
9490
9491 2002-02-01  Eric Christopher  <echristo@redhat.com>
9492
9493         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
9494         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
9495         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
9496         (ASM_OUTPUT_REG_POP): Ditto.
9497
9498 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
9499
9500         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
9501         patch.
9502
9503 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
9504
9505         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
9506
9507 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
9508
9509         PR c/5304:
9510         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
9511         unconditionally.
9512
9513 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
9514
9515         * cfganal.c: Include tm_p.h.
9516         (keep_with_call_p): Fix the test that determines if a register holds
9517         the return value of a call.
9518
9519 2002-02-01  DJ Delorie  <dj@redhat.com>
9520
9521         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
9522         we are given conflicting registers, switch to the other one we
9523         had allocated for us.
9524         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
9525         as TImode so we know when the "other" register is available.
9526
9527 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
9528
9529         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
9530         sparc/sparc_bi.h.
9531
9532 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
9533
9534         * cfganal.c (keep_with_call_p): New function.
9535         (flow_call_edges_add): Prevent splitting a block between a call and
9536         a single-set instruction that should be kept in the same block.
9537
9538 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9539
9540         * doc/install.texi (avr): Update outdated URL.
9541
9542 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
9543
9544         * config/stormy16/stormy16.md (pushqi): New.
9545         (popqi): New.
9546         (pushhi): New.
9547         (pophi): New.
9548         (movhi): Remove stack operands.
9549         (movqi): Likewise.
9550         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
9551         nonimmediate_nonstack_operand.
9552         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
9553         New.
9554         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
9555         New.
9556
9557 2002-01-31  Jason Merrill  <jason@redhat.com>
9558
9559         * Makefile.in (c-parse.c): Handle .output file.
9560         * objc/Make-lang.in (objc-parse.c): Likewise.
9561
9562 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
9563
9564         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
9565         the -me[lb] option is given.  Don't output the default flag
9566         twice.
9567
9568 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
9569
9570         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
9571         the primary source file; this has not been done yet.
9572         * c-decl.c (c_expand_body): Reset input_filename from
9573         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
9574
9575 2002-01-31  Kazu Hirata  <kazu@hxi.com>
9576
9577         * rtlanal.c (subreg_regno_offset): Do not use
9578         SUBREG_REGNO_OFFSET.
9579         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
9580         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
9581
9582 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
9583
9584         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
9585         version rather than GNATS version in --version output.
9586
9587 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
9588
9589         * ifcvt.c (noce_process_if_block): Make a copy of the destination
9590         when copying back from a temporary.
9591
9592 2002-01-30  Richard Henderson  <rth@redhat.com>
9593
9594         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
9595         and new_dest are the same.
9596
9597 2002-01-30  Richard Henderson  <rth@redhat.com>
9598
9599         PR opt/5076
9600         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
9601         * rtl.c (note_insn_name): Update.
9602         * emit-rtl.c (remove_unnecessary_notes): Kill it.
9603         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
9604         to perform loop rotation.
9605         (expand_exit_loop_top_cond): New.
9606         * tree.h (expand_exit_loop_top_cond): Declare it.
9607         * c-semantics.c (genrtl_while_stmt): Use it.
9608         (genrtl_for_stmt): Likewise.
9609
9610 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
9611
9612         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
9613         arguments to 64-bit boundaries on 64-bit ABIs.
9614
9615 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
9616
9617         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
9618
9619 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
9620
9621         * c-decl.c (grokdeclarator): Handle type being a typedef for an
9622         invalid type.
9623
9624 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
9625
9626         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
9627         * config/sparc/sparc_bi.h: Remove file.
9628         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
9629
9630 2002-01-30  Richard Henderson  <rth@redhat.com>
9631
9632         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
9633
9634 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
9635
9636         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
9637
9638 2002-01-30  Jason Merrill  <jason@redhat.com>
9639
9640         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
9641         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
9642         (reg_save): Use DW_CFA_offset_extended_sf instead.
9643
9644         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
9645
9646 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
9647
9648         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
9649         in cselib_lookup.
9650
9651 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
9652
9653         * rs6000.md ("*call_value_local32"): Remove constraints.
9654         ("*call_value_local64"): Same.
9655         ("*call_value_indirect_nonlocal_aix32"): Same.
9656         ("*call_value_nonlocal_aix32"): Same.
9657         ("*call_value_indirect_nonlocal_aix64"): Same.
9658         ("*call_value_nonlocal_aix64"): Same.
9659         ("*call_value_nonlocal_sysv"): Same.
9660
9661 2002-01-29  Richard Henderson  <rth@redhat.com>
9662
9663         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
9664
9665 2002-01-29  Richard Henderson  <rth@redhat.com>
9666
9667         * expr.c (force_operand): Ignore flag_pic for detecting pic
9668         address loads.
9669         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
9670         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
9671         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
9672         instead of open-coded loop.
9673         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
9674         be fixed when in use.
9675
9676 2002-01-29  Richard Henderson  <rth@redhat.com>
9677
9678         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
9679         * sched-rgn.c (propagate_deps): Update them.
9680         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
9681         clobbers list when either gets too long.
9682
9683 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
9684
9685         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
9686         and INDEX_REGS the same as GENERAL_REGS.
9687         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
9688
9689 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
9690
9691         * tree.c (build_nonstandard_integer_type): Correct prototype.
9692
9693 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
9694
9695         * config/s390/s390.md (movstrsico, movstrdix_64,
9696         movstrsix_31): Remove, replace by ...
9697         (movstrdi_short, movstrsi_short, movstrdi_long,
9698         movstrsi_long): ... these.  New.
9699         (movstrdi, movstrsi): Adapt.
9700
9701         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
9702         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
9703         Remove unnecessary CC clobber.
9704         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
9705         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
9706
9707         (divmoddi4): Don't partially initialize TImode register.
9708
9709 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
9710
9711         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
9712
9713 2002-01-29  Richard Henderson  <rth@redhat.com>
9714
9715         * flow.c (print_rtl_and_abort): Remove.
9716         (print_rtl_and_abort_fcn): Remove.
9717         (verify_local_live_at_start): Use dump_bb instead.
9718         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
9719         (verify_wide_reg_1): Return 2 on mode test failure.
9720
9721 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
9722
9723         PR c/3325, c/3326, c/2511, c/3347
9724         * c-decl.c (enum_decl_context): Remove BITFIELD.
9725         (grokdeclarator): Take bitfield width as an input.
9726         Ensure bitfields are given the correct type.  Perform
9727         bitfield width validation with build_bitfield_integer_type
9728         rather than waiting for finish_struct.
9729         (grok_typename, grok_typename_in_parm_context, start_decl,
9730         push_parmdecl, grokfield, start_function): Update calls to
9731         grokdeclarator.
9732         (build_bitfield_integer_type): New function.
9733         (finish_struct): Move bitfield validation to grokdeclarator
9734         and build_bitfield_integer_type.
9735         * tree.c (build_nonstandard_integer_type): New function.
9736         * tree.h (build_nonstandard_integer_type): New prototype.
9737 objc:
9738         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
9739
9740 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
9741
9742         PR other/1502:
9743         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
9744         don't ignore unrecognized -W* options.
9745         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
9746         * cpplib.h (cpp_handle_option): Adjust prototype.
9747         * c-decl.c (c_decode_options): Pass 0 as last argument to
9748         cpp_handle_option.
9749
9750         PR c/2896:
9751         * gcc.c (cpp_unique_options): Split from cpp_options.
9752         (cpp_options): Source cpp_unique_options.
9753         (default_compilers): Use cpp_unique_options instead of cpp_options
9754         when used together with cc1_options.
9755         (static_specs): Add cpp_unique_options.
9756         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
9757         when used together with cc1_options.
9758
9759 2002-01-29  Kazu Hirata  <kazu@hxi.com>
9760
9761         * config/h8300/h8300-protos.h: Update the prototype of
9762         output_a_shift.
9763         * config/h8300/h8300.c (output_a_shift): Remove an unused
9764         argument 'insn'.  Remove redundant code.
9765         * config/h8300/h8300.md: Adust to the new prototype of
9766         output_a_shift.
9767
9768 2002-01-29  Kazu Hirata  <kazu@hxi.com>
9769
9770         * config/h8300/h8300-protos.h: Update the prototypes of
9771         emit_a_rotate and expand_a_rotate.
9772         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
9773         first argument to 'enum rtx_code'.
9774         (expand_a_rotate): Likewise.
9775
9776 2002-01-28  Kazu Hirata  <kazu@hxi.com>
9777
9778         * config/h8300/h8300-protos.h: Update the prototype of
9779         output_simode_bld.
9780         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
9781         'log2'.
9782         * config/h8300/h8300.md: Adjust to the new prototype.
9783
9784 2002-01-28  Kazu Hirata  <kazu@hxi.com>
9785
9786         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
9787         redundant code.
9788
9789 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9790
9791         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
9792         is a fixed register before returning pic_offset_table_rtx.
9793         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
9794         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
9795
9796 2002-01-28  Jason Merrill  <jason@redhat.com>
9797
9798         * dwarf2.h: Sync with src version.
9799
9800 2002-01-28  Paul Koning  <pkoning@equallogic.com>
9801
9802         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
9803         BT_FN_VOID_PTR_VAR.
9804         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
9805         * doc/extend.texi (__builtin_prefetch): Update documentation:
9806         first argument is now const void ptr.
9807
9808 2002-01-28  Kazu Hirata  <kazu@hxi.com>
9809
9810         * config/h8300/h8300-protos.h: Remove an unused prototype.
9811
9812 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
9813
9814         * toplev.c (lang_independent_init): Round up identifier size.
9815
9816 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
9817
9818         * config.gcc: Revert previous change.
9819
9820 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
9821
9822         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
9823
9824 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
9825
9826         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
9827         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
9828         other non-elf netbsd config frags.
9829         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
9830         collect2 will does that.
9831         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
9832         shared-lib frobbing will work.
9833
9834 2002-01-28  Kazu Hirata  <kazu@hxi.com>
9835
9836         * config/h8300/h8300.h: Fix formatting.
9837         * config/h8300/h8300.md: Likewise.
9838
9839 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
9840
9841         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
9842         the old, removed AAA_standards fix.
9843         * fixinc/fixincl.x: Rebuilt.
9844
9845 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
9846
9847         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
9848         atexit call in crtbegin, hooked in after call to frame_dummy;
9849         register EH before registering __fini__start.
9850
9851 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
9852
9853         * config/rs6000/altivec.h: Remove spurious semicolons.
9854
9855 2002-01-27  Kazu Hirata  <kazu@hxi.com>
9856
9857         * config/h8300/h8300.md: Replace dead bit extraction patterns
9858         with ones that work.
9859
9860 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9861
9862         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
9863         if not STRICT_ALIGNMENT.
9864         * rtl.h (MEM_ALIGN): Likewise.
9865
9866 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9867
9868         * doc/invoke.texi (-fdump-translation-unit): Revert this
9869         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9870
9871 2002-01-27  Kazu Hirata  <kazu@hxi.com>
9872
9873         * config/h8300/h8300.md (define_constants): New.
9874         (anonymous patterns) Use defined constants appropriately.
9875
9876 2002-01-27  Kazu Hirata  <kazu@hxi.com>
9877
9878         * config/h8300/h8300.c (function_arg): Remove redundant code.
9879
9880 2002-01-26  Richard Henderson  <rth@redhat.com>
9881
9882         * sched-deps.c (reg_pending_uses_head): New.
9883         (reg_pending_barrier): Rename from reg_pending_sets_all.
9884         (find_insn_list): Don't mark inline.
9885         (find_insn_mem_list): Remove.
9886         (add_dependence_list, add_dependence_list_and_free): New.
9887         (flush_pending_lists): Replace only_write param with separate
9888         for_read and for_write parameters.  Update all callers.  Use
9889         add_dependence_list_and_free.
9890         (sched_analyze_1): Do not add reg dependencies here; just set
9891         the pending bits.  Use add_dependence_list.
9892         (sched_analyze_2): Likewise.
9893         (sched_analyze_insn): Replace schedule_barrier_found with
9894         reg_pending_barrier.  Add all dependencies for pending reg
9895         uses, sets, and clobbers.
9896         (sched_analyze): Don't add reg dependencies for calls, just
9897         set pending bits.  Use regs_invalidated_by_call.  Treat
9898         sched_before_next_call as a normal list, not a fake insn.
9899         (init_deps): No funny init for sched_before_next_call.
9900         (free_deps): Free pending mems lists.  Don't zero reg_last.
9901         (init_deps_global): Init reg_pending_uses.
9902         (finish_deps_global): Free it.
9903         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
9904         (find_insn_mem_list): Remove.
9905         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
9906         (propagate_deps): Use them.  Zero temp mem lists.
9907
9908 2002-01-26  Richard Henderson  <rth@redhat.com>
9909
9910         * Makefile.in (CRTSTUFF_CFLAGS): New.
9911         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
9912         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
9913         crtstuff.c instead of alpha assembly version.
9914         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
9915         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
9916         not FORCE_{INIT,FINI}_SECTION_ALIGN.
9917         (__do_global_dtors_aux): Mark used.
9918         (frame_dummy, __do_global_ctors_aux): Mark used.
9919         (fini_dummy, init_dummy): Remove.
9920
9921         * config/alpha/crtbegin.asm: Remove file.
9922         * config/alpha/crtend.asm: Remove file.
9923         * config/alpha/t-crtbe: Remove file.
9924         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
9925         (LINK_EH_SPEC): New.
9926
9927         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
9928         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
9929         calling constructors.
9930         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
9931
9932         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
9933         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
9934         CRT_END_INIT_DUMMY hack.
9935         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
9936         FORCE_{INIT,FINI}_SECTION_ALIGN.
9937
9938         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
9939         FORCE_{INIT,FINI}_SECTION_ALIGN.
9940
9941         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
9942         invocation sequence.
9943         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
9944
9945         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
9946         (FORCE_CODE_SECTION_ALIGN): New.
9947
9948 2002-01-26  Richard Henderson  <rth@redhat.com>
9949
9950         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
9951
9952 2002-01-26  Richard Henderson  <rth@redhat.com>
9953
9954         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
9955         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
9956
9957 2002-01-26  Kazu Hirata  <kazu@hxi.com>
9958
9959         * config/h8300/h8300.md: Remove bit extraction patterns that
9960         cannot be triggered.
9961         Restrict each bit extraction pattern to a variant on which the
9962         pattern is tested.
9963
9964 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
9965
9966         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
9967
9968 2002-01-26  Kazu Hirata  <kazu@hxi.com>
9969
9970         * config/h8300/h8300.md: Remove bit test patterns that cannot
9971         be triggered.
9972         Restrict each bit test pattern to a variant on which the
9973         pattern is tested.
9974
9975 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9976
9977         * builtins.c (expand_builtin_strncat): Remove redundant check for
9978         INTEGER_CST.
9979
9980 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
9981
9982         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
9983         default setting.
9984         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
9985         existing setting.
9986
9987 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
9988
9989         * dbxout.c (dbxout_init): Use assemble_name rather than just
9990         stripping off the first character.
9991         (dbxout_source_file): Likewise.
9992
9993 2002-01-25  DJ Delorie  <dj@redhat.com>
9994
9995         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
9996         using rtx_equal_p, not by comparing pointers.
9997
9998 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
9999
10000         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
10001         for PIC_OFFSET_TABLE_REGNUM.
10002         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
10003
10004 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
10005
10006         * config.gcc (x86_64-*-freebsd*): New target.
10007         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
10008         value.
10009         (i[34567]86-*-freebsd*): Don't include svr4.h.
10010         * config/i386/freebsd64.h: New file.
10011
10012 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
10013
10014         * config/alpha/x-vms (version): Make static.
10015
10016         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
10017         in previous checkin.
10018
10019         * Makefile.in (install-headers-cp): New target.
10020         * config.gcc (alpha-dec-*vms*): Install headers with
10021         install-headers-cp
10022
10023 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
10024
10025         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
10026         avoid it's copies.
10027
10028 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10029
10030         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
10031         of compare_tree_int.
10032         (expand_builtin_strncat): Likewise.
10033         * c-decl.c (finish_struct): Use tree_low_cst.
10034         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
10035         * tree.c (compare_tree_int): Likewise.
10036
10037 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
10038
10039         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
10040         adjustments even if they are implemented by more than two insns.
10041
10042 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
10043
10044         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
10045         * df.h (struct ref): Kill B.
10046         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
10047
10048         * basic-block.h (PROP_EQUAL_NOTES): New flag.
10049         * flow.c (propagate_one_insn): Use it.
10050         (mark_used_regs): Handle NIL.
10051
10052 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
10053
10054         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
10055         to help folding.
10056
10057 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
10058
10059         * rs6000.md (prefetch): Make address V4SI mode so that the address
10060         is restricted to legitimate form for instruction.
10061
10062 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
10063
10064         * doc/install.texi (xtensa-*-elf): New target.
10065         (xtensa-*-linux*): New target.
10066         * doc/contrib.texi: Add myself.
10067
10068 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
10069
10070         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
10071         purpose register to hold an SImode (or smaller) value.
10072
10073 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
10074
10075         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
10076         registry only.
10077         * crtstuff.c: Likewise.
10078
10079 2002-01-25  Kazu Hirata  <kazu@hxi.com>
10080
10081         * config/h8300/h8300.md (negation patterns): Tighten
10082         predicates to register_operand.
10083
10084 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
10085
10086         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
10087         mode, not Pmode.
10088
10089         * builtins.c (expand_builtin_prefetch): Same.
10090
10091 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10092
10093         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
10094         modes.
10095
10096 2002-01-24  Kazu Hirata  <kazu@hxi.com>
10097
10098         * config/h8300/h8300.c (print_operand): Remove support for
10099         operand character 'A'.
10100         * config/h8300/h8300.md (three anonymous patterns): Replace
10101         operand character 'A' with either 'T' or 'S'.
10102
10103 2002-01-24  Kazu Hirata  <kazu@hxi.com>
10104
10105         * config/h8300/h8300.c (print_operand): Remove support for
10106         operand character 'U'.
10107
10108 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
10109
10110         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
10111
10112 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
10113
10114         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
10115         values to be assigned to the stack pointer.
10116
10117 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
10118
10119         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
10120         to const_double needs to be done right for big-endian systems.
10121
10122 2002-01-24  Jason Merrill  <jason@redhat.com>
10123
10124         PR c++/2432
10125         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
10126         to can_throw_internal.
10127
10128 2002-01-23  Richard Henderson  <rth@redhat.com>
10129
10130         * fold-const.c (fold): Change UINT_MAX test to check vs precision
10131         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
10132
10133 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10134
10135         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
10136         (symGOT2reg): Use them, then set as GOT value as unchanging.
10137         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
10138         as a temporary, if possible.
10139         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
10140         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
10141
10142 2002-01-23  Kazu Hirata  <kazu@hxi.com>
10143
10144         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
10145         accept to accept 0x80 as operands[2].
10146
10147 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10148
10149         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
10150
10151 2002-01-23  Richard Henderson  <rth@redhat.com>
10152
10153         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
10154
10155 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
10156
10157         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
10158         (parmlist_or_identifiers_1): Verify that only a parmlist follows
10159         an attribute.
10160
10161 2002-01-23  Richard Henderson  <rth@redhat.com>
10162
10163         * expr.c (move_by_pieces_1): Extend size before negation.
10164
10165         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
10166         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
10167         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
10168         * config/m68k/t-m68kelf: Likewise.
10169
10170 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
10171
10172         * config/xtensa/elf.h: New file.
10173         * config/xtensa/lib1funcs.asm: New file.
10174         * config/xtensa/lib2funcs.S: New file.
10175         * config/xtensa/linux.h: New file.
10176         * config/xtensa/t-xtensa: New file.
10177         * config/xtensa/xtensa-config.h: New file.
10178         * config/xtensa/xtensa-protos.h: New file.
10179         * config/xtensa/xtensa.c: New file.
10180         * config/xtensa/xtensa.h: New file.
10181         * config/xtensa/xtensa.md: New file.
10182         * config.gcc (xtensa-*-elf*): New target.
10183         (xtensa-*-linux*): New target.
10184         * cse.c (canon_hash): Compare rtx pointers instead of register
10185         numbers.  This is required for the Xtensa port.
10186         * integrate.c (copy_insn_list): Handle case where the static
10187         chain is in memory and the memory address has to be copied to
10188         a register.
10189         * doc/invoke.texi (Option Summary): Add Xtensa options.
10190         (Xtensa Options): New node.
10191         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
10192
10193 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
10194
10195         * diagnostic.c (internal_error): Do ICE suppression only
10196         when ENABLE_CHECKING is not defined.
10197
10198         * c-typeck.c (require_complete_type): Return error_mark_node
10199         if type is error_mark_node.
10200
10201 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
10202
10203         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
10204         -Os and issue a warning.
10205
10206 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
10207
10208         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
10209         current (lack of) need for host configuration by hand.
10210
10211         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
10212         references.  Documentation of some target macros moved from
10213         hostconfig.texi to tm.texi.
10214
10215 2002-01-23  Will Cohen  <wcohen@redhat.com>
10216
10217         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
10218         defined.
10219
10220 2002-01-23  Kazu Hirata  <kazu@hxi.com>
10221
10222         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
10223         operand[3].
10224
10225 2002-01-23  Jason Merrill  <jason@redhat.com>
10226
10227         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
10228
10229         * function.c (assign_parms): Don't put args of inline functions
10230         into registers when not optimizing.
10231
10232 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
10233
10234         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
10235         (prologue_use): New pattern.
10236         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
10237         preference to gen_rtx_USE.
10238         (thumb_expand_prologue): Use gen_prologue_use in preference to
10239         gen_rtx_USE.
10240         (thumb_expand_epilogue): Use gen_prologue_use in preference to
10241         gen_rtx_USE.
10242
10243 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
10244
10245         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
10246
10247 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
10248
10249         PR c/3504
10250         * doc/extend.texi: Correct documentation of __alignof__.
10251
10252 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
10253
10254         * params.h: Rename arguments of DEFPARAM so that it will be
10255         recognized as a translation keyword.
10256
10257 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
10258
10259         * extend.texi: Document altivec functions.
10260         Fix N-bit adjectives in X86 builtin documentation.
10261
10262 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
10263
10264         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
10265         auto_inc_dec values.
10266
10267 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
10268
10269         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
10270         after backslash.
10271         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
10272
10273 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
10274
10275         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
10276
10277 2002-01-22  Richard Henderson  <rth@redhat.com>
10278
10279         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
10280         copy_insn not copy_rtx.
10281
10282 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
10283
10284         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
10285         "nonzero" as that might add "1" bits.  Ensure "constop" is
10286         properly sign extened.
10287         (force_to_mode): Tweak for sign extended constop.
10288
10289 2002-01-22  Richard Henderson  <rth@redhat.com>
10290
10291         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
10292         for_each_rtx instead of assuming we're already looking at the MEM.
10293         (split_small_symbolic_mem_operand): Likewise.
10294         * config/alpha/alpha.h (PREDICATE_CODES): Update.
10295         * config/alpha/alpha.md (small symbolic memory splitters): Update.
10296
10297 2002-01-22  Richard Henderson  <rth@redhat.com>
10298
10299         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
10300         sequence number for the literal.
10301         (divmoddi_internal_er): Likewise.
10302
10303 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10304
10305         PR java/4972
10306         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
10307         in LIBICONV variable.
10308         * configure: Regenerated.
10309
10310 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
10311
10312         * dependence.c (build_def_use): Remove array_idx.
10313
10314         * dwarfout.c (last_filename): Remove.
10315         (output_compile_unit_die): Remove last_filename.
10316
10317 2002-01-22  Roger Sayle  <roger@eyesopen.com>
10318             Richard Henderson  <rth@redhat.com>
10319
10320         PR opt/3640
10321         * fold-const.c (fold): Optimize unsigned comparisons against
10322         UINT_MAX (and similar unsigned constants).
10323
10324 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
10325
10326         * Makefile.in (loop.o): Depend on OPTABS_H.
10327         * loop.c (emit_prefetch_instructions): Check the prefetch operand
10328         against the predicate.
10329
10330         PR target/5379
10331         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
10332         for the address operand.
10333
10334 2002-01-22  Richard Henderson  <rth@redhat.com>
10335
10336         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
10337
10338 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10339
10340         PR other/5450
10341         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
10342         preprocessor flags.
10343
10344 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
10345
10346         * config.gcc (x86_64-*-netbsd*): New target.
10347         * config/i386/netbsd64.h: New file.
10348
10349 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
10350
10351         * regrename.c (kill_value): Fix typo.
10352
10353 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
10354
10355         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
10356
10357         * config/rs6000/rs6000.h: Same.
10358
10359         * function.c (instantiate_virtual_regs): Remove
10360         STARTING_FRAME_PHASE.
10361         (assign_stack_local_1): Same.
10362         Calculate frame phase.
10363
10364 2002-01-22  Nick Clifton  <nickc@redhat.com>
10365
10366         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
10367         variable declaration to outer scope in order to simplify
10368         future extensions.
10369         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
10370         arm_hard_regno_mode_ok.
10371         * config/arm/arm-protos.h: Add a prototype for
10372         arm_hard_regno_mode_ok.
10373         * config/arm/arm.c (soft_df_operand): Remove now redundant
10374         check for DImode values using IP_REGNUM.
10375         (nonimmediate_soft_df_operand): Remove now redundant check for
10376         DImode values using IP_REGNUM.
10377         (arm_hard_regno_mode_ok): New function. New check: make sure
10378         that DImode values are not stored in IP_REGNUM.
10379
10380         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
10381         note with a USE.
10382         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
10383
10384 2002-01-22  Jason Merrill  <jason@redhat.com>
10385
10386         * c-semantics.c (genrtl_compound_stmt): Only check nesting
10387         consistency if this COMPOUND_STMT is scoped.
10388
10389 2002-01-22  Kazu Hirata  <kazu@hxi.com>
10390
10391         * predict.c: Fix formatting.
10392         * print-tree.c: Likewise.
10393         * protoize.c: Likewise.
10394         * real.h: Likewise.
10395         * rtl.h: Likewise.
10396         * sbitmap.h: Likewise.
10397         * scan.c: Likewise.
10398         * sched-deps.c: Likewise.
10399         * sched-vis.c: Likewise.
10400         * sdbout.c: Likewise.
10401         * sibcall.c: Likewise.
10402         * ssa.c: Likewise.
10403         * ssa-ccp.c: Likewise.
10404         * ssa-dce.c: Likewise.
10405         * stmt.c: Likewise.
10406         * stor-layout.c: Likewise.
10407         * system.h: Likewise.
10408
10409 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10410
10411         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
10412         if fits in bounds of base type.
10413
10414         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
10415         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
10416         (add_bound_info, default): If can't find a context, make a
10417         SAVE_EXPR.
10418         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
10419
10420 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
10421
10422         * c-typeck.c (parser_build_binary_op): If result from
10423         build_binary_op is ERROR_MARK just return error_mark_node without
10424         further processing.
10425
10426 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
10427
10428         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
10429         Split a.out-specific bits into...
10430         * config/netbsd-aout.h: ...this.
10431         * config/netbsd-elf.h: New file.
10432         * config/alpha/netbsd-elf.h: Remove.
10433         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
10434         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
10435         (STARTFILE_SPEC): Remove redundant definition.
10436         (ENDFILE_SPEC): Likewise.
10437         (LINK_SPEC): Likewise.
10438         (CPP_SPEC): Likewise.
10439         (ASM_SPEC): Likewise.
10440         (LIB_SPEC): Likewise.
10441         (SWITCH_TAKES_ARG): Likewise.
10442         (TARGET_MEM_FUNCTIONS): Likewise.
10443         (CPP_PREDEFINES): Redefine.
10444         (ASM_FINAL_SPEC): Remove redefinition.
10445         (ASM_COMMENT_START): Redefine.
10446         (FUNCTION_PROFILER): Define.
10447         (TARGET_VERSION): Redefine.
10448         Comment and formatting cleanup.
10449         * config/i386/netbsd.h: Include <netbsd-aout.h>.
10450         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
10451         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
10452         big- or little-endian.
10453         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
10454         * config.gcc (*-*-netbsd*): Add definitions common to all
10455         NetBSD configs.
10456         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
10457         gnu_ld definitions.  Add netbsd-elf.h to and remove
10458         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
10459         tmake_file, and don't lose previous tmake_file contents.
10460         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
10461         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
10462         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
10463         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
10464         (mipsel-*-netbsd*): Rename this to...
10465         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
10466         mips/little.h to tm_file for mips*el-*.
10467         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
10468         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
10469         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
10470
10471 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10472
10473         * pa-protos.h (reg_before_reload_operand): New function prototype.
10474         * pa.c (reg_before_reload_operand): New function implementation.
10475         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
10476         contraints to "*m".
10477
10478 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10479
10480         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
10481
10482 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10483
10484         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
10485         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
10486         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
10487         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
10488         (ENDFILE_SPEC): Undefine.
10489         (STARTFILE_SPEC): Redefine for PA.
10490
10491 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10492
10493         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
10494
10495 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
10496
10497         * config.gcc: Add entries to supported PowerPC --with-cpu
10498         types.
10499
10500 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
10501
10502         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
10503         true for 64-bit mode only SSE registers in 32-bit mode.
10504
10505 2002-01-21  Kazu Hirata  <kazu@hxi.com>
10506
10507         * unwind-dw2.c: Fix formatting.
10508         * unwind-dw2-fde.c: Likewise.
10509         * unwind-dw2-fde.h: Likewise.
10510         * unwind-pe.h: Likewise.
10511         * varasm.c: Likewise.
10512         * varray.h: Likewise.
10513
10514 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
10515
10516         Remove workaround for register stack overwrite bug in mmix.
10517         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
10518         support for TARGET_REG_STACK_FILL_BUG.
10519         * config/mmix/mmix.h: Remove member has_call_without_parameters.
10520         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
10521         Delete.
10522         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
10523         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
10524         -mno-reg-stack-fill-bug-workaround.
10525         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
10526         machine member has_call_without_parameters.
10527         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
10528         -mreg-stack-fill-bug-workaround and
10529         -mno-reg-stack-fill-bug-workaround.
10530         (MMIX Options): Ditto.
10531
10532 2002-01-21  Kazu Hirata  <kazu@hxi.com>
10533
10534         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
10535         as appropriate.
10536         Remove redundant code.
10537
10538 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
10539
10540         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
10541         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10542         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10543         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
10544         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
10545         out target macro definitions and non-target-specific comments
10546         mostly taken from old versions of the manual.
10547
10548 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10549
10550         * config/h8300/h8300.h: Fix comment formatting.
10551         * config/ia64/aix.h: Likewise.
10552         * config/ia64/ia64-protos.h: Likewise.
10553         * config/ia64/ia64.c: Likewise.
10554         * config/ia64/ia64.h: Likewise.
10555         * config/ia64/ia64intrin.h: Likewise.
10556         * config/ia64/linux.h: Likewise.
10557         * config/ia64/unwind-aix.c: Likewise.
10558         * config/ia64/unwind-ia64.c: Likewise.
10559
10560 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10561
10562         * config/h8300/h8300.c: Revise comments about shift code.
10563
10564 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10565
10566         * config/h8300/h8300.c (function_arg): Update a comment.
10567
10568 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10569
10570         * config/h8300/h8300.md: Update the comments at the beginning
10571         of the file.
10572
10573 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10574
10575         * config/i370/i370.c: Fix comment formatting.
10576         * config/i370/i370.h: Likewise.
10577         * config/i370/i370.md: Likewise.
10578         * config/i370/linux.h: Likewise.
10579
10580 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10581
10582         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
10583
10584         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
10585         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
10586         in incomplete case.
10587
10588 2002-01-20  Graham Stott  <grahams@redhat.com>
10589
10590         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
10591
10592 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10593
10594         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
10595
10596 2002-01-19  Tom Rix  <trix@redhat.com>
10597
10598         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
10599
10600 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
10601
10602         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
10603
10604         * function.c (assign_stack_local_1): Adjust x_frame_offset with
10605         STARTING_FRAME_PHASE.
10606         (STARTING_FRAME_PHASE): New.
10607         (instantiate_virtual_regs): Check saneness of
10608         STARTING_FRAME_PHASE.
10609
10610         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
10611
10612 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
10613
10614         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
10615
10616 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10617
10618         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
10619         be used for bootstrapping GCC 3.0.
10620
10621 2002-01-18  Kazu Hirata  <kazu@hxi.com>
10622
10623         * config/h8300/h8300.md: Fix an insn length.
10624
10625 2002-01-18  Kazu Hirata  <kazu@hxi.com>
10626
10627         * bitmap.h: Fix comment formatting.
10628         * combine.c: Likewise.
10629         * cppfiles.c: Likewise.
10630         * c-pragma.h: Likewise.
10631         * c-typeck.c: Likewise.
10632         * df.c: Likewise.
10633         * dwarf2out.c: Likewise.
10634         * function.c: Likewise.
10635         * gcc.c: Likewise.
10636         * genattrtab.c: Likewise.
10637         * gthr-win32.h: Likewise.
10638         * haifa-sched.c: Likewise.
10639         * predict.c: Likewise.
10640         * rtlanal.c: Likewise.
10641         * rtl.h: Likewise.
10642         * unwind-dw2-fde.h: Likewise.
10643         * unwind-pe.h: Likewise.
10644         * vmsdbgout.c: Likewise.
10645
10646 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10647
10648         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
10649         if type_required and passed decl.
10650
10651 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
10652
10653         * config.gcc (cpu_type): Include altivec.h in powerpc
10654         extra_headers.
10655         Same for darwin.
10656
10657         * config/rs6000/altivec.h: New.
10658
10659 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
10660
10661         * doc/install.texi (*-ibm-aix*): Update assembler and exception
10662         handling information.
10663         * doc/trouble.texi (Interoperation): Add libstdc++ information
10664         for AIX.
10665         (Misunderstandings): Add template instantiation and static template
10666         member information for AIX.
10667
10668 2002-01-17  Jason Merrill  <jason@redhat.com>
10669
10670         * dbxout.c (dbxout_type): Support const and volatile.
10671
10672         * except.c (add_partial_entry): Remove backwards compatibility code.
10673         (end_protect_partials): Likewise.
10674
10675 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
10676
10677         * config/ia64/ia64.md (prologue_use): New.
10678         * config/ia64/ia64.c (ia64_expand_prologue): Use
10679         gen_prologue_use instead of gen_rtx_USE.
10680         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
10681         as CODE_FOR_pred_rel_mutex.
10682         (ia64_sched_reorder2): Likewise.
10683
10684 2002-01-16  Eric Christopher  <echristo@redhat.com>
10685
10686         * config/mips/r3900.h: Reformat.
10687         (SUBTARGET_CPP_SIZE_SPEC): Remove.
10688         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
10689         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
10690         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
10691         * config/mips/t-elf: Remove mips3 multilib.
10692
10693 2002-01-16  H.J. Lu <hjl@gnu.org>
10694
10695         * config/mips/linux.h: Include "mips/abi64.h".
10696
10697 2002-01-16  H.J. Lu <hjl@gnu.org>
10698
10699         * config/mips/t-linux: New.
10700
10701         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
10702
10703         * config/mips/linux.h: Don't include "gofast.h".
10704         (INIT_SUBTARGET_OPTABS): Removed.
10705
10706 2002-01-16  Kazu Hirata  <kazu@hxi.com>
10707
10708         * config/h8300/h8300-protos.h: Replace emit_a_shift with
10709         output_a_shift.
10710         * config/h8300/h8300.c: Likewise.
10711         * config/h8300/h8300.md: Likewise.
10712
10713 2002-01-16  Kazu Hirata  <kazu@hxi.com>
10714
10715         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
10716         spaces after an opcode name.
10717         (pushqi1_h8300hs): Likewise.
10718         (pushhi1_h8300hs): Likewise.
10719
10720 2002-01-16  Kazu Hirata  <kazu@hxi.com>
10721
10722         * doc/extend.texi: Replace "option" with "attribute"
10723         appropriately.
10724
10725 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
10726
10727         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
10728         (and:DI () (const_int -8)).
10729         (split_small_symbolic_mem_operand): Split
10730         (mem (and:DI () (const_int -8)).
10731
10732 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
10733
10734         PR target/5309:
10735         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
10736         same way as TYPE_IMUL.
10737         (ultrasparc_sched_reorder): Likewise.
10738         * config/sparc/sparc.md (type): Add comment to update
10739         ultrasparc_sched_reorder when making changes.
10740
10741 2002-01-16  Kazu Hirata  <kazu@hxi.com>
10742
10743         * doc/invoke.texi: Change the dump file name of block
10744         reordering pass from 28.bbro to 29.bbro.
10745         Mention -dk option.
10746
10747 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
10748
10749         * i386.md (minsf splitter): Fix pasto.
10750
10751 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
10752
10753         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
10754         to frame pointer initialisation instruction.
10755         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
10756         initialisation instruction.
10757         (soft_df_operand): Do not accept the IP register.
10758         (nonimmediate_soft_df_operand): Do not accept the IP register.
10759
10760 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
10761
10762         PR target/5357:
10763         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
10764         MASK_V8 being both set.
10765
10766 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
10767
10768         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
10769         insn for GOT register; add REG_MAYBE_DEAD notes instead.
10770         config/s390/s390.md (call, call_value): Add GOT register to
10771         CALL_INSN_FUNCTION_USAGE where needed.
10772         (call_exp, call_value_exp): New.
10773
10774 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
10775
10776         * config/arm/arm.c: General formatting tidy up.
10777
10778 2002-01-16  Graham Stott  <grahams@redhat.com>
10779
10780         * calls.c (try_to_integrate): Use "(size_t)" intermediate
10781         cast and when casting an integer literal to "rtx" pointer.
10782         (expand_call): Likewise.
10783         * flow.c (try_pre_increment): Likewise.
10784         (find_use_as_address): Likewise.
10785         * integrate.c (expand_iline_function): Likewise.
10786         * regmove.c (try_auto_increment): Likewise.
10787
10788 2002-01-16  Graham Stott  <grahams@redhat.com>
10789
10790         * sched-rgn.c (passed): Use sbitmap_free.
10791         (header): Likewise.
10792         (inner): Likewise.
10793         (in_queue): Likewise.
10794         (in_stack): Likewise.
10795
10796 2002-01-15  Eric Christopher  <echristo@redhat.com>
10797
10798         * flow.c (propagate_one_insn): Change to use fatal_insn.
10799
10800 2002-01-15  Kazu Hirata  <kazu@hxi.com>
10801
10802         * expmed.c (extract_fixed_bit_field): Remove unused code.
10803         * system.h: Poison SLOW_ZERO_EXTEND.
10804         * doc/tm.texi: Remove.
10805         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
10806         * config/arm/arm.h: Likewise.
10807         * config/avr/avr.h: Likewise.
10808         * config/clipper/clipper.h: Likewise.
10809         * config/convex/convex.h: Likewise.
10810         * config/d30v/d30v.h: Likewise.
10811         * config/dsp16xx/dsp16xx.h: Likewise.
10812         * config/elxsi/elxsi.h: Likewise.
10813         * config/fr30/fr30.h: Likewise.
10814         * config/h8300/h8300.h: Likewise.
10815         * config/i370/i370.h: Likewise.
10816         * config/i386/i386.h: Likewise.
10817         * config/m68k/m68k.h: Likewise.
10818         * config/mips/mips.h: Likewise.
10819         * config/ns32k/ns32k.h: Likewise.
10820         * config/pdp11/pdp11.h: Likewise.
10821         * config/pj/pj.h: Likewise.
10822         * config/s390/s390.h: Likewise.
10823         * config/sh/sh.h: Likewise.
10824         * config/stormy16/stormy16.h: Likewise.
10825         * config/v850/v850.h: Likewise.
10826         * config/vax/vax.h: Likewise.
10827         * config/we32k/we32k.h: Likewise.
10828
10829 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
10830
10831         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
10832         (altivec_lvsl): Change constraint to b.
10833         (altivec_lvsr): Same.
10834         (altivec_lvebx): Same.
10835         (altivec_lvehx): Same.
10836         (altivec_lvewx): Same.
10837         (altivec_lvxl): Same.
10838         (altivec_lvx): Same.
10839         (altivec_stvx): Add parallel.
10840         (altivec_stvxl): Same.
10841         (altivec_stvehx): Same.
10842         (altivec_stvebx): Same.
10843         (altivec_stvebx): Same.
10844
10845 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
10846
10847         * config.gcc: Change altivec.h to altivec-defs.h.
10848
10849         * config/rs6000/altivec.h: Delete.
10850
10851         * config/rs6000/altivec-defs.h: Add.
10852
10853 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10854
10855         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
10856         and UMOD modes.
10857
10858         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
10859         less than or equal to eight bytes.
10860
10861         * vax.md (andsi3): Remove constraints and change SET destination
10862         operand type to nonimmediate_operand.
10863         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
10864         when it is a CONST_INT.
10865
10866 2002-01-15  Jason Merrill  <jason@redhat.com>
10867
10868         * c-common.def (FILE_STMT): New code.
10869         * c-common.c (statement_code_p): It's a statement.
10870         * c-common.h (stmt_tree_s): Add x_last_filename.
10871         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
10872         (last_expr_filename): New macro.
10873         * c-semantics.c (begin_stmt_tree): Initialize it.
10874         (add_stmt): If the filename changed, also insert a
10875         FILE_STMT.
10876         (expand_stmt): Handle seeing one.
10877
10878 2002-01-15  Eric Christopher  <echristo@redhat.com>
10879
10880         * flow.c (propagate_one_insn): Add error message and print out
10881         insn for debugging.
10882
10883 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
10884
10885         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
10886         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
10887         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
10888         TRAMPOLINE_ALIGNMENT.
10889         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
10890         to be in bits.
10891         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
10892         PCC_BITFIELD_TYPE_MATTERS.
10893         * config/interix.h (STDC_VALUE): Remove.  Use
10894         STDC_0_IN_SYSTEM_HEADERS.
10895         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
10896         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
10897         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
10898
10899 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10900
10901         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
10902         not work on this platform currently.
10903
10904 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
10905
10906         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
10907         readonly_warning in _().
10908
10909 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
10910
10911         * gcc.c (delete_if_ordinary): Backout previous change.
10912
10913 2002-01-15  Kazu Hirata  <kazu@hxi.com>
10914
10915         * config/h8300/h8300.c (print_operand): Remove support for
10916         unused operand characters.
10917
10918         * read-rtl.c: Fix formatting.
10919         * real.c: Likewise.
10920         * recog.c: Likewise.
10921         * regclass.c: Likewise.
10922         * regmove.c: Likewise.
10923         * reg-stack.c: Likewise.
10924         * reload1.c: Likewise.
10925         * rtlanal.c: Likewise.
10926
10927 2002-01-15  Kazu Hirata  <kazu@hxi.com>
10928
10929         * config/i386/i386.c: Fix formatting.
10930
10931 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
10932
10933         * c-typeck.c (process_init_element): Don't save_expr
10934         COMPOUND_LITERAL_EXPR if just its initializer will be used.
10935
10936 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
10937
10938         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
10939         emit optional traceback table if optimize_size or TARGET_ELF.
10940         * config/rs6000/rs6000.md (prefetch): New.
10941
10942 2002-01-15  Andreas Jaeger  <aj@suse.de>
10943
10944         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
10945
10946 2002-01-15  Kazu Hirata  <kazu@hxi.com>
10947
10948         * mips-tfile.c: Fix formatting.
10949
10950 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
10951
10952         * unroll.c (final_reg_note_copy): Fix previous commit.
10953
10954 2002-01-14  Kazu Hirata  <kazu@hxi.com>
10955
10956         * config/h8300/h8300-protos.h: Remove the prototype for
10957         eq_operator.
10958         * config/h8300/h8300.c (eq_operator): Remove.
10959
10960 2002-01-14  Richard Henderson  <rth@redhat.com>
10961
10962         * config/i386/i386.md (prefetch): Tidy.
10963         (prefetch_3dnow): Fix locality operand.
10964
10965 2002-01-14  Richard Henderson  <rth@redhat.com>
10966
10967         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
10968         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
10969
10970 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
10971
10972         * reload1.c (reload_combine): Pass reg_sum replacement through
10973         copy_rtx in loop performing multiple changes.
10974
10975 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
10976
10977         * except.c (remove_unreachable_regions): New.
10978         (free_eh_status): Clear exception_handler_labels.
10979         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
10980         (find_exception_handler_labels): Don't add the same label more than
10981         once.
10982         (remove_exception_handler_label): Don't die if
10983         find_exception_handler_labels hasn't been called for the current
10984         function yet.
10985
10986 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
10987
10988         * toplev.c (rest_of_compilation): Rebuild jump labels after
10989         gcse.
10990
10991 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
10992
10993         * doc/extend.texi: Move documentation of X86 built-in functions
10994         here.
10995         * doc/invoke.texi: From here.
10996         * doc/sourcebuild.texi: Document location of documentation for
10997         machine built-in functions.
10998
10999 2002-01-13  Christopher Faylor  <cgf@redhat.com>
11000
11001         * cppfiles.c (TEST_THRESHOLD): New macro.
11002         (SHOULD_MMAP): Ditto.
11003         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
11004         be used.
11005
11006 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
11007
11008         * unroll.c (final_reg_note_copy): Properly handle
11009         REG_LABEL
11010         (unroll_loops): Fix LOOP_CONDITION heuristics.
11011
11012 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
11013
11014         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
11015         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
11016
11017 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
11018
11019         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
11020         threaded loop.
11021
11022 2002-01-14  Tom Rix  <trix@redhat.com>
11023
11024         * config/rs6000/rs6000.md: Fix typo with sradi.
11025
11026 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
11027
11028         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
11029         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
11030         (clrstrdi, clrstrsi): Adapt callers.
11031
11032         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
11033
11034         (movti splitter): Never use register 0 as base register.
11035
11036 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
11037
11038         * combine.c (simplify_shift_const): Always generate new rtx
11039         for shift expression instead of reusing given expression.
11040
11041 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11042
11043         * config/alpha/alpha.c (alpha_expand_mov): Don't call
11044         alpha_legitimize_address unless mode is Pmode.
11045
11046 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
11047
11048         * doc/md.texi (Modifiers): Document the '*' constraint for the
11049         user.
11050
11051         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
11052         * doc/extend.texi (Function Attributes): 'interrupt' is valid
11053         for xstormy16 too.
11054
11055 2002-01-13  Richard Henderson  <rth@redhat.com>
11056
11057         * reload.c (find_reloads): Use a hard reg destination as reload reg
11058         for an input reload of the source.
11059
11060 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11061
11062         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
11063         more generic.
11064
11065 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
11066
11067         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
11068         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
11069
11070         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
11071
11072 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11073
11074         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
11075
11076 2002-01-12  Tom Rix  <trix@redhat.com>
11077
11078         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
11079         TARGET_POWERPC64.
11080
11081 2002-01-12  Richard Henderson  <rth@redhat.com>
11082
11083         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
11084
11085         * doc/invoke.texi: Update Alpha options.
11086
11087         * doc/invoke.texi: Update i386 built-in function lists.
11088
11089 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
11090
11091         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
11092         referencing outside.
11093
11094 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11095
11096         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
11097         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
11098         offsets, and change line folding.
11099         * optabs.c (expand_binop): Remove warnings.
11100         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
11101
11102 2002-01-12  Graham Stott <grahams@redhat.com>
11103
11104         * attribs.c (handle_deprecated_attribute): constify WHAT.
11105         * diagnostic.c (warn_deprecated_use): Add braces, fixes
11106         dangling else warning and constify WHAT.
11107         * except.h (struct function, struct inline_remap): Move
11108         struct tag forward defs before all prototypes.
11109         (duplicate_eh_regions): Whitespace.
11110
11111 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
11112
11113         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11114         MODE_BASE_REG_CLASS.
11115         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
11116
11117 2002-01-12  Richard Henderson  <rth@redhat.com>
11118
11119         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
11120         (ix86_expand_vector_move): New.
11121         (bdesc_2arg): Remove andps, andnps, orps, xorps.
11122         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
11123         Remove old prefetch builtins.  Special case the logicals removed above.
11124         (ix86_expand_builtin): Likewise.
11125         (safe_vector_operand): Use V4SFmode, not TImode.
11126         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
11127         (ix86_expand_timode_binop_builtin): New.
11128         * config/i386/i386-protos.h: Update.
11129         * config/i386/i386.h (enum ix86_builtins): Update.
11130         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
11131         Use ix86_expand_vector_move in vector move expanders.
11132         (movti_internal, movti_rex64): Add xorps alternative.
11133         (sse_clrv4sf): Rename and adjust from sse_clrti.
11134         (prefetch): Don't work so hard.
11135         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
11136         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
11137         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
11138
11139 2002-01-11  Richard Henderson  <rth@redhat.com>
11140
11141         * config/i386/mmintrin.h: New file.
11142         * config/i386/xmmintrin.h: New file.
11143         * config.gcc (i?86-*-*): Add extra_headers.
11144         * simplify-rtx.c (simplify_unary_operation): Handle saturating
11145         truncation codes.
11146         (simplify_binary_operation): Handle saturating arithmetic codes.
11147         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
11148         not the lowpart subreg.
11149         (ix86_expand_builtin): Return a TImode dummy register instead of 0
11150         on error.
11151         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
11152
11153 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11154
11155         * conflict.c (conflict_graph_compute): Free regsets when finished.
11156         * ssa.c (compute_coalesced_reg_partition): Likewise.
11157
11158 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11159
11160         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
11161         every where we allocate a register.
11162
11163 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11164
11165         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
11166         * lcm.c (compute_earliest, compute_farthest): Likewise.
11167
11168 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
11169
11170         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
11171
11172 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
11173
11174         * doc/rtl.texi (Insns): Fix 2 typos.
11175
11176 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
11177
11178         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
11179         options.  Use @table @gcctabopt for MMIX options.  Add index
11180         entries for MMIX options.  Start new paragraph with first
11181         heading of the machine-dependent options.
11182
11183 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11184
11185         PR other/5299
11186         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
11187         * combine.c (force_to_mode): Same.
11188         * reload1.c (clear_reload_reg_in_use): Same.
11189
11190 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
11191
11192         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
11193         and 'subtargets'.
11194
11195 2002-01-11  Andreas Jaeger  <aj@suse.de>,
11196             Brad Lucier <lucier@math.purdue.edu>
11197
11198         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
11199         mcpu.
11200
11201 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
11202
11203         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
11204         Protect with IN_LIBGCC.
11205         (LINK_EH_SPEC): Add required trailing space.
11206
11207 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
11208
11209         * c-tree.h: Move function declarations so that they are listed
11210         under the filename which contains them.
11211         (check_identifier, finish_decl_top_level,
11212         lookup_name_current_level_global, shadow_record_fields): Remove.
11213
11214 2002-01-11  Andreas Jaeger  <aj@suse.de>
11215
11216         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
11217         march.
11218
11219 2002-01-10  Richard Henderson  <rth@redhat.com>
11220
11221         * config/alpha/alpha.c (print_operand): Add 'J'.
11222         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
11223         new operand with the sequence number for the lituse.  When splitting
11224         the insns, use gen_movdi_er_high_g and generate a sequence number.
11225         (gen_movdi_er_high_g): Print the sequence number if non-zero.
11226
11227 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
11228
11229         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
11230         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
11231         stvxl.
11232         (altivec_expand_builtin): Same.
11233         (altivec_expand_stv_builtin): New.
11234
11235         * config/rs6000/rs6000.h (rs6000_builtins): Same.
11236
11237         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
11238         ("altivec_lvehx"): New.
11239         ("altivec_lvewx"): New.
11240         ("altivec_lvxl"): New.
11241         ("altivec_lvx"): New.
11242         ("altivec_stvx"): New.
11243         ("altivec_stvebx"): New.
11244         ("altivec_stvehx"): New.
11245         ("altivec_stvewx"): New.
11246         ("altivec_stvxl"): New.
11247
11248 2002-01-10  Richard Henderson  <rth@redhat.com>
11249
11250         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
11251         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
11252         care not to delete instructions twice.
11253
11254 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
11255
11256         * toplev.c: Don't declare environ (it's not used anywhere).
11257         * configure.in: Don't check for declaration of environ.
11258         * config/i386/xm-mingw32.h: Don't #define environ.
11259         * config.in, configure: Regenerate.
11260
11261 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
11262
11263         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
11264         * configure: Regenerate.
11265
11266         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
11267         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
11268         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
11269         alpha/xm-vms.h.
11270         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
11271         LIMITS_H_TEST here, not in m68k/x-next.
11272         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
11273         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
11274
11275         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
11276         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
11277         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
11278
11279         * config/i386/x-djgpp: Renamed i386/t-djgpp.
11280         * config/m88k/x-dolph: Renamed m88k/t-dolph.
11281         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
11282         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
11283         replacement of quadlib.asm with quadlib.c.
11284
11285         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
11286         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
11287         config/rs6000/xm-beos.h: Delete file.
11288
11289         * config.gcc: Update to match above changes.
11290
11291 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11292
11293         * config/h8300/h8300.h: Fix comment typos.
11294         * config/h8300/h8300.md: Likewise.
11295         * config/h8300/lib1funcs.asm: Likewise.
11296
11297 2002-01-10  Dale Johannesen  <dalej@apple.com>
11298
11299         PR optimization/5269
11300         * unroll.c (precondition_loop_p): Make *increment be the correct
11301         sign when n_iterations known, to avoid confusing caller.
11302
11303 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11304
11305         * doc/extend.texi (deprecated): Fix a typo.
11306
11307 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
11308
11309         * basic-block.h (update_br_prob_note): Declare.
11310         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
11311         (try_forward_edges): Care negative frequencies and update note.
11312         (outgoing_edges_match): Tweek conditional merging heuristics.
11313         (try_crossjump_to_edge): use update_br_prob_note.
11314         * cfglayout.c (fixup_reorder_chain): Likewise.
11315         * cfrtl.c (update_br_prob_note): New.
11316         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
11317
11318         * i386.c (ix86_decompose_address): Return -1 if address contains
11319         shift.
11320         (legitimate_address_p): Require ix86_decompose_address to return 1.
11321
11322         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
11323         (cprop_insn): Likewise.
11324
11325 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11326
11327         * toplev.c: Fix formatting.
11328         * tree.c: Likewise.
11329         * tree-dump.c: Likewise.
11330         * unroll.c: Likewise.
11331         * unwind-dw2.c: Likewise.
11332         * unwind-dw2-fde.c: Likewise.
11333         * unwind-dw2-fde-glibc.c: Likewise.
11334         * unwind-sjlj.c: Likewise.
11335
11336 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
11337
11338         * doc/invoke.texi: Document PDP-11 options.
11339
11340 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11341
11342         * config/h8300/h8300.h: Fix formatting.
11343
11344 2002-01-10  Ira Ruben   <ira@apple.com>
11345
11346         Add __attribute__ ((deprecated)).
11347         * extend.texi: Document __attribute__ ((deprecated)).
11348         * invoke.texi: Document -Wno-deprecated-declarations.
11349         * testsuite/g++.dg/other/deprecated.C: New C++ test.
11350         * testsuite/gcc.dg/deprecated.c: New C test.
11351         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
11352         (c_common_attribute_table): Add "deprecated" entry.
11353         (handle_deprecated_attribute): New function.
11354         * c-decl.c (deprecated_states): New enum.
11355         deprecated_state: State of "deprecated" handling.
11356         (start_decl): Set deprecated_state based on attributes.
11357         (grokdeclarator): Test for deprecated uses, propagate attribute.
11358         * c-typeck.c (build_component_ref): Test for deprecated fields.
11359         (build_external_ref): Test for deprecated primaries.
11360         * diagnostic.c (warn_deprecated_use) New function to issue
11361         warnings about __attribute__ ((depricated)) references.
11362         * flags.h (warn_deprecated_decl): Extern declared for
11363         -W[no-]deprecated-declarations option.
11364         * print-tree.c (print_node): Show deprecated flag status.
11365         * toplev.c (warn_deprecated_decl): Defined.
11366         (W_options): Added "deprecated-declaration".
11367         * toplev.h (warn_deprecated_use): Extern declared.
11368         * tree.h (struct tree_common): Define deprecated_flag.
11369         (TREE_DEPRECATED): New macro to access flag.
11370         * cp/call.c (build_call): Test for deprecated calls.
11371         * cp/class.c (add_implicitly_declared_members): Set global
11372         flag to tell grokdeclarator to not issue deprecated warnings.
11373         * cp/cp-tree.h: Add extern for adding_implicit_members.
11374         * cp/decl.c (deprecated_states): New enum.
11375         (start_decl): Set deprecated_state based on attributes.
11376         (grokdeclarator): Test for deprecated uses, propagate attribute.
11377         * cp/lex.c (do_identifier): Test for deprecated primaries.
11378         * cp/typeck.c (build_component_ref): Test for deprecated fields.
11379
11380 2002-01-10  Ira Ruben   <ira@apple.com>
11381
11382         Fix to assign attributes to inline member functions.
11383         * cp/decl.c (start_method): Handle attrlist.
11384
11385 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11386
11387         * combine.c (expand_field_assignment): Use subreg_lsb().
11388
11389 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
11390
11391         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
11392         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
11393         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
11394         Recurse for any operand of AND as long as constant is non-zero.
11395
11396 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11397
11398         * config/h8300/h8300.md: Remove constraints from expanders.
11399
11400 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11401
11402         * varasm.c: Fix formatting.
11403         * varray.c: Likewise.
11404         * vmsdbgout.c: Likewise.
11405         * xcoffout.c: Likewise.
11406
11407 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
11408
11409         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
11410         update edge probabilities to match.
11411
11412 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
11413
11414         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
11415         dependencies.
11416         * doc/languages.texi, doc/sourcebuild.texi: New files.
11417         * doc/configfiles.texi: Make a subsubsection.  Update.
11418         * doc/configterms.texi: Add @node.  Remove warning that this isn't
11419         instructions for building GCC.
11420         * doc/makefile.texi: Make a subsection.
11421         * doc/gccint.texi: Update.
11422
11423 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
11424
11425         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
11426
11427 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
11428
11429         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
11430
11431 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
11432
11433         * optabs.c (expand_fix): Look for wider integer modes first.
11434
11435         * i386.md (mov?f): Avoid the fake const double trick for medium
11436         memory model.
11437         (min?f*/max?f*): Prohibit memory operands for i387 variant.
11438         (fop_df_4): Disable for SSE compilation.
11439
11440 2002-01-10  Graham Stott  <grahams@redhat.com>
11441
11442         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
11443         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
11444
11445 2002-01-10  Richard Henderson  <rth@redhat.com>
11446
11447         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
11448
11449 2002-01-10  Richard Henderson  <rth@redhat.com>
11450
11451         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
11452         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
11453
11454 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11455
11456         * combine.c (can_combine_p): Fix a comment typo.
11457
11458 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
11459
11460         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
11461         empty list correctly.  Change loop index $t to $f for
11462         consistency with rest of Makefile.
11463
11464 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
11465
11466         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
11467         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
11468
11469         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
11470         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
11471         (altivec_init_builtins): Same.
11472         (altivec_expand_unop_builtin): Return NULL_RTX on error.
11473         (altivec_expand_binop_builtin): Same.
11474         (altivec_expand_ternop_builtin): Same.
11475         (bdesc_dst): New.
11476
11477         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
11478         ("altivec_vctuxs"): Fix typo.
11479         ("altivec_vnmsubfp"): Same.
11480         ("altivec_dssall"): New.
11481         ("altivec_mfvscr"): New.
11482         ("altivec_dss"): New.
11483         ("altivec_lvsl"): New.
11484         ("altivec_lvsr"): New.
11485         ("altivec_dstt"): New.
11486         ("altivec_dstst"): New.
11487         ("altivec_dststt"): New.
11488         ("altivec_dst"): New.
11489
11490         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
11491         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
11492
11493 2002-01-09  Richard Henderson  <rth@redhat.com>
11494
11495         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
11496
11497 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
11498
11499         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
11500         function.
11501         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
11502         prototype.
11503         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
11504
11505 2002-01-09  Kazu Hirata  <kazu@hxi.com>
11506
11507         * read-rtl.c: Fix formatting.
11508         * real.c: Likewise.
11509         * regclass.c: Likewise.
11510         * regrename.c: Likewise.
11511         * reg-stack.c: Likewise.
11512         * reload1.c: Likewise.
11513         * reload.c: Likewise.
11514         * rtl.c: Likewise.
11515
11516 2002-01-09  Kazu Hirata  <kazu@hxi.com>
11517
11518         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
11519         to extract items in the expr_list chain.
11520
11521 2002-01-09  Richard Henderson  <rth@redhat.com>
11522
11523         * config/vax/vax.c (vax_rtx_cost): Never abort.
11524
11525         * config/vax/vax.h (REAL_ARITHMETIC): Define.
11526
11527 2002-01-09  Jan Hubicka  <jh@suse.cz>
11528
11529         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
11530
11531 2002-01-09  Richard Henderson  <rth@redhat.com>
11532
11533         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
11534         Unify code from various alternatives.
11535
11536 2002-01-09  Richard Henderson  <rth@redhat.com>
11537
11538         * regrename.c (copy_value): Ignore the copy if the source register
11539         is present in the value chain with a narrower mode.
11540
11541 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
11542
11543         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
11544         for the c4x target. Also improve layout.
11545
11546 2002-01-09  Richard Henderson  <rth@redhat.com>
11547
11548         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
11549         * config/m32r/m32r.md (and ior xor splitters): Swap operands
11550         to match insn patterns.
11551
11552 2002-01-09  Richard Henderson  <rth@redhat.com>
11553
11554         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
11555         (copyprop_hardreg_forward_1): Likewise.
11556
11557 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11558
11559         * pa.md (decrement_and_branch_until_zero): Change predicate for
11560         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
11561
11562 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
11563
11564         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
11565         gets undefined. For Darwin.
11566
11567 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11568
11569         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
11570
11571 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11572
11573         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
11574
11575 2002-01-08  Richard Henderson  <rth@redhat.com>
11576
11577         * regrename.c (copy_value): Ignore overlapping copies.
11578
11579 2002-01-08  Richard Henderson  <rth@redhat.com>
11580
11581         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
11582         as needed to avoid shared structure.
11583
11584 2002-01-08  Kazu Hirata  <kazu@hxi.com>
11585
11586         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
11587         H8/300H and H8/S.
11588
11589 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
11590
11591         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
11592         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
11593         documentation of obsolete macros.
11594         * system.h: Poison these macros.
11595         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
11596         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
11597         config/c4x/c4x.h, config/clipper/clipper.h,
11598         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
11599         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
11600         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
11601         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
11602         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
11603         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
11604         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
11605         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
11606         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
11607         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
11608         config/sparc/sparc.h, config/stormy16/stormy16.h,
11609         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
11610         definitions and commented out definitions of obsolete macros.
11611         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
11612         of MAX_INT_TYPE_SIZE.
11613
11614 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
11615
11616         * config/s390/s390.c (s390_preferred_reload_class): Never
11617         return ADDR_REGS if it isn't a subset of the given class.
11618         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
11619         FP_REGS, but all superclasses as well.
11620
11621         * config/s390/s390.c (s390_function_profiler): Fix thinko.
11622
11623         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
11624         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
11625         must not be a const_int.
11626
11627 2002-01-08  Richard Henderson  <rth@redhat.com>
11628
11629         * Makefile.in (toplev.o): Depend on options.h.
11630         (gcc.o): Depend on specs.h.
11631
11632 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
11633
11634         * expr.c (store_expr): Convert VOIDmode constants back to target's
11635         mode.
11636
11637 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11638
11639         * doc/invoke.texi: Markup gcc as @command.  Refer to
11640         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
11641         of http://gcc.gnu.org/thanks.html.
11642
11643 2002-01-08  Dale Johannesen  <dalej@apple.com>
11644
11645         * config/rs6000/rs6000.md: Add missing int register
11646         target case to movdf_low.
11647
11648 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
11649
11650         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
11651         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
11652         (cppinit.o): Depend on except.h.
11653         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
11654         s-specs): New rules.
11655
11656         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
11657         Don't create specs.h/options.h/gencheck.h here.  Remove
11658         unnecessary variable settings from last argument of AC_OUTPUT.
11659         * config.in, configure: Regenerate.
11660         * intl.c: Hardcode package name as "gcc".
11661
11662         * cppinit.c: Include except.h.
11663         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
11664         appropriate.
11665         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
11666         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
11667         (!)USING_SJLJ_EXCEPTIONS.
11668         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
11669
11670 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
11671
11672         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
11673         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
11674         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
11675         documentation of obsolete macros.
11676         * system.h: Poison these macros.
11677         * config/d30v/d30v.h, config/ns32k/encore.h,
11678         config/stormy16/stormy16.h: Remove definitions and commented out
11679         definitions of obsolete macros.
11680
11681 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
11682
11683         * objc/objc-act.c (handle_class_ref): Mark the declaration of
11684         %sobjc_class_ref_%s as used - to prevent unwanted compiler
11685         warnings.
11686
11687 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
11688
11689         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
11690         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
11691         to insn adjusting stack/frame pointer.
11692         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
11693         accept operands that cause the insn to be non-splittable.
11694
11695 2002-01-08  Graham Stott  <grahams@redhat.com>
11696
11697         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
11698         (C_TYPE_FIELDS_VOLATILE): Likewise.
11699         (C_TYPE_BEING_DEFINED): Likewise.
11700         (C_IS_RESERVED_WORD): Likewise.
11701         (C_TYPE_VARIABLE_SIZE): Likewise.
11702         (C_DECL_VARIABLE_SIZE): Likewise.
11703         (C_MISSING_PROTOTYPE_WARNED): Likewise.
11704         (C_SET_EXP_ORIGINAL_CODE): Likewise.
11705         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
11706         parenthesis.
11707         (C_DECL_ANTICIPATED): Likewise.
11708         (c_build_type_variant): Add parenthesis.
11709
11710 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
11711
11712         * gcc.c (option_map): Remove --version.
11713         (process_command): Handle -fversion following the GNU Coding
11714         Standards.  Partially addresses PR other/704.
11715
11716 2002-01-08  Graham Stott  <grahams@redhat.com>
11717
11718         * combine.c (combine_instructions): Fix typo.
11719
11720 2002-01-08  Graham Stott  <grahams@redhat.com>
11721
11722         * debug.h: Use "tree" and "rtx" throughout.
11723
11724         * debug.c: Likewise.
11725
11726 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
11727
11728         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
11729         constant pool, use the pool's version of the symbol instead.
11730
11731 2002-01-07  Richard Henderson  <rth@redhat.com>
11732
11733         * regrename.c (find_oldest_value_reg): Ignore the value chain if
11734         the original register was copied in a mode with a fewer number of
11735         hard registers than the desired mode.
11736         (copyprop_hardreg_forward_1): Likewise.
11737         (debug_value_data): Fix loop test.
11738         * toplev.c (parse_options_and_default_flags): Reenable
11739         -fcprop-registers at -O1.
11740
11741 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
11742
11743         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
11744         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
11745
11746         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
11747         predicates.
11748
11749         * config/rs6000/rs6000.md: Add altivec predicate patterns.
11750
11751 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11752
11753         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
11754         (pa_output_function_prologue): Output local label at the beginning of
11755         the prologue when profiling.
11756         (hppa_profile_hook): Use the local label rather than the function label.
11757         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
11758
11759 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
11760
11761         * config/rs6000/rs6000.c (print_operand): Remove extra space.
11762         (altivec_expand_unop_builtin): Fix thinko.
11763         (altivec_expand_binop_builtin): Same.
11764         (altivec_expand_ternop_builtin): Same.
11765         (altivec_expand_builtin): Same.
11766
11767 2002-01-07  Richard Henderson  <rth@redhat.com>
11768
11769         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
11770
11771 2002-01-07  Jason Merrill  <jason@redhat.com>
11772
11773         * unwind-dw2.c (execute_cfa_program): Use < again.
11774
11775 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
11776
11777         * predict.c (combine_predictions_for_insn): Avoid division by zero.
11778
11779 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
11780
11781         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
11782         Don't allow -1 - x -> ~x simplifications in the first pass.
11783
11784 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
11785
11786         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
11787         arguments.
11788         (altivec_expand_binop_builtin): Same.
11789         (altivec_expand_unop_builtin): Same.
11790         (print_operand): Fix typo.
11791         (bdesc_1arg): Add vupk* variants.
11792
11793         * rs6000.h (rs6000_builtins): Add vupk* enums.
11794
11795         * rs6000.md: Add altivec_vupk* variants.
11796
11797 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
11798
11799         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
11800         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
11801         and last update dates.
11802
11803 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
11804
11805         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
11806
11807 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11808
11809         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
11810         * config/avr/avr.h (CPP_SPEC): Likewise.
11811         (LINK_SPEC): Likewise.
11812         (CRT_BINUTILS_SPECS): Likewise.
11813         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11814         * doc/invoke.texi (AVR Options): Document them.
11815
11816 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
11817
11818         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
11819         LABEL_NUSES.
11820
11821 2002-01-07  Graham Stott  <grahams@redhat.com>
11822
11823         * config/i386/i386.h: Update copyright date.
11824         (HALF_PIC_PTR): Add parenthesis.
11825         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
11826         (CONSTANT_ALIGNMENT): Add parenthesis.
11827         (DATA_ALIGNMENT): Likewise.
11828         (LOCAL_ALIGNMENT): Likewise.
11829         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
11830         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
11831         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
11832         (HARD_REGNO_NREGS): Add paranethesis.
11833         (VALID_SSE_REG_MODE): Whitespace.
11834         (VALID_MMX_REG_MODE): Whitespace.
11835         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
11836         (ix86_hard_regno_mode_ok): Add parenthesis.
11837         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
11838         (RETURN_IN_MEMORY): Whitespace.
11839         (N_REG_CLASSES): Add parenthesis.
11840         (INTEGER_CLASS_P): Add parenthesis and wrap.
11841         (FLOAT_CLASS_P): Likewise.
11842         (SSE_CLASS_P): Likewise.
11843         (MMX_CLASS_P): Likewise.
11844         (MAYBE_INTEGER_CLASS_P): Likewise.
11845         (MAYBE_FLOAT_CLASS_P): Likewise.
11846         (MAYBE_SSE_CLASS_P): Likewise.
11847         (MAYBE_MMX_CLASS_P): Likewise.
11848         (Q_CLASS_P): Likewise.
11849         (GENERAL_REGNO_P): Uppercase macro parameter.
11850         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
11851         (FP_REGNO_P): Likewise.
11852         (ANY_FP_REGNO_P): Uppercase macro parameter.
11853         (SSE_REGNO_P): Likewise.
11854         (SSE_REGNO): Likewise.
11855         (SSE_REG_P): Likewise.
11856         (SSE_FLOAT_MODE_P): Likewise.
11857         (MMX_REGNO_P): Likewise.
11858         (MMX_REG_P):Likewise.
11859         (STACK_REG_P): Likewise.
11860         (NON_STACK_REG_P): Likewise.
11861         (STACK_TOP_P): Likewise.
11862         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
11863         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
11864         (SECONDARY_MEMORY_NEEDED): Likewise.
11865         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
11866         (MD_ASM_CLOBBERS): Whitespace and wrap.
11867         (MUST_PASS_IN_STACK): Whitespace and wrap.
11868         (RETURN_POPS_ARGS): Add parenthesis.
11869         (INIT_CUMULATIVE_ARGS): Likewise.
11870         (FUNCTION_ARG): Likewise.
11871         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
11872         (SETUP_INCOMING_VARARGS): Likewise.
11873         (BUILD_VA_LIST_TYPE):  Add parenthesis.
11874         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
11875         parenthsis.
11876         (EXPAND_BUILTIN_VA_ARG): Likewise.
11877         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
11878         (INITIALIZE_TRAMPOLINE): Add parenthesis.
11879         (INITIAL_ELIMINATION_OFFSET): Likewise.
11880         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
11881         (REGNO_OK_FOR_BASE_P): Likewise.
11882         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
11883         (REGNO_OK_FOR_DIREG_P): Likewise.
11884         (REG_OK_FOR_INDEX_P): Whitespace.
11885         (REG_OK_FOR_BASE_P): Whitespace.
11886         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
11887         parenthesis.
11888         (FIND_BASE_TERM): Fix typo.
11889         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
11890         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
11891         (SYMBOLIC_CONST; Whitespace.
11892         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
11893         (ENCODE_SECTION_INFO): Whitespace.
11894         (FINALIZE_PIC): Remove do { ... } while (0).
11895         (PROMOTE_MODE): Wrap in do { ... } while (0).
11896         (CONST_COSTS): Whitespace.
11897         (RTX_COSTS): Add paramethesis, whitespace and wrap.
11898         (REGISTER_MOVE_COST): Add parenthesis.
11899         (MEMORY_MOVE_COST): Likewise.
11900         (EXTRA_CC_MODES): Whitespace.
11901         (SELECT_CC_MODE): Add parenthesis and whitespace.
11902         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
11903         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
11904         (ASM_OUTPUT_LABEL): Add paramethesis.
11905         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
11906         (ASM_OUTPUT_REG_POP): Likewise.
11907         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
11908         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11909
11910         * config/i386/i386.c: Update copyright.
11911         (CHECK_STACK_LIMIT): Add parenthesis.
11912         (AT_BP): Uppercase macro parameter.
11913         (x86_64_int_parameter_registers): Constify.
11914         (x86_64_int_return_registers): Likewise.
11915         (ix86_compare_op0): Use rtx.
11916         (construct_container): Constify INTREG parameter.
11917         (function_arg): Use rtx.
11918
11919         * diagnostic.h: Update copyright date.
11920         (output_buffer_state): Add parenthesis.
11921         (output_buffer_format_args): Likewise.
11922
11923         * combine.c (combine_instructions): Replace XEXP (links, 0)
11924         with link.
11925
11926 2002-01-06  H.J. Lu <hjl@gnu.org>
11927
11928         * cfgcleanup.c (thread_jump): Fix 2 typos.
11929
11930 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
11931
11932         * config.gcc: Add support for --enable-altivec.
11933
11934 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11935
11936         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
11937
11938 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
11939
11940         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
11941         __objc_class_name_*.
11942
11943 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11944
11945         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
11946
11947 2002-01-06  Richard Henderson  <rth@redhat.com>
11948
11949         * reorg.c (emit_delay_sequence): Remove death notes, not merely
11950         nop them out.  Increment label reference count for REG_LABEL.
11951         (fill_slots_from_thread): Frob label reference count around
11952         delete_related_insns.
11953
11954 2002-01-05  Richard Henderson  <rth@redhat.com>
11955
11956         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
11957         jump threading.
11958
11959 2002-01-05  Richard Henderson  <rth@redhat.com>
11960
11961         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
11962         * integrate.c (output_inline_function): Likewise.
11963         * toplev.c (rest_of_compilation): Do it here instead.  Move call
11964         to remove_unnecessary_notes after emitting abstract instance.
11965         Force an emitted nested function to have its parent emited as well.
11966         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
11967         for null.
11968         (rtl_for_decl_location): Do not look at reload data structures
11969         before reload has run.
11970
11971 2002-01-05  Kazu Hirata  <kazu@hxi.com>
11972
11973         * cse.c: Fix formatting.
11974         * dwarf2asm.c: Likewise.
11975         * dwarf2out.c: Likewise.
11976         * explow.c: Likewise.
11977         * expmed.c: Likewise.
11978         * function.c: Likewise.
11979         * gcov.c: Likewise.
11980         * gencheck.c: Likewise.
11981         * genrecog.c: Likewise.
11982         * ggc-common.c: Likewise.
11983         * ggc-page.c: Likewise.
11984         * global.c: Likewise.
11985
11986 2002-01-05  Kazu Hirata  <kazu@hxi.com>
11987
11988         * combine.c: Fix formatting.
11989
11990 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
11991
11992         PR middle-end/1557
11993         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
11994
11995 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
11996
11997         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
11998         as 1 for __powerpc64__ as well.
11999
12000         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
12001
12002         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
12003         return it.
12004
12005 2002-01-05  Daniel Berlin  <dan@dberlin.org>
12006
12007         * lcm.c: Revert change, due to performance regression it causes on
12008         SPEC because it's slightly more conservative (sigh, I hate
12009         edge-based LCM).
12010
12011 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
12012
12013         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
12014
12015 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
12016
12017         * doc/cppinternals.texi: Update.
12018
12019 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
12020
12021         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
12022         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
12023         negatives.
12024         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
12025         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
12026         kludge for pre-october-14th mmix versions to handle new-found bug
12027         with PUSHJ/PUSHGO and the register stack.
12028         * config/mmix/mmix.h (struct machine_function): Rename member
12029         has_call_value_without_parameters to has_call_without_parameters.
12030         All referers changed.
12031         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
12032         TARGET_MASK_BRANCH_PREDICT): New macros.
12033         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
12034         -mno-reg-stack-fill-bug-workaround.
12035         * config/mmix/mmix.md ("call"): Set struct machine member
12036         has_call_without_parameters.
12037
12038 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
12039
12040         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
12041
12042 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
12043
12044         * cfgcleanup.c: Include tm_p.h
12045         (mark_effect): Fix handling of hard register; fix handling of SET
12046
12047 2002-01-04  Kazu Hirata  <kazu@hxi.com>
12048
12049         * config/h8300/h8300.md (anonymous patterns): Check that
12050         operands are registers before using REGNO on them.
12051
12052 2002-01-03  Roland McGrath  <roland@frob.com>
12053
12054         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
12055
12056 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
12057
12058         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
12059         * c-common.h (genrtl_expr_stmt_value): Likewise.
12060         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
12061         (expand_expr_stmt_value): Add maybe_last argument.
12062         Don't warn about statement with no effect if it is the last statement
12063         in expression statement.
12064         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
12065         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
12066         expand_expr_stmt_value.
12067         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
12068         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
12069         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
12070         as maybe_last to expand_expr_stmt_value.
12071
12072 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
12073
12074         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
12075         be passed in, do not build it.
12076         (c_begin_if_stmt): New function.
12077         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
12078         * c-common.h (c_expand_start_cond): Update prototype.
12079         (c_begin_if_stmt): Prototype new function.
12080         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
12081         * c-parse.in (if_prefix): Use c_begin_if_stmt,
12082         c_begin_while_stmt and c_finish_while_stmt_cond.
12083
12084 2002-01-04  William Cohen  <wcohen@redhat.com>
12085
12086         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
12087         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
12088         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
12089         * config/pa/som.h (ASM_FILE_START): Likewise.
12090
12091 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
12092
12093         * lcm.c: Include df.h.
12094         Add available_transfer_function prototype.
12095         (compute_available): Rework to use iterative dataflow framework.
12096         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
12097         with bb_info in df.h
12098         (available_transfer_function): New function.
12099
12100         * Makefile.in (lcm.o): add df.h to dependencies.
12101
12102 2002-01-04  Richard Henderson  <rth@redhat.com>
12103
12104         * config/alpha/alpha.c (some_operand): Accept HIGH.
12105         (input_operand): Likewise; accept simple references to globals.
12106         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
12107         (alpha_const_double_ok_for_letter_p): Likewise.
12108         (alpha_extra_constraint): Likewise.
12109         (alpha_preferred_reload_class): Likewise.  Do not force
12110         symbolic constants to memory.
12111         (alpha_legitimate_address_p): Accept simple references
12112         to small_symbolic_operand.
12113         (alpha_legitimize_address): New arg scratch.  Be prepared to be
12114         called when no_new_pseudos.  Emit simple symbolic references.
12115         Split integers into low, high, and rest.
12116         (alpha_expand_mov): Use alpha_legitimize_address.
12117         (some_small_symbolic_mem_operand): New.
12118         (split_small_symbolic_mem_operand): New.
12119         * config/alpha/alpha-protos.h: Update.
12120         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
12121         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
12122         (EXTRA_CONSTRAINT): Likewise.
12123         (PREFERRED_RELOAD_CLASS): Likewise.
12124         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
12125         (PREDICATE_CODES): Update.
12126         * config/alpha/alpha.md: New post-reload splitters to convert
12127         simplfied symbolic operands to the form that references $29.
12128         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
12129         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
12130
12131 2002-01-03  Richard Henderson  <rth@redhat.com>
12132
12133         * local-alloc.c (function_invariant_p): Update commentary.
12134
12135 2002-01-04  H.J. Lu <hjl@gnu.org>
12136
12137         * toplev.c (rest_of_compilation): Fix a typo when calling
12138         cleanup_cfg.
12139
12140 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12141
12142         * c-common.c: Fix formatting.
12143         * diagnostic.c: Likewise.
12144         * doloop.c: Likewise.
12145         * dwarf2out.c: Likewise.
12146
12147 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12148
12149         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
12150         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
12151
12152 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
12153
12154         * cpperror.c: Update comments and copyright.
12155         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
12156         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
12157
12158 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12159
12160         * collect2.c (main): Use strcmp when testing for "-shared".
12161
12162 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
12163
12164         * cppmacro.c: Don't include intl.h.  Update comments.
12165         (new_number_token): Allocate enough buffer for 64-bit unsigned
12166         integers; update prototype.
12167         * cppmain.c: Update comments.
12168
12169 2002-01-03  William Cohen  <wcohen@redhat.com>
12170
12171         * function.h (struct function): Add profile.
12172         (current_function_profile): New.
12173         doc/extend.texi: Update documentation.
12174         * final.c (final_start_function): Use current_function_profile
12175         instead of profile_flag.
12176         (profile_after_prologue): Likewise.
12177         * function.c (expand_function_start): Likewise.
12178         (expand_function_start): Likewise.
12179         * config/alpha/alpha.c (direct_call_operand):
12180         (alpha_does_function_need_gp): Likewise.
12181         (alpha_expand_prologue): Likewise.
12182         * config/arm/arm.c (arm_expand_prologue): Likewise.
12183         thumb_expand_prologue: Likewise.
12184         * config/d30v/d30v.c (d30v_stack_info): Likewise.
12185         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
12186         (fr30_expand_prologue): Likewise.
12187         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
12188         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
12189         * config/i386/i386.h (FINALIZE_PIC): Likewise.
12190         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
12191         * config/i960/i960.c (i960_output_function_prologue): Likewise.
12192         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
12193         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
12194         (m32r_expand_prologue): Likewise.
12195         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
12196         (m88k_expand_prologue): Likewise.
12197         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
12198         * config/mips/mips.c (compute_frame_size): Likewise.
12199         (mips_expand_prologue): Likewise.
12200         (mips_can_use_return_insn): Likewise.
12201         * config/pa/elf.h (ASM_FILE_START): Likewise.
12202         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
12203         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
12204         * config/pa/som.h (ASM_FILE_START): Likewise.
12205         * config/romp/romp.c (romp_using_r14): Likewise.
12206         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
12207         (rs6000_stack_info): Likewise.
12208         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
12209         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
12210         * config/v850/v850.c (compute_register_save_size): Likewise.
12211
12212 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
12213
12214         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
12215         gen_lowpart_common fails, use gen_lowpart_SUBREG.
12216
12217 2002-01-03  Turly O'Connor  <turly@apple.com>
12218
12219         * darwin.c (machopic_output_possible_stub_label): Don't generate
12220         stub routines for pseudo-stubs which we've just defined.
12221
12222 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12223
12224         * builtins.c: Fix formatting.
12225         * c-typeck.c: Likewise.
12226         * combine.c: Likewise.
12227         * expr.c: Likewise.
12228         * loop.c: Likewise.
12229
12230 2002-01-03  Andreas Schwab  <schwab@suse.de>
12231
12232         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
12233         and return true if _cpp_push_next_buffer pushed a new include
12234         file.
12235         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
12236         _cpp_pop_file_buffer did not push a new file.
12237         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
12238
12239 2002-01-02  Eric Christopher  <echristo@redhat.com>
12240
12241         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
12242         FIND_REG_INC_NOTE call. Update copyright.
12243         * loop.c (canonicalize_condition): Ditto.
12244         * reorg.c (delete_scheduled_jump): Ditto.
12245
12246 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12247
12248         * gcse.c: Fix formatting.
12249
12250 2002-01-03  Graham Stott  <grahams@redhat.com>
12251
12252         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
12253         forward defs for struct tags rtx_def, union_tree, rtvec_def
12254         also output corresponding typedefs for rtx, tree, and rtvec.
12255
12256         * system.h: Move forward defs for struct tags rtx_def, union_tree,
12257         rtvec_def along with corresponding typedefs for rtx, tree, and
12258         rtvec to config.h, hconfig.h, tconfig.h.
12259
12260 2002-01-03  Graham Stott  <grahams@redhat.com>
12261
12262         * tree.h: Update copyright date.
12263         (IS_EXPR_CODE_CLASS): Add parenthesis.
12264         (TREE_SET_CODE): Add whitespace.
12265         (TREE_CHECK): Add parenthesis.
12266         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
12267         (CST_OR_CONSTRUCTOR_CHECK):
12268         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
12269         (TREE_SYMBOL_REFERENCED): Whitespace.
12270         (INT_CST_LT): Likewise.
12271         (INT_CST_LT_UNSIGNED): Likewise.
12272         (tree_real_cst): Unwrap comment.
12273         (tree_string): Likewise.
12274         (tree_complex): Likewise.
12275         (IDENTIFIER_POINTER): correct cast.
12276         (SAVE_EXPR_CONTEXT): Whitespace.
12277         (EXPR_WFL_FILENAME_NODE): Likewise.
12278         (EXPR_WFL_FILENAME): Remove parenthesis.
12279         (DECL_ORIGIN): Add parenthesis.
12280         (DECL_FROM_INLINE): Use NULL_TREE.
12281         (build_int_2): Whitespace.
12282         (build_type_variant): Add parenthesis.
12283
12284         * gcc/jcf-parse.c: Update copyright date.
12285         (yyparse): Constify resource_filename.
12286
12287 2002-01-03  Graham Stott  <grahams@redhat.com>
12288
12289         * rtl.h: Update copyright date.
12290         (RTL_CHECK1): Wrap long line.
12291         (RTL_CHECK2): Likewise.
12292         (RTL_CHECKC1): Wrap long line and whitespace.
12293         (RTL_CHECKC2): Likewise.
12294         (XWINT): Whitespace.
12295         (XINT): Likewise.
12296         (XSTR): Likewise.
12297         (XEXP): Likewise.
12298         (XVEC): Likewise.
12299         (XMODE): Likewise.
12300         (XBITMAP): Likewise.
12301         (XTREE): Likewise.
12302         (XBBDEF): Likewise.
12303         (XTMPL): Likewise.
12304         (X0WINT): Likewise.
12305         (X0INT):Likewise.
12306         (X0UINT): Likewise.
12307         (X0STR): Likewise.
12308         (X0EXP): Likewise.
12309         (X0VEC): Likewise.
12310         (X0MODE): Likewise.
12311         (X0BITMAP): Likewise.
12312         (X0TREE): Likewise.
12313         (X0BBDEF): Likewise.
12314         (X0ADVFLAGS): Likewise.
12315         (X0CSELIB): Likewise.
12316         (X0MEMATTR): Likewise.
12317         (XCWINT): Likewise.
12318         (XCINT): Likewise.
12319         (XCUINT): Likewise.
12320         (XCSTR): Likewise.
12321         (XCEXP): Likewise.
12322         (XCVEC): Likewise.
12323         (XCMODE): Likewise.
12324         (XCBITMAP): Likewise.
12325         (XCTREE): Likewise.
12326         (XCBBDEF): Likewise.
12327         (XCADVFLAGS): Likewise.
12328         (XCCSELIB): Likewise.
12329         (XC2EXP): Likewise.
12330         (INSN_UID): Likewise.
12331         (PREV_INSN): Likewise.
12332         (PATTERN): Likewise.
12333         (INSN_CODE): Likewise.
12334         (PUT_REG_NOTE_KIND): Likewise.
12335         (CODE_LABEL_NUMBER): Likewise.
12336         (NOTE_SOURCE_FILE): Likewise.
12337         (NOTE_BLOCK): Likewise.
12338         (NOTE_EH_HANDLER): Likewise.
12339         (NOTE_RANGE_INFO): Likewise.
12340         (NOTE_LIVE_INFO): Likewise.
12341         (NOTE_BASIC_BLOCK): Likewise.
12342         (NOTE_EXPECTED_VALUE): Likewise.
12343         (NOTE_LINE_NUMBER): Likewise.
12344         (LABEL_NAME): Likewise.
12345         (LABEL_NUSES): Likewise.
12346         (LABEL_ALTERNATE_NAME): Likewise.
12347         (ADDRESSOF_DECL): Likewise.
12348         (JUMP_LABEL): Likewise.
12349         (LABEL_NEXTREF): Likewise.
12350         (REGNO): Likewise.
12351         (ORIGINAL_REGNO: Likewise.
12352         (HARD_REGISTER_NUM_P): Add parenthesis.
12353         (SUBREG_REG): Whitespace.
12354         (SUBREG_BYTE): Likewise.
12355         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
12356         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
12357         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
12358         (ASM_OPERANDS_INPUT_VEC): Likewise.
12359         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
12360         (ASM_OPERANDS_INPUT): Likewise.
12361         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
12362         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
12363         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
12364         (ASM_OPERANDS_INPUT_MODE): Likewise.
12365         (ASM_OPERANDS_SOURCE_FILE): Likewise.
12366         (ASM_OPERANDS_SOURCE_LINE): Likewise.
12367         (MEM_SET_IN_STRUCT_P): Minor reformat.
12368         (TRAP_CONDITION): Whitespace.
12369         (TRAP_CODE): Likewise.
12370         (COND_EXEC_TEST): Likewise.
12371         (COND_EXEC_CODE): Likewise.
12372         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
12373         (PHI_NODE_P): Add parenthesis.
12374         (plus_constant): Whitespace and add parenthesis.
12375
12376 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12377
12378         * config/avr/avr.c: Fix comment typos.
12379         * config/c4x/c4x.md: Likewise.
12380         * config/dsp16xx/dsp16xx.h: Likewise.
12381         * config/dsp16xx/dsp16xx.md: Likewise.
12382         * config/i386/i386.md: Likewise.
12383         * config/ia64/ia64.c: Likewise.
12384         * config/m32r/m32r.h: Likewise.
12385         * config/m68hc11/m68hc11.md: Likewise.
12386         * config/mmix/mmix.c: Likewise.
12387         * config/mn10200/mn10200.c: Likewise.
12388         * config/romp/romp.c: Likewise.
12389         * config/sh/sh.c: Likewise.
12390         * config/stormy16/stormy16.c: Likewise.
12391         * config/stormy16/stormy16.h: Likewise.
12392         * config/stormy16/stormy16.md: Likewise.
12393
12394 2002-01-03  Graham Stott  <grahams@redhat.com>
12395
12396         * loop.h: Update copyright date.
12397         (LOOP_MOVABLES): Fix typo.
12398         (LOOP_REGS): Likewise.
12399         (LOOP_IVS): Likewise.
12400
12401 2002-01-03  Graham Stott  <grahams@redhat.com>
12402
12403         * cppinit.c: Update copyright date.
12404         Don't include output.h
12405         * Makefile.in: Update copyright date.
12406         Update dependency.
12407
12408 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12409
12410         PR c/5226
12411         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
12412         (-pthread) Add to RS/6000 options.
12413
12414 2002-01-02  Kazu Hirata  <kazu@hxi.com>
12415
12416         * except.c: Fix comment typos.
12417         * loop.c: Likewise.
12418         * varasm.c: Likewise.
12419         * doc/tm.texi: Fix a typo.
12420
12421 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
12422
12423         * c-typeck.c (output_init_element): Allow initializing static storage
12424         duration objects with compound literals.
12425
12426 2002-01-02  Richard Henderson  <rth@redhat.com>
12427
12428         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
12429         after abusing it.
12430
12431 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12432
12433         * gcc.c (default_compilers): Const-ify.
12434         * mips-tdump.c (stab_names): Likewise.
12435         * mips-tfile.c (map_coff_types, map_coff_storage,
12436         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
12437         pseudo_ops_t, pseudo_ops): Likewise.
12438         * protoize.c (default_include): Likewise
12439
12440         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
12441         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
12442         Add array size in declaration.
12443         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
12444         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
12445         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
12446         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
12447         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
12448         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
12449         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
12450         emtens, make_nan): Const-ify.
12451         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
12452         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
12453
12454 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
12455
12456         * config.gcc (ia64-*-*): Set extra_headers.
12457         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
12458         * config/alpha/t-osf: Remove.
12459         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
12460
12461 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
12462
12463         * config/rs6000/t-aix43: Revert previous change.
12464
12465 2002-01-02  Jason Merrill  <jason@redhat.com>
12466
12467         * c-decl.c (c_expand_body): Call outlining_inline_function when
12468         emitting an inline function out of line.
12469
12470 2002-01-02  Richard Henderson  <rth@redhat.com>
12471
12472         * dwarf2out.c (limbo_die_node): Add created_for member.
12473         (new_die): New argument created_for.  Update all callers.
12474         (mark_limbo_die_list): New.
12475         (dwarf2out_init): Register limbo_die_list as a root.
12476         (dwarf2out_finish): Force insert limbo dies into their function
12477         context.
12478
12479 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
12480
12481         PR c++/5089
12482         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
12483
12484 2002-01-02  Kazu Hirata  <kazu@hxi.com>
12485
12486         * config/h8300/fixunssfsi.c: Update copyright.
12487         Fix comment typos.
12488         Fix formatting.
12489         * config/h8300/h8300.c: Update copyright.
12490         Eliminate warnings.
12491
12492 2002-01-02  Kazu Hirata  <kazu@hxi.com>
12493
12494         * config/romp/romp.c: Fix comment formatting.
12495         * config/romp/romp.h: Likewise.
12496         * config/romp/romp.md: Likewise.
12497         * config/s390/s390.c: Likewise.
12498         * config/stormy16/stormy16.c: Likewise.
12499         * config/stormy16/stormy16.h: Likewise.
12500
12501 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
12502
12503         * c-common.h (genrtl_expr_stmt_value): Declare.
12504         * c-semantics.c (genrtl_goto_stmt): Redirect to...
12505         (genrtl_goto_stmt_value): ... this new function.  Pass new
12506         argument down to expand_expr_stmt_value, taking
12507         TREE_ADDRESSABLE into account.
12508         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
12509         STMT_EXPR as addressable, i.e., one whose result we want.
12510         * expr.c (expand_expr): Don't save expression statement value
12511         of labeled_blocks or loop_exprs.
12512         * stmt.c (expand_expr_stmt): Redirect to...
12513         (expand_expr_stmt_value): ... this new function.  Use new
12514         argument to tell whether to save expression value.
12515         (expand_end_stmt_expr): Reset last_expr_type and
12516         last_expr_value if we don't have either.
12517         * tree-inline.c (declare_return_variable): Mark its use
12518         statement as addressable.
12519         * tree.h: Document new use of TREE_ADDRESSABLE.
12520         (expand_expr_stmt_value): Declare.
12521
12522 2002-01-01  Tom Rix  <trix@redhat.com>
12523
12524         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
12525         rs6000_emit_allocate_stack.
12526
12527 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
12528
12529         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
12530         ${srcdir}/ginclude/ to every entry in extra_headers.
12531         * configure: Regenerate.
12532         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
12533         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
12534         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
12535         * ginclude/proto.h: Rename to config/convex/proto.h.
12536
12537 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12538
12539         * attribs.c (handle_vector_size_attribute): Use host_integerp
12540         and tree_int_cst; remove warnings.
12541         * caller-save.c (insert_restore): Add cast to get rid of warning.
12542         (insert_save): Likewise.
12543         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
12544         * regmove.c (find_matches): Add temporary var to kill a warning.
12545
12546 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
12547
12548         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
12549         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
12550         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
12551         (vms-dwarf2eh.o): Add Makefile rule.
12552         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
12553         * config/alpha/vms-dwarf2eh.asm: New file.
12554
12555         * gcc.c (delete_if_ordinary): Delete all versions.
12556
12557 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
12558
12559         * config/mmix/mmix.md: Update FIXME to not mention
12560         define_constants.
12561         (MMIX_rJ_REGNUM): New define_constants constant.
12562         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
12563         "*movdicc_real"): Adjust contraints formatting.
12564         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
12565         for branch prediction.
12566         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
12567         output template.
12568         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
12569         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
12570         number.  Delete related FIXMEs.
12571         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
12572         from number to MMIX_rJ_REGNUM.
12573         (TARGET_MASK_BRANCH_PREDICT): New.
12574         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
12575         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
12576         value.  Add -mbranch-predict and -mno-branch-predict.
12577         (TARGET_VERSION): Drop date.
12578         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
12579         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
12580         for finding out global symbols.
12581         (mmix_asm_output_labelref): Revert condition for global symbol.
12582         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
12583         (mmix_print_operand_punct_valid_p): A '+' is valid.
12584
12585 See ChangeLog.6 for earlier changes.