OSDN Git Service

* cpplex.c: Fix comment formatting.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-04-30  Kazu Hirata  <kazu@hxi.com>
2
3         * cpplex.c: Fix comment formatting.
4         * function.c: Likewise.
5         * integrate.c: Likewise.
6         * regrename.c: Likewise.
7         * sibcall.c: Likewise.
8         * simplify-rtx.c: Likewise.
9         * tree-inline.c: Likewise.
10
11 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12
13         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
14         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
15         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
16         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
17         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
18         * pa/x-ada: New file.  Define ADA_CFLAGS.
19
20 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
21
22         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
23         from MMIX_LAST_REGISTER_FILE_REGNUM.
24         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
25         (struct machine_function): New member highest_saved_stack_register
26         previously static variable in mmix.c.
27         (MACHINE_DEPENDENT_REORG): Define.
28         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
29         (MMIX_OUTPUT_REGNO): New.
30         (mmix_target_asm_function_prologue): Move calculation of last used
31         saved-stack-register into...
32         (mmix_machine_dependent_reorg): New function.  Update to also handle
33         !TARGET_ABI_GNU.
34         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
35         register names, simplify somewhat by new variable regno.
36         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
37         register.
38         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
39         emitting register names.
40         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
41         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
42         Remove fixed FIXME.
43         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
44         Declare.
45
46         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
47
48 2002-04-30  Richard Henderson  <rth@redhat.com>
49
50         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
51         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
52         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
53         emit_tfmode_cvt): New.
54         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
55         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
56         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
57         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
58         * config/sparc/sparc-protos.h: Update.
59
60 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
61
62         * install.texi (Final install): Add to the list of info to include
63         in a report of a successful bootstrap, and add link to 3.1 list.
64
65 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
66
67         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
68         (mode): Add vector modes
69         (i387): Kill attribute.
70         (unit): New attribute.
71         (length_immediate): Grok new types.
72         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
73         (modrm): Use "unit".
74         (memory): Handle MMX/SSE properly.
75         (scheduling descriptions): Kill uses of fop1.
76         (sse, mmx, fp patterns): Set type and mode properly.
77
78 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@cygnus.com)
79
80         * pa.c (override_options): Default to PA8000 scheduling.
81         * doc/invoke.texi (HP-PA options): Mention newly added 7300
82         scheduling parameter.
83
84         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
85         handling of double precision multiplies.
86
87         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
88         fpdiv and fpsqrt instructions.
89         (7200 & 7300 scheduling): Fix typo in handling of
90         store-load and store-store penalties.
91
92 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
93
94         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
95         mips.  Add two missing commas.
96
97 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
98
99         * doc/contrib.texi (Contributors): Update Paolo Carlini's
100         and Benjamin Kosnik's entries.
101
102 2002-04-29  David S. Miller  <davem@redhat.com>
103
104         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
105         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
106         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
107         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
108
109 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
110
111         * combine.c (find_split_point): Use gen_int_mode.
112
113 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
114
115         Merging code from dfa-branch:
116         
117         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
118
119         * genautomata.c (output_reserv_sets): Fix typo.
120
121         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
122
123         * genautomata.c (output_reserv_sets): Remove
124         next_cycle_output_flag.
125
126         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
127
128         * sched-rgn.c (init_ready_list): Make the DFA code handle
129         USE/CLOBBER insns in the same way as the traditional
130         scheduler.
131         (new_ready): Similarly..
132
133         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
134
135         * haifa-sched.c (schedule_block): Change the DFA state only after
136         issuing insn.
137
138         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
139
140         * pa.c (hppa_use_dfa_pipeline_interface): New function.
141         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
142         (override_options): Add PA7300 scheduling support.
143         (pa_adjust_cost): Update various comments.  Properly
144         handle anti and output dependencies when using the
145         DFA scheduler.
146         (pa_issue_rate): Add PA7300 scheduling support.
147         (pa_can_combine_p): Call extract_insn before calling
148         constrain_operands (taken from mainline tree).
149         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
150         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
151         descriptions using DFA descriptions.  Add PA7300
152         scheduling support.
153
154         2002-03-30  David S. Miller  <davem@redhat.com>
155
156         Add UltraSPARC-III DFA scheduling support.
157         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
158         Update FP conditional move on register insn patterns to use it, as
159         appropriate.
160         (define_attr cpu): Add ultrasparc3.
161         (define_attr us3load_type): New, update integer load patterns to
162         set it, as appropriate.
163         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
164         (rest): Add UltraSPARC3 scheduling description.
165         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
166         (PROCESSOR_ULTRASPARC3): New.
167         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
168         ({ASM,CPP}_CPU_SPEC): Likewise.
169         (REGISTER_MOVE_COST): Likewise.
170         (RTX_COSTS): Likewise.
171         * config/sparc/sparc.c (sparc_override_options,
172         sparc_initialize_trampoline, sparc64_initialize_trampoline,
173         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
174         sparc_issue_rate): Likewise.
175         * config/sparc/sol2.h: Likewise.
176         * config/sparc/sol2-sld-64.h: Likewise.
177         * config/sparc/linux64.h: Likewise.
178         
179         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
180
181         * doc/md.texi: Add comments about usage the latency time for the
182         different dependencies and about case when two or more conditions
183         in different define_insn_reservations returns TRUE for an insn.
184
185         * doc/md.texi: Add reference for automaton based pipeline
186         description.
187         
188         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
189
190         * doc/passes.texi: Add missed information about genattrtab.
191
192         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
193
194         * genautomata.c (output_automata_list_transition_code): Check
195         automata_list on NULL.
196
197         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
198
199         * genautomata.c (output_insn_code_cases,
200         output_automata_list_min_issue_delay_code,
201         output_automata_list_transition_code,
202         output_automata_list_state_alts_code): Comment the functions.
203
204         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
205
206         * genautomata.c (automata_list_el_t): New typedef.
207         (get_free_automata_list_el,free_automata_list_el,
208         free_automata_list, automata_list_hash, automata_list_eq_p,
209         initiate_automata_lists, automata_list_start, automata_list_add,
210         automata_list_finish, finish_automata_lists,
211         output_insn_code_cases, output_automata_list_min_issue_delay_code,
212         output_automata_list_transition_code,
213         output_automata_list_state_alts_code, add_automaton_state,
214         form_important_insn_automata_lists): New functions and prototypes.
215         (insn_reserv_decl): Add members important_automata_list and
216         processed_p.
217         (ainsn): Add members important_p.
218         (automata_list_el): New structure.
219         (first_free_automata_list_el, current_automata_list,
220         automata_list_table): New global variables.
221         (create_ainsns): Initiate member important_p.
222         (output_internal_min_issue_delay_func): Generate the switch and
223         call output_insn_code_cases.
224         (output_internal_trans_func, output_internal_state_alts_func):
225         Ditto.
226         (generate): Call initiate_automata_lists.
227         (automaton_states): New global variable.
228         (expand_automata): Call form_important_insn_automata_lists.
229         (write_automata): Call finish_automata_lists.
230         
231         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
232
233         * genautomata.c (add_excls, add_presence_absence): Check that
234         cpu units in the sets belong the same automaton.
235
236         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
237         about that cpu units in the sets belong the same automaton.
238
239         * doc/md.texi: Ditto.
240         
241         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
242                     Nitin Gupta  <niting@noida.hcltech.com>
243         
244         * config/sh/sh.c (sh_use_dfa_interface): New function.
245
246         (sh_issue_rate): New Function.
247         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
248         TARGET_SCHED_ISSUE_RATE: define.
249
250         * config/sh/sh.md: Add DFA based pipeline description for SH4.
251
252         (define_attr insn_class): New attribute used for DFA 
253          scheduling.
254         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
255         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
256          cmpeqdi_t): Likewise.
257
258         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
259          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class 
260          ex_group.
261         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
262            
263         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
264
265         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
266         break.
267
268         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
269
270         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
271         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
272         necessary.
273         (output_dfa_start_func): Initiate new variable insn_codes_length,
274         (write_automata): Output definition of the new variable.
275         
276         2001-10-02  David S. Miller  <davem@redhat.com>
277
278         * haifa-sched.c (advance_one_cycle): New function.
279         (schedule_block): Use it.
280         (queue_to_ready): Use it, and also make sure to advance the DFA
281         state on all stall cycles, not just those where insn_queue links
282         are found.
283
284         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
285
286         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
287         non-zero if the highest-priority instruction could be scheduled.
288         (choose_ready): Remove last argument from max_issue call.
289
290         2001-09-28  David S. Miller  <davem@redhat.com>
291
292         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
293         ultrasparc and 3 for other multi-issue sparcs.
294
295         2001-09-27  David S. Miller  <davem@redhat.com>
296
297         * config/sparc/sparc.md (cycle_display): New pattern.
298         * config/sparc/sparc.c (sparc_cycle_display): New.
299         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
300
301         2001-09-25  David S. Miller  <davem@redhat.com>
302
303         Convert all of Sparc scheduling to DFA
304         * config/sparc/sparc.md: Kill all define_function_unit
305         directives and replace with DFA equivalent.
306         * config/sparc/sparc.c (ultrasparc_adjust_cost,
307         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
308         ultra_fpmode_conflict_exists, ultra_find_type,
309         ultra_build_types_avail, ultra_flush_pipeline,
310         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
311         ultrasparc_variable_issue, ultrasparc_sched_init,
312         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
313         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
314         ultra_cur_hist, ultra_cycles_elapsed): Kill.
315         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
316         ultrasparc_store_bypass_p): New.
317         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
318         Declare.
319
320         2001-09-24  David S. Miller  <davem@redhat.com>
321
322         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
323         ready->vec[foo] not ready[foo].
324
325         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
326
327         * doc/md.texi: Correct examples for define_insn_reservations
328         `mult' and `div'.
329
330         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
331
332         * genautomata.c (create_automata): Print message about creation of
333         each automaton.
334         (generate): Remove printing meease about creation of
335         automata.
336
337         2001-09-05  David S. Miller  <davem@redhat.com>
338
339         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
340         * config/sparc/linux64.h: Likewise.
341
342         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
343
344         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
345         schedule_block, sched_init, sched_finish): Add missed calls of
346         use_dfa_pipeline_interface.
347
348         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
349         Ditto.
350
351         * sched-vis.c (get_visual_tbl_length): Ditto.
352         
353         2001-08-27  Richard Henderson  <rth@redhat.com>
354
355         * genattr.c (main): Emit state_t even when not doing scheduling.
356
357         2001-08-27  Richard Henderson  <rth@redhat.com>
358
359         * genautomata.c (expand_automata): Always create a description.
360
361         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
362
363         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
364         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
365         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
366         RTL constructions.
367
368         * genattr.c (main): New variable num_insn_reservations.  Increase
369         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
370         pipeline hazard recognizer interface.
371
372         * genattrtab.h: New file.
373
374         * genattrtab.c: Include genattrtab.h.
375         (attr_printf, check_attr_test, make_internal_attr,
376         make_numeric_value): Move protypes into genattrtab.h.  Define them
377         as external.
378         (num_dfa_decls): New global variable.
379         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
380         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
381         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
382         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
383
384         * genautomata.c: New file.
385
386         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
387
388         * sched-int.h: (curr_state): Add the external definition for
389         automaton pipeline interface.
390         (haifa_insn_data): Add comments for members blockage and units.
391
392         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
393         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
394         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
395         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
396         TARGET_SCHED_DFA_POST_CYCLE_INSN,
397         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
398         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
399         macros.
400         (TARGET_SCHED): Use the new macros.
401
402         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
403         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
404         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
405         dfa_bubble): New members in gcc_target.sched.
406
407         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
408         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
409         (insn_queue): Redefine it as pointer to array.
410         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
411         INSN_QUEUE_SIZE.
412         (max_insn_queue_index_macro_value): New variable.
413         (curr_state, dfa_state_size, ready_try): New varaibles for
414         automaton interface.
415         (ready_element, ready_remove, max_issue): New function prototypes
416         for automaton interface.
417         (choose_ready): New function prototype.
418         (insn_unit, blockage_range): Add comments.
419         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
420         FUNCTION_UNITS_SIZE == 0.
421         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
422         actual_hazard, potential_hazard): Add comments.
423         (insn_cost): Use cost -1 as undefined value.  Remove
424         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
425         pipeline interface.
426         (ready_element, ready_remove): New functions for automaton
427         interface.
428         (schedule_insn): Add new code for automaton pipeline interface.
429         (queue_to_ready): Add new code for automaton pipeline interface.
430         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
431         (debug_ready_list): Print newline when the queue is empty.
432         (max_issue): New function for automaton pipeline interface.
433         (choose_ready): New function.
434         (schedule_block): Add new code for automaton pipeline interface.
435         Print ready list before scheduling each insn.
436         (sched_init): Add new code for automaton pipeline interface.
437         Initiate insn cost by -1.
438         (sched_finish): Free the current automaton state and finalize
439         automaton pipeline interface.
440
441         * sched-rgn.c: Include target.h.
442         (init_ready_list, new_ready, debug_dependencies): Add new code for
443         automaton pipeline interface.
444
445         * sched-vis.c: Include target.h.
446         (get_visual_tbl_length): Add code for automaton interface.
447         (target_units, print_block_visualization):  Add comments.
448
449         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
450         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
451         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
452         (getruntime.o, genautomata.o): New entries.
453         (genattrtab.o): Add new dependency file genattrtab.h.
454         (genattrtab): Add new dependencies.  Link it with `libm.a'.
455         (getruntime.o, hashtab.o): New entries for canadian cross.
456
457         * doc/md.texi: Description of automaton based model.
458
459         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
460         Add comments.
461         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
462         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
463         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
464         TARGET_SCHED_DFA_POST_CYCLE_INSN,
465         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
466         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
467         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
468         hook descriptions.
469         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
470         MAX_DFA_ISSUE_RATE): New macro descriptions.
471
472         * doc/contrib.texi: Add dfa based scheduler contribution.
473
474         * doc/gcc.texi: Add more information about genattrtab.
475
476 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
477
478         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
479         adjust_address_nv call.
480
481 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
482
483         * doc/install.texi (Testing): Provide additional information, and
484         a stronger encouragement, for running the testsuites.
485
486 2002-04-29  DJ Delorie  <dj@redhat.com>
487
488         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
489         given in upper case.
490
491 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
492
493         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
494         Solaris 2 <widec.h> if missing.
495         * fixinc/fixincl.x: Regenerate.
496         * fixinc/tests/base/widec.h: New file.
497
498 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
499
500         * toplev.c (f_options): Add "profile" switch so that
501         -fno-profile can be used to disable -p.
502
503 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
504
505         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
506         UV2DImode.
507         * tree.c (build_common_tree_nodes_2): Likewise.
508         * tree.h (enum tree_index): Likewise.
509         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
510
511         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
512         entries.
513         (init_mmx_sse_builtins): Initialize SSE2 builtins.
514         (ix86_expand_builtin): Add support for SSE2 builtins.
515         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
516         (VALID_SSE_REG_MODE): Use it.
517         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
518         (enum ix86_builtins): Add SSE2 builtins.
519         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
520         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
521         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
522         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
523         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
524         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
525         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
526         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
527         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
528         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
529         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
530         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
531         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
532         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
533         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
534         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
535         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
536         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
537         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
538         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
539         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
540         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
541         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
542         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
543         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
544         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
545         lfence_insn): New patterns.
546         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
547         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
548
549 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
550
551         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
552
553 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
554
555         * doc/contrib.texi (Contributors): Add Paolo Carlini and
556         Janis Johnson.
557         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
558         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
559         and CPU instead of cpu.
560
561 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
562
563         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
564         variables.
565         (lang_independent_options): Add -fif-conversion, -fif-conversion2
566         (rest_of_compilation): Do if conversion only when asked for.
567         (parse_options_and_default_flags): Set new variables to 1 for -O1
568         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
569
570 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
571
572         * i386.c (dbx64_register_map): Fix typo.
573
574 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
575
576         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
577         real_one_half, real_bb_freq_max): New static variables.
578         (debug_profile_bbauxs): Kill.
579         (process_note_predictions): Kill unused variable.
580         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
581         volatile double.
582         (propagate_freq): Use REAL_ARITHMETICS.
583         (estimate_bb_frequencies): Likevise; init new static variables.
584         * Makefile.in (predict.o): Add dependency on real.h
585
586 2002-04-28  David S. Miller  <davem@redhat.com>
587
588         PR target/6500
589         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
590         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
591         several {reads,writes} instead.
592         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
593         Define.
594
595 2002-04-27  David S. Miller  <davem@redhat.com>
596
597         PR target/6494
598         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
599         of the stack bias.
600
601         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
602         including signal.h and sys/ucontext.h, not needed.
603
604 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
605
606         * varasm.c (output_constant_def): Correct test for not calling
607         ENCODE_SECTION_INFO for INTEGER_CST.
608
609 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
610
611         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
612         keep most cases as function eval_token.
613         (eval_token): New function.
614         (_cpp_parse_expr): Read token here for improved diagnostics.
615         Don't use op_as_text.  Detect bad ':' here.
616         (reduce): Don't detect bad ':' here.
617         (op_as_text): Remove.
618         * cpphash.h (_cpp_test_assertion): Change prototype.
619         * cpplib.c (_cpp_test_assertion): Change prototype.
620
621 2002-04-28  Richard Henderson  <rth@redhat.com>
622
623         PR c/5154
624         * ggc-common.c (ggc_mark_rtx_children_1): Rename from... 
625         (ggc_mark_rtx_children): New.
626
627 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
628
629         PR target/6496
630         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
631         after call peepholes for UltraSPARC.
632         (call + jump 64-bit peepholes): Remove.
633
634 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
635
636         PR c/6497
637         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
638         result as temporary value.
639
640 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
641
642         PR c++/6396
643         * toplev.c (rest_of_compilation): Only run regrename and copy
644         propagation if optimizing.
645
646 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
647
648         PR optimization/6475
649         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
650         register of REGNO_DECL (i).
651         * Makefile.in (reload1.o): Add $(TREE_H).
652
653 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
654
655         * cppexp.c (lex): Update to use state.skip_eval.
656         (struct op): Remove prio and flags members.
657         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
658         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
659         (LEFT_ASSOC): New macro.
660         (optab): New table of operator priorities and flags.
661         (SHIFT): Update.
662         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
663         malloc-ed parser stack.
664         (reduce): New; reduce the operator stack.
665         (_cpp_expand_op_stack): Expand the operator stack as necessary.
666         * cpphash.h (struct op): Predeclare.
667         (struct cpp_reader): New members op_stack, op_limit.
668         (struct lexer_state): New member skip_eval.
669         (_cpp_parse_expr): Update.
670         (_cpp_expand_op_stack): New.
671         * cpplib.c (do_if): Update.
672         * cppinit.c (cpp_create_reader): Create op stack.
673         (cpp_destroy): And destroy it.
674         * cpplib.h (CPP_LAST_CPP_OP): Correct.
675         (TTYPE_TABLE): Correct.
676
677 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
678
679         PR c/6343
680         * c-decl.c (duplicate_decls): Call merge_weak.
681         * c-pragma.c (apply_pragma_weak): Warn about misuse.
682         * output.h (merge_weak): Prototype merge_weak.
683         * varasm.c (merge_weak): New function.
684         (declare_weak): Make sure we don't give an error on VAR_DECLs.
685         Mark RTL with SYMBOL_REF_WEAK.
686
687 2002-04-27  Kurt Garloff <garloff@suse.de>
688
689         * tree-inline.c (inlinable_function_p): Improve heuristics
690         by using a smoother function to cut down allowable inlinable size.
691         * param.def: Add parameters max-inline-insns-single,
692         max-inline-slope, min-inline-insns that determine the exact
693         shape of the above function.
694         * param.h: Likewise.
695
696 2002-04-26  Richard Henderson  <rth@redhat.com>
697
698         * c-parse.in (malloced_yyss, malloced_yyvs): New.
699         (yyoverflow): Re-add.  Set them.
700         (free_parser_stacks): New.
701         * c-common.h: Declare it.
702         * c-lex.c (c_common_parse_file): Call it.
703
704 2002-04-26  Richard Henderson  <rth@redhat.com>
705
706         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
707         for fallthru search.
708
709 2002-04-26  Eric Christopher  <echristo@redhat.com>
710
711         PR optimization/3700
712         * config/mips/mips.c (mips_issue_rate): Define.  New function.
713         (TARGET_SCHED_ISSUE_RATE): Use.
714
715 2002-04-25  David S. Miller  <davem@redhat.com>
716
717         PR target/6422
718         * reorg.c (optimize_skip): Do not allow exception causing
719         instructions to be considered for delay slots.
720         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
721         (relax_delay_slots): Do not try to consider exception causing
722         instructions as redundant.
723
724 2002-04-26  Richard Henderson  <rth@redhat.com>
725
726         PR c/5225
727         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
728
729 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
730
731         PR bootstrap/6445
732         * config/i386/i386.md (untyped_call): Return the value in a float
733         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
734         TARGET_80387.
735
736 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
737
738         * tree.c (tree_int_cst_lt): Compare constants whose types differ
739         in unsigned-ness correctly.
740
741 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
742
743         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
744         portable runtime model.
745
746 2002-04-26  Richard Henderson  <rth@redhat.com>
747
748         * c-parse.in (yyoverflow): Revert.
749
750 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
751             Richard Henderson  <rth@redhat.com>
752
753         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
754         result as temporary value.
755
756 2002-04-26  Richard Henderson  <rth@redhat.com>
757
758         PR c/3581
759         * c-common.c (fix_string_type): Split out of ...
760         (combine_strings): ... here.  Take a varray, not a tree list.
761         (c_expand_builtin_printf): Use fix_string_type.
762         * c-common.h: Update decls.
763         * c-parse.in (string): Remove.  Update all uses to use STRING
764         instead, and not call combine_strings.
765         (yylexstring): New.
766         (_yylex): Use it.
767         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
768         (build_asm_stmt): Likewise.
769         * objc/objc-act.c (my_build_string): Use fix_string_type.
770         (build_objc_string_object): Build varray for combine_strings.
771
772 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
773
774         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
775         x86-64.
776
777 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
778
779         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
780         (HAVE_NO_R_OPERAND): Remove.
781         (HAVE_VALUE): Remove.
782         (op_to_prio): Update.
783         (UNARY): Don't alter flags.
784         (_cpp_parse_expr): want_value used to indicate whether
785         a number or unary operator is expected next.  Distinguish
786         unary and binary +/-.
787         (op_as_text): Update for unary operators.
788
789 2002-04-25  Richard Henderson  <rth@redhat.com>
790
791         PR c/2161
792         * c-parse.in (yyoverflow): New.
793
794 2002-04-25  Richard Henderson  <rth@redhat.com>
795
796         PR c/2098
797         * c-common.c (shorten_compare): Simplfy conditions leading to
798         the generation of a warning.
799
800 2002-04-25  Richard Henderson  <rth@redhat.com>
801
802         PR c/2035
803         * expmed.c (extract_bit_field): Fall through to generic code rather
804         than aborting on subreg special case.
805
806 2002-04-25  David S. Miller  <davem@redhat.com>
807
808         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
809         for DECL being NULL.
810
811 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
812
813         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
814
815 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
816
817         * c-decl.c (grokdeclarator): Remove outdated ??? note
818         on invalid declaration of flexible array members.
819
820 2002-04-25  Richard Henderson  <rth@redhat.com>
821
822         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
823
824 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
825
826         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
827         needed by the compiler, even if they are used as global regs.
828
829 2002-04-25  Matt Hiller  <hiller@redhat.com>
830
831         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
832         functions.
833         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
834         of the corresponding functions.
835         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
836         New prototypes.
837
838 2002-04-25  Matt Hiller  <hiller@redhat.com>
839
840         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
841
842         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
843         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
844         registers, adjust comment accordingly.
845         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
846         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
847         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
848         for coprocessor registers.
849         (ADDITIONAL_REGISTER_NAMES): Include
850         ALL_COP_ADDITIONAL_REGISTER_NAMES.
851
852         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
853         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
854         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
855         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
856         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
857
858         (mips_char_to_class): Adjust comment to include coprocessor
859         constraint letters.
860
861         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
862         New functions.
863         (mips_reg_names, mips_regno_to_class): Include coprocessor
864         information.
865         (mips_sw_reg_names): Ditto, make non-static.
866         (mips_move_1word): Handle moves to and from coprocessor registers.
867         (mips_move_2words): Handle moves to and from coprocessor
868         registers.
869         (mips_class_max_nregs, mips_register_move_cost): Handle
870         coprocessor register classes.
871         (override_options): Initialize mips_char_to_class and
872         mips_hard_regno_mode_ok properly for coprocessor registers.
873
874         * config/mips/mips.md (movdi_internal, movdi_internal2,
875         movsi_internal1, movsi_internal2): Add constraint-sets for
876         coprocessor registers.
877         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
878         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
879         isn't mips.
880         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
881         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
882         isn't mips.
883         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
884         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
885         isn't mips.
886         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
887         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
888         isn't mips.
889
890         * doc/tm.texi: Document feature.
891
892 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
893
894         * integrate.c (function_attribute_inlinable_p): Simplify.
895         Check the table pointer is not NULL.
896
897 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
898
899         * doc/c-tree.texi: Fix typo in introduction.
900
901 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
902
903         * c-common.h (c_common_parse_file): Update.
904         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
905         * c-lex.c (YYDEBUG): Get from c-lex.h.
906         (c_common_parse_file): Update.
907         * c-lex.h (YYDEBUG, yydebug): New.
908         * c-parse.in (YYDEBUG): Get from c-lex.h.
909         (c_set_yydebug): Remove.
910         * c-tree.h (c_set_yydebug): Remove.
911         * langhooks-def.h (lhd_do_nothing_i): New.
912         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
913         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
914         * langhooks.c  (lhd_do_nothing_i): New.
915         (lhd_set_yydebug): Remove.
916         * langhooks.h (struct lang_hooks): Update.
917         * toplev.c (set_yydebug): New.
918         (compile_file): Update call to parse_file hook.
919         (decode_d_option): Update.
920 objc:
921         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
922
923 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
924
925         * loop.c (load_mems): Don't change the interface of called functions.
926
927         * calls.c (expand_call): Take current_function_pretend_args_size
928         into account when setting argblock for sibcalls.
929
930 2002-04-24  Matt Hiller  <hiller@redhat.com>
931
932         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
933         * c-lex.c: Ditto.
934
935         * cpplex.c (skip_line_comment): Process comment one multibyte
936         character at a time rather than one char at a time, if
937         appropriate.
938         (parse_string): Process string one multibyte character at a time
939         rather than one char at a time, if appropriate.
940         * c-lex.c (lex_string): Lex and copy multibyte strings
941         appropriately.
942         * cpplib.h (cppchar_t): Change to unsigned.
943
944 2002-04-24  Richard Henderson  <rth@redhat.com>
945
946         PR c/3467
947         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
948         for c99.
949
950 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
951
952         * sh.c (sh_va_arg): If argument was passed by reference,
953         dereference the pointer.
954
955         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
956
957         * sh.md (divsi3_i4_media): Use match_operand for input values
958         rather than hard registers.
959         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
960         unnecessarily through hard registers.  Keep copies of pseudo
961         registers outside of the libcall sequence.
962
963         * sh.md (casesi_shift_media): Add modes.
964
965         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
966         values in memory.
967
968 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
969
970         * attribs.c (c_common_attribute_table): Move table and handlers
971         to c-common.c.
972         (format_attribute_table, lang_attribute_table,
973         lang_attribute_common): Remove.
974         (init_attributes): Replace NULL pointers with pointers to the
975         empty table.
976         (handle_packed_attribute, handle_nocommon_attribute,
977         handle_common_attribute, handle_noreturn_attribute,
978         handle_noinline_attribute, handle_always_inline_attribute,
979         handle_used_attribute, handle_unused_attribute,
980         handle_const_attribute, handle_transparent_union_attribute,
981         handle_constructor_attribute, handle_destructor_attribute,
982         handle_mode_attribute, handle_section_attribute,
983         handle_aligned_attribute, handle_weak_attribute,
984         handle_alias_attribute, handle_visibility_attribute,
985         handle_no_instrument_function_attribute, handle_malloc_attribute,
986         handle_no_limit_stack_attribute, handle_pure_attribute,
987         handle_deprecated_attribute, handle_vector_size_attribute,
988         vector_size_helper): Move to c-common.c.
989         * c-common.c (c_common_attribute_table,
990         handle_packed_attribute, handle_nocommon_attribute,
991         handle_common_attribute, handle_noreturn_attribute,
992         handle_noinline_attribute, handle_always_inline_attribute,
993         handle_used_attribute, handle_unused_attribute,
994         handle_const_attribute, handle_transparent_union_attribute,
995         handle_constructor_attribute, handle_destructor_attribute,
996         handle_mode_attribute, handle_section_attribute,
997         handle_aligned_attribute, handle_weak_attribute,
998         handle_alias_attribute, handle_visibility_attribute,
999         handle_no_instrument_function_attribute, handle_malloc_attribute,
1000         handle_no_limit_stack_attribute, handle_pure_attribute,
1001         handle_deprecated_attribute, handle_vector_size_attribute,
1002         vector_size_helper): Move from attribs.c.
1003         * c-common.h (c_common_attribute_table,
1004         c_common_format_attribute_table): New.
1005         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
1006         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
1007         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
1008         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
1009         (LANG_HOOKS_INITIALIZER): Update.
1010         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
1011         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
1012         * target.h: Update comment.
1013         * tree.c (default_target_attribute_table): Remove.
1014         * tree.h (default_target_attribute_table, format_attribute_table,
1015         lang_attribute_table, lang_attribute_common): Remove.
1016 objc:
1017         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
1018         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
1019
1020 2002-04-24  Jason Merrill  <jason@redhat.com>
1021
1022         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
1023         * dwarf2out.c (dwarf_attr_name): Support it.
1024         (gen_array_type_die): Emit it.
1025         (lookup_type_die): No special handling for VECTOR_TYPE.
1026         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
1027
1028 2002-04-24  Richard Henderson  <rth@redhat.com>
1029
1030         * config/mips/mips.md (movdi_usd): Renumber.
1031
1032 2002-04-24  David S. Miller  <davem@redhat.com>
1033
1034         PR target/6420
1035         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
1036         32-bit Sparc and current_function_returns_struct is true.
1037
1038 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
1039
1040         * loop.c (canonicalize_condition): Use gen_int_mode.
1041
1042 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
1043
1044         * config/rs6000/altivec.h: Cleanup file.  Add non individual
1045         variants.
1046         (vec_vaddubm): New.
1047         (vec_vadduhm): New.
1048         (vec_vadduwm): New.
1049         (vec_vaddfp): New.
1050         (vec_vaddcuw): New.
1051         (vec_vaddubs): New.
1052         (vec_vaddsbs): New.
1053         (vec_vadduhs): New.
1054         (vec_vadduws): New.
1055         (vec_vaddsws): New.
1056         (vec_vand): New.
1057         (vec_vandc): New.
1058         (vec_vavgub): New.
1059         (vec_vavgsb): New.
1060         (vec_vavguh): New.
1061         (vec_vavgsh): New.
1062         (vec_vavguw): New.
1063         (vec_vavgsw): New.
1064         (vec_vrfip): New.
1065         (vec_vcmpbfp): New.
1066         (vec_vcmpequb): New.
1067         (vec_vcmpequh): New.
1068         (vec_vcmpequw): New.
1069         (vec_vcmpeqfp): New.
1070         (vec_vcmpgefp): New.
1071         (vec_vcmpgtub): New.
1072         (vec_vcmpgtsb): New.
1073         (vec_vcmpgtuh): New.
1074         (vec_vcmpgtsh): New.
1075         (vec_vcmpgtuw): New.
1076         (vec_vcmpgtsw): New.
1077         (vec_vcmpgtfp): New.
1078         (vec_vcmpgefp): New.
1079         (vec_vcfux): New.
1080         (vec_vcfsx): New.
1081         (vec_vctsxs): New.
1082         (vec_vctuxs): New.
1083         (vec_vexptefp): New.
1084         (vec_vrfim): New.
1085         (vec_lvx): New.
1086         (vec_lvebx): New.
1087         (vec_lvehx): New.
1088         (vec_lde): Add vector float variant.
1089         (vec_lvewx): New.
1090         (vec_lvxl): New.
1091         (vec_vlogefp): New.
1092         (vec_vmaddfp): New.
1093         (vec_vmhaddshs): New.
1094         (vec_vmaxub): New.
1095         (vec_vmaxsb): New.
1096         (vec_vmaxuh): New.
1097         (vec_vmaxsh): New.
1098         (vec_vmaxuw): New.
1099         (vec_vmaxsw): New.
1100         (vec_vmaxsw): New.
1101         (vec_vmaxfp): New.
1102         (vec_vmrghb): New.
1103         (vec_vmrghh): New.
1104         (vec_vmrghw): New.
1105         (vec_vmrglb): New.
1106         (vec_vmrglh): New.
1107         (vec_vmrglw): New.
1108         (vec_vminub): New.
1109         (vec_vminsb): New.
1110         (vec_vminuh): New.
1111         (vec_vminsh): New.
1112         (vec_vminuw): New.
1113         (vec_vminsw): New.
1114         (vec_vminfp): New.
1115         (vec_vmladduhm): New.
1116         (vec_vmhraddshs): New.
1117         (vec_msumubm): New.
1118         (vec_vmsummbm): New.
1119         (vec_vmsumuhm): New.
1120         (vec_vmsumshm): New.
1121         (vec_vmsumuhs): New.
1122         (vec_vmsumshs): New.
1123         (vec_vmuleub): New.
1124         (vec_vmulesb): New.
1125         (vec_vmuleuh): New.
1126         (vec_vmulesh): New.
1127         (vec_vmuloub): New.
1128         (vec_mulosb): New.
1129         (vec_vmulouh): New.
1130         (vec_vmulosh): New.
1131         (vec_vnmsubfp): New.
1132         (vec_vnor): New.
1133         (vec_vor): New.
1134         (vec_vpkuhum): New.
1135         (vec_vpkuwum): New.
1136         (vec_vpkpx): New.
1137         (vec_vpkuhus): New.
1138         (vec_vpkshss): New.
1139         (vec_vpkuwus): New.
1140         (vec_vpkswss): New.
1141         (vec_vpkshus): New.
1142         (vec_vpkswus): New.
1143         (vec_vperm): New.
1144         (vec_vrefp): New.
1145         (vec_vrlb): New.
1146         (vec_vrlh): New.
1147         (vec_vrlw): New.
1148         (vec_vrfin): New.
1149         (vec_vrsqrtefp): New.
1150         (vec_vsel): New.
1151         (vec_vslb): New.
1152         (vec_vslh): New.
1153         (vec_vslw): New.
1154         (vec_vsldoi): New.
1155         (vec_vsl): New.
1156         (vec_vslo): New.
1157         (vec_vspltb): New.
1158         (vec_vsplth): New.
1159         (vec_vspltw): New.
1160         (vec_vspltisb): New.
1161         (vec_vspltish): New.
1162         (vec_vspltisw): New.
1163         (vec_vsrb): New.
1164         (vec_vsrh): New.
1165         (vec_vsrw): New.
1166         (vec_vsrab): New.
1167         (vec_vsrah): New.
1168         (vec_vsraw): New.
1169         (vec_vsr): New.
1170         (vec_vsro): New.
1171         (vec_stvx): New.
1172         (vec_stvebx): New.
1173         (vec_stvehx): New.
1174         (vec_stvewx): New.
1175         (vec_stvxl): New.
1176         (vec_vsububm): New.
1177         (vec_vsubuhm): New.
1178         (vec_vsubuwm): New.
1179         (vec_vsubfp): New.
1180         (vec_vsubcuw): New.
1181         (vec_vsububs): New.
1182         (vec_vsubsbs): New.
1183         (vec_vsubuhs): New.
1184         (vec_vsubshs): New.
1185         (vec_vsubuws): New.
1186         (vec_vsubsws): New.
1187         (vec_vsum4ubs): New.
1188         (vec_vsum4sbs): New.
1189         (vec_vsum4shs): New.
1190         (vec_vsum2sws): New.
1191         (vec_vsumsws): New.
1192         (vec_vrfiz): New.
1193         (vec_vupkhsb): New.
1194         (vec_vupkhpx): New.
1195         (vec_vupkhsh): New.
1196         (vec_vupklsb): New.
1197         (vec_vupklpx): New.
1198         (vec_vupklsh): New.
1199         (vec_vxor): New.
1200
1201 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
1202
1203         PR c/5430
1204         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
1205         added literals from substracted literals.
1206         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
1207         (fold) [associate]: Preserve MINUS_EXPR if needed.
1208
1209 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
1210
1211         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
1212         are obsoleted.
1213
1214 2002-04-23  Tom Tromey  <tromey@redhat.com>
1215
1216         * gcc.c: Added --resource.  For PR java/6314.
1217
1218 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
1219
1220         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
1221         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
1222         these libraries.
1223
1224 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
1225
1226         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
1227
1228 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
1229
1230         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
1231         workaround.
1232         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
1233         (ix86_expand_clrstr): Fix typo.
1234         * loop.c (gen_load_of_final_value): New.
1235         (loop_givs_rescan, strength_reduce, check_dbra_loop):
1236         Use it.
1237
1238 2002-04-23  Roger Sayle  <roger@eyesopen.com>
1239
1240         * builtins.c (builtin_memset_gen_str): New function.
1241         (expand_builtin_memset): Optimize the case of constant length, but
1242         unknown value.
1243
1244 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
1245
1246         * config/rs6000/altivec.h (vec_step): Remove extraneous
1247         parentheses.
1248         (vec_ctu): Cast return.
1249
1250 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
1251
1252         PR target/6413
1253         * function.h: (struct function): Add profile_label_no field.
1254         (current_function_profile_label_no): Define.
1255         * function.c: (profile_label_no): New static var.
1256         (expand_function_start): Increment it, and copy to
1257         current_function_profile_label_no.
1258         * output.h (profile_label_no): Delete.
1259         * final.c (profile_label_no): Delete.
1260         (profile_function): Use current_function_profile_label_no.
1261         (final_end_function): Don't increment profile_label_no here.
1262         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
1263         profile_label_no with current_function_profile_label_no.
1264         * config/pa/pa.c (current_function_number): Delete.
1265         (pa_output_function_prologue): Don't output profile label here.
1266         (hppa_profile_hook): Use label_no param rather than
1267         current_function_number.
1268         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
1269         * config/pa/pa.h: .. here.
1270         (FUNCTION_PROFILER): Output profile label here.
1271
1272 2002-04-22  Eric Christopher  <echristo@redhat.com>
1273
1274         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
1275         patch of 2002-04-09 due to binutils issues.
1276         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
1277
1278 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
1279
1280         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
1281         constraint to 'o' for m=r and r=m alternatives.
1282         ("*movv8hi_internal1"): Same.
1283         ("*movv16qi_internal1"): Same.
1284         ("*movv4sf_internal1"): Same.
1285
1286 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
1287
1288         * rtl.h (RTX_FLAG): New macro.
1289         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
1290         * final.c (alter_subreg): Use macro to access rtx flag.
1291         * integrate.c (copy_rtx_and_substitute): Use new access macro.
1292         * print-rtl.c (print_rtx): Use new access macro.
1293
1294         * cse.c (insert): Check rtx code before accessing flag.
1295
1296         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
1297         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
1298         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
1299         convert_const_symbol_ref, make_canonical, make_alternative_compare,
1300         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
1301         simplify_test_exp, optimize_attrs, simplify_by_exploding,
1302         find_and_mark_used_attributes, unmark_used_attributes,
1303         add_values_to_cover, simplify_with_current_value,
1304         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
1305         copy_rtx_unchanging, main): Use new access macros.
1306
1307 2002-04-22  Tom Rix  <trix@redhat.com>
1308
1309         * expmed.c (init_expmed): Generate shifted constant once.
1310
1311 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
1312
1313         * c-lex.c (lex_charconst): Call convert to get constant in
1314         proper type; don't just smash the type field.
1315         Fixes PR c/6300.
1316
1317         * config.gcc: Add list of obsolete configurations.  Disallow
1318         building these without --enable-obsolete.
1319         * doc/install.texi: Document --enable-obsolete and obsoletion
1320         policy.  Mention obsoletion of individual targets in
1321         appropriate places.
1322
1323 2002-04-22  Richard Henderson  <rth@redhat.com>
1324
1325         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
1326
1327 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
1328
1329         PR f/6138.
1330         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
1331         (walk_fixup_memory_subreg): Likewise.
1332         (fixup_var_refs_insn): Adjust accordingly.
1333         (fixup_var_refs_1): Likewise.
1334
1335 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
1336
1337         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
1338         LIBPATH_ARCH64_SPEC): Define.
1339         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
1340         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
1341         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
1342         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
1343
1344 2002-04-22      Joel Sherrill <joel@OARcorp.com>
1345
1346         * gthr-rtems.h: Correct prototypes to remove warnings.
1347
1348 2002-04-22  Richard Henderson  <rth@redhat.com>
1349
1350         PR c/6344
1351         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
1352
1353         * gcse.c (free_insn_expr_list_list): New.
1354         (clear_modify_mem_tables): Use it.  Fix bit set usage.
1355         (canon_list_insert): Use EXPR_LISTs for expressions.
1356         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
1357
1358 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
1359
1360         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
1361         file change and include code to _cpp_pop_buffer.
1362         * cpphash.h (struct pending_option): Predeclare.
1363         (struct cpp_reader): New member next_include_file.
1364         (_cpp_pop_file_buffer): Update.
1365         (_cpp_push_next_buffer): Update, rename.
1366         * cppinit.c (cpp_destroy): Free include chain and pending here.
1367         (cpp_finish_options): Simplify.
1368         (_cpp_push_next_buffer): Rename and clean up.
1369         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
1370         Clarify.
1371         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
1372
1373 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
1374
1375         * config/rs6000/altivec.h (vec_xor): Add variant for both args
1376         being vector signed int.
1377         (vec_andc): Same.
1378         (vec_xor): Add variant for both args being vector signed char.
1379         Remove redundant variant.
1380         (vec_andc): Same.
1381
1382 2002-04-21  David S. Miller  <davem@redhat.com>
1383
1384         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
1385         compare mode in output RTL.
1386
1387 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
1388
1389         * config/rs6000/rs6000.c (rs6000_override_options): Correct
1390         style and formatting of previous patch.
1391
1392 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
1393
1394         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
1395         flag_pic for ABI_AIX.
1396
1397 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
1398
1399         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
1400         * cppfiles.c (read_include_file): Similarly.
1401         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
1402         uxstrdup ustrchr, ufputs): Similarly.
1403         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
1404         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
1405         cpp_ideq, parse_identifier, parse_number): Similarly.
1406         * cpplib.c (struct directive, dequote_string, D, run_directive,
1407         cpp_push_buffer): Similarly.
1408         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
1409         _cpp_create_definition, check_trad_stringification,
1410         cpp_macro_definition): Similarly.
1411
1412 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
1413
1414         * cppmacro.c (funlike_invocation_p): Don't step back
1415         over CPP_EOF.
1416
1417 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
1418
1419         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
1420         labelno.
1421
1422 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
1423
1424         * doc/invoke.texi: Remove Chill references.
1425         * doc/gcc.texi: Update last modified date.
1426
1427 2002-04-20  Kazu Hirata  <kazu@hxi.com>
1428
1429         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
1430         push and pop.  Replace add.l with add.w.
1431
1432 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1433
1434         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
1435         multiply instructions for H8/300H case.
1436
1437 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1438
1439         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
1440         Bum three instructions from each routine.
1441
1442 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
1443
1444         * Makefile.in: Update.
1445         * decl.c (push_c_function_context, pop_c_function_context,
1446         mark_c_function_context): Rename for consistency.
1447         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
1448         * c-tree.h (push_c_function_context, pop_c_function_context,
1449         mark_c_function_context): Rename for consistency.
1450         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1451         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
1452         * function.c (init_lang_status, save_lang_status,
1453         restore_lang_status, mark_lang_status, free_lang_status):
1454         Move to langhooks.h.
1455         (push_function_context_to, pop_function_context_from,
1456         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
1457         Update.
1458         * function.h (init_lang_status, save_lang_status,
1459         restore_lang_status, mark_lang_status, free_lang_status):
1460         Move to langhooks.h.
1461         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
1462         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
1463         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
1464         LANG_HOOKS_FUNCTION_INITIALIZER): New.
1465         (LANG_HOOKS_INITIALIZER): Update.
1466         (lhd_do_nothing_f): New.
1467         * langhooks.h (struct lang_hooks_for_functions): New.
1468         (struct lang_hooks): New hooks.
1469         * langhooks.c (lhd_do_nothing_f): New.
1470 objc:
1471         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1472         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
1473
1474 2002-04-19  David S. Miller  <davem@redhat.com>
1475
1476         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
1477         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
1478
1479 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
1480
1481         PR optimization/3756
1482         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
1483         x = ((int) y < 0) ? cst1 : cst2.
1484
1485 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
1486
1487         PR c/6358
1488         * function.c: Reapply patch for c/6358.
1489         (expand_function_end): Copy decl_rtl's mode, not
1490         current_function_return_rtx mode.
1491
1492 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
1493
1494         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
1495         targets.
1496
1497 2002-04-19  Tom Tromey  <tromey@redhat.com>
1498
1499         * doc/install.texi (Specific): Update status of Solaris 2.8.
1500         For PR libgcj/6158.
1501
1502 2002-04-19  Andreas Schwab  <schwab@suse.de>
1503
1504         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
1505         (PUT_REAL): Restore old definition.
1506
1507 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
1508             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1509
1510         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
1511         binutils 2.11.2 and higher generate smaller binaries than Sun's
1512         native tools.
1513
1514 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
1515
1516         PR c++/6352
1517         * toplev.c (rest_of_compilation): Do not defer functions for which
1518         TREE_SYMBOL_REFERENCED has already been set.
1519
1520 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
1521
1522         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
1523         alternative.
1524
1525 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
1526
1527         * builtins.c: Include langhooks.h.
1528         (lang_type_promotes_to): Remove.
1529         (expand_builtin_va_arg): Use new hook.
1530         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
1531         (simple_type_promotes_to): Move to c-typeck.c.
1532         * c-common.h (simple_type_promotes_to): Remove.
1533         * c-decl.c (duplicate_decls, grokdeclarator): Update.
1534         * c-format.c: Include langhooks.h.
1535         (check_format_types): Update.
1536         * c-tree.h (c_type_promotes_to): New.
1537         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
1538         (type_lists_compatible_p): Update.
1539         * langhooks-def.h (lhd_type_promotes_to): New.
1540         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
1541         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
1542         * langhooks.c (lhd_type_promotes_to): New.
1543         * langhooks.h (struct lang_hooks_for_types): New hook.
1544         * tree.h (lang_type_promotes_to): Remove.
1545 objc:
1546         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
1547
1548 2002-04-18  Richard Henderson  <rth@redhat.com>
1549
1550         * function.c: Revert patch for c/6358.
1551
1552 2002-04-18  Richard Henderson  <rth@redhat.com>
1553
1554         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
1555         blocks.  Handle multiple references to the TRAP block.  Handle
1556         non-adjacent THEN and OTHER blocks.
1557
1558 2002-04-18  Richard Henderson  <rth@redhat.com>
1559
1560         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
1561         crash with no type for by-mode libcalls.
1562
1563         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
1564
1565 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
1566
1567         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
1568         __xtensa_nonlocal_goto): Use a syscall instructions to flush
1569         the register windows.
1570
1571 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
1572
1573         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
1574         appropriate.  Document need for extended precision even when
1575         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
1576         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
1577         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
1578         instead of relying on later syntax error when REAL_WIDTH > 5.
1579         * real.c: Define NE based only on whether or not we have a
1580         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
1581         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
1582         define GET_REAL and PUT_REAL as simple memcpy operations; no
1583         need to byteswap or round.
1584         Use #error instead of #ifdef-ing out the entire file, for
1585         prompt error detection.
1586
1587         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
1588
1589 2002-04-18  David S. Miller  <davem@redhat.com>
1590
1591         * config/sparc/sparc.h (BRANCH_COST): Define.
1592
1593         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
1594         does it.
1595
1596 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
1597
1598         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
1599         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
1600         propagate_block calls after relaxation loop using new variable
1601         stabilized_prop_flags.
1602
1603 2002-04-18  Richard Henderson  <rth@redhat.com>
1604
1605         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
1606         (ia64_va_arg): Expect variable sized types by reference.
1607         * config/ia64/ia64-protos.h: Update.
1608         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
1609         ia64_function_arg_pass_by_reference.
1610
1611 2002-04-18  Richard Henderson  <rth@redhat.com>
1612
1613         * ifcvt.c: Include except.h.
1614         (block_has_only_trap): Break out from find_cond_trap.
1615         (find_cond_trap): Use it.  Always delete the trap block.
1616         (merge_if_block): Allow then block null.  Be less simplistic about
1617         what insns can end a block.
1618         * Makefile.in (ifcvt.o): Depend on except.h.
1619
1620         * config/ia64/ia64.md (trap, conditional_trap): New.
1621
1622 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
1623
1624         PR c/6358
1625         * function.c (assign_parms): Assign hard current_function_return_rtx
1626         register here...
1627         (expand_function_end): ...not here.
1628
1629 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
1630
1631         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
1632         * c-tree.h (c_incomplete_type_error): New.
1633         * c-typeck.c (require_complete_type, build_component_ref): Update.
1634         (incomplete_type_error): Rename.
1635         * langhooks-def.h (lhd_incomplete_type_error): New.
1636         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
1637         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
1638         * langhooks.c (lhd_incomplete_type_error): New.
1639         * langhooks.h (struct lang_hooks_for_types): New hook.
1640         * tree.c (size_in_bytes): Use new hook.
1641         * tree.h (incomplete_type_error): Remove.
1642 objc:
1643         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
1644
1645 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
1646
1647         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
1648         TARGET_FLOAT_FORMAT blocks.
1649
1650 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1651
1652         * doc/install.texi (Downloading the source): Do not mention Chill
1653         any longer, but mention Ada.
1654         (Configuration): Do not mention Chill any longer.
1655
1656 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
1657
1658         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
1659
1660 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
1661
1662         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
1663         in last patch.
1664
1665 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
1666
1667         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
1668         instead of unsigned_type.
1669
1670 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
1671
1672         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
1673         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
1674         later.
1675
1676 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
1677
1678         * attribs.c (vector_type_node_list): New static variable.
1679         (handle_vector_size_attribute): Use it to avoid generating a
1680         new type node each time we are called.
1681
1682         * combine.c (subst): Avoid trying to make a vector mode subreg of
1683         an integer constant.
1684         (gen_lowpart_for_combine): Likewise.
1685
1686 2002-04-18  Roger Sayle  <roger@eyesopen.com>
1687             Jakub Jelinek  <jakub@redhat.com>
1688
1689         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
1690         for integer constant c (if x has unsigned type or sign bit is not
1691         set in c).  This folds the zero/sign extension into the bit-wise and
1692         operation.
1693
1694 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
1695
1696         PR middle-end/6205
1697         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
1698         otherwise xorps.
1699
1700 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
1701
1702         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
1703
1704 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
1705
1706         * gcc.c (read_specs): Detect and fail if an attempt is made to
1707         rename a spec string to an already existing string.
1708
1709 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
1710
1711         * config/s390/s390.c (legitimize_pic_address): Do not generate
1712         illegal address constant without CONST.
1713
1714 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1715
1716         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
1717         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1718
1719 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
1720
1721         PR optimization/6305
1722         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
1723         to make sure previous reloads are taken into account.  Generate
1724         better code if one operand is an in-range immediate constant.
1725
1726 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
1727
1728         * doc/install.texi (Building): libgcj requires GNU make.
1729
1730 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
1731
1732         PR bootstrap/6315
1733         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
1734         even if hard quad and register is not floating.
1735         (movtf reg<-mem split): Disallow splitting if hard quad and
1736         register is floating.
1737         (movtf mem<-reg split): Likewise.
1738         * config/sparc/sparc.c (fp_register_operand): New predicate.
1739         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
1740
1741 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
1742
1743         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
1744         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
1745         (unprotoize.o): Ditto.  Build from protoize.c.  Define
1746         UNPROTOIZE on command line.
1747         * protoize.c: Include cppdefault.h.  Delete include_defaults.
1748         (in_system_include_dir): Use cpp_include_defaults (defined in
1749         cppdefault.o).
1750         * unprotoize.c: Delete file.
1751
1752 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
1753
1754         * config/rs6000/altivec.h (vec_ld): Add array variants.
1755         (vec_lde): Same.
1756         (vec_ldl): Same.
1757
1758 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
1759             Aldy Hernandez <aldyh@redhat.com>
1760
1761         * config/rs6000/altivec.h: Define __ALTIVEC__.
1762         (bool): New.
1763         (__pixel): New.
1764         (pixel): New.
1765         (vec_cfux): New.
1766         (vec_vmaddfp): New.
1767         (vec_vsldoi): New.
1768         Add parentheses to all macro arguments.
1769
1770 2002-04-16  Richard Henderson  <rth@redhat.com>
1771
1772         PR c++/6320
1773         * except.c (remove_eh_handler): Insert inner regions at beginning
1774         of sibling chain.  Refactor expressions.
1775
1776 2002-04-16  Richard Henderson  <rth@redhat.com>
1777
1778         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
1779         * config/sparc/sol2-gas-bi.h: New file.
1780         * config.gcc (sparc*-solaris): Add it as needed.
1781         * configure.in (AS_SPARC64_FLAG): Remove check.
1782         * config.in, configure: Regenerate.
1783
1784         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
1785
1786 2002-04-16  Richard Henderson  <rth@redhat.com>
1787
1788         * config/mips/mips.c (override_options): Don't override N32 for
1789         a 64-bit ISA.
1790
1791         PR 6202
1792         * config/mips/mips.md (can_delay): Split out of existing define_delays.
1793         (HILO_delay): Set can_delay false.
1794
1795 2002-04-16  Dale Johannesen <dalej@apple.com>
1796
1797         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
1798         instruction addresses.
1799         (rs6000_output_function_epilogue): Likewise.
1800
1801 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
1802
1803         * c-parse.in (poplevel, compstmt_start,
1804         compstmt_primary_start): Add ending ';', in accordance
1805         with POSIX.
1806
1807 2002-04-16  Richard Henderson  <rth@redhat.com>
1808
1809         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
1810         Adjust tm_file order to get TARGET_DEFAULT set properly.
1811         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
1812         * doc/install.texi (sparc-solaris): Update.
1813
1814 2002-04-16  Dale Johannesen <dalej@apple.com>
1815
1816         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
1817         comparison operands do not match each other or if modes of
1818         conditions do not match result.
1819
1820 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
1821
1822         PR target/6305
1823         * config/s390/s390.md (mulsidi3): Set both subregs of the
1824         multiword register.
1825
1826 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
1827
1828         * config/rs6000/altivec.h (vec_addc): Type check.
1829
1830 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
1831
1832         PR middle-end/6279
1833         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
1834
1835         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
1836
1837 2002-04-15  Richard Henderson  <rth@redhat.com>
1838
1839         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
1840         call_really_used_regs too.
1841
1842 2002-04-15  Richard Henderson  <rth@redhat.com>
1843
1844         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
1845
1846 2002-04-15  David S. Miller  <davem@redhat.com>
1847
1848         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
1849         as being CLOBBERed.
1850
1851 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
1852
1853         PR c/6290
1854         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
1855         CONST_VECTOR is { 0, ... 0 }.
1856
1857 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
1858
1859         * doc/install.texi (Installing GCC: Configuration): Clarify
1860         the only supported ways to configure gcc.
1861
1862 2002-04-15  Roland McGrath  <roland@frob.com>
1863
1864         * config.gcc (alpha*-*-gnu*): New target configuration.
1865         * config/alpha/gnu.h: New file for it.
1866         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
1867
1868 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
1869
1870         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
1871         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
1872         * tree.h (expand_start_stmt_expr): Update prototype.
1873         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
1874         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
1875         on the STMT_EXPR created for the inline function.
1876
1877 2002-04-15  Richard Henderson  <rth@redhat.com>
1878
1879         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
1880         config/i386/linux-aout.h, config/i386/linux-oldld.h,
1881         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
1882         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
1883         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
1884         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
1885         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
1886         Define __gnu_linux__, not gnu_linux.
1887         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
1888
1889 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
1890
1891         Remove Chill front end.
1892         * gcc.c (default_compilers): Remove Chill entries.
1893         * ch: Remove directory.
1894         * doc/frontends.texi: Remove information about Chill.
1895         * doc/sourcebuild.texi: Likewise.
1896         * doc/standards.texi: Likewise.
1897
1898 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
1899
1900         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
1901         (LONGLONG_STANDALONE): Define.
1902
1903 2002-04-15  David S. Miller  <davem@redhat.com>
1904
1905         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
1906         Call emit_library_call with LCT_NORMAL.
1907         (sparc_initialize_trampoline): Use LCT_foo instead of
1908         magic constant in emit_library_call invocations.
1909         (sparc64_initialize_trampoline): Likewise.
1910         (sparc_profile_hook): Likewise.
1911         * config/sparc/sparc.md: Likewise.
1912
1913         * config/sparc/sparc.c (sparc_extra_constraint_check):
1914         Fix type of argument 'c'.
1915         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
1916         Likewise.
1917
1918 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
1919
1920         * diagnostic.h (output_buffer_state): Redefine.
1921         (output_format_decoder): New macro.
1922         (output_prefixing_rule): Likewise.
1923         (output_line_cutoff): Likewise.
1924         (diagnostic_format_decoder): Adjust.
1925         (diagnostic_prefixing_rule): Likewise.
1926         (diagnostic_line_cutoff): Likewise.
1927         (diagnostic_state): Likewise.
1928         (diagnostic_kind_count): Likewise.
1929         (diagnostic_buffer): Now a macro.
1930
1931         * diagnostic.c (diagnostic_buffer): Remove definition.
1932         (output_is_line_wrapping): Adjust.
1933         (set_real_maximum_length): Likewise.
1934         (output_set_maximum_length): Likewise.
1935         (init_output_buffer): Likewise.
1936         (lhd_print_error_function): Likewise.
1937         (output_do_verbatim): Likewise.
1938
1939 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
1940
1941         * cpperror.c (print_location): Don't print include chain
1942         if line == 0.
1943         (cpp_begin_message): Update to use DL_ macros.
1944         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
1945         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
1946         cpp_notice, cpp_notice_from_errno): Remove.
1947         (cpp_error, cpp_error_with_line): Update to take a diagnostic
1948         level.
1949         (cpp_errno): New.
1950         * cppexp.c (CPP_ICE): Remove.
1951         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
1952         lex, integer_overflow, _cpp_parse_expr): Update.
1953         * cppfiles.c (read_include_file, find_include_file,
1954         handle_missing_header, _cpp_read_file, remap_filename): Update.
1955         * cpphash.h (enum error_type): Remove.
1956         (_cpp_begin_message): Update.
1957         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
1958         cpp_handle_option, cpp_post_options): Update.
1959         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
1960         skip_whitespace, parse_identifier, parse_slow, parse_string,
1961         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
1962         cpp_interpret_charconst): Update.
1963         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
1964         lex_macro_node, do_undef, glue_header_name, parse_include,
1965         do_include_common, read_flag, do_line, do_linemarker, do_ident,
1966         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
1967         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
1968         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
1969         _cpp_pop_buffer, do_diagnostic): Update.
1970         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
1971         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
1972         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
1973         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
1974         cpp_notice, cpp_notice_from_errno): Remove.
1975         (cpp_error, cpp_error_with_line): Update to take a diagnostic
1976         level.
1977         (cpp_errno): New.
1978         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
1979         collect_args, enter_macro_context, save_parameter, parse_params,
1980         _cpp_create_definition, check_trad_stringification,
1981         cpp_macro_definition): Update.
1982         * cppmain.c (cpp_preprocess_file): Update.
1983         * fix-header.c (read_scan_file): Update.
1984
1985 2002-04-14  Andreas Schwab  <schwab@suse.de>
1986
1987         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
1988
1989 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
1990
1991         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
1992
1993 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
1994
1995         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
1996         not gnu_hurd.
1997
1998 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
1999
2000         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
2001
2002 2002-04-13      Joel Sherrill <joel@OARcorp.com>
2003
2004         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
2005         sparc-elf and sparc-rtems targets.
2006
2007 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
2008
2009         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
2010         defined, and __gnu_hurd__ wherever __GNU__ is defined.
2011         * arm/linux-elf.h: Likewise.
2012         * cris/aout.h: Likewise.
2013         * cris/linux.h: Likewise.
2014         * i370/linux.h: Likewise.
2015         * i386/gnu.h: Likewise.
2016         * i386/linux-aout.h: Likewise.
2017         * i386/linux-oldld.h: Likewise.
2018         * i386/linux.h: Likewise.
2019         * i386/linux64.h: Likewise.
2020         * ia64/linux.h: Likewise.
2021         * m68k/linux-aout.h: Likewise.
2022         * m68k/linux.h: Likewise.
2023         * mips/linux.h: Likewise.
2024         * pa/pa-linux.h: Likewise.
2025         * pj/linux.h: Likewise.
2026         * rs6000/sysv4.h: Likewise.
2027         * s390/linux.h: Likewise.
2028         * sh/linux.h: Likewise.
2029         * sparc/linux-aout.h: Likewise.
2030         * sparc/linux.h: Likewise.
2031         * sparc/linux64.h: Likewise.
2032         * xtensa/linux.h: Likewise.
2033
2034 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
2035
2036         * stmt.c (check_unique_operand_names): Expect operand names to
2037         be strings rather than identifiers.  Use simple_cst_equal to
2038         compare them.
2039         (resolve_operand_name_1): Make same identifier to string change here.
2040         * c-parse.in (asm_operand): Convert a named operand into a string.
2041         * cp/parse.y (asm_operand): Likewise.
2042
2043 2002-04-13  Andreas Schwab  <schwab@suse.de>
2044
2045         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
2046
2047 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
2048
2049         Revert these changes:
2050
2051         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
2052
2053         PR c++/5571
2054         * stor-layout.c (layout_decl): Reset the RTL for the decl.
2055
2056 2002-04-12  Richard Henderson  <rth@redhat.com>
2057
2058         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
2059         (sparc*-*-solaris): Clean up header files.
2060         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
2061         and plan on generating 64-bit code.
2062         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
2063         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
2064         * config/sparc/sol2-sld-64.h: Rename ...
2065         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
2066         for AS_SPARC64_FLAG not defined.
2067         * config/sparc/sol2-gld-bi.h: New.
2068         * config/sparc/sol2-sld.h: Remove.
2069         * config/sparc/sol26-sld.h: New.
2070         * config/sparc/sol2.h: Tidy comments.
2071         * doc/install.texi: Document sparc-solaris configury changes.
2072
2073 2002-04-12  Richard Henderson  <rth@redhat.com>
2074
2075         * recog.c (offsettable_address_p): Match the logic in adjust_address.
2076
2077         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
2078         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
2079
2080 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2081
2082         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
2083
2084 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
2085
2086         * pa.c (pa_can_combine_p): Call extract_insn before calling
2087         constrain_operands.
2088
2089 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
2090
2091         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
2092         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
2093         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
2094         (CPP_PREDEFINES): Handle __declspec.
2095         * config/i386/t-interix (USER_H): Remove.
2096
2097 2002-04-12  DJ Delorie  <dj@redhat.com>
2098
2099         * integrate.c (compare_blocks): Make comparisons safe for when
2100         sizeof(int) < sizeof(char *).
2101         (find_block): Likewise.
2102
2103 2002-04-12  Jan Hubicka  <jh@suse.cz>
2104             David Edelsohn  <edelsohn@gnu.org>
2105
2106         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
2107         registers.
2108         (symbol_ref_operand): New.
2109         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
2110         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
2111
2112 2002-04-12  Andreas Schwab  <schwab@suse.de>
2113
2114         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
2115         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
2116         overrides the definition in config/svr4.h.
2117
2118 2002-04-12      Eric Norum <eric.norum@usask.ca>
2119
2120         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
2121         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
2122         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
2123         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
2124         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
2125         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
2126         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
2127         definitions to config/rtems.h and make the targets more similar.
2128
2129 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2130
2131         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
2132         POINTERS_EXTEND_UNSIGNED.
2133         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
2134         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
2135
2136         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
2137         not specified.
2138
2139 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
2140
2141         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
2142         depends on TARGET_SHMEDIA, not TARGET_SH5.
2143
2144 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
2145
2146         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
2147         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
2148
2149 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
2150
2151         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
2152         no r0 clobber.
2153
2154 2002-04-12  Andreas Schwab  <schwab@suse.de>
2155
2156         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
2157
2158 2002-04-12  Richard Henderson  <rth@redhat.com>
2159
2160         PR bootstrap/4191
2161         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
2162
2163         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
2164         modes spanning multiple hard regs.
2165
2166         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
2167
2168 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2169
2170         * pa.c (pa_output_function_prologue): Don't accumulate the total
2171         number of code bytes when using TARGET_64BIT, or gas, SOM and not
2172         the portable runtime.
2173         (output_deferred_plabels): Handle 64bit plabels.
2174         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
2175         generating pic code using the GAS assembler for object formats that
2176         are not SOM (ie., ELF32 and ELF64).
2177         (output_millicode_call): Check attribute type if attribute length is 28.
2178         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
2179         dbr_sequence_length once.
2180         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
2181         dbr_sequence_length once.
2182         * pa.h (TARGET_SOM): Define if not defined.
2183         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
2184         with GAS and not SOM.
2185         (jump, call_internal_reg, call_value_internal_reg): Likewise.
2186         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
2187
2188 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2189
2190         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
2191         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
2192         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
2193         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
2194         elfos.h and dbxelf.h values are fine now.
2195         * config/i386/freebsd.h, config/alpha/freebsd.h
2196         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
2197
2198 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2199
2200         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
2201         or set Acpu or Amachine.  Reformat.
2202         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2203         define.
2204         (LINK_SPEC): Do not need to undef.
2205         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
2206         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
2207         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2208         define.
2209         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
2210         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
2211         (LINK_SPEC): Do not need to undef.
2212         (DONT_USE_BUILTIN_SETJMP): Do not define.
2213         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
2214         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
2215         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
2216         Remove trailing spaces.
2217         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
2218         __ELF__, or set Acpu or Amachine.  Reformat.
2219         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2220         define.
2221
2222 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2223
2224         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
2225         all other *-*-freebsd* targets.
2226
2227 2002-04-11  Richard Henderson  <rth@redhat.com>
2228
2229         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
2230
2231 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2232
2233         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
2234         Include {cpu}/{cpu}.h thru tm_file.
2235         (alpha*-*-linux*ecoff): Remove target.
2236         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
2237         (LINK_SPEC): Remove, is not OS independent.
2238         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
2239         (LINK_SPEC): Do not need to #undef any longer.
2240         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
2241         any longer.
2242         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
2243         __ELF__.
2244         (LINK_SPEC): Moved here from alpha/elf.h.
2245         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
2246         SUB_CPP_PREDEFINES.
2247         * config/alpha/linux-ecoff.h: Remove.
2248         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
2249         (CPP_SPEC): Define _POSIX_SOURCE as needed.
2250         (CPP_SUBTARGET_SPEC): Do not define.
2251         (LINK_SPEC): Do not need to #undef any longer.
2252         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
2253         * config/alpha/vms.h: Likewise.
2254
2255 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
2256
2257         * doc/extend.texi: Remove old claim that typedefs cannot have
2258         an alignment attribute.
2259
2260 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
2261
2262         PR optimization/6177
2263         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
2264         bitpos is 0 and bitsize CONCAT size.
2265
2266 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
2267
2268         PR c/6223
2269         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
2270
2271 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
2272
2273         * config/alpha/freebsd.h: Minor reformatting.
2274         (CPP_SPEC): Define ELF and add cpp_subtarget.
2275         (ASM_SPEC): No longer needed.
2276
2277 2002-04-11  Richard Henderson  <rth@redhat.com>
2278
2279         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
2280         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
2281         (dimode mem/zero splitter): New.
2282
2283 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
2284
2285         * config/cris/cris.c (cris_override_options): Tweak error message
2286         for PIC not implemented.
2287
2288         * config/cris/cris.h: Tweak comments related to parameter-passing.
2289
2290         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
2291
2292 2002-04-10  Richard Henderson  <rth@redhat.com>
2293
2294         * except.c (add_ehl_entry): Allow duplicates after landing pad
2295         creation.
2296
2297 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
2298
2299         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
2300
2301 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
2302
2303         * c-decl.c (c_init_decl_processing): Move generation of
2304         decls for g77_integer_type_node and friends from here ...
2305         * c-common.c (c_common_nodes_and_builtins): ... to here.
2306
2307 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
2308
2309         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
2310         is only used as frame pointer when frame_pointer_needed is true.
2311
2312 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
2313
2314         PR target/817
2315         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
2316         for the fact that the pool entry uses two words.
2317         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
2318         1k bytes.
2319         (movdf_soft_insn): Similarly.
2320         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
2321         for the fact that the pool entry uses three words.
2322
2323 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
2324
2325         * config/mips/mips.c (mips_va_arg): When using the struct version
2326         of the EABI va_list, allow arguments in the register save area to
2327         take up less room than a stack argument.
2328
2329 2002-04-10  Richard Henderson  <rth@redhat.com>
2330
2331         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
2332         if EXPAND_INITIALIZER.
2333
2334 2002-04-09  Richard Henderson  <rth@redhat.com>
2335
2336         * config/alpha/alpha.md (movdi_er_maybe_g): New.
2337         * config/alpha/alpha.c (alpha_expand_mov): Use it.
2338
2339 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
2340
2341         PR optimization/6233
2342         * rtlanal.c (pure_call_p): New function.
2343         * rtl.h (pure_call_p): Declare.
2344         * loop.c (prescan_loop): Use it to set has_nonconst_call.
2345         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
2346
2347 2002-04-09  Eric Christopher  <echristo@redhat.com>
2348
2349         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
2350         information to .comm directive.
2351
2352 2002-04-09  Richard Henderson  <rth@redhat.com>
2353
2354         PR c/5078
2355         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
2356
2357 2002-04-09  Richard Henderson  <rth@redhat.com>
2358
2359         * basic-block.h (flow_delete_block_noexpunge): Declare.
2360         (expunge_block_nocompact): Declare.
2361         * cfg.c (expunge_block_nocompact): Split out from ...
2362         (expunge_block): ... here.
2363         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
2364         (flow_delete_block_noexpunge): Split out from ...
2365         (flow_delete_block): ... here.
2366         * cfgcleanup.c (delete_unreachable_blocks): Compact while
2367         removing dead blocks.
2368         * except.c (exception_handler_labels): Remove.
2369         (exception_handler_label_map): New.
2370         (struct eh_region): Add aka member.
2371         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
2372         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
2373         (for_each_eh_label, for_each_eh_label_1): New.
2374         (init_eh): Register exception_handler_label_map.
2375         (free_eh_status): Use free_region.
2376         (find_exception_handler_labels): Use the map, not the list.
2377         (remove_exception_handler_label): Likewise.
2378         (maybe_remove_eh_handler): Likewise.
2379         (remove_eh_handler): Use the region aka bitmap.
2380         * except.h (exception_handler_labels): Remove.
2381         (for_each_eh_label): Declare.
2382         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
2383         * loop.c (invalidate_loops_containing_label): New.
2384         (find_and_verify_loops): Use it.  Use for_each_eh_label.
2385         * sched-rgn.c (is_cfg_nonregular): Use
2386         current_function_has_exception_handlers.
2387
2388 2002-04-09  Richard Henderson  <rth@redhat.com>
2389
2390         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
2391         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
2392         Do not return changed status.
2393         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
2394         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
2395         New functions that do return changed status.
2396         * sbitmap.h: Update decls.
2397         * gcse.c, lcm.c: Use _cg functions as needed.
2398
2399 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
2400
2401         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
2402         (sh64-*-elf*, sh-*-rtemself*): Likewise.
2403         * config/sh/embed_bb.c: New file.
2404         * config/sh/embed-elf.h: New file.
2405         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
2406         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
2407         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
2408         __PTRDIFF_TYPE__ .
2409         (SUBTARGET_CPP_PTR_SPEC): Don't define.
2410         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
2411         Add subtarget_asm_endian_spec.
2412         (ASM_SPEC): Use subtarget_asm_endian_spec.
2413         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
2414         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
2415         (WCHAR_UNSIGNED): Define.
2416         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
2417         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
2418         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
2419         Fix value.
2420         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
2421         (sh_adjust_cost): Likewise.
2422         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
2423         __PTRDIFF_TYPE__ .
2424         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
2425         (WCHAR_TYPE_SIZE): Likewise.
2426         (ASM_SPEC): Use subtarget_asm_endian_spec.
2427         (SH_ELF_WCHAR_TYPE): #undef/ #define.
2428         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
2429         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
2430         (MAX_WCHAR_TYPE_SIZE): Don't #define .
2431         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
2432         (USER_LABEL_PREFIX): Don't #undef /#define .
2433         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
2434         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
2435         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
2436         (ASM_SPEC): Likewise.
2437         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
2438         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
2439         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
2440         (LIB2FUNCS_EXTRA): Define.
2441         * t-sh64 (LIB2FUNCS_EXTRA): Define.
2442         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
2443         (LIB1ASMFUNCS_CACHE): Define.
2444         (LIB2FUNCS_EXTRA): Redefine empty.
2445
2446 2002-04-08  Richard Henderson  <rth@redhat.com>
2447
2448         * reorg.c (get_branch_condition): Use reversed_comparison_code.
2449
2450 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2451
2452         * config/m68hc11/larith.asm (__map_data_section): Fix condition
2453         and optimize for size.
2454         (__do_global_ctors): Fix pointer comparison.
2455         (__do_global_dtors): Likewise.
2456
2457 2002-04-09  David S. Miller  <davem@redhat.com>
2458
2459         * config/sparc/sparc.c (sparc_extra_constraint_check): New
2460         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
2461         allow reloading pseudos.
2462         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
2463         * config/sparc/sparc-protos.h: Declare it.
2464
2465         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
2466         unsigned comparison warning.
2467         (output_restore_regs): Mark leaf_function as unused.
2468
2469 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2470
2471         * expr.c (is_aligning_offset): New function.
2472         (expand_expr, case COMPONENT_EXPR): Call it.
2473
2474 2002-04-08  David S. Miller  <davem@redhat.com>
2475
2476         PR target/6082
2477         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
2478
2479         Make init_priority work on Sparc when using GNU ld.
2480         * config/sparc/linux.h, config/sparc/linux64.h,
2481         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
2482         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
2483         * config/sparc/sol2-gld.h: New file to do the same.
2484         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
2485         sparc/sol2-gld.h to tm_file.
2486
2487         PR optimization/4328
2488         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
2489         * doc/md.texi: Document it.
2490         * config/sparc/sparc.md (movdi_insn_sp64_novis,
2491         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
2492         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
2493         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
2494         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
2495
2496 2002-04-08  Andreas Jaeger  <aj@suse.de>
2497
2498         * stmt.c (expand_asm_operands): Revert last patch from Richard
2499         Henderson.
2500
2501 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2502
2503         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
2504         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
2505
2506 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2507
2508         * doc/contrib.texi (Contributors): Add David O'Brien.
2509
2510 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
2511
2512         * configure.in (auto-build.h): Use target_alias and build_alias
2513         when running configure.
2514         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
2515         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
2516         * configure: Regenerate.
2517
2518 2002-04-07  David S. Miller  <davem@redhat.com>
2519
2520         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
2521
2522 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2523
2524         PR 5933
2525         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
2526         generating 32-bit pic code.
2527
2528 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
2529
2530         * cppinit.c (cpp_create_reader): Initialize
2531         discard_comments_in_macro_exp.
2532         (COMMAND_LINE_OPTIONS): Add "-CC" option.
2533         (cpp_handle_option): Handle "-CC" option.
2534         * cpplex.c (save_comment): If saving a C++ comment in
2535         a directive, convert it to a C comment.
2536         (_cpp_lex_direct): Pass second comment start character to
2537         save_comment to indicate comment type.
2538         * cpplib.c (_cpp_handle_directive): If processing
2539         a "#define" directive and discard_comments_in_macro_exp
2540         is false,  re-enable saving of comments.
2541         (lex_macro_node): If discard_comments_in_macro_exp is false,
2542         discard any comments before the macro identifier.
2543         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
2544         member.
2545         * cppmacro.c (cpp_get_token): If expanding a macro while
2546         processing a directive, discard any comments we might encounter.
2547         (parse_params): If discard_comments_in_macro_exp is false,
2548         ignore comments in the macro parameter list.
2549         * gcc.c (cpp_unique_options): Add "-CC" option.
2550         (option_map): Map "--comments-in-macros" to "-CC".
2551         * doc/cppopts.texi: Document "-CC" option.
2552         * f/lang-specs.h: Add "-CC" option.
2553         * testsuite/gcc.dg/cpp/maccom1.c: New test.
2554         * testsuite/gcc.dg/cpp/maccom2.c: New test.
2555         * testsuite/gcc.dg/cpp/maccom3.c: New test.
2556         * testsuite/gcc.dg/cpp/maccom4.c: New test.
2557         * testsuite/gcc.dg/cpp/maccom5.c: New test.
2558         * testsuite/gcc.dg/cpp/maccom6.c: New test.
2559
2560 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2561
2562         PR middle-end/6180
2563         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
2564
2565 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
2566
2567         PR c++/5571
2568         * stor-layout.c (layout_decl): Reset the RTL for the decl.
2569
2570         PR opt/5120
2571         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
2572         RTX_UNCHANGING_P for the functions arguments when a tail call
2573         is made.
2574
2575 2002-04-06  Jason Merrill  <jason@redhat.com>
2576
2577         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
2578         (parse_options_and_default_flags): Set them appropriately.
2579         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
2580
2581 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
2582
2583         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
2584         here.
2585
2586         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
2587         semicolon.
2588
2589         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
2590         types come in by-reference.  Fix typo in comment.
2591
2592 2002-04-05  David S. Miller  <davem@redhat.com>
2593
2594         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
2595         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
2596         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
2597         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
2598
2599 2002-04-05  David S. Miller  <davem@redhat.com>
2600
2601         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
2602         are not going to emit return instructions, emit at least a nop
2603         for the sake of sane backtraces.
2604
2605 2002-04-05  Richard Henderson  <rth@redhat.com>
2606
2607         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
2608
2609 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
2610
2611         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
2612
2613 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
2614
2615         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
2616         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
2617         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
2618
2619 2002-04-05  Andreas Schwab  <schwab@suse.de>
2620
2621         * c-convert.c: Include c-common.h.
2622         * Makefile.in (c-convert.o): Updated.
2623
2624 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
2625
2626         * mklibgcc.in: Use separate libgcc.map for each multilib.
2627         * Makefile.in (distclean): Don't remove libgcc.map here.
2628
2629 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
2630
2631         * Makefile.in (s-mlib): Handle --disable-multilib by separate
2632         genmultilib invocation.
2633
2634 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
2635
2636         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
2637         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
2638         to num_gprs for symmetry.
2639         * config/mips/mips.c: Adjust accordingly.
2640
2641 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
2642
2643         * c-common.c (truthvalue_conversion): Rename, update.
2644         * c-common.h (c_common_truthvalue_conversion): New.
2645         * c-convert.c (convert): Update.
2646         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
2647         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
2648         * c-typeck.c (build_binary_op, build_unary_op,
2649         build_conditional_expr): Update.
2650         * fold-const.c (constant_boolean_node, fold): Use langhook.
2651         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
2652         * langhooks.h (struct lang_hooks): New hook.
2653         * stmt.c (expand_decl_cleanup): Use langhook.
2654         * tree.h (truthvalue_conversion): Remove.
2655 objc:
2656         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
2657
2658 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
2659
2660         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
2661         Add rules to make null object file.
2662
2663 2002-04-04  Jim Blandy  <jimb@redhat.com>
2664
2665         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
2666         macro formal parameter names.
2667
2668 2002-04-04  David S. Miller  <davem@redhat.com>
2669
2670         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
2671
2672 2002-04-04  Richard Henderson  <rth@redhat.com>
2673
2674         PR middle-end/5099
2675         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
2676         Support copies into and out of memory.  Don't accept allows_reg
2677         and allows_mem as gospel.
2678
2679 2002-04-04  Richard Henderson  <rth@redhat.com>
2680
2681         PR opt/6165
2682         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
2683         (write_dependence_p): Likewise.
2684
2685 2002-04-04  Richard Henderson  <rth@redhat.com>
2686
2687         * predict.c (estimate_bb_frequencies): Do frequency calculation
2688         with a volatile temporary.
2689
2690 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
2691
2692         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
2693
2694 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
2695
2696         PR c++/6119
2697         * final.c (final_start_function): Don't bump profile_label_no here...
2698         (final_end_function): ...but here.
2699
2700 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
2701
2702         * config/sparc/sparc.md (pic): New attribute.
2703         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
2704         into stack slots.
2705         (split after do_builtin_setjmp_setup): New.
2706
2707 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
2708
2709         PR fortran/6106
2710         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
2711         change.
2712
2713 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
2714
2715         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
2716         UNITS_PER_WORD for zero sized aggregates.
2717
2718 2002-04-03  David S. Miller  <davem@redhat.com>
2719
2720         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
2721         one-character spec for this, just use %(link_gcc_c_sequence).
2722
2723 2002-04-03  David S. Miller  <davem@redhat.com>
2724
2725         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
2726         handling.
2727
2728 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2729
2730         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
2731         (DWARF_FRAME_RETURN_COLUMN): Move.
2732         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2733         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
2734         * pa.c (except.h, predict.h): Include.
2735         (FRP): Delete.
2736         (store_reg_modify, set_reg_plus_d): Revise prototypes.
2737         (output_ascii): Add cast.
2738         (store_reg_modify): Revise to add frame notes.
2739         (set_reg_plus_d): Likewise.
2740         (compute_frame_size): Include space for eh data registers in frame if
2741         the current function calls eh_return.
2742         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
2743         function calls eh_return.  Save eh data registers if the current
2744         function calls eh_return.  Fix code to add frame notes.  Emit
2745         blockage to prevent insns with frame notes being scheduled in the
2746         delay slot of calls.
2747         (hppa_expand_epilogue): Restore eh data registers and do final stack
2748         adjustment if the current function calls eh_return.  Don't add frame
2749         notes.
2750         (output_call): Revise for change in length of call insn.  Don't do
2751         return pointer adjustment for an unconditional jump in the delay slot
2752         of a call when using frame notes.
2753         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
2754         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
2755         (ARG_POINTER_CFA_OFFSET): Define.
2756         * pa.md (return_external_pic): New pattern.
2757         (prologue): Correct formatting.  Use return_external_pic if current
2758         function calls eh_return.
2759         (call_internal_symref, call_value_internal_symref,
2760         sibcall_internal_symref, sibcall_value_internal_symref): Change default
2761         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
2762         respectively.
2763         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
2764
2765         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
2766         list of targets to check using "nop" insn.
2767         * configure: Rebuilt.
2768
2769 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
2770
2771         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
2772
2773 2002-04-03  David S. Miller  <davem@redhat.com>
2774
2775         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
2776         library sequence passed to the linker.
2777         (LINK_COMMAND_SPEC): Use it.
2778         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
2779         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
2780         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2781
2782 2002-04-03  Jason Merrill  <jason@redhat.com>
2783
2784         * except.c (struct eh_status): Remove protect_list.
2785         (begin_protect_partials, end_protect_partials): Remove.
2786         (add_partial_entry): Remove.
2787         * except.h: Remove prototypes.
2788
2789         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
2790         expand_decl_cleanup_eh.
2791
2792         PR c++/5636
2793         * tree.h (CLEANUP_EH_ONLY): New macro.
2794         * stmt.c (expand_decl_cleanup_eh): New fn.
2795         (expand_cleanups): Check CLEANUP_EH_ONLY.
2796         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
2797         Use expand_decl_cleanup_eh.
2798         (expand_stmt): Adjust.
2799         * c-common.h: Adjust prototype.
2800
2801 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
2802
2803         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
2804         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
2805         (cris_target_asm_function_epilogue): Ditto.
2806         (cris_initial_frame_pointer_offset): Ditto.
2807         (cris_simple_epilogue): Ditto.
2808         (cris_expand_builtin_va_arg): Variable-size types come in
2809         by-reference.
2810
2811 2002-04-03  David S. Miller  <davem@redhat.com>
2812
2813         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
2814         little-endian.
2815         (set_fast_math): Correct 'fsr' type.
2816
2817 2002-04-03  Richard Henderson  <rth@redhat.com>
2818
2819         PR opt/3569
2820         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
2821         * toplev.c (check_global_declarations): Use it.
2822         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
2823         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2824         (LANG_HOOKS_DECLS): Add it.
2825         * langhooks.c (lhd_warn_unused_global_decl): New.
2826         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2827         * c-objc-common.c (c_warn_unused_global_decl): New.
2828         * c-tree.h (c_warn_unused_global_decl): Declare.
2829         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2830
2831 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
2832
2833         * langhooks-def.h (lhd_set_decl_assembler_name,
2834         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
2835         (LANG_HOOKS_INITIALIZER): Update.
2836         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
2837         * langhooks.h (struct lang_hooks): New hook.
2838         * tree.c (set_decl_assembler_name): Move to langhooks.c.
2839         (lang_set_decl_assembler_name): Remove.
2840         (init_obstacks): Don't set hook.
2841         (decl_assembler_name): New function.
2842         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
2843         (decl_assembler_name): New.
2844         (lang_set_decl_assembler_name): Remove.
2845
2846 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
2847
2848         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
2849         works properly with .hidden symbols.
2850         * configure: Rebuilt.
2851         * config.in: Rebuilt.
2852         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
2853         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
2854         properly with .hidden symbols.
2855
2856 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
2857
2858         PR middle-end/6102
2859         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
2860         USE argument.
2861
2862 2002-04-03  Richard Henderson  <rth@redhat.com>
2863
2864         PR opt/4120
2865         * sched-rgn.c (sets_likely_spilled): New.
2866         (sets_likely_spilled_1): New.
2867         (add_branch_dependences): Use it.
2868
2869 2002-04-02  Richard Henderson  <rth@redhat.com>
2870
2871         PR opt/4311
2872         * loop.h (LOOP_FIRST_PASS): New.
2873         * loop.c (strength_reduce): Mind it when deciding to unroll.
2874         * toplev.c (rest_of_compilation): Set it.
2875
2876 2002-04-02  David S. Miller  <davem@redhat.com>
2877
2878         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
2879         mems_ok_for_ldd_peep when the order of the loads being examined
2880         is reversed.
2881         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
2882         existing comment to increase comprehension of this situation.
2883
2884 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
2885
2886         * config/sh/sh.md: Don't use union real_extract.
2887
2888 2002-04-02  Richard Henderson  <rth@redhat.com>
2889
2890         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
2891
2892 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
2893
2894         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
2895         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
2896         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
2897         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
2898         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
2899         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
2900         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
2901         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
2902         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
2903         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
2904         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
2905         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
2906         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
2907         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
2908         Include as many configury headers via tm_file as possible.  This
2909         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
2910         * config/openbsd-oldgas.h: New file.
2911         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
2912         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
2913         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
2914         config/i386/i386-coff.h, config/i386/i386-interix.h,
2915         config/i386/iscdbx.h, config/i386/linux-aout.h,
2916         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
2917         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
2918         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
2919         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
2920         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
2921         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
2922         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
2923         config/i386/vxi386.h: Do not directly include configury headers.
2924         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
2925         Directly include configury headers that are no longer automatically
2926         included by the above headers.
2927         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
2928         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
2929         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
2930         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
2931         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
2932         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
2933         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
2934         (TARGET_VERSION): Define.
2935         * config/i386/beos-elf.h, config/i386/freebsd.h,
2936         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
2937         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
2938         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
2939         config/i386/sco5.h, config/i386/sysv4.h
2940         (TARGET_VERSION): Do not need to protect.
2941         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
2942         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
2943         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
2944         config/i386/i386-interix.h, config/i386/linux-aout.h,
2945         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
2946         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
2947         (YES_UNDERSCORES): Do not define - not needed.
2948         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
2949         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
2950         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
2951         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
2952         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
2953         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
2954         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
2955         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
2956
2957 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
2958             Richard Henderson  <rth@redhat.com>
2959
2960         PR c/5484
2961         * function.c (assign_temp): Accept either type or decl argument.
2962         Detect variables whose size is too large to fit into an integer.
2963         * stmt.c (expand_decl): Pass the decl, not the type.
2964
2965 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
2966
2967         * protoize.c: Match include directory usage with cppdefault.c.
2968
2969 2002-04-03  Jeffrey A Law  (law@redhat.com)
2970             Hans-Peter Nilsson  <hp@bitrange.com>
2971
2972         * combine.c (simplify_comparison): Avoid narrowing a comparison
2973         with a paradoxical subreg when doing so would drop signficant bits.
2974
2975 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
2976
2977         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
2978         if POINTERS_EXTEND_UNSIGNED is defined.
2979
2980 2002-04-02  Richard Henderson  <rth@redhat.com>
2981
2982         PR opt/3967
2983         * local-alloc.c (contains_replace_regs): LO_SUM may contain
2984         replace regs.
2985
2986 2002-04-02  Richard Henderson  <rth@redhat.com>
2987
2988         * doc/standards.texi: Document required freestanding libc entry points.
2989
2990 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
2991
2992         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
2993         associated splitter.  Remove MQ constraint.
2994         (ctrdi_internal4): Correct CCmode clobber.
2995
2996 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2997
2998         * milli64.S ($$dyncall): New function.
2999         * t-linux (LIB1ASMFUNCS): Revise module list.
3000         (LIB1ASMSRC): Use pa/milli64.S.
3001
3002 2002-04-02  Richard Henderson  <rth@redhat.com>
3003
3004         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
3005         rename solaris_sys_varargs_h.
3006
3007 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3008
3009         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
3010         the same mode as its component.
3011
3012 2002-04-02  Richard Henderson  <rth@redhat.com>
3013
3014         PR opt/190
3015         * final.c (this_is_asm_operands): Export.
3016         * output.h (this_is_asm_operands): Declare.
3017         * config/i386/i386.c (print_operand): Error odd asm operands.
3018
3019 2002-04-02  Richard Henderson  <rth@redhat.com>
3020
3021         PR opt/420
3022         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
3023
3024 2002-04-01  Richard Henderson  <rth@redhat.com>
3025
3026         PR target/1538
3027         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
3028         * fixinc/fixincl.x: Rebuild.
3029
3030 2002-04-01  Richard Henderson  <rth@redhat.com>
3031
3032         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
3033         (atomic_alloc, atomic_free): New.
3034         (SIZE, MASK_FOR, PTR_IN): New.
3035         (emergency_reg_state, emergency_reg_state_free): New.
3036         (emergency_labeled_state, emergency_labeled_state_free): New.
3037         (reg_state_alloced, labeled_state_alloced): New.
3038         (alloc_reg_state, free_reg_state): New.
3039         (alloc_label_state, free_label_state, free_label_states): New.
3040         (push, pop, dup_state_stack, free_state_stack): Use them.
3041         (desc_label_state): Likewise.
3042         (uw_frame_state_for): Free label states and state stack.
3043         (uw_update_reg_address): Eliminate warnings.
3044
3045 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
3046
3047         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
3048         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
3049
3050 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3051
3052         * c-decl.c (grokdeclarator): Update.
3053         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
3054         * c-tree.h (c_mark_addressable): New.
3055         * c-typeck.c (default_function_array_conversion, build_unary_op,
3056         build_array_ref, convert_for_assignment): Update.
3057         (mark_addressable): Rename.
3058         * calls.c (try_to_integrate, expand_call): Use langhook.
3059         * expr.c (expand_expr): Use langhook.
3060         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
3061         * langhooks.h (struct lang_hooks): New hook.
3062         * stmt.c (expand_asm_operands): Use langhook.
3063         * tree.h (mark_addressable): Remove.
3064 objc:
3065         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
3066
3067 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
3068
3069         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
3070         in previous change.
3071
3072 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
3073
3074         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
3075         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
3076
3077 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3078
3079         * c-common.c (unsigned_conversion_warning, convert_and_check,
3080         unsigned_type, signed_type, shorten_compare,
3081         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
3082         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
3083         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
3084         New.
3085         * c-decl.c (grokdeclarator): Update.
3086         * c-format.c (check_format_types): Update.
3087         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
3088         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
3089         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
3090         * convert.c (convert_to_integer): Use new hooks.
3091         * expmed.c (make_tree): Use new hooks.
3092         * expr.c (store_expr): Use new hooks.
3093         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
3094         all_ones_mask_p, unextend, fold): Use new hooks.
3095         * langhooks.h (struct lang_hooks_for_types): New hooks.
3096         * tree.h (signed_or_unsigned_type, signed_type,
3097         unsigned_type): Remove.
3098 objc:
3099         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
3100         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
3101
3102 2002-03-31  Richard Henderson  <rth@redhat.com>
3103
3104         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
3105         (desc_frgr_mem): Fix reference to f16-f31.
3106
3107 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3108
3109         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
3110         RTVEC_ELT): Const-ify.
3111         * varray.h (VARRAY_CHECK): Const-ify.
3112         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
3113         ggc_mark_rtvec, ggc_mark): Const-ify.
3114
3115 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3116
3117         * diagnostic.c: Include langhooks-def.h.
3118         * Makefile.in (diagnostic.o): Update.
3119
3120 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
3121
3122         * c-common.c (c_unsafe_for_reeval): Rename.
3123         * c-common.h (c_unsafe_for_reeval): Rename.
3124         * c-decl.c (finish_incomplete_decl): Rename.
3125         (c_init_decl_processing): Don't set langhook.
3126         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
3127         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3128         * c-objc-common.c (c_objc_common_init): Don't set langhook.
3129         * c-tree.h (finish_incomplete_decl): Rename.
3130         * langhooks-def.h (lhd_unsafe_for_reeval): New.
3131         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
3132         (LANG_HOOKS_INITIALIZER): Update.
3133         * langhooks.c (lhd_unsafe_For_reeval): New.
3134         * langhooks.h (struct langhooks): New hooks.
3135         * toplev.c (incomplete_decl_finalize_hook): Remove.
3136         (wrapup_global_declarations): Update.
3137         * tree.c (lang_unsafe_for_reeval): Remove.
3138         (unsafe_for_reeval): Update.
3139         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
3140         Remove.
3141 objc:
3142         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
3143         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3144
3145 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
3146
3147         * diagnostic.c (print_error_function): Remove.
3148         (default_print_error_function): Rename.
3149         (report_error_function): Update.
3150         * diagnostic.h (print_error_function): Remove.
3151         (default_print_error_function): Remove.
3152         * langhooks-def.h (struct diagnostic_context): Predeclare.
3153         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
3154         (LANG_HOOKS_INITIALIZER): Update.
3155         * langhooks.h (struct diagnostic context): Predeclare.
3156         (struct lang_hooks): New hook.
3157
3158 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3159
3160         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
3161         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
3162         !flag_pic.
3163         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
3164         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
3165         of PIC_OFFSET_TABLE_REGNUM thruout.
3166         * config/rs6000/rs6000.md: Likewise.
3167         * config/rs6000/darwin.h: Likewise.
3168
3169 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3170
3171         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
3172         unsigned HOST_WIDE_INT, not unsigned int.
3173
3174 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
3175
3176         PR middle-end/6096, middle-end/6098, middle-end/6099
3177         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
3178         CODE_LABELs.
3179         (fill_slots_from_thread): Likewise.
3180
3181 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
3182
3183         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
3184         floating fields in float regs.
3185         (function_arg_record_value_2): Likewise.
3186
3187 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
3188
3189         * config/mmix/mmix.md (define_constants): Remove misleading
3190         FIXME.  Add MMIX_fp_rO_OFFSET.
3191         ("nonlocal_goto_receiver"): Don't have stack-frame address of
3192         saved rO as part of the pattern.  Remove FIXME.
3193         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
3194         here, at output-time.
3195
3196 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
3197
3198         PR middle-end/6100
3199         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
3200         REG_BR_PRED.
3201         (output_v9branch): Likewise.
3202
3203 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
3204
3205         * gcc.c: Revert previous patch for now.
3206         * config/i386/djgpp.h: Likewise.
3207
3208 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
3209
3210         * config/mmix/crti.asm (_init): Register _fini with atexit.
3211         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
3212
3213 2002-03-31  Richard Henderson  <rth@redhat.com>
3214
3215         PR target/3997
3216         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
3217         (ASM_OUTPUT_DEF_FROM_DECLS): New.
3218
3219 2002-03-31  Richard Henderson  <rth@redhat.com>
3220
3221         * libgcc2.c (__bb_exit_func): Make static.
3222
3223         * config/alpha/alpha.md (trap): New.
3224
3225 2002-03-31  Richard Henderson  <rth@redhat.com>
3226
3227         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
3228         promoted argument types; build trap.
3229         (expand_builtin_trap): New.
3230         (expand_builtin): Use it.
3231         * stmt.c (expand_nl_goto_receivers): Likewise.
3232         * expr.h (expand_builtin_trap): Declare.
3233         * libfuncs.h (LTI_abort, abort_libfunc): New.
3234         * optabs.c (init_optabs): Init abort_libfunc.
3235
3236 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
3237
3238         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
3239         (LINK_COMMAND_SPEC): ... from here.
3240         (init_gcc_specs): Duplicate it here too, omitting
3241         shared_name in the second copy.
3242         (init_spec): Test for duplicate
3243         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
3244
3245 2002-03-30  David S. Miller  <davem@redhat.com>
3246
3247         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3248         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
3249
3250 2002-03-30  Roger Sayle <roger@eyesopen.com>
3251             Richard Henderson  <rth@redhat.com>
3252
3253         * regmove.c (combine_stack_adjustments_for_block): Avoid
3254         emitting a stack adjustment of zero bytes.  Let delete_insn
3255         update bb->head.
3256
3257 2002-03-30  Richard Henderson  <rth@redhat.com>
3258
3259         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
3260         (sparc_emitting_epilogue): New.
3261         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
3262         * config/sparc/sparc-protos.h: Update.
3263         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
3264         (TARGET_SWITCHES): Update.
3265         * config/sparc/sparc.md (return): Remove.
3266         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
3267         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
3268         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
3269         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
3270         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
3271         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
3272         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
3273         Remove MASK_EPILOGUE.
3274         * doc/invoke.texi: Update.
3275
3276 2002-03-30  Daniel Berlin  <dan@dberlin.org>
3277
3278         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
3279         CPP will start the file for us.
3280
3281 2002-03-30  Richard Henderson  <rth@redhat.com>
3282
3283         PR target/5446
3284         * config/ia64/ia64.c (group_barrier_needed_p): Special case
3285         prologue_allocate_stack.
3286         (ia64_single_set): Use insn codes for recognition of special
3287         cases, not rtl matching.
3288         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
3289
3290 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
3291
3292         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
3293
3294 2002-03-30  Richard Henderson  <rth@redhat.com>
3295
3296         PR target/6032
3297         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
3298         or -fomit-frame-pointer with profiling.
3299         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3300         (FUNCTION_PROFILER): Do nothing.
3301         (PROFILE_HOOK): New.
3302         * config/sparc/sparc.c (sparc_override_options): Don't check
3303         code models for profiling.
3304         (sparc_function_profiler): Remove.
3305         (sparc_profile_hook): New.
3306         * config/sparc/sparc-protos.h: Update.
3307
3308 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
3309
3310         PR optimization/6086
3311         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
3312         of SUBREG of volatile MEM or because the MEM was mode dependent,
3313         return CLOBBER instead of unmodified SUBREG.
3314
3315 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
3316
3317         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
3318         when not optimizing.
3319
3320         * toplev.c (rest_of_compilation): Cann mark_constant_function
3321         only when optimizing.
3322
3323         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
3324         are NULL.
3325
3326         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
3327         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
3328         (try_optimize_cfg): clear all AUX fields.
3329
3330         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
3331         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
3332         (ix86_address_cost): Be prepared for SUBREGed registers.
3333         (legitimate_address_p): Accept SUBREGed registers.
3334
3335 2002-03-29  Richard Henderson  <rth@redhat.com>
3336
3337         PR target/5672
3338         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
3339
3340 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3341
3342         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
3343         for aggregate and TFmode types.
3344
3345 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
3346
3347         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
3348
3349 2002-03-29  Richard Henderson  <rth@redhat.com>
3350
3351         PR target/5886
3352         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
3353         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
3354
3355 2002-03-29  Richard Henderson  <rth@redhat.com>
3356
3357         PR target/6041
3358         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
3359         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
3360         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
3361         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
3362         conditional.
3363         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
3364
3365 2002-03-29  Dale Johannesen <dalej@apple.com>
3366
3367         * loop.c (combine_movables): Do allow combination of pseudos.
3368
3369 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
3370
3371         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
3372         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
3373         No functional change except ...
3374         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
3375         * doc/install.texi (*-*-freebsd*): Document port configuration.
3376
3377 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3378
3379         * Makefile.in (convert.o, calls.o, expmed.o): Update.
3380         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
3381         Use new hooks.
3382         * builtin-types.def (BT_PTRMODE): Update.
3383         * c-common.c (type_for_size): Rename c_common_type_for_size.
3384         (type_for_mode): Similarly.
3385         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
3386         Use new hook.
3387         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
3388         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
3389         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
3390         Redefine.
3391         * c-typeck.c (common_type, comptypes, default_conversion):
3392         Use new hooks.
3393         * calls.c: Include langhooks.h.
3394         (emit_library_call_value_1): Use new hooks.  Avoid redundant
3395         calls.
3396         * convert.c: Include langhooks.h
3397         (convert_to_pointer, convert_to_integer): Use new hooks.
3398         * except.c (init_eh): Similarly.
3399         * expmed.c: Include langhooks.h.
3400         (expand_mult_add): Use new hooks.
3401         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
3402         try_casesi): Similarly.
3403         * fold-const.c (optimize_bit_field_compare, make_range,
3404         decode_field_reference, fold_truthop, fold): Similarly.
3405         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
3406         put_var_into_stack): Similarly.
3407         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
3408         LANG_HOOKS_TYPE_FOR_SIZE): New.
3409         (LANG_HOOKS_TYPES_INITIALIZER): Update.
3410         * langhooks.h (lang_hooks_for_types): New hooks.
3411         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
3412         * tree.c (get_unwidened, get_narrower): Similarly.
3413         * tree.h (type_for_mode, type_for_size): Remove.
3414         * varasm.c (force_const_mem): Use new hooks.
3415         * utils2.c (nonbinary_modular_operation): Update.
3416 objc:
3417         * objc-act.c (handle_impent): Update.
3418         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
3419         Redefine.
3420
3421 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
3422
3423         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
3424         * config/ia64/ia64.c (basereg_operand): New.
3425         * config/ia64/ia64-protos.h (basereg_operand): Declare.
3426         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
3427
3428 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
3429
3430         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
3431         unwind information when frame_pointer_needed.
3432         (mmix_assemble_integer): Tweak wording in comment.
3433
3434 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3435
3436         * Makefile.in (except.o): Update.
3437         * except.c: Include langhooks.h.
3438         (init_eh): Use langhook.
3439         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
3440         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
3441         (LANG_HOOKS_INITIALIZER): Update.
3442         * langhooks.h (lang_hooks_for_types): New.
3443         (struct lang_hooks): Add it.
3444         * tree.c (make_lang_type_fn, make_lang_type): Remove.
3445         * tree.h (make_lang_type_fn, make_lang_type): Remove.
3446 config:
3447         * alpha/alpha.c: Include langhooks.h.
3448         (alpha_build_va_list): Use langhook.
3449         * d30v/d30v.c: Include langhooks.h.
3450         (d30v_build_va_list): Use langhook.
3451         * i386/i386.c: Include langhooks.h.
3452         (ix86_build_va_list): Use langhook.
3453         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
3454         * s390/s390.c: Include langhooks.h.
3455         (s390_build_va_list): Use langhook.
3456         * stormy16/stormy16.c: Include langhooks.h.
3457         (stormy16_build_va_list): Use langhook.
3458
3459 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
3460
3461         PR c++/5964
3462         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
3463         attributes.
3464         (length): Compute variable length for branches/calls/jumps here.
3465         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
3466         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
3467         define branch_type attribute.
3468         (divsi3_sp32): Maximum length is 6 not 7.
3469         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
3470         call_address_untyped_struct_value_sp32,
3471         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
3472         * config/sparc/sparc.c (empty_delay_slot): New function.
3473         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
3474         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
3475
3476 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
3477
3478         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
3479         nonzero_bits if not needed.
3480         (nonzero_bits) [XOR]: Likewise.
3481         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
3482         reg_last_set_mode and mode are both MODE_INT, but not equal.
3483         (record_value_for_reg): Compute reg_last_set_nonzero_bits
3484         in nonzero_bits_mode for MODE_INT modes.
3485
3486 2002-03-28  Richard Henderson  <rth@redhat.com>
3487
3488         PR target/5715
3489         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
3490         to GAS.  Correct drift between alternatives.
3491
3492 2002-03-28  Richard Henderson  <rth@redhat.com>
3493
3494         PR target/6087
3495         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
3496
3497 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
3498
3499         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
3500         emulation to the linker.
3501
3502 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
3503
3504         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
3505         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
3506
3507 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
3508
3509         * combine.c (simplify_and_const_int): Make sure to apply mask
3510         when force_to_mode returns a constant integer.  PR3311.
3511
3512 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3513
3514         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
3515
3516 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3517
3518         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
3519         and Objective-C Dialect Options.
3520
3521 2002-03-28  Richard Henderson  <rth@redhat.com>
3522
3523         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
3524         comparison should be done vs !=0 not >0 return code.  Tidy cases.
3525
3526 2002-03-28  Richard Henderson  <rth@redhat.com>
3527
3528         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
3529         on to c_expand_body.
3530         * c-tree.h (finish_function): Update decl.
3531         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
3532
3533 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
3534
3535         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
3536
3537 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
3538
3539         * rtlanal.c: Include flags.h
3540         (may_trap_p): Do not mark FP operations if trapping
3541         if !flag_trapping_math
3542         * Makefile.in (rtlanal.o): Add dependency on flag.h
3543         * ifcvt.c (noce_operand_ok): Avoid the lameness.
3544
3545 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
3546
3547         * mips.md: Use dconst1, not 1.0, as first argument of
3548         REAL_VALUE_LDEXP.  Don't use union real_extract.
3549
3550 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
3551
3552         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
3553         rather than $target.  Heed program_prefix and
3554         program_transform_name.  Search for gas in cross-compiler case too.
3555         "test -x" rather than "test -f".
3556         (gcc_cv_ld): Likewise.
3557         (gcc_cv_nm): Heed program_prefix and program_transform_name.
3558         (gcc_cv_objdump): Likewise.
3559         * configure: Regenerate.
3560
3561 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3562
3563         * Makefile.in (attribs.o): Update.
3564         * attribs.c: Include langhooks.h.
3565         (decl_attributes): Use langhook.
3566         * c-decl.c (insert_default_attributes): Rename.
3567         * c-tree.h (c_insert_default_attributes): New.
3568         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
3569         (LANG_HOOKS_INITIALIZER): Update.
3570         * langhooks.h (struct lang_hooks): New hook.
3571         * tree.h (insert_default_attributes): Remove.
3572 objc:
3573         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
3574
3575 2002-03-27  Andreas Schwab  <schwab@suse.de>
3576
3577         * config/i386/i386.c (classify_argument): Also check for
3578         QUAL_UNION_TYPE.
3579
3580 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3581
3582         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
3583         any more.
3584
3585 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
3586
3587         * i960.md (ret): Set PC.
3588         (nonlocal_goto): Fix expander.
3589         * builtins.c (epxand_builin_longjmp): Check that we've emitted
3590         some jump or call.
3591
3592 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
3593
3594         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
3595         of libcall regions.
3596
3597 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3598
3599         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
3600         assigning to BLOCK_FOR_INSN directly.
3601
3602 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
3603
3604         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
3605
3606 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3607
3608         * c-common.c (c_expand_expr): Fix prototype.
3609         * c-common.h (c_expand_expr): Always declare, update.
3610         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
3611         * c-objc-common.c (c_objc_common_init): No global hook.
3612         * expr.c (expand_expr): Use langhook.
3613         * expr.h (enum expand_modifier): Conditionally declare.
3614         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
3615         (LANG_HOOKS_INITIALIZER): Update.
3616         * langhooks.c (lhd_expand_expr): New.
3617         * langhooks.h (struct lang_hooks): New hook.
3618         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
3619         (lang_independent_init): Don't default hook.
3620 objc:
3621         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
3622
3623 2002-03-27  Richard Henderson  <rth@redhat.com>
3624
3625         PR target/6054
3626         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
3627         TARGET_CONST_GP.  Simplify conditions.
3628
3629 2002-03-27  Richard Henderson  <rth@redhat.com>
3630
3631         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
3632         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
3633         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
3634
3635 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
3636
3637         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
3638         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
3639         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
3640         Remove unnecessary masks.
3641         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
3642         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
3643         -mwindows, -mdll switches and their negations.
3644
3645 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3646
3647         * gcc-common.c (lang_mark_false_label_stack): Remove.
3648         * ggc.h (lang_mark_false_label_stack): Similarly.
3649
3650 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
3651
3652         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
3653
3654         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
3655         or __rtems_ is defined.
3656
3657 2002-03-26  Richard Henderson  <rth@redhat.com>
3658
3659         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
3660         if a non-trivial load was emitted.
3661         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
3662         in high+extra+low case.
3663
3664 2002-03-26  Richard Henderson  <rth@redhat.com>
3665
3666         * config.gcc (sparc*-solaris): Use float_format=sparc.
3667
3668 2002-03-26  Richard Henderson  <rth@redhat.com>
3669
3670         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
3671         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
3672         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
3673         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
3674         (WINT_TYPE_SIZE): Fix at 32.
3675
3676 2002-03-26  Richard Henderson  <rth@redhat.com>
3677
3678         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
3679         until after eh landing pad generation.
3680         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
3681         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
3682
3683 2002-03-26  Richard Henderson  <rth@redhat.com>
3684
3685         * expr.h (ADD_PARM_SIZE): One more convert for INC.
3686
3687 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
3688
3689         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
3690         and warning switches.
3691         (cc1_options):  Likewise.
3692
3693 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
3694
3695         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
3696         Restore more of the signal context.  Set no_reg_stack_frame.
3697         * config/ia64/unwind-ia64.c (unw_state_record):
3698         Add no_reg_stack_frame, comments.
3699         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
3700         (uw_update_context): Adjust bsp when unwinding from leaf,
3701         but not signal frame.
3702
3703 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
3704
3705         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
3706
3707 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
3708
3709         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
3710
3711 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
3712
3713         PR target/5621
3714         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
3715         "Add a pool_range attribute", which was lost during the ARM/Thumb
3716         merge.
3717
3718 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
3719
3720         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
3721         a register into the MAC16 accumulator.
3722
3723 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
3724
3725         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
3726         (Warning Options): Document -Wswitch-enum.
3727         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
3728         -Wswitch.
3729         (warn_switch_enum): Define variables.
3730         * flags.h (warn_switch_enum): Declare variables.
3731         * stmt.c (expand_end_case_type): When warn_switch_enum /
3732         -Wswitch-enum, perform switch checks.
3733         Fix PR c/5044.
3734
3735 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
3736
3737         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
3738         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
3739         (reload_muladdsi_compare0_scratch): Delete.
3740
3741 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
3742
3743         * doc/install.texi (*-*-freebsd*): Update.
3744
3745 2002-03-26  Richard Henderson  <rth@redhat.com>
3746
3747         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
3748         (SUB_PARM_SIZE): Cast DEC to ssizetype.
3749
3750         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
3751         types from the normal argument frame.
3752
3753         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
3754         variable sized objects by reference.
3755         (sparc_va_arg): Receive them by reference too.
3756
3757 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
3758
3759         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
3760         code to not restoring global registers.
3761
3762 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
3763
3764         * Makefile.in (ggc-common.o): Update.
3765         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
3766         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
3767         * c-tree.h (c_mark_tree): New.
3768         * ggc-common.c: Include langhooks.h.
3769         (gcc_mark_trees): Use new langhook.
3770         * ggc-callbacks.c: Delete file.
3771         * ggc.h (lang_mark_tree): Remove.
3772         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
3773         (LANG_HOOKS_INITIALIZER): Update.
3774         * langhooks.h (struct lang_hooks): New hook.
3775 objc:
3776         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
3777
3778 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
3779
3780         * doc/cpp.texi: Exclude entire Top node from printed manual.
3781         Move option index after directive index.  Insert page breaks
3782         before GFDL and concept index.  Index environment variables
3783         with command line options.
3784         * doc/cppenv.texi: Use @vtable for environment variable list.
3785         Add paragraph explaining semantics of empty elements in path
3786         variables.  Exclude a cross-reference to Fishkill from the
3787         manpage.  Remove an unnecessary cross-reference of the entry
3788         right above the referer.  Don't use @anchor in text that goes
3789         into manpage.
3790         * doc/cppopts.texi: Cross-reference the environment variables
3791         section, not the specific environment variable, for consistency.
3792
3793 2002-03-25  Richard Henderson  <rth@redhat.com>
3794
3795         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
3796         anywhere in the block.  Don't refer to insns that have been
3797         removed from the chain.  Iterate backward through the new insns.
3798         Don't refer to edges that have been removed.
3799
3800 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
3801
3802         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
3803         test for overflow of constant.
3804
3805 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
3806
3807         PR target/2623
3808         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
3809         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
3810         these patterns on arm_archv4.
3811
3812 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
3813
3814         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
3815         int".
3816
3817 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
3818
3819         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
3820         float_handled, float_handler, float_signal, set_float_handler,
3821         and do_float_handler.  Set handler for SIGFPE to crash_signal.
3822         * toplev.h: Don't prototype do_float_handler.
3823
3824         * c-lex.c: Fold parse_float into lex_number.  Make warning
3825         about portability of hex float constants more informative, and
3826         don't issue it on top of a syntax error.
3827         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
3828         their callers.
3829         * real.h: Define REAL_VALUE_ABS here...
3830         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
3831         simplify_unary_real, simplify_binary_real, and
3832         simplify_binary_is2orm1 into their callers.
3833         * tree.c: Fold build_real_from_int_cst_1 into caller.
3834
3835         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
3836
3837         * tsystem.h: Include float.h here...
3838         * libgcc2.c: ... not here.
3839
3840 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
3841
3842         Fixes for: PR bootstrap/3591, target/5676
3843         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
3844         defined.  Do not disable exceptions or rtti.
3845         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
3846         mcore.h.  Disable exceptions and rtti, since they are not
3847         supported by EPOC.
3848
3849 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
3850
3851         * c-decl.c (maybe_build_cleanup): Remove.
3852         * expr.c (expand_expr): Use langhook.
3853         * langhooks-def.h (lhd_return_null_tree,
3854         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
3855         (LANGHOOKS_INITIALIZER): Update.
3856         * langhooks.c (lhd_return_null_tree): New.
3857         * langhooks.h (struct lang_hooks): New hook.
3858         * tree-inline.c (initialize_inlined_parameters): Use langhook.
3859         * tree.h (maybe_build_cleanup): Remove.
3860
3861 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
3862
3863         * regrename.c (build_def_use): Move recog_memoized
3864         before extract_insn.
3865
3866 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
3867
3868         PR target/6043
3869         * expr.c (emit_group_store): Handle storing into CONCAT.
3870
3871 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
3872
3873         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
3874         corresponding MATCH_DUP.
3875
3876 2002-03-24  Richard Henderson  <rth@redhat.com>
3877
3878         * unroll.c (unroll_loop): Zero label_map.
3879
3880         * gcse.c: Include except.h.
3881         * Makefile.in (gcse.o): Update.
3882
3883 2002-03-24  Richard Henderson  <rth@redhat.com>
3884
3885         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
3886         Do resolve_unique_section before shared data clause.
3887
3888 2002-03-24  Richard Henderson  <rth@redhat.com>
3889
3890         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
3891
3892 2002-03-24  Richard Henderson  <rth@redhat.com>
3893
3894         * recog.c (peephole2_optimize): Split blocks when EH insns are
3895         generated in the middle of a block.  Do global life update if
3896         zapped EH edges.
3897
3898 2002-03-24  Richard Henderson  <rth@redhat.com>
3899
3900         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
3901
3902 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
3903
3904         preprocessor/3951
3905         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
3906         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
3907         (init_dependency_output): Don't make no_output decision here.
3908
3909 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
3910
3911         * stmt.c (check_for_full_enumeration_handling): Remove tests of
3912         warn_switch.  Update description.
3913         (expand_end_case_type): Call check_for_full_enumeration_handling
3914         when warn_switch.
3915
3916 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3917
3918         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
3919         (m68hc11_split_move): Call it to see if the source and destination
3920         operands use the same direction auto inc/dec mode, otherwise make the
3921         source an offsetable memory operand and generate an add.
3922
3923 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3924
3925         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
3926         register for operand 2.
3927         ("*subsi3_zero_extendqi"): Likewise.
3928         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
3929         bits so that it is compatible with a pop.
3930         ("*andhi3_gen"): Likewise.
3931         ("xorhi3"): Likewise.
3932
3933 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
3934
3935         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
3936         -pedantic here...
3937         (cpp_post_options): ... not here.
3938
3939 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
3940             Aldy Hernandez  <aldyh@redhat.com>
3941
3942         Removal of separate preprocessor cpp0.
3943
3944         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
3945         cpp0, install-common): Update.
3946         * c-common.c (flag_preprocess_only): New.
3947         (c_common_init): Preprocess for -E.
3948         * c-common.h (flag_preprocess_only): New.
3949         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
3950         * c-objc-common.c (c_init_decl_processing): Exit quickly
3951         for NULL return from c_common_init.
3952         * cpplib.h (cpp_preprocess_file): New.
3953         * cppmain.c (main, general_init, pfile, progname): Remove.
3954         (do_preprocessing): Rename cpp_preprocess_file, don't call
3955         cpp_finish.  Don't close stdout here.
3956         (setup_callbacks): Update prototype.
3957         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
3958         Update.
3959         * tradcpp.c (main): Ignore -quiet.
3960 objc:
3961         * lang-specs.h (default_compilers): Preprocess with cc1obj.
3962
3963 2002-03-24  Richard Henderson  <rth@redhat.com>
3964
3965         PR optimization/5742
3966         * machmode.def: Add inner mode field to complex modes.
3967         * config/mips/mips.c (mips_function_value): Always define.  Add
3968         new argument to handle libcalls.
3969         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
3970         (FUNCTION_VALUE): Likewise.
3971         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
3972         * config/mips/mips-protos.h: Update.
3973
3974 2002-03-23  Richard Henderson  <rth@redhat.com>
3975
3976         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
3977         * config/sparc/sparc-protos.h: Update.
3978         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
3979
3980 2002-03-23  Richard Henderson  <rth@redhat.com>
3981
3982         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
3983         _start or _init begins the text segment.
3984
3985 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
3986
3987         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
3988         not HOST_WIDEST_INT.
3989         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
3990
3991 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
3992
3993         PR java/5489
3994         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
3995         operand argument to output_return_instruction.
3996         * arm.c (arm_print_operand, case 'd'): If the operand is
3997         const_true_rtx then just return.
3998         (arm_print_operand, case 'D'): If the operand is const_true_rtx
3999         then abort.
4000
4001 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
4002
4003         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
4004         (Warning Options): Document -Wswitch-default.
4005         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
4006         -Wswitch.
4007         (warn_switch_default): Define variable.
4008         (warn_switch): Update comment.
4009         * flags.h (warn_switch_default): Declare variable.
4010         (warn_switch): Update comment.
4011         * stmt.c (expand_end_case): Check for and, when
4012         warn_switch_no_default, warn of a missing default case.
4013
4014 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
4015
4016         * real.h (N): Special case 128 bit doubles.
4017
4018         * combine.c (simplify_comparison): When widening modes, ignore
4019         sign extension on CONST_INTs.
4020
4021 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
4022
4023         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
4024         passed to adjust_address.  Fix comment formatting.
4025
4026
4027 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
4028
4029         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
4030         Always make REAL_VALUE_TYPE a struct containing an array of
4031         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
4032         big it is.  Don't declare or use union real_extract.
4033
4034         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
4035         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
4036         (print_operand), config/arm/arm.c (output_move_double),
4037         config/arm/arm.md (consttable_4, consttable_8),
4038         config/romp/romp.c (output_fpops), config/s390/s390.h
4039         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
4040         (xtensa_output_literal): Don't use union real_extract.
4041
4042         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
4043         (sfmode_constant_to_ulong), config/ns32k/merlin.h
4044         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
4045         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
4046         (PRINT_OPERAND): Don't use local version of union
4047         real_extract.
4048
4049         * config/convex/convex.c (check_float_value), config/vax/vax.c
4050         (vax_float_literal), config/m88k/m88k.md (divdf3),
4051         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
4052         config/pdp11/pdp11.c (output_move_quad): Don't do host
4053         arithmetic on target floating point quantities.
4054
4055         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
4056         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
4057
4058         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
4059         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
4060
4061         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
4062         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
4063         INFINITY.
4064         * print-rtl.c (print_rtx): Disable code which needs
4065         floating-point emulator.
4066         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
4067         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
4068         depending on HOST_FLOAT_FORMAT to be defined properly.
4069
4070         * config/1750a/1750a.c (get_double, float_label): Delete.
4071         (print_operand): Delete huge commented-out chunk.  Use
4072         REAL_VALUE_TO_DECIMAL.
4073         * config/1750a/1750a-protos.h: Delete prototypes of deleted
4074         functions.
4075         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
4076         IEEE_FLOAT_FORMAT.
4077         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
4078         Use REAL_VALUE_TO_DECIMAL as ELF version does.
4079         * config/m88k/m88k.c (real_power_of_2_operand,
4080         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
4081         real_extract out of the union; run the input through
4082         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
4083         from that into the union.
4084         * config/pdp11/pdp11.c (output_move_double): Rearrange
4085         parentheses to make automatic indenter happy.
4086
4087         * doc/tm.texi (Cross-compilation): Rename node to "Floating
4088         Point" and rewrite to describe current situation.  Also adjust
4089         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
4090         match code.
4091         * doc/rtl.texi: Adjust cross reference.
4092
4093 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
4094
4095         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
4096         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
4097         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
4098         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
4099         prevent use of sp as a reload register.
4100         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
4101         non_acc_reg_operand.
4102         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
4103         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
4104         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
4105         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
4106
4107 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
4108
4109         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
4110         * cpplex.c (unterminated): Delete.
4111         (parse_string): No string literal may extend over multiple
4112         lines.  Suppress the error when preprocessing assembly.
4113         * cppmain.c (scan_translation_unit): Strings are single-line.
4114
4115         * doc/cpp.texi: Update to match.
4116
4117 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
4118
4119         PR optimization/5854
4120         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
4121         Shut up warnings.
4122         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
4123         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
4124         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
4125         const0 if scratch register was not allocated.
4126         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
4127         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
4128         with GEN_INT (...).
4129         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
4130         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
4131         with GEN_INT (...) everywhere.  Remove constraints in define_split
4132         patterns.
4133         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
4134         require scratch register for setting 0 into regs/non-pushable memory.
4135
4136 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
4137
4138         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
4139         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
4140
4141 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
4142
4143         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
4144         * cppinit.c (cpp_create_reader):  On by default.
4145         (cpp_handle_option):  Handle -W[no-]endif-labels.
4146         (cpp_post_options):  Also enable if -pedantic.
4147         * cpplib.c (do_else):  Use it.
4148         (do_endif):  Likewise.
4149         * doc/cppopts.texi:  Document new option.
4150         * doc/invoke.texi:  Document new option.
4151
4152 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
4153
4154         * config/i386/i386.c, config/i386/i386.md: Change all occurences
4155         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
4156
4157 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
4158
4159         * flow.c (calculate_global_regs_live): Clear aux fields of
4160         ENTRY and EXIT.
4161
4162 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
4163
4164         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
4165         REG or MEM subregs, pass rtx * instead of rtx to it.
4166         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
4167         rtx * instead of rtx to alter_subreg.
4168         * config/m32r/m32r.c (gen_split_move_double): Likewise.
4169         * config/pj/pj.c (pj_output_rval): Likewise.
4170
4171 2002-03-22  Richard Henderson  <rth@redhat.com>
4172
4173         PR target/3177
4174         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
4175         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
4176         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
4177         (ia64_expand_prologue): Look at int_regs, not words, for number
4178         of incomming int regs.
4179
4180 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
4181
4182         * expr.c (expand_expr): A RESULT_DECL is part of a call.
4183
4184 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
4185
4186         * toplev.c (flag_loop_optimize, flag_crossjumping):
4187         New static variables.
4188         (rest_of_compilation): Conditionalize crossjumping and
4189         loop optimizer.
4190         (parse_options_and_default_flags): Default loop_optimize and
4191         crossjumping.
4192         (lang_independent_options): Add -fcrossjumping and -floop-optimize
4193         * invoke.texi (crossjumping, loop-optimize): Document.
4194
4195 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
4196
4197         * real.c (eiisneg): Move outside #ifdef NANS.
4198
4199 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
4200
4201         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
4202         frequencies match; avoid match on different loop depths.
4203         (try_crossjump_to_bb): Kill tests that no longer brings time
4204         savings.
4205         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
4206         updating code.
4207         (split_edge): Likewise.
4208
4209         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
4210         variable.
4211
4212         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
4213         * cfgrtl.c: Include insn-config.h
4214         (split_block) Dirtify block in presence of conditional execution
4215
4216 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
4217
4218         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
4219         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
4220         (function_arg): Constify CUMULATIVE_ARGS.
4221         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
4222         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
4223         (UNITS_PER_DOUBLE): New macro.
4224         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
4225         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
4226         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
4227         fp_regs and stack_words.
4228         (EABI_FLOAT_VARARGS_P): New macro.
4229         * config/mips/mips.c (struct mips_arg_info): New.
4230         (mips_arg_info): New function.
4231         (function_arg_advance): Use it.  Add adjustment instructions here
4232         rather than in function_arg.
4233         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
4234         for VOIDmode at the beginning of the function.
4235         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
4236         (function_arg_pass_by_reference): Likewise.
4237         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
4238         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
4239         (mips_va_start): Likewise.  Use the new stack_words field of
4240         CUMULATIVE_ARGS to set up overflow area.  Reformat.
4241         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
4242         doubles and other types, aligning the overflow pointer for non-doubles
4243         too.  Remove some code duplication.  Replace hard-coded constants.
4244
4245 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
4246
4247         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
4248         (CLASS_UNITS): Undefine.
4249         (CLASS_MAX_NREGS): Use FP_INC.
4250         * config/mips/mips.c (compute_frame_size): Likewise.
4251         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
4252
4253 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
4254
4255         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
4256         prototype, and handle lexing numbers and identifiers.
4257         (parse_identifier): Update to new form of parse_slow.
4258         (parse_number): Fast path only, use parse_slow otherwise.
4259         (_cpp_lex_direct): Update calls to parse_number.
4260
4261 2002-03-21  DJ Delorie  <dj@redhat.com>
4262
4263         * bb-reorder.c (make_reorder_chain_1): Protect against
4264         when redundant edges are omitted.
4265         * predict.c (dump_prediction): Likewise.
4266
4267 2002-03-21  Richard Henderson  <rth@redhat.com>
4268
4269         PR target/5996
4270         * fixinc/inclhack.def (solaris_stdio_tag): New.
4271         * fixinc/fixincl.x: Regenerate.
4272
4273 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
4274
4275         PR c/5597
4276         * c-typeck.c (process_init_element): Flag non-static
4277         initialization of a flexible array member as illegal.
4278
4279 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
4280
4281         * config/rs6000/t-linux64: New.
4282         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
4283         t-ppccomm.  Use t-rs6000 and t-linux64.
4284         (powerpc64-*-gnu* <tmake_file>): Likewise.
4285         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
4286         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
4287         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
4288
4289 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
4290
4291         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
4292         flag_really_no_inline instead of optimize == 0.
4293
4294         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
4295
4296         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
4297
4298         * flags.h (flag_really_no_inline): New.
4299
4300         * c-common.c (c_common_post_options): Initialize
4301         flag_really_no_inline.
4302
4303         * toplev.c (flag_really_no_inline): New.
4304
4305 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
4306
4307         * config/avr/avr.md (length): Fix length computation for
4308         conditional branches.
4309
4310 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
4311
4312         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
4313         sdbout.o, profile.o): Update.
4314         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
4315         langhook.
4316         * c-common.h (gettags): Move here from tree.h.
4317         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
4318         insert_block, getdecls, kept_level_p, global_bindings_p): New.
4319         * dbxout.c (dbxout_init): Use getdecls langhook.
4320         * expr.c (expand_expr): Use insert_block langhook.
4321         * fold-const.c: Include langhooks.h.
4322         (fold_range_test, fold_binary_op_with_conditional_arg,
4323         fold): Use global_bindings_p langhook.
4324         * integrate.c (expand_inline_function): Use insert_block langhook.
4325         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
4326         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
4327         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
4328         LANG_HOOKS_GETDECLS): New.
4329         (LANG_HOOKS_INITIALIZER): Update.
4330         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
4331         langhook.
4332         * langhooks.h (struct lang_hooks_for_decls): New.
4333         (struct lang_hooks): Update.
4334         * profile.c: Include langhooks.h.
4335         (output_func_start_profiler): Use new langhooks.
4336         * sdbout.c: Include langhooks.h.
4337         (sdbout_init, sdbout_finish): Use getdecls langhook.
4338         * stmt.c: Include langhooks.h.
4339         (expand_fixup, fixup_gotos): Use new langhooks.
4340         * stor-layout.c: Include langhooks.h.
4341         (variable_size): Use global_bindings_p langhook.
4342         * toplev.c (compile_file): Use getdecls langhook.
4343         * tree-inline.c (remap_block): Use insert_block langhook.
4344         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
4345         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
4346
4347 2002-03-21  Richard Henderson  <rth@redhat.com>
4348
4349         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
4350         constants in .data when -fpic.
4351
4352 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4353
4354         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
4355         where appropriate.
4356
4357 2002-03-21  Tom Tromey  <tromey@redhat.com>
4358
4359         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
4360
4361 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4362
4363         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
4364
4365         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
4366
4367 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
4368             Richard Henderson  <rth@redhat.com>
4369
4370         PR c/5354
4371         * c-common.c (c_expand_expr): Preserve result of a statement
4372         expression if needed.
4373
4374 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
4375
4376         PR bootstrap/4195
4377         * genrecog.c (maybe_both_true_mode): Remove.
4378         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
4379         * machmode.def (Pmode): Likewise.
4380
4381 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
4382
4383         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
4384         (nonlocal_mentioned_p_1): New function.
4385         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
4386         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
4387         (mark_constant_function): Recognize pure functions.
4388         * rtl.h (global_reg_mentioned_p): New prototype.
4389         * rtlanal.c (global_reg_mentioned_p,
4390         global_reg_mentioned_p_1): New function.
4391
4392 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4393
4394         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
4395         UNIX assert.h.
4396         * fixinc/fixincl.x: Regenerate.
4397
4398 2002-03-20  Jason Merrill  <jason@redhat.com>
4399
4400         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
4401
4402 2002-03-20  Michael Meissner  <meissner@redhat.com>
4403
4404         * doc/invoke.texi (Optimize Options): Document that -O2 sets
4405         -fstrict-aliasing.
4406
4407 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
4408
4409         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
4410         ".literal_position" directive before the constant pool.
4411
4412 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4413
4414         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
4415         Add Craig Rodrigues.
4416         Add Brad Lucier to testers.
4417
4418 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
4419
4420         PR target/4792
4421         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
4422         to if_then_else.
4423         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
4424         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
4425         instead of insn_extract.
4426
4427 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
4428
4429         PR bootstrap/4192
4430         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
4431
4432         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
4433         stmt if some case has been output.
4434
4435 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
4436
4437         PR c/5972
4438         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
4439         movsfcc_1, movdfcc_1): Add %O2.
4440         * config/i386/i386.c (print_operand): Handle %ON.
4441         Print . before float condition codes in Sun as cmov syntax.
4442         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
4443         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
4444         no longer true.
4445
4446 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
4447
4448         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
4449         return instruction if PC was popped.
4450
4451 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
4452
4453         * config/xtensa/xtensa.md: Remove unused type attributes.
4454         (adddi_carry, subddi_carry): Change type attribute to "multi".
4455
4456 2002-03-19  Dale Johannesen  <dalej@apple.com>
4457
4458         PR optimization/5999, middle-end/5731
4459         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
4460         multiplications by reciprocals.
4461
4462 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
4463
4464         * Makefile.in: Update.
4465         * c-common.c: Include langhooks.h.
4466         (inline_forbidden_p): Use new hook.
4467         * diagnostic.c: Include langhooks.h.
4468         (format_with_decl, announce_function,
4469         default_print_error_function): Use new hook.
4470         * dwarf2out.c (dwarf2_name): Use new hook.
4471         * function.c: Include langhooks.h.
4472         (init_function_start): Use new hook.
4473         * langhooks-def.h (lhd_decl_printable_name): New.
4474         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
4475         (LANGHOOKS_INITIALIZER): Update.
4476         * langhooks.c (lhd_decl_printable_name): New.
4477         * langhooks.h (struct lang_hooks): New hook.
4478         * toplev.c (decl_name, decl_printable_name): Remove.
4479         (open_dump_file): Use new hook.
4480         (process_options): Remove old hook.
4481         * tree.h (decl_printable_name): Remove.
4482 objc:
4483         * objc-act.c (objc_init): Remove old hook.
4484         (objc_printable_name): Export.
4485         * objc-act.h (objc_printable_name): New.
4486         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
4487
4488 2002-03-19  Jim Blandy  <jimb@redhat.com>
4489
4490         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
4491         the start_source_file debug hook, not the current line number.
4492
4493 2002-03-19  Richard Henderson  <rth@redhat.com>
4494
4495         * flow.c (EH_USES): Provide default.
4496         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
4497         * doc/tm.texi (EH_USES): New.
4498
4499         * config/ia64/ia64.c (ia64_eh_uses): New.
4500         * config/ia64/ia64-protos.h: Update.
4501         * config/ia64/ia64.h (EH_USES): New.
4502
4503 2002-03-19  Richard Henderson  <rth@redhat.com>
4504
4505         * varasm.c (output_constant_def): Fix stupid typo.
4506
4507 2002-03-19  Richard Henderson  <rth@redhat.com>
4508
4509         PR 5879
4510         * except.c (current_function_has_exception_handlers): New.
4511         * except.h: Declare it.
4512         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
4513         Combine tests that disable all sibcalls for the function.
4514
4515 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
4516
4517         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
4518         for INTEGER_CST.
4519
4520 2002-03-19  Richard Henderson  <rth@redhat.com>
4521
4522         PR 5977, 5991
4523         * config/ia64/ia64.c: Revert 2002-03-01 patch.
4524         * config/ia64/ia64.h (INIT_EXPANDERS): New.
4525
4526 2002-03-19  Jim Blandy  <jimb@redhat.com>
4527
4528         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
4529         name, even if the replacement list contains no tokens, as required
4530         by Dwarf.
4531
4532 2002-03-19  Jason Merrill  <jason@redhat.com>
4533
4534         * varasm.c (globalize_decl): Get the name from the RTL, not
4535         DECL_ASSEMBLER_NAME.
4536
4537         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
4538
4539 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
4540
4541         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
4542         subdi_carry): Define.
4543
4544 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
4545
4546         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
4547         about -fpic/-fPIC if extra_warnings set.
4548
4549 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
4550
4551         * expr.c (expand_expr): Sign-extend CONST_INT generated from
4552         TREE_STRING_POINTER.
4553         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
4554
4555 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4556
4557         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
4558         in favor of SP if FRAME_POINTER_REQUIRED is false.
4559
4560 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
4561
4562         * emit-rtl.c (gen_int_mode): New function.
4563         * rtl.h: Prototype for it.
4564         * combine.c (make_extraction, simplify_comparison), expmed.c
4565         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
4566         (convert_modes, store_field), optabs.c (expand_fix),
4567         simplify-rtx.c (neg_const_int, simplify_unary_real),
4568
4569         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
4570         Use it instead of GEN_INT (trunc_int_for_mode (...)).
4571
4572 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
4573
4574         PR c/5656
4575         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
4576         convert_parm_for_inlining.
4577         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
4578         Define.
4579         * langhooks-def.h: Likewise.
4580         * objc/objc-lang.c: Likewise.
4581         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
4582         function.
4583         * tree-inline.c (initialize_inlined_parameters):
4584         Call convert_parm_for_inlining lang hook if needed.
4585         * c-typeck.c (c_convert_parm_for_inlining): New function.
4586         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
4587
4588 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
4589
4590         * calls.c (precompute_arguments): Do not assume that temporaries
4591         can be destroyed after expanding the argument.
4592         (expand_call): Likewise.
4593
4594 2002-03-15  Eric Christopher  <echristo@redhat.com>
4595
4596         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
4597         Fix register preference on last change.
4598         * config/mips/mips.c (mips_return_in_memory): New function.
4599         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
4600         * config/mips/mips-protos.h: Declare.
4601         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
4602         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
4603
4604 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
4605
4606         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
4607         a register too.
4608         (anddi3, iorsi3): Likewise.
4609
4610         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
4611         use %gprel for symbols that are going to be placed in linkonce
4612         sections.
4613
4614         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
4615         RETURN_ADDRESS_POINTER_REGNUM to $ra.
4616         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
4617         not needed.  Disregard leaf_function_p().
4618         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
4619         mips16 frame pointer.
4620         * config/mips/mips.md (store ra): Only to small SP offsets.
4621         2001-08-22  Graham Stott  <grahams@redhat.com>
4622         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
4623         return a REG rtx for the return address register.
4624
4625 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
4626
4627         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
4628         constant-pool addresses as "mode-dependent".
4629         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
4630
4631 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
4632
4633         PR target/5740
4634         * expr.c (emit_group_load): Use extract_bit_field if
4635         needed for CONCAT arguments.
4636
4637 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
4638
4639         PR target/4863
4640         * arm.md (tablejump): Make this a define_expand.  For PIC add the
4641         offset to the base of the table.
4642         (thumb_tablejump): Matcher for Thumb tablejump insn.
4643         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
4644         as the difference of two labels.
4645         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4646         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
4647         tables in the code.
4648         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
4649         * arm.c (get_jump_table_size): If the table is not in the text
4650         section, return zero.
4651
4652 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
4653
4654         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
4655         of gen_rtx_SUBREG.
4656         (arm_reload_out_hi): Use gen_lowpart instead of
4657         gen_rtx_SUBREG to access QImode components.
4658         * config/arm/arm.md: Disable zero_extend split for QImode
4659         subregs in BIG_ENDIAN mode.
4660         (storehi_bigend): Match use of least significant byte.
4661         (storeinthi): Remove extraneous SUBREG.
4662         Add missing construction of operands[2].
4663         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
4664         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
4665         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
4666
4667 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
4668
4669         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
4670         any_operand.
4671
4672 2002-03-17  Richard Henderson  <rth@redhat.com>
4673
4674         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
4675         explicitly.
4676
4677 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
4678
4679         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
4680         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
4681
4682 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4683
4684         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
4685
4686         * predict.c (estimate_bb_frequencies): Delete unused variables.
4687
4688 2002-03-17  Richard Henderson  <rth@redhat.com>
4689
4690         * config/ia64/ia64.c (ia64_attribute_table): Move before
4691         targetm definition.  Make static.
4692
4693 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
4694
4695         * c-common.h (yyparse, c_common_parse_file): New.
4696         * c-lang.c: Include c-common.h.
4697         (LANG_HOOKS_PARSE_FILE): Redefine.
4698         * c-lex.c: Include c-common.h.
4699         (yyparse): Rename c_common_parse_file.  Call yyparse.
4700         * c-parse.in (yyparse): Remove macro.
4701         * c-tree.h (yyparse_1): Remove.
4702         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
4703         (LANG_HOOKS_INITIALIZER): Update.
4704         * langhooks.h (struct lang_hoooks): New hook parse_file.
4705         * toplev.c (compile_file): Use parse_file hook.
4706         * tree.h (yyparse): Remove.
4707         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
4708
4709 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
4710
4711         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
4712         float_truncate, not fix.
4713         ("*truncdfsf2_real"): Ditto.
4714         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
4715
4716         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
4717
4718 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
4719
4720         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
4721         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
4722         where appropriate.  Make the second reference to
4723         leaf_function_p a function call, as intended.  Reindented.
4724
4725         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
4726         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
4727
4728         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
4729         add register to non-constant into sp.
4730
4731         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
4732         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
4733         (mips16_gp_pseudo_rtx): Lose.
4734         (INIT_EXPANDERS): Deleted.
4735         * config/mips/mips.c (mips_init_machine_status): New.
4736         (mips_free_machine_status): New.
4737         (mips_mark_machine_status): New.
4738         (override_options): Set them.
4739         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
4740         (struct machine_function): ... new.  Replaced all references.
4741         (mips_add_gc_roots): Don't mark them.
4742         (embedded_pic_fnaddr_reg): New, extracted from...
4743         (embedded_pic_offset): ... here.
4744         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
4745         (movsi): Likewise.
4746
4747 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
4748
4749         * cppinit.c: Revert -MD removal.
4750
4751 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4752
4753         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
4754         soft registers by default for 68HC12.
4755         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
4756         when compiling with -fomit-frame-pointer.
4757         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
4758         (expand_epilogue): Likewise.
4759         (m68hc11_gen_rotate): Use exg when rotating by 8.
4760
4761 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4762
4763         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
4764         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
4765         (splits): Remove unused add splits.
4766         ("*addhi3_68hc12"): Tune constraints.
4767         ("addhi_sp"): Try to use X instead of Y in all cases and if the
4768         constant fits in 8-bits and D is dead use abx/aby instructions.
4769         ("*addhi3"): Remove extern declaration of ix_reg.
4770         ("*subsi3"): Optimize and provide new split.
4771         ("subhi3"): Cleanup.
4772         ("*subhi3_sp"): Avoid saving X if we know it is dead.
4773         (arith splits): For 68hc12 save the address register on the stack
4774         and do the arithmetic operation with a pop.
4775
4776 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4777
4778         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
4779         allocating QImode in address registers.
4780         ("*movqi_m68hc11"): Likewise.
4781
4782 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
4783
4784         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
4785
4786 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
4787
4788         * cppinit.c (print_help): Display -MD and -MMD.
4789         Don't display usage string.  Update assertion syntax and
4790         typo.
4791         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
4792         (cpp_handle_option): Update.
4793
4794 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
4795
4796         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
4797         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
4798         and define it so that regardless of target CPU size,
4799         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
4800         of "int" rather than "long."
4801
4802 2002-03-15  Richard Henderson  <rth@redhat.com>
4803
4804         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
4805         size as a tree.
4806
4807 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4808
4809         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
4810         ("tstqi" split): Avoid using memory for tstqi on address register.
4811         (splits): Remove constraints.
4812         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
4813         ("cmpdf", "cmpsf"): Remove since not used.
4814         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
4815         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
4816
4817 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4818
4819         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
4820         ("neghi2"): Tighten constraints.
4821         ("one_cmplsi2"): Optimize and simplify split.
4822         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
4823
4824 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4825
4826         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
4827         and split of AND operation to clear the upper bits.
4828         ("*logicalsi3_zextqi"): Likewise.
4829         ("*logicallhi3_zexthi_ashift8"): Likewise.
4830         ("*logicalsi3_silshr16"): Likewise.
4831         ("logicalsi3_silshl16"): Likewise.
4832         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
4833
4834 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4835
4836         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
4837         (m68hc11_indirect_p): New function.
4838         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
4839         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
4840         TARGET_M6812.
4841         (asm_print_register): Likewise.
4842         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
4843         (m68hc11_indirect_p): Declare.
4844         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
4845         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
4846         (TARGET_SWITCHES): New option -mrelax.
4847         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
4848         destination.
4849         ("iorsi3", "xorsi3"): Likewise.
4850         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
4851         ("*andhi3_mem"): New to handle destination in memory with bclr
4852         and a scratch register.
4853         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
4854         ("*andhi3_const"): New when operand2 is constant.
4855         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
4856         ("*andhi3_gen"): Cleanup of the old "andhi3".
4857         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
4858         ("xorqi3"): Update constraints.
4859
4860 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4861
4862         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
4863         for reg_equiv_memory_loc when the operand is a register that does
4864         not get a hard register (stack location).
4865         (tst_operand): After reload, accept all memory operand.
4866         (symbolic_memory_operand): Fix detection of symbolic references.
4867         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
4868         accept symbols and any constant.
4869
4870 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4871
4872         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
4873         note on the insn that sets the soft frame register.
4874         (must_parenthesize): ix and iy are also reserved names.
4875         (print_operand_address): One more place where parenthesis are required
4876         to avoid confusion with register names.
4877         (m68hc11_gen_movhi): Allow push of stack pointer.
4878         (m68hc11_check_z_replacement): Fix handling of parallel with a
4879         clobber.
4880         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
4881         the replacement register is.
4882         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
4883         and D8_REGS classes.
4884         (MODES_TIEABLE_P): All modes are tieable except QImode.
4885
4886 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4887
4888         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
4889         (___subdi3): Likewise.
4890         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
4891         (__map_data_section): Optimize 68hc11 case.
4892
4893 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4894
4895         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
4896         than a shift to avoid adding a register with itself.
4897         (m68hc11_memory_move_cost): Take into account NO_REGS.
4898         (m68hc11_register_move_cost): Update and use memory move cost
4899         for soft registers.
4900         (m68hc11_address_cost): Make cost of valid offset not 0 so that
4901         it gives more opportunities to cse to optimize.
4902         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
4903         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
4904
4905 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
4906
4907         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
4908         * c-common.def (CLEANUP_STMT): New tree node.
4909         * c-common.h (CLEANUP_DECL): New macro.
4910         (CLEANUP_EXPR): Likewise.
4911         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
4912         * expr.c (expand_expr): Tidy.
4913         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
4914         * tree-inline.c (initialize_inlined_parameters): Clean up
4915         new local variables.
4916
4917 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
4918
4919         PR bootstrap/4128
4920         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
4921         before movrXX only, use reg_overlap_mentioned_p.
4922         Only special case NE if just one insn can be generated.
4923
4924 2002-03-15  Jason Merrill  <jason@redhat.com>
4925
4926         * varasm.c (assemble_variable): Call resolve_unique_section before
4927         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
4928         of error_mark_node.
4929
4930 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
4931
4932         PR target/5170
4933         * arm.md (split pattern for thumb shiftable immediates): Add comment
4934         explaining non-obvious test.
4935
4936 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
4937
4938         PR target/5712
4939         * arm.md (movaddr, movaddr_insn): Delete.
4940
4941 2002-03-15  Jason Merrill  <jason@redhat.com>
4942
4943         * toplev.c (wrapup_global_declarations): Clarify variable handling.
4944         -fkeep-static-consts doesn't apply to comdats.
4945
4946 2002-03-14  Richard Henderson  <rth@redhat.com>
4947
4948         * c-decl.c: Include c-pragma.h.
4949         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
4950         (finish_function): Tidy.
4951         * c-pragma.c: Include c-common.h.
4952         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
4953         (handle_pragma_weak): Use them.
4954         (init_pragma): Register pending_weaks.
4955         * c-pragma.h (maybe_apply_pragma_weak): Declare.
4956         * print-tree.c (print_node): Print DECL_WEAK.
4957         * varasm.c (mark_weak_decls): Remove.
4958         (remove_from_pending_weak_list): Remove.
4959         (add_weak): Remove.
4960         (asm_emit_uninitialised): Call globalize_decl for weak commons.
4961         (weak_decls): Make a tree_list.
4962         (declare_weak): Cons weak_decls directly.
4963         (globalize_decl): Remove weak_decls elements directly.
4964         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
4965         symbols.  Don't pretend to handle aliases.
4966         (init_varasm_once): Update weak_decls registry.
4967         * Makefile.in: Update dependencies.
4968
4969 2002-03-14  Richard Henderson  <rth@redhat.com>
4970
4971         PR target/5312
4972         * config/ia64/ia64.c: Include tm_p.h last.
4973         (gen_nop_type): Remove duplicate definition.
4974         (cycle_end_fill_slots): Set sched_data for second L slot.
4975         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
4976         (nop_cycles_until): Fix typos.
4977
4978 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
4979
4980         PR optimization/5891
4981         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
4982
4983 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
4984
4985         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
4986           descriptors correctly.
4987
4988 2002-03-14  Michael Meissner  <meissner@redhat.com>
4989
4990         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
4991         100, allowing MAX_UNROLLED_INSNS to be overridden.
4992
4993         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
4994         --param.
4995
4996         * unroll.c (params.h): Include.
4997         (MAX_UNROLLED_INSNS): Delete, now in params.h.
4998
4999         * doc/invoke.texi (--param max-unroll-insns): Document.
5000
5001         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
5002
5003 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
5004
5005         * arm.md: Fix warnings about constraints in peepholes and splits.
5006
5007 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
5008
5009         * cpphash.h (struct lexer_state): Remove line_extension member.
5010         * cpplib.c (dequote_string, do_linemarker): New functions.
5011         (linemarker_dir): New data object.
5012         (DIRECTIVE_TABLE): No longer need to interpret #line in
5013         preprocessed source.  Delete obsolete comment about return
5014         values of handlers.
5015         (end_directive, directive_diagnostics, _cpp_handle_directive):
5016         Don't muck with line_extension.
5017         (directive_diagnostics): No need to issue warnings for
5018         linemarkers here.
5019         (_cpp_handle_directive): Issue warnings for linemarkers here,
5020         when appropriate.  Dispatch linemarkers to do_linemarker, not
5021         do_line.
5022         (do_line): Code to handle linemarkers split out to do_linemarker.
5023         Convert escape sequences in filename argument, both places.
5024
5025         * cppmacro.c (quote_string): Rename cpp_quote_string and
5026         export.  All callers changed.
5027         * cpplib.h (cpp_quote_string): Prototype.
5028         * cppmain.c (print_line): Call cpp_quote_string on to_file
5029         before printing it.
5030
5031         * doc/cpp.texi: Document that escapes are now interpreted in
5032         #line and in linemarkers, and that non-printing characters are
5033         converted to octal escapes when linemarkers are generated.
5034
5035 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
5036
5037         * emit-rtl.c (try_split): Use delete_insns.
5038         * recog.c (split_all_insns): Fix terminating condition.
5039
5040 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
5041             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
5042
5043         PR target/5828
5044         * arm.c (arm_output_epilogue): Fix floating-point register save
5045         adjustment when using a frame pointer.
5046
5047 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
5048
5049         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
5050         * config/mips/mips.c (compute_frame_size): Retrofit them here.
5051         (save_restore_insns, mips_expand_epilogue): And here.
5052         (build_mips16_call_stub): And here.
5053         (mips_function_value): Use the new macros to decide whether a single
5054         or complex float can be returned in floating-point registers.  Return
5055         a parallel rtx in the complex case.
5056
5057 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
5058
5059         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
5060         call after liveness analysis.
5061
5062         * recog.c (split_insn): Use delete_insn_and_edges.
5063
5064         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
5065         instructions to have branch prediction notes.
5066         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
5067
5068 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
5069
5070         * configure.in: Don't pass -Wno-long-long to a ADA compiler
5071         that doesn't support it.
5072         * configure: Regenerate.
5073
5074 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5075
5076         PR target/5626
5077         * config/sparc/sparc.md (normal_branch, inverted_branch,
5078         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
5079         inverted_fp_branch): Adjust calls to output_cbranch.
5080         Set length attribute.
5081         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
5082         output_v9branch.  Set length attribute.
5083         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
5084         predicates.
5085         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
5086         (output_cbranch): Likewise.  Handle far branches.
5087         (output_v9branch): Handle far branches.
5088         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
5089         Adjust prototypes.
5090         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
5091         noov_compare64_op predicates.
5092
5093 2002-03-13  Jason Merrill  <jason@redhat.com>
5094
5095         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
5096         into the function and constify it.
5097         * gthr-dce.h, gthr-solaris.h: Likewise.
5098
5099 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
5100
5101         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
5102         * config/rs6000/rs6000.c (rs6000_va_arg): Use
5103         std_expand_builtin_va_arg if not ABI_V4.
5104
5105 2002-03-13  Jason Merrill  <jason@redhat.com>
5106
5107         * varasm.c (globalize_decl): New fn.
5108         (assemble_start_function): Use it.
5109         (asm_emit_uninitialized): Use it.
5110         (assemble_alias): Use it.
5111         (assemble_variable): Use it.
5112
5113 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
5114
5115         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
5116         2002-03-12 internal visibility change.
5117         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
5118         visibility into SYMBOL_REF_FLAG.
5119
5120 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
5121
5122         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
5123         VOIDmode operand.  Add compile-time optimization for constant results.
5124
5125 2002-03-12  Jason Merrill  <jason@redhat.com>
5126
5127         * c-typeck.c (convert_for_assignment): Don't allow conversions
5128         between pointers and references.  Only allow lvalues to convert to
5129         reference.
5130
5131 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
5132
5133         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
5134         before prologue, to avoid scheduling problems.
5135
5136 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5137
5138         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
5139         (ELIMINABLE_REGS): Add sfp->sp.
5140         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
5141
5142 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5143
5144         PR optimization/5892
5145         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
5146
5147 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5148
5149         * loop.c (basic_induction_var): Don't call convert_modes if mode
5150         classes are different.
5151
5152 2002-03-12  Richard Henderson  <rth@redhat.com>
5153
5154         PR optimization/5901
5155         * function.c (reposition_prologue_and_epilogue_notes): Position
5156         the markers after/before the last/first insn not deleted.
5157
5158 2002-03-12  Richard Henderson  <rth@redhat.com>
5159
5160         PR optimization/5878
5161         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
5162         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
5163         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5164
5165         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
5166         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
5167         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
5168
5169         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
5170         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
5171         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
5172         also.  Don't set it if not flag_pic.
5173         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
5174         to be INVALID_REGNUM when not used.
5175
5176 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
5177
5178         * expmed.c (store_bit_field): Reset alias set for memory.
5179         (extract_bit_field): Same.
5180
5181 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5182
5183         * c-common.c (c_tree_code_type, c_tree_code_length,
5184         c_tree_code_name, add_c_tree_codes): Delete.
5185         * c-common.h (add_c_tree_codes): Delete.
5186         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
5187         Define.
5188         * c-objc-common.c (c_objc_common_init): Don't call
5189         add_c_tree_codes, instead set lang_unsafe_for_reeval.
5190         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
5191         objc_tree_code_name, add_objc_tree_codes): Delete.
5192         (objc_init): Don't call add_objc_tree_codes.
5193         * objc/objc-lang.c (tree_code_type, tree_code_length,
5194         tree_code_name): Define.
5195         * toplev.c (lang_independent_init): Don't set
5196         tree_code_length[IDENTIFIER_NODE].
5197         * tree.c (tree_code_type, tree_code_length, tree_code_name):
5198         Delete definitions, moved to language front-ends.
5199         * tree.def (IDENTIFIER_NODE): Hardwire the length.
5200         * tree.h (tree_code_type, tree_code_length, tree_code_name):
5201         Const-ify.
5202         (tree_code_length): Change type to unsigned char.
5203
5204 2002-03-12  Richard Henderson  <rth@redhat.com>
5205
5206         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
5207         internal visibility change.
5208
5209 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5210
5211         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
5212         validize_mem() instead of change_address to avoid clobbering
5213         memory attributes.
5214
5215 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
5216
5217         * c-lex.h (position_after_whitespace): Remove.
5218
5219 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
5220
5221         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
5222         (lex_string): Use unsigned char pointers.
5223
5224 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
5225
5226         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
5227         is not a valid memory_operand.
5228
5229 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5230
5231         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
5232         * config/xtensa/lib1funcs.asm: Fix copyright to include
5233         special case for libgcc files.
5234         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
5235         (__divsi3): Likewise.
5236         (__umodsi3): Likewise.
5237         (__modsi3): Likewise.
5238         * config/xtensa/lib2funcs.S: Fix copyright to include
5239         special case for libgcc files.
5240
5241 2002-03-12  Tom Rix  <trix@redhat.com>
5242
5243         * collect2.c (resolve_lib_name): Move outside of
5244         OBJECT_FORMAT_COFF ifdef.
5245         (ignore_library): Same.
5246
5247 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5248
5249         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
5250
5251 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5252
5253         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
5254         to function_section before writing out the constant pool.
5255
5256 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
5257
5258         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
5259         zero_constant.
5260         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
5261
5262 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
5263
5264         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
5265         (adddi3): Likewise.
5266         (movdf): Likewise.
5267         (movdi): Likewise.
5268         (cmpsi splitter): Likewise.
5269         (modsi3): Fail if <= 0.
5270         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
5271         redundant test when HOST_BITS_PER_WIDE_INT != 32.
5272         (reg_or_sub_cint64_operand): Likewise.
5273         (num_insns_constant_wide): Optimize sign extension.
5274         (rs6000_legitimize_address): Likewise.
5275
5276 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
5277
5278         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5279         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5280
5281 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
5282
5283         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
5284         address calculation.
5285
5286 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
5287
5288         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
5289         scratch register to DImode / TImode.
5290         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
5291         register used does not overlap the target.
5292
5293 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5294
5295         * Makefile.in (debug.o): Depend on debug.h.
5296         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
5297         * debug.c (do_nothing_debug_hooks): Likewise.
5298         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
5299         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
5300         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
5301         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
5302         * dwarfout.c (dwarf_debug_hooks): Likewise.
5303         * integrate.c (output_inline_function): Likewise.
5304         * objc/objc-act.c (synth_module_prologue): Likewise.
5305         * sdbout.c (sdb_debug_hooks): Likewise.
5306         * toplev.c (debug_hooks): Likewise.
5307         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5308
5309 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5310
5311         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
5312         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
5313         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
5314         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
5315         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
5316         * defaults.h (POINTER_SIZE): Define.
5317         * doc/tm.texi (POINTER_SIZE): Document default.
5318
5319 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5320
5321         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
5322
5323 2002-03-11  Richard Henderson  <rth@redhat.com>
5324
5325         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
5326         if rebuild_label_notes_after_reload.
5327
5328 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
5329
5330         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
5331         emit pic register load if "internal" visibility.
5332         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
5333         (cris_expand_builtin_va_arg): Do all computations on trees.
5334
5335 2002-03-11  Richard Henderson  <rth@redhat.com>
5336
5337         * rtlanal.c: Include recog.h.
5338         (keep_with_call_p): Fix thinko.
5339         * Makefile.in (rtlanal.o): Update dependencies.
5340
5341 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
5342
5343         * genflags.c (gen_insn): Use IS_VSPACE.
5344         * genoutput.c (output_insn_data): Likewise.
5345         (process_template): Likewise.
5346
5347 2002-03-11  Richard Henderson  <rth@redhat.com>
5348
5349         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
5350
5351 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
5352
5353         * Makefile.in: Update.
5354         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
5355         Update documentation.
5356         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
5357         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
5358
5359 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
5360
5361         * Makefile.in: Give texi2pod its input file as a command line
5362         argument, not on stdin.
5363
5364 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
5365             Daniel Berlin  <dan@dberlin.org>
5366
5367         C++ alias analysis improvement.
5368         * alias.c (record_component_aliases): Record aliases for base
5369         classes too.
5370
5371 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
5372
5373         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
5374
5375 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
5376
5377         * toplev.c (vms_fopen): Remove, not needed.
5378
5379         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
5380
5381         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
5382
5383         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
5384         for FP, already done later.
5385
5386         * toplev.c (debug_args): Add entry for VMS_DEBUG.
5387         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
5388
5389 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
5390
5391         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
5392         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
5393         LARGEST_EXPONENT_IS_NORMAL for the given mode.
5394         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
5395         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
5396         (ediv, emul, eldexp, esqrt): Likewise.
5397         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
5398         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
5399         (saturate): New function.
5400         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
5401         (make_nan): Use a saturation value instead of a NaN if
5402         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
5403         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
5404         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
5405         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
5406         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
5407         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
5408         !ROUND_TOWARDS_ZERO.
5409         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
5410         (ROUND_TOWARDS_ZERO): Document.
5411
5412 2002-03-11  Andreas Jaeger  <aj@suse.de>
5413
5414         * cfg.c (dump_flow_info): Remove unused variable.
5415
5416 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
5417
5418         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
5419         computations on trees.
5420
5421 2002-03-10  Richard Henderson  <rth@redhat.com>
5422
5423         PR 5693:
5424         * reload.c (copy_replacements_1): New.
5425         (copy_replacements): Use it to recurse through the rtx.
5426
5427 2002-03-10  Richard Henderson  <rth@redhat.com>
5428
5429         * loop.c (strength_reduce): Compute number of iterations as
5430         unsigned HOST_WIDE_INT.
5431
5432 2002-03-10  Richard Henderson  <rth@redhat.com>
5433
5434         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
5435         to move away from the end of the block.
5436
5437 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
5438
5439         PR preprocessor/5899
5440         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
5441
5442 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5443
5444         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
5445
5446         * attribs.c (decl_attributes): Fix signed/unsigned warning.
5447
5448 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
5449
5450         * config/mmix/mmix.c: Improve comments.
5451         (mmix_target_asm_function_prologue): Drop variable
5452         empty_stack_frame.  Don't allocate unused slot above fp.
5453         (mmix_target_asm_function_epilogue): Mirror prologue changes.
5454         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
5455         brace in first column.
5456         (enum reg_class): Ditto.
5457         (FIRST_PARM_OFFSET): Now 0.
5458         (USER_LABEL_PREFIX): Remove #if 0:d definition.
5459
5460 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5461
5462         * combine.c (make_extraction): Fix error in last change.
5463
5464 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5465
5466         * c4x.c (c4x_fp_reglist): Const-ify.
5467         * cris.c (cris_print_operand): Likewise.
5468         * i386.c (ix86_va_arg): Likewise.
5469         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
5470         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
5471         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
5472         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
5473         * mcore.h (regno_reg_class): Likewise.
5474         * mips.c (gen_int_relational): Likewise.
5475         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
5476         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
5477         * pdp11.c (move_costs): Likewise.
5478         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
5479         * s390.c (s390_branch_condition_mnemonic, regclass_map):
5480         Likewise.
5481         * s390.h (regclass_map): Likewise.
5482         * sh.c (shift_amounts): Likewise.
5483         * sh.md (rotlsi3): Likewise.
5484
5485 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
5486
5487         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
5488         (ne0+5): Use new clobber to generate proper shift pattern.
5489         Patch by Michael Matz <matz@kde.org>.
5490
5491 2002-03-09  Andreas Schwab  <schwab@suse.de>
5492
5493         * gcc.c (validate_all_switches): Also handle `%W{...}'.
5494
5495 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
5496
5497         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
5498
5499 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
5500
5501         PR middle-end/5877
5502         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
5503         even for non-representable constants.
5504
5505 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5506
5507         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
5508         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
5509         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
5510         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
5511         (pop_function_context): Compute MAY_SHARE parameter for
5512         fixup_var_refs.
5513         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
5514         (gen_mem_addressof): Call fixup_var_refs with new parm.
5515
5516         * combine.c (make_extraction): Don't make extension of CONST_INT.
5517
5518 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
5519
5520         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
5521         in o32 and o64 ABIs.
5522         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
5523         but getting fixed-size structs passed in registers regardless of
5524         padding in o32 and o64 ABIs.
5525
5526         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
5527         offset before loading address of argument passed by transparent
5528         reference.
5529
5530 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5531
5532         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
5533
5534 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
5535
5536         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
5537         marker such that registers after it are saved.
5538
5539 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5540
5541         * sparc.c (arith_4096_operand): Fix error in last change.
5542
5543 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
5544
5545         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
5546         defaults for MEABI.
5547
5548 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
5549
5550         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
5551         vectors.
5552
5553 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
5554
5555         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
5556
5557 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
5558
5559         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
5560         removed; fix return value.
5561         * combine.c (combine_instructions): Dirtify blocks where we failed to
5562         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
5563         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
5564
5565 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5566
5567         * gcse.c (insert_insn_end_bb): Fix typo in last change.
5568
5569 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
5570
5571         * recog.c (peephole2_optimize): Re-distribute EH edges.
5572
5573 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
5574
5575         * expr.c (expand_expr): Use unsave lang hook.
5576         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
5577         (LANG_HOOKS_INITIALIZER): Update.
5578         * langhooks.h (struct lang_hooks): New hook unsave.
5579         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
5580         (unsave_expr_1): Remove unused lang_unsave_expr_now.
5581         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
5582         (unsave_expr_now): Remove.
5583         * tree.h (unsave_expr_now, lang_unsave,
5584         lang_unsave_expr_now): Remove.
5585         (lhd_unsave): New.
5586
5587 2002-03-08  Andreas Jaeger  <aj@suse.de>
5588
5589         * flow.c (propagate_block_delete_insn): Remove unused variable.
5590
5591 2002-03-08  Kazu Hirata  <kazu@hxi.com>
5592
5593         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
5594         insn length for memory load/store.
5595
5596 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5597
5598         * doc/install.texi (--with-libiconv-prefix): Document.
5599
5600 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
5601
5602         * doc/sourcebuild.texi: Fix typo.
5603
5604 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
5605
5606         PR c/3711
5607         * builtins.c (std_expand_builtin_va_arg): Do all computations on
5608         trees.
5609
5610 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5611
5612         * rtl.c (copy_most_rtx): Move from here ...
5613         * emit-rtl.c (copy_most_rtx): ... to here.
5614
5615 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
5616
5617         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
5618         SUBTARGET_CPP_SIZE_SPEC.
5619         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
5620
5621         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
5622
5623 2002-03-07  Matt Hiller  <hiller@redhat.com>
5624
5625         * gensupport.c (first_dir_md_include): Renamed from include;
5626         change all references.
5627         (last_dir_md_include): Renamed from last_include; change all
5628         references.
5629         (init_md_reader): Unconditionally initialize base_dir whether or
5630         not filename is a relative path.
5631
5632 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
5633
5634         * config/fp-bit.c (_unord_f2): Compile it in even if
5635         US_SOFTWARE_GOFAST is enabled.
5636
5637         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
5638         NULL_RTX.  Set all HFmode operations as NULL_RTX.
5639         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
5640         NULL_RTX, try reversing the comparison and the operands.
5641
5642 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
5643
5644         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
5645         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
5646         and MATCH_OP_DUP.
5647
5648 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
5649
5650         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
5651
5652 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
5653
5654         * basic-block.h (fixup_abnormal_edges): Declare.
5655         * reload1.c (fixup_abnormal_edges): New function.
5656         * reg-stack.c (convert_regs): Use it.
5657
5658         * gcse.c (insert_insn_end_bb): Handle trapping insns.
5659
5660         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
5661
5662 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
5663
5664         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
5665         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
5666         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
5667         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
5668         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
5669         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
5670         unless x and y could be infinite.
5671         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
5672         Check that the common type of both arguments is a real, even for
5673         targets without unordered comparisons.  Allow an integer argument
5674         to be compared against a real.
5675         (expand_tree_builtin): Use expand_unordered_cmp.
5676         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
5677         * cse.c (fold_rtx): Likewise.  Fix indentation.
5678         * fold-const.c (fold_real_zero_addition_p): New.
5679         (fold): Use it, and the new HONOR_... macros.
5680         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
5681         * jump.c (reversed_comparison_code_parts): After searching for
5682         the true comparison mode, use HONOR_NANS to decide whether it
5683         can be safely reversed.
5684         (reverse_condition_maybe_unordered): Remove IEEE check.
5685         * simplify-rtx.c (simplify_binary_operation): Use the new macros
5686         to decide which simplifications are valid.  Allow the following
5687         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
5688         and (a - -b) to (a + b).
5689         (simplify_relational_operation): Use HONOR_NANS.
5690         * doc/tm.texi: Document the MODE_HAS_... macros.
5691
5692 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
5693
5694         * combine.c (simplify_comparison): If simplifying a logical shift
5695         right and compare with constant, force the comparison to unsigned.
5696
5697 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
5698
5699         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
5700
5701         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
5702         -mabi=no-altivec
5703         (alt_reg_names): Remove % for vrsave.
5704
5705 2002-03-06  Richard Henderson  <rth@redhat.com>
5706
5707         PR optimization/5844
5708         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
5709         if used indicates we've already emitted one copy of an operand.
5710         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
5711         (gen_split): Supply a non-null used.
5712
5713 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
5714
5715         * reload1.c (reload): Unshare all rtl after reload is done.
5716
5717         * simplify-rtx.c (simplify_plus_minus): Do not abort,
5718         but simply fail if the expression is too complex to simplify.
5719         (simplify_gen_binary): Handle simplify_plus_minus failures.
5720
5721 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
5722
5723         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
5724         consistently call delete_trivially_dead_insns after CSE and GCSE;
5725         fix DFI_life dumping; do jump threading after liveness; do crossjumping
5726         after liveness2; update comment in last crossjumping.
5727         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
5728
5729 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
5730
5731         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
5732         after completing fast dead code elimination.
5733
5734         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
5735         COMPARE operator.
5736
5737 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
5738
5739         * version.c:  Fix misplaced leading blanks on first line.
5740
5741 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
5742
5743         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
5744
5745 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
5746
5747         * cfgcleanup.c (mentions_nonequal_regs): New function.
5748         (thread_jump): Use it.
5749         * toplev.c (rest_of_compilation): Run jump threading after
5750         liveness.
5751
5752 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
5753
5754         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
5755         patch.
5756
5757 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
5758
5759         * predict.c (estimate_bb_frequencies): Do not reload the
5760         frequencies from notes.
5761
5762 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
5763
5764         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
5765         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
5766
5767         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
5768         delete_noop_moves): Return indeger.
5769         * flow.c (ndead): New variable.
5770         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
5771         BB argument; update callers.
5772         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
5773         (life_analysis): Do not call purge_all_dead_edges.
5774         (update_life_info): Return number of deleted insns; print statistics.
5775         (update_life_info_in_dirty_blocks): likewise.
5776         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
5777         return number of insns deleted.
5778
5779         * cse.c: Include timevar.h
5780         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
5781         iterate until stabilizes; print statistics; return number of killed
5782         insns.
5783         * Makefile.in: (cse.o): Add timevar.h dependency
5784         * rtl.h (delete_trivially_dead_insns): New.
5785         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
5786         * toplev.c (rest_of_compilation): Update callers.
5787
5788         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
5789         (try_optimize_cfg): Do not update liveness.
5790         (cleanup-cfg): Loop until try_optimize_cfg and dead code
5791         removal stabilizes; use delete_trivially_dead_insns.
5792
5793         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
5794
5795 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
5796
5797         * cppmain.c (setup_callbacks): Disable #pragma and #ident
5798         callbacks when processing assembly language.
5799
5800 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5801
5802         * pa.h (ASM_FILE_END): Define.
5803         * som.h (ASM_FILE_END): Delete.
5804
5805         * pa.c (function_arg): Don't pass floats in general registers in
5806         indirect calls if TARGET_ELF32.
5807
5808 2002-03-05  Richard Henderson  <rth@redhat.com>
5809
5810         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
5811
5812 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
5813
5814         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
5815
5816 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
5817
5818         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
5819         -r command line.  Don't hide any symbols if not building
5820         shared libgcc.
5821
5822 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
5823
5824         * cfg.c (dump_flow_info): Warn about profile mismatches.
5825         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
5826         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
5827
5828 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
5829
5830         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
5831         wide volatile memory by parts.
5832
5833 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
5834
5835         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
5836         is NULL.
5837
5838 2002-03-05  Richard Henderson  <rth@redhat.com>
5839
5840         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
5841
5842 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
5843
5844         * toplev.c (documented_lang_options): Document more
5845         language-specific options.
5846         * doc/invoke.texi (Warning Options): Correct documentation for
5847         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
5848         * c-decl.c (c_decode_option): Use a table to handle warning options.
5849
5850 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
5851
5852         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
5853         parameter to mmix_encode_section_info.
5854         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
5855         relocatably.  Always produce ELF, not mmo if linking relocatably.
5856         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
5857         first is non-zero, don't add symbol prefix.
5858         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
5859         prototype accordingly.
5860
5861 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
5862
5863         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
5864
5865 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
5866
5867         * configure.in: Increase required makeinfo version to 4.1.
5868         * configure: Regenerate.
5869
5870 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
5871
5872         * .cvsignore: Remove *.info* and genrtl*; these files are generated
5873         elsewhere now.
5874
5875 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
5876
5877         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
5878         * doc/invoke.texi: Fix @math uses.
5879
5880 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
5881
5882         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
5883         removal
5884
5885 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
5886
5887         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
5888         (powerpc-*-eabisimaltivec*): Same.
5889
5890         * config/rs6000/t-ppcendian: New.
5891
5892 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5893
5894         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
5895         nonimmediate_src_operand and nonimmediate_lsrc_operand to
5896         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
5897
5898 2002-03-03  Richard Henderson  <rth@redhat.com>
5899
5900         * toplev.c (rest_of_decl_compilation): Revert last two changes.
5901
5902 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
5903
5904         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
5905         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
5906         tree.c, config/m68k/m68k.c:
5907         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
5908         REAL_ARITHMETIC blocks unconditional.  Delete some further
5909         #ifdef blocks predicated on REAL_ARITHMETIC.
5910         * flags.h, toplev.c: Delete remaining references to
5911         flag_pretend_float.
5912
5913         * doc/invoke.texi: Remove documentation of -fpretend-float.
5914         * doc/tm.texi: Describe the various REAL_* macros as provided by
5915         real.h, not by the target configuration files.
5916
5917         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
5918         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
5919         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
5920         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
5921         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
5922         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
5923         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
5924         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
5925         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
5926         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
5927         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
5928         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
5929         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
5930         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
5931         config/xtensa/xtensa.h:
5932         Do not define, undefine, or mention in comments any of
5933         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
5934         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
5935         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
5936         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
5937         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
5938         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
5939         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
5940         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
5941         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
5942
5943 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5944
5945         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
5946         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
5947         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
5948         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
5949         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
5950         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
5951         Delete.
5952         * defaults.h (BITS_PER_WORD): Define.
5953         * doc/tm.texi (BITS_PER_WORD): Document default value.
5954
5955         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
5956         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
5957         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
5958
5959 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5960
5961         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
5962         lieu of explicit sizeof/sizeof.
5963         * i386.c (override_options, ix86_init_mmx_sse_builtins,
5964         ix86_expand_builtin): Likewise.
5965         * mips.c (mips_add_gc_roots): Likewise.
5966         * mmix.c (mmix_output_condition): Likewise.
5967         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
5968         altivec_init_builtins): Likewise.
5969         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
5970         * cppexp.c (Nsuff, parse_number): Likewise.
5971         * cppinit.c (builtin_array_end): Likewise.
5972         * gcc.c (n_default_compilers, process_command): Likewise.
5973         * genpreds.c (output_predicate_decls): Likewise.
5974         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
5975         * lcm.c (N_ENTITIES): Likewise.
5976         * stor-layout.c (set_sizetype): Likewise.
5977
5978 2002-03-03  Richard Henderson  <rth@redhat.com>
5979
5980         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
5981         for types or labels.
5982
5983 2002-03-03  Richard Henderson  <rth@redhat.com>
5984
5985         * c-decl.c (start_decl): Initialized variables are not common.
5986
5987 2002-03-02  Per Bothner  <per@bothner.com>
5988
5989         * gcc.c (option_map):  Suport new --bootclasspath option.
5990         --CLASSPATH is now just an alias for --classpath.
5991
5992 2002-03-02  Richard Henderson  <rth@redhat.com>
5993
5994         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
5995         load if "internal" visibility.
5996         * doc/extend.texi: Document visibility meanings.
5997
5998 2002-03-02  Richard Henderson  <rth@redhat.com>
5999
6000         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
6001         to functions as well.
6002
6003 2002-03-02  Richard Henderson  <rth@redhat.com>
6004
6005         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
6006         (handle_visibility_attribute): Don't call assemble_visibility.
6007         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
6008         without asmspec.  Invoke assemble_alias when needed.
6009         * varasm.c (maybe_assemble_visibility): New.
6010         (assemble_start_function, assemble_variable, assemble_alias): Use it.
6011
6012 2002-03-02  Richard Henderson  <rth@redhat.com>
6013
6014         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
6015         invoke ENCODE_SECTION_INFO with first call flag.
6016
6017         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
6018         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
6019         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
6020         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
6021         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
6022         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
6023         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
6024         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
6025         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
6026         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
6027         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
6028         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
6029         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
6030         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
6031         config/mcore/mcore-protos.h, config/mcore/mcore.c,
6032         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
6033         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
6034         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
6035         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
6036         config/sh/sh.h, config/sparc/sparc.h,
6037         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
6038         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
6039         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
6040         FIRST argument.  As needed, examine it and do nothing.
6041
6042         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
6043         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
6044         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
6045
6046         * config/arm/t-pe (pe.o): Add dependencies.
6047
6048 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6049
6050         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
6051         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
6052         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
6053         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
6054         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
6055         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
6056         * defaults.h (BITS_PER_UNIT): Define.
6057         * doc/tm.texi (BITS_PER_UNIT): Document default value.
6058
6059 2002-03-02  Kazu Hirata  <kazu@hxi.com>
6060
6061         * config/h8300/h8300-protos.h: Add a prototype for
6062         compute_a_shift_length.
6063         * config/h8300/h8300.c (h8300_asm_insn_count): New.
6064         (compute_a_shift_length): Likewise.
6065         (h8300_adjust_insn_length): Do not adjust insn length of shift
6066         insns.
6067         * config/h8300/h8300.md (anonymous shift patterns): Use
6068         compute_a_shift_length.
6069
6070 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6071
6072         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
6073         trunc_int_for_mode.
6074
6075         * emit-rtl.c (offset_address): Call update_temp_slot_address.
6076
6077 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6078
6079         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
6080         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
6081         * flags.h (flag_zero_initialized_in_bss): Declare.
6082         * toplev.c (flag_zero_initialized_in_bss): New flag.
6083         (lang_independent_options): Add flag_zero_initialized_in_bss.
6084         * tree.c (initializer_zerop): New function.
6085         * tree.h (initializer_zerop): Declare.
6086         * varasm.c (assemble_variable): If we can emit bss, put zero
6087         initializers in the bss section.
6088
6089 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
6090
6091         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
6092         like more than one symbol per .weak directive.
6093
6094 2002-03-01  Richard Henderson  <rth@redhat.com>
6095
6096         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
6097         adjust argument_pointer by pretend_args_size.
6098         (ia64_va_start): Adjust va_start address by -pretend_args_size.
6099
6100 2002-03-01  Kazu Hirata  <kazu@hxi.com>
6101
6102         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
6103
6104 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
6105
6106         * toplev.c (rest_of_compilation): Delete dead jumptables before
6107         loop.
6108         * flow.c (delete_dead_jumptables): Make global.
6109         * rtl.h (delete_dead_jumptables): Declare.
6110
6111 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
6112
6113         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
6114         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
6115         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
6116
6117 2002-03-01  Kazu Hirata  <kazu@hxi.com>
6118
6119         * config/h8300/h8300-protos.h: Fix formatting.
6120         * config/h8300/h8300.c: Likewise.
6121         * config/h8300/h8300.h: Likewise.
6122
6123 2002-03-01  Kazu Hirata  <kazu@hxi.com>
6124
6125         * config/h8300/h8300.c (print_operand): Support 16-bit
6126         constant addresses.
6127         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
6128
6129 2002-02-28  Richard Henderson  <rth@redhat.com>
6130
6131         * expmed.c (store_bit_field): Prevent generation of CONCATs;
6132         pun complex values as integers; use gen_lowpart instead of
6133         gen_rtx_SUBREG.
6134         (extract_bit_field): Likewise.
6135
6136 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
6137             David Edelsohn  <edelsohn@gnu.org>
6138
6139         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
6140         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
6141         (SUPPORTS_WEAK): Likewise.
6142         * output.h (add_weak): Add tree param.
6143         * varasm.c (add_weak): Likewise.  Save decl.
6144         (struct weak_syms): Add decl field.
6145         (mark_weak_decls): New function.
6146         (init_varasm_once): ggc_add_root mark_weak_decls.
6147         (assemble_start_function): Use ASM_WEAKEN_DECL.
6148         (assemble_variable): Likewise.
6149         (assemble_alias): Likewise.
6150         (declare_weak): Pass decl to add_weak.
6151         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
6152         (remove_from_pending_weak_list): Declare and define for
6153         ASM_WEAKEN_DECL.
6154         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
6155         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
6156         * defaults.h (SUPPORTS_WEAK): Likewise.
6157         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
6158         .weak for code sym.  Do emit .size for descriptor sym.
6159         (ASM_DECLARE_FUNCTION_SIZE): Define.
6160         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
6161         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
6162         .lglobl unless TARGET_XCOFF.  Formatting fixes.
6163         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
6164         .weak for code sym.
6165         (HANDLE_PRAGMA_WEAK): Remove.
6166         (ASM_WEAKEN_LABEL): Remove.
6167         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
6168
6169 2002-03-01  Jason Merrill  <jason@redhat.com>
6170
6171         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
6172         (TARGET_EXPR_CLEANUP): New macro.
6173
6174 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
6175
6176         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
6177         to take ptr_extend into account as third type of extension.
6178         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
6179         fields used by SUBREG_PROMOTED_UNSIGNED_P.
6180         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
6181         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
6182         * calls.c (precompute_arguments): Use new macro.
6183         (expand_call): Ditto.
6184         * combine.c (nonzero_bits): Ditto.
6185         (record_promoted_value): Ditto.
6186         * expr.c (store_expr): Ditto.
6187         (expand_expr): Ditto.
6188         * function.c (assign_parms): Ditto.
6189
6190 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
6191
6192         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
6193         override -shared and -shared-libgcc.
6194
6195 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
6196
6197         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
6198         of "ultrasparc".
6199         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
6200         to be broken.
6201
6202 2002-02-28  Richard Henderson  <rth@redhat.com>
6203
6204         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
6205         4 cycle latency from MM producers.
6206         (ia64_internal_sched_reorder): Likewise with pipeline flush.
6207
6208 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
6209
6210         * mklibgcc.in: Don't use GNU make extension.
6211
6212 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
6213
6214         * c-parse.in (STATIC): New terminal.
6215         (scspec): New non-terminal.  Update productions accordingly.
6216         (program): Remove bogus ifc / end ifc.
6217         (array_declarator): Simplify production using STATIC.
6218
6219 2002-02-28  Jim Meyering  <meyering@lucent.com>
6220
6221         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
6222         \a still means TARGET_BELL.
6223
6224 2002-02-28  Richard Henderson  <rth@redhat.com>
6225
6226         * haifa-sched.c (sched_emit_insn): New.
6227         (schedule_block): Use last_scheduled_insn to track last insn.
6228         * sched-int.h (sched_emit_insn): Prototype.
6229         * config/ia64/ia64.c (last_issued): Remove.
6230         (ia64_variable_issue): Don't set it.
6231         (nop_cycles_until): Use sched_emit_insn.
6232
6233 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
6234
6235         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
6236         extended constants.
6237
6238 2002-02-28  Kazu Hirata  <kazu@hxi.com>
6239
6240         * config/h8300/h8300.c: Fix formatting.
6241         * config/h8300/h8300.h: Likewise.
6242
6243 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6244
6245         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
6246         which may overwrite the high byte of the frame pointer.
6247
6248 2002-02-28  Bo Thorsen  <bo@suse.de>
6249
6250         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
6251         (STARTFILE_SPEC): Add 64 bit files.
6252         (ENDFILE_SPEC): Likewise.
6253
6254 2002-02-28  Jason Merrill  <jason@redhat.com>
6255
6256         * c-decl.c (finish_function): Only warn about missing return
6257         statement with -Wreturn-type.
6258
6259 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
6260
6261         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
6262
6263         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
6264         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
6265
6266 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
6267
6268         * basic-block.h (BB_REACHABLE): Renumber.
6269         (BB_DIRTY, BB_NEW): New flags.
6270         (clear_bb_flags): Declare.
6271         (update_life_info_in_dirty_blocks): Declare.
6272         * cfg.c (clear_bb_flags): New function.
6273         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
6274         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
6275         reorder_insns, emit_insn_after): Mark block as dirty.
6276         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
6277         (update_life_info_in_dirty_blocks): New function.
6278         * recog.c (apply_change_group): Dirtify block.
6279
6280         * cse.c (cse_insn): Reorder emitting of jump insn to keep
6281         cfg consistent.
6282         * gcse.c (delete_null_pointer_checks): Likewise.
6283
6284         * toplev.c (dump_file_index): Move cse2 after bp,
6285         add DFI_null
6286         (dump_file_info): Similary.
6287         (rest_of_compilation): Avoid most of CFG rebuilds;
6288         do first if converision after null pointer checks, do cse2
6289         after branch prediction; avoid full liveness rebuild after
6290         initializing subregs.
6291         * invoke.texi (-d options): Document -du, renumber.
6292
6293         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
6294         (notice_new_block): Do not set BB_UPDATE_LIFE.
6295         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
6296          merge_blocks_move_successor_nojumps, merge_blocks,
6297          try_crossjump_to_edge): Likewise.
6298         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
6299         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
6300         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
6301         (merge_of_block): Do not use life_data_ok.
6302         (find_if_case_1): Do not use SET_UPDATE_LIFE.
6303         (if_convert): Use BB_DIRTY mechanizm to update life.
6304         * lcm.c (optimize_mode_switching): Update
6305         update_life_info_in_dirty_blocks
6306
6307 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
6308
6309         * Makefile.in (integrate.o): Update.
6310         * c-decl.c (copy_lang_decl): Rename.
6311         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
6312         * integrate.c: Include langhooks.h.
6313         (copy_decl_for_inlining): Update to use langhook.
6314         * langhooks-def.h (lhd_do_nothing_t,
6315         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
6316         (LANG_HOOKS_INITIALIZER): Update.
6317         * langhooks.c (lhd_do_nothing_t): New.
6318         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
6319         * tree.h (copy_lang_decl): Remove.
6320 objc:
6321         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
6322
6323 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
6324
6325         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
6326         POST_DEC, and POST_MODIFY.
6327
6328 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
6329
6330         * c-typeck.c (digest_init): Remove unused parameter; all
6331         callers changed.
6332
6333 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
6334
6335         * expmed.c (expand_shift): Correctly test for low part of a
6336         subreg.
6337
6338 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
6339
6340         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
6341         insn UIDs with insn addresses.
6342
6343 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
6344
6345         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
6346         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
6347         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
6348         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
6349         gcc.c, toplev.c: Delete code implementing -traditional mode.
6350
6351         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
6352         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
6353         Document removal of -traditional mode for compilation, and
6354         remove documentation only relevant to that mode.
6355
6356         * config/nextstep.h, config/ptx4.h, config/svr4.h,
6357         config/convex/convex.h, config/d30v/d30v.h,
6358         config/i386/dgux.h, config/i386/osf1elf.h,
6359         config/i386/osfelf.h, config/i386/osfrose.h,
6360         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
6361         config/m68k/hp310.h, config/m88k/dgux.h,
6362         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
6363         config/m88k/m88k.h, config/m88k/openbsd.h,
6364         config/mips/abi64.h, config/mips/osfrose.h,
6365         config/mips/svr4-5.h, config/mips/svr4-t.h,
6366         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
6367         config/stormy16/stormy16.h: Remove all references to
6368         -traditional from target specs.  Delete all mention of the
6369         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
6370         delete a couple of commented-out definitions of
6371         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
6372         to -traditional.
6373
6374         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
6375         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
6376
6377 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
6378
6379         * mklibgcc.in: Don't use \n in a line subject to
6380         interpretation by echo.
6381
6382 2002-02-27  Graham Stott  <grahams@redhat.com>
6383
6384         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
6385         Constify NAME.
6386
6387         * loop.c (prescan_loop): Handle PARALLEL.
6388
6389         * unroll.c (loop_iterations): Return 0 if the add_val for
6390         a BIV is REG.
6391
6392         * final.c (output_operand_lossage): Constify PFX_STR.
6393
6394         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
6395
6396 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
6397
6398         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
6399         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
6400
6401 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
6402
6403         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
6404
6405 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6406
6407         * cpplex.c (_cpp_lex_token): Handle directives in macro
6408         arguments.
6409         * cpplib.c (_cpp_handle_directive): Save and restore state
6410         if parsing macro args when entering a directive.
6411         * cppmacro.c (collect_args): No need to handle directives
6412         in macro arguments.
6413         (enter_macro_context, replace_args): Use the original macro
6414         definition in case it was redefined whilst collecting arguments.
6415 doc:
6416         * cpp.texi: Update.
6417
6418 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
6419
6420         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
6421         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
6422         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
6423         method on AIX.
6424         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
6425         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
6426         (load_toc_v4_PIC_2): Same.
6427
6428 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
6429
6430         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
6431
6432 2002-02-26  Richard Henderson  <rth@redhat.com>
6433
6434         * config/alpha/alpha.md (ashldi_se): Re-enable.
6435
6436 2002-02-26  Richard Henderson  <rth@redhat.com>
6437
6438         * config/alpha/alpha.c (alpha_encode_section_info): Examine
6439         MODULE_LOCAL_P; improve commentary.
6440
6441 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
6442
6443         * doc/cpp.texi: Clarify documentation of relationship between
6444         #line and #include.
6445
6446 2002-02-26  Kazu Hirata  <kazu@hxi.com>
6447
6448         * config/h8300/h8300-protos.h: Update the prototype for
6449         compute_logical_op_length.  Add the prototype for
6450         compute_logical_op_cc.
6451         * config/h8300/h8300.c (compute_logical_op_length): Figure out
6452         code from operands.
6453         (compute_logical_op_cc): New.
6454         * config/h8300/h8300.md: Combine all the logical op patterns
6455         in HImode and SImode.  Use compute_logical_op_cc.
6456
6457 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
6458
6459         * config/i386/i386.c (print_operand): Don't append ATT-style
6460         length suffixs to x87 opcodes when in Intel mode.
6461
6462 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
6463
6464         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
6465         (init_emit_once): Update calls.
6466         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
6467         (init_syntax_once): Prototype.
6468
6469 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6470
6471         * pa-linux.h (LIB_SPEC): Update definition.
6472         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6473
6474 2002-02-26  Richard Henderson  <rth@redhat.com>
6475
6476         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
6477         if we emitted a stop bit.
6478
6479 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
6480
6481         * configure.in (libgcc_visibility): Substitute.
6482         * configure: Rebuilt.
6483         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
6484         defined symbols .hidden.
6485
6486 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
6487
6488         * attribs.c (c_common_attribute_table): Add visibility.
6489         (handle_visibility_attribute): New function.
6490         * varasm.c (assemble_visibility): New function.
6491         * output.h (assemble_visibility): Add prototype.
6492         * tree.h (MODULE_LOCAL_P): Define.
6493         * crtstuff.c (__dso_handle): Use visibility attribute.
6494         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
6495         for MODULE_LOCAL_P symbols too.
6496         * config/ia64/ia64.c (ia64_encode_section_info): Handle
6497         MODULE_LOCAL_P symbols the same way as local symbols.
6498         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
6499         into .sdata/.sbss by the user.
6500         * doc/extend.texi (Function Attributes): Document visibility
6501         attribute.
6502
6503 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
6504
6505         PR debug/5770
6506         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
6507         STRING_CST initializer spanning the whole variable without
6508         embedded zeros.
6509         If expand_expr returned MEM, don't use it.
6510
6511 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
6512
6513         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
6514         generate a die for the lexical block.
6515
6516 2002-02-26  Kazu Hirata  <kazu@hxi.com>
6517
6518         * config/h8300/h8300-protos.h: Add a prototype for
6519         compute_logical_op_length.
6520         * config/h8300/h8300.c (compute_logical_op_length): New.
6521         * config/h8300/h8300.md (anonymous logical patterns): Use
6522         compute_logical_op_length for length.
6523
6524 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
6525
6526         * dwarf2out.c (modified_type_die): Do not call type_main_variant
6527         for vectors.
6528         (gen_type_die): Same.
6529
6530         * attribs.c (handle_vector_size_attribute): Set debug information.
6531
6532 2002-02-26  Daniel Egger  <degger@fhm.edu>
6533
6534         * config/rs6000/rs6000.md: Swap define_insn attributes to
6535         fix incorrect generation of merge high instructions instead
6536         of merge low.
6537
6538 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
6539
6540         * c-typeck.c (really_start_incremental_init): Use
6541         bitsize_zero_node for vectors.
6542
6543 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
6544
6545         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
6546         ("*set_vrsave_internal"): Same.
6547
6548 2002-02-25  Richard Henderson  <rth@redhat.com>
6549
6550         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
6551         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
6552
6553 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
6554
6555         PR target/5755
6556         * config/i386/i386.c (ix86_return_pops_args): Only pop
6557         fake structure return argument if it was passed on the stack.
6558
6559 2002-02-25  Jason Merrill  <jason@redhat.com>
6560
6561         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
6562         RESULT_DECL.
6563
6564 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
6565
6566         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
6567         link with shared_name only.
6568         * doc/invoke.texi (Link Options): Document new behavior.
6569
6570 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
6571
6572         * c-typeck.c (push_init_level): Handle vectors.
6573
6574 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
6575
6576         * config/sparc/sparc.c (const64_high_operand): Zero-extend
6577         operands of SPARC_SETHI_P.
6578         (input_operand): Likewise.
6579         (sparc_emit_set_const32): Likewise.
6580         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
6581         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
6582         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
6583         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
6584         (movdi_insn_sp64_vis): Likewise.
6585         (movdi split, movdf split): Use SETHI32.
6586         * doc/md.texi: Document SPARC constraints L, M and N.
6587
6588 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
6589
6590         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
6591         ("*set_vrsave_internal"): use mfspr for Darwin.
6592
6593         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
6594         gen_get_vrsave_internal.
6595
6596 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6597
6598         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
6599
6600 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6601
6602         * cpplex.c (cpp_interpret_charconst): Get signedness or
6603         otherwise of wide character constants correct.
6604         * cppexp.c (lex): Get signedness of wide charconsts correct.
6605
6606 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6607
6608         * optabs.c (widen_operand): Only call convert_modes for
6609         promoted SUBREG if signedness matches.
6610         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
6611
6612 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
6613
6614         * cpplib.c (glue_header_name): Use local buffer to build up
6615         header name.
6616
6617 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
6618
6619         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
6620
6621 2002-02-23  Kazu Hirata  <kazu@hxi.com>
6622
6623         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
6624         H8/300[HS] separately.
6625         * config/h8300/h8300.md: Remove the early clobber constraint
6626         from bit field patterns.
6627
6628 2002-02-23  Kazu Hirata  <kazu@hxi.com>
6629
6630         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
6631         register_operand.
6632         (mulhisi3): Likewise.
6633         (umulqisi3): Likewise.
6634         (umulhisi3): Likewise.
6635
6636 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
6637
6638         * cppinit.c (output_deps): Correct test for stdout output.
6639         (init_dependency_output): Cure warning.
6640
6641 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6642
6643         * expr.c (store_expr): When converting expression to promoted
6644         equivalent type, allow using SUBREG_REG of TARGET as the target
6645         of the expansion of EXP.
6646         * loop.c (basic_induction_var, case SUBREG): Always look inside.
6647         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
6648         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
6649         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
6650         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
6651
6652 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
6653
6654         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
6655         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
6656         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
6657
6658 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
6659
6660         PR optimization/5747
6661         * loop.c (scan_loop): Update reg info if move_movables created new
6662         pseudos.
6663
6664 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
6665
6666         * gcc.c (init_gcc_spec): Revert last change.
6667
6668 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
6669
6670         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
6671         gpc_reg_operand constraint.
6672
6673 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
6674
6675         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
6676         Simplify comparison of `low'.
6677         (add_operand): Fix formatting.
6678         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
6679         (mask_operand): Disallow mask to wrap in 64-bit mode.
6680         (rs6000_stack_info): Remove redundant test setting push_p.
6681         (output_toc): Fix formatting.
6682         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
6683         cc_reg_not_cr0_operand constraint.
6684         (booldi3, boolcdi3 splitters): Same.
6685
6686 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
6687
6688         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
6689
6690 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
6691
6692         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
6693         gcc invoked with -shared-libgcc.
6694
6695 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
6696
6697         PR c++/5748
6698         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
6699         decl if any of elements was TREE_USED.
6700
6701 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
6702
6703         * config/sparc/sol2.h: Don't include sys/mman.h.
6704         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
6705         (arith_4096_operand): Don't throw high bits away.
6706         (const64_operand): Take sign extension of CONST_INTs into account.
6707         (const64_high_operand, sparc_emit_set_const32): Likewise.
6708         (GEN_HIGHINT64): Likewise.
6709         (sparc_emit_set_const64_quick1): Likewise.
6710         (const64_is_2insns): Likewise.
6711         (print_operand): Use trunc_int_for_mode for sign extension.
6712         * config/sparc/sparc.h (SMALL_INT32): Likewise.
6713         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
6714         chars.  Assume CONST_INT is already properly sign-extended.
6715         (movdi split): Sign-extend each SImode part.
6716         (andsi3 split): Don't mask high bits off, so that result
6717         remains properly sign-extend.
6718         (iorsi3 split): Likewise.
6719         (xorsi3 split): Likewise.
6720
6721 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
6722
6723         * fold-const.c (fold): Fix typo in comments.
6724
6725 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
6726
6727         * Makefile.in (langhooks.o): Update dependencies.
6728
6729 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
6730
6731         * langhooks.c: Include flags.h.
6732
6733 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
6734
6735         * testsuite/gcc.dg/attr-alwaysinline.c: New.
6736
6737         * c-common.c (c_common_post_options): Set inline trees by
6738         default.
6739
6740         * doc/extend.texi (Function Attributes): Document always_inline
6741         attribute.
6742         Update documentation about inlining when not optimizing.
6743
6744         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
6745
6746         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
6747         unless DECL_ALWAYS_INLINE.
6748
6749         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
6750         unless DECL_ALWAYS_INLINE.
6751         (c_disregard_inline_limits): Disregard if always_inline set.
6752
6753         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
6754         Disregard if always_inline set.
6755         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
6756         unless DECL_ALWAYS_INLINE.
6757
6758         * attribs.c (handle_always_inline_attribute): New.
6759         (c_common_attribute_table): Add always_inline.
6760
6761         * config/rs6000/altivec.h: Add prototypes for builtins
6762         requiring the always_inline attribute.
6763
6764 2002-02-21  Eric Christopher  <echristo@redhat.com>
6765
6766         * expmed.c (store_bit_field): Try to simplify the subreg
6767         before generating a new one when when the mode size of
6768         value is less than maxmode.
6769
6770 2002-02-21  Richard Henderson  <rth@redhat.com>
6771
6772         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
6773         than gen_rtx_PLUS to form the sum.
6774         * explow.c (force_reg): Rearrange to not allocate new pseudo
6775         when force_operand returns a register.
6776         * expr.c (expand_assignment): Allow offset_rtx expansion to
6777         return a sum.  Do not force addresses into registers.
6778         (expand_expr): Likewise.
6779         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
6780         to canonicalize arithmetic that didn't simpify.
6781         (simplify_plus_minus): New argument force; update
6782         all callers.  Don't split CONST unless we can do something with it,
6783         and wouldn't lose the constness of the operands.
6784
6785         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
6786         that we generated earlier.
6787
6788 2002-02-21  Tom Tromey  <tromey@redhat.com>
6789
6790         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6791         (output_line_info): Use constant `1', with a long explanatory
6792         comment.
6793         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
6794
6795 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
6796
6797         * jump.c (redirect_jump): If old label has no UID, don't try to
6798         delete it.
6799
6800 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
6801
6802         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
6803         If input is constant, do shifts at compile time.
6804
6805 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
6806
6807         * doc/extend.texi: Fix some more overfull hboxes.
6808
6809 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
6810
6811         PR optimization/4994
6812         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
6813         register moves.
6814
6815 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
6816
6817         PR c++/4574
6818         * expr.h (expand_and): Add mode argument.
6819         * expmed.c (expand_and): Add mode argument.
6820         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
6821         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
6822         * except.c (expand_builtin_extract_return_addr): Likewise.
6823         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
6824         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
6825         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
6826         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
6827         * config/c4x/c4x.md: Use GEN_INT (x) instead of
6828         gen_rtx (CONST_INT, VOIDmode, x).
6829
6830 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
6831
6832         PR c/4697:
6833         * stmt.c (warn_if_unused_value): Move side effects test once more.
6834
6835 2002-02-20  Torbjorn Granlund  <tege@swox.com>
6836
6837         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
6838         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
6839
6840 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
6841
6842         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
6843         SUBREG or ZERO_EXTEND.
6844
6845 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
6846
6847         * sh.h (current_function_anonymous_args): Remove.
6848         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
6849         of current_function_varargs and current_function_stdarg is set.
6850         * sh.c (sh_expand_prologue): Check current_function_varargs /
6851         current_function_stdarg / TARGET_SH5 instead of
6852         current_function_anonymous_args.
6853
6854         * sh64.h (TARGET_VERSION): Define.
6855
6856 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
6857
6858         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
6859         VRSAVE_REGNO on TARGET_ALTIVEC.
6860
6861 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
6862
6863         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
6864         bits of SImode const_int.
6865         (includes_rshift_p): Likewise.
6866         (print_operand): Call mask_operand and mask64_operand with correct
6867         mode.
6868         (rs6000_output_function_epilogue): Pad traceback table to word.
6869         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
6870         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
6871         mask64_operand with correct mode.
6872         (FUNCTION_ARG_REGNO_P): Correct parentheses.
6873
6874 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
6875
6876         PR debug/4461
6877         * varasm.c (get_pool_constant_mark): New.
6878         * rtl.h (get_pool_constant_mark): Add prototype.
6879         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
6880         be represented if it has not been output.
6881
6882 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
6883
6884         * combine.c (do_SUBST): Sanity check substitutions of
6885         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
6886         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
6887         CONST_INT into its operand.
6888         (known_cond): Likewise, for ZERO_EXTEND.
6889         * simplify-rtx.c (simplify_unary_operation): Fix condition to
6890         allow for simplification of wide modes.  Reject CONST_INTs in
6891         ZERO_EXTEND when their actual mode is not given.
6892
6893 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
6894
6895         * c-decl.c (pushdecl): If no global declaration is found for an
6896         extern declaration in block scope, try a limbo one.
6897
6898 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
6899
6900         PR c++/4401
6901         * c-common.c (pointer_int_sum): Moved from...
6902         * c-typeck.c (pointer_int_sum): ...here.
6903         * c-common.h (pointer_int_sum): Add prototype.
6904
6905 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
6906
6907         PR c++/5713
6908         * c-decl.c (duplicate_decls): Return 0 if issued error about
6909         redeclaration.
6910
6911 2002-02-20  Roger Sayle  <roger@eyesopen.com>
6912             Jakub Jelinek  <jakub@redhat.com>
6913
6914         PR c/4389
6915         * tree.c (host_integerp): Ensure that the constant integer is
6916         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
6917         when pos is zero or non-zero respectively.  Clarify comment.
6918         * c-format.c (check_format_info_recurse): Fix host_integerp
6919         usage; the pos argument should be zero when assigning to a
6920         signed HOST_WIDE_INT.
6921
6922 2002-02-20  Richard Henderson  <rth@redhat.com>
6923
6924         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
6925         of the operand, rather than assuming TImode.
6926         (ix86_expand_binop_builtin): Cope with commutative patterns
6927         using nonimmediate_operand for both operands.
6928         (ix86_expand_timode_binop_builtin): Likewise.
6929         (ix86_expand_store_builtin): Validate operand 1.
6930         (ix86_expand_unop1_builtin): Likewise.
6931
6932 2002-02-20  Philip Blundell  <philb@gnu.org>
6933
6934         PR 5705
6935         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
6936
6937 2002-02-20  Richard Henderson  <rth@redhat.com>
6938
6939         PR c/5615
6940         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
6941
6942 2002-02-20  Tom Tromey  <tromey@redhat.com>
6943
6944         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6945         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6946         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6947         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6948         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
6949         unconditionally.
6950
6951 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
6952
6953         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
6954           for (const_int 0) in X not just INTVAL.
6955
6956 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
6957
6958         * doc/extend.texi: Avoid or reduce overfull hboxes.
6959
6960 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
6961
6962         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
6963         operations if the field does not start at a mode boundary.
6964
6965 2001-02-20      Joel Sherrill <joel@OARcorp.com>
6966
6967         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
6968         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
6969         Also done for -Acpu and -Amachine.
6970
6971 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
6972
6973         * cppinit.c (init_dependency_output): Take deps output file
6974         from -o if none given with -MF.  Suppress normal output.
6975         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
6976         * doc/cpp.texi, doc/invoke.texi: Update.
6977
6978 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
6979
6980         * toplev.c (output_quoted_string): Write unprintable
6981         characters with octal escapes.
6982
6983 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
6984
6985         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
6986         really_call_used[VRSAVE_REGNO] if not Altivec.
6987
6988 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
6989
6990         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
6991         MODE_MASK.
6992         (constant_pool_expr_1): Fix formatting.
6993         (rs6000_legitimize_reload_address): Likewise.
6994
6995 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6996
6997         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
6998         now that we have one.
6999
7000 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
7001
7002         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
7003         end of first block of bitfields (which was only seven bits);
7004         rename dummy to unused_1; remove comment which is no longer true.
7005
7006 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
7007
7008         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
7009
7010 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
7011
7012         PR 5399
7013         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
7014         if generating PIC.
7015
7016         PR 5054
7017         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
7018         arm_is_longcall_p rather than inspecting call-type cookie
7019         directly.
7020         (call_value_insn) [TARGET_THUMB]: Likewise.
7021
7022 2002-02-19  Graham Stott  <grahams@redhat.com>
7023
7024         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
7025
7026 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
7027
7028         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
7029         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
7030         (FP_SAVE_INLINE): Delete.
7031
7032         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
7033         * config/rs6000/eabi.asm: Remove ABI save restore routines.
7034         * config/rs6000/t-ppccomm: Build crtsavres.o.
7035         * config/rs6000/crtsavres.asm: New file.
7036
7037 2002-02-19  Philip Blundell  <philb@gnu.org>
7038
7039         * config/arm/arm.c (use_return_insn): Don't reject interrupt
7040         functions.
7041         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
7042         (output_return_instruction): Allow interrupt functions to return with
7043         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
7044         (arm_expand_prologue): Subtract 4 before stacking LR in an
7045         interrupt function.
7046
7047 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
7048
7049         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
7050         decl, not just FUNCTION_DECL.
7051         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
7052         (arm_assemble_integer): Likewise.
7053         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
7054         marked local.
7055
7056 2002-02-19  matthew green  <mrg@eterna.com.au>
7057
7058         * config.gcc (sparc-*-netbsdelf*): Enable target.
7059         (sparc64-*-netbsd*): New target.
7060         * config/sparc/netbsd-elf.h: New file.
7061         * config/sparc/t-netbsd64: New file.
7062
7063 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
7064
7065         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
7066
7067 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
7068
7069         * doc/invoke.texi: explicitly list the style guidelines that
7070         -Weffc++ checks for.
7071
7072 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
7073
7074         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
7075
7076 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
7077
7078         PR other/5718
7079         * gcc.c (cpp_unique_options): Treat -o as indicating object file
7080         only if not -E.  If -E, pass -o through to the preprocessor.
7081
7082 2002-02-19  Kazu Hirata  <kazu@hxi.com>
7083
7084         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
7085         register number with an appropriate macro.
7086
7087 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
7088
7089         * doc/rtl.texi (Constants): Close @code tag.
7090
7091 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
7092
7093         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
7094         ("mmx_uavgv4hi3"): Same.
7095         ("pmulhrwv4hi3"): Same.
7096
7097         * tree-inline.c (walk_tree): Handle vectors.
7098
7099         * c-common.c (constant_expression_warning): Handle vectors.
7100         (overflow_warning): Same.
7101
7102         * sched-deps.c (sched_analyze_2): Handle vectors.
7103
7104         * rtlanal.c (rtx_unstable_p): Handle vectors.
7105         (rtx_varies_p): Same.
7106         (count_occurrences): Same.
7107         (regs_set_between_p): Same.
7108         (modified_between_p): Same.
7109         (modified_in_p): Same.
7110         (volatile_insn_p): Same.
7111         (volatile_refs_p): Same.
7112         (side_effects_p): Same.
7113         (may_trap_p): Same.
7114         (inequality_comparisons_p): Same.
7115         (replace_regs): Same.
7116         (computed_jump_p_1): Same.
7117
7118         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
7119         argument.
7120         (inner_mode_array): New.
7121         (copy_rtx): Handle vectors.
7122         (copy_most_rtx): Same.
7123         (rtx_equal_p): Same.
7124         (get_mode_alignment): Adjust for vectors.
7125
7126         * resource.c (mark_referenced_resources): Handle vectors.
7127         (mark_set_resources): Same.
7128
7129         * reload1.c (eliminate_regs): Handle vectors.
7130         (elimination_effects): Same.
7131         (scan_paradoxical_subregs): Same.
7132
7133         * reload.c (subst_reg_equivs): Handle vectors.
7134
7135         * regrename.c (scan_rtx): Handle vectors.
7136
7137         * regclass.c (reg_scan_mark_refs): Handle vectors.
7138
7139         * recog.c (find_single_use_1): Handle vectors.
7140
7141         * local-alloc.c (equiv_init_varies_p): Handle vectors.
7142         (contains_replace_regs): Same.
7143         (memref_referenced_p): Same.
7144
7145         * integrate.c (copy_rtx_and_substitute): Handle vectors.
7146         (subst_constants): Same.
7147
7148         * genattrtab.c (attr_copy_rtx): Handle vectors.
7149         (encode_units_mask): Same.
7150         (clear_struct_flag): Same.
7151         (count_sub_rtxs): Same.
7152
7153         * gcse.c (want_to_gcse_p): Handle vectors.
7154         (oprs_unchanged_p): Same.
7155         (hash_expr_1): Same.
7156         (oprs_not_set_p): Same.
7157         (expr_killed_p): Same.
7158         (compute_transp): Same.
7159         (store_ops_ok): Same.
7160
7161         * function.c (purge_addressof_1): Do not allow paradoxical subregs
7162         of vectors.
7163         (fixup_var_refs_1): Same.
7164         (instantiate_virtual_regs_1): Same.
7165
7166         * fold-const.c (operand_equal_p): Handle vectors.
7167         (fold): Same.
7168         (rtl_expr_nonnegative_p): Same.
7169
7170         * flow.c (mark_used_regs): Handle vectors.
7171
7172         * df.c (df_uses_record): Handle vectors.
7173
7174         * cselib.c (cselib_subst_to_values): Handle vectors.
7175         (cselib_mem_conflict_p): Same.
7176         (hash_rtx): Same.
7177
7178         * cse.c (canon_reg): Handle vectors.
7179         (fold_rt): Same.
7180         (cse_process_notes): Same.
7181         (count_reg_usage): Same.
7182         (canon_hash): Same.
7183
7184         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
7185
7186         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
7187
7188         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
7189         (gen_rtx): Handle CONST_VECTOR.
7190         (gen_const_vector_0): New.
7191         (copy_rtx_if_shared): CONST_VECTORs can be shared.
7192         (reset_used_flags): Same.
7193         (copy_insn_1): Same.
7194         (initializer_constant_valid_p): Handle VECTOR_CST.
7195
7196         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
7197
7198         * doc/rtl.texi (Constants): Document const_vector.
7199         (CONST0_RTX): Update for vectors.
7200         (RTL sharing): Same.
7201
7202         * print-tree.c (print_node): Add case for VECTOR_CST.
7203
7204         * tree.h (TREE_VECTOR_CST_ELTS): New.
7205         (struct tree_vector): New.
7206         (union tree_node): Add vector node.
7207         (build_vector): Add prototype.
7208
7209         * tree.def (VECTOR_CST): New.
7210
7211         * tree.c (build_vector): New.
7212
7213         * expmed.c (make_tree): Handle CONST_VECTOR.
7214
7215         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
7216         (CONST_VECTOR_ELT): New.
7217         (CONST_VECTOR_NUNITS): New.
7218
7219         * machmode.h (GET_MODE_INNER): New.
7220         (DEF_MACHMODE): Accept 8th arg.
7221
7222         * machmode.def: Add 8th argument for vector inner mode.
7223         Add inner vector modes for vectors.
7224
7225         * rtl.def (VEC_CONST): Remove.
7226         (CONST_VECTOR): New.
7227
7228         * expr.c (clear_storage): Allow vectors.
7229         (is_zeros_p): Handle VECTOR_CST.
7230
7231         * varasm.c (output_constant_pool): Handle vectors.
7232         (rtx_const): Add veclo and vechi fields.
7233         (kind): Add RTX_VECTOR.
7234         (decode_rtx_const): Add case for vector.
7235
7236         * config/rs6000/rs6000-protos.h: Add zero_constant.
7237
7238         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
7239         constants.  Force easy vector constants into memory.
7240         (easy_vector_constant): New.
7241         (emit_easy_vector_constant): New.
7242         (rs6000_legitimize_reload_address): Do not generate bad reloads on
7243         darwin.
7244
7245         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
7246         instruction does.
7247         ("altivec_lvxl"): Same.
7248         (altivec_lvebx): Same.
7249         (altivec_lvehx): Same.
7250         (altivec_lvewx): Same.
7251         ("*movv4si_const0"): New.
7252         ("*movv4sf_const0"): New.
7253         ("*movv8hi_const0"): New.
7254         ("*movv16qi_const0"): New.
7255
7256 2002-02-18  Kazu Hirata  <kazu@hxi.com>
7257
7258         * config/h8300/h8300.c (notice_update_cc): Use
7259         cc_status.value2.
7260
7261 2002-02-18  Kazu Hirata  <kazu@hxi.com>
7262
7263         * config/h8300/h8300.md (divmod patterns): Change the
7264         constraints for operands[1] to register_operand.
7265
7266 2002-02-18  Kazu Hirata  <kazu@hxi.com>
7267
7268         * config/h8300/h8300-protos.h: Remove the prototype for
7269         p_operand.
7270         * config/h8300/h8300.c (p_operand): Remove.
7271         * config/h8300/h8300.md: Replace p_operand with
7272         const_int_operand.
7273
7274 2002-02-18 Philip Blundell <pb@nexus.co.uk>
7275
7276         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
7277         comment.
7278         (output_return_instruction): Allow use of LDR to unstack
7279         return addresss even for interrupt handlers or when
7280         interworking.  If compiling for ARMv5, use interworking-safe
7281         return instructions by default.  Remove duplicated code and
7282         lengthy "strcat" sequences.
7283
7284 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7285
7286         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
7287         (LINK_EH_SPEC): Define.
7288         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
7289
7290 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
7291
7292         * config/s390/s390.c (s390_emit_prologue): Do not set the
7293         frame_related flag for call-clobbered registers.
7294
7295 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
7296
7297         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
7298         (construct_container): Fix handling of SSE operands.
7299         (ix86_expand_builtin): Fix handling of 64bit pointers.
7300         (mmx_maskmovq_rex): New pattern.
7301
7302 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
7303
7304         * regrename.c (kill_set_value): Handle subregs properly.
7305
7306 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
7307
7308         * objc/objc-act.c (handle_impent): Remove leading '*'
7309         from objc_class_name.
7310
7311 2002-02-17  Richard Henderson  <rth@redhat.com>
7312
7313         * config/alpha/alpha.c (some_small_symbolic_operand,
7314         some_small_symbolic_operand_1, split_small_symbolic_operand,
7315         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
7316         Handle small SYMBOL_REFs anywhere, not just inside memories.
7317         * config/alpha/alpha-protos.h: Update.
7318         * config/alpha/alpha.h (PREDICATE_CODES): Update.
7319         * config/alpha/alpha.md (small symbolic operand splitter): Update.
7320
7321 2002-02-17  Roland McGrath  <roland@frob.com>
7322
7323         * config.gcc (powerpc-*-gnu-gnualtivec*,
7324         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
7325         * config/rs6000/gnu.h: New file.
7326         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
7327         Grok "gnu" in rs6000_abi_name.
7328         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
7329         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
7330         Grok -mcall-gnu analogous to -mcall-linux et al.
7331         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
7332         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
7333         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
7334
7335 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
7336
7337         PR c/3444:
7338         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
7339         shortening.
7340
7341 2002-02-17  Philipp Thomas  <pthomas@suse.de>
7342
7343         * config/cris/cris.h: Undefine STARTFILE_SPEC and
7344         ENDFILE_SPEC before (re)defining them.
7345
7346 2002-02-17  Kazu Hirata  <kazu@hxi.com>
7347
7348         * config/h8300/h8300.c: Fix formatting.
7349         * config/h8300/h8300.h: Likewise.
7350
7351 2002-02-17  Philipp Thomas  <pthomas@suse.de>
7352
7353         * doc/tm.texi: Explain why empty strings should not be
7354         marked for translation.
7355
7356 2002-02-17  Philipp Thomas  <pthomas@suse.de>
7357
7358         * final.c (output_operand_lossage): Changed to accept
7359         printf style arguments. Change calls where necessary.
7360         * output.h (output_operand_lossage): Change declaration
7361         accordingly. Update copyright.
7362         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
7363         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
7364         Update copyright date where necessary.
7365
7366         * config/i386/i386.c (print_operand): Likewise. Remove use of
7367         sprintf.
7368
7369         * config/cris/cris.c (cris_operand_lossage): Likewise.
7370         Rename parameter so that exgettext recognizes it as
7371         translatable message.
7372         (LOSE_AND_RETURN): Rename parameter to msgid.
7373
7374 2002-02-17  Kazu Hirata  <kazu@hxi.com>
7375
7376         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
7377         hard coded register number with an appropriate macro.
7378         (HARD_REGNO_MODE_OK): Likewise.
7379         (ARG_POINTER_REGNUM): Likewise.
7380         (STATIC_CHAIN_REGNUM): Likewise.
7381         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
7382         * config/h8300/h8300.md (define_constants): Define more
7383         register numbers.
7384
7385 2002-02-17  Philipp Thomas  <pthomas@suse.de>
7386
7387         * config/i386/i386.h: Don't mark empty strings for translation.
7388
7389 2002-02-16  H.J. Lu <hjl@gnu.org>
7390
7391         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
7392
7393 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
7394
7395         * cppinit.c (merge_include_chains): Check for brack being
7396         NULL before attempting to merge it with qtail.
7397
7398 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
7399
7400         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
7401         DBX_DEBUG.
7402
7403 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7404
7405         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
7406
7407 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7408
7409         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
7410         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
7411         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
7412
7413 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7414
7415         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
7416         now only if !TARGET_FIX.
7417         (*movsi_nt_vms_fix): New pattern.
7418
7419 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
7420
7421         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
7422         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
7423         (alpha_sa_mask, alpha_sa_size): Reflect above change.
7424         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
7425         (alpha_start_function, alpha_expand_epilogue): Likewise.
7426         (unicosmk_gen_dsib): Likewise.
7427
7428 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7429
7430         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
7431
7432 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
7433
7434         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
7435         check_and_change_labels, s390_final_chunkify): Delete.
7436         (s390_split_branches, s390_chunkify_pool): New functions.
7437         (s390_function_prologue): Call them.
7438
7439         * config/s390/s390.h (S390_REL_MAX): Delete.
7440         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
7441
7442         * config/s390/s390.md (cjump, icjump, jump): Fix length
7443         attribute calculation.
7444
7445
7446 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
7447
7448         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
7449         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
7450
7451 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7452
7453         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
7454         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
7455         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
7456
7457 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
7458
7459         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
7460
7461 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
7462
7463         * reload.c (find_dummy_reload): Check that an output register
7464         is valid for its mode.
7465
7466 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
7467
7468         * combine.c (known_cond): After replacing the REG of a SUBREG, try
7469         to simplify it.
7470
7471         * function.c (assign_parms): Demote promoted argument passed by
7472         transparent reference.
7473
7474 2001-02-14      Joel Sherrill <joel@OARcorp.com>
7475
7476         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
7477         -Acpu() and -Amachine() to eliminate warnings.
7478
7479 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
7480
7481         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
7482
7483 2002-02-14  Kazu Hirata  <kazu@hxi.com>
7484
7485         * config/h8300/h8300-protos.h: Update the prototype for
7486         const_costs.
7487         * config/h8300/h8300.c (const_costs): Treat SET as a little
7488         more expensive operation.
7489         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
7490         reference to const_costs.
7491
7492 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
7493
7494         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
7495
7496 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
7497
7498         PR c/5503:
7499         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
7500         use arguments from newtype.
7501
7502 2002-02-13  Eric Christopher  <echristo@redhat.com>
7503
7504         * config/mips/mips.c (override_options): Add check for march/mipsX
7505         on the same command line. Fix error message in cpu processing.
7506         Remove architecture and ISA checks.
7507
7508 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
7509
7510         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
7511
7512         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
7513
7514 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
7515
7516         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
7517         alternatives.
7518         ("*movv8hi_internal1"): Same.
7519         ("*movv16qi_internal1"): Same.
7520         ("*movv4sf_internal1"): Same.
7521
7522         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
7523         not push_reload for altivec modes.
7524
7525 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
7526
7527         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
7528         all RTEMS targets including removal of #includes from config/*/rtems*.h
7529         file and adding them to tm_file setting. Added xm_defines=POSIX to
7530         many targets.
7531         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
7532         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
7533         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
7534         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
7535         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
7536         config/m68k/rtemself.h: Ditto.
7537         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
7538         config/mips/rtems64.h: Ditto.
7539         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
7540         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
7541         Ditto.
7542         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
7543         config/sparc/rtemself.h: Ditto.
7544         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
7545         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
7546         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
7547         more like arm-elf.
7548         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
7549         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
7550         target made more similar to i386-elf.
7551         * config/i386/t-rtems-i386: Added soft float support and multilibs.
7552         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
7553         be similar to config/m68k/t-m68kelf.
7554         * gthr-rtems.h: Encapsulate with extern "C" for C++.
7555
7556 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
7557
7558         * regmove.c (kill_value): Handle subregs.
7559
7560 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
7561
7562         * i386.md (mul patterns): Allow memory operand to be first;
7563         add expanders where needed; fix constraints.
7564         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
7565         Allow memory operand to be the first.
7566
7567         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
7568         operands.
7569
7570 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
7571
7572         PR c/5681:
7573         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
7574         GET_MODE (x).
7575
7576 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
7577
7578         PR optimization/5547:
7579         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
7580         all valid IA-32 address modes involving non-scaled %ebx and
7581         GOT/GOTOFF as displacement.
7582
7583 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
7584
7585         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
7586         after emitting ltorg insns.
7587
7588         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
7589         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
7590         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
7591         *abssf2): Fix "op_type" attribute.
7592
7593 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
7594
7595         * mkconfig.sh: Avoid using a subshell redirect.
7596         ($output.T): Change to $(output)T.
7597         (ENABLE_NLS): Remove unneeded undef.
7598
7599         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
7600         * config/alpha/x-vms (libsubdir): Define.
7601
7602         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
7603         register frame procedures. Optimize retrieving context.
7604
7605         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
7606         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
7607         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
7608
7609 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7610
7611         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
7612         Make same change as for find_base_value.
7613
7614 2002-02-13  Kazu Hirata  <kazu@hxi.com>
7615
7616         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
7617         of QImode and SImode.
7618
7619 2002-02-13  Kazu Hirata  <kazu@hxi.com>
7620
7621         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
7622         length computation of movsi.
7623         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
7624
7625 2002-02-13  Kazu Hirata  <kazu@hxi.com>
7626
7627         * config/h8300/h8300.md (subqi3): Tighten the predicate for
7628         operands[2] to register_operand.
7629
7630 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
7631
7632         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
7633
7634 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
7635
7636         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
7637         for altivec_lvx* and altivec_stvx*.
7638         ("*movv4si_internal"): Add constraint for loading from GPRs.
7639         ("*movv8hi_internal1"): Same.
7640         ("*movv16qi_internal1"): Same.
7641         ("*movv4sf_internal1"): Same.
7642
7643         * config/rs6000/rs6000.c (altivec_register_operand): New.
7644
7645         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
7646         altivec_register_operand.
7647
7648 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
7649
7650         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
7651         handle SYMBOL_REF.
7652
7653 2002-02-13  Stan Shebs  <shebs@apple.com>
7654
7655         * c-typeck.c (digest_init): Handle vectors.
7656         (really_start_incremental_init): Same.
7657         (pop_init_level): Same.
7658         (process_init_element): Same.
7659
7660         * varasm.c (output_constant): Same.
7661
7662         * expr.c (clear_storage): Same.
7663         (store_constructor): Same.
7664
7665 2002-02-12  Eric Christopher  <echristo@redhat.com>
7666
7667         * explow.c (hard_function_value): Add comment explaining
7668         signed/unsigned comparison.
7669
7670 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
7671
7672         * jump.c (never_reached_warning): Add finish argument.
7673         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
7674         real insn after end.
7675         * rtl.h (never_reached_warning): Adjust prototype.
7676         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
7677         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
7678         never_reached_warning.
7679
7680 2002-02-12  Graham Stott  <grahams@redhat.com>
7681
7682         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
7683
7684 2002-02-12  Kazu Hirata  <kazu@hxi.com>
7685
7686         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
7687         logical shifts on H8/300.
7688         (shift_alg_si): Improve several shifts on H8/300.
7689         (get_shift_alg): Likewise.
7690
7691 2002-02-12  Graham Stott  <grahams@redhat.com>
7692
7693         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
7694
7695 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7696
7697         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
7698         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
7699
7700 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
7701
7702         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
7703         non-CONST_INT through default_assemble_integer.
7704         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
7705         <case 8>: Abort for CONST_DOUBLE.
7706
7707 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7708
7709         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
7710         is specified.
7711         * config/pa/pa-linux.h (LIB_SPEC): Delete.
7712         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
7713
7714 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
7715
7716         * config/stormy16/stormy16.md (zero_extendqihi2): New.
7717
7718 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
7719
7720         * regrename.c (regrename_optimize): Don't accept a
7721         part-clobbered register if the replaced register is not part
7722         clobbered.
7723
7724         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
7725         take padding into account when computing the argument value.
7726
7727         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
7728
7729         * combine.c (try_combine): Apply substitutions in
7730         CALL_INSN_FUNCTION_USAGE too.
7731
7732 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
7733
7734         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
7735         __builtin_altivec_abs*.
7736         (bdesc_abs): New.
7737
7738         * config/rs6000/rs6000.h (rs6000_builtins): Add
7739         ALTIVEC_BUILTIN_ABS*.
7740
7741         * config/rs6000/altivec.h: Use const char for builtins expecting
7742         literals.
7743         (vec_abs): New versions for C and C++.
7744         (vec_abss): Same.
7745
7746 2002-02-10  Kazu Hirata  <kazu@hxi.com>
7747
7748         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
7749         using Pmode.
7750
7751 2002-02-10  Kazu Hirata  <kazu@hxi.com>
7752
7753         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
7754         constant definition from h8300.md.
7755         (FRAME_POINTER_REGNUM): Likewise.
7756         * config/h8300/h8300.md (define_constants): Add FP_REG.
7757
7758 2002-02-10  Kazu Hirata  <kazu@hxi.com>
7759
7760         * config/h8300/h8300.c (print_operand): Remove redundant code.
7761
7762 2002-02-10  Kazu Hirata  <kazu@hxi.com>
7763
7764         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
7765         * config/h8300/h8300.c (byte_reg): Make it static.
7766
7767 2002-02-10  Richard Henderson  <rth@redhat.com>
7768
7769         PR c/5623
7770         * c-typeck.c (incomplete_type_error): Handle flexible array members.
7771
7772 2002-02-10  Richard Henderson  <rth@redhat.com>
7773
7774         PR c++/5624
7775         * tree.c (append_random_chars): Don't abort if main_input_filename
7776         does not exist.
7777
7778 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
7779
7780         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
7781
7782 2002-02-10  Kazu Hirata  <kazu@hxi.com>
7783
7784         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
7785         (pushhi1): Likewise.
7786
7787 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7788
7789         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
7790         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
7791
7792 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
7793
7794         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
7795         remove MASK_VIS.
7796         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
7797
7798 2002-02-09  Kazu Hirata  <kazu@hxi.com>
7799
7800         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
7801         a half of an SImode register on H8/300.
7802
7803 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
7804
7805         * i386.md (movdi_2): Add missing '!'.
7806
7807 2002-02-09  Kazu Hirata  <kazu@hxi.com>
7808
7809         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
7810         definitions.
7811
7812 2002-02-09  Kazu Hirata  <kazu@hxi.com>
7813
7814         * config/h8300/h8300.md (length): Correct the distance valid
7815         for the short branch.
7816
7817 2002-02-09  Kazu Hirata  <kazu@hxi.com>
7818
7819         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
7820
7821 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
7822
7823         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
7824         registers in SImode.
7825         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
7826         part-clobbered.
7827
7828         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
7829         patch.
7830
7831         Contribute sh64-elf.
7832         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
7833         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
7834         (sh_cannot_modify_jumps_p): New function.
7835         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
7836         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
7837         (sh_ms_bitfield_layout_p): New function.
7838         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
7839                     Zack Weinberg  <zack@codesourcery.com>
7840         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
7841         expand_simple_binop instead of expand_binop.
7842         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
7843         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
7844         use of .quad and .uaquad.
7845         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
7846         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
7847         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
7848         * config/sh/sh.md (movdi_const, movdi_const_32bit,
7849         movdi_const_16bit): Make sure all CONSTs have modes.
7850         (sym2PIC): Ditto, but by adjusting all callers.
7851         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
7852         if the prologue calls the SHmedia argument decoder or register
7853         saver.
7854         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
7855         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
7856         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
7857         (sh_expand_epilogue): Don't emit USE of return target register.
7858         (prepare_move_operands): Legitimize DImode PIC addresses.
7859         (sh_media_register_for_return): Skip tr0, used to initialize the
7860         PIC register.
7861         (sh_expand_prologue): Remove explicit USE of return register.
7862         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
7863         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
7864         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
7865         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
7866         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
7867         EXTRA_CONSTRAINT_T.
7868         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
7869         (MOVI_SHORI_BASE_OPERAND_P): New.
7870         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
7871         (EXTRA_CONSTRAINT_T): Define in terms of them.
7872         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
7873         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
7874         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
7875         alternatives supporting TARGET_REGS.
7876         (UNSPEC_GOTPLT): New constant.
7877         (movdi split): Move incrementing of LABEL_NUSES...
7878         (movdi_const, movdi_const_32bit): Here.  Use
7879         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
7880         (movdi_const_16bit): New.
7881         (call, call_value) [flag_pic]: Use GOTPLT.
7882         (call_pop, call_value_pop): New expands.
7883         (call_pop_compact, call_pop_rettramp): New insns.
7884         (call_value_pop_compact, call_value_pop_rettramp): New insns.
7885         (sibcall) [flag_pic]: Use GOT.
7886         (builtint_setjmp_receiver): Remove bogus, unused expand.
7887         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
7888         (*pt, *ptb, ptrel): New insns.
7889         (sym2GOT): Handle DImode GOT.
7890         (sym2GOTPLT, symGOTPLT2reg): New expands.
7891         (sym2PIC): New expand.
7892         (shcompact_return_tramp): Use GOTPLT to return trampoline.
7893         (shcompact_return_tramp_i): Use return register explicitly.
7894         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
7895         disable flag_reorder_blocks.
7896         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
7897         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
7898         clobbers, for clarity.
7899         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
7900         restoring of r0 in macl as MAYBE_DEAD.
7901         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
7902         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
7903         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
7904         alter_subreg all over.
7905         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
7906         reload, instead of emitting instructions that would require
7907         reloading.
7908         (casesi_load_media): Add missing modes.
7909         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
7910         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
7911         as used if the argument decoder is called.
7912         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
7913         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
7914         Pmode, then extend it to DImode if necessary.
7915         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
7916         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
7917         constants in FPU-enabled SHmedia, let them be loaded from memory.
7918         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
7919         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
7920         Adjust whitespace in assembly output templates.
7921         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
7922         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
7923         mode of if_then_else.
7924         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
7925         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
7926         sh.h.
7927         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
7928                     Joern Rennecke <amylaar@redhat.com>
7929         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
7930         (SUBTARGET_CPP_PTR_SPEC): New.
7931         (SUBTARGET_CPP_SPEC): Remove.
7932         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
7933         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
7934         Fix typo in previous checkin.
7935         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
7936         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
7937         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
7938                     Alexandre Oliva  <aoliva@redhat.com>
7939         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
7940         what single FP register can hold for SHmedia target.
7941         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
7942                     Alexandre Oliva  <aoliva@redhat.com>
7943         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
7944         Do not split into SUBREG.
7945         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
7946         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
7947         and added new functions as specified in SH5 ABI r9.
7948         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
7949         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
7950         8-byte boundary.
7951         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
7952         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
7953         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
7954         and consttable_window_ends.
7955         2001-06-03  Graham Stott  <grahams@redhat,com>
7956         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
7957         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
7958         * config/sh/sh.c (print_operand): Handle floating-point pair,
7959         vector and matrix registers.
7960         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
7961         vector modes into account.
7962         * config/sh/sh.md (movv2sf): Split move between registers into
7963         movdf.
7964         (movv4sf, movv16sf): Introduce insns that get split only after
7965         reload.
7966         * config/sh/shmedia.h: Fix Copyright dates.
7967         * config/sh/ushmedia.h: Likewise.  Move loop counter
7968         declarations into conditionals that uses them.
7969         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
7970         loop boundary.
7971         * config/sh/sshmedia.h: Fix Copyright dates.
7972         (sh_media_PUTCFG): Fix constraints.
7973         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
7974         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
7975         ptrmemfunc_vbit_in_delta for SH5.
7976         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
7977         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
7978         * invoke.texi: Likewise.
7979         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
7980         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
7981         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
7982         GCC_pop_shmedia_regs_nofpu): New global symbols.
7983         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
7984         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
7985         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
7986         compact function with nonlocal labels.
7987         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
7988         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
7989         (initial_elimination_offset): Account for their stack space.
7990         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
7991         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
7992         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
7993         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
7994         least one of the operands to be a register.
7995         (movv2sf): Likewise.  Renamed to movv2sf_i.
7996         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
7997         prepare_move_operands() before emitting SHmedia insns.
7998         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
7999         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
8000         Don't save nor initialize r12.  Don't mis-align the stack.
8001         Pad the code with a nop.
8002         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
8003         stack.
8004         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
8005         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
8006         [__SHMEDIA__]: Implement.
8007         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
8008         * config/sh/sh.md: Set latency of `pt' closer to reality.
8009         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
8010         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
8011         Set move, load and store type attributes.
8012         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
8013         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
8014         profiling.
8015         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
8016         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
8017         * config/sh/sh.c (sh_media_register_for_return): New function.
8018         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
8019         branch-target register.
8020         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
8021         * config/sh/sh.md (return_media_i): Use any call-clobbered
8022         branch-target register.
8023         (return_media): If r18 wasn't copied in the prologue, copy it
8024         here.
8025         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
8026         Clear class FP0_REGS.
8027         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
8028         from elf.h.
8029         2001-03-08  DJ Delorie  <dj@redhat.com>
8030         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
8031         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
8032         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
8033         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
8034         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
8035         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
8036         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
8037         return value correctly for call_cookie.
8038         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
8039         * config/sh/crt1.asm (start): Modified so as to call
8040         ___setup_argv_and_call_main.
8041         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
8042         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
8043         SHmedia mode.
8044         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
8045         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
8046         (STRIP_NAME_ENCODING): Use it.
8047         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
8048         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
8049         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
8050         prepare_scc_operands().
8051         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
8052         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
8053         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
8054         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
8055         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
8056         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
8057         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
8058         used in shcompact_incoming_args.
8059         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
8060         change.
8061         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
8062         mode.
8063         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
8064         Adjust accordingly.
8065         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
8066         Simplify.  Adjust.  Add sanity check.
8067         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
8068         FPU_SINGLE_BIT.
8069         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
8070         TARGET_SHCOMPACT.
8071         (udivsi3, divsi3): Use them.
8072         (force_mode_for_call): New insn.
8073         (call, call_value, sibcall_value): Emit it before SHcompact
8074         calls.
8075         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
8076         * config/sh/sh.md (call, call_value, sibcall): Make sure the
8077         call cookie is non-NULL before taking its value.
8078         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
8079         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
8080         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
8081         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
8082         block.
8083         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
8084         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
8085         temporary for stack adjusts.  Use MACL and MACH to pass
8086         arguments to shcompact_incoming_args.
8087         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
8088         clobber r1.
8089         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
8090         (nested_trampoline): Load static chain address into r1.
8091         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
8092         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
8093         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
8094         fp_arith_reg_operand().
8095         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
8096         * config/sh/sh.md (casesi): Sign-extend the first two operands,
8097         and use signed compares for them.
8098         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
8099         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
8100         ones properly aligned.
8101         (find_barrier): Account for extra alignment needed for 8-byte wide
8102         constants.
8103         (machine_dependent_reorg): Require a label for the second 4-byte
8104         constant after an 8-byte one.
8105         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
8106         change.
8107         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
8108         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
8109         last_float when switching float modes.
8110         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
8111         auto-increment for general-purpose registers.
8112         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
8113         result.
8114         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
8115         for stack adjust.
8116         * config/sh/sh.c (sh_builtin_saveregs): Support using all
8117         registers for varargs.
8118         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
8119         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
8120         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
8121         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
8122         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
8123         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
8124         call_cookie accordingly.
8125         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
8126         (SHCOMPACT_BYREF): Likewise.
8127         (SHCOMPACT_FORCE_ON_STACK): New macro.
8128         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
8129         (sh_builtin_saveregs): Likewise.
8130         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8131         shcompact_incoming_args): Use new shift values.  Support
8132         sequences of consecutive and non-consecutive pushes/pops.
8133         * config/sh/sh.md (return): Don't explicitly use PR_REG.
8134         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
8135         * config/sh/sh.h (TEXT_SECTION): Define.
8136         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
8137         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
8138         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
8139         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
8140         return values on FPU-enabled SHmedia.
8141         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
8142         FPU-enabled SHmedia.
8143         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
8144         value is returned in a non-FP reg and is not returned by
8145         reference.
8146         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
8147         jump_ind.
8148         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
8149         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
8150         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
8151         quad-aligned to be passed by callee-copy reference.
8152         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
8153         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
8154         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
8155         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
8156         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
8157         copying low-numbered FP regs to r7 and r8.
8158         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
8159         FP regs to general-purpose regs only if the copy was passed on the
8160         stack.
8161         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
8162         copying FP reg to r9.
8163         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
8164         copy FP regs to general-purpose regs only in outgoing calls.
8165         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
8166         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
8167         HOST_WIDE_INT.
8168         * config/sh/sh.h (struct sh_args): Document all fields.
8169         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
8170         passed partially on the stack should not consider making
8171         sibcalls.
8172         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
8173         stack_regs only for incoming calls.  When passing FP args,
8174         make sure there are FP regs available before modifying
8175         call_cookie.
8176         (SHCOMPACT_BYREF): Pass double args in general-purpose
8177         registers by reference.
8178         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
8179         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
8180         attempt to generate sibcalls if the caller got any arguments
8181         by reference.
8182         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
8183         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
8184         to 8-byte boundaries.
8185         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
8186         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
8187         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
8188         stored in the stack.
8189         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
8190         for the offsets to have the ISA bit set.
8191         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
8192         invocation.  Use beq instead of bgt to mark end of sequence of
8193         loads.
8194         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
8195         bgt to mark end of sequence of stores.
8196         * config/sh/sh.c (arith_operand): Don't check whether
8197         CONST_OK_FOR_J for now.
8198         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
8199         instead of long for conversion.
8200         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
8201         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
8202         before passing it to fprintf.
8203         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
8204         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
8205         Call set_fpscr before reading/writing SR.
8206         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
8207         Call set_fpscr.
8208         * config/sh/lib1funcs.asm: Add `.align 2' directives before
8209         SHmedia code.
8210         (FMOVD_WORKS): Define on SH5 with FPU.
8211         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
8212         setting.
8213         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
8214         _fpscr_values.
8215         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
8216         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
8217         address.
8218         (ia_main_table): Ditto.
8219         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
8220         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8221         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
8222         the definitions from sh.h.
8223         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
8224         TARGET_SH5.
8225         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
8226         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
8227         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
8228         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
8229         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
8230         Increment LABEL_NUSES.
8231
8232         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
8233         TARGET_SH5.
8234         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
8235         defined.
8236         * config/sh/elf.h (SIZE_TYPE): Likewise.
8237         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
8238         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8239         shcompact_incoming_args): Load switch table addresses using
8240         datalabel.
8241         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
8242         (NO_BUILTIN_SIZE_TYPE): Define.
8243         (SIZE_TYPE): Don't define.
8244         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
8245         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
8246         definition of __SH5__=32 for -m5-compact-nofpu.
8247         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
8248         ADDR_DIFF_VEC.
8249         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
8250         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
8251         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
8252         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
8253         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
8254         (INSN_LENGTH_ALIGNMENT): Likewise.
8255         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
8256         * config/sh/sh.md (call, call_value, sibcall): Simplify
8257         copying of non-branch-target register.
8258         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
8259         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
8260         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
8261         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
8262         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
8263         floating-point values as structs.
8264         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
8265         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
8266         general-purpose register.
8267         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
8268         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
8269         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
8270         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
8271         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
8272         (ENCODE_SECTION_INFO): Enclose variables and constants in
8273         DATALABEL unspecs.
8274         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
8275         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
8276         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
8277         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
8278         only for LABEL_REFs.  For SYMBOL_REFs, prepend
8279         SH_DATALABEL_ENCODING to the symbol name.
8280         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
8281         convert_mode().
8282         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
8283         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
8284         UNSPEC_DATALABEL.
8285         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
8286         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
8287         (DATALABEL_REF_P): Don't require CONST.
8288         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
8289         REL label.
8290         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
8291         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
8292         right.
8293         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
8294         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
8295         Use shallow_copy_rtx and PUT_MODE to change the mode of
8296         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
8297         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
8298         on SHmedia using GENERAL_REGs.
8299         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
8300         bltu_media_i): Fix reversion of conditions.
8301         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
8302         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
8303         * config/sh/sh.c (output_far_jump): Save r13 in macl.
8304         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
8305         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
8306         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
8307         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
8308         (GCC_nested_trampoline): Likewise.
8309         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
8310         * config/sh/sh.c (gen_datalabel_ref): Define.
8311         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
8312         (INITIALIZE_TRAMPOLINE): Likewise.
8313         (TRAMPOLINE_ADJUST_ADDRESS): Define.
8314         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
8315         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
8316         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
8317         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
8318         (ic_invalidate): Adjust for SH5.
8319         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
8320         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
8321         _nested_trampoline.
8322         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
8323         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
8324         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
8325         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
8326         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
8327         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
8328         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
8329         * config/sh/sh.c (target_reg_operand): Match only target-branch
8330         registers and pseudos that aren't virtual registers.
8331         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
8332         Copy operands that don't match target_reg_operand to pseudos.
8333         (call_media, call_value_media, sibcall_media): Use
8334         target_reg_operand instead of target_operand.
8335         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
8336         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
8337         * config/sh/sh.c (target_reg_operand): Match hardware registers
8338         other than branch-target registers.
8339         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
8340         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
8341         (fpscr_values) [SH5 == 32]: Define.
8342         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
8343         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
8344         Handle function addresses coming in SUBREGs.
8345         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
8346         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8347         shcompact_return_trampoline): Use datalabel where appropriate.
8348         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
8349         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
8350         general-purpose register to copy one branch-target register to
8351         another.
8352         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
8353         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
8354         SYMBOL_REFs with VOIDmode.
8355         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
8356         bltu_media_i): New insns.
8357         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
8358         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
8359         (INIT_CUMULATIVE_ARGS): Likewise.
8360         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
8361         * machmode.def (V16SFmode): New mode.
8362         * c-common.c (type_for_mode): Support V2SF and V16SF.
8363         * tree.c (build_common_tree_nodes_2): Likewise.
8364         * tree.h (tree_index): Likewise.
8365         * calls.c (emit_call_1): Take args_so_far.  Adjust all
8366         callers.  Introduce CALL_POPS_ARGS.
8367         * tm.texi (CALL_POPS_ARGS): Document.
8368         * config/sh/crt1.asm: Implement in SHmedia mode.
8369         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
8370         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
8371         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
8372         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
8373         Implement divsi and udivsi in SHmedia mode.  Introduce
8374         SHcompact trampolines.
8375         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
8376         only in SHmedia64.
8377         (regno_reg_class): Rewrite.
8378         (fp_reg_names): Remove.
8379         (sh_register_names, sh_additional_register_names): New.
8380         (print_operand): Added `u'.  Support SUBREGs in addresses.
8381         Add parentheses around shifted CONSTs.
8382         (output_file_start): Output .mode and .abi directives.
8383         (shiftcosts, addsubcosts, multcosts): Adjust.
8384         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
8385         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
8386         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
8387         bytes, not registers.  Take into account the need for the
8388         SHcompact incoming args trampoline.  Adjust all callers.
8389         (sh_expand_prologue): Take stack_regs into account.  Call
8390         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
8391         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
8392         stack aligned as per SH5 ABI.
8393         (sh_builtin_saveregs): Support SH5 ABI.
8394         (sh_build_va_list, sh_va_start): Likewise.
8395         (initial_elimination_offset): Take alignment into account.
8396         Compute location of PR according to the SH5 stack frame.
8397         (arith_reg_operand): Reject branch-target registers.
8398         (shmedia_6bit_operand): New.
8399         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
8400         (target_reg_operand): Match DImode only.  Accept SUBREGs.
8401         (target_operand): New.
8402         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
8403         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
8404         SIBCALL_REGS for SHmedia.
8405         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
8406         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
8407         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
8408         (TARGET_SWITCHES): New SH5 flags.
8409         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
8410         VALID_REGISTER_P to disable unsupported registers.
8411         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
8412         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
8413         (FUNCTION_ARG_PADDING): Define.
8414         (FASTEST_ALIGNMENT): Adjust.
8415         (SH_REGISTER_NAMES_INITIALIZER): New.
8416         (sh_register_names): Declare.
8417         (DEBUG_REGISTER_NAMES): Define.
8418         (REGISTER_NAMES): Define based on sh_register_names.
8419         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
8420         (sh_additional_register_names): Declare.
8421         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
8422         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
8423         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
8424         (REGISTER_NATURAL_MODE): Define.
8425         (FIRST_PSEUDO_REGISTER): Adjust.
8426         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
8427         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
8428         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
8429         (VECTOR_MODE_SUPPORTED_P): Define.
8430         (REG_CLASS_CONTENTS): Adjust.
8431         (SMALL_REGISTER_CLASSES): Adjust.
8432         (REG_ALLOC_ORDER): Adjust.
8433         (INDEX_REG_CLASS): Adjust.
8434         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
8435         (CONST_OK_FOR_LETTER_P): Adjust.
8436         (PREFERRED_RELOAD_CLASS): Adjust.
8437         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
8438         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
8439         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
8440         (FIRST_FP_PARM_REG): Adjust.
8441         (CALL_POPS_ARGS): Define.
8442         (FUNCTION_ARG_REGNO_P): Adjust.
8443         (struct sh_args): New fields.
8444         (GET_SH_ARG_CLASS): Adjust.
8445         (INIT_CUMULATIVE_ARGS): Adjust.
8446         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
8447         (FUNCTION_ARG_ADVANCE): Adjust.
8448         (FUNCTION_ARG): Adjust.
8449         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
8450         (FUNCTION_ARG_CALLEE_COPIES): Define.
8451         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
8452         (STRICT_ARGUMENT_NAMING): Define.
8453         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
8454         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
8455         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
8456         (SETUP_INCOMING_VARARGS): Adjust.
8457         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
8458         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
8459         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
8460         (SUBREG_OK_FOR_INDEX_P): Adjust.
8461         (EXTRA_CONSTRAINT_S): Update.
8462         (EXTRA_CONSTRAINT_T): New.
8463         (EXTRA_CONSTRAINT): Adjust.
8464         (GO_IF_LEGITIMATE_INDEX): Adjust.
8465         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
8466         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
8467         (MOVE_MAX): Adjust.
8468         (MAX_MOVE_MAX): Define.
8469         (Pmode): Adjust.
8470         (CONST_COSTS): Adjust.
8471         (REGISTER_MOVE_COST): Adjust.
8472         (BRANCH_COST): Adjust.
8473         (TEXT_SECTION_ASM_OP): Adjust.
8474         (DBX_REGISTER_NUMBER): Adjust.
8475         (ASM_OUTPUT_DOUBLE_INT): New.
8476         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
8477         (PREDICATE_CODES): Adjust.
8478         (PROMOTE_MODE): Adjust.
8479         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
8480         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
8481         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
8482         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
8483         (DR0_REG, DR2_REG, DR4_REG): Renumber.
8484         (TR0_REG, TR1_REG, TR2_REG): New.
8485         (XD0_REG): Renumber.
8486         (UNSPEC_COMPACT_ARGS): New.
8487         (type): Added pt and ptabs.
8488         (length): Default to 4 on SHmedia.  Default pt length to 12
8489         and     20 on SHmedia32 and SHmedia64, respectively.
8490         (pt): New function unit.
8491         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
8492         Add whitespace between operands of SHmedia instructions.
8493         (movdicc): Fix.
8494         (adddi3_media, addsi3_media): Adjust constraints.
8495         (subsi3) [SHmedia]: Force operand 1 into a register.
8496         (udivsi3_i1_media, udivsi3_i4_media): New.
8497         (udivsi3): Support SHmedia.
8498         (divsi3_i1_media, divsi3_i4_media): New.
8499         (divsi3): Support SHmedia.
8500         (anddi3, iordi3, xordi3): Adjust constraints.
8501         (zero_extendhidi2, zero_extendqidi2): New.
8502         (extendsidi2, extendhidi2, extendqidi2): New.
8503         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
8504         (pop_e, pop_fpul, pop_4): Likewise.
8505         (movsi_media): Support FP and BT registers.
8506         (movsi_media_nofpu): New.  Adjust splits to DImode.
8507         (lduw, ldub): Renamed to zero_extend* above.
8508         (movqi_media): Fix typo.
8509         (movdi_media): Support FP and BT registers.
8510         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
8511         (movdi_const_32bit): New.
8512         (shori_media): Require immediate operand.  Use `u' for output.
8513         (movdf_media, movsf_media): Simplified.
8514         (movdf_media_nofpu, movsf_media_nofpu): New.
8515         (movdf, movsf): Adjust
8516         (movv2sf, movv2sf, movv16sf): New.
8517         (beq_media, beq_media_i): Adjust constraints.  Don't use
8518         scratch BT register.
8519         (bne_media, bne_media_i): Likewise.
8520         (bgt_media, bgt_media_i): Likewise.
8521         (bge_media, bge_media_i): Likewise.
8522         (bgtu_media, bgtu_media_i): Likewise.
8523         (bgeu_media, bgeu_media_i): Likewise.
8524         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
8525         bunordered): Emit jump insn.  Force operands to registers when
8526         needed.
8527         (jump_media, jump): Simplify.
8528         (call_compact, call_compact_rettramp): New.
8529         (call_value_compact, call_value_compact_rettramp): New.
8530         (call_media, call_value_media): Simplify.
8531         (sibcall_compact, sibcall_media): New.
8532         (call, call_value): Adjust for SHmedia and SHcompact.
8533         (sibcall, sibcall_value, untyped_call): Likewise.
8534         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
8535         (indirect_jump): Adjust for SHmedia.
8536         (casesi_jump_media): New.
8537         (nop): Re-enable for SHmedia.
8538         (call_site): Restrict to SH1.
8539         (casesi): Adjust for SHmedia.
8540         (casesi_shift_media, casesi_load_media): New.
8541         (return): Explicitly use PR register.  Call return trampoline
8542         on SHcompact.
8543         (return_i): Explicitly use PR register.
8544         (shcompact_return_tramp, shcompact_return_tramp_i): New.
8545         (return_media): Adjust.
8546         (shcompact_incoming_args): New.
8547         (epilogue): Adjust.
8548         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
8549         (movstrsi): Disable on SH5.
8550         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
8551         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
8552         (subsf3, subsf3_media): Likewise.
8553         (mulsf3, mulsf3_media, mac_media): Likewise.
8554         (divsf3, divsf3_media): Likewise.
8555         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
8556         (floatsisf2, fux_truncsfsi2): Likewise.
8557         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
8558         constraints.
8559         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
8560         (cmpunsf_media, cmpsf): Likewise.
8561         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
8562         (abssf2, abssf2_media): Likewise.
8563         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
8564         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
8565         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
8566         (floatsidf2, fix_truncdfsi2): Likewise.
8567         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
8568         constraints.
8569         (cmpeqdf_media, cmpgtdf_media): Likewise.
8570         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
8571         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
8572         (absdf2, absdf2_media): Likewise.
8573         (extendsfdf2, extendsfdf2_media): Likewise.
8574         (truncsfdf2, truncsfdf2_media): Likewise.
8575         * config/sh/sh64.h: New file.
8576         * config/sh/t-sh64: New file.
8577         * config/sh/shmedia.h: New file.
8578         * config/sh/ushmedia.h: New file.
8579         * config/sh/sshmedia.h: New file.
8580         * configure.in: Added sh64-*-elf.
8581         * configure: Rebuilt.
8582         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
8583         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
8584         (reg_class_from_letter): Use `b' for TARGET_REGS.
8585         (print_operand): Support `%M', `%m', `AND' and
8586         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
8587         (andcosts): Adjust for SHmedia.
8588         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
8589         Likewise.
8590         (target_reg_operand): New function.
8591         * config/sh/sh-protos.h (target_reg_operand): Declare.
8592         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
8593         FP registers on SH5.
8594         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
8595         on SH4.
8596         (TARGET_REGISTER_P): New macro.
8597         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
8598         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
8599         (EXTRA_CONSTRAINT_S): New macro.
8600         (EXTRA_CONSTRAINT): Adjust.
8601         (FLOAT_TYPE_SIZE): Define to 32.
8602         (Pmode): DImode on SHmedia.
8603         (CONST_COSTS): Adjust for SHmedia literals.
8604         (PREDICATE_CODES): Added target_reg_operand.
8605         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
8606         * config/sh/sh.md: Remove all attrs from SHmedia insns.
8607         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
8608         (cmpdi): Accept SHmedia.
8609         (movdicc_false, movdicc_true): New insns.
8610         (movdicc): New expand.
8611         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
8612         no_new_pseudos.
8613         (addsi3_media): Match `S' constraint.
8614         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
8615         (negdi2): Expand for SHmedia.
8616         (one_cmpldi2): New expand.
8617         (zero_extendsidi2): Change from expand to insn.
8618         (extendsidi2): Add constraints.
8619         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
8620         LD/ST address.  Fix SI immediate loading split.
8621         (movhi_media, movqi_media, lduw, ldub): New insns.
8622         (movhi, movqi): Accept SHmedia.
8623         (shori_media, movdi_media): Relax input constraints.  Split
8624         symbolic constants.
8625         (movdf_media, movsf_media): New insn.  New split to movdi.
8626         (movdf, movsf): Match on SHmedia.
8627         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
8628         bgeu_media): New insns and splits.  New insns with `_i' suffix.
8629         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
8630         (bunordered): New expand.
8631         (jump_compact): Renamed from `jump'.
8632         (jump_media): New insn.
8633         (jump): New expand.
8634         (call_media, call_value_media): New insns.
8635         (call, call_value): Adjust.
8636         (indirect_jump_compact): Renamed from `indirect_jump'.
8637         (indirect_jump_media): New insn.
8638         (indirect_jump): New expand.
8639         (untyped_call, return): Accept SHmedia.
8640         (return_media): New insn.
8641         (prologue, epilogue, blockage): Accept SHmedia.
8642         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
8643         (sunordered): New expand.
8644         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
8645         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
8646         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
8647         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
8648         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
8649         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
8650         abssf2_media): New insns.
8651         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
8652         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
8653         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
8654         floatdidf2, floatsidf2_media, fix_truncdfdi2,
8655         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
8656         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
8657         absdf2_media): New insns.
8658         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
8659         (extendsfdf2_media, truncdfsf2_media): New insns.
8660         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
8661         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
8662         * config/sh/sh.h (CONST_OK_FOR_J): Document.
8663         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
8664         * config/sh/sh.md (adddi3): New expand.
8665         (adddi3_media, adddi3z_media): New insns.
8666         (adddi3_compact): Renamed from adddi3.
8667         (addsi3_media): Use add.l r63 to add constant zero.
8668         (subdi3): New expand.
8669         (subdi3_media): New insn.
8670         (subdi3_compact): Renamed from subdi3.
8671         (mulsidi3): New expand.
8672         (mulsidi3_media): New insn.
8673         (mulsidi3_compact): Renamed from mulsidi3.
8674         (umulsidi3): New expand.
8675         (umulsidi3_media): New insn.
8676         (umulsidi3_compact): Renamed from umulsidi3.
8677         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
8678         (ashlsi3, ashrsi3, lshrsi3): Use them.
8679         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
8680         (ashldi3, ashrdi3, lshrdi3): Use them.
8681         (zero_extendsidi2): New expand.
8682         (extendsidi2): New insn.
8683         (movsi_media): New insn.  Split to movdi to load constants.
8684         (movsi): Enable for shmedia.
8685         (movdi_media): New insn.  Use shori_media to load wide constants.
8686         (short_media): New insn.
8687         (movdi): Enable for shmedia.
8688         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
8689         * config/sh/sh.h (CPP_SPEC): Added `m5'.
8690         (SUBTARGET_CPP_SPEC): Added `!m5'.
8691         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
8692         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
8693         to all other SH variants.
8694         (TARGET_DEFAULT): Set to SH1_BIT.
8695         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
8696         (BITS_PER_WORD): Raise to 64 on shmedia.
8697         (MAX_BITS_PER_WORD): Change to 64.
8698         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
8699         (INT_TYPE_SIZE): Keep as 32.
8700         (UNITS_PER_WORD): Raise to 8 on shmedia.
8701         (MIN_UNITS_PER_WORD): Keep as 4.
8702         (POINTER_SIZE): Raise to 64 on shmedia.
8703         (CONST_OK_FOR_J): New macro.
8704         (CONST_OK_FOR_LETTER_P): Use it.
8705         (processor_type): Add PROCESSOR_SH5.
8706         * config/sh/sh.md: Conditionalize all expands, insns and
8707         splits to TARGET_SH1.
8708         (cpu): Added sh5.
8709         (addsi3_compact): Renamed from...
8710         (addsi3): Now an expand.
8711         (addsi3_media, subsi3_media): New insns.
8712         (subsi3): Don't negate constants with SHmedia.
8713
8714         * hooks.c: New file.
8715         * hooks.h: New file.
8716         * Makefile.in (HOOKS_H): New.
8717         (TARGET_DEF_H): Added $(HOOKS_H).
8718         (OBJS): Added hooks.o.
8719         (cfgcleanup.o, bb-reorder.o): Added target.h.
8720         (hooks.o): Added dependencies.
8721         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
8722         (TARGET_INITIALIZER): this.
8723         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
8724         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
8725         * bb-reorder.c: Include target.h.
8726         (reorder_basic_blocks): Skip if cannot modify jumps.
8727         * cfgcleanup.c: Include target.h.
8728         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
8729
8730 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
8731
8732         * config/mips/mips.md (casesi_internal, casesi_internal_di):
8733         Protect jump delay slot instructions with .set noreorder and
8734         .set nomacro.
8735
8736 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
8737
8738         * config/mips/mips.md (casesi_internal_di): Calculate
8739         the index into the target offset table correctly.
8740
8741 2002-02-08  Richard Henderson  <rth@redhat.com>
8742
8743         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
8744         * final.c (output_addr_const): Accept and discard SUBREG.
8745         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
8746         mark them unknown instead.
8747         (simplify_subtraction): Handle RTX_UNKNOWN.
8748         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
8749
8750 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
8751
8752         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
8753
8754 2002-02-08  Richard Henderson  <rth@redhat.com>
8755
8756         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
8757
8758 2002-02-08  Andreas Jaeger  <aj@suse.de>
8759
8760         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
8761         * config/i386/t-linux64: New file.
8762
8763 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
8764
8765         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
8766         * c-parse.in (compstmt): Clear last_expr_type.
8767
8768 2002-02-07  Richard Henderson  <rth@redhat.com>
8769
8770         * loop.c (strength_reduce): Sink final_value when not
8771         eliminating a biv.
8772
8773 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
8774
8775         * config/sparc/freebsd.h: Fix mismatched spec {.
8776
8777 2002-02-07  Richard Henderson  <rth@redhat.com>
8778
8779         * cfgrtl.c: Include recog.h and insn-config.h.
8780         (keep_with_call_p): Fix general_operand invocation.
8781         * Makefile.in (cfgrtl.o): Update dependencies.
8782
8783 2002-02-07  Kazu Hirata  <kazu@hxi.com>
8784
8785         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
8786         comment.  Accept HImode only if TARGET_H8300.
8787
8788 2002-02-07  Eric Christopher  <echristo@redhat.com>
8789
8790         * config/mips/crtn.asm: Cleanup #ifdefs.
8791
8792 2002-02-07  Eric Christopher  <echristo@redhat.com>
8793
8794         * config/mips/crti.asm: Add changes for mips16. mips16 uses
8795         register 7 as RA instead of $31.
8796         * config/mips/crtn.asm: Ditto.
8797         * config/mips/mips.c (mips_move_2words): Add case for
8798         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
8799         (compute_frame_size): Fix typo.
8800         (save_restore_insns): Ditto.  Make documentation about using
8801         register $7 as return register more precise.
8802         (mips_expand_epilogue): Fix comment. Add code to work around not
8803         being able to add to the stack pointer directly.
8804         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
8805         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
8806         epilogue.
8807
8808 2002-02-07  Tom Rix  <trix@redhat.com>
8809
8810         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
8811         immediates in ldu and stdu DS opcode field.
8812         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
8813         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
8814         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
8815
8816 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
8817
8818         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
8819         offset for stack bias.
8820
8821 2002-02-07  H.J. Lu <hjl@gnu.org>
8822
8823         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
8824
8825 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
8826
8827         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
8828
8829 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
8830
8831         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
8832         * i386.c (x86_order_regs_for_local_alloc): New global function.
8833         * i386.h (REG_ALLOC_ORDER): CLeanup.
8834         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
8835
8836 2002-02-07  Richard Henderson  <rth@redhat.com>
8837
8838         PR optimization/2463
8839         * alias.c (find_base_value): Recall base values for fixed hard regs.
8840         * loop.c (loop_regs_update): Don't use single_set on non-insns.
8841
8842 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
8843
8844         * config/mips/mips.md (define_delay) [mips16]: Adjust required
8845         length.
8846
8847 2002-02-06  Richard Henderson  <rth@redhat.com>
8848
8849         PR c/5609
8850         * stmt.c (resolve_operand_name_1): Take more care with mixed
8851         named and unnamed operands.
8852
8853 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
8854             Jan Hubicka  <jh@suse.cz>
8855
8856         * loop.c (remove_constant_addition): Avoid clobbering a shared
8857         CONST expression.
8858
8859 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
8860
8861         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
8862         * config/s390/t-linux64: New file.
8863         * config/s390/libgcc-glibc.ver: New file.
8864
8865 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
8866
8867         * config/s390/linux64.h: Delete file.
8868         * config/s390/s390x.h: New file.
8869         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
8870         as target header file.
8871         * config/s390/linux.h (TARGET_VERSION): Define depending on
8872         DEFAULT_TARGET_64BIT.
8873         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
8874         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
8875         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
8876         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
8877         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
8878         (EXTRA_SPEC): New define.
8879         * config/s390/s390.h (TARGET_VERSION): Define depending on
8880         DEFAULT_TARGET_64BIT.
8881         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
8882
8883 2002-02-06  Jason Merrill  <jason@redhat.com>
8884
8885         * c-decl.c (finish_function): Warn about a non-void function with
8886         no return statement and no abnormal exit.
8887         (current_function_returns_abnormally): New variable.
8888         (start_function): Clear it.
8889         (struct c_language_function): Add returns_abnormally.
8890         (push_c_function_context): Save it.
8891         (pop_c_function_context): Restore it.
8892         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
8893         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
8894         an explicit return type.
8895         * c-tree.h: Declare current_function_returns_abnormally.
8896         (C_FUNCTION_IMPLICIT_INT): New macro.
8897         * c-typeck.c (build_function_call): Set it.
8898         (c_expand_return): Set current_function_returns_value even if the
8899         value is erroneous.
8900
8901 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
8902
8903         PR c/5420:
8904         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
8905         unsafe for reevaluation.
8906
8907 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
8908
8909         PR c/5482:
8910         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
8911         EXPR_STMT, but COMPOUND_STMT, recurse into it.
8912
8913 2002-02-06  Richard Henderson  <rth@redhat.com>
8914
8915         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
8916         be a general_operand.  Dest for function value must be a pseudo.
8917
8918 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
8919
8920         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
8921         as SYMBOL_REFs from the constant pool.
8922
8923 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
8924
8925         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
8926         passed by invisible reference.
8927
8928 2002-02-05  Richard Henderson  <rth@redhat.com>
8929
8930         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
8931
8932 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
8933
8934         Implement using "base addresses" in insn operands as default.
8935         * config/mmix/mmix.c (mmix_conditional_register_usage): if
8936         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
8937         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
8938         used to read the rtx value.
8939         (mmix_target_asm_function_epilogue): Fix spacing.
8940         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
8941         (mmix_legitimate_address): Ditto.
8942         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
8943         should be loaded with a GETA insn.  Don't allocate needless extra
8944         char for nul termination and fix misleading comment.
8945         (mmix_print_operand_address): Handle constants if
8946         TARGET_BASE_ADDRESSES.
8947         (mmix_output_register_setting): Use base addressing if
8948         TARGET_BASE_ADDRESSES and the number of insns is 3.
8949         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
8950         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
8951         to use R as constraint, add LDA to match s.
8952         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
8953         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
8954         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
8955         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
8956         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
8957         order with other fixed registers.
8958         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
8959         other parameter/call-clobbered registers.
8960         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
8961         -mbase-addresses, -mno-base-addresses.
8962         (MMIX Options): Ditto.
8963
8964 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8965
8966         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
8967
8968 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
8969
8970         * config/rs6000/altivec.h: Change elem to _S_elem.
8971
8972 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
8973
8974         * config/netbsd.h (WCHAR_TYPE): Define.
8975         (WCHAR_TYPE_SIZE): Ditto.
8976         (WINT_TYPE): Ditto.
8977         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
8978         (WCHAR_UNSIGNED): Ditto.
8979         (WCHAR_TYPE_SIZE): Ditto.
8980         (WINT_TYPE): Ditto.
8981         * config/arm/netbsd.h: Likewise.
8982         * config/i386/netbsd-elf.h: Likewise.
8983         * config/i386/netbsd.h: Likewise.
8984         * config/m68k/netbsd-elf.h: Likewise.
8985         * config/m68k/netbsd.h: Likewise.
8986         * config/ns32k/netbsd.h: Likewise.
8987         * config/sparc/netbsd.h: Likewise.
8988         * config/vax/netbsd.: Likewise.
8989
8990 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
8991
8992         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
8993         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
8994         (TARGET_INITIALIZER): this.
8995         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
8996         (BITFIELD_NBYTES_LIMITED): Markup fix.
8997         * tree.h (default_ms_bitfield_layout_p): Declare.
8998         (record_layout_info): Added prev_field.
8999         * tree.c (default_ms_bitfield_layout_p): New fn.
9000         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
9001         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
9002         * stor-layout.c: Include target.h.
9003         (start_record_layout): Initialize prev_field.
9004         (place_field): Handle MS bit-field layout, and disregard
9005         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
9006         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
9007         * Makefile.in (stor-layout.o): Adjust dependencies.
9008
9009 2002-02-05  Jason Merrill  <jason@redhat.com>
9010
9011         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
9012
9013 2002-02-05  Andreas Jaeger  <aj@suse.de>
9014
9015         * crtstuff.c: Fix comments.
9016
9017 2002-02-05  Richard Henderson  <rth@redhat.com>
9018
9019         PR fortran/3393
9020         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
9021         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
9022
9023         PR fortran/3392
9024         * config/mips/mips.c (function_arg): Handle TImode.
9025         (function_arg_advance): Likewise.
9026
9027 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9028
9029         * config/rs6000/altivec.h (vec_step_help): Rename to
9030         __vec_step_help.
9031
9032 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9033
9034         * config/rs6000/altivec.h: Fix typos.
9035
9036 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
9037
9038         * config/arm/netbsd.h: Correct a comment.
9039
9040 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9041
9042         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
9043         building void typed builtins.
9044
9045         * config/rs6000/altivec.h (vec_ld*): Fix typos.
9046         (vec_step): Implement for C++.
9047
9048 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9049
9050         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
9051
9052 2002-02-04  Richard Henderson  <rth@redhat.com>
9053
9054         * combine.c (nonzero_bits): Re-introduce special case for
9055         sp/fp/ap wrt REGNO_POINTER_ALIGN.
9056
9057 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9058
9059         * doc/extend.texi: Warn about unsupported usage of altivec
9060         builtins.
9061
9062         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
9063         (altivec_predicate_*): New.
9064
9065         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
9066         Add C++ version of vec_*() functions.
9067
9068         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
9069         (bdesc_2arg): Remove altivec predicates.
9070         (altivec_expand_builtin): Handle predicates.
9071         (altivec_init_builtins): Handle predicates.
9072         (altivec_expand_predicate_builtin): New.
9073
9074 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9075
9076         * pa.c (DO_FRAME_NOTES): Move forward.
9077         (store_reg): Revise handling of frame notes.
9078         (load_reg): Likewise.
9079         (set_reg_plus_d): Likewise.
9080         (hppa_expand_prologue): Likewise.
9081         (hppa_expand_epilogue): Likewise.
9082
9083 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9084
9085         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
9086
9087 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
9088
9089         PR c/4475, c++/3780:
9090         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
9091         * c-common.h (SWITCH_TYPE): Define.
9092         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
9093         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
9094         Rename spareness variable to sparseness.
9095         (expand_end_case_type): Renamed from expand_end_case, use orig_type
9096         if non-NULL instead of TREE_TYPE (orig_index).
9097         * tree.h (expand_end_case_type): Renamed from expand_end_case.
9098         (expand_end_case): Define using expand_end_case_type.
9099         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
9100         to expand_end_case_type.
9101         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
9102
9103 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9104
9105         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
9106         (BIGGEST_ALIGNMENT): Change to 128.
9107
9108 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9109
9110         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
9111
9112 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9113
9114         * pa.md (call_internal_reg_64bit): Remove unused variable.
9115
9116 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
9117
9118         * config/arm/arm.h (machine_function): Add uses_anonymous_args
9119         field.
9120         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
9121         * config/arm/arm.c (current_function_anonymous_args): Delete,
9122         replace uses with cfun->machine->uses_anonymous_args.
9123         (arm_reorg): Do not reset uses_anonymous_args.
9124
9125         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
9126         any geenral register.
9127
9128 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
9129
9130         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
9131         the entry block.
9132
9133 2002-02-04  Richard Henderson  <rth@redhat.com>
9134
9135         * combine.c (force_to_mode): Remove STACK_BIAS code.
9136         (nonzero_bits): Likewise.  Replace sp/fp special case with
9137         REGNO_POINTER_ALIGN.
9138
9139         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
9140         (HARD_FRAME_POINTER_REGNUM): New.
9141         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
9142         (FIXED_REGS, CALL_USED_REGS): Update.
9143         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
9144         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
9145         (HARD_REGNO_NREGS): Update for SFP.
9146         (STACK_POINTER_OFFSET): Include bias here ...
9147         (FIRST_PARM_OFFSET): ... not here.
9148         (STACK_BIAS): Remove.
9149         (INIT_EXPANDERS): New.
9150         (STARTING_FRAME_OFFSET): Do not include bias.
9151         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
9152         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
9153         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
9154         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
9155         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
9156         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
9157         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
9158         (MUST_SAVE_REGISTER): Likewise.
9159         (sparc_flat_function_prologue): Likewise.
9160         (sparc_flat_function_epilogue): Likewise.
9161         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
9162         (sparc_init_modes): SFP is GENERAL_REGS.
9163         (sparc_builtin_saveregs): SFP does not have bias applied.
9164
9165 2002-02-04  Richard Henderson  <rth@redhat.com>
9166
9167         * config/alpha/alpha.c (current_function_is_thunk): Don't check
9168         current_function_is_thunk.
9169         (alpha_sa_mask): Distinguish between current_function_is_thunk
9170         called from ASM_OUTPUT_MI_THUNK and not.
9171         (alpha_does_function_need_gp): Thunks always need gp.
9172         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9173         (alpha_output_mi_thunk_osf): New.
9174         * config/alpha/alpha-protos.h: Update.
9175         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
9176
9177 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
9178
9179         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
9180         function types, not when they're taken away.
9181
9182 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
9183
9184         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
9185         CODE_LABEL and jump table when replacing a table jump with a
9186         simple jump.
9187
9188 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
9189
9190         * config/s390/s390-protos.h (legitimize_la_operand,
9191         s390_secondary_input_reload_class, s390_plus_operand,
9192         s390_expand_plus_operand): Add prototypes.
9193
9194         config/s390/s390.c (s390_secondary_input_reload_class,
9195         s390_plus_operand, s390_expand_plus_operand): New functions.
9196
9197         (struct s390_address): New member 'pointer'.
9198         (s390_decompose_address): Compute it.
9199         (legitimate_la_operand_p): Use it.
9200         (legitimize_la_operand): New function.
9201         (movti, movdi, movdf splitters): Call it.
9202
9203         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
9204         (PREDICATE_CODES): Add s390_plus_operand.
9205
9206         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
9207         (la_ccclobber): Allow GENERAL_REGS as output operand.
9208
9209         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
9210         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
9211         (*la_64, *la_31, reload_indi, reload_insi): ... these.
9212
9213 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
9214
9215         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
9216         register names for regular asm () construct.
9217
9218 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
9219
9220         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
9221         registers.
9222
9223 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
9224
9225         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
9226         pat for recog.
9227
9228 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
9229
9230         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
9231         constant pool to be identical by string address and index.
9232
9233 2002-02-04  Anthony Green  <green@redhat.com>
9234
9235         * output.h (SECTION_OVERRIDE): Define.
9236         * varasm.c (named_section): Obey SECTION_OVERRIDE.
9237
9238 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
9239
9240         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
9241         by existing arm*-*-netbsd* (a.out) target.
9242         (ns32k-*-netbsdelf*): Likewise.
9243         (sparc-*-netbsdelf*): Likewise.
9244         (vax-*-netbsdelf*): Likewise.
9245
9246 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
9247
9248         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
9249         headers and libobjc headers.
9250
9251 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
9252
9253         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
9254         (_mingw.h): Remove duplicate include.
9255
9256 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
9257
9258         * config.gcc: Set cpu_type to m68k for 68010, as well.
9259         (m68010-*-netbsdelf*): New...
9260         (m68k*-*-netbsdelf*): ...targets.
9261         * config/m68k/netbsd-elf.h: New file.
9262
9263 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9264
9265         * config/h8300/h8300.c (hand_list): Move inside function_arg.
9266
9267 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9268
9269         * config/h8300/h8300.c (h8_push_ops): Move inside
9270         h8300_init_once.
9271         (h8_pop_ops): Likewise.
9272         (h8_move_ops): Likewise.
9273
9274 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9275
9276         * config/h8300/h8300.c (os_task): Make it static.
9277         (monitor): Likewise.
9278         (pragma_saveall): Likewise.
9279
9280 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
9281
9282         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
9283         constant is a valid sign-extension for Pmode.
9284
9285 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9286
9287         * config/h8300/h8300.c: Fix formatting.
9288
9289 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9290
9291         * config/h8300/h8300.md: Fix formatting.
9292
9293 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9294
9295         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
9296         predicates of operands[1].  Split the patterns for each
9297         processor variant.
9298
9299 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9300
9301         * config/h8300/h8300.md (xor patterns): Tighten the predicates
9302         of operands[1] to register_operand.
9303
9304 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
9305
9306         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
9307         * cpphash.c (_cpp_init_hashtable): Similarly.
9308         * cppinit.c (cpp_create_reader): Default the signed_char flag.
9309         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
9310         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
9311         (cpp_handle_option): Handle the new options.
9312         * cpplex.c (cpp_interpret_charconst): Use new flag.
9313         * cpplib.h (struct cpp_options): New member signed_char.
9314         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
9315         (cpp_options): Handle -fsigned-char and -funsigned-char.
9316         (static_specs): Remove signed_char_spec.
9317         (do_spec1): Don't handle %c.
9318         * system.h: Poison SIGNED_CHAR_SPEC.
9319         * tradcif.y (yylex): Use flag_signed_char.
9320         * tradcpp.h (flag_signed_char): New.
9321         * tradcpp.c (flag_signed_char): New.
9322         (main): Handle new command-line options.
9323         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
9324 config:
9325         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
9326         * avr/avr.h: Remove old comments.
9327         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
9328         (CC1_SPEC): Pass -fsigned-char if -mic*.
9329         (SIGNED_CHAR_SPEC): Remove.
9330 doc:
9331         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
9332
9333 2002-02-01  Eric Christopher  <echristo@redhat.com>
9334
9335         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
9336         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
9337         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
9338         (ASM_OUTPUT_REG_POP): Ditto.
9339
9340 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
9341
9342         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
9343         patch.
9344
9345 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
9346
9347         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
9348
9349 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
9350
9351         PR c/5304:
9352         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
9353         unconditionally.
9354
9355 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
9356
9357         * cfganal.c: Include tm_p.h.
9358         (keep_with_call_p): Fix the test that determines if a register holds
9359         the return value of a call.
9360
9361 2002-02-01  DJ Delorie  <dj@redhat.com>
9362
9363         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
9364         we are given conflicting registers, switch to the other one we
9365         had allocated for us.
9366         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
9367         as TImode so we know when the "other" register is available.
9368
9369 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
9370
9371         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
9372         sparc/sparc_bi.h.
9373
9374 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
9375
9376         * cfganal.c (keep_with_call_p): New function.
9377         (flow_call_edges_add): Prevent splitting a block between a call and
9378         a single-set instruction that should be kept in the same block.
9379
9380 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9381
9382         * doc/install.texi (avr): Update outdated URL.
9383
9384 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
9385
9386         * config/stormy16/stormy16.md (pushqi): New.
9387         (popqi): New.
9388         (pushhi): New.
9389         (pophi): New.
9390         (movhi): Remove stack operands.
9391         (movqi): Likewise.
9392         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
9393         nonimmediate_nonstack_operand.
9394         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
9395         New.
9396         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
9397         New.
9398
9399 2002-01-31  Jason Merrill  <jason@redhat.com>
9400
9401         * Makefile.in (c-parse.c): Handle .output file.
9402         * objc/Make-lang.in (objc-parse.c): Likewise.
9403
9404 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
9405
9406         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
9407         the -me[lb] option is given.  Don't output the default flag
9408         twice.
9409
9410 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
9411
9412         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
9413         the primary source file; this has not been done yet.
9414         * c-decl.c (c_expand_body): Reset input_filename from
9415         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
9416
9417 2002-01-31  Kazu Hirata  <kazu@hxi.com>
9418
9419         * rtlanal.c (subreg_regno_offset): Do not use
9420         SUBREG_REGNO_OFFSET.
9421         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
9422         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
9423
9424 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
9425
9426         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
9427         version rather than GNATS version in --version output.
9428
9429 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
9430
9431         * ifcvt.c (noce_process_if_block): Make a copy of the destination
9432         when copying back from a temporary.
9433
9434 2002-01-30  Richard Henderson  <rth@redhat.com>
9435
9436         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
9437         and new_dest are the same.
9438
9439 2002-01-30  Richard Henderson  <rth@redhat.com>
9440
9441         PR opt/5076
9442         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
9443         * rtl.c (note_insn_name): Update.
9444         * emit-rtl.c (remove_unnecessary_notes): Kill it.
9445         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
9446         to perform loop rotation.
9447         (expand_exit_loop_top_cond): New.
9448         * tree.h (expand_exit_loop_top_cond): Declare it.
9449         * c-semantics.c (genrtl_while_stmt): Use it.
9450         (genrtl_for_stmt): Likewise.
9451
9452 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
9453
9454         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
9455         arguments to 64-bit boundaries on 64-bit ABIs.
9456
9457 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
9458
9459         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
9460
9461 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
9462
9463         * c-decl.c (grokdeclarator): Handle type being a typedef for an
9464         invalid type.
9465
9466 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
9467
9468         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
9469         * config/sparc/sparc_bi.h: Remove file.
9470         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
9471
9472 2002-01-30  Richard Henderson  <rth@redhat.com>
9473
9474         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
9475
9476 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
9477
9478         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
9479
9480 2002-01-30  Jason Merrill  <jason@redhat.com>
9481
9482         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
9483         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
9484         (reg_save): Use DW_CFA_offset_extended_sf instead.
9485
9486         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
9487
9488 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
9489
9490         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
9491         in cselib_lookup.
9492
9493 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
9494
9495         * rs6000.md ("*call_value_local32"): Remove constraints.
9496         ("*call_value_local64"): Same.
9497         ("*call_value_indirect_nonlocal_aix32"): Same.
9498         ("*call_value_nonlocal_aix32"): Same.
9499         ("*call_value_indirect_nonlocal_aix64"): Same.
9500         ("*call_value_nonlocal_aix64"): Same.
9501         ("*call_value_nonlocal_sysv"): Same.
9502
9503 2002-01-29  Richard Henderson  <rth@redhat.com>
9504
9505         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
9506
9507 2002-01-29  Richard Henderson  <rth@redhat.com>
9508
9509         * expr.c (force_operand): Ignore flag_pic for detecting pic
9510         address loads.
9511         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
9512         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
9513         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
9514         instead of open-coded loop.
9515         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
9516         be fixed when in use.
9517
9518 2002-01-29  Richard Henderson  <rth@redhat.com>
9519
9520         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
9521         * sched-rgn.c (propagate_deps): Update them.
9522         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
9523         clobbers list when either gets too long.
9524
9525 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
9526
9527         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
9528         and INDEX_REGS the same as GENERAL_REGS.
9529         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
9530
9531 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
9532
9533         * tree.c (build_nonstandard_integer_type): Correct prototype.
9534
9535 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
9536
9537         * config/s390/s390.md (movstrsico, movstrdix_64,
9538         movstrsix_31): Remove, replace by ...
9539         (movstrdi_short, movstrsi_short, movstrdi_long,
9540         movstrsi_long): ... these.  New.
9541         (movstrdi, movstrsi): Adapt.
9542
9543         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
9544         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
9545         Remove unnecessary CC clobber.
9546         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
9547         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
9548
9549         (divmoddi4): Don't partially initialize TImode register.
9550
9551 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
9552
9553         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
9554
9555 2002-01-29  Richard Henderson  <rth@redhat.com>
9556
9557         * flow.c (print_rtl_and_abort): Remove.
9558         (print_rtl_and_abort_fcn): Remove.
9559         (verify_local_live_at_start): Use dump_bb instead.
9560         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
9561         (verify_wide_reg_1): Return 2 on mode test failure.
9562
9563 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
9564
9565         PR c/3325, c/3326, c/2511, c/3347
9566         * c-decl.c (enum_decl_context): Remove BITFIELD.
9567         (grokdeclarator): Take bitfield width as an input.
9568         Ensure bitfields are given the correct type.  Perform
9569         bitfield width validation with build_bitfield_integer_type
9570         rather than waiting for finish_struct.
9571         (grok_typename, grok_typename_in_parm_context, start_decl,
9572         push_parmdecl, grokfield, start_function): Update calls to
9573         grokdeclarator.
9574         (build_bitfield_integer_type): New function.
9575         (finish_struct): Move bitfield validation to grokdeclarator
9576         and build_bitfield_integer_type.
9577         * tree.c (build_nonstandard_integer_type): New function.
9578         * tree.h (build_nonstandard_integer_type): New prototype.
9579 objc:
9580         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
9581
9582 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
9583
9584         PR other/1502:
9585         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
9586         don't ignore unrecognized -W* options.
9587         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
9588         * cpplib.h (cpp_handle_option): Adjust prototype.
9589         * c-decl.c (c_decode_options): Pass 0 as last argument to
9590         cpp_handle_option.
9591
9592         PR c/2896:
9593         * gcc.c (cpp_unique_options): Split from cpp_options.
9594         (cpp_options): Source cpp_unique_options.
9595         (default_compilers): Use cpp_unique_options instead of cpp_options
9596         when used together with cc1_options.
9597         (static_specs): Add cpp_unique_options.
9598         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
9599         when used together with cc1_options.
9600
9601 2002-01-29  Kazu Hirata  <kazu@hxi.com>
9602
9603         * config/h8300/h8300-protos.h: Update the prototype of
9604         output_a_shift.
9605         * config/h8300/h8300.c (output_a_shift): Remove an unused
9606         argument 'insn'.  Remove redundant code.
9607         * config/h8300/h8300.md: Adust to the new prototype of
9608         output_a_shift.
9609
9610 2002-01-29  Kazu Hirata  <kazu@hxi.com>
9611
9612         * config/h8300/h8300-protos.h: Update the prototypes of
9613         emit_a_rotate and expand_a_rotate.
9614         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
9615         first argument to 'enum rtx_code'.
9616         (expand_a_rotate): Likewise.
9617
9618 2002-01-28  Kazu Hirata  <kazu@hxi.com>
9619
9620         * config/h8300/h8300-protos.h: Update the prototype of
9621         output_simode_bld.
9622         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
9623         'log2'.
9624         * config/h8300/h8300.md: Adjust to the new prototype.
9625
9626 2002-01-28  Kazu Hirata  <kazu@hxi.com>
9627
9628         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
9629         redundant code.
9630
9631 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9632
9633         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
9634         is a fixed register before returning pic_offset_table_rtx.
9635         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
9636         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
9637
9638 2002-01-28  Jason Merrill  <jason@redhat.com>
9639
9640         * dwarf2.h: Sync with src version.
9641
9642 2002-01-28  Paul Koning  <pkoning@equallogic.com>
9643
9644         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
9645         BT_FN_VOID_PTR_VAR.
9646         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
9647         * doc/extend.texi (__builtin_prefetch): Update documentation:
9648         first argument is now const void ptr.
9649
9650 2002-01-28  Kazu Hirata  <kazu@hxi.com>
9651
9652         * config/h8300/h8300-protos.h: Remove an unused prototype.
9653
9654 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
9655
9656         * toplev.c (lang_independent_init): Round up identifier size.
9657
9658 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
9659
9660         * config.gcc: Revert previous change.
9661
9662 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
9663
9664         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
9665
9666 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
9667
9668         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
9669         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
9670         other non-elf netbsd config frags.
9671         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
9672         collect2 will does that.
9673         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
9674         shared-lib frobbing will work.
9675
9676 2002-01-28  Kazu Hirata  <kazu@hxi.com>
9677
9678         * config/h8300/h8300.h: Fix formatting.
9679         * config/h8300/h8300.md: Likewise.
9680
9681 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
9682
9683         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
9684         the old, removed AAA_standards fix.
9685         * fixinc/fixincl.x: Rebuilt.
9686
9687 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
9688
9689         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
9690         atexit call in crtbegin, hooked in after call to frame_dummy;
9691         register EH before registering __fini__start.
9692
9693 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
9694
9695         * config/rs6000/altivec.h: Remove spurious semicolons.
9696
9697 2002-01-27  Kazu Hirata  <kazu@hxi.com>
9698
9699         * config/h8300/h8300.md: Replace dead bit extraction patterns
9700         with ones that work.
9701
9702 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9703
9704         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
9705         if not STRICT_ALIGNMENT.
9706         * rtl.h (MEM_ALIGN): Likewise.
9707
9708 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9709
9710         * doc/invoke.texi (-fdump-translation-unit): Revert this
9711         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9712
9713 2002-01-27  Kazu Hirata  <kazu@hxi.com>
9714
9715         * config/h8300/h8300.md (define_constants): New.
9716         (anonymous patterns) Use defined constants appropriately.
9717
9718 2002-01-27  Kazu Hirata  <kazu@hxi.com>
9719
9720         * config/h8300/h8300.c (function_arg): Remove redundant code.
9721
9722 2002-01-26  Richard Henderson  <rth@redhat.com>
9723
9724         * sched-deps.c (reg_pending_uses_head): New.
9725         (reg_pending_barrier): Rename from reg_pending_sets_all.
9726         (find_insn_list): Don't mark inline.
9727         (find_insn_mem_list): Remove.
9728         (add_dependence_list, add_dependence_list_and_free): New.
9729         (flush_pending_lists): Replace only_write param with separate
9730         for_read and for_write parameters.  Update all callers.  Use
9731         add_dependence_list_and_free.
9732         (sched_analyze_1): Do not add reg dependencies here; just set
9733         the pending bits.  Use add_dependence_list.
9734         (sched_analyze_2): Likewise.
9735         (sched_analyze_insn): Replace schedule_barrier_found with
9736         reg_pending_barrier.  Add all dependencies for pending reg
9737         uses, sets, and clobbers.
9738         (sched_analyze): Don't add reg dependencies for calls, just
9739         set pending bits.  Use regs_invalidated_by_call.  Treat
9740         sched_before_next_call as a normal list, not a fake insn.
9741         (init_deps): No funny init for sched_before_next_call.
9742         (free_deps): Free pending mems lists.  Don't zero reg_last.
9743         (init_deps_global): Init reg_pending_uses.
9744         (finish_deps_global): Free it.
9745         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
9746         (find_insn_mem_list): Remove.
9747         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
9748         (propagate_deps): Use them.  Zero temp mem lists.
9749
9750 2002-01-26  Richard Henderson  <rth@redhat.com>
9751
9752         * Makefile.in (CRTSTUFF_CFLAGS): New.
9753         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
9754         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
9755         crtstuff.c instead of alpha assembly version.
9756         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
9757         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
9758         not FORCE_{INIT,FINI}_SECTION_ALIGN.
9759         (__do_global_dtors_aux): Mark used.
9760         (frame_dummy, __do_global_ctors_aux): Mark used.
9761         (fini_dummy, init_dummy): Remove.
9762
9763         * config/alpha/crtbegin.asm: Remove file.
9764         * config/alpha/crtend.asm: Remove file.
9765         * config/alpha/t-crtbe: Remove file.
9766         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
9767         (LINK_EH_SPEC): New.
9768
9769         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
9770         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
9771         calling constructors.
9772         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
9773
9774         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
9775         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
9776         CRT_END_INIT_DUMMY hack.
9777         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
9778         FORCE_{INIT,FINI}_SECTION_ALIGN.
9779
9780         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
9781         FORCE_{INIT,FINI}_SECTION_ALIGN.
9782
9783         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
9784         invocation sequence.
9785         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
9786
9787         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
9788         (FORCE_CODE_SECTION_ALIGN): New.
9789
9790 2002-01-26  Richard Henderson  <rth@redhat.com>
9791
9792         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
9793
9794 2002-01-26  Richard Henderson  <rth@redhat.com>
9795
9796         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
9797         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
9798
9799 2002-01-26  Kazu Hirata  <kazu@hxi.com>
9800
9801         * config/h8300/h8300.md: Remove bit extraction patterns that
9802         cannot be triggered.
9803         Restrict each bit extraction pattern to a variant on which the
9804         pattern is tested.
9805
9806 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
9807
9808         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
9809
9810 2002-01-26  Kazu Hirata  <kazu@hxi.com>
9811
9812         * config/h8300/h8300.md: Remove bit test patterns that cannot
9813         be triggered.
9814         Restrict each bit test pattern to a variant on which the
9815         pattern is tested.
9816
9817 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9818
9819         * builtins.c (expand_builtin_strncat): Remove redundant check for
9820         INTEGER_CST.
9821
9822 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
9823
9824         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
9825         default setting.
9826         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
9827         existing setting.
9828
9829 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
9830
9831         * dbxout.c (dbxout_init): Use assemble_name rather than just
9832         stripping off the first character.
9833         (dbxout_source_file): Likewise.
9834
9835 2002-01-25  DJ Delorie  <dj@redhat.com>
9836
9837         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
9838         using rtx_equal_p, not by comparing pointers.
9839
9840 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
9841
9842         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
9843         for PIC_OFFSET_TABLE_REGNUM.
9844         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
9845
9846 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
9847
9848         * config.gcc (x86_64-*-freebsd*): New target.
9849         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
9850         value.
9851         (i[34567]86-*-freebsd*): Don't include svr4.h.
9852         * config/i386/freebsd64.h: New file.
9853
9854 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
9855
9856         * config/alpha/x-vms (version): Make static.
9857
9858         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
9859         in previous checkin.
9860
9861         * Makefile.in (install-headers-cp): New target.
9862         * config.gcc (alpha-dec-*vms*): Install headers with
9863         install-headers-cp
9864
9865 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
9866
9867         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
9868         avoid it's copies.
9869
9870 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9871
9872         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
9873         of compare_tree_int.
9874         (expand_builtin_strncat): Likewise.
9875         * c-decl.c (finish_struct): Use tree_low_cst.
9876         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
9877         * tree.c (compare_tree_int): Likewise.
9878
9879 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
9880
9881         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
9882         adjustments even if they are implemented by more than two insns.
9883
9884 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
9885
9886         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
9887         * df.h (struct ref): Kill B.
9888         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
9889
9890         * basic-block.h (PROP_EQUAL_NOTES): New flag.
9891         * flow.c (propagate_one_insn): Use it.
9892         (mark_used_regs): Handle NIL.
9893
9894 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
9895
9896         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
9897         to help folding.
9898
9899 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
9900
9901         * rs6000.md (prefetch): Make address V4SI mode so that the address
9902         is restricted to legitimate form for instruction.
9903
9904 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
9905
9906         * doc/install.texi (xtensa-*-elf): New target.
9907         (xtensa-*-linux*): New target.
9908         * doc/contrib.texi: Add myself.
9909
9910 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
9911
9912         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
9913         purpose register to hold an SImode (or smaller) value.
9914
9915 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
9916
9917         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
9918         registry only.
9919         * crtstuff.c: Likewise.
9920
9921 2002-01-25  Kazu Hirata  <kazu@hxi.com>
9922
9923         * config/h8300/h8300.md (negation patterns): Tighten
9924         predicates to register_operand.
9925
9926 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
9927
9928         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
9929         mode, not Pmode.
9930
9931         * builtins.c (expand_builtin_prefetch): Same.
9932
9933 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
9934
9935         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
9936         modes.
9937
9938 2002-01-24  Kazu Hirata  <kazu@hxi.com>
9939
9940         * config/h8300/h8300.c (print_operand): Remove support for
9941         operand character 'A'.
9942         * config/h8300/h8300.md (three anonymous patterns): Replace
9943         operand character 'A' with either 'T' or 'S'.
9944
9945 2002-01-24  Kazu Hirata  <kazu@hxi.com>
9946
9947         * config/h8300/h8300.c (print_operand): Remove support for
9948         operand character 'U'.
9949
9950 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
9951
9952         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
9953
9954 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
9955
9956         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
9957         values to be assigned to the stack pointer.
9958
9959 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
9960
9961         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
9962         to const_double needs to be done right for big-endian systems.
9963
9964 2002-01-24  Jason Merrill  <jason@redhat.com>
9965
9966         PR c++/2432
9967         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
9968         to can_throw_internal.
9969
9970 2002-01-23  Richard Henderson  <rth@redhat.com>
9971
9972         * fold-const.c (fold): Change UINT_MAX test to check vs precision
9973         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
9974
9975 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
9976
9977         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
9978         (symGOT2reg): Use them, then set as GOT value as unchanging.
9979         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
9980         as a temporary, if possible.
9981         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
9982         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
9983
9984 2002-01-23  Kazu Hirata  <kazu@hxi.com>
9985
9986         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
9987         accept to accept 0x80 as operands[2].
9988
9989 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
9990
9991         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
9992
9993 2002-01-23  Richard Henderson  <rth@redhat.com>
9994
9995         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
9996
9997 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
9998
9999         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
10000         (parmlist_or_identifiers_1): Verify that only a parmlist follows
10001         an attribute.
10002
10003 2002-01-23  Richard Henderson  <rth@redhat.com>
10004
10005         * expr.c (move_by_pieces_1): Extend size before negation.
10006
10007         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
10008         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
10009         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
10010         * config/m68k/t-m68kelf: Likewise.
10011
10012 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
10013
10014         * config/xtensa/elf.h: New file.
10015         * config/xtensa/lib1funcs.asm: New file.
10016         * config/xtensa/lib2funcs.S: New file.
10017         * config/xtensa/linux.h: New file.
10018         * config/xtensa/t-xtensa: New file.
10019         * config/xtensa/xtensa-config.h: New file.
10020         * config/xtensa/xtensa-protos.h: New file.
10021         * config/xtensa/xtensa.c: New file.
10022         * config/xtensa/xtensa.h: New file.
10023         * config/xtensa/xtensa.md: New file.
10024         * config.gcc (xtensa-*-elf*): New target.
10025         (xtensa-*-linux*): New target.
10026         * cse.c (canon_hash): Compare rtx pointers instead of register
10027         numbers.  This is required for the Xtensa port.
10028         * integrate.c (copy_insn_list): Handle case where the static
10029         chain is in memory and the memory address has to be copied to
10030         a register.
10031         * doc/invoke.texi (Option Summary): Add Xtensa options.
10032         (Xtensa Options): New node.
10033         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
10034
10035 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
10036
10037         * diagnostic.c (internal_error): Do ICE suppression only
10038         when ENABLE_CHECKING is not defined.
10039
10040         * c-typeck.c (require_complete_type): Return error_mark_node
10041         if type is error_mark_node.
10042
10043 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
10044
10045         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
10046         -Os and issue a warning.
10047
10048 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
10049
10050         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
10051         current (lack of) need for host configuration by hand.
10052
10053         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
10054         references.  Documentation of some target macros moved from
10055         hostconfig.texi to tm.texi.
10056
10057 2002-01-23  Will Cohen  <wcohen@redhat.com>
10058
10059         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
10060         defined.
10061
10062 2002-01-23  Kazu Hirata  <kazu@hxi.com>
10063
10064         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
10065         operand[3].
10066
10067 2002-01-23  Jason Merrill  <jason@redhat.com>
10068
10069         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
10070
10071         * function.c (assign_parms): Don't put args of inline functions
10072         into registers when not optimizing.
10073
10074 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
10075
10076         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
10077         (prologue_use): New pattern.
10078         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
10079         preference to gen_rtx_USE.
10080         (thumb_expand_prologue): Use gen_prologue_use in preference to
10081         gen_rtx_USE.
10082         (thumb_expand_epilogue): Use gen_prologue_use in preference to
10083         gen_rtx_USE.
10084
10085 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
10086
10087         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
10088
10089 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
10090
10091         PR c/3504
10092         * doc/extend.texi: Correct documentation of __alignof__.
10093
10094 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
10095
10096         * params.h: Rename arguments of DEFPARAM so that it will be
10097         recognized as a translation keyword.
10098
10099 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
10100
10101         * extend.texi: Document altivec functions.
10102         Fix N-bit adjectives in X86 builtin documentation.
10103
10104 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
10105
10106         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
10107         auto_inc_dec values.
10108
10109 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
10110
10111         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
10112         after backslash.
10113         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
10114
10115 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
10116
10117         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
10118
10119 2002-01-22  Richard Henderson  <rth@redhat.com>
10120
10121         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
10122         copy_insn not copy_rtx.
10123
10124 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
10125
10126         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
10127         "nonzero" as that might add "1" bits.  Ensure "constop" is
10128         properly sign extened.
10129         (force_to_mode): Tweak for sign extended constop.
10130
10131 2002-01-22  Richard Henderson  <rth@redhat.com>
10132
10133         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
10134         for_each_rtx instead of assuming we're already looking at the MEM.
10135         (split_small_symbolic_mem_operand): Likewise.
10136         * config/alpha/alpha.h (PREDICATE_CODES): Update.
10137         * config/alpha/alpha.md (small symbolic memory splitters): Update.
10138
10139 2002-01-22  Richard Henderson  <rth@redhat.com>
10140
10141         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
10142         sequence number for the literal.
10143         (divmoddi_internal_er): Likewise.
10144
10145 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10146
10147         PR java/4972
10148         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
10149         in LIBICONV variable.
10150         * configure: Regenerated.
10151
10152 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
10153
10154         * dependence.c (build_def_use): Remove array_idx.
10155
10156         * dwarfout.c (last_filename): Remove.
10157         (output_compile_unit_die): Remove last_filename.
10158
10159 2002-01-22  Roger Sayle  <roger@eyesopen.com>
10160             Richard Henderson  <rth@redhat.com>
10161
10162         PR opt/3640
10163         * fold-const.c (fold): Optimize unsigned comparisons against
10164         UINT_MAX (and similar unsigned constants).
10165
10166 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
10167
10168         * Makefile.in (loop.o): Depend on OPTABS_H.
10169         * loop.c (emit_prefetch_instructions): Check the prefetch operand
10170         against the predicate.
10171
10172         PR target/5379
10173         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
10174         for the address operand.
10175
10176 2002-01-22  Richard Henderson  <rth@redhat.com>
10177
10178         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
10179
10180 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10181
10182         PR other/5450
10183         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
10184         preprocessor flags.
10185
10186 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
10187
10188         * config.gcc (x86_64-*-netbsd*): New target.
10189         * config/i386/netbsd64.h: New file.
10190
10191 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
10192
10193         * regrename.c (kill_value): Fix typo.
10194
10195 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
10196
10197         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
10198
10199         * config/rs6000/rs6000.h: Same.
10200
10201         * function.c (instantiate_virtual_regs): Remove
10202         STARTING_FRAME_PHASE.
10203         (assign_stack_local_1): Same.
10204         Calculate frame phase.
10205
10206 2002-01-22  Nick Clifton  <nickc@redhat.com>
10207
10208         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
10209         variable declaration to outer scope in order to simplify
10210         future extensions.
10211         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
10212         arm_hard_regno_mode_ok.
10213         * config/arm/arm-protos.h: Add a prototype for
10214         arm_hard_regno_mode_ok.
10215         * config/arm/arm.c (soft_df_operand): Remove now redundant
10216         check for DImode values using IP_REGNUM.
10217         (nonimmediate_soft_df_operand): Remove now redundant check for
10218         DImode values using IP_REGNUM.
10219         (arm_hard_regno_mode_ok): New function. New check: make sure
10220         that DImode values are not stored in IP_REGNUM.
10221
10222         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
10223         note with a USE.
10224         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
10225
10226 2002-01-22  Jason Merrill  <jason@redhat.com>
10227
10228         * c-semantics.c (genrtl_compound_stmt): Only check nesting
10229         consistency if this COMPOUND_STMT is scoped.
10230
10231 2002-01-22  Kazu Hirata  <kazu@hxi.com>
10232
10233         * predict.c: Fix formatting.
10234         * print-tree.c: Likewise.
10235         * protoize.c: Likewise.
10236         * real.h: Likewise.
10237         * rtl.h: Likewise.
10238         * sbitmap.h: Likewise.
10239         * scan.c: Likewise.
10240         * sched-deps.c: Likewise.
10241         * sched-vis.c: Likewise.
10242         * sdbout.c: Likewise.
10243         * sibcall.c: Likewise.
10244         * ssa.c: Likewise.
10245         * ssa-ccp.c: Likewise.
10246         * ssa-dce.c: Likewise.
10247         * stmt.c: Likewise.
10248         * stor-layout.c: Likewise.
10249         * system.h: Likewise.
10250
10251 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10252
10253         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
10254         if fits in bounds of base type.
10255
10256         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
10257         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
10258         (add_bound_info, default): If can't find a context, make a
10259         SAVE_EXPR.
10260         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
10261
10262 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
10263
10264         * c-typeck.c (parser_build_binary_op): If result from
10265         build_binary_op is ERROR_MARK just return error_mark_node without
10266         further processing.
10267
10268 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
10269
10270         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
10271         Split a.out-specific bits into...
10272         * config/netbsd-aout.h: ...this.
10273         * config/netbsd-elf.h: New file.
10274         * config/alpha/netbsd-elf.h: Remove.
10275         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
10276         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
10277         (STARTFILE_SPEC): Remove redundant definition.
10278         (ENDFILE_SPEC): Likewise.
10279         (LINK_SPEC): Likewise.
10280         (CPP_SPEC): Likewise.
10281         (ASM_SPEC): Likewise.
10282         (LIB_SPEC): Likewise.
10283         (SWITCH_TAKES_ARG): Likewise.
10284         (TARGET_MEM_FUNCTIONS): Likewise.
10285         (CPP_PREDEFINES): Redefine.
10286         (ASM_FINAL_SPEC): Remove redefinition.
10287         (ASM_COMMENT_START): Redefine.
10288         (FUNCTION_PROFILER): Define.
10289         (TARGET_VERSION): Redefine.
10290         Comment and formatting cleanup.
10291         * config/i386/netbsd.h: Include <netbsd-aout.h>.
10292         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
10293         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
10294         big- or little-endian.
10295         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
10296         * config.gcc (*-*-netbsd*): Add definitions common to all
10297         NetBSD configs.
10298         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
10299         gnu_ld definitions.  Add netbsd-elf.h to and remove
10300         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
10301         tmake_file, and don't lose previous tmake_file contents.
10302         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
10303         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
10304         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
10305         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
10306         (mipsel-*-netbsd*): Rename this to...
10307         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
10308         mips/little.h to tm_file for mips*el-*.
10309         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
10310         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
10311         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
10312
10313 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10314
10315         * pa-protos.h (reg_before_reload_operand): New function prototype.
10316         * pa.c (reg_before_reload_operand): New function implementation.
10317         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
10318         contraints to "*m".
10319
10320 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10321
10322         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
10323
10324 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10325
10326         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
10327         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
10328         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
10329         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
10330         (ENDFILE_SPEC): Undefine.
10331         (STARTFILE_SPEC): Redefine for PA.
10332
10333 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10334
10335         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
10336
10337 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
10338
10339         * config.gcc: Add entries to supported PowerPC --with-cpu
10340         types.
10341
10342 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
10343
10344         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
10345         true for 64-bit mode only SSE registers in 32-bit mode.
10346
10347 2002-01-21  Kazu Hirata  <kazu@hxi.com>
10348
10349         * unwind-dw2.c: Fix formatting.
10350         * unwind-dw2-fde.c: Likewise.
10351         * unwind-dw2-fde.h: Likewise.
10352         * unwind-pe.h: Likewise.
10353         * varasm.c: Likewise.
10354         * varray.h: Likewise.
10355
10356 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
10357
10358         Remove workaround for register stack overwrite bug in mmix.
10359         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
10360         support for TARGET_REG_STACK_FILL_BUG.
10361         * config/mmix/mmix.h: Remove member has_call_without_parameters.
10362         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
10363         Delete.
10364         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
10365         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
10366         -mno-reg-stack-fill-bug-workaround.
10367         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
10368         machine member has_call_without_parameters.
10369         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
10370         -mreg-stack-fill-bug-workaround and
10371         -mno-reg-stack-fill-bug-workaround.
10372         (MMIX Options): Ditto.
10373
10374 2002-01-21  Kazu Hirata  <kazu@hxi.com>
10375
10376         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
10377         as appropriate.
10378         Remove redundant code.
10379
10380 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
10381
10382         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
10383         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10384         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10385         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
10386         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
10387         out target macro definitions and non-target-specific comments
10388         mostly taken from old versions of the manual.
10389
10390 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10391
10392         * config/h8300/h8300.h: Fix comment formatting.
10393         * config/ia64/aix.h: Likewise.
10394         * config/ia64/ia64-protos.h: Likewise.
10395         * config/ia64/ia64.c: Likewise.
10396         * config/ia64/ia64.h: Likewise.
10397         * config/ia64/ia64intrin.h: Likewise.
10398         * config/ia64/linux.h: Likewise.
10399         * config/ia64/unwind-aix.c: Likewise.
10400         * config/ia64/unwind-ia64.c: Likewise.
10401
10402 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10403
10404         * config/h8300/h8300.c: Revise comments about shift code.
10405
10406 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10407
10408         * config/h8300/h8300.c (function_arg): Update a comment.
10409
10410 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10411
10412         * config/h8300/h8300.md: Update the comments at the beginning
10413         of the file.
10414
10415 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10416
10417         * config/i370/i370.c: Fix comment formatting.
10418         * config/i370/i370.h: Likewise.
10419         * config/i370/i370.md: Likewise.
10420         * config/i370/linux.h: Likewise.
10421
10422 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10423
10424         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
10425
10426         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
10427         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
10428         in incomplete case.
10429
10430 2002-01-20  Graham Stott  <grahams@redhat.com>
10431
10432         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
10433
10434 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10435
10436         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
10437
10438 2002-01-19  Tom Rix  <trix@redhat.com>
10439
10440         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
10441
10442 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
10443
10444         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
10445
10446         * function.c (assign_stack_local_1): Adjust x_frame_offset with
10447         STARTING_FRAME_PHASE.
10448         (STARTING_FRAME_PHASE): New.
10449         (instantiate_virtual_regs): Check saneness of
10450         STARTING_FRAME_PHASE.
10451
10452         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
10453
10454 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
10455
10456         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
10457
10458 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10459
10460         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
10461         be used for bootstrapping GCC 3.0.
10462
10463 2002-01-18  Kazu Hirata  <kazu@hxi.com>
10464
10465         * config/h8300/h8300.md: Fix an insn length.
10466
10467 2002-01-18  Kazu Hirata  <kazu@hxi.com>
10468
10469         * bitmap.h: Fix comment formatting.
10470         * combine.c: Likewise.
10471         * cppfiles.c: Likewise.
10472         * c-pragma.h: Likewise.
10473         * c-typeck.c: Likewise.
10474         * df.c: Likewise.
10475         * dwarf2out.c: Likewise.
10476         * function.c: Likewise.
10477         * gcc.c: Likewise.
10478         * genattrtab.c: Likewise.
10479         * gthr-win32.h: Likewise.
10480         * haifa-sched.c: Likewise.
10481         * predict.c: Likewise.
10482         * rtlanal.c: Likewise.
10483         * rtl.h: Likewise.
10484         * unwind-dw2-fde.h: Likewise.
10485         * unwind-pe.h: Likewise.
10486         * vmsdbgout.c: Likewise.
10487
10488 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10489
10490         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
10491         if type_required and passed decl.
10492
10493 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
10494
10495         * config.gcc (cpu_type): Include altivec.h in powerpc
10496         extra_headers.
10497         Same for darwin.
10498
10499         * config/rs6000/altivec.h: New.
10500
10501 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
10502
10503         * doc/install.texi (*-ibm-aix*): Update assembler and exception
10504         handling information.
10505         * doc/trouble.texi (Interoperation): Add libstdc++ information
10506         for AIX.
10507         (Misunderstandings): Add template instantiation and static template
10508         member information for AIX.
10509
10510 2002-01-17  Jason Merrill  <jason@redhat.com>
10511
10512         * dbxout.c (dbxout_type): Support const and volatile.
10513
10514         * except.c (add_partial_entry): Remove backwards compatibility code.
10515         (end_protect_partials): Likewise.
10516
10517 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
10518
10519         * config/ia64/ia64.md (prologue_use): New.
10520         * config/ia64/ia64.c (ia64_expand_prologue): Use
10521         gen_prologue_use instead of gen_rtx_USE.
10522         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
10523         as CODE_FOR_pred_rel_mutex.
10524         (ia64_sched_reorder2): Likewise.
10525
10526 2002-01-16  Eric Christopher  <echristo@redhat.com>
10527
10528         * config/mips/r3900.h: Reformat.
10529         (SUBTARGET_CPP_SIZE_SPEC): Remove.
10530         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
10531         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
10532         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
10533         * config/mips/t-elf: Remove mips3 multilib.
10534
10535 2002-01-16  H.J. Lu <hjl@gnu.org>
10536
10537         * config/mips/linux.h: Include "mips/abi64.h".
10538
10539 2002-01-16  H.J. Lu <hjl@gnu.org>
10540
10541         * config/mips/t-linux: New.
10542
10543         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
10544
10545         * config/mips/linux.h: Don't include "gofast.h".
10546         (INIT_SUBTARGET_OPTABS): Removed.
10547
10548 2002-01-16  Kazu Hirata  <kazu@hxi.com>
10549
10550         * config/h8300/h8300-protos.h: Replace emit_a_shift with
10551         output_a_shift.
10552         * config/h8300/h8300.c: Likewise.
10553         * config/h8300/h8300.md: Likewise.
10554
10555 2002-01-16  Kazu Hirata  <kazu@hxi.com>
10556
10557         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
10558         spaces after an opcode name.
10559         (pushqi1_h8300hs): Likewise.
10560         (pushhi1_h8300hs): Likewise.
10561
10562 2002-01-16  Kazu Hirata  <kazu@hxi.com>
10563
10564         * doc/extend.texi: Replace "option" with "attribute"
10565         appropriately.
10566
10567 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
10568
10569         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
10570         (and:DI () (const_int -8)).
10571         (split_small_symbolic_mem_operand): Split
10572         (mem (and:DI () (const_int -8)).
10573
10574 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
10575
10576         PR target/5309:
10577         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
10578         same way as TYPE_IMUL.
10579         (ultrasparc_sched_reorder): Likewise.
10580         * config/sparc/sparc.md (type): Add comment to update
10581         ultrasparc_sched_reorder when making changes.
10582
10583 2002-01-16  Kazu Hirata  <kazu@hxi.com>
10584
10585         * doc/invoke.texi: Change the dump file name of block
10586         reordering pass from 28.bbro to 29.bbro.
10587         Mention -dk option.
10588
10589 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
10590
10591         * i386.md (minsf splitter): Fix pasto.
10592
10593 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
10594
10595         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
10596         to frame pointer initialisation instruction.
10597         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
10598         initialisation instruction.
10599         (soft_df_operand): Do not accept the IP register.
10600         (nonimmediate_soft_df_operand): Do not accept the IP register.
10601
10602 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
10603
10604         PR target/5357:
10605         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
10606         MASK_V8 being both set.
10607
10608 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
10609
10610         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
10611         insn for GOT register; add REG_MAYBE_DEAD notes instead.
10612         config/s390/s390.md (call, call_value): Add GOT register to
10613         CALL_INSN_FUNCTION_USAGE where needed.
10614         (call_exp, call_value_exp): New.
10615
10616 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
10617
10618         * config/arm/arm.c: General formatting tidy up.
10619
10620 2002-01-16  Graham Stott  <grahams@redhat.com>
10621
10622         * calls.c (try_to_integrate): Use "(size_t)" intermediate
10623         cast and when casting an integer literal to "rtx" pointer.
10624         (expand_call): Likewise.
10625         * flow.c (try_pre_increment): Likewise.
10626         (find_use_as_address): Likewise.
10627         * integrate.c (expand_iline_function): Likewise.
10628         * regmove.c (try_auto_increment): Likewise.
10629
10630 2002-01-16  Graham Stott  <grahams@redhat.com>
10631
10632         * sched-rgn.c (passed): Use sbitmap_free.
10633         (header): Likewise.
10634         (inner): Likewise.
10635         (in_queue): Likewise.
10636         (in_stack): Likewise.
10637
10638 2002-01-15  Eric Christopher  <echristo@redhat.com>
10639
10640         * flow.c (propagate_one_insn): Change to use fatal_insn.
10641
10642 2002-01-15  Kazu Hirata  <kazu@hxi.com>
10643
10644         * expmed.c (extract_fixed_bit_field): Remove unused code.
10645         * system.h: Poison SLOW_ZERO_EXTEND.
10646         * doc/tm.texi: Remove.
10647         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
10648         * config/arm/arm.h: Likewise.
10649         * config/avr/avr.h: Likewise.
10650         * config/clipper/clipper.h: Likewise.
10651         * config/convex/convex.h: Likewise.
10652         * config/d30v/d30v.h: Likewise.
10653         * config/dsp16xx/dsp16xx.h: Likewise.
10654         * config/elxsi/elxsi.h: Likewise.
10655         * config/fr30/fr30.h: Likewise.
10656         * config/h8300/h8300.h: Likewise.
10657         * config/i370/i370.h: Likewise.
10658         * config/i386/i386.h: Likewise.
10659         * config/m68k/m68k.h: Likewise.
10660         * config/mips/mips.h: Likewise.
10661         * config/ns32k/ns32k.h: Likewise.
10662         * config/pdp11/pdp11.h: Likewise.
10663         * config/pj/pj.h: Likewise.
10664         * config/s390/s390.h: Likewise.
10665         * config/sh/sh.h: Likewise.
10666         * config/stormy16/stormy16.h: Likewise.
10667         * config/v850/v850.h: Likewise.
10668         * config/vax/vax.h: Likewise.
10669         * config/we32k/we32k.h: Likewise.
10670
10671 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
10672
10673         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
10674         (altivec_lvsl): Change constraint to b.
10675         (altivec_lvsr): Same.
10676         (altivec_lvebx): Same.
10677         (altivec_lvehx): Same.
10678         (altivec_lvewx): Same.
10679         (altivec_lvxl): Same.
10680         (altivec_lvx): Same.
10681         (altivec_stvx): Add parallel.
10682         (altivec_stvxl): Same.
10683         (altivec_stvehx): Same.
10684         (altivec_stvebx): Same.
10685         (altivec_stvebx): Same.
10686
10687 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
10688
10689         * config.gcc: Change altivec.h to altivec-defs.h.
10690
10691         * config/rs6000/altivec.h: Delete.
10692
10693         * config/rs6000/altivec-defs.h: Add.
10694
10695 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10696
10697         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
10698         and UMOD modes.
10699
10700         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
10701         less than or equal to eight bytes.
10702
10703         * vax.md (andsi3): Remove constraints and change SET destination
10704         operand type to nonimmediate_operand.
10705         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
10706         when it is a CONST_INT.
10707
10708 2002-01-15  Jason Merrill  <jason@redhat.com>
10709
10710         * c-common.def (FILE_STMT): New code.
10711         * c-common.c (statement_code_p): It's a statement.
10712         * c-common.h (stmt_tree_s): Add x_last_filename.
10713         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
10714         (last_expr_filename): New macro.
10715         * c-semantics.c (begin_stmt_tree): Initialize it.
10716         (add_stmt): If the filename changed, also insert a
10717         FILE_STMT.
10718         (expand_stmt): Handle seeing one.
10719
10720 2002-01-15  Eric Christopher  <echristo@redhat.com>
10721
10722         * flow.c (propagate_one_insn): Add error message and print out
10723         insn for debugging.
10724
10725 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
10726
10727         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
10728         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
10729         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
10730         TRAMPOLINE_ALIGNMENT.
10731         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
10732         to be in bits.
10733         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
10734         PCC_BITFIELD_TYPE_MATTERS.
10735         * config/interix.h (STDC_VALUE): Remove.  Use
10736         STDC_0_IN_SYSTEM_HEADERS.
10737         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
10738         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
10739         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
10740
10741 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10742
10743         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
10744         not work on this platform currently.
10745
10746 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
10747
10748         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
10749         readonly_warning in _().
10750
10751 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
10752
10753         * gcc.c (delete_if_ordinary): Backout previous change.
10754
10755 2002-01-15  Kazu Hirata  <kazu@hxi.com>
10756
10757         * config/h8300/h8300.c (print_operand): Remove support for
10758         unused operand characters.
10759
10760         * read-rtl.c: Fix formatting.
10761         * real.c: Likewise.
10762         * recog.c: Likewise.
10763         * regclass.c: Likewise.
10764         * regmove.c: Likewise.
10765         * reg-stack.c: Likewise.
10766         * reload1.c: Likewise.
10767         * rtlanal.c: Likewise.
10768
10769 2002-01-15  Kazu Hirata  <kazu@hxi.com>
10770
10771         * config/i386/i386.c: Fix formatting.
10772
10773 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
10774
10775         * c-typeck.c (process_init_element): Don't save_expr
10776         COMPOUND_LITERAL_EXPR if just its initializer will be used.
10777
10778 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
10779
10780         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
10781         emit optional traceback table if optimize_size or TARGET_ELF.
10782         * config/rs6000/rs6000.md (prefetch): New.
10783
10784 2002-01-15  Andreas Jaeger  <aj@suse.de>
10785
10786         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
10787
10788 2002-01-15  Kazu Hirata  <kazu@hxi.com>
10789
10790         * mips-tfile.c: Fix formatting.
10791
10792 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
10793
10794         * unroll.c (final_reg_note_copy): Fix previous commit.
10795
10796 2002-01-14  Kazu Hirata  <kazu@hxi.com>
10797
10798         * config/h8300/h8300-protos.h: Remove the prototype for
10799         eq_operator.
10800         * config/h8300/h8300.c (eq_operator): Remove.
10801
10802 2002-01-14  Richard Henderson  <rth@redhat.com>
10803
10804         * config/i386/i386.md (prefetch): Tidy.
10805         (prefetch_3dnow): Fix locality operand.
10806
10807 2002-01-14  Richard Henderson  <rth@redhat.com>
10808
10809         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
10810         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
10811
10812 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
10813
10814         * reload1.c (reload_combine): Pass reg_sum replacement through
10815         copy_rtx in loop performing multiple changes.
10816
10817 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
10818
10819         * except.c (remove_unreachable_regions): New.
10820         (free_eh_status): Clear exception_handler_labels.
10821         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
10822         (find_exception_handler_labels): Don't add the same label more than
10823         once.
10824         (remove_exception_handler_label): Don't die if
10825         find_exception_handler_labels hasn't been called for the current
10826         function yet.
10827
10828 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
10829
10830         * toplev.c (rest_of_compilation): Rebuild jump labels after
10831         gcse.
10832
10833 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
10834
10835         * doc/extend.texi: Move documentation of X86 built-in functions
10836         here.
10837         * doc/invoke.texi: From here.
10838         * doc/sourcebuild.texi: Document location of documentation for
10839         machine built-in functions.
10840
10841 2002-01-13  Christopher Faylor  <cgf@redhat.com>
10842
10843         * cppfiles.c (TEST_THRESHOLD): New macro.
10844         (SHOULD_MMAP): Ditto.
10845         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
10846         be used.
10847
10848 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
10849
10850         * unroll.c (final_reg_note_copy): Properly handle
10851         REG_LABEL
10852         (unroll_loops): Fix LOOP_CONDITION heuristics.
10853
10854 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
10855
10856         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
10857         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
10858
10859 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
10860
10861         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
10862         threaded loop.
10863
10864 2002-01-14  Tom Rix  <trix@redhat.com>
10865
10866         * config/rs6000/rs6000.md: Fix typo with sradi.
10867
10868 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
10869
10870         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
10871         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
10872         (clrstrdi, clrstrsi): Adapt callers.
10873
10874         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
10875
10876         (movti splitter): Never use register 0 as base register.
10877
10878 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
10879
10880         * combine.c (simplify_shift_const): Always generate new rtx
10881         for shift expression instead of reusing given expression.
10882
10883 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10884
10885         * config/alpha/alpha.c (alpha_expand_mov): Don't call
10886         alpha_legitimize_address unless mode is Pmode.
10887
10888 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
10889
10890         * doc/md.texi (Modifiers): Document the '*' constraint for the
10891         user.
10892
10893         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
10894         * doc/extend.texi (Function Attributes): 'interrupt' is valid
10895         for xstormy16 too.
10896
10897 2002-01-13  Richard Henderson  <rth@redhat.com>
10898
10899         * reload.c (find_reloads): Use a hard reg destination as reload reg
10900         for an input reload of the source.
10901
10902 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10903
10904         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
10905         more generic.
10906
10907 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
10908
10909         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
10910         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
10911
10912         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
10913
10914 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10915
10916         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
10917
10918 2002-01-12  Tom Rix  <trix@redhat.com>
10919
10920         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
10921         TARGET_POWERPC64.
10922
10923 2002-01-12  Richard Henderson  <rth@redhat.com>
10924
10925         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
10926
10927         * doc/invoke.texi: Update Alpha options.
10928
10929         * doc/invoke.texi: Update i386 built-in function lists.
10930
10931 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
10932
10933         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
10934         referencing outside.
10935
10936 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10937
10938         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
10939         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
10940         offsets, and change line folding.
10941         * optabs.c (expand_binop): Remove warnings.
10942         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
10943
10944 2002-01-12  Graham Stott <grahams@redhat.com>
10945
10946         * attribs.c (handle_deprecated_attribute): constify WHAT.
10947         * diagnostic.c (warn_deprecated_use): Add braces, fixes
10948         dangling else warning and constify WHAT.
10949         * except.h (struct function, struct inline_remap): Move
10950         struct tag forward defs before all prototypes.
10951         (duplicate_eh_regions): Whitespace.
10952
10953 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
10954
10955         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
10956         MODE_BASE_REG_CLASS.
10957         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
10958
10959 2002-01-12  Richard Henderson  <rth@redhat.com>
10960
10961         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
10962         (ix86_expand_vector_move): New.
10963         (bdesc_2arg): Remove andps, andnps, orps, xorps.
10964         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
10965         Remove old prefetch builtins.  Special case the logicals removed above.
10966         (ix86_expand_builtin): Likewise.
10967         (safe_vector_operand): Use V4SFmode, not TImode.
10968         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
10969         (ix86_expand_timode_binop_builtin): New.
10970         * config/i386/i386-protos.h: Update.
10971         * config/i386/i386.h (enum ix86_builtins): Update.
10972         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
10973         Use ix86_expand_vector_move in vector move expanders.
10974         (movti_internal, movti_rex64): Add xorps alternative.
10975         (sse_clrv4sf): Rename and adjust from sse_clrti.
10976         (prefetch): Don't work so hard.
10977         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
10978         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
10979         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
10980
10981 2002-01-11  Richard Henderson  <rth@redhat.com>
10982
10983         * config/i386/mmintrin.h: New file.
10984         * config/i386/xmmintrin.h: New file.
10985         * config.gcc (i?86-*-*): Add extra_headers.
10986         * simplify-rtx.c (simplify_unary_operation): Handle saturating
10987         truncation codes.
10988         (simplify_binary_operation): Handle saturating arithmetic codes.
10989         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
10990         not the lowpart subreg.
10991         (ix86_expand_builtin): Return a TImode dummy register instead of 0
10992         on error.
10993         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
10994
10995 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
10996
10997         * conflict.c (conflict_graph_compute): Free regsets when finished.
10998         * ssa.c (compute_coalesced_reg_partition): Likewise.
10999
11000 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11001
11002         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
11003         every where we allocate a register.
11004
11005 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11006
11007         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
11008         * lcm.c (compute_earliest, compute_farthest): Likewise.
11009
11010 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
11011
11012         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
11013
11014 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
11015
11016         * doc/rtl.texi (Insns): Fix 2 typos.
11017
11018 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
11019
11020         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
11021         options.  Use @table @gcctabopt for MMIX options.  Add index
11022         entries for MMIX options.  Start new paragraph with first
11023         heading of the machine-dependent options.
11024
11025 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11026
11027         PR other/5299
11028         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
11029         * combine.c (force_to_mode): Same.
11030         * reload1.c (clear_reload_reg_in_use): Same.
11031
11032 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
11033
11034         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
11035         and 'subtargets'.
11036
11037 2002-01-11  Andreas Jaeger  <aj@suse.de>,
11038             Brad Lucier <lucier@math.purdue.edu>
11039
11040         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
11041         mcpu.
11042
11043 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
11044
11045         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
11046         Protect with IN_LIBGCC.
11047         (LINK_EH_SPEC): Add required trailing space.
11048
11049 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
11050
11051         * c-tree.h: Move function declarations so that they are listed
11052         under the filename which contains them.
11053         (check_identifier, finish_decl_top_level,
11054         lookup_name_current_level_global, shadow_record_fields): Remove.
11055
11056 2002-01-11  Andreas Jaeger  <aj@suse.de>
11057
11058         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
11059         march.
11060
11061 2002-01-10  Richard Henderson  <rth@redhat.com>
11062
11063         * config/alpha/alpha.c (print_operand): Add 'J'.
11064         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
11065         new operand with the sequence number for the lituse.  When splitting
11066         the insns, use gen_movdi_er_high_g and generate a sequence number.
11067         (gen_movdi_er_high_g): Print the sequence number if non-zero.
11068
11069 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
11070
11071         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
11072         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
11073         stvxl.
11074         (altivec_expand_builtin): Same.
11075         (altivec_expand_stv_builtin): New.
11076
11077         * config/rs6000/rs6000.h (rs6000_builtins): Same.
11078
11079         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
11080         ("altivec_lvehx"): New.
11081         ("altivec_lvewx"): New.
11082         ("altivec_lvxl"): New.
11083         ("altivec_lvx"): New.
11084         ("altivec_stvx"): New.
11085         ("altivec_stvebx"): New.
11086         ("altivec_stvehx"): New.
11087         ("altivec_stvewx"): New.
11088         ("altivec_stvxl"): New.
11089
11090 2002-01-10  Richard Henderson  <rth@redhat.com>
11091
11092         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
11093         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
11094         care not to delete instructions twice.
11095
11096 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
11097
11098         * toplev.c: Don't declare environ (it's not used anywhere).
11099         * configure.in: Don't check for declaration of environ.
11100         * config/i386/xm-mingw32.h: Don't #define environ.
11101         * config.in, configure: Regenerate.
11102
11103 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
11104
11105         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
11106         * configure: Regenerate.
11107
11108         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
11109         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
11110         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
11111         alpha/xm-vms.h.
11112         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
11113         LIMITS_H_TEST here, not in m68k/x-next.
11114         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
11115         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
11116
11117         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
11118         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
11119         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
11120
11121         * config/i386/x-djgpp: Renamed i386/t-djgpp.
11122         * config/m88k/x-dolph: Renamed m88k/t-dolph.
11123         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
11124         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
11125         replacement of quadlib.asm with quadlib.c.
11126
11127         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
11128         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
11129         config/rs6000/xm-beos.h: Delete file.
11130
11131         * config.gcc: Update to match above changes.
11132
11133 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11134
11135         * config/h8300/h8300.h: Fix comment typos.
11136         * config/h8300/h8300.md: Likewise.
11137         * config/h8300/lib1funcs.asm: Likewise.
11138
11139 2002-01-10  Dale Johannesen  <dalej@apple.com>
11140
11141         PR optimization/5269
11142         * unroll.c (precondition_loop_p): Make *increment be the correct
11143         sign when n_iterations known, to avoid confusing caller.
11144
11145 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11146
11147         * doc/extend.texi (deprecated): Fix a typo.
11148
11149 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
11150
11151         * basic-block.h (update_br_prob_note): Declare.
11152         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
11153         (try_forward_edges): Care negative frequencies and update note.
11154         (outgoing_edges_match): Tweek conditional merging heuristics.
11155         (try_crossjump_to_edge): use update_br_prob_note.
11156         * cfglayout.c (fixup_reorder_chain): Likewise.
11157         * cfrtl.c (update_br_prob_note): New.
11158         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
11159
11160         * i386.c (ix86_decompose_address): Return -1 if address contains
11161         shift.
11162         (legitimate_address_p): Require ix86_decompose_address to return 1.
11163
11164         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
11165         (cprop_insn): Likewise.
11166
11167 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11168
11169         * toplev.c: Fix formatting.
11170         * tree.c: Likewise.
11171         * tree-dump.c: Likewise.
11172         * unroll.c: Likewise.
11173         * unwind-dw2.c: Likewise.
11174         * unwind-dw2-fde.c: Likewise.
11175         * unwind-dw2-fde-glibc.c: Likewise.
11176         * unwind-sjlj.c: Likewise.
11177
11178 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
11179
11180         * doc/invoke.texi: Document PDP-11 options.
11181
11182 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11183
11184         * config/h8300/h8300.h: Fix formatting.
11185
11186 2002-01-10  Ira Ruben   <ira@apple.com>
11187
11188         Add __attribute__ ((deprecated)).
11189         * extend.texi: Document __attribute__ ((deprecated)).
11190         * invoke.texi: Document -Wno-deprecated-declarations.
11191         * testsuite/g++.dg/other/deprecated.C: New C++ test.
11192         * testsuite/gcc.dg/deprecated.c: New C test.
11193         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
11194         (c_common_attribute_table): Add "deprecated" entry.
11195         (handle_deprecated_attribute): New function.
11196         * c-decl.c (deprecated_states): New enum.
11197         deprecated_state: State of "deprecated" handling.
11198         (start_decl): Set deprecated_state based on attributes.
11199         (grokdeclarator): Test for deprecated uses, propagate attribute.
11200         * c-typeck.c (build_component_ref): Test for deprecated fields.
11201         (build_external_ref): Test for deprecated primaries.
11202         * diagnostic.c (warn_deprecated_use) New function to issue
11203         warnings about __attribute__ ((depricated)) references.
11204         * flags.h (warn_deprecated_decl): Extern declared for
11205         -W[no-]deprecated-declarations option.
11206         * print-tree.c (print_node): Show deprecated flag status.
11207         * toplev.c (warn_deprecated_decl): Defined.
11208         (W_options): Added "deprecated-declaration".
11209         * toplev.h (warn_deprecated_use): Extern declared.
11210         * tree.h (struct tree_common): Define deprecated_flag.
11211         (TREE_DEPRECATED): New macro to access flag.
11212         * cp/call.c (build_call): Test for deprecated calls.
11213         * cp/class.c (add_implicitly_declared_members): Set global
11214         flag to tell grokdeclarator to not issue deprecated warnings.
11215         * cp/cp-tree.h: Add extern for adding_implicit_members.
11216         * cp/decl.c (deprecated_states): New enum.
11217         (start_decl): Set deprecated_state based on attributes.
11218         (grokdeclarator): Test for deprecated uses, propagate attribute.
11219         * cp/lex.c (do_identifier): Test for deprecated primaries.
11220         * cp/typeck.c (build_component_ref): Test for deprecated fields.
11221
11222 2002-01-10  Ira Ruben   <ira@apple.com>
11223
11224         Fix to assign attributes to inline member functions.
11225         * cp/decl.c (start_method): Handle attrlist.
11226
11227 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11228
11229         * combine.c (expand_field_assignment): Use subreg_lsb().
11230
11231 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
11232
11233         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
11234         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
11235         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
11236         Recurse for any operand of AND as long as constant is non-zero.
11237
11238 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11239
11240         * config/h8300/h8300.md: Remove constraints from expanders.
11241
11242 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11243
11244         * varasm.c: Fix formatting.
11245         * varray.c: Likewise.
11246         * vmsdbgout.c: Likewise.
11247         * xcoffout.c: Likewise.
11248
11249 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
11250
11251         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
11252         update edge probabilities to match.
11253
11254 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
11255
11256         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
11257         dependencies.
11258         * doc/languages.texi, doc/sourcebuild.texi: New files.
11259         * doc/configfiles.texi: Make a subsubsection.  Update.
11260         * doc/configterms.texi: Add @node.  Remove warning that this isn't
11261         instructions for building GCC.
11262         * doc/makefile.texi: Make a subsection.
11263         * doc/gccint.texi: Update.
11264
11265 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
11266
11267         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
11268
11269 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
11270
11271         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
11272
11273 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
11274
11275         * optabs.c (expand_fix): Look for wider integer modes first.
11276
11277         * i386.md (mov?f): Avoid the fake const double trick for medium
11278         memory model.
11279         (min?f*/max?f*): Prohibit memory operands for i387 variant.
11280         (fop_df_4): Disable for SSE compilation.
11281
11282 2002-01-10  Graham Stott  <grahams@redhat.com>
11283
11284         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
11285         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
11286
11287 2002-01-10  Richard Henderson  <rth@redhat.com>
11288
11289         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
11290
11291 2002-01-10  Richard Henderson  <rth@redhat.com>
11292
11293         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
11294         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
11295
11296 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11297
11298         * combine.c (can_combine_p): Fix a comment typo.
11299
11300 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
11301
11302         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
11303         empty list correctly.  Change loop index $t to $f for
11304         consistency with rest of Makefile.
11305
11306 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
11307
11308         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
11309         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
11310
11311         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
11312         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
11313         (altivec_init_builtins): Same.
11314         (altivec_expand_unop_builtin): Return NULL_RTX on error.
11315         (altivec_expand_binop_builtin): Same.
11316         (altivec_expand_ternop_builtin): Same.
11317         (bdesc_dst): New.
11318
11319         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
11320         ("altivec_vctuxs"): Fix typo.
11321         ("altivec_vnmsubfp"): Same.
11322         ("altivec_dssall"): New.
11323         ("altivec_mfvscr"): New.
11324         ("altivec_dss"): New.
11325         ("altivec_lvsl"): New.
11326         ("altivec_lvsr"): New.
11327         ("altivec_dstt"): New.
11328         ("altivec_dstst"): New.
11329         ("altivec_dststt"): New.
11330         ("altivec_dst"): New.
11331
11332         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
11333         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
11334
11335 2002-01-09  Richard Henderson  <rth@redhat.com>
11336
11337         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
11338
11339 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
11340
11341         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
11342         function.
11343         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
11344         prototype.
11345         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
11346
11347 2002-01-09  Kazu Hirata  <kazu@hxi.com>
11348
11349         * read-rtl.c: Fix formatting.
11350         * real.c: Likewise.
11351         * regclass.c: Likewise.
11352         * regrename.c: Likewise.
11353         * reg-stack.c: Likewise.
11354         * reload1.c: Likewise.
11355         * reload.c: Likewise.
11356         * rtl.c: Likewise.
11357
11358 2002-01-09  Kazu Hirata  <kazu@hxi.com>
11359
11360         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
11361         to extract items in the expr_list chain.
11362
11363 2002-01-09  Richard Henderson  <rth@redhat.com>
11364
11365         * config/vax/vax.c (vax_rtx_cost): Never abort.
11366
11367         * config/vax/vax.h (REAL_ARITHMETIC): Define.
11368
11369 2002-01-09  Jan Hubicka  <jh@suse.cz>
11370
11371         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
11372
11373 2002-01-09  Richard Henderson  <rth@redhat.com>
11374
11375         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
11376         Unify code from various alternatives.
11377
11378 2002-01-09  Richard Henderson  <rth@redhat.com>
11379
11380         * regrename.c (copy_value): Ignore the copy if the source register
11381         is present in the value chain with a narrower mode.
11382
11383 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
11384
11385         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
11386         for the c4x target. Also improve layout.
11387
11388 2002-01-09  Richard Henderson  <rth@redhat.com>
11389
11390         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
11391         * config/m32r/m32r.md (and ior xor splitters): Swap operands
11392         to match insn patterns.
11393
11394 2002-01-09  Richard Henderson  <rth@redhat.com>
11395
11396         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
11397         (copyprop_hardreg_forward_1): Likewise.
11398
11399 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11400
11401         * pa.md (decrement_and_branch_until_zero): Change predicate for
11402         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
11403
11404 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
11405
11406         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
11407         gets undefined. For Darwin.
11408
11409 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11410
11411         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
11412
11413 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11414
11415         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
11416
11417 2002-01-08  Richard Henderson  <rth@redhat.com>
11418
11419         * regrename.c (copy_value): Ignore overlapping copies.
11420
11421 2002-01-08  Richard Henderson  <rth@redhat.com>
11422
11423         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
11424         as needed to avoid shared structure.
11425
11426 2002-01-08  Kazu Hirata  <kazu@hxi.com>
11427
11428         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
11429         H8/300H and H8/S.
11430
11431 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
11432
11433         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
11434         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
11435         documentation of obsolete macros.
11436         * system.h: Poison these macros.
11437         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
11438         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
11439         config/c4x/c4x.h, config/clipper/clipper.h,
11440         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
11441         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
11442         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
11443         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
11444         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
11445         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
11446         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
11447         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
11448         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
11449         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
11450         config/sparc/sparc.h, config/stormy16/stormy16.h,
11451         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
11452         definitions and commented out definitions of obsolete macros.
11453         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
11454         of MAX_INT_TYPE_SIZE.
11455
11456 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
11457
11458         * config/s390/s390.c (s390_preferred_reload_class): Never
11459         return ADDR_REGS if it isn't a subset of the given class.
11460         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
11461         FP_REGS, but all superclasses as well.
11462
11463         * config/s390/s390.c (s390_function_profiler): Fix thinko.
11464
11465         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
11466         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
11467         must not be a const_int.
11468
11469 2002-01-08  Richard Henderson  <rth@redhat.com>
11470
11471         * Makefile.in (toplev.o): Depend on options.h.
11472         (gcc.o): Depend on specs.h.
11473
11474 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
11475
11476         * expr.c (store_expr): Convert VOIDmode constants back to target's
11477         mode.
11478
11479 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11480
11481         * doc/invoke.texi: Markup gcc as @command.  Refer to
11482         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
11483         of http://gcc.gnu.org/thanks.html.
11484
11485 2002-01-08  Dale Johannesen  <dalej@apple.com>
11486
11487         * config/rs6000/rs6000.md: Add missing int register
11488         target case to movdf_low.
11489
11490 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
11491
11492         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
11493         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
11494         (cppinit.o): Depend on except.h.
11495         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
11496         s-specs): New rules.
11497
11498         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
11499         Don't create specs.h/options.h/gencheck.h here.  Remove
11500         unnecessary variable settings from last argument of AC_OUTPUT.
11501         * config.in, configure: Regenerate.
11502         * intl.c: Hardcode package name as "gcc".
11503
11504         * cppinit.c: Include except.h.
11505         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
11506         appropriate.
11507         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
11508         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
11509         (!)USING_SJLJ_EXCEPTIONS.
11510         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
11511
11512 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
11513
11514         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
11515         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
11516         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
11517         documentation of obsolete macros.
11518         * system.h: Poison these macros.
11519         * config/d30v/d30v.h, config/ns32k/encore.h,
11520         config/stormy16/stormy16.h: Remove definitions and commented out
11521         definitions of obsolete macros.
11522
11523 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
11524
11525         * objc/objc-act.c (handle_class_ref): Mark the declaration of
11526         %sobjc_class_ref_%s as used - to prevent unwanted compiler
11527         warnings.
11528
11529 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
11530
11531         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
11532         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
11533         to insn adjusting stack/frame pointer.
11534         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
11535         accept operands that cause the insn to be non-splittable.
11536
11537 2002-01-08  Graham Stott  <grahams@redhat.com>
11538
11539         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
11540         (C_TYPE_FIELDS_VOLATILE): Likewise.
11541         (C_TYPE_BEING_DEFINED): Likewise.
11542         (C_IS_RESERVED_WORD): Likewise.
11543         (C_TYPE_VARIABLE_SIZE): Likewise.
11544         (C_DECL_VARIABLE_SIZE): Likewise.
11545         (C_MISSING_PROTOTYPE_WARNED): Likewise.
11546         (C_SET_EXP_ORIGINAL_CODE): Likewise.
11547         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
11548         parenthesis.
11549         (C_DECL_ANTICIPATED): Likewise.
11550         (c_build_type_variant): Add parenthesis.
11551
11552 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
11553
11554         * gcc.c (option_map): Remove --version.
11555         (process_command): Handle -fversion following the GNU Coding
11556         Standards.  Partially addresses PR other/704.
11557
11558 2002-01-08  Graham Stott  <grahams@redhat.com>
11559
11560         * combine.c (combine_instructions): Fix typo.
11561
11562 2002-01-08  Graham Stott  <grahams@redhat.com>
11563
11564         * debug.h: Use "tree" and "rtx" throughout.
11565
11566         * debug.c: Likewise.
11567
11568 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
11569
11570         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
11571         constant pool, use the pool's version of the symbol instead.
11572
11573 2002-01-07  Richard Henderson  <rth@redhat.com>
11574
11575         * regrename.c (find_oldest_value_reg): Ignore the value chain if
11576         the original register was copied in a mode with a fewer number of
11577         hard registers than the desired mode.
11578         (copyprop_hardreg_forward_1): Likewise.
11579         (debug_value_data): Fix loop test.
11580         * toplev.c (parse_options_and_default_flags): Reenable
11581         -fcprop-registers at -O1.
11582
11583 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
11584
11585         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
11586         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
11587
11588         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
11589         predicates.
11590
11591         * config/rs6000/rs6000.md: Add altivec predicate patterns.
11592
11593 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11594
11595         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
11596         (pa_output_function_prologue): Output local label at the beginning of
11597         the prologue when profiling.
11598         (hppa_profile_hook): Use the local label rather than the function label.
11599         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
11600
11601 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
11602
11603         * config/rs6000/rs6000.c (print_operand): Remove extra space.
11604         (altivec_expand_unop_builtin): Fix thinko.
11605         (altivec_expand_binop_builtin): Same.
11606         (altivec_expand_ternop_builtin): Same.
11607         (altivec_expand_builtin): Same.
11608
11609 2002-01-07  Richard Henderson  <rth@redhat.com>
11610
11611         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
11612
11613 2002-01-07  Jason Merrill  <jason@redhat.com>
11614
11615         * unwind-dw2.c (execute_cfa_program): Use < again.
11616
11617 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
11618
11619         * predict.c (combine_predictions_for_insn): Avoid division by zero.
11620
11621 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
11622
11623         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
11624         Don't allow -1 - x -> ~x simplifications in the first pass.
11625
11626 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
11627
11628         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
11629         arguments.
11630         (altivec_expand_binop_builtin): Same.
11631         (altivec_expand_unop_builtin): Same.
11632         (print_operand): Fix typo.
11633         (bdesc_1arg): Add vupk* variants.
11634
11635         * rs6000.h (rs6000_builtins): Add vupk* enums.
11636
11637         * rs6000.md: Add altivec_vupk* variants.
11638
11639 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
11640
11641         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
11642         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
11643         and last update dates.
11644
11645 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
11646
11647         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
11648
11649 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11650
11651         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
11652         * config/avr/avr.h (CPP_SPEC): Likewise.
11653         (LINK_SPEC): Likewise.
11654         (CRT_BINUTILS_SPECS): Likewise.
11655         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11656         * doc/invoke.texi (AVR Options): Document them.
11657
11658 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
11659
11660         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
11661         LABEL_NUSES.
11662
11663 2002-01-07  Graham Stott  <grahams@redhat.com>
11664
11665         * config/i386/i386.h: Update copyright date.
11666         (HALF_PIC_PTR): Add parenthesis.
11667         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
11668         (CONSTANT_ALIGNMENT): Add parenthesis.
11669         (DATA_ALIGNMENT): Likewise.
11670         (LOCAL_ALIGNMENT): Likewise.
11671         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
11672         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
11673         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
11674         (HARD_REGNO_NREGS): Add paranethesis.
11675         (VALID_SSE_REG_MODE): Whitespace.
11676         (VALID_MMX_REG_MODE): Whitespace.
11677         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
11678         (ix86_hard_regno_mode_ok): Add parenthesis.
11679         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
11680         (RETURN_IN_MEMORY): Whitespace.
11681         (N_REG_CLASSES): Add parenthesis.
11682         (INTEGER_CLASS_P): Add parenthesis and wrap.
11683         (FLOAT_CLASS_P): Likewise.
11684         (SSE_CLASS_P): Likewise.
11685         (MMX_CLASS_P): Likewise.
11686         (MAYBE_INTEGER_CLASS_P): Likewise.
11687         (MAYBE_FLOAT_CLASS_P): Likewise.
11688         (MAYBE_SSE_CLASS_P): Likewise.
11689         (MAYBE_MMX_CLASS_P): Likewise.
11690         (Q_CLASS_P): Likewise.
11691         (GENERAL_REGNO_P): Uppercase macro parameter.
11692         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
11693         (FP_REGNO_P): Likewise.
11694         (ANY_FP_REGNO_P): Uppercase macro parameter.
11695         (SSE_REGNO_P): Likewise.
11696         (SSE_REGNO): Likewise.
11697         (SSE_REG_P): Likewise.
11698         (SSE_FLOAT_MODE_P): Likewise.
11699         (MMX_REGNO_P): Likewise.
11700         (MMX_REG_P):Likewise.
11701         (STACK_REG_P): Likewise.
11702         (NON_STACK_REG_P): Likewise.
11703         (STACK_TOP_P): Likewise.
11704         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
11705         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
11706         (SECONDARY_MEMORY_NEEDED): Likewise.
11707         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
11708         (MD_ASM_CLOBBERS): Whitespace and wrap.
11709         (MUST_PASS_IN_STACK): Whitespace and wrap.
11710         (RETURN_POPS_ARGS): Add parenthesis.
11711         (INIT_CUMULATIVE_ARGS): Likewise.
11712         (FUNCTION_ARG): Likewise.
11713         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
11714         (SETUP_INCOMING_VARARGS): Likewise.
11715         (BUILD_VA_LIST_TYPE):  Add parenthesis.
11716         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
11717         parenthsis.
11718         (EXPAND_BUILTIN_VA_ARG): Likewise.
11719         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
11720         (INITIALIZE_TRAMPOLINE): Add parenthesis.
11721         (INITIAL_ELIMINATION_OFFSET): Likewise.
11722         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
11723         (REGNO_OK_FOR_BASE_P): Likewise.
11724         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
11725         (REGNO_OK_FOR_DIREG_P): Likewise.
11726         (REG_OK_FOR_INDEX_P): Whitespace.
11727         (REG_OK_FOR_BASE_P): Whitespace.
11728         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
11729         parenthesis.
11730         (FIND_BASE_TERM): Fix typo.
11731         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
11732         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
11733         (SYMBOLIC_CONST; Whitespace.
11734         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
11735         (ENCODE_SECTION_INFO): Whitespace.
11736         (FINALIZE_PIC): Remove do { ... } while (0).
11737         (PROMOTE_MODE): Wrap in do { ... } while (0).
11738         (CONST_COSTS): Whitespace.
11739         (RTX_COSTS): Add paramethesis, whitespace and wrap.
11740         (REGISTER_MOVE_COST): Add parenthesis.
11741         (MEMORY_MOVE_COST): Likewise.
11742         (EXTRA_CC_MODES): Whitespace.
11743         (SELECT_CC_MODE): Add parenthesis and whitespace.
11744         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
11745         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
11746         (ASM_OUTPUT_LABEL): Add paramethesis.
11747         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
11748         (ASM_OUTPUT_REG_POP): Likewise.
11749         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
11750         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11751
11752         * config/i386/i386.c: Update copyright.
11753         (CHECK_STACK_LIMIT): Add parenthesis.
11754         (AT_BP): Uppercase macro parameter.
11755         (x86_64_int_parameter_registers): Constify.
11756         (x86_64_int_return_registers): Likewise.
11757         (ix86_compare_op0): Use rtx.
11758         (construct_container): Constify INTREG parameter.
11759         (function_arg): Use rtx.
11760
11761         * diagnostic.h: Update copyright date.
11762         (output_buffer_state): Add parenthesis.
11763         (output_buffer_format_args): Likewise.
11764
11765         * combine.c (combine_instructions): Replace XEXP (links, 0)
11766         with link.
11767
11768 2002-01-06  H.J. Lu <hjl@gnu.org>
11769
11770         * cfgcleanup.c (thread_jump): Fix 2 typos.
11771
11772 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
11773
11774         * config.gcc: Add support for --enable-altivec.
11775
11776 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11777
11778         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
11779
11780 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
11781
11782         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
11783         __objc_class_name_*.
11784
11785 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11786
11787         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
11788
11789 2002-01-06  Richard Henderson  <rth@redhat.com>
11790
11791         * reorg.c (emit_delay_sequence): Remove death notes, not merely
11792         nop them out.  Increment label reference count for REG_LABEL.
11793         (fill_slots_from_thread): Frob label reference count around
11794         delete_related_insns.
11795
11796 2002-01-05  Richard Henderson  <rth@redhat.com>
11797
11798         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
11799         jump threading.
11800
11801 2002-01-05  Richard Henderson  <rth@redhat.com>
11802
11803         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
11804         * integrate.c (output_inline_function): Likewise.
11805         * toplev.c (rest_of_compilation): Do it here instead.  Move call
11806         to remove_unnecessary_notes after emitting abstract instance.
11807         Force an emitted nested function to have its parent emited as well.
11808         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
11809         for null.
11810         (rtl_for_decl_location): Do not look at reload data structures
11811         before reload has run.
11812
11813 2002-01-05  Kazu Hirata  <kazu@hxi.com>
11814
11815         * cse.c: Fix formatting.
11816         * dwarf2asm.c: Likewise.
11817         * dwarf2out.c: Likewise.
11818         * explow.c: Likewise.
11819         * expmed.c: Likewise.
11820         * function.c: Likewise.
11821         * gcov.c: Likewise.
11822         * gencheck.c: Likewise.
11823         * genrecog.c: Likewise.
11824         * ggc-common.c: Likewise.
11825         * ggc-page.c: Likewise.
11826         * global.c: Likewise.
11827
11828 2002-01-05  Kazu Hirata  <kazu@hxi.com>
11829
11830         * combine.c: Fix formatting.
11831
11832 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
11833
11834         PR middle-end/1557
11835         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
11836
11837 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
11838
11839         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
11840         as 1 for __powerpc64__ as well.
11841
11842         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
11843
11844         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
11845         return it.
11846
11847 2002-01-05  Daniel Berlin  <dan@dberlin.org>
11848
11849         * lcm.c: Revert change, due to performance regression it causes on
11850         SPEC because it's slightly more conservative (sigh, I hate
11851         edge-based LCM).
11852
11853 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
11854
11855         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
11856
11857 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
11858
11859         * doc/cppinternals.texi: Update.
11860
11861 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
11862
11863         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
11864         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
11865         negatives.
11866         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
11867         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
11868         kludge for pre-october-14th mmix versions to handle new-found bug
11869         with PUSHJ/PUSHGO and the register stack.
11870         * config/mmix/mmix.h (struct machine_function): Rename member
11871         has_call_value_without_parameters to has_call_without_parameters.
11872         All referers changed.
11873         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
11874         TARGET_MASK_BRANCH_PREDICT): New macros.
11875         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
11876         -mno-reg-stack-fill-bug-workaround.
11877         * config/mmix/mmix.md ("call"): Set struct machine member
11878         has_call_without_parameters.
11879
11880 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
11881
11882         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
11883
11884 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
11885
11886         * cfgcleanup.c: Include tm_p.h
11887         (mark_effect): Fix handling of hard register; fix handling of SET
11888
11889 2002-01-04  Kazu Hirata  <kazu@hxi.com>
11890
11891         * config/h8300/h8300.md (anonymous patterns): Check that
11892         operands are registers before using REGNO on them.
11893
11894 2002-01-03  Roland McGrath  <roland@frob.com>
11895
11896         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
11897
11898 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
11899
11900         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
11901         * c-common.h (genrtl_expr_stmt_value): Likewise.
11902         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
11903         (expand_expr_stmt_value): Add maybe_last argument.
11904         Don't warn about statement with no effect if it is the last statement
11905         in expression statement.
11906         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
11907         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
11908         expand_expr_stmt_value.
11909         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
11910         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
11911         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
11912         as maybe_last to expand_expr_stmt_value.
11913
11914 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
11915
11916         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
11917         be passed in, do not build it.
11918         (c_begin_if_stmt): New function.
11919         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
11920         * c-common.h (c_expand_start_cond): Update prototype.
11921         (c_begin_if_stmt): Prototype new function.
11922         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
11923         * c-parse.in (if_prefix): Use c_begin_if_stmt,
11924         c_begin_while_stmt and c_finish_while_stmt_cond.
11925
11926 2002-01-04  William Cohen  <wcohen@redhat.com>
11927
11928         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
11929         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
11930         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
11931         * config/pa/som.h (ASM_FILE_START): Likewise.
11932
11933 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
11934
11935         * lcm.c: Include df.h.
11936         Add available_transfer_function prototype.
11937         (compute_available): Rework to use iterative dataflow framework.
11938         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
11939         with bb_info in df.h
11940         (available_transfer_function): New function.
11941
11942         * Makefile.in (lcm.o): add df.h to dependencies.
11943
11944 2002-01-04  Richard Henderson  <rth@redhat.com>
11945
11946         * config/alpha/alpha.c (some_operand): Accept HIGH.
11947         (input_operand): Likewise; accept simple references to globals.
11948         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
11949         (alpha_const_double_ok_for_letter_p): Likewise.
11950         (alpha_extra_constraint): Likewise.
11951         (alpha_preferred_reload_class): Likewise.  Do not force
11952         symbolic constants to memory.
11953         (alpha_legitimate_address_p): Accept simple references
11954         to small_symbolic_operand.
11955         (alpha_legitimize_address): New arg scratch.  Be prepared to be
11956         called when no_new_pseudos.  Emit simple symbolic references.
11957         Split integers into low, high, and rest.
11958         (alpha_expand_mov): Use alpha_legitimize_address.
11959         (some_small_symbolic_mem_operand): New.
11960         (split_small_symbolic_mem_operand): New.
11961         * config/alpha/alpha-protos.h: Update.
11962         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
11963         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
11964         (EXTRA_CONSTRAINT): Likewise.
11965         (PREFERRED_RELOAD_CLASS): Likewise.
11966         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
11967         (PREDICATE_CODES): Update.
11968         * config/alpha/alpha.md: New post-reload splitters to convert
11969         simplfied symbolic operands to the form that references $29.
11970         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
11971         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
11972
11973 2002-01-03  Richard Henderson  <rth@redhat.com>
11974
11975         * local-alloc.c (function_invariant_p): Update commentary.
11976
11977 2002-01-04  H.J. Lu <hjl@gnu.org>
11978
11979         * toplev.c (rest_of_compilation): Fix a typo when calling
11980         cleanup_cfg.
11981
11982 2002-01-03  Kazu Hirata  <kazu@hxi.com>
11983
11984         * c-common.c: Fix formatting.
11985         * diagnostic.c: Likewise.
11986         * doloop.c: Likewise.
11987         * dwarf2out.c: Likewise.
11988
11989 2002-01-03  Kazu Hirata  <kazu@hxi.com>
11990
11991         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
11992         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
11993
11994 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
11995
11996         * cpperror.c: Update comments and copyright.
11997         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
11998         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
11999
12000 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12001
12002         * collect2.c (main): Use strcmp when testing for "-shared".
12003
12004 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
12005
12006         * cppmacro.c: Don't include intl.h.  Update comments.
12007         (new_number_token): Allocate enough buffer for 64-bit unsigned
12008         integers; update prototype.
12009         * cppmain.c: Update comments.
12010
12011 2002-01-03  William Cohen  <wcohen@redhat.com>
12012
12013         * function.h (struct function): Add profile.
12014         (current_function_profile): New.
12015         doc/extend.texi: Update documentation.
12016         * final.c (final_start_function): Use current_function_profile
12017         instead of profile_flag.
12018         (profile_after_prologue): Likewise.
12019         * function.c (expand_function_start): Likewise.
12020         (expand_function_start): Likewise.
12021         * config/alpha/alpha.c (direct_call_operand):
12022         (alpha_does_function_need_gp): Likewise.
12023         (alpha_expand_prologue): Likewise.
12024         * config/arm/arm.c (arm_expand_prologue): Likewise.
12025         thumb_expand_prologue: Likewise.
12026         * config/d30v/d30v.c (d30v_stack_info): Likewise.
12027         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
12028         (fr30_expand_prologue): Likewise.
12029         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
12030         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
12031         * config/i386/i386.h (FINALIZE_PIC): Likewise.
12032         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
12033         * config/i960/i960.c (i960_output_function_prologue): Likewise.
12034         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
12035         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
12036         (m32r_expand_prologue): Likewise.
12037         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
12038         (m88k_expand_prologue): Likewise.
12039         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
12040         * config/mips/mips.c (compute_frame_size): Likewise.
12041         (mips_expand_prologue): Likewise.
12042         (mips_can_use_return_insn): Likewise.
12043         * config/pa/elf.h (ASM_FILE_START): Likewise.
12044         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
12045         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
12046         * config/pa/som.h (ASM_FILE_START): Likewise.
12047         * config/romp/romp.c (romp_using_r14): Likewise.
12048         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
12049         (rs6000_stack_info): Likewise.
12050         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
12051         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
12052         * config/v850/v850.c (compute_register_save_size): Likewise.
12053
12054 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
12055
12056         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
12057         gen_lowpart_common fails, use gen_lowpart_SUBREG.
12058
12059 2002-01-03  Turly O'Connor  <turly@apple.com>
12060
12061         * darwin.c (machopic_output_possible_stub_label): Don't generate
12062         stub routines for pseudo-stubs which we've just defined.
12063
12064 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12065
12066         * builtins.c: Fix formatting.
12067         * c-typeck.c: Likewise.
12068         * combine.c: Likewise.
12069         * expr.c: Likewise.
12070         * loop.c: Likewise.
12071
12072 2002-01-03  Andreas Schwab  <schwab@suse.de>
12073
12074         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
12075         and return true if _cpp_push_next_buffer pushed a new include
12076         file.
12077         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
12078         _cpp_pop_file_buffer did not push a new file.
12079         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
12080
12081 2002-01-02  Eric Christopher  <echristo@redhat.com>
12082
12083         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
12084         FIND_REG_INC_NOTE call. Update copyright.
12085         * loop.c (canonicalize_condition): Ditto.
12086         * reorg.c (delete_scheduled_jump): Ditto.
12087
12088 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12089
12090         * gcse.c: Fix formatting.
12091
12092 2002-01-03  Graham Stott  <grahams@redhat.com>
12093
12094         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
12095         forward defs for struct tags rtx_def, union_tree, rtvec_def
12096         also output corresponding typedefs for rtx, tree, and rtvec.
12097
12098         * system.h: Move forward defs for struct tags rtx_def, union_tree,
12099         rtvec_def along with corresponding typedefs for rtx, tree, and
12100         rtvec to config.h, hconfig.h, tconfig.h.
12101
12102 2002-01-03  Graham Stott  <grahams@redhat.com>
12103
12104         * tree.h: Update copyright date.
12105         (IS_EXPR_CODE_CLASS): Add parenthesis.
12106         (TREE_SET_CODE): Add whitespace.
12107         (TREE_CHECK): Add parenthesis.
12108         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
12109         (CST_OR_CONSTRUCTOR_CHECK):
12110         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
12111         (TREE_SYMBOL_REFERENCED): Whitespace.
12112         (INT_CST_LT): Likewise.
12113         (INT_CST_LT_UNSIGNED): Likewise.
12114         (tree_real_cst): Unwrap comment.
12115         (tree_string): Likewise.
12116         (tree_complex): Likewise.
12117         (IDENTIFIER_POINTER): correct cast.
12118         (SAVE_EXPR_CONTEXT): Whitespace.
12119         (EXPR_WFL_FILENAME_NODE): Likewise.
12120         (EXPR_WFL_FILENAME): Remove parenthesis.
12121         (DECL_ORIGIN): Add parenthesis.
12122         (DECL_FROM_INLINE): Use NULL_TREE.
12123         (build_int_2): Whitespace.
12124         (build_type_variant): Add parenthesis.
12125
12126         * gcc/jcf-parse.c: Update copyright date.
12127         (yyparse): Constify resource_filename.
12128
12129 2002-01-03  Graham Stott  <grahams@redhat.com>
12130
12131         * rtl.h: Update copyright date.
12132         (RTL_CHECK1): Wrap long line.
12133         (RTL_CHECK2): Likewise.
12134         (RTL_CHECKC1): Wrap long line and whitespace.
12135         (RTL_CHECKC2): Likewise.
12136         (XWINT): Whitespace.
12137         (XINT): Likewise.
12138         (XSTR): Likewise.
12139         (XEXP): Likewise.
12140         (XVEC): Likewise.
12141         (XMODE): Likewise.
12142         (XBITMAP): Likewise.
12143         (XTREE): Likewise.
12144         (XBBDEF): Likewise.
12145         (XTMPL): Likewise.
12146         (X0WINT): Likewise.
12147         (X0INT):Likewise.
12148         (X0UINT): Likewise.
12149         (X0STR): Likewise.
12150         (X0EXP): Likewise.
12151         (X0VEC): Likewise.
12152         (X0MODE): Likewise.
12153         (X0BITMAP): Likewise.
12154         (X0TREE): Likewise.
12155         (X0BBDEF): Likewise.
12156         (X0ADVFLAGS): Likewise.
12157         (X0CSELIB): Likewise.
12158         (X0MEMATTR): Likewise.
12159         (XCWINT): Likewise.
12160         (XCINT): Likewise.
12161         (XCUINT): Likewise.
12162         (XCSTR): Likewise.
12163         (XCEXP): Likewise.
12164         (XCVEC): Likewise.
12165         (XCMODE): Likewise.
12166         (XCBITMAP): Likewise.
12167         (XCTREE): Likewise.
12168         (XCBBDEF): Likewise.
12169         (XCADVFLAGS): Likewise.
12170         (XCCSELIB): Likewise.
12171         (XC2EXP): Likewise.
12172         (INSN_UID): Likewise.
12173         (PREV_INSN): Likewise.
12174         (PATTERN): Likewise.
12175         (INSN_CODE): Likewise.
12176         (PUT_REG_NOTE_KIND): Likewise.
12177         (CODE_LABEL_NUMBER): Likewise.
12178         (NOTE_SOURCE_FILE): Likewise.
12179         (NOTE_BLOCK): Likewise.
12180         (NOTE_EH_HANDLER): Likewise.
12181         (NOTE_RANGE_INFO): Likewise.
12182         (NOTE_LIVE_INFO): Likewise.
12183         (NOTE_BASIC_BLOCK): Likewise.
12184         (NOTE_EXPECTED_VALUE): Likewise.
12185         (NOTE_LINE_NUMBER): Likewise.
12186         (LABEL_NAME): Likewise.
12187         (LABEL_NUSES): Likewise.
12188         (LABEL_ALTERNATE_NAME): Likewise.
12189         (ADDRESSOF_DECL): Likewise.
12190         (JUMP_LABEL): Likewise.
12191         (LABEL_NEXTREF): Likewise.
12192         (REGNO): Likewise.
12193         (ORIGINAL_REGNO: Likewise.
12194         (HARD_REGISTER_NUM_P): Add parenthesis.
12195         (SUBREG_REG): Whitespace.
12196         (SUBREG_BYTE): Likewise.
12197         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
12198         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
12199         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
12200         (ASM_OPERANDS_INPUT_VEC): Likewise.
12201         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
12202         (ASM_OPERANDS_INPUT): Likewise.
12203         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
12204         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
12205         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
12206         (ASM_OPERANDS_INPUT_MODE): Likewise.
12207         (ASM_OPERANDS_SOURCE_FILE): Likewise.
12208         (ASM_OPERANDS_SOURCE_LINE): Likewise.
12209         (MEM_SET_IN_STRUCT_P): Minor reformat.
12210         (TRAP_CONDITION): Whitespace.
12211         (TRAP_CODE): Likewise.
12212         (COND_EXEC_TEST): Likewise.
12213         (COND_EXEC_CODE): Likewise.
12214         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
12215         (PHI_NODE_P): Add parenthesis.
12216         (plus_constant): Whitespace and add parenthesis.
12217
12218 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12219
12220         * config/avr/avr.c: Fix comment typos.
12221         * config/c4x/c4x.md: Likewise.
12222         * config/dsp16xx/dsp16xx.h: Likewise.
12223         * config/dsp16xx/dsp16xx.md: Likewise.
12224         * config/i386/i386.md: Likewise.
12225         * config/ia64/ia64.c: Likewise.
12226         * config/m32r/m32r.h: Likewise.
12227         * config/m68hc11/m68hc11.md: Likewise.
12228         * config/mmix/mmix.c: Likewise.
12229         * config/mn10200/mn10200.c: Likewise.
12230         * config/romp/romp.c: Likewise.
12231         * config/sh/sh.c: Likewise.
12232         * config/stormy16/stormy16.c: Likewise.
12233         * config/stormy16/stormy16.h: Likewise.
12234         * config/stormy16/stormy16.md: Likewise.
12235
12236 2002-01-03  Graham Stott  <grahams@redhat.com>
12237
12238         * loop.h: Update copyright date.
12239         (LOOP_MOVABLES): Fix typo.
12240         (LOOP_REGS): Likewise.
12241         (LOOP_IVS): Likewise.
12242
12243 2002-01-03  Graham Stott  <grahams@redhat.com>
12244
12245         * cppinit.c: Update copyright date.
12246         Don't include output.h
12247         * Makefile.in: Update copyright date.
12248         Update dependency.
12249
12250 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12251
12252         PR c/5226
12253         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
12254         (-pthread) Add to RS/6000 options.
12255
12256 2002-01-02  Kazu Hirata  <kazu@hxi.com>
12257
12258         * except.c: Fix comment typos.
12259         * loop.c: Likewise.
12260         * varasm.c: Likewise.
12261         * doc/tm.texi: Fix a typo.
12262
12263 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
12264
12265         * c-typeck.c (output_init_element): Allow initializing static storage
12266         duration objects with compound literals.
12267
12268 2002-01-02  Richard Henderson  <rth@redhat.com>
12269
12270         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
12271         after abusing it.
12272
12273 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12274
12275         * gcc.c (default_compilers): Const-ify.
12276         * mips-tdump.c (stab_names): Likewise.
12277         * mips-tfile.c (map_coff_types, map_coff_storage,
12278         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
12279         pseudo_ops_t, pseudo_ops): Likewise.
12280         * protoize.c (default_include): Likewise
12281
12282         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
12283         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
12284         Add array size in declaration.
12285         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
12286         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
12287         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
12288         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
12289         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
12290         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
12291         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
12292         emtens, make_nan): Const-ify.
12293         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
12294         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
12295
12296 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
12297
12298         * config.gcc (ia64-*-*): Set extra_headers.
12299         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
12300         * config/alpha/t-osf: Remove.
12301         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
12302
12303 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
12304
12305         * config/rs6000/t-aix43: Revert previous change.
12306
12307 2002-01-02  Jason Merrill  <jason@redhat.com>
12308
12309         * c-decl.c (c_expand_body): Call outlining_inline_function when
12310         emitting an inline function out of line.
12311
12312 2002-01-02  Richard Henderson  <rth@redhat.com>
12313
12314         * dwarf2out.c (limbo_die_node): Add created_for member.
12315         (new_die): New argument created_for.  Update all callers.
12316         (mark_limbo_die_list): New.
12317         (dwarf2out_init): Register limbo_die_list as a root.
12318         (dwarf2out_finish): Force insert limbo dies into their function
12319         context.
12320
12321 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
12322
12323         PR c++/5089
12324         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
12325
12326 2002-01-02  Kazu Hirata  <kazu@hxi.com>
12327
12328         * config/h8300/fixunssfsi.c: Update copyright.
12329         Fix comment typos.
12330         Fix formatting.
12331         * config/h8300/h8300.c: Update copyright.
12332         Eliminate warnings.
12333
12334 2002-01-02  Kazu Hirata  <kazu@hxi.com>
12335
12336         * config/romp/romp.c: Fix comment formatting.
12337         * config/romp/romp.h: Likewise.
12338         * config/romp/romp.md: Likewise.
12339         * config/s390/s390.c: Likewise.
12340         * config/stormy16/stormy16.c: Likewise.
12341         * config/stormy16/stormy16.h: Likewise.
12342
12343 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
12344
12345         * c-common.h (genrtl_expr_stmt_value): Declare.
12346         * c-semantics.c (genrtl_goto_stmt): Redirect to...
12347         (genrtl_goto_stmt_value): ... this new function.  Pass new
12348         argument down to expand_expr_stmt_value, taking
12349         TREE_ADDRESSABLE into account.
12350         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
12351         STMT_EXPR as addressable, i.e., one whose result we want.
12352         * expr.c (expand_expr): Don't save expression statement value
12353         of labeled_blocks or loop_exprs.
12354         * stmt.c (expand_expr_stmt): Redirect to...
12355         (expand_expr_stmt_value): ... this new function.  Use new
12356         argument to tell whether to save expression value.
12357         (expand_end_stmt_expr): Reset last_expr_type and
12358         last_expr_value if we don't have either.
12359         * tree-inline.c (declare_return_variable): Mark its use
12360         statement as addressable.
12361         * tree.h: Document new use of TREE_ADDRESSABLE.
12362         (expand_expr_stmt_value): Declare.
12363
12364 2002-01-01  Tom Rix  <trix@redhat.com>
12365
12366         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
12367         rs6000_emit_allocate_stack.
12368
12369 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
12370
12371         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
12372         ${srcdir}/ginclude/ to every entry in extra_headers.
12373         * configure: Regenerate.
12374         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
12375         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
12376         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
12377         * ginclude/proto.h: Rename to config/convex/proto.h.
12378
12379 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12380
12381         * attribs.c (handle_vector_size_attribute): Use host_integerp
12382         and tree_int_cst; remove warnings.
12383         * caller-save.c (insert_restore): Add cast to get rid of warning.
12384         (insert_save): Likewise.
12385         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
12386         * regmove.c (find_matches): Add temporary var to kill a warning.
12387
12388 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
12389
12390         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
12391         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
12392         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
12393         (vms-dwarf2eh.o): Add Makefile rule.
12394         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
12395         * config/alpha/vms-dwarf2eh.asm: New file.
12396
12397         * gcc.c (delete_if_ordinary): Delete all versions.
12398
12399 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
12400
12401         * config/mmix/mmix.md: Update FIXME to not mention
12402         define_constants.
12403         (MMIX_rJ_REGNUM): New define_constants constant.
12404         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
12405         "*movdicc_real"): Adjust contraints formatting.
12406         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
12407         for branch prediction.
12408         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
12409         output template.
12410         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
12411         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
12412         number.  Delete related FIXMEs.
12413         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
12414         from number to MMIX_rJ_REGNUM.
12415         (TARGET_MASK_BRANCH_PREDICT): New.
12416         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
12417         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
12418         value.  Add -mbranch-predict and -mno-branch-predict.
12419         (TARGET_VERSION): Drop date.
12420         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
12421         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
12422         for finding out global symbols.
12423         (mmix_asm_output_labelref): Revert condition for global symbol.
12424         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
12425         (mmix_print_operand_punct_valid_p): A '+' is valid.
12426
12427 See ChangeLog.6 for earlier changes.