OSDN Git Service

2002-05-01 Joel Sherrill <joel@OARcorp.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-05-01      Joel Sherrill <joel@OARcorp.com>
2
3         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
4         support routines.
5
6 2002-05-01      Joel Sherrill <joel@OARcorp.com>
7
8         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
9
10 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
11
12         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
13         (nabs_nopower): Same.
14         (floatdisf2): New pattern.
15         (absdi2): Convert to define_insn_and_split.
16         (nabsdi2): Same.
17         (trunctfsf2): Same.
18         (floatditf2): Same.
19         (floatsitf2): Same.
20         (fix_trunctfdi2): Same.
21         (fix_trunctfsi2): Same.
22
23 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
24
25         * doc/install.texi: Update Texinfo version requirement
26         documentation.
27
28 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
29
30         PR target/6512, PR target/5628
31         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
32         when memory is not aligned.
33         (movdf_insn_v9only_vis): Likewise.
34         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
35         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
36         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
37
38 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
39
40         * gcc.dg/altivec-7.c: New.
41
42         * config/rs6000/altivec.h: Cleanup.
43
44 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
45
46         * doc/invoke.texi (Option Summary): Add -mvrsave=.
47         (RS/6000 and PowerPC Options): Document -mvrsave=.
48
49         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
50         (rs6000_altivec_vrsave_string): Same.
51         (rs6000_override_options): Call rs6000_parse_vrsave_option.
52         (rs6000_parse_vrsave_option): New.
53         (rs6000_stack_info): Only generate vrsave instructions when
54         TARGET_ALTIVEC_VRSAVE.
55
56         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
57         (rs6000_altivec_vrsave_string): Define extern.
58         (rs6000_altivec_vrsave): Same.
59         (TARGET_ALTIVEC_VRSAVE): New.
60
61 2002-04-30  Richard Henderson  <rth@redhat.com>
62
63         PR opt/6516
64         * toplev.c (rest_of_compilation): Don't run cross-jump before
65         bb-reorder.
66
67 2002-04-30  Tom Rix  <trix@redhat.com>
68
69         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity 
70         check which_alternative.
71
72 2002-04-30  Kazu Hirata  <kazu@hxi.com>
73
74         * cpplex.c: Fix comment formatting.
75         * function.c: Likewise.
76         * integrate.c: Likewise.
77         * regrename.c: Likewise.
78         * sibcall.c: Likewise.
79         * simplify-rtx.c: Likewise.
80         * tree-inline.c: Likewise.
81
82 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
83
84         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
85         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
86         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
87         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
88         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
89         * pa/x-ada: New file.  Define ADA_CFLAGS.
90
91 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
92
93         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
94         from MMIX_LAST_REGISTER_FILE_REGNUM.
95         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
96         (struct machine_function): New member highest_saved_stack_register
97         previously static variable in mmix.c.
98         (MACHINE_DEPENDENT_REORG): Define.
99         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
100         (MMIX_OUTPUT_REGNO): New.
101         (mmix_target_asm_function_prologue): Move calculation of last used
102         saved-stack-register into...
103         (mmix_machine_dependent_reorg): New function.  Update to also handle
104         !TARGET_ABI_GNU.
105         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
106         register names, simplify somewhat by new variable regno.
107         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
108         register.
109         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
110         emitting register names.
111         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
112         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
113         Remove fixed FIXME.
114         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
115         Declare.
116
117         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
118
119 2002-04-30  Richard Henderson  <rth@redhat.com>
120
121         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
122         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
123         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
124         emit_tfmode_cvt): New.
125         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
126         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
127         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
128         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
129         * config/sparc/sparc-protos.h: Update.
130
131 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
132
133         * install.texi (Final install): Add to the list of info to include
134         in a report of a successful bootstrap, and add link to 3.1 list.
135
136 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
137
138         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
139         (mode): Add vector modes
140         (i387): Kill attribute.
141         (unit): New attribute.
142         (length_immediate): Grok new types.
143         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
144         (modrm): Use "unit".
145         (memory): Handle MMX/SSE properly.
146         (scheduling descriptions): Kill uses of fop1.
147         (sse, mmx, fp patterns): Set type and mode properly.
148
149 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@cygnus.com)
150
151         * pa.c (override_options): Default to PA8000 scheduling.
152         * doc/invoke.texi (HP-PA options): Mention newly added 7300
153         scheduling parameter.
154
155         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
156         handling of double precision multiplies.
157
158         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
159         fpdiv and fpsqrt instructions.
160         (7200 & 7300 scheduling): Fix typo in handling of
161         store-load and store-store penalties.
162
163 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
164
165         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
166         mips.  Add two missing commas.
167
168 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
169
170         * doc/contrib.texi (Contributors): Update Paolo Carlini's
171         and Benjamin Kosnik's entries.
172
173 2002-04-29  David S. Miller  <davem@redhat.com>
174
175         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
176         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
177         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
178         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
179
180 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
181
182         * combine.c (find_split_point): Use gen_int_mode.
183
184 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
185
186         Merging code from dfa-branch:
187         
188         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
189
190         * genautomata.c (output_reserv_sets): Fix typo.
191
192         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
193
194         * genautomata.c (output_reserv_sets): Remove
195         next_cycle_output_flag.
196
197         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
198
199         * sched-rgn.c (init_ready_list): Make the DFA code handle
200         USE/CLOBBER insns in the same way as the traditional
201         scheduler.
202         (new_ready): Similarly..
203
204         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
205
206         * haifa-sched.c (schedule_block): Change the DFA state only after
207         issuing insn.
208
209         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
210
211         * pa.c (hppa_use_dfa_pipeline_interface): New function.
212         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
213         (override_options): Add PA7300 scheduling support.
214         (pa_adjust_cost): Update various comments.  Properly
215         handle anti and output dependencies when using the
216         DFA scheduler.
217         (pa_issue_rate): Add PA7300 scheduling support.
218         (pa_can_combine_p): Call extract_insn before calling
219         constrain_operands (taken from mainline tree).
220         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
221         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
222         descriptions using DFA descriptions.  Add PA7300
223         scheduling support.
224
225         2002-03-30  David S. Miller  <davem@redhat.com>
226
227         Add UltraSPARC-III DFA scheduling support.
228         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
229         Update FP conditional move on register insn patterns to use it, as
230         appropriate.
231         (define_attr cpu): Add ultrasparc3.
232         (define_attr us3load_type): New, update integer load patterns to
233         set it, as appropriate.
234         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
235         (rest): Add UltraSPARC3 scheduling description.
236         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
237         (PROCESSOR_ULTRASPARC3): New.
238         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
239         ({ASM,CPP}_CPU_SPEC): Likewise.
240         (REGISTER_MOVE_COST): Likewise.
241         (RTX_COSTS): Likewise.
242         * config/sparc/sparc.c (sparc_override_options,
243         sparc_initialize_trampoline, sparc64_initialize_trampoline,
244         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
245         sparc_issue_rate): Likewise.
246         * config/sparc/sol2.h: Likewise.
247         * config/sparc/sol2-sld-64.h: Likewise.
248         * config/sparc/linux64.h: Likewise.
249         
250         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
251
252         * doc/md.texi: Add comments about usage the latency time for the
253         different dependencies and about case when two or more conditions
254         in different define_insn_reservations returns TRUE for an insn.
255
256         * doc/md.texi: Add reference for automaton based pipeline
257         description.
258         
259         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
260
261         * doc/passes.texi: Add missed information about genattrtab.
262
263         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
264
265         * genautomata.c (output_automata_list_transition_code): Check
266         automata_list on NULL.
267
268         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
269
270         * genautomata.c (output_insn_code_cases,
271         output_automata_list_min_issue_delay_code,
272         output_automata_list_transition_code,
273         output_automata_list_state_alts_code): Comment the functions.
274
275         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
276
277         * genautomata.c (automata_list_el_t): New typedef.
278         (get_free_automata_list_el,free_automata_list_el,
279         free_automata_list, automata_list_hash, automata_list_eq_p,
280         initiate_automata_lists, automata_list_start, automata_list_add,
281         automata_list_finish, finish_automata_lists,
282         output_insn_code_cases, output_automata_list_min_issue_delay_code,
283         output_automata_list_transition_code,
284         output_automata_list_state_alts_code, add_automaton_state,
285         form_important_insn_automata_lists): New functions and prototypes.
286         (insn_reserv_decl): Add members important_automata_list and
287         processed_p.
288         (ainsn): Add members important_p.
289         (automata_list_el): New structure.
290         (first_free_automata_list_el, current_automata_list,
291         automata_list_table): New global variables.
292         (create_ainsns): Initiate member important_p.
293         (output_internal_min_issue_delay_func): Generate the switch and
294         call output_insn_code_cases.
295         (output_internal_trans_func, output_internal_state_alts_func):
296         Ditto.
297         (generate): Call initiate_automata_lists.
298         (automaton_states): New global variable.
299         (expand_automata): Call form_important_insn_automata_lists.
300         (write_automata): Call finish_automata_lists.
301         
302         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
303
304         * genautomata.c (add_excls, add_presence_absence): Check that
305         cpu units in the sets belong the same automaton.
306
307         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
308         about that cpu units in the sets belong the same automaton.
309
310         * doc/md.texi: Ditto.
311         
312         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
313                     Nitin Gupta  <niting@noida.hcltech.com>
314         
315         * config/sh/sh.c (sh_use_dfa_interface): New function.
316
317         (sh_issue_rate): New Function.
318         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
319         TARGET_SCHED_ISSUE_RATE: define.
320
321         * config/sh/sh.md: Add DFA based pipeline description for SH4.
322
323         (define_attr insn_class): New attribute used for DFA 
324          scheduling.
325         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
326         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
327          cmpeqdi_t): Likewise.
328
329         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
330          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class 
331          ex_group.
332         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
333            
334         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
335
336         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
337         break.
338
339         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
340
341         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
342         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
343         necessary.
344         (output_dfa_start_func): Initiate new variable insn_codes_length,
345         (write_automata): Output definition of the new variable.
346         
347         2001-10-02  David S. Miller  <davem@redhat.com>
348
349         * haifa-sched.c (advance_one_cycle): New function.
350         (schedule_block): Use it.
351         (queue_to_ready): Use it, and also make sure to advance the DFA
352         state on all stall cycles, not just those where insn_queue links
353         are found.
354
355         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
356
357         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
358         non-zero if the highest-priority instruction could be scheduled.
359         (choose_ready): Remove last argument from max_issue call.
360
361         2001-09-28  David S. Miller  <davem@redhat.com>
362
363         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
364         ultrasparc and 3 for other multi-issue sparcs.
365
366         2001-09-27  David S. Miller  <davem@redhat.com>
367
368         * config/sparc/sparc.md (cycle_display): New pattern.
369         * config/sparc/sparc.c (sparc_cycle_display): New.
370         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
371
372         2001-09-25  David S. Miller  <davem@redhat.com>
373
374         Convert all of Sparc scheduling to DFA
375         * config/sparc/sparc.md: Kill all define_function_unit
376         directives and replace with DFA equivalent.
377         * config/sparc/sparc.c (ultrasparc_adjust_cost,
378         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
379         ultra_fpmode_conflict_exists, ultra_find_type,
380         ultra_build_types_avail, ultra_flush_pipeline,
381         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
382         ultrasparc_variable_issue, ultrasparc_sched_init,
383         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
384         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
385         ultra_cur_hist, ultra_cycles_elapsed): Kill.
386         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
387         ultrasparc_store_bypass_p): New.
388         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
389         Declare.
390
391         2001-09-24  David S. Miller  <davem@redhat.com>
392
393         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
394         ready->vec[foo] not ready[foo].
395
396         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
397
398         * doc/md.texi: Correct examples for define_insn_reservations
399         `mult' and `div'.
400
401         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
402
403         * genautomata.c (create_automata): Print message about creation of
404         each automaton.
405         (generate): Remove printing meease about creation of
406         automata.
407
408         2001-09-05  David S. Miller  <davem@redhat.com>
409
410         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
411         * config/sparc/linux64.h: Likewise.
412
413         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
414
415         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
416         schedule_block, sched_init, sched_finish): Add missed calls of
417         use_dfa_pipeline_interface.
418
419         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
420         Ditto.
421
422         * sched-vis.c (get_visual_tbl_length): Ditto.
423         
424         2001-08-27  Richard Henderson  <rth@redhat.com>
425
426         * genattr.c (main): Emit state_t even when not doing scheduling.
427
428         2001-08-27  Richard Henderson  <rth@redhat.com>
429
430         * genautomata.c (expand_automata): Always create a description.
431
432         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
433
434         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
435         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
436         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
437         RTL constructions.
438
439         * genattr.c (main): New variable num_insn_reservations.  Increase
440         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
441         pipeline hazard recognizer interface.
442
443         * genattrtab.h: New file.
444
445         * genattrtab.c: Include genattrtab.h.
446         (attr_printf, check_attr_test, make_internal_attr,
447         make_numeric_value): Move protypes into genattrtab.h.  Define them
448         as external.
449         (num_dfa_decls): New global variable.
450         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
451         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
452         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
453         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
454
455         * genautomata.c: New file.
456
457         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
458
459         * sched-int.h: (curr_state): Add the external definition for
460         automaton pipeline interface.
461         (haifa_insn_data): Add comments for members blockage and units.
462
463         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
464         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
465         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
466         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
467         TARGET_SCHED_DFA_POST_CYCLE_INSN,
468         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
469         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
470         macros.
471         (TARGET_SCHED): Use the new macros.
472
473         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
474         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
475         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
476         dfa_bubble): New members in gcc_target.sched.
477
478         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
479         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
480         (insn_queue): Redefine it as pointer to array.
481         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
482         INSN_QUEUE_SIZE.
483         (max_insn_queue_index_macro_value): New variable.
484         (curr_state, dfa_state_size, ready_try): New varaibles for
485         automaton interface.
486         (ready_element, ready_remove, max_issue): New function prototypes
487         for automaton interface.
488         (choose_ready): New function prototype.
489         (insn_unit, blockage_range): Add comments.
490         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
491         FUNCTION_UNITS_SIZE == 0.
492         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
493         actual_hazard, potential_hazard): Add comments.
494         (insn_cost): Use cost -1 as undefined value.  Remove
495         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
496         pipeline interface.
497         (ready_element, ready_remove): New functions for automaton
498         interface.
499         (schedule_insn): Add new code for automaton pipeline interface.
500         (queue_to_ready): Add new code for automaton pipeline interface.
501         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
502         (debug_ready_list): Print newline when the queue is empty.
503         (max_issue): New function for automaton pipeline interface.
504         (choose_ready): New function.
505         (schedule_block): Add new code for automaton pipeline interface.
506         Print ready list before scheduling each insn.
507         (sched_init): Add new code for automaton pipeline interface.
508         Initiate insn cost by -1.
509         (sched_finish): Free the current automaton state and finalize
510         automaton pipeline interface.
511
512         * sched-rgn.c: Include target.h.
513         (init_ready_list, new_ready, debug_dependencies): Add new code for
514         automaton pipeline interface.
515
516         * sched-vis.c: Include target.h.
517         (get_visual_tbl_length): Add code for automaton interface.
518         (target_units, print_block_visualization):  Add comments.
519
520         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
521         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
522         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
523         (getruntime.o, genautomata.o): New entries.
524         (genattrtab.o): Add new dependency file genattrtab.h.
525         (genattrtab): Add new dependencies.  Link it with `libm.a'.
526         (getruntime.o, hashtab.o): New entries for canadian cross.
527
528         * doc/md.texi: Description of automaton based model.
529
530         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
531         Add comments.
532         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
533         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
534         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
535         TARGET_SCHED_DFA_POST_CYCLE_INSN,
536         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
537         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
538         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
539         hook descriptions.
540         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
541         MAX_DFA_ISSUE_RATE): New macro descriptions.
542
543         * doc/contrib.texi: Add dfa based scheduler contribution.
544
545         * doc/gcc.texi: Add more information about genattrtab.
546
547 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
548
549         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
550         adjust_address_nv call.
551
552 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
553
554         * doc/install.texi (Testing): Provide additional information, and
555         a stronger encouragement, for running the testsuites.
556
557 2002-04-29  DJ Delorie  <dj@redhat.com>
558
559         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
560         given in upper case.
561
562 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
563
564         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
565         Solaris 2 <widec.h> if missing.
566         * fixinc/fixincl.x: Regenerate.
567         * fixinc/tests/base/widec.h: New file.
568
569 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
570
571         * toplev.c (f_options): Add "profile" switch so that
572         -fno-profile can be used to disable -p.
573
574 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
575
576         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
577         UV2DImode.
578         * tree.c (build_common_tree_nodes_2): Likewise.
579         * tree.h (enum tree_index): Likewise.
580         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
581
582         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
583         entries.
584         (init_mmx_sse_builtins): Initialize SSE2 builtins.
585         (ix86_expand_builtin): Add support for SSE2 builtins.
586         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
587         (VALID_SSE_REG_MODE): Use it.
588         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
589         (enum ix86_builtins): Add SSE2 builtins.
590         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
591         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
592         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
593         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
594         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
595         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
596         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
597         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
598         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
599         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
600         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
601         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
602         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
603         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
604         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
605         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
606         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
607         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
608         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
609         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
610         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
611         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
612         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
613         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
614         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
615         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
616         lfence_insn): New patterns.
617         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
618         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
619
620 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
621
622         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
623
624 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
625
626         * doc/contrib.texi (Contributors): Add Paolo Carlini and
627         Janis Johnson.
628         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
629         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
630         and CPU instead of cpu.
631
632 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
633
634         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
635         variables.
636         (lang_independent_options): Add -fif-conversion, -fif-conversion2
637         (rest_of_compilation): Do if conversion only when asked for.
638         (parse_options_and_default_flags): Set new variables to 1 for -O1
639         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
640
641 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
642
643         * i386.c (dbx64_register_map): Fix typo.
644
645 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
646
647         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
648         real_one_half, real_bb_freq_max): New static variables.
649         (debug_profile_bbauxs): Kill.
650         (process_note_predictions): Kill unused variable.
651         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
652         volatile double.
653         (propagate_freq): Use REAL_ARITHMETICS.
654         (estimate_bb_frequencies): Likevise; init new static variables.
655         * Makefile.in (predict.o): Add dependency on real.h
656
657 2002-04-28  David S. Miller  <davem@redhat.com>
658
659         PR target/6500
660         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
661         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
662         several {reads,writes} instead.
663         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
664         Define.
665
666 2002-04-27  David S. Miller  <davem@redhat.com>
667
668         PR target/6494
669         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
670         of the stack bias.
671
672         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
673         including signal.h and sys/ucontext.h, not needed.
674
675 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
676
677         * varasm.c (output_constant_def): Correct test for not calling
678         ENCODE_SECTION_INFO for INTEGER_CST.
679
680 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
681
682         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
683         keep most cases as function eval_token.
684         (eval_token): New function.
685         (_cpp_parse_expr): Read token here for improved diagnostics.
686         Don't use op_as_text.  Detect bad ':' here.
687         (reduce): Don't detect bad ':' here.
688         (op_as_text): Remove.
689         * cpphash.h (_cpp_test_assertion): Change prototype.
690         * cpplib.c (_cpp_test_assertion): Change prototype.
691
692 2002-04-28  Richard Henderson  <rth@redhat.com>
693
694         PR c/5154
695         * ggc-common.c (ggc_mark_rtx_children_1): Rename from... 
696         (ggc_mark_rtx_children): New.
697
698 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
699
700         PR target/6496
701         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
702         after call peepholes for UltraSPARC.
703         (call + jump 64-bit peepholes): Remove.
704
705 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
706
707         PR c/6497
708         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
709         result as temporary value.
710
711 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
712
713         PR c++/6396
714         * toplev.c (rest_of_compilation): Only run regrename and copy
715         propagation if optimizing.
716
717 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
718
719         PR optimization/6475
720         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
721         register of REGNO_DECL (i).
722         * Makefile.in (reload1.o): Add $(TREE_H).
723
724 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
725
726         * cppexp.c (lex): Update to use state.skip_eval.
727         (struct op): Remove prio and flags members.
728         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
729         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
730         (LEFT_ASSOC): New macro.
731         (optab): New table of operator priorities and flags.
732         (SHIFT): Update.
733         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
734         malloc-ed parser stack.
735         (reduce): New; reduce the operator stack.
736         (_cpp_expand_op_stack): Expand the operator stack as necessary.
737         * cpphash.h (struct op): Predeclare.
738         (struct cpp_reader): New members op_stack, op_limit.
739         (struct lexer_state): New member skip_eval.
740         (_cpp_parse_expr): Update.
741         (_cpp_expand_op_stack): New.
742         * cpplib.c (do_if): Update.
743         * cppinit.c (cpp_create_reader): Create op stack.
744         (cpp_destroy): And destroy it.
745         * cpplib.h (CPP_LAST_CPP_OP): Correct.
746         (TTYPE_TABLE): Correct.
747
748 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
749
750         PR c/6343
751         * c-decl.c (duplicate_decls): Call merge_weak.
752         * c-pragma.c (apply_pragma_weak): Warn about misuse.
753         * output.h (merge_weak): Prototype merge_weak.
754         * varasm.c (merge_weak): New function.
755         (declare_weak): Make sure we don't give an error on VAR_DECLs.
756         Mark RTL with SYMBOL_REF_WEAK.
757
758 2002-04-27  Kurt Garloff <garloff@suse.de>
759
760         * tree-inline.c (inlinable_function_p): Improve heuristics
761         by using a smoother function to cut down allowable inlinable size.
762         * param.def: Add parameters max-inline-insns-single,
763         max-inline-slope, min-inline-insns that determine the exact
764         shape of the above function.
765         * param.h: Likewise.
766
767 2002-04-26  Richard Henderson  <rth@redhat.com>
768
769         * c-parse.in (malloced_yyss, malloced_yyvs): New.
770         (yyoverflow): Re-add.  Set them.
771         (free_parser_stacks): New.
772         * c-common.h: Declare it.
773         * c-lex.c (c_common_parse_file): Call it.
774
775 2002-04-26  Richard Henderson  <rth@redhat.com>
776
777         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
778         for fallthru search.
779
780 2002-04-26  Eric Christopher  <echristo@redhat.com>
781
782         PR optimization/3700
783         * config/mips/mips.c (mips_issue_rate): Define.  New function.
784         (TARGET_SCHED_ISSUE_RATE): Use.
785
786 2002-04-25  David S. Miller  <davem@redhat.com>
787
788         PR target/6422
789         * reorg.c (optimize_skip): Do not allow exception causing
790         instructions to be considered for delay slots.
791         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
792         (relax_delay_slots): Do not try to consider exception causing
793         instructions as redundant.
794
795 2002-04-26  Richard Henderson  <rth@redhat.com>
796
797         PR c/5225
798         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
799
800 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
801
802         PR bootstrap/6445
803         * config/i386/i386.md (untyped_call): Return the value in a float
804         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
805         TARGET_80387.
806
807 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
808
809         * tree.c (tree_int_cst_lt): Compare constants whose types differ
810         in unsigned-ness correctly.
811
812 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
813
814         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
815         portable runtime model.
816
817 2002-04-26  Richard Henderson  <rth@redhat.com>
818
819         * c-parse.in (yyoverflow): Revert.
820
821 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
822             Richard Henderson  <rth@redhat.com>
823
824         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
825         result as temporary value.
826
827 2002-04-26  Richard Henderson  <rth@redhat.com>
828
829         PR c/3581
830         * c-common.c (fix_string_type): Split out of ...
831         (combine_strings): ... here.  Take a varray, not a tree list.
832         (c_expand_builtin_printf): Use fix_string_type.
833         * c-common.h: Update decls.
834         * c-parse.in (string): Remove.  Update all uses to use STRING
835         instead, and not call combine_strings.
836         (yylexstring): New.
837         (_yylex): Use it.
838         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
839         (build_asm_stmt): Likewise.
840         * objc/objc-act.c (my_build_string): Use fix_string_type.
841         (build_objc_string_object): Build varray for combine_strings.
842
843 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
844
845         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
846         x86-64.
847
848 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
849
850         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
851         (HAVE_NO_R_OPERAND): Remove.
852         (HAVE_VALUE): Remove.
853         (op_to_prio): Update.
854         (UNARY): Don't alter flags.
855         (_cpp_parse_expr): want_value used to indicate whether
856         a number or unary operator is expected next.  Distinguish
857         unary and binary +/-.
858         (op_as_text): Update for unary operators.
859
860 2002-04-25  Richard Henderson  <rth@redhat.com>
861
862         PR c/2161
863         * c-parse.in (yyoverflow): New.
864
865 2002-04-25  Richard Henderson  <rth@redhat.com>
866
867         PR c/2098
868         * c-common.c (shorten_compare): Simplfy conditions leading to
869         the generation of a warning.
870
871 2002-04-25  Richard Henderson  <rth@redhat.com>
872
873         PR c/2035
874         * expmed.c (extract_bit_field): Fall through to generic code rather
875         than aborting on subreg special case.
876
877 2002-04-25  David S. Miller  <davem@redhat.com>
878
879         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
880         for DECL being NULL.
881
882 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
883
884         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
885
886 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
887
888         * c-decl.c (grokdeclarator): Remove outdated ??? note
889         on invalid declaration of flexible array members.
890
891 2002-04-25  Richard Henderson  <rth@redhat.com>
892
893         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
894
895 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
896
897         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
898         needed by the compiler, even if they are used as global regs.
899
900 2002-04-25  Matt Hiller  <hiller@redhat.com>
901
902         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
903         functions.
904         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
905         of the corresponding functions.
906         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
907         New prototypes.
908
909 2002-04-25  Matt Hiller  <hiller@redhat.com>
910
911         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
912
913         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
914         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
915         registers, adjust comment accordingly.
916         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
917         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
918         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
919         for coprocessor registers.
920         (ADDITIONAL_REGISTER_NAMES): Include
921         ALL_COP_ADDITIONAL_REGISTER_NAMES.
922
923         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
924         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
925         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
926         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
927         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
928
929         (mips_char_to_class): Adjust comment to include coprocessor
930         constraint letters.
931
932         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
933         New functions.
934         (mips_reg_names, mips_regno_to_class): Include coprocessor
935         information.
936         (mips_sw_reg_names): Ditto, make non-static.
937         (mips_move_1word): Handle moves to and from coprocessor registers.
938         (mips_move_2words): Handle moves to and from coprocessor
939         registers.
940         (mips_class_max_nregs, mips_register_move_cost): Handle
941         coprocessor register classes.
942         (override_options): Initialize mips_char_to_class and
943         mips_hard_regno_mode_ok properly for coprocessor registers.
944
945         * config/mips/mips.md (movdi_internal, movdi_internal2,
946         movsi_internal1, movsi_internal2): Add constraint-sets for
947         coprocessor registers.
948         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
949         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
950         isn't mips.
951         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
952         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
953         isn't mips.
954         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
955         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
956         isn't mips.
957         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
958         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
959         isn't mips.
960
961         * doc/tm.texi: Document feature.
962
963 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
964
965         * integrate.c (function_attribute_inlinable_p): Simplify.
966         Check the table pointer is not NULL.
967
968 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
969
970         * doc/c-tree.texi: Fix typo in introduction.
971
972 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
973
974         * c-common.h (c_common_parse_file): Update.
975         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
976         * c-lex.c (YYDEBUG): Get from c-lex.h.
977         (c_common_parse_file): Update.
978         * c-lex.h (YYDEBUG, yydebug): New.
979         * c-parse.in (YYDEBUG): Get from c-lex.h.
980         (c_set_yydebug): Remove.
981         * c-tree.h (c_set_yydebug): Remove.
982         * langhooks-def.h (lhd_do_nothing_i): New.
983         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
984         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
985         * langhooks.c  (lhd_do_nothing_i): New.
986         (lhd_set_yydebug): Remove.
987         * langhooks.h (struct lang_hooks): Update.
988         * toplev.c (set_yydebug): New.
989         (compile_file): Update call to parse_file hook.
990         (decode_d_option): Update.
991 objc:
992         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
993
994 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
995
996         * loop.c (load_mems): Don't change the interface of called functions.
997
998         * calls.c (expand_call): Take current_function_pretend_args_size
999         into account when setting argblock for sibcalls.
1000
1001 2002-04-24  Matt Hiller  <hiller@redhat.com>
1002
1003         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
1004         * c-lex.c: Ditto.
1005
1006         * cpplex.c (skip_line_comment): Process comment one multibyte
1007         character at a time rather than one char at a time, if
1008         appropriate.
1009         (parse_string): Process string one multibyte character at a time
1010         rather than one char at a time, if appropriate.
1011         * c-lex.c (lex_string): Lex and copy multibyte strings
1012         appropriately.
1013         * cpplib.h (cppchar_t): Change to unsigned.
1014
1015 2002-04-24  Richard Henderson  <rth@redhat.com>
1016
1017         PR c/3467
1018         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
1019         for c99.
1020
1021 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
1022
1023         * sh.c (sh_va_arg): If argument was passed by reference,
1024         dereference the pointer.
1025
1026         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
1027
1028         * sh.md (divsi3_i4_media): Use match_operand for input values
1029         rather than hard registers.
1030         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
1031         unnecessarily through hard registers.  Keep copies of pseudo
1032         registers outside of the libcall sequence.
1033
1034         * sh.md (casesi_shift_media): Add modes.
1035
1036         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
1037         values in memory.
1038
1039 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
1040
1041         * attribs.c (c_common_attribute_table): Move table and handlers
1042         to c-common.c.
1043         (format_attribute_table, lang_attribute_table,
1044         lang_attribute_common): Remove.
1045         (init_attributes): Replace NULL pointers with pointers to the
1046         empty table.
1047         (handle_packed_attribute, handle_nocommon_attribute,
1048         handle_common_attribute, handle_noreturn_attribute,
1049         handle_noinline_attribute, handle_always_inline_attribute,
1050         handle_used_attribute, handle_unused_attribute,
1051         handle_const_attribute, handle_transparent_union_attribute,
1052         handle_constructor_attribute, handle_destructor_attribute,
1053         handle_mode_attribute, handle_section_attribute,
1054         handle_aligned_attribute, handle_weak_attribute,
1055         handle_alias_attribute, handle_visibility_attribute,
1056         handle_no_instrument_function_attribute, handle_malloc_attribute,
1057         handle_no_limit_stack_attribute, handle_pure_attribute,
1058         handle_deprecated_attribute, handle_vector_size_attribute,
1059         vector_size_helper): Move to c-common.c.
1060         * c-common.c (c_common_attribute_table,
1061         handle_packed_attribute, handle_nocommon_attribute,
1062         handle_common_attribute, handle_noreturn_attribute,
1063         handle_noinline_attribute, handle_always_inline_attribute,
1064         handle_used_attribute, handle_unused_attribute,
1065         handle_const_attribute, handle_transparent_union_attribute,
1066         handle_constructor_attribute, handle_destructor_attribute,
1067         handle_mode_attribute, handle_section_attribute,
1068         handle_aligned_attribute, handle_weak_attribute,
1069         handle_alias_attribute, handle_visibility_attribute,
1070         handle_no_instrument_function_attribute, handle_malloc_attribute,
1071         handle_no_limit_stack_attribute, handle_pure_attribute,
1072         handle_deprecated_attribute, handle_vector_size_attribute,
1073         vector_size_helper): Move from attribs.c.
1074         * c-common.h (c_common_attribute_table,
1075         c_common_format_attribute_table): New.
1076         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
1077         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
1078         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
1079         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
1080         (LANG_HOOKS_INITIALIZER): Update.
1081         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
1082         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
1083         * target.h: Update comment.
1084         * tree.c (default_target_attribute_table): Remove.
1085         * tree.h (default_target_attribute_table, format_attribute_table,
1086         lang_attribute_table, lang_attribute_common): Remove.
1087 objc:
1088         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
1089         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
1090
1091 2002-04-24  Jason Merrill  <jason@redhat.com>
1092
1093         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
1094         * dwarf2out.c (dwarf_attr_name): Support it.
1095         (gen_array_type_die): Emit it.
1096         (lookup_type_die): No special handling for VECTOR_TYPE.
1097         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
1098
1099 2002-04-24  Richard Henderson  <rth@redhat.com>
1100
1101         * config/mips/mips.md (movdi_usd): Renumber.
1102
1103 2002-04-24  David S. Miller  <davem@redhat.com>
1104
1105         PR target/6420
1106         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
1107         32-bit Sparc and current_function_returns_struct is true.
1108
1109 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
1110
1111         * loop.c (canonicalize_condition): Use gen_int_mode.
1112
1113 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
1114
1115         * config/rs6000/altivec.h: Cleanup file.  Add non individual
1116         variants.
1117         (vec_vaddubm): New.
1118         (vec_vadduhm): New.
1119         (vec_vadduwm): New.
1120         (vec_vaddfp): New.
1121         (vec_vaddcuw): New.
1122         (vec_vaddubs): New.
1123         (vec_vaddsbs): New.
1124         (vec_vadduhs): New.
1125         (vec_vadduws): New.
1126         (vec_vaddsws): New.
1127         (vec_vand): New.
1128         (vec_vandc): New.
1129         (vec_vavgub): New.
1130         (vec_vavgsb): New.
1131         (vec_vavguh): New.
1132         (vec_vavgsh): New.
1133         (vec_vavguw): New.
1134         (vec_vavgsw): New.
1135         (vec_vrfip): New.
1136         (vec_vcmpbfp): New.
1137         (vec_vcmpequb): New.
1138         (vec_vcmpequh): New.
1139         (vec_vcmpequw): New.
1140         (vec_vcmpeqfp): New.
1141         (vec_vcmpgefp): New.
1142         (vec_vcmpgtub): New.
1143         (vec_vcmpgtsb): New.
1144         (vec_vcmpgtuh): New.
1145         (vec_vcmpgtsh): New.
1146         (vec_vcmpgtuw): New.
1147         (vec_vcmpgtsw): New.
1148         (vec_vcmpgtfp): New.
1149         (vec_vcmpgefp): New.
1150         (vec_vcfux): New.
1151         (vec_vcfsx): New.
1152         (vec_vctsxs): New.
1153         (vec_vctuxs): New.
1154         (vec_vexptefp): New.
1155         (vec_vrfim): New.
1156         (vec_lvx): New.
1157         (vec_lvebx): New.
1158         (vec_lvehx): New.
1159         (vec_lde): Add vector float variant.
1160         (vec_lvewx): New.
1161         (vec_lvxl): New.
1162         (vec_vlogefp): New.
1163         (vec_vmaddfp): New.
1164         (vec_vmhaddshs): New.
1165         (vec_vmaxub): New.
1166         (vec_vmaxsb): New.
1167         (vec_vmaxuh): New.
1168         (vec_vmaxsh): New.
1169         (vec_vmaxuw): New.
1170         (vec_vmaxsw): New.
1171         (vec_vmaxsw): New.
1172         (vec_vmaxfp): New.
1173         (vec_vmrghb): New.
1174         (vec_vmrghh): New.
1175         (vec_vmrghw): New.
1176         (vec_vmrglb): New.
1177         (vec_vmrglh): New.
1178         (vec_vmrglw): New.
1179         (vec_vminub): New.
1180         (vec_vminsb): New.
1181         (vec_vminuh): New.
1182         (vec_vminsh): New.
1183         (vec_vminuw): New.
1184         (vec_vminsw): New.
1185         (vec_vminfp): New.
1186         (vec_vmladduhm): New.
1187         (vec_vmhraddshs): New.
1188         (vec_msumubm): New.
1189         (vec_vmsummbm): New.
1190         (vec_vmsumuhm): New.
1191         (vec_vmsumshm): New.
1192         (vec_vmsumuhs): New.
1193         (vec_vmsumshs): New.
1194         (vec_vmuleub): New.
1195         (vec_vmulesb): New.
1196         (vec_vmuleuh): New.
1197         (vec_vmulesh): New.
1198         (vec_vmuloub): New.
1199         (vec_mulosb): New.
1200         (vec_vmulouh): New.
1201         (vec_vmulosh): New.
1202         (vec_vnmsubfp): New.
1203         (vec_vnor): New.
1204         (vec_vor): New.
1205         (vec_vpkuhum): New.
1206         (vec_vpkuwum): New.
1207         (vec_vpkpx): New.
1208         (vec_vpkuhus): New.
1209         (vec_vpkshss): New.
1210         (vec_vpkuwus): New.
1211         (vec_vpkswss): New.
1212         (vec_vpkshus): New.
1213         (vec_vpkswus): New.
1214         (vec_vperm): New.
1215         (vec_vrefp): New.
1216         (vec_vrlb): New.
1217         (vec_vrlh): New.
1218         (vec_vrlw): New.
1219         (vec_vrfin): New.
1220         (vec_vrsqrtefp): New.
1221         (vec_vsel): New.
1222         (vec_vslb): New.
1223         (vec_vslh): New.
1224         (vec_vslw): New.
1225         (vec_vsldoi): New.
1226         (vec_vsl): New.
1227         (vec_vslo): New.
1228         (vec_vspltb): New.
1229         (vec_vsplth): New.
1230         (vec_vspltw): New.
1231         (vec_vspltisb): New.
1232         (vec_vspltish): New.
1233         (vec_vspltisw): New.
1234         (vec_vsrb): New.
1235         (vec_vsrh): New.
1236         (vec_vsrw): New.
1237         (vec_vsrab): New.
1238         (vec_vsrah): New.
1239         (vec_vsraw): New.
1240         (vec_vsr): New.
1241         (vec_vsro): New.
1242         (vec_stvx): New.
1243         (vec_stvebx): New.
1244         (vec_stvehx): New.
1245         (vec_stvewx): New.
1246         (vec_stvxl): New.
1247         (vec_vsububm): New.
1248         (vec_vsubuhm): New.
1249         (vec_vsubuwm): New.
1250         (vec_vsubfp): New.
1251         (vec_vsubcuw): New.
1252         (vec_vsububs): New.
1253         (vec_vsubsbs): New.
1254         (vec_vsubuhs): New.
1255         (vec_vsubshs): New.
1256         (vec_vsubuws): New.
1257         (vec_vsubsws): New.
1258         (vec_vsum4ubs): New.
1259         (vec_vsum4sbs): New.
1260         (vec_vsum4shs): New.
1261         (vec_vsum2sws): New.
1262         (vec_vsumsws): New.
1263         (vec_vrfiz): New.
1264         (vec_vupkhsb): New.
1265         (vec_vupkhpx): New.
1266         (vec_vupkhsh): New.
1267         (vec_vupklsb): New.
1268         (vec_vupklpx): New.
1269         (vec_vupklsh): New.
1270         (vec_vxor): New.
1271
1272 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
1273
1274         PR c/5430
1275         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
1276         added literals from substracted literals.
1277         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
1278         (fold) [associate]: Preserve MINUS_EXPR if needed.
1279
1280 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
1281
1282         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
1283         are obsoleted.
1284
1285 2002-04-23  Tom Tromey  <tromey@redhat.com>
1286
1287         * gcc.c: Added --resource.  For PR java/6314.
1288
1289 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
1290
1291         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
1292         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
1293         these libraries.
1294
1295 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
1296
1297         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
1298
1299 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
1300
1301         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
1302         workaround.
1303         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
1304         (ix86_expand_clrstr): Fix typo.
1305         * loop.c (gen_load_of_final_value): New.
1306         (loop_givs_rescan, strength_reduce, check_dbra_loop):
1307         Use it.
1308
1309 2002-04-23  Roger Sayle  <roger@eyesopen.com>
1310
1311         * builtins.c (builtin_memset_gen_str): New function.
1312         (expand_builtin_memset): Optimize the case of constant length, but
1313         unknown value.
1314
1315 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
1316
1317         * config/rs6000/altivec.h (vec_step): Remove extraneous
1318         parentheses.
1319         (vec_ctu): Cast return.
1320
1321 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
1322
1323         PR target/6413
1324         * function.h: (struct function): Add profile_label_no field.
1325         (current_function_profile_label_no): Define.
1326         * function.c: (profile_label_no): New static var.
1327         (expand_function_start): Increment it, and copy to
1328         current_function_profile_label_no.
1329         * output.h (profile_label_no): Delete.
1330         * final.c (profile_label_no): Delete.
1331         (profile_function): Use current_function_profile_label_no.
1332         (final_end_function): Don't increment profile_label_no here.
1333         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
1334         profile_label_no with current_function_profile_label_no.
1335         * config/pa/pa.c (current_function_number): Delete.
1336         (pa_output_function_prologue): Don't output profile label here.
1337         (hppa_profile_hook): Use label_no param rather than
1338         current_function_number.
1339         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
1340         * config/pa/pa.h: .. here.
1341         (FUNCTION_PROFILER): Output profile label here.
1342
1343 2002-04-22  Eric Christopher  <echristo@redhat.com>
1344
1345         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
1346         patch of 2002-04-09 due to binutils issues.
1347         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
1348
1349 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
1350
1351         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
1352         constraint to 'o' for m=r and r=m alternatives.
1353         ("*movv8hi_internal1"): Same.
1354         ("*movv16qi_internal1"): Same.
1355         ("*movv4sf_internal1"): Same.
1356
1357 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
1358
1359         * rtl.h (RTX_FLAG): New macro.
1360         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
1361         * final.c (alter_subreg): Use macro to access rtx flag.
1362         * integrate.c (copy_rtx_and_substitute): Use new access macro.
1363         * print-rtl.c (print_rtx): Use new access macro.
1364
1365         * cse.c (insert): Check rtx code before accessing flag.
1366
1367         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
1368         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
1369         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
1370         convert_const_symbol_ref, make_canonical, make_alternative_compare,
1371         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
1372         simplify_test_exp, optimize_attrs, simplify_by_exploding,
1373         find_and_mark_used_attributes, unmark_used_attributes,
1374         add_values_to_cover, simplify_with_current_value,
1375         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
1376         copy_rtx_unchanging, main): Use new access macros.
1377
1378 2002-04-22  Tom Rix  <trix@redhat.com>
1379
1380         * expmed.c (init_expmed): Generate shifted constant once.
1381
1382 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
1383
1384         * c-lex.c (lex_charconst): Call convert to get constant in
1385         proper type; don't just smash the type field.
1386         Fixes PR c/6300.
1387
1388         * config.gcc: Add list of obsolete configurations.  Disallow
1389         building these without --enable-obsolete.
1390         * doc/install.texi: Document --enable-obsolete and obsoletion
1391         policy.  Mention obsoletion of individual targets in
1392         appropriate places.
1393
1394 2002-04-22  Richard Henderson  <rth@redhat.com>
1395
1396         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
1397
1398 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
1399
1400         PR f/6138.
1401         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
1402         (walk_fixup_memory_subreg): Likewise.
1403         (fixup_var_refs_insn): Adjust accordingly.
1404         (fixup_var_refs_1): Likewise.
1405
1406 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
1407
1408         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
1409         LIBPATH_ARCH64_SPEC): Define.
1410         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
1411         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
1412         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
1413         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
1414
1415 2002-04-22      Joel Sherrill <joel@OARcorp.com>
1416
1417         * gthr-rtems.h: Correct prototypes to remove warnings.
1418
1419 2002-04-22  Richard Henderson  <rth@redhat.com>
1420
1421         PR c/6344
1422         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
1423
1424         * gcse.c (free_insn_expr_list_list): New.
1425         (clear_modify_mem_tables): Use it.  Fix bit set usage.
1426         (canon_list_insert): Use EXPR_LISTs for expressions.
1427         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
1428
1429 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
1430
1431         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
1432         file change and include code to _cpp_pop_buffer.
1433         * cpphash.h (struct pending_option): Predeclare.
1434         (struct cpp_reader): New member next_include_file.
1435         (_cpp_pop_file_buffer): Update.
1436         (_cpp_push_next_buffer): Update, rename.
1437         * cppinit.c (cpp_destroy): Free include chain and pending here.
1438         (cpp_finish_options): Simplify.
1439         (_cpp_push_next_buffer): Rename and clean up.
1440         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
1441         Clarify.
1442         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
1443
1444 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
1445
1446         * config/rs6000/altivec.h (vec_xor): Add variant for both args
1447         being vector signed int.
1448         (vec_andc): Same.
1449         (vec_xor): Add variant for both args being vector signed char.
1450         Remove redundant variant.
1451         (vec_andc): Same.
1452
1453 2002-04-21  David S. Miller  <davem@redhat.com>
1454
1455         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
1456         compare mode in output RTL.
1457
1458 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
1459
1460         * config/rs6000/rs6000.c (rs6000_override_options): Correct
1461         style and formatting of previous patch.
1462
1463 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
1464
1465         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
1466         flag_pic for ABI_AIX.
1467
1468 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
1469
1470         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
1471         * cppfiles.c (read_include_file): Similarly.
1472         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
1473         uxstrdup ustrchr, ufputs): Similarly.
1474         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
1475         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
1476         cpp_ideq, parse_identifier, parse_number): Similarly.
1477         * cpplib.c (struct directive, dequote_string, D, run_directive,
1478         cpp_push_buffer): Similarly.
1479         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
1480         _cpp_create_definition, check_trad_stringification,
1481         cpp_macro_definition): Similarly.
1482
1483 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
1484
1485         * cppmacro.c (funlike_invocation_p): Don't step back
1486         over CPP_EOF.
1487
1488 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
1489
1490         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
1491         labelno.
1492
1493 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
1494
1495         * doc/invoke.texi: Remove Chill references.
1496         * doc/gcc.texi: Update last modified date.
1497
1498 2002-04-20  Kazu Hirata  <kazu@hxi.com>
1499
1500         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
1501         push and pop.  Replace add.l with add.w.
1502
1503 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1504
1505         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
1506         multiply instructions for H8/300H case.
1507
1508 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1509
1510         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
1511         Bum three instructions from each routine.
1512
1513 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
1514
1515         * Makefile.in: Update.
1516         * decl.c (push_c_function_context, pop_c_function_context,
1517         mark_c_function_context): Rename for consistency.
1518         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
1519         * c-tree.h (push_c_function_context, pop_c_function_context,
1520         mark_c_function_context): Rename for consistency.
1521         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1522         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
1523         * function.c (init_lang_status, save_lang_status,
1524         restore_lang_status, mark_lang_status, free_lang_status):
1525         Move to langhooks.h.
1526         (push_function_context_to, pop_function_context_from,
1527         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
1528         Update.
1529         * function.h (init_lang_status, save_lang_status,
1530         restore_lang_status, mark_lang_status, free_lang_status):
1531         Move to langhooks.h.
1532         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
1533         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
1534         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
1535         LANG_HOOKS_FUNCTION_INITIALIZER): New.
1536         (LANG_HOOKS_INITIALIZER): Update.
1537         (lhd_do_nothing_f): New.
1538         * langhooks.h (struct lang_hooks_for_functions): New.
1539         (struct lang_hooks): New hooks.
1540         * langhooks.c (lhd_do_nothing_f): New.
1541 objc:
1542         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1543         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
1544
1545 2002-04-19  David S. Miller  <davem@redhat.com>
1546
1547         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
1548         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
1549
1550 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
1551
1552         PR optimization/3756
1553         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
1554         x = ((int) y < 0) ? cst1 : cst2.
1555
1556 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
1557
1558         PR c/6358
1559         * function.c: Reapply patch for c/6358.
1560         (expand_function_end): Copy decl_rtl's mode, not
1561         current_function_return_rtx mode.
1562
1563 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
1564
1565         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
1566         targets.
1567
1568 2002-04-19  Tom Tromey  <tromey@redhat.com>
1569
1570         * doc/install.texi (Specific): Update status of Solaris 2.8.
1571         For PR libgcj/6158.
1572
1573 2002-04-19  Andreas Schwab  <schwab@suse.de>
1574
1575         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
1576         (PUT_REAL): Restore old definition.
1577
1578 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
1579             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1580
1581         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
1582         binutils 2.11.2 and higher generate smaller binaries than Sun's
1583         native tools.
1584
1585 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
1586
1587         PR c++/6352
1588         * toplev.c (rest_of_compilation): Do not defer functions for which
1589         TREE_SYMBOL_REFERENCED has already been set.
1590
1591 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
1592
1593         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
1594         alternative.
1595
1596 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
1597
1598         * builtins.c: Include langhooks.h.
1599         (lang_type_promotes_to): Remove.
1600         (expand_builtin_va_arg): Use new hook.
1601         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
1602         (simple_type_promotes_to): Move to c-typeck.c.
1603         * c-common.h (simple_type_promotes_to): Remove.
1604         * c-decl.c (duplicate_decls, grokdeclarator): Update.
1605         * c-format.c: Include langhooks.h.
1606         (check_format_types): Update.
1607         * c-tree.h (c_type_promotes_to): New.
1608         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
1609         (type_lists_compatible_p): Update.
1610         * langhooks-def.h (lhd_type_promotes_to): New.
1611         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
1612         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
1613         * langhooks.c (lhd_type_promotes_to): New.
1614         * langhooks.h (struct lang_hooks_for_types): New hook.
1615         * tree.h (lang_type_promotes_to): Remove.
1616 objc:
1617         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
1618
1619 2002-04-18  Richard Henderson  <rth@redhat.com>
1620
1621         * function.c: Revert patch for c/6358.
1622
1623 2002-04-18  Richard Henderson  <rth@redhat.com>
1624
1625         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
1626         blocks.  Handle multiple references to the TRAP block.  Handle
1627         non-adjacent THEN and OTHER blocks.
1628
1629 2002-04-18  Richard Henderson  <rth@redhat.com>
1630
1631         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
1632         crash with no type for by-mode libcalls.
1633
1634         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
1635
1636 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
1637
1638         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
1639         __xtensa_nonlocal_goto): Use a syscall instructions to flush
1640         the register windows.
1641
1642 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
1643
1644         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
1645         appropriate.  Document need for extended precision even when
1646         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
1647         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
1648         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
1649         instead of relying on later syntax error when REAL_WIDTH > 5.
1650         * real.c: Define NE based only on whether or not we have a
1651         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
1652         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
1653         define GET_REAL and PUT_REAL as simple memcpy operations; no
1654         need to byteswap or round.
1655         Use #error instead of #ifdef-ing out the entire file, for
1656         prompt error detection.
1657
1658         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
1659
1660 2002-04-18  David S. Miller  <davem@redhat.com>
1661
1662         * config/sparc/sparc.h (BRANCH_COST): Define.
1663
1664         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
1665         does it.
1666
1667 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
1668
1669         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
1670         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
1671         propagate_block calls after relaxation loop using new variable
1672         stabilized_prop_flags.
1673
1674 2002-04-18  Richard Henderson  <rth@redhat.com>
1675
1676         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
1677         (ia64_va_arg): Expect variable sized types by reference.
1678         * config/ia64/ia64-protos.h: Update.
1679         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
1680         ia64_function_arg_pass_by_reference.
1681
1682 2002-04-18  Richard Henderson  <rth@redhat.com>
1683
1684         * ifcvt.c: Include except.h.
1685         (block_has_only_trap): Break out from find_cond_trap.
1686         (find_cond_trap): Use it.  Always delete the trap block.
1687         (merge_if_block): Allow then block null.  Be less simplistic about
1688         what insns can end a block.
1689         * Makefile.in (ifcvt.o): Depend on except.h.
1690
1691         * config/ia64/ia64.md (trap, conditional_trap): New.
1692
1693 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
1694
1695         PR c/6358
1696         * function.c (assign_parms): Assign hard current_function_return_rtx
1697         register here...
1698         (expand_function_end): ...not here.
1699
1700 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
1701
1702         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
1703         * c-tree.h (c_incomplete_type_error): New.
1704         * c-typeck.c (require_complete_type, build_component_ref): Update.
1705         (incomplete_type_error): Rename.
1706         * langhooks-def.h (lhd_incomplete_type_error): New.
1707         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
1708         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
1709         * langhooks.c (lhd_incomplete_type_error): New.
1710         * langhooks.h (struct lang_hooks_for_types): New hook.
1711         * tree.c (size_in_bytes): Use new hook.
1712         * tree.h (incomplete_type_error): Remove.
1713 objc:
1714         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
1715
1716 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
1717
1718         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
1719         TARGET_FLOAT_FORMAT blocks.
1720
1721 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1722
1723         * doc/install.texi (Downloading the source): Do not mention Chill
1724         any longer, but mention Ada.
1725         (Configuration): Do not mention Chill any longer.
1726
1727 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
1728
1729         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
1730
1731 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
1732
1733         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
1734         in last patch.
1735
1736 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
1737
1738         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
1739         instead of unsigned_type.
1740
1741 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
1742
1743         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
1744         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
1745         later.
1746
1747 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
1748
1749         * attribs.c (vector_type_node_list): New static variable.
1750         (handle_vector_size_attribute): Use it to avoid generating a
1751         new type node each time we are called.
1752
1753         * combine.c (subst): Avoid trying to make a vector mode subreg of
1754         an integer constant.
1755         (gen_lowpart_for_combine): Likewise.
1756
1757 2002-04-18  Roger Sayle  <roger@eyesopen.com>
1758             Jakub Jelinek  <jakub@redhat.com>
1759
1760         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
1761         for integer constant c (if x has unsigned type or sign bit is not
1762         set in c).  This folds the zero/sign extension into the bit-wise and
1763         operation.
1764
1765 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
1766
1767         PR middle-end/6205
1768         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
1769         otherwise xorps.
1770
1771 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
1772
1773         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
1774
1775 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
1776
1777         * gcc.c (read_specs): Detect and fail if an attempt is made to
1778         rename a spec string to an already existing string.
1779
1780 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
1781
1782         * config/s390/s390.c (legitimize_pic_address): Do not generate
1783         illegal address constant without CONST.
1784
1785 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1786
1787         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
1788         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1789
1790 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
1791
1792         PR optimization/6305
1793         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
1794         to make sure previous reloads are taken into account.  Generate
1795         better code if one operand is an in-range immediate constant.
1796
1797 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
1798
1799         * doc/install.texi (Building): libgcj requires GNU make.
1800
1801 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
1802
1803         PR bootstrap/6315
1804         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
1805         even if hard quad and register is not floating.
1806         (movtf reg<-mem split): Disallow splitting if hard quad and
1807         register is floating.
1808         (movtf mem<-reg split): Likewise.
1809         * config/sparc/sparc.c (fp_register_operand): New predicate.
1810         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
1811
1812 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
1813
1814         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
1815         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
1816         (unprotoize.o): Ditto.  Build from protoize.c.  Define
1817         UNPROTOIZE on command line.
1818         * protoize.c: Include cppdefault.h.  Delete include_defaults.
1819         (in_system_include_dir): Use cpp_include_defaults (defined in
1820         cppdefault.o).
1821         * unprotoize.c: Delete file.
1822
1823 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
1824
1825         * config/rs6000/altivec.h (vec_ld): Add array variants.
1826         (vec_lde): Same.
1827         (vec_ldl): Same.
1828
1829 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
1830             Aldy Hernandez <aldyh@redhat.com>
1831
1832         * config/rs6000/altivec.h: Define __ALTIVEC__.
1833         (bool): New.
1834         (__pixel): New.
1835         (pixel): New.
1836         (vec_cfux): New.
1837         (vec_vmaddfp): New.
1838         (vec_vsldoi): New.
1839         Add parentheses to all macro arguments.
1840
1841 2002-04-16  Richard Henderson  <rth@redhat.com>
1842
1843         PR c++/6320
1844         * except.c (remove_eh_handler): Insert inner regions at beginning
1845         of sibling chain.  Refactor expressions.
1846
1847 2002-04-16  Richard Henderson  <rth@redhat.com>
1848
1849         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
1850         * config/sparc/sol2-gas-bi.h: New file.
1851         * config.gcc (sparc*-solaris): Add it as needed.
1852         * configure.in (AS_SPARC64_FLAG): Remove check.
1853         * config.in, configure: Regenerate.
1854
1855         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
1856
1857 2002-04-16  Richard Henderson  <rth@redhat.com>
1858
1859         * config/mips/mips.c (override_options): Don't override N32 for
1860         a 64-bit ISA.
1861
1862         PR 6202
1863         * config/mips/mips.md (can_delay): Split out of existing define_delays.
1864         (HILO_delay): Set can_delay false.
1865
1866 2002-04-16  Dale Johannesen <dalej@apple.com>
1867
1868         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
1869         instruction addresses.
1870         (rs6000_output_function_epilogue): Likewise.
1871
1872 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
1873
1874         * c-parse.in (poplevel, compstmt_start,
1875         compstmt_primary_start): Add ending ';', in accordance
1876         with POSIX.
1877
1878 2002-04-16  Richard Henderson  <rth@redhat.com>
1879
1880         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
1881         Adjust tm_file order to get TARGET_DEFAULT set properly.
1882         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
1883         * doc/install.texi (sparc-solaris): Update.
1884
1885 2002-04-16  Dale Johannesen <dalej@apple.com>
1886
1887         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
1888         comparison operands do not match each other or if modes of
1889         conditions do not match result.
1890
1891 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
1892
1893         PR target/6305
1894         * config/s390/s390.md (mulsidi3): Set both subregs of the
1895         multiword register.
1896
1897 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
1898
1899         * config/rs6000/altivec.h (vec_addc): Type check.
1900
1901 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
1902
1903         PR middle-end/6279
1904         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
1905
1906         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
1907
1908 2002-04-15  Richard Henderson  <rth@redhat.com>
1909
1910         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
1911         call_really_used_regs too.
1912
1913 2002-04-15  Richard Henderson  <rth@redhat.com>
1914
1915         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
1916
1917 2002-04-15  David S. Miller  <davem@redhat.com>
1918
1919         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
1920         as being CLOBBERed.
1921
1922 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
1923
1924         PR c/6290
1925         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
1926         CONST_VECTOR is { 0, ... 0 }.
1927
1928 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
1929
1930         * doc/install.texi (Installing GCC: Configuration): Clarify
1931         the only supported ways to configure gcc.
1932
1933 2002-04-15  Roland McGrath  <roland@frob.com>
1934
1935         * config.gcc (alpha*-*-gnu*): New target configuration.
1936         * config/alpha/gnu.h: New file for it.
1937         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
1938
1939 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
1940
1941         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
1942         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
1943         * tree.h (expand_start_stmt_expr): Update prototype.
1944         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
1945         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
1946         on the STMT_EXPR created for the inline function.
1947
1948 2002-04-15  Richard Henderson  <rth@redhat.com>
1949
1950         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
1951         config/i386/linux-aout.h, config/i386/linux-oldld.h,
1952         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
1953         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
1954         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
1955         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
1956         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
1957         Define __gnu_linux__, not gnu_linux.
1958         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
1959
1960 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
1961
1962         Remove Chill front end.
1963         * gcc.c (default_compilers): Remove Chill entries.
1964         * ch: Remove directory.
1965         * doc/frontends.texi: Remove information about Chill.
1966         * doc/sourcebuild.texi: Likewise.
1967         * doc/standards.texi: Likewise.
1968
1969 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
1970
1971         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
1972         (LONGLONG_STANDALONE): Define.
1973
1974 2002-04-15  David S. Miller  <davem@redhat.com>
1975
1976         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
1977         Call emit_library_call with LCT_NORMAL.
1978         (sparc_initialize_trampoline): Use LCT_foo instead of
1979         magic constant in emit_library_call invocations.
1980         (sparc64_initialize_trampoline): Likewise.
1981         (sparc_profile_hook): Likewise.
1982         * config/sparc/sparc.md: Likewise.
1983
1984         * config/sparc/sparc.c (sparc_extra_constraint_check):
1985         Fix type of argument 'c'.
1986         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
1987         Likewise.
1988
1989 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
1990
1991         * diagnostic.h (output_buffer_state): Redefine.
1992         (output_format_decoder): New macro.
1993         (output_prefixing_rule): Likewise.
1994         (output_line_cutoff): Likewise.
1995         (diagnostic_format_decoder): Adjust.
1996         (diagnostic_prefixing_rule): Likewise.
1997         (diagnostic_line_cutoff): Likewise.
1998         (diagnostic_state): Likewise.
1999         (diagnostic_kind_count): Likewise.
2000         (diagnostic_buffer): Now a macro.
2001
2002         * diagnostic.c (diagnostic_buffer): Remove definition.
2003         (output_is_line_wrapping): Adjust.
2004         (set_real_maximum_length): Likewise.
2005         (output_set_maximum_length): Likewise.
2006         (init_output_buffer): Likewise.
2007         (lhd_print_error_function): Likewise.
2008         (output_do_verbatim): Likewise.
2009
2010 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
2011
2012         * cpperror.c (print_location): Don't print include chain
2013         if line == 0.
2014         (cpp_begin_message): Update to use DL_ macros.
2015         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
2016         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
2017         cpp_notice, cpp_notice_from_errno): Remove.
2018         (cpp_error, cpp_error_with_line): Update to take a diagnostic
2019         level.
2020         (cpp_errno): New.
2021         * cppexp.c (CPP_ICE): Remove.
2022         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
2023         lex, integer_overflow, _cpp_parse_expr): Update.
2024         * cppfiles.c (read_include_file, find_include_file,
2025         handle_missing_header, _cpp_read_file, remap_filename): Update.
2026         * cpphash.h (enum error_type): Remove.
2027         (_cpp_begin_message): Update.
2028         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
2029         cpp_handle_option, cpp_post_options): Update.
2030         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
2031         skip_whitespace, parse_identifier, parse_slow, parse_string,
2032         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
2033         cpp_interpret_charconst): Update.
2034         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
2035         lex_macro_node, do_undef, glue_header_name, parse_include,
2036         do_include_common, read_flag, do_line, do_linemarker, do_ident,
2037         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
2038         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
2039         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
2040         _cpp_pop_buffer, do_diagnostic): Update.
2041         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
2042         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
2043         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
2044         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
2045         cpp_notice, cpp_notice_from_errno): Remove.
2046         (cpp_error, cpp_error_with_line): Update to take a diagnostic
2047         level.
2048         (cpp_errno): New.
2049         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
2050         collect_args, enter_macro_context, save_parameter, parse_params,
2051         _cpp_create_definition, check_trad_stringification,
2052         cpp_macro_definition): Update.
2053         * cppmain.c (cpp_preprocess_file): Update.
2054         * fix-header.c (read_scan_file): Update.
2055
2056 2002-04-14  Andreas Schwab  <schwab@suse.de>
2057
2058         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
2059
2060 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
2061
2062         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
2063
2064 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
2065
2066         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
2067         not gnu_hurd.
2068
2069 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
2070
2071         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
2072
2073 2002-04-13      Joel Sherrill <joel@OARcorp.com>
2074
2075         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
2076         sparc-elf and sparc-rtems targets.
2077
2078 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
2079
2080         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
2081         defined, and __gnu_hurd__ wherever __GNU__ is defined.
2082         * arm/linux-elf.h: Likewise.
2083         * cris/aout.h: Likewise.
2084         * cris/linux.h: Likewise.
2085         * i370/linux.h: Likewise.
2086         * i386/gnu.h: Likewise.
2087         * i386/linux-aout.h: Likewise.
2088         * i386/linux-oldld.h: Likewise.
2089         * i386/linux.h: Likewise.
2090         * i386/linux64.h: Likewise.
2091         * ia64/linux.h: Likewise.
2092         * m68k/linux-aout.h: Likewise.
2093         * m68k/linux.h: Likewise.
2094         * mips/linux.h: Likewise.
2095         * pa/pa-linux.h: Likewise.
2096         * pj/linux.h: Likewise.
2097         * rs6000/sysv4.h: Likewise.
2098         * s390/linux.h: Likewise.
2099         * sh/linux.h: Likewise.
2100         * sparc/linux-aout.h: Likewise.
2101         * sparc/linux.h: Likewise.
2102         * sparc/linux64.h: Likewise.
2103         * xtensa/linux.h: Likewise.
2104
2105 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
2106
2107         * stmt.c (check_unique_operand_names): Expect operand names to
2108         be strings rather than identifiers.  Use simple_cst_equal to
2109         compare them.
2110         (resolve_operand_name_1): Make same identifier to string change here.
2111         * c-parse.in (asm_operand): Convert a named operand into a string.
2112         * cp/parse.y (asm_operand): Likewise.
2113
2114 2002-04-13  Andreas Schwab  <schwab@suse.de>
2115
2116         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
2117
2118 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
2119
2120         Revert these changes:
2121
2122         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
2123
2124         PR c++/5571
2125         * stor-layout.c (layout_decl): Reset the RTL for the decl.
2126
2127 2002-04-12  Richard Henderson  <rth@redhat.com>
2128
2129         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
2130         (sparc*-*-solaris): Clean up header files.
2131         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
2132         and plan on generating 64-bit code.
2133         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
2134         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
2135         * config/sparc/sol2-sld-64.h: Rename ...
2136         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
2137         for AS_SPARC64_FLAG not defined.
2138         * config/sparc/sol2-gld-bi.h: New.
2139         * config/sparc/sol2-sld.h: Remove.
2140         * config/sparc/sol26-sld.h: New.
2141         * config/sparc/sol2.h: Tidy comments.
2142         * doc/install.texi: Document sparc-solaris configury changes.
2143
2144 2002-04-12  Richard Henderson  <rth@redhat.com>
2145
2146         * recog.c (offsettable_address_p): Match the logic in adjust_address.
2147
2148         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
2149         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
2150
2151 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2152
2153         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
2154
2155 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
2156
2157         * pa.c (pa_can_combine_p): Call extract_insn before calling
2158         constrain_operands.
2159
2160 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
2161
2162         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
2163         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
2164         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
2165         (CPP_PREDEFINES): Handle __declspec.
2166         * config/i386/t-interix (USER_H): Remove.
2167
2168 2002-04-12  DJ Delorie  <dj@redhat.com>
2169
2170         * integrate.c (compare_blocks): Make comparisons safe for when
2171         sizeof(int) < sizeof(char *).
2172         (find_block): Likewise.
2173
2174 2002-04-12  Jan Hubicka  <jh@suse.cz>
2175             David Edelsohn  <edelsohn@gnu.org>
2176
2177         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
2178         registers.
2179         (symbol_ref_operand): New.
2180         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
2181         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
2182
2183 2002-04-12  Andreas Schwab  <schwab@suse.de>
2184
2185         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
2186         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
2187         overrides the definition in config/svr4.h.
2188
2189 2002-04-12      Eric Norum <eric.norum@usask.ca>
2190
2191         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
2192         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
2193         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
2194         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
2195         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
2196         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
2197         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
2198         definitions to config/rtems.h and make the targets more similar.
2199
2200 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2201
2202         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
2203         POINTERS_EXTEND_UNSIGNED.
2204         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
2205         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
2206
2207         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
2208         not specified.
2209
2210 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
2211
2212         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
2213         depends on TARGET_SHMEDIA, not TARGET_SH5.
2214
2215 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
2216
2217         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
2218         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
2219
2220 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
2221
2222         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
2223         no r0 clobber.
2224
2225 2002-04-12  Andreas Schwab  <schwab@suse.de>
2226
2227         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
2228
2229 2002-04-12  Richard Henderson  <rth@redhat.com>
2230
2231         PR bootstrap/4191
2232         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
2233
2234         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
2235         modes spanning multiple hard regs.
2236
2237         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
2238
2239 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2240
2241         * pa.c (pa_output_function_prologue): Don't accumulate the total
2242         number of code bytes when using TARGET_64BIT, or gas, SOM and not
2243         the portable runtime.
2244         (output_deferred_plabels): Handle 64bit plabels.
2245         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
2246         generating pic code using the GAS assembler for object formats that
2247         are not SOM (ie., ELF32 and ELF64).
2248         (output_millicode_call): Check attribute type if attribute length is 28.
2249         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
2250         dbr_sequence_length once.
2251         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
2252         dbr_sequence_length once.
2253         * pa.h (TARGET_SOM): Define if not defined.
2254         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
2255         with GAS and not SOM.
2256         (jump, call_internal_reg, call_value_internal_reg): Likewise.
2257         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
2258
2259 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2260
2261         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
2262         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
2263         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
2264         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
2265         elfos.h and dbxelf.h values are fine now.
2266         * config/i386/freebsd.h, config/alpha/freebsd.h
2267         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
2268
2269 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2270
2271         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
2272         or set Acpu or Amachine.  Reformat.
2273         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2274         define.
2275         (LINK_SPEC): Do not need to undef.
2276         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
2277         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
2278         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2279         define.
2280         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
2281         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
2282         (LINK_SPEC): Do not need to undef.
2283         (DONT_USE_BUILTIN_SETJMP): Do not define.
2284         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
2285         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
2286         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
2287         Remove trailing spaces.
2288         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
2289         __ELF__, or set Acpu or Amachine.  Reformat.
2290         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2291         define.
2292
2293 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2294
2295         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
2296         all other *-*-freebsd* targets.
2297
2298 2002-04-11  Richard Henderson  <rth@redhat.com>
2299
2300         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
2301
2302 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2303
2304         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
2305         Include {cpu}/{cpu}.h thru tm_file.
2306         (alpha*-*-linux*ecoff): Remove target.
2307         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
2308         (LINK_SPEC): Remove, is not OS independent.
2309         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
2310         (LINK_SPEC): Do not need to #undef any longer.
2311         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
2312         any longer.
2313         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
2314         __ELF__.
2315         (LINK_SPEC): Moved here from alpha/elf.h.
2316         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
2317         SUB_CPP_PREDEFINES.
2318         * config/alpha/linux-ecoff.h: Remove.
2319         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
2320         (CPP_SPEC): Define _POSIX_SOURCE as needed.
2321         (CPP_SUBTARGET_SPEC): Do not define.
2322         (LINK_SPEC): Do not need to #undef any longer.
2323         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
2324         * config/alpha/vms.h: Likewise.
2325
2326 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
2327
2328         * doc/extend.texi: Remove old claim that typedefs cannot have
2329         an alignment attribute.
2330
2331 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
2332
2333         PR optimization/6177
2334         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
2335         bitpos is 0 and bitsize CONCAT size.
2336
2337 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
2338
2339         PR c/6223
2340         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
2341
2342 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
2343
2344         * config/alpha/freebsd.h: Minor reformatting.
2345         (CPP_SPEC): Define ELF and add cpp_subtarget.
2346         (ASM_SPEC): No longer needed.
2347
2348 2002-04-11  Richard Henderson  <rth@redhat.com>
2349
2350         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
2351         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
2352         (dimode mem/zero splitter): New.
2353
2354 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
2355
2356         * config/cris/cris.c (cris_override_options): Tweak error message
2357         for PIC not implemented.
2358
2359         * config/cris/cris.h: Tweak comments related to parameter-passing.
2360
2361         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
2362
2363 2002-04-10  Richard Henderson  <rth@redhat.com>
2364
2365         * except.c (add_ehl_entry): Allow duplicates after landing pad
2366         creation.
2367
2368 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
2369
2370         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
2371
2372 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
2373
2374         * c-decl.c (c_init_decl_processing): Move generation of
2375         decls for g77_integer_type_node and friends from here ...
2376         * c-common.c (c_common_nodes_and_builtins): ... to here.
2377
2378 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
2379
2380         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
2381         is only used as frame pointer when frame_pointer_needed is true.
2382
2383 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
2384
2385         PR target/817
2386         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
2387         for the fact that the pool entry uses two words.
2388         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
2389         1k bytes.
2390         (movdf_soft_insn): Similarly.
2391         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
2392         for the fact that the pool entry uses three words.
2393
2394 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
2395
2396         * config/mips/mips.c (mips_va_arg): When using the struct version
2397         of the EABI va_list, allow arguments in the register save area to
2398         take up less room than a stack argument.
2399
2400 2002-04-10  Richard Henderson  <rth@redhat.com>
2401
2402         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
2403         if EXPAND_INITIALIZER.
2404
2405 2002-04-09  Richard Henderson  <rth@redhat.com>
2406
2407         * config/alpha/alpha.md (movdi_er_maybe_g): New.
2408         * config/alpha/alpha.c (alpha_expand_mov): Use it.
2409
2410 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
2411
2412         PR optimization/6233
2413         * rtlanal.c (pure_call_p): New function.
2414         * rtl.h (pure_call_p): Declare.
2415         * loop.c (prescan_loop): Use it to set has_nonconst_call.
2416         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
2417
2418 2002-04-09  Eric Christopher  <echristo@redhat.com>
2419
2420         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
2421         information to .comm directive.
2422
2423 2002-04-09  Richard Henderson  <rth@redhat.com>
2424
2425         PR c/5078
2426         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
2427
2428 2002-04-09  Richard Henderson  <rth@redhat.com>
2429
2430         * basic-block.h (flow_delete_block_noexpunge): Declare.
2431         (expunge_block_nocompact): Declare.
2432         * cfg.c (expunge_block_nocompact): Split out from ...
2433         (expunge_block): ... here.
2434         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
2435         (flow_delete_block_noexpunge): Split out from ...
2436         (flow_delete_block): ... here.
2437         * cfgcleanup.c (delete_unreachable_blocks): Compact while
2438         removing dead blocks.
2439         * except.c (exception_handler_labels): Remove.
2440         (exception_handler_label_map): New.
2441         (struct eh_region): Add aka member.
2442         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
2443         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
2444         (for_each_eh_label, for_each_eh_label_1): New.
2445         (init_eh): Register exception_handler_label_map.
2446         (free_eh_status): Use free_region.
2447         (find_exception_handler_labels): Use the map, not the list.
2448         (remove_exception_handler_label): Likewise.
2449         (maybe_remove_eh_handler): Likewise.
2450         (remove_eh_handler): Use the region aka bitmap.
2451         * except.h (exception_handler_labels): Remove.
2452         (for_each_eh_label): Declare.
2453         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
2454         * loop.c (invalidate_loops_containing_label): New.
2455         (find_and_verify_loops): Use it.  Use for_each_eh_label.
2456         * sched-rgn.c (is_cfg_nonregular): Use
2457         current_function_has_exception_handlers.
2458
2459 2002-04-09  Richard Henderson  <rth@redhat.com>
2460
2461         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
2462         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
2463         Do not return changed status.
2464         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
2465         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
2466         New functions that do return changed status.
2467         * sbitmap.h: Update decls.
2468         * gcse.c, lcm.c: Use _cg functions as needed.
2469
2470 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
2471
2472         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
2473         (sh64-*-elf*, sh-*-rtemself*): Likewise.
2474         * config/sh/embed_bb.c: New file.
2475         * config/sh/embed-elf.h: New file.
2476         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
2477         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
2478         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
2479         __PTRDIFF_TYPE__ .
2480         (SUBTARGET_CPP_PTR_SPEC): Don't define.
2481         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
2482         Add subtarget_asm_endian_spec.
2483         (ASM_SPEC): Use subtarget_asm_endian_spec.
2484         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
2485         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
2486         (WCHAR_UNSIGNED): Define.
2487         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
2488         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
2489         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
2490         Fix value.
2491         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
2492         (sh_adjust_cost): Likewise.
2493         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
2494         __PTRDIFF_TYPE__ .
2495         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
2496         (WCHAR_TYPE_SIZE): Likewise.
2497         (ASM_SPEC): Use subtarget_asm_endian_spec.
2498         (SH_ELF_WCHAR_TYPE): #undef/ #define.
2499         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
2500         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
2501         (MAX_WCHAR_TYPE_SIZE): Don't #define .
2502         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
2503         (USER_LABEL_PREFIX): Don't #undef /#define .
2504         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
2505         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
2506         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
2507         (ASM_SPEC): Likewise.
2508         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
2509         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
2510         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
2511         (LIB2FUNCS_EXTRA): Define.
2512         * t-sh64 (LIB2FUNCS_EXTRA): Define.
2513         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
2514         (LIB1ASMFUNCS_CACHE): Define.
2515         (LIB2FUNCS_EXTRA): Redefine empty.
2516
2517 2002-04-08  Richard Henderson  <rth@redhat.com>
2518
2519         * reorg.c (get_branch_condition): Use reversed_comparison_code.
2520
2521 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2522
2523         * config/m68hc11/larith.asm (__map_data_section): Fix condition
2524         and optimize for size.
2525         (__do_global_ctors): Fix pointer comparison.
2526         (__do_global_dtors): Likewise.
2527
2528 2002-04-09  David S. Miller  <davem@redhat.com>
2529
2530         * config/sparc/sparc.c (sparc_extra_constraint_check): New
2531         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
2532         allow reloading pseudos.
2533         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
2534         * config/sparc/sparc-protos.h: Declare it.
2535
2536         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
2537         unsigned comparison warning.
2538         (output_restore_regs): Mark leaf_function as unused.
2539
2540 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2541
2542         * expr.c (is_aligning_offset): New function.
2543         (expand_expr, case COMPONENT_EXPR): Call it.
2544
2545 2002-04-08  David S. Miller  <davem@redhat.com>
2546
2547         PR target/6082
2548         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
2549
2550         Make init_priority work on Sparc when using GNU ld.
2551         * config/sparc/linux.h, config/sparc/linux64.h,
2552         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
2553         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
2554         * config/sparc/sol2-gld.h: New file to do the same.
2555         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
2556         sparc/sol2-gld.h to tm_file.
2557
2558         PR optimization/4328
2559         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
2560         * doc/md.texi: Document it.
2561         * config/sparc/sparc.md (movdi_insn_sp64_novis,
2562         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
2563         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
2564         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
2565         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
2566
2567 2002-04-08  Andreas Jaeger  <aj@suse.de>
2568
2569         * stmt.c (expand_asm_operands): Revert last patch from Richard
2570         Henderson.
2571
2572 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2573
2574         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
2575         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
2576
2577 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2578
2579         * doc/contrib.texi (Contributors): Add David O'Brien.
2580
2581 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
2582
2583         * configure.in (auto-build.h): Use target_alias and build_alias
2584         when running configure.
2585         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
2586         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
2587         * configure: Regenerate.
2588
2589 2002-04-07  David S. Miller  <davem@redhat.com>
2590
2591         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
2592
2593 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2594
2595         PR 5933
2596         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
2597         generating 32-bit pic code.
2598
2599 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
2600
2601         * cppinit.c (cpp_create_reader): Initialize
2602         discard_comments_in_macro_exp.
2603         (COMMAND_LINE_OPTIONS): Add "-CC" option.
2604         (cpp_handle_option): Handle "-CC" option.
2605         * cpplex.c (save_comment): If saving a C++ comment in
2606         a directive, convert it to a C comment.
2607         (_cpp_lex_direct): Pass second comment start character to
2608         save_comment to indicate comment type.
2609         * cpplib.c (_cpp_handle_directive): If processing
2610         a "#define" directive and discard_comments_in_macro_exp
2611         is false,  re-enable saving of comments.
2612         (lex_macro_node): If discard_comments_in_macro_exp is false,
2613         discard any comments before the macro identifier.
2614         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
2615         member.
2616         * cppmacro.c (cpp_get_token): If expanding a macro while
2617         processing a directive, discard any comments we might encounter.
2618         (parse_params): If discard_comments_in_macro_exp is false,
2619         ignore comments in the macro parameter list.
2620         * gcc.c (cpp_unique_options): Add "-CC" option.
2621         (option_map): Map "--comments-in-macros" to "-CC".
2622         * doc/cppopts.texi: Document "-CC" option.
2623         * f/lang-specs.h: Add "-CC" option.
2624         * testsuite/gcc.dg/cpp/maccom1.c: New test.
2625         * testsuite/gcc.dg/cpp/maccom2.c: New test.
2626         * testsuite/gcc.dg/cpp/maccom3.c: New test.
2627         * testsuite/gcc.dg/cpp/maccom4.c: New test.
2628         * testsuite/gcc.dg/cpp/maccom5.c: New test.
2629         * testsuite/gcc.dg/cpp/maccom6.c: New test.
2630
2631 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2632
2633         PR middle-end/6180
2634         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
2635
2636 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
2637
2638         PR c++/5571
2639         * stor-layout.c (layout_decl): Reset the RTL for the decl.
2640
2641         PR opt/5120
2642         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
2643         RTX_UNCHANGING_P for the functions arguments when a tail call
2644         is made.
2645
2646 2002-04-06  Jason Merrill  <jason@redhat.com>
2647
2648         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
2649         (parse_options_and_default_flags): Set them appropriately.
2650         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
2651
2652 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
2653
2654         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
2655         here.
2656
2657         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
2658         semicolon.
2659
2660         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
2661         types come in by-reference.  Fix typo in comment.
2662
2663 2002-04-05  David S. Miller  <davem@redhat.com>
2664
2665         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
2666         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
2667         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
2668         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
2669
2670 2002-04-05  David S. Miller  <davem@redhat.com>
2671
2672         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
2673         are not going to emit return instructions, emit at least a nop
2674         for the sake of sane backtraces.
2675
2676 2002-04-05  Richard Henderson  <rth@redhat.com>
2677
2678         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
2679
2680 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
2681
2682         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
2683
2684 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
2685
2686         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
2687         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
2688         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
2689
2690 2002-04-05  Andreas Schwab  <schwab@suse.de>
2691
2692         * c-convert.c: Include c-common.h.
2693         * Makefile.in (c-convert.o): Updated.
2694
2695 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
2696
2697         * mklibgcc.in: Use separate libgcc.map for each multilib.
2698         * Makefile.in (distclean): Don't remove libgcc.map here.
2699
2700 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
2701
2702         * Makefile.in (s-mlib): Handle --disable-multilib by separate
2703         genmultilib invocation.
2704
2705 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
2706
2707         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
2708         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
2709         to num_gprs for symmetry.
2710         * config/mips/mips.c: Adjust accordingly.
2711
2712 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
2713
2714         * c-common.c (truthvalue_conversion): Rename, update.
2715         * c-common.h (c_common_truthvalue_conversion): New.
2716         * c-convert.c (convert): Update.
2717         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
2718         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
2719         * c-typeck.c (build_binary_op, build_unary_op,
2720         build_conditional_expr): Update.
2721         * fold-const.c (constant_boolean_node, fold): Use langhook.
2722         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
2723         * langhooks.h (struct lang_hooks): New hook.
2724         * stmt.c (expand_decl_cleanup): Use langhook.
2725         * tree.h (truthvalue_conversion): Remove.
2726 objc:
2727         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
2728
2729 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
2730
2731         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
2732         Add rules to make null object file.
2733
2734 2002-04-04  Jim Blandy  <jimb@redhat.com>
2735
2736         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
2737         macro formal parameter names.
2738
2739 2002-04-04  David S. Miller  <davem@redhat.com>
2740
2741         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
2742
2743 2002-04-04  Richard Henderson  <rth@redhat.com>
2744
2745         PR middle-end/5099
2746         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
2747         Support copies into and out of memory.  Don't accept allows_reg
2748         and allows_mem as gospel.
2749
2750 2002-04-04  Richard Henderson  <rth@redhat.com>
2751
2752         PR opt/6165
2753         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
2754         (write_dependence_p): Likewise.
2755
2756 2002-04-04  Richard Henderson  <rth@redhat.com>
2757
2758         * predict.c (estimate_bb_frequencies): Do frequency calculation
2759         with a volatile temporary.
2760
2761 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
2762
2763         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
2764
2765 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
2766
2767         PR c++/6119
2768         * final.c (final_start_function): Don't bump profile_label_no here...
2769         (final_end_function): ...but here.
2770
2771 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
2772
2773         * config/sparc/sparc.md (pic): New attribute.
2774         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
2775         into stack slots.
2776         (split after do_builtin_setjmp_setup): New.
2777
2778 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
2779
2780         PR fortran/6106
2781         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
2782         change.
2783
2784 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
2785
2786         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
2787         UNITS_PER_WORD for zero sized aggregates.
2788
2789 2002-04-03  David S. Miller  <davem@redhat.com>
2790
2791         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
2792         one-character spec for this, just use %(link_gcc_c_sequence).
2793
2794 2002-04-03  David S. Miller  <davem@redhat.com>
2795
2796         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
2797         handling.
2798
2799 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2800
2801         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
2802         (DWARF_FRAME_RETURN_COLUMN): Move.
2803         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2804         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
2805         * pa.c (except.h, predict.h): Include.
2806         (FRP): Delete.
2807         (store_reg_modify, set_reg_plus_d): Revise prototypes.
2808         (output_ascii): Add cast.
2809         (store_reg_modify): Revise to add frame notes.
2810         (set_reg_plus_d): Likewise.
2811         (compute_frame_size): Include space for eh data registers in frame if
2812         the current function calls eh_return.
2813         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
2814         function calls eh_return.  Save eh data registers if the current
2815         function calls eh_return.  Fix code to add frame notes.  Emit
2816         blockage to prevent insns with frame notes being scheduled in the
2817         delay slot of calls.
2818         (hppa_expand_epilogue): Restore eh data registers and do final stack
2819         adjustment if the current function calls eh_return.  Don't add frame
2820         notes.
2821         (output_call): Revise for change in length of call insn.  Don't do
2822         return pointer adjustment for an unconditional jump in the delay slot
2823         of a call when using frame notes.
2824         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
2825         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
2826         (ARG_POINTER_CFA_OFFSET): Define.
2827         * pa.md (return_external_pic): New pattern.
2828         (prologue): Correct formatting.  Use return_external_pic if current
2829         function calls eh_return.
2830         (call_internal_symref, call_value_internal_symref,
2831         sibcall_internal_symref, sibcall_value_internal_symref): Change default
2832         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
2833         respectively.
2834         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
2835
2836         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
2837         list of targets to check using "nop" insn.
2838         * configure: Rebuilt.
2839
2840 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
2841
2842         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
2843
2844 2002-04-03  David S. Miller  <davem@redhat.com>
2845
2846         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
2847         library sequence passed to the linker.
2848         (LINK_COMMAND_SPEC): Use it.
2849         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
2850         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
2851         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2852
2853 2002-04-03  Jason Merrill  <jason@redhat.com>
2854
2855         * except.c (struct eh_status): Remove protect_list.
2856         (begin_protect_partials, end_protect_partials): Remove.
2857         (add_partial_entry): Remove.
2858         * except.h: Remove prototypes.
2859
2860         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
2861         expand_decl_cleanup_eh.
2862
2863         PR c++/5636
2864         * tree.h (CLEANUP_EH_ONLY): New macro.
2865         * stmt.c (expand_decl_cleanup_eh): New fn.
2866         (expand_cleanups): Check CLEANUP_EH_ONLY.
2867         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
2868         Use expand_decl_cleanup_eh.
2869         (expand_stmt): Adjust.
2870         * c-common.h: Adjust prototype.
2871
2872 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
2873
2874         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
2875         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
2876         (cris_target_asm_function_epilogue): Ditto.
2877         (cris_initial_frame_pointer_offset): Ditto.
2878         (cris_simple_epilogue): Ditto.
2879         (cris_expand_builtin_va_arg): Variable-size types come in
2880         by-reference.
2881
2882 2002-04-03  David S. Miller  <davem@redhat.com>
2883
2884         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
2885         little-endian.
2886         (set_fast_math): Correct 'fsr' type.
2887
2888 2002-04-03  Richard Henderson  <rth@redhat.com>
2889
2890         PR opt/3569
2891         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
2892         * toplev.c (check_global_declarations): Use it.
2893         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
2894         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2895         (LANG_HOOKS_DECLS): Add it.
2896         * langhooks.c (lhd_warn_unused_global_decl): New.
2897         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2898         * c-objc-common.c (c_warn_unused_global_decl): New.
2899         * c-tree.h (c_warn_unused_global_decl): Declare.
2900         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2901
2902 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
2903
2904         * langhooks-def.h (lhd_set_decl_assembler_name,
2905         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
2906         (LANG_HOOKS_INITIALIZER): Update.
2907         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
2908         * langhooks.h (struct lang_hooks): New hook.
2909         * tree.c (set_decl_assembler_name): Move to langhooks.c.
2910         (lang_set_decl_assembler_name): Remove.
2911         (init_obstacks): Don't set hook.
2912         (decl_assembler_name): New function.
2913         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
2914         (decl_assembler_name): New.
2915         (lang_set_decl_assembler_name): Remove.
2916
2917 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
2918
2919         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
2920         works properly with .hidden symbols.
2921         * configure: Rebuilt.
2922         * config.in: Rebuilt.
2923         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
2924         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
2925         properly with .hidden symbols.
2926
2927 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
2928
2929         PR middle-end/6102
2930         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
2931         USE argument.
2932
2933 2002-04-03  Richard Henderson  <rth@redhat.com>
2934
2935         PR opt/4120
2936         * sched-rgn.c (sets_likely_spilled): New.
2937         (sets_likely_spilled_1): New.
2938         (add_branch_dependences): Use it.
2939
2940 2002-04-02  Richard Henderson  <rth@redhat.com>
2941
2942         PR opt/4311
2943         * loop.h (LOOP_FIRST_PASS): New.
2944         * loop.c (strength_reduce): Mind it when deciding to unroll.
2945         * toplev.c (rest_of_compilation): Set it.
2946
2947 2002-04-02  David S. Miller  <davem@redhat.com>
2948
2949         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
2950         mems_ok_for_ldd_peep when the order of the loads being examined
2951         is reversed.
2952         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
2953         existing comment to increase comprehension of this situation.
2954
2955 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
2956
2957         * config/sh/sh.md: Don't use union real_extract.
2958
2959 2002-04-02  Richard Henderson  <rth@redhat.com>
2960
2961         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
2962
2963 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
2964
2965         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
2966         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
2967         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
2968         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
2969         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
2970         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
2971         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
2972         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
2973         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
2974         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
2975         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
2976         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
2977         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
2978         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
2979         Include as many configury headers via tm_file as possible.  This
2980         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
2981         * config/openbsd-oldgas.h: New file.
2982         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
2983         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
2984         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
2985         config/i386/i386-coff.h, config/i386/i386-interix.h,
2986         config/i386/iscdbx.h, config/i386/linux-aout.h,
2987         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
2988         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
2989         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
2990         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
2991         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
2992         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
2993         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
2994         config/i386/vxi386.h: Do not directly include configury headers.
2995         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
2996         Directly include configury headers that are no longer automatically
2997         included by the above headers.
2998         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
2999         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
3000         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
3001         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
3002         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
3003         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
3004         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
3005         (TARGET_VERSION): Define.
3006         * config/i386/beos-elf.h, config/i386/freebsd.h,
3007         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
3008         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
3009         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
3010         config/i386/sco5.h, config/i386/sysv4.h
3011         (TARGET_VERSION): Do not need to protect.
3012         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
3013         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
3014         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
3015         config/i386/i386-interix.h, config/i386/linux-aout.h,
3016         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
3017         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
3018         (YES_UNDERSCORES): Do not define - not needed.
3019         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
3020         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
3021         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
3022         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
3023         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
3024         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
3025         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
3026         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
3027
3028 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
3029             Richard Henderson  <rth@redhat.com>
3030
3031         PR c/5484
3032         * function.c (assign_temp): Accept either type or decl argument.
3033         Detect variables whose size is too large to fit into an integer.
3034         * stmt.c (expand_decl): Pass the decl, not the type.
3035
3036 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
3037
3038         * protoize.c: Match include directory usage with cppdefault.c.
3039
3040 2002-04-03  Jeffrey A Law  (law@redhat.com)
3041             Hans-Peter Nilsson  <hp@bitrange.com>
3042
3043         * combine.c (simplify_comparison): Avoid narrowing a comparison
3044         with a paradoxical subreg when doing so would drop signficant bits.
3045
3046 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
3047
3048         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
3049         if POINTERS_EXTEND_UNSIGNED is defined.
3050
3051 2002-04-02  Richard Henderson  <rth@redhat.com>
3052
3053         PR opt/3967
3054         * local-alloc.c (contains_replace_regs): LO_SUM may contain
3055         replace regs.
3056
3057 2002-04-02  Richard Henderson  <rth@redhat.com>
3058
3059         * doc/standards.texi: Document required freestanding libc entry points.
3060
3061 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
3062
3063         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
3064         associated splitter.  Remove MQ constraint.
3065         (ctrdi_internal4): Correct CCmode clobber.
3066
3067 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3068
3069         * milli64.S ($$dyncall): New function.
3070         * t-linux (LIB1ASMFUNCS): Revise module list.
3071         (LIB1ASMSRC): Use pa/milli64.S.
3072
3073 2002-04-02  Richard Henderson  <rth@redhat.com>
3074
3075         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
3076         rename solaris_sys_varargs_h.
3077
3078 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3079
3080         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
3081         the same mode as its component.
3082
3083 2002-04-02  Richard Henderson  <rth@redhat.com>
3084
3085         PR opt/190
3086         * final.c (this_is_asm_operands): Export.
3087         * output.h (this_is_asm_operands): Declare.
3088         * config/i386/i386.c (print_operand): Error odd asm operands.
3089
3090 2002-04-02  Richard Henderson  <rth@redhat.com>
3091
3092         PR opt/420
3093         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
3094
3095 2002-04-01  Richard Henderson  <rth@redhat.com>
3096
3097         PR target/1538
3098         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
3099         * fixinc/fixincl.x: Rebuild.
3100
3101 2002-04-01  Richard Henderson  <rth@redhat.com>
3102
3103         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
3104         (atomic_alloc, atomic_free): New.
3105         (SIZE, MASK_FOR, PTR_IN): New.
3106         (emergency_reg_state, emergency_reg_state_free): New.
3107         (emergency_labeled_state, emergency_labeled_state_free): New.
3108         (reg_state_alloced, labeled_state_alloced): New.
3109         (alloc_reg_state, free_reg_state): New.
3110         (alloc_label_state, free_label_state, free_label_states): New.
3111         (push, pop, dup_state_stack, free_state_stack): Use them.
3112         (desc_label_state): Likewise.
3113         (uw_frame_state_for): Free label states and state stack.
3114         (uw_update_reg_address): Eliminate warnings.
3115
3116 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
3117
3118         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
3119         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
3120
3121 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3122
3123         * c-decl.c (grokdeclarator): Update.
3124         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
3125         * c-tree.h (c_mark_addressable): New.
3126         * c-typeck.c (default_function_array_conversion, build_unary_op,
3127         build_array_ref, convert_for_assignment): Update.
3128         (mark_addressable): Rename.
3129         * calls.c (try_to_integrate, expand_call): Use langhook.
3130         * expr.c (expand_expr): Use langhook.
3131         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
3132         * langhooks.h (struct lang_hooks): New hook.
3133         * stmt.c (expand_asm_operands): Use langhook.
3134         * tree.h (mark_addressable): Remove.
3135 objc:
3136         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
3137
3138 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
3139
3140         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
3141         in previous change.
3142
3143 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
3144
3145         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
3146         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
3147
3148 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3149
3150         * c-common.c (unsigned_conversion_warning, convert_and_check,
3151         unsigned_type, signed_type, shorten_compare,
3152         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
3153         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
3154         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
3155         New.
3156         * c-decl.c (grokdeclarator): Update.
3157         * c-format.c (check_format_types): Update.
3158         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
3159         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
3160         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
3161         * convert.c (convert_to_integer): Use new hooks.
3162         * expmed.c (make_tree): Use new hooks.
3163         * expr.c (store_expr): Use new hooks.
3164         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
3165         all_ones_mask_p, unextend, fold): Use new hooks.
3166         * langhooks.h (struct lang_hooks_for_types): New hooks.
3167         * tree.h (signed_or_unsigned_type, signed_type,
3168         unsigned_type): Remove.
3169 objc:
3170         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
3171         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
3172
3173 2002-03-31  Richard Henderson  <rth@redhat.com>
3174
3175         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
3176         (desc_frgr_mem): Fix reference to f16-f31.
3177
3178 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3179
3180         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
3181         RTVEC_ELT): Const-ify.
3182         * varray.h (VARRAY_CHECK): Const-ify.
3183         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
3184         ggc_mark_rtvec, ggc_mark): Const-ify.
3185
3186 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3187
3188         * diagnostic.c: Include langhooks-def.h.
3189         * Makefile.in (diagnostic.o): Update.
3190
3191 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
3192
3193         * c-common.c (c_unsafe_for_reeval): Rename.
3194         * c-common.h (c_unsafe_for_reeval): Rename.
3195         * c-decl.c (finish_incomplete_decl): Rename.
3196         (c_init_decl_processing): Don't set langhook.
3197         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
3198         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3199         * c-objc-common.c (c_objc_common_init): Don't set langhook.
3200         * c-tree.h (finish_incomplete_decl): Rename.
3201         * langhooks-def.h (lhd_unsafe_for_reeval): New.
3202         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
3203         (LANG_HOOKS_INITIALIZER): Update.
3204         * langhooks.c (lhd_unsafe_For_reeval): New.
3205         * langhooks.h (struct langhooks): New hooks.
3206         * toplev.c (incomplete_decl_finalize_hook): Remove.
3207         (wrapup_global_declarations): Update.
3208         * tree.c (lang_unsafe_for_reeval): Remove.
3209         (unsafe_for_reeval): Update.
3210         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
3211         Remove.
3212 objc:
3213         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
3214         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3215
3216 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
3217
3218         * diagnostic.c (print_error_function): Remove.
3219         (default_print_error_function): Rename.
3220         (report_error_function): Update.
3221         * diagnostic.h (print_error_function): Remove.
3222         (default_print_error_function): Remove.
3223         * langhooks-def.h (struct diagnostic_context): Predeclare.
3224         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
3225         (LANG_HOOKS_INITIALIZER): Update.
3226         * langhooks.h (struct diagnostic context): Predeclare.
3227         (struct lang_hooks): New hook.
3228
3229 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3230
3231         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
3232         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
3233         !flag_pic.
3234         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
3235         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
3236         of PIC_OFFSET_TABLE_REGNUM thruout.
3237         * config/rs6000/rs6000.md: Likewise.
3238         * config/rs6000/darwin.h: Likewise.
3239
3240 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3241
3242         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
3243         unsigned HOST_WIDE_INT, not unsigned int.
3244
3245 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
3246
3247         PR middle-end/6096, middle-end/6098, middle-end/6099
3248         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
3249         CODE_LABELs.
3250         (fill_slots_from_thread): Likewise.
3251
3252 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
3253
3254         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
3255         floating fields in float regs.
3256         (function_arg_record_value_2): Likewise.
3257
3258 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
3259
3260         * config/mmix/mmix.md (define_constants): Remove misleading
3261         FIXME.  Add MMIX_fp_rO_OFFSET.
3262         ("nonlocal_goto_receiver"): Don't have stack-frame address of
3263         saved rO as part of the pattern.  Remove FIXME.
3264         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
3265         here, at output-time.
3266
3267 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
3268
3269         PR middle-end/6100
3270         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
3271         REG_BR_PRED.
3272         (output_v9branch): Likewise.
3273
3274 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
3275
3276         * gcc.c: Revert previous patch for now.
3277         * config/i386/djgpp.h: Likewise.
3278
3279 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
3280
3281         * config/mmix/crti.asm (_init): Register _fini with atexit.
3282         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
3283
3284 2002-03-31  Richard Henderson  <rth@redhat.com>
3285
3286         PR target/3997
3287         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
3288         (ASM_OUTPUT_DEF_FROM_DECLS): New.
3289
3290 2002-03-31  Richard Henderson  <rth@redhat.com>
3291
3292         * libgcc2.c (__bb_exit_func): Make static.
3293
3294         * config/alpha/alpha.md (trap): New.
3295
3296 2002-03-31  Richard Henderson  <rth@redhat.com>
3297
3298         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
3299         promoted argument types; build trap.
3300         (expand_builtin_trap): New.
3301         (expand_builtin): Use it.
3302         * stmt.c (expand_nl_goto_receivers): Likewise.
3303         * expr.h (expand_builtin_trap): Declare.
3304         * libfuncs.h (LTI_abort, abort_libfunc): New.
3305         * optabs.c (init_optabs): Init abort_libfunc.
3306
3307 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
3308
3309         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
3310         (LINK_COMMAND_SPEC): ... from here.
3311         (init_gcc_specs): Duplicate it here too, omitting
3312         shared_name in the second copy.
3313         (init_spec): Test for duplicate
3314         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
3315
3316 2002-03-30  David S. Miller  <davem@redhat.com>
3317
3318         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3319         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
3320
3321 2002-03-30  Roger Sayle <roger@eyesopen.com>
3322             Richard Henderson  <rth@redhat.com>
3323
3324         * regmove.c (combine_stack_adjustments_for_block): Avoid
3325         emitting a stack adjustment of zero bytes.  Let delete_insn
3326         update bb->head.
3327
3328 2002-03-30  Richard Henderson  <rth@redhat.com>
3329
3330         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
3331         (sparc_emitting_epilogue): New.
3332         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
3333         * config/sparc/sparc-protos.h: Update.
3334         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
3335         (TARGET_SWITCHES): Update.
3336         * config/sparc/sparc.md (return): Remove.
3337         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
3338         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
3339         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
3340         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
3341         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
3342         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
3343         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
3344         Remove MASK_EPILOGUE.
3345         * doc/invoke.texi: Update.
3346
3347 2002-03-30  Daniel Berlin  <dan@dberlin.org>
3348
3349         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
3350         CPP will start the file for us.
3351
3352 2002-03-30  Richard Henderson  <rth@redhat.com>
3353
3354         PR target/5446
3355         * config/ia64/ia64.c (group_barrier_needed_p): Special case
3356         prologue_allocate_stack.
3357         (ia64_single_set): Use insn codes for recognition of special
3358         cases, not rtl matching.
3359         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
3360
3361 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
3362
3363         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
3364
3365 2002-03-30  Richard Henderson  <rth@redhat.com>
3366
3367         PR target/6032
3368         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
3369         or -fomit-frame-pointer with profiling.
3370         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3371         (FUNCTION_PROFILER): Do nothing.
3372         (PROFILE_HOOK): New.
3373         * config/sparc/sparc.c (sparc_override_options): Don't check
3374         code models for profiling.
3375         (sparc_function_profiler): Remove.
3376         (sparc_profile_hook): New.
3377         * config/sparc/sparc-protos.h: Update.
3378
3379 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
3380
3381         PR optimization/6086
3382         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
3383         of SUBREG of volatile MEM or because the MEM was mode dependent,
3384         return CLOBBER instead of unmodified SUBREG.
3385
3386 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
3387
3388         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
3389         when not optimizing.
3390
3391         * toplev.c (rest_of_compilation): Cann mark_constant_function
3392         only when optimizing.
3393
3394         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
3395         are NULL.
3396
3397         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
3398         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
3399         (try_optimize_cfg): clear all AUX fields.
3400
3401         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
3402         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
3403         (ix86_address_cost): Be prepared for SUBREGed registers.
3404         (legitimate_address_p): Accept SUBREGed registers.
3405
3406 2002-03-29  Richard Henderson  <rth@redhat.com>
3407
3408         PR target/5672
3409         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
3410
3411 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3412
3413         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
3414         for aggregate and TFmode types.
3415
3416 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
3417
3418         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
3419
3420 2002-03-29  Richard Henderson  <rth@redhat.com>
3421
3422         PR target/5886
3423         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
3424         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
3425
3426 2002-03-29  Richard Henderson  <rth@redhat.com>
3427
3428         PR target/6041
3429         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
3430         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
3431         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
3432         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
3433         conditional.
3434         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
3435
3436 2002-03-29  Dale Johannesen <dalej@apple.com>
3437
3438         * loop.c (combine_movables): Do allow combination of pseudos.
3439
3440 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
3441
3442         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
3443         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
3444         No functional change except ...
3445         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
3446         * doc/install.texi (*-*-freebsd*): Document port configuration.
3447
3448 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3449
3450         * Makefile.in (convert.o, calls.o, expmed.o): Update.
3451         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
3452         Use new hooks.
3453         * builtin-types.def (BT_PTRMODE): Update.
3454         * c-common.c (type_for_size): Rename c_common_type_for_size.
3455         (type_for_mode): Similarly.
3456         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
3457         Use new hook.
3458         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
3459         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
3460         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
3461         Redefine.
3462         * c-typeck.c (common_type, comptypes, default_conversion):
3463         Use new hooks.
3464         * calls.c: Include langhooks.h.
3465         (emit_library_call_value_1): Use new hooks.  Avoid redundant
3466         calls.
3467         * convert.c: Include langhooks.h
3468         (convert_to_pointer, convert_to_integer): Use new hooks.
3469         * except.c (init_eh): Similarly.
3470         * expmed.c: Include langhooks.h.
3471         (expand_mult_add): Use new hooks.
3472         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
3473         try_casesi): Similarly.
3474         * fold-const.c (optimize_bit_field_compare, make_range,
3475         decode_field_reference, fold_truthop, fold): Similarly.
3476         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
3477         put_var_into_stack): Similarly.
3478         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
3479         LANG_HOOKS_TYPE_FOR_SIZE): New.
3480         (LANG_HOOKS_TYPES_INITIALIZER): Update.
3481         * langhooks.h (lang_hooks_for_types): New hooks.
3482         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
3483         * tree.c (get_unwidened, get_narrower): Similarly.
3484         * tree.h (type_for_mode, type_for_size): Remove.
3485         * varasm.c (force_const_mem): Use new hooks.
3486         * utils2.c (nonbinary_modular_operation): Update.
3487 objc:
3488         * objc-act.c (handle_impent): Update.
3489         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
3490         Redefine.
3491
3492 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
3493
3494         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
3495         * config/ia64/ia64.c (basereg_operand): New.
3496         * config/ia64/ia64-protos.h (basereg_operand): Declare.
3497         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
3498
3499 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
3500
3501         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
3502         unwind information when frame_pointer_needed.
3503         (mmix_assemble_integer): Tweak wording in comment.
3504
3505 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3506
3507         * Makefile.in (except.o): Update.
3508         * except.c: Include langhooks.h.
3509         (init_eh): Use langhook.
3510         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
3511         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
3512         (LANG_HOOKS_INITIALIZER): Update.
3513         * langhooks.h (lang_hooks_for_types): New.
3514         (struct lang_hooks): Add it.
3515         * tree.c (make_lang_type_fn, make_lang_type): Remove.
3516         * tree.h (make_lang_type_fn, make_lang_type): Remove.
3517 config:
3518         * alpha/alpha.c: Include langhooks.h.
3519         (alpha_build_va_list): Use langhook.
3520         * d30v/d30v.c: Include langhooks.h.
3521         (d30v_build_va_list): Use langhook.
3522         * i386/i386.c: Include langhooks.h.
3523         (ix86_build_va_list): Use langhook.
3524         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
3525         * s390/s390.c: Include langhooks.h.
3526         (s390_build_va_list): Use langhook.
3527         * stormy16/stormy16.c: Include langhooks.h.
3528         (stormy16_build_va_list): Use langhook.
3529
3530 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
3531
3532         PR c++/5964
3533         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
3534         attributes.
3535         (length): Compute variable length for branches/calls/jumps here.
3536         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
3537         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
3538         define branch_type attribute.
3539         (divsi3_sp32): Maximum length is 6 not 7.
3540         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
3541         call_address_untyped_struct_value_sp32,
3542         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
3543         * config/sparc/sparc.c (empty_delay_slot): New function.
3544         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
3545         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
3546
3547 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
3548
3549         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
3550         nonzero_bits if not needed.
3551         (nonzero_bits) [XOR]: Likewise.
3552         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
3553         reg_last_set_mode and mode are both MODE_INT, but not equal.
3554         (record_value_for_reg): Compute reg_last_set_nonzero_bits
3555         in nonzero_bits_mode for MODE_INT modes.
3556
3557 2002-03-28  Richard Henderson  <rth@redhat.com>
3558
3559         PR target/5715
3560         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
3561         to GAS.  Correct drift between alternatives.
3562
3563 2002-03-28  Richard Henderson  <rth@redhat.com>
3564
3565         PR target/6087
3566         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
3567
3568 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
3569
3570         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
3571         emulation to the linker.
3572
3573 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
3574
3575         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
3576         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
3577
3578 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
3579
3580         * combine.c (simplify_and_const_int): Make sure to apply mask
3581         when force_to_mode returns a constant integer.  PR3311.
3582
3583 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3584
3585         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
3586
3587 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3588
3589         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
3590         and Objective-C Dialect Options.
3591
3592 2002-03-28  Richard Henderson  <rth@redhat.com>
3593
3594         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
3595         comparison should be done vs !=0 not >0 return code.  Tidy cases.
3596
3597 2002-03-28  Richard Henderson  <rth@redhat.com>
3598
3599         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
3600         on to c_expand_body.
3601         * c-tree.h (finish_function): Update decl.
3602         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
3603
3604 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
3605
3606         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
3607
3608 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
3609
3610         * rtlanal.c: Include flags.h
3611         (may_trap_p): Do not mark FP operations if trapping
3612         if !flag_trapping_math
3613         * Makefile.in (rtlanal.o): Add dependency on flag.h
3614         * ifcvt.c (noce_operand_ok): Avoid the lameness.
3615
3616 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
3617
3618         * mips.md: Use dconst1, not 1.0, as first argument of
3619         REAL_VALUE_LDEXP.  Don't use union real_extract.
3620
3621 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
3622
3623         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
3624         rather than $target.  Heed program_prefix and
3625         program_transform_name.  Search for gas in cross-compiler case too.
3626         "test -x" rather than "test -f".
3627         (gcc_cv_ld): Likewise.
3628         (gcc_cv_nm): Heed program_prefix and program_transform_name.
3629         (gcc_cv_objdump): Likewise.
3630         * configure: Regenerate.
3631
3632 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3633
3634         * Makefile.in (attribs.o): Update.
3635         * attribs.c: Include langhooks.h.
3636         (decl_attributes): Use langhook.
3637         * c-decl.c (insert_default_attributes): Rename.
3638         * c-tree.h (c_insert_default_attributes): New.
3639         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
3640         (LANG_HOOKS_INITIALIZER): Update.
3641         * langhooks.h (struct lang_hooks): New hook.
3642         * tree.h (insert_default_attributes): Remove.
3643 objc:
3644         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
3645
3646 2002-03-27  Andreas Schwab  <schwab@suse.de>
3647
3648         * config/i386/i386.c (classify_argument): Also check for
3649         QUAL_UNION_TYPE.
3650
3651 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3652
3653         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
3654         any more.
3655
3656 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
3657
3658         * i960.md (ret): Set PC.
3659         (nonlocal_goto): Fix expander.
3660         * builtins.c (epxand_builin_longjmp): Check that we've emitted
3661         some jump or call.
3662
3663 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
3664
3665         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
3666         of libcall regions.
3667
3668 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3669
3670         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
3671         assigning to BLOCK_FOR_INSN directly.
3672
3673 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
3674
3675         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
3676
3677 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3678
3679         * c-common.c (c_expand_expr): Fix prototype.
3680         * c-common.h (c_expand_expr): Always declare, update.
3681         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
3682         * c-objc-common.c (c_objc_common_init): No global hook.
3683         * expr.c (expand_expr): Use langhook.
3684         * expr.h (enum expand_modifier): Conditionally declare.
3685         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
3686         (LANG_HOOKS_INITIALIZER): Update.
3687         * langhooks.c (lhd_expand_expr): New.
3688         * langhooks.h (struct lang_hooks): New hook.
3689         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
3690         (lang_independent_init): Don't default hook.
3691 objc:
3692         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
3693
3694 2002-03-27  Richard Henderson  <rth@redhat.com>
3695
3696         PR target/6054
3697         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
3698         TARGET_CONST_GP.  Simplify conditions.
3699
3700 2002-03-27  Richard Henderson  <rth@redhat.com>
3701
3702         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
3703         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
3704         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
3705
3706 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
3707
3708         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
3709         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
3710         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
3711         Remove unnecessary masks.
3712         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
3713         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
3714         -mwindows, -mdll switches and their negations.
3715
3716 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3717
3718         * gcc-common.c (lang_mark_false_label_stack): Remove.
3719         * ggc.h (lang_mark_false_label_stack): Similarly.
3720
3721 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
3722
3723         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
3724
3725         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
3726         or __rtems_ is defined.
3727
3728 2002-03-26  Richard Henderson  <rth@redhat.com>
3729
3730         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
3731         if a non-trivial load was emitted.
3732         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
3733         in high+extra+low case.
3734
3735 2002-03-26  Richard Henderson  <rth@redhat.com>
3736
3737         * config.gcc (sparc*-solaris): Use float_format=sparc.
3738
3739 2002-03-26  Richard Henderson  <rth@redhat.com>
3740
3741         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
3742         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
3743         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
3744         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
3745         (WINT_TYPE_SIZE): Fix at 32.
3746
3747 2002-03-26  Richard Henderson  <rth@redhat.com>
3748
3749         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
3750         until after eh landing pad generation.
3751         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
3752         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
3753
3754 2002-03-26  Richard Henderson  <rth@redhat.com>
3755
3756         * expr.h (ADD_PARM_SIZE): One more convert for INC.
3757
3758 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
3759
3760         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
3761         and warning switches.
3762         (cc1_options):  Likewise.
3763
3764 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
3765
3766         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
3767         Restore more of the signal context.  Set no_reg_stack_frame.
3768         * config/ia64/unwind-ia64.c (unw_state_record):
3769         Add no_reg_stack_frame, comments.
3770         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
3771         (uw_update_context): Adjust bsp when unwinding from leaf,
3772         but not signal frame.
3773
3774 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
3775
3776         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
3777
3778 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
3779
3780         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
3781
3782 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
3783
3784         PR target/5621
3785         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
3786         "Add a pool_range attribute", which was lost during the ARM/Thumb
3787         merge.
3788
3789 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
3790
3791         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
3792         a register into the MAC16 accumulator.
3793
3794 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
3795
3796         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
3797         (Warning Options): Document -Wswitch-enum.
3798         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
3799         -Wswitch.
3800         (warn_switch_enum): Define variables.
3801         * flags.h (warn_switch_enum): Declare variables.
3802         * stmt.c (expand_end_case_type): When warn_switch_enum /
3803         -Wswitch-enum, perform switch checks.
3804         Fix PR c/5044.
3805
3806 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
3807
3808         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
3809         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
3810         (reload_muladdsi_compare0_scratch): Delete.
3811
3812 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
3813
3814         * doc/install.texi (*-*-freebsd*): Update.
3815
3816 2002-03-26  Richard Henderson  <rth@redhat.com>
3817
3818         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
3819         (SUB_PARM_SIZE): Cast DEC to ssizetype.
3820
3821         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
3822         types from the normal argument frame.
3823
3824         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
3825         variable sized objects by reference.
3826         (sparc_va_arg): Receive them by reference too.
3827
3828 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
3829
3830         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
3831         code to not restoring global registers.
3832
3833 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
3834
3835         * Makefile.in (ggc-common.o): Update.
3836         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
3837         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
3838         * c-tree.h (c_mark_tree): New.
3839         * ggc-common.c: Include langhooks.h.
3840         (gcc_mark_trees): Use new langhook.
3841         * ggc-callbacks.c: Delete file.
3842         * ggc.h (lang_mark_tree): Remove.
3843         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
3844         (LANG_HOOKS_INITIALIZER): Update.
3845         * langhooks.h (struct lang_hooks): New hook.
3846 objc:
3847         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
3848
3849 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
3850
3851         * doc/cpp.texi: Exclude entire Top node from printed manual.
3852         Move option index after directive index.  Insert page breaks
3853         before GFDL and concept index.  Index environment variables
3854         with command line options.
3855         * doc/cppenv.texi: Use @vtable for environment variable list.
3856         Add paragraph explaining semantics of empty elements in path
3857         variables.  Exclude a cross-reference to Fishkill from the
3858         manpage.  Remove an unnecessary cross-reference of the entry
3859         right above the referer.  Don't use @anchor in text that goes
3860         into manpage.
3861         * doc/cppopts.texi: Cross-reference the environment variables
3862         section, not the specific environment variable, for consistency.
3863
3864 2002-03-25  Richard Henderson  <rth@redhat.com>
3865
3866         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
3867         anywhere in the block.  Don't refer to insns that have been
3868         removed from the chain.  Iterate backward through the new insns.
3869         Don't refer to edges that have been removed.
3870
3871 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
3872
3873         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
3874         test for overflow of constant.
3875
3876 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
3877
3878         PR target/2623
3879         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
3880         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
3881         these patterns on arm_archv4.
3882
3883 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
3884
3885         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
3886         int".
3887
3888 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
3889
3890         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
3891         float_handled, float_handler, float_signal, set_float_handler,
3892         and do_float_handler.  Set handler for SIGFPE to crash_signal.
3893         * toplev.h: Don't prototype do_float_handler.
3894
3895         * c-lex.c: Fold parse_float into lex_number.  Make warning
3896         about portability of hex float constants more informative, and
3897         don't issue it on top of a syntax error.
3898         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
3899         their callers.
3900         * real.h: Define REAL_VALUE_ABS here...
3901         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
3902         simplify_unary_real, simplify_binary_real, and
3903         simplify_binary_is2orm1 into their callers.
3904         * tree.c: Fold build_real_from_int_cst_1 into caller.
3905
3906         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
3907
3908         * tsystem.h: Include float.h here...
3909         * libgcc2.c: ... not here.
3910
3911 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
3912
3913         Fixes for: PR bootstrap/3591, target/5676
3914         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
3915         defined.  Do not disable exceptions or rtti.
3916         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
3917         mcore.h.  Disable exceptions and rtti, since they are not
3918         supported by EPOC.
3919
3920 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
3921
3922         * c-decl.c (maybe_build_cleanup): Remove.
3923         * expr.c (expand_expr): Use langhook.
3924         * langhooks-def.h (lhd_return_null_tree,
3925         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
3926         (LANGHOOKS_INITIALIZER): Update.
3927         * langhooks.c (lhd_return_null_tree): New.
3928         * langhooks.h (struct lang_hooks): New hook.
3929         * tree-inline.c (initialize_inlined_parameters): Use langhook.
3930         * tree.h (maybe_build_cleanup): Remove.
3931
3932 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
3933
3934         * regrename.c (build_def_use): Move recog_memoized
3935         before extract_insn.
3936
3937 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
3938
3939         PR target/6043
3940         * expr.c (emit_group_store): Handle storing into CONCAT.
3941
3942 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
3943
3944         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
3945         corresponding MATCH_DUP.
3946
3947 2002-03-24  Richard Henderson  <rth@redhat.com>
3948
3949         * unroll.c (unroll_loop): Zero label_map.
3950
3951         * gcse.c: Include except.h.
3952         * Makefile.in (gcse.o): Update.
3953
3954 2002-03-24  Richard Henderson  <rth@redhat.com>
3955
3956         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
3957         Do resolve_unique_section before shared data clause.
3958
3959 2002-03-24  Richard Henderson  <rth@redhat.com>
3960
3961         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
3962
3963 2002-03-24  Richard Henderson  <rth@redhat.com>
3964
3965         * recog.c (peephole2_optimize): Split blocks when EH insns are
3966         generated in the middle of a block.  Do global life update if
3967         zapped EH edges.
3968
3969 2002-03-24  Richard Henderson  <rth@redhat.com>
3970
3971         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
3972
3973 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
3974
3975         preprocessor/3951
3976         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
3977         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
3978         (init_dependency_output): Don't make no_output decision here.
3979
3980 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
3981
3982         * stmt.c (check_for_full_enumeration_handling): Remove tests of
3983         warn_switch.  Update description.
3984         (expand_end_case_type): Call check_for_full_enumeration_handling
3985         when warn_switch.
3986
3987 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3988
3989         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
3990         (m68hc11_split_move): Call it to see if the source and destination
3991         operands use the same direction auto inc/dec mode, otherwise make the
3992         source an offsetable memory operand and generate an add.
3993
3994 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3995
3996         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
3997         register for operand 2.
3998         ("*subsi3_zero_extendqi"): Likewise.
3999         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
4000         bits so that it is compatible with a pop.
4001         ("*andhi3_gen"): Likewise.
4002         ("xorhi3"): Likewise.
4003
4004 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4005
4006         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
4007         -pedantic here...
4008         (cpp_post_options): ... not here.
4009
4010 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4011             Aldy Hernandez  <aldyh@redhat.com>
4012
4013         Removal of separate preprocessor cpp0.
4014
4015         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
4016         cpp0, install-common): Update.
4017         * c-common.c (flag_preprocess_only): New.
4018         (c_common_init): Preprocess for -E.
4019         * c-common.h (flag_preprocess_only): New.
4020         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
4021         * c-objc-common.c (c_init_decl_processing): Exit quickly
4022         for NULL return from c_common_init.
4023         * cpplib.h (cpp_preprocess_file): New.
4024         * cppmain.c (main, general_init, pfile, progname): Remove.
4025         (do_preprocessing): Rename cpp_preprocess_file, don't call
4026         cpp_finish.  Don't close stdout here.
4027         (setup_callbacks): Update prototype.
4028         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
4029         Update.
4030         * tradcpp.c (main): Ignore -quiet.
4031 objc:
4032         * lang-specs.h (default_compilers): Preprocess with cc1obj.
4033
4034 2002-03-24  Richard Henderson  <rth@redhat.com>
4035
4036         PR optimization/5742
4037         * machmode.def: Add inner mode field to complex modes.
4038         * config/mips/mips.c (mips_function_value): Always define.  Add
4039         new argument to handle libcalls.
4040         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
4041         (FUNCTION_VALUE): Likewise.
4042         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
4043         * config/mips/mips-protos.h: Update.
4044
4045 2002-03-23  Richard Henderson  <rth@redhat.com>
4046
4047         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
4048         * config/sparc/sparc-protos.h: Update.
4049         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
4050
4051 2002-03-23  Richard Henderson  <rth@redhat.com>
4052
4053         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
4054         _start or _init begins the text segment.
4055
4056 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
4057
4058         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
4059         not HOST_WIDEST_INT.
4060         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
4061
4062 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
4063
4064         PR java/5489
4065         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
4066         operand argument to output_return_instruction.
4067         * arm.c (arm_print_operand, case 'd'): If the operand is
4068         const_true_rtx then just return.
4069         (arm_print_operand, case 'D'): If the operand is const_true_rtx
4070         then abort.
4071
4072 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
4073
4074         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
4075         (Warning Options): Document -Wswitch-default.
4076         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
4077         -Wswitch.
4078         (warn_switch_default): Define variable.
4079         (warn_switch): Update comment.
4080         * flags.h (warn_switch_default): Declare variable.
4081         (warn_switch): Update comment.
4082         * stmt.c (expand_end_case): Check for and, when
4083         warn_switch_no_default, warn of a missing default case.
4084
4085 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
4086
4087         * real.h (N): Special case 128 bit doubles.
4088
4089         * combine.c (simplify_comparison): When widening modes, ignore
4090         sign extension on CONST_INTs.
4091
4092 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
4093
4094         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
4095         passed to adjust_address.  Fix comment formatting.
4096
4097
4098 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
4099
4100         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
4101         Always make REAL_VALUE_TYPE a struct containing an array of
4102         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
4103         big it is.  Don't declare or use union real_extract.
4104
4105         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
4106         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
4107         (print_operand), config/arm/arm.c (output_move_double),
4108         config/arm/arm.md (consttable_4, consttable_8),
4109         config/romp/romp.c (output_fpops), config/s390/s390.h
4110         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
4111         (xtensa_output_literal): Don't use union real_extract.
4112
4113         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
4114         (sfmode_constant_to_ulong), config/ns32k/merlin.h
4115         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
4116         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
4117         (PRINT_OPERAND): Don't use local version of union
4118         real_extract.
4119
4120         * config/convex/convex.c (check_float_value), config/vax/vax.c
4121         (vax_float_literal), config/m88k/m88k.md (divdf3),
4122         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
4123         config/pdp11/pdp11.c (output_move_quad): Don't do host
4124         arithmetic on target floating point quantities.
4125
4126         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
4127         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
4128
4129         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
4130         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
4131
4132         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
4133         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
4134         INFINITY.
4135         * print-rtl.c (print_rtx): Disable code which needs
4136         floating-point emulator.
4137         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
4138         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
4139         depending on HOST_FLOAT_FORMAT to be defined properly.
4140
4141         * config/1750a/1750a.c (get_double, float_label): Delete.
4142         (print_operand): Delete huge commented-out chunk.  Use
4143         REAL_VALUE_TO_DECIMAL.
4144         * config/1750a/1750a-protos.h: Delete prototypes of deleted
4145         functions.
4146         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
4147         IEEE_FLOAT_FORMAT.
4148         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
4149         Use REAL_VALUE_TO_DECIMAL as ELF version does.
4150         * config/m88k/m88k.c (real_power_of_2_operand,
4151         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
4152         real_extract out of the union; run the input through
4153         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
4154         from that into the union.
4155         * config/pdp11/pdp11.c (output_move_double): Rearrange
4156         parentheses to make automatic indenter happy.
4157
4158         * doc/tm.texi (Cross-compilation): Rename node to "Floating
4159         Point" and rewrite to describe current situation.  Also adjust
4160         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
4161         match code.
4162         * doc/rtl.texi: Adjust cross reference.
4163
4164 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
4165
4166         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
4167         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
4168         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
4169         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
4170         prevent use of sp as a reload register.
4171         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
4172         non_acc_reg_operand.
4173         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
4174         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
4175         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
4176         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
4177
4178 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
4179
4180         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
4181         * cpplex.c (unterminated): Delete.
4182         (parse_string): No string literal may extend over multiple
4183         lines.  Suppress the error when preprocessing assembly.
4184         * cppmain.c (scan_translation_unit): Strings are single-line.
4185
4186         * doc/cpp.texi: Update to match.
4187
4188 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
4189
4190         PR optimization/5854
4191         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
4192         Shut up warnings.
4193         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
4194         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
4195         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
4196         const0 if scratch register was not allocated.
4197         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
4198         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
4199         with GEN_INT (...).
4200         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
4201         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
4202         with GEN_INT (...) everywhere.  Remove constraints in define_split
4203         patterns.
4204         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
4205         require scratch register for setting 0 into regs/non-pushable memory.
4206
4207 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
4208
4209         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
4210         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
4211
4212 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
4213
4214         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
4215         * cppinit.c (cpp_create_reader):  On by default.
4216         (cpp_handle_option):  Handle -W[no-]endif-labels.
4217         (cpp_post_options):  Also enable if -pedantic.
4218         * cpplib.c (do_else):  Use it.
4219         (do_endif):  Likewise.
4220         * doc/cppopts.texi:  Document new option.
4221         * doc/invoke.texi:  Document new option.
4222
4223 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
4224
4225         * config/i386/i386.c, config/i386/i386.md: Change all occurences
4226         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
4227
4228 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
4229
4230         * flow.c (calculate_global_regs_live): Clear aux fields of
4231         ENTRY and EXIT.
4232
4233 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
4234
4235         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
4236         REG or MEM subregs, pass rtx * instead of rtx to it.
4237         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
4238         rtx * instead of rtx to alter_subreg.
4239         * config/m32r/m32r.c (gen_split_move_double): Likewise.
4240         * config/pj/pj.c (pj_output_rval): Likewise.
4241
4242 2002-03-22  Richard Henderson  <rth@redhat.com>
4243
4244         PR target/3177
4245         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
4246         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
4247         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
4248         (ia64_expand_prologue): Look at int_regs, not words, for number
4249         of incomming int regs.
4250
4251 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
4252
4253         * expr.c (expand_expr): A RESULT_DECL is part of a call.
4254
4255 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
4256
4257         * toplev.c (flag_loop_optimize, flag_crossjumping):
4258         New static variables.
4259         (rest_of_compilation): Conditionalize crossjumping and
4260         loop optimizer.
4261         (parse_options_and_default_flags): Default loop_optimize and
4262         crossjumping.
4263         (lang_independent_options): Add -fcrossjumping and -floop-optimize
4264         * invoke.texi (crossjumping, loop-optimize): Document.
4265
4266 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
4267
4268         * real.c (eiisneg): Move outside #ifdef NANS.
4269
4270 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
4271
4272         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
4273         frequencies match; avoid match on different loop depths.
4274         (try_crossjump_to_bb): Kill tests that no longer brings time
4275         savings.
4276         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
4277         updating code.
4278         (split_edge): Likewise.
4279
4280         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
4281         variable.
4282
4283         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
4284         * cfgrtl.c: Include insn-config.h
4285         (split_block) Dirtify block in presence of conditional execution
4286
4287 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
4288
4289         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
4290         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
4291         (function_arg): Constify CUMULATIVE_ARGS.
4292         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
4293         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
4294         (UNITS_PER_DOUBLE): New macro.
4295         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
4296         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
4297         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
4298         fp_regs and stack_words.
4299         (EABI_FLOAT_VARARGS_P): New macro.
4300         * config/mips/mips.c (struct mips_arg_info): New.
4301         (mips_arg_info): New function.
4302         (function_arg_advance): Use it.  Add adjustment instructions here
4303         rather than in function_arg.
4304         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
4305         for VOIDmode at the beginning of the function.
4306         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
4307         (function_arg_pass_by_reference): Likewise.
4308         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
4309         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
4310         (mips_va_start): Likewise.  Use the new stack_words field of
4311         CUMULATIVE_ARGS to set up overflow area.  Reformat.
4312         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
4313         doubles and other types, aligning the overflow pointer for non-doubles
4314         too.  Remove some code duplication.  Replace hard-coded constants.
4315
4316 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
4317
4318         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
4319         (CLASS_UNITS): Undefine.
4320         (CLASS_MAX_NREGS): Use FP_INC.
4321         * config/mips/mips.c (compute_frame_size): Likewise.
4322         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
4323
4324 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
4325
4326         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
4327         prototype, and handle lexing numbers and identifiers.
4328         (parse_identifier): Update to new form of parse_slow.
4329         (parse_number): Fast path only, use parse_slow otherwise.
4330         (_cpp_lex_direct): Update calls to parse_number.
4331
4332 2002-03-21  DJ Delorie  <dj@redhat.com>
4333
4334         * bb-reorder.c (make_reorder_chain_1): Protect against
4335         when redundant edges are omitted.
4336         * predict.c (dump_prediction): Likewise.
4337
4338 2002-03-21  Richard Henderson  <rth@redhat.com>
4339
4340         PR target/5996
4341         * fixinc/inclhack.def (solaris_stdio_tag): New.
4342         * fixinc/fixincl.x: Regenerate.
4343
4344 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
4345
4346         PR c/5597
4347         * c-typeck.c (process_init_element): Flag non-static
4348         initialization of a flexible array member as illegal.
4349
4350 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
4351
4352         * config/rs6000/t-linux64: New.
4353         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
4354         t-ppccomm.  Use t-rs6000 and t-linux64.
4355         (powerpc64-*-gnu* <tmake_file>): Likewise.
4356         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
4357         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
4358         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
4359
4360 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
4361
4362         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
4363         flag_really_no_inline instead of optimize == 0.
4364
4365         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
4366
4367         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
4368
4369         * flags.h (flag_really_no_inline): New.
4370
4371         * c-common.c (c_common_post_options): Initialize
4372         flag_really_no_inline.
4373
4374         * toplev.c (flag_really_no_inline): New.
4375
4376 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
4377
4378         * config/avr/avr.md (length): Fix length computation for
4379         conditional branches.
4380
4381 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
4382
4383         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
4384         sdbout.o, profile.o): Update.
4385         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
4386         langhook.
4387         * c-common.h (gettags): Move here from tree.h.
4388         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
4389         insert_block, getdecls, kept_level_p, global_bindings_p): New.
4390         * dbxout.c (dbxout_init): Use getdecls langhook.
4391         * expr.c (expand_expr): Use insert_block langhook.
4392         * fold-const.c: Include langhooks.h.
4393         (fold_range_test, fold_binary_op_with_conditional_arg,
4394         fold): Use global_bindings_p langhook.
4395         * integrate.c (expand_inline_function): Use insert_block langhook.
4396         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
4397         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
4398         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
4399         LANG_HOOKS_GETDECLS): New.
4400         (LANG_HOOKS_INITIALIZER): Update.
4401         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
4402         langhook.
4403         * langhooks.h (struct lang_hooks_for_decls): New.
4404         (struct lang_hooks): Update.
4405         * profile.c: Include langhooks.h.
4406         (output_func_start_profiler): Use new langhooks.
4407         * sdbout.c: Include langhooks.h.
4408         (sdbout_init, sdbout_finish): Use getdecls langhook.
4409         * stmt.c: Include langhooks.h.
4410         (expand_fixup, fixup_gotos): Use new langhooks.
4411         * stor-layout.c: Include langhooks.h.
4412         (variable_size): Use global_bindings_p langhook.
4413         * toplev.c (compile_file): Use getdecls langhook.
4414         * tree-inline.c (remap_block): Use insert_block langhook.
4415         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
4416         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
4417
4418 2002-03-21  Richard Henderson  <rth@redhat.com>
4419
4420         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
4421         constants in .data when -fpic.
4422
4423 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4424
4425         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
4426         where appropriate.
4427
4428 2002-03-21  Tom Tromey  <tromey@redhat.com>
4429
4430         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
4431
4432 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4433
4434         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
4435
4436         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
4437
4438 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
4439             Richard Henderson  <rth@redhat.com>
4440
4441         PR c/5354
4442         * c-common.c (c_expand_expr): Preserve result of a statement
4443         expression if needed.
4444
4445 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
4446
4447         PR bootstrap/4195
4448         * genrecog.c (maybe_both_true_mode): Remove.
4449         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
4450         * machmode.def (Pmode): Likewise.
4451
4452 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
4453
4454         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
4455         (nonlocal_mentioned_p_1): New function.
4456         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
4457         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
4458         (mark_constant_function): Recognize pure functions.
4459         * rtl.h (global_reg_mentioned_p): New prototype.
4460         * rtlanal.c (global_reg_mentioned_p,
4461         global_reg_mentioned_p_1): New function.
4462
4463 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4464
4465         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
4466         UNIX assert.h.
4467         * fixinc/fixincl.x: Regenerate.
4468
4469 2002-03-20  Jason Merrill  <jason@redhat.com>
4470
4471         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
4472
4473 2002-03-20  Michael Meissner  <meissner@redhat.com>
4474
4475         * doc/invoke.texi (Optimize Options): Document that -O2 sets
4476         -fstrict-aliasing.
4477
4478 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
4479
4480         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
4481         ".literal_position" directive before the constant pool.
4482
4483 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4484
4485         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
4486         Add Craig Rodrigues.
4487         Add Brad Lucier to testers.
4488
4489 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
4490
4491         PR target/4792
4492         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
4493         to if_then_else.
4494         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
4495         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
4496         instead of insn_extract.
4497
4498 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
4499
4500         PR bootstrap/4192
4501         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
4502
4503         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
4504         stmt if some case has been output.
4505
4506 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
4507
4508         PR c/5972
4509         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
4510         movsfcc_1, movdfcc_1): Add %O2.
4511         * config/i386/i386.c (print_operand): Handle %ON.
4512         Print . before float condition codes in Sun as cmov syntax.
4513         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
4514         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
4515         no longer true.
4516
4517 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
4518
4519         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
4520         return instruction if PC was popped.
4521
4522 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
4523
4524         * config/xtensa/xtensa.md: Remove unused type attributes.
4525         (adddi_carry, subddi_carry): Change type attribute to "multi".
4526
4527 2002-03-19  Dale Johannesen  <dalej@apple.com>
4528
4529         PR optimization/5999, middle-end/5731
4530         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
4531         multiplications by reciprocals.
4532
4533 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
4534
4535         * Makefile.in: Update.
4536         * c-common.c: Include langhooks.h.
4537         (inline_forbidden_p): Use new hook.
4538         * diagnostic.c: Include langhooks.h.
4539         (format_with_decl, announce_function,
4540         default_print_error_function): Use new hook.
4541         * dwarf2out.c (dwarf2_name): Use new hook.
4542         * function.c: Include langhooks.h.
4543         (init_function_start): Use new hook.
4544         * langhooks-def.h (lhd_decl_printable_name): New.
4545         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
4546         (LANGHOOKS_INITIALIZER): Update.
4547         * langhooks.c (lhd_decl_printable_name): New.
4548         * langhooks.h (struct lang_hooks): New hook.
4549         * toplev.c (decl_name, decl_printable_name): Remove.
4550         (open_dump_file): Use new hook.
4551         (process_options): Remove old hook.
4552         * tree.h (decl_printable_name): Remove.
4553 objc:
4554         * objc-act.c (objc_init): Remove old hook.
4555         (objc_printable_name): Export.
4556         * objc-act.h (objc_printable_name): New.
4557         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
4558
4559 2002-03-19  Jim Blandy  <jimb@redhat.com>
4560
4561         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
4562         the start_source_file debug hook, not the current line number.
4563
4564 2002-03-19  Richard Henderson  <rth@redhat.com>
4565
4566         * flow.c (EH_USES): Provide default.
4567         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
4568         * doc/tm.texi (EH_USES): New.
4569
4570         * config/ia64/ia64.c (ia64_eh_uses): New.
4571         * config/ia64/ia64-protos.h: Update.
4572         * config/ia64/ia64.h (EH_USES): New.
4573
4574 2002-03-19  Richard Henderson  <rth@redhat.com>
4575
4576         * varasm.c (output_constant_def): Fix stupid typo.
4577
4578 2002-03-19  Richard Henderson  <rth@redhat.com>
4579
4580         PR 5879
4581         * except.c (current_function_has_exception_handlers): New.
4582         * except.h: Declare it.
4583         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
4584         Combine tests that disable all sibcalls for the function.
4585
4586 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
4587
4588         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
4589         for INTEGER_CST.
4590
4591 2002-03-19  Richard Henderson  <rth@redhat.com>
4592
4593         PR 5977, 5991
4594         * config/ia64/ia64.c: Revert 2002-03-01 patch.
4595         * config/ia64/ia64.h (INIT_EXPANDERS): New.
4596
4597 2002-03-19  Jim Blandy  <jimb@redhat.com>
4598
4599         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
4600         name, even if the replacement list contains no tokens, as required
4601         by Dwarf.
4602
4603 2002-03-19  Jason Merrill  <jason@redhat.com>
4604
4605         * varasm.c (globalize_decl): Get the name from the RTL, not
4606         DECL_ASSEMBLER_NAME.
4607
4608         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
4609
4610 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
4611
4612         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
4613         subdi_carry): Define.
4614
4615 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
4616
4617         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
4618         about -fpic/-fPIC if extra_warnings set.
4619
4620 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
4621
4622         * expr.c (expand_expr): Sign-extend CONST_INT generated from
4623         TREE_STRING_POINTER.
4624         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
4625
4626 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4627
4628         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
4629         in favor of SP if FRAME_POINTER_REQUIRED is false.
4630
4631 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
4632
4633         * emit-rtl.c (gen_int_mode): New function.
4634         * rtl.h: Prototype for it.
4635         * combine.c (make_extraction, simplify_comparison), expmed.c
4636         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
4637         (convert_modes, store_field), optabs.c (expand_fix),
4638         simplify-rtx.c (neg_const_int, simplify_unary_real),
4639
4640         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
4641         Use it instead of GEN_INT (trunc_int_for_mode (...)).
4642
4643 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
4644
4645         PR c/5656
4646         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
4647         convert_parm_for_inlining.
4648         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
4649         Define.
4650         * langhooks-def.h: Likewise.
4651         * objc/objc-lang.c: Likewise.
4652         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
4653         function.
4654         * tree-inline.c (initialize_inlined_parameters):
4655         Call convert_parm_for_inlining lang hook if needed.
4656         * c-typeck.c (c_convert_parm_for_inlining): New function.
4657         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
4658
4659 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
4660
4661         * calls.c (precompute_arguments): Do not assume that temporaries
4662         can be destroyed after expanding the argument.
4663         (expand_call): Likewise.
4664
4665 2002-03-15  Eric Christopher  <echristo@redhat.com>
4666
4667         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
4668         Fix register preference on last change.
4669         * config/mips/mips.c (mips_return_in_memory): New function.
4670         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
4671         * config/mips/mips-protos.h: Declare.
4672         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
4673         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
4674
4675 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
4676
4677         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
4678         a register too.
4679         (anddi3, iorsi3): Likewise.
4680
4681         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
4682         use %gprel for symbols that are going to be placed in linkonce
4683         sections.
4684
4685         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
4686         RETURN_ADDRESS_POINTER_REGNUM to $ra.
4687         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
4688         not needed.  Disregard leaf_function_p().
4689         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
4690         mips16 frame pointer.
4691         * config/mips/mips.md (store ra): Only to small SP offsets.
4692         2001-08-22  Graham Stott  <grahams@redhat.com>
4693         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
4694         return a REG rtx for the return address register.
4695
4696 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
4697
4698         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
4699         constant-pool addresses as "mode-dependent".
4700         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
4701
4702 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
4703
4704         PR target/5740
4705         * expr.c (emit_group_load): Use extract_bit_field if
4706         needed for CONCAT arguments.
4707
4708 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
4709
4710         PR target/4863
4711         * arm.md (tablejump): Make this a define_expand.  For PIC add the
4712         offset to the base of the table.
4713         (thumb_tablejump): Matcher for Thumb tablejump insn.
4714         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
4715         as the difference of two labels.
4716         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4717         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
4718         tables in the code.
4719         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
4720         * arm.c (get_jump_table_size): If the table is not in the text
4721         section, return zero.
4722
4723 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
4724
4725         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
4726         of gen_rtx_SUBREG.
4727         (arm_reload_out_hi): Use gen_lowpart instead of
4728         gen_rtx_SUBREG to access QImode components.
4729         * config/arm/arm.md: Disable zero_extend split for QImode
4730         subregs in BIG_ENDIAN mode.
4731         (storehi_bigend): Match use of least significant byte.
4732         (storeinthi): Remove extraneous SUBREG.
4733         Add missing construction of operands[2].
4734         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
4735         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
4736         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
4737
4738 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
4739
4740         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
4741         any_operand.
4742
4743 2002-03-17  Richard Henderson  <rth@redhat.com>
4744
4745         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
4746         explicitly.
4747
4748 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
4749
4750         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
4751         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
4752
4753 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4754
4755         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
4756
4757         * predict.c (estimate_bb_frequencies): Delete unused variables.
4758
4759 2002-03-17  Richard Henderson  <rth@redhat.com>
4760
4761         * config/ia64/ia64.c (ia64_attribute_table): Move before
4762         targetm definition.  Make static.
4763
4764 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
4765
4766         * c-common.h (yyparse, c_common_parse_file): New.
4767         * c-lang.c: Include c-common.h.
4768         (LANG_HOOKS_PARSE_FILE): Redefine.
4769         * c-lex.c: Include c-common.h.
4770         (yyparse): Rename c_common_parse_file.  Call yyparse.
4771         * c-parse.in (yyparse): Remove macro.
4772         * c-tree.h (yyparse_1): Remove.
4773         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
4774         (LANG_HOOKS_INITIALIZER): Update.
4775         * langhooks.h (struct lang_hoooks): New hook parse_file.
4776         * toplev.c (compile_file): Use parse_file hook.
4777         * tree.h (yyparse): Remove.
4778         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
4779
4780 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
4781
4782         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
4783         float_truncate, not fix.
4784         ("*truncdfsf2_real"): Ditto.
4785         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
4786
4787         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
4788
4789 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
4790
4791         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
4792         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
4793         where appropriate.  Make the second reference to
4794         leaf_function_p a function call, as intended.  Reindented.
4795
4796         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
4797         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
4798
4799         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
4800         add register to non-constant into sp.
4801
4802         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
4803         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
4804         (mips16_gp_pseudo_rtx): Lose.
4805         (INIT_EXPANDERS): Deleted.
4806         * config/mips/mips.c (mips_init_machine_status): New.
4807         (mips_free_machine_status): New.
4808         (mips_mark_machine_status): New.
4809         (override_options): Set them.
4810         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
4811         (struct machine_function): ... new.  Replaced all references.
4812         (mips_add_gc_roots): Don't mark them.
4813         (embedded_pic_fnaddr_reg): New, extracted from...
4814         (embedded_pic_offset): ... here.
4815         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
4816         (movsi): Likewise.
4817
4818 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
4819
4820         * cppinit.c: Revert -MD removal.
4821
4822 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4823
4824         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
4825         soft registers by default for 68HC12.
4826         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
4827         when compiling with -fomit-frame-pointer.
4828         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
4829         (expand_epilogue): Likewise.
4830         (m68hc11_gen_rotate): Use exg when rotating by 8.
4831
4832 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4833
4834         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
4835         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
4836         (splits): Remove unused add splits.
4837         ("*addhi3_68hc12"): Tune constraints.
4838         ("addhi_sp"): Try to use X instead of Y in all cases and if the
4839         constant fits in 8-bits and D is dead use abx/aby instructions.
4840         ("*addhi3"): Remove extern declaration of ix_reg.
4841         ("*subsi3"): Optimize and provide new split.
4842         ("subhi3"): Cleanup.
4843         ("*subhi3_sp"): Avoid saving X if we know it is dead.
4844         (arith splits): For 68hc12 save the address register on the stack
4845         and do the arithmetic operation with a pop.
4846
4847 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4848
4849         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
4850         allocating QImode in address registers.
4851         ("*movqi_m68hc11"): Likewise.
4852
4853 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
4854
4855         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
4856
4857 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
4858
4859         * cppinit.c (print_help): Display -MD and -MMD.
4860         Don't display usage string.  Update assertion syntax and
4861         typo.
4862         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
4863         (cpp_handle_option): Update.
4864
4865 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
4866
4867         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
4868         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
4869         and define it so that regardless of target CPU size,
4870         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
4871         of "int" rather than "long."
4872
4873 2002-03-15  Richard Henderson  <rth@redhat.com>
4874
4875         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
4876         size as a tree.
4877
4878 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4879
4880         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
4881         ("tstqi" split): Avoid using memory for tstqi on address register.
4882         (splits): Remove constraints.
4883         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
4884         ("cmpdf", "cmpsf"): Remove since not used.
4885         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
4886         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
4887
4888 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4889
4890         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
4891         ("neghi2"): Tighten constraints.
4892         ("one_cmplsi2"): Optimize and simplify split.
4893         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
4894
4895 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4896
4897         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
4898         and split of AND operation to clear the upper bits.
4899         ("*logicalsi3_zextqi"): Likewise.
4900         ("*logicallhi3_zexthi_ashift8"): Likewise.
4901         ("*logicalsi3_silshr16"): Likewise.
4902         ("logicalsi3_silshl16"): Likewise.
4903         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
4904
4905 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4906
4907         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
4908         (m68hc11_indirect_p): New function.
4909         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
4910         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
4911         TARGET_M6812.
4912         (asm_print_register): Likewise.
4913         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
4914         (m68hc11_indirect_p): Declare.
4915         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
4916         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
4917         (TARGET_SWITCHES): New option -mrelax.
4918         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
4919         destination.
4920         ("iorsi3", "xorsi3"): Likewise.
4921         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
4922         ("*andhi3_mem"): New to handle destination in memory with bclr
4923         and a scratch register.
4924         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
4925         ("*andhi3_const"): New when operand2 is constant.
4926         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
4927         ("*andhi3_gen"): Cleanup of the old "andhi3".
4928         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
4929         ("xorqi3"): Update constraints.
4930
4931 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4932
4933         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
4934         for reg_equiv_memory_loc when the operand is a register that does
4935         not get a hard register (stack location).
4936         (tst_operand): After reload, accept all memory operand.
4937         (symbolic_memory_operand): Fix detection of symbolic references.
4938         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
4939         accept symbols and any constant.
4940
4941 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4942
4943         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
4944         note on the insn that sets the soft frame register.
4945         (must_parenthesize): ix and iy are also reserved names.
4946         (print_operand_address): One more place where parenthesis are required
4947         to avoid confusion with register names.
4948         (m68hc11_gen_movhi): Allow push of stack pointer.
4949         (m68hc11_check_z_replacement): Fix handling of parallel with a
4950         clobber.
4951         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
4952         the replacement register is.
4953         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
4954         and D8_REGS classes.
4955         (MODES_TIEABLE_P): All modes are tieable except QImode.
4956
4957 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4958
4959         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
4960         (___subdi3): Likewise.
4961         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
4962         (__map_data_section): Optimize 68hc11 case.
4963
4964 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4965
4966         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
4967         than a shift to avoid adding a register with itself.
4968         (m68hc11_memory_move_cost): Take into account NO_REGS.
4969         (m68hc11_register_move_cost): Update and use memory move cost
4970         for soft registers.
4971         (m68hc11_address_cost): Make cost of valid offset not 0 so that
4972         it gives more opportunities to cse to optimize.
4973         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
4974         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
4975
4976 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
4977
4978         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
4979         * c-common.def (CLEANUP_STMT): New tree node.
4980         * c-common.h (CLEANUP_DECL): New macro.
4981         (CLEANUP_EXPR): Likewise.
4982         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
4983         * expr.c (expand_expr): Tidy.
4984         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
4985         * tree-inline.c (initialize_inlined_parameters): Clean up
4986         new local variables.
4987
4988 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
4989
4990         PR bootstrap/4128
4991         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
4992         before movrXX only, use reg_overlap_mentioned_p.
4993         Only special case NE if just one insn can be generated.
4994
4995 2002-03-15  Jason Merrill  <jason@redhat.com>
4996
4997         * varasm.c (assemble_variable): Call resolve_unique_section before
4998         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
4999         of error_mark_node.
5000
5001 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
5002
5003         PR target/5170
5004         * arm.md (split pattern for thumb shiftable immediates): Add comment
5005         explaining non-obvious test.
5006
5007 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
5008
5009         PR target/5712
5010         * arm.md (movaddr, movaddr_insn): Delete.
5011
5012 2002-03-15  Jason Merrill  <jason@redhat.com>
5013
5014         * toplev.c (wrapup_global_declarations): Clarify variable handling.
5015         -fkeep-static-consts doesn't apply to comdats.
5016
5017 2002-03-14  Richard Henderson  <rth@redhat.com>
5018
5019         * c-decl.c: Include c-pragma.h.
5020         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
5021         (finish_function): Tidy.
5022         * c-pragma.c: Include c-common.h.
5023         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
5024         (handle_pragma_weak): Use them.
5025         (init_pragma): Register pending_weaks.
5026         * c-pragma.h (maybe_apply_pragma_weak): Declare.
5027         * print-tree.c (print_node): Print DECL_WEAK.
5028         * varasm.c (mark_weak_decls): Remove.
5029         (remove_from_pending_weak_list): Remove.
5030         (add_weak): Remove.
5031         (asm_emit_uninitialised): Call globalize_decl for weak commons.
5032         (weak_decls): Make a tree_list.
5033         (declare_weak): Cons weak_decls directly.
5034         (globalize_decl): Remove weak_decls elements directly.
5035         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
5036         symbols.  Don't pretend to handle aliases.
5037         (init_varasm_once): Update weak_decls registry.
5038         * Makefile.in: Update dependencies.
5039
5040 2002-03-14  Richard Henderson  <rth@redhat.com>
5041
5042         PR target/5312
5043         * config/ia64/ia64.c: Include tm_p.h last.
5044         (gen_nop_type): Remove duplicate definition.
5045         (cycle_end_fill_slots): Set sched_data for second L slot.
5046         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
5047         (nop_cycles_until): Fix typos.
5048
5049 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
5050
5051         PR optimization/5891
5052         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
5053
5054 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
5055
5056         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
5057           descriptors correctly.
5058
5059 2002-03-14  Michael Meissner  <meissner@redhat.com>
5060
5061         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
5062         100, allowing MAX_UNROLLED_INSNS to be overridden.
5063
5064         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
5065         --param.
5066
5067         * unroll.c (params.h): Include.
5068         (MAX_UNROLLED_INSNS): Delete, now in params.h.
5069
5070         * doc/invoke.texi (--param max-unroll-insns): Document.
5071
5072         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
5073
5074 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
5075
5076         * arm.md: Fix warnings about constraints in peepholes and splits.
5077
5078 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
5079
5080         * cpphash.h (struct lexer_state): Remove line_extension member.
5081         * cpplib.c (dequote_string, do_linemarker): New functions.
5082         (linemarker_dir): New data object.
5083         (DIRECTIVE_TABLE): No longer need to interpret #line in
5084         preprocessed source.  Delete obsolete comment about return
5085         values of handlers.
5086         (end_directive, directive_diagnostics, _cpp_handle_directive):
5087         Don't muck with line_extension.
5088         (directive_diagnostics): No need to issue warnings for
5089         linemarkers here.
5090         (_cpp_handle_directive): Issue warnings for linemarkers here,
5091         when appropriate.  Dispatch linemarkers to do_linemarker, not
5092         do_line.
5093         (do_line): Code to handle linemarkers split out to do_linemarker.
5094         Convert escape sequences in filename argument, both places.
5095
5096         * cppmacro.c (quote_string): Rename cpp_quote_string and
5097         export.  All callers changed.
5098         * cpplib.h (cpp_quote_string): Prototype.
5099         * cppmain.c (print_line): Call cpp_quote_string on to_file
5100         before printing it.
5101
5102         * doc/cpp.texi: Document that escapes are now interpreted in
5103         #line and in linemarkers, and that non-printing characters are
5104         converted to octal escapes when linemarkers are generated.
5105
5106 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
5107
5108         * emit-rtl.c (try_split): Use delete_insns.
5109         * recog.c (split_all_insns): Fix terminating condition.
5110
5111 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
5112             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
5113
5114         PR target/5828
5115         * arm.c (arm_output_epilogue): Fix floating-point register save
5116         adjustment when using a frame pointer.
5117
5118 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
5119
5120         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
5121         * config/mips/mips.c (compute_frame_size): Retrofit them here.
5122         (save_restore_insns, mips_expand_epilogue): And here.
5123         (build_mips16_call_stub): And here.
5124         (mips_function_value): Use the new macros to decide whether a single
5125         or complex float can be returned in floating-point registers.  Return
5126         a parallel rtx in the complex case.
5127
5128 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
5129
5130         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
5131         call after liveness analysis.
5132
5133         * recog.c (split_insn): Use delete_insn_and_edges.
5134
5135         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
5136         instructions to have branch prediction notes.
5137         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
5138
5139 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
5140
5141         * configure.in: Don't pass -Wno-long-long to a ADA compiler
5142         that doesn't support it.
5143         * configure: Regenerate.
5144
5145 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5146
5147         PR target/5626
5148         * config/sparc/sparc.md (normal_branch, inverted_branch,
5149         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
5150         inverted_fp_branch): Adjust calls to output_cbranch.
5151         Set length attribute.
5152         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
5153         output_v9branch.  Set length attribute.
5154         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
5155         predicates.
5156         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
5157         (output_cbranch): Likewise.  Handle far branches.
5158         (output_v9branch): Handle far branches.
5159         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
5160         Adjust prototypes.
5161         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
5162         noov_compare64_op predicates.
5163
5164 2002-03-13  Jason Merrill  <jason@redhat.com>
5165
5166         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
5167         into the function and constify it.
5168         * gthr-dce.h, gthr-solaris.h: Likewise.
5169
5170 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
5171
5172         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
5173         * config/rs6000/rs6000.c (rs6000_va_arg): Use
5174         std_expand_builtin_va_arg if not ABI_V4.
5175
5176 2002-03-13  Jason Merrill  <jason@redhat.com>
5177
5178         * varasm.c (globalize_decl): New fn.
5179         (assemble_start_function): Use it.
5180         (asm_emit_uninitialized): Use it.
5181         (assemble_alias): Use it.
5182         (assemble_variable): Use it.
5183
5184 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
5185
5186         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
5187         2002-03-12 internal visibility change.
5188         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
5189         visibility into SYMBOL_REF_FLAG.
5190
5191 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
5192
5193         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
5194         VOIDmode operand.  Add compile-time optimization for constant results.
5195
5196 2002-03-12  Jason Merrill  <jason@redhat.com>
5197
5198         * c-typeck.c (convert_for_assignment): Don't allow conversions
5199         between pointers and references.  Only allow lvalues to convert to
5200         reference.
5201
5202 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
5203
5204         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
5205         before prologue, to avoid scheduling problems.
5206
5207 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5208
5209         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
5210         (ELIMINABLE_REGS): Add sfp->sp.
5211         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
5212
5213 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5214
5215         PR optimization/5892
5216         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
5217
5218 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5219
5220         * loop.c (basic_induction_var): Don't call convert_modes if mode
5221         classes are different.
5222
5223 2002-03-12  Richard Henderson  <rth@redhat.com>
5224
5225         PR optimization/5901
5226         * function.c (reposition_prologue_and_epilogue_notes): Position
5227         the markers after/before the last/first insn not deleted.
5228
5229 2002-03-12  Richard Henderson  <rth@redhat.com>
5230
5231         PR optimization/5878
5232         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
5233         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
5234         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5235
5236         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
5237         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
5238         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
5239
5240         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
5241         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
5242         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
5243         also.  Don't set it if not flag_pic.
5244         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
5245         to be INVALID_REGNUM when not used.
5246
5247 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
5248
5249         * expmed.c (store_bit_field): Reset alias set for memory.
5250         (extract_bit_field): Same.
5251
5252 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5253
5254         * c-common.c (c_tree_code_type, c_tree_code_length,
5255         c_tree_code_name, add_c_tree_codes): Delete.
5256         * c-common.h (add_c_tree_codes): Delete.
5257         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
5258         Define.
5259         * c-objc-common.c (c_objc_common_init): Don't call
5260         add_c_tree_codes, instead set lang_unsafe_for_reeval.
5261         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
5262         objc_tree_code_name, add_objc_tree_codes): Delete.
5263         (objc_init): Don't call add_objc_tree_codes.
5264         * objc/objc-lang.c (tree_code_type, tree_code_length,
5265         tree_code_name): Define.
5266         * toplev.c (lang_independent_init): Don't set
5267         tree_code_length[IDENTIFIER_NODE].
5268         * tree.c (tree_code_type, tree_code_length, tree_code_name):
5269         Delete definitions, moved to language front-ends.
5270         * tree.def (IDENTIFIER_NODE): Hardwire the length.
5271         * tree.h (tree_code_type, tree_code_length, tree_code_name):
5272         Const-ify.
5273         (tree_code_length): Change type to unsigned char.
5274
5275 2002-03-12  Richard Henderson  <rth@redhat.com>
5276
5277         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
5278         internal visibility change.
5279
5280 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5281
5282         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
5283         validize_mem() instead of change_address to avoid clobbering
5284         memory attributes.
5285
5286 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
5287
5288         * c-lex.h (position_after_whitespace): Remove.
5289
5290 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
5291
5292         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
5293         (lex_string): Use unsigned char pointers.
5294
5295 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
5296
5297         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
5298         is not a valid memory_operand.
5299
5300 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5301
5302         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
5303         * config/xtensa/lib1funcs.asm: Fix copyright to include
5304         special case for libgcc files.
5305         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
5306         (__divsi3): Likewise.
5307         (__umodsi3): Likewise.
5308         (__modsi3): Likewise.
5309         * config/xtensa/lib2funcs.S: Fix copyright to include
5310         special case for libgcc files.
5311
5312 2002-03-12  Tom Rix  <trix@redhat.com>
5313
5314         * collect2.c (resolve_lib_name): Move outside of
5315         OBJECT_FORMAT_COFF ifdef.
5316         (ignore_library): Same.
5317
5318 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5319
5320         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
5321
5322 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5323
5324         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
5325         to function_section before writing out the constant pool.
5326
5327 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
5328
5329         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
5330         zero_constant.
5331         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
5332
5333 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
5334
5335         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
5336         (adddi3): Likewise.
5337         (movdf): Likewise.
5338         (movdi): Likewise.
5339         (cmpsi splitter): Likewise.
5340         (modsi3): Fail if <= 0.
5341         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
5342         redundant test when HOST_BITS_PER_WIDE_INT != 32.
5343         (reg_or_sub_cint64_operand): Likewise.
5344         (num_insns_constant_wide): Optimize sign extension.
5345         (rs6000_legitimize_address): Likewise.
5346
5347 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
5348
5349         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5350         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5351
5352 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
5353
5354         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
5355         address calculation.
5356
5357 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
5358
5359         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
5360         scratch register to DImode / TImode.
5361         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
5362         register used does not overlap the target.
5363
5364 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5365
5366         * Makefile.in (debug.o): Depend on debug.h.
5367         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
5368         * debug.c (do_nothing_debug_hooks): Likewise.
5369         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
5370         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
5371         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
5372         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
5373         * dwarfout.c (dwarf_debug_hooks): Likewise.
5374         * integrate.c (output_inline_function): Likewise.
5375         * objc/objc-act.c (synth_module_prologue): Likewise.
5376         * sdbout.c (sdb_debug_hooks): Likewise.
5377         * toplev.c (debug_hooks): Likewise.
5378         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5379
5380 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5381
5382         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
5383         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
5384         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
5385         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
5386         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
5387         * defaults.h (POINTER_SIZE): Define.
5388         * doc/tm.texi (POINTER_SIZE): Document default.
5389
5390 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5391
5392         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
5393
5394 2002-03-11  Richard Henderson  <rth@redhat.com>
5395
5396         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
5397         if rebuild_label_notes_after_reload.
5398
5399 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
5400
5401         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
5402         emit pic register load if "internal" visibility.
5403         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
5404         (cris_expand_builtin_va_arg): Do all computations on trees.
5405
5406 2002-03-11  Richard Henderson  <rth@redhat.com>
5407
5408         * rtlanal.c: Include recog.h.
5409         (keep_with_call_p): Fix thinko.
5410         * Makefile.in (rtlanal.o): Update dependencies.
5411
5412 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
5413
5414         * genflags.c (gen_insn): Use IS_VSPACE.
5415         * genoutput.c (output_insn_data): Likewise.
5416         (process_template): Likewise.
5417
5418 2002-03-11  Richard Henderson  <rth@redhat.com>
5419
5420         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
5421
5422 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
5423
5424         * Makefile.in: Update.
5425         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
5426         Update documentation.
5427         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
5428         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
5429
5430 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
5431
5432         * Makefile.in: Give texi2pod its input file as a command line
5433         argument, not on stdin.
5434
5435 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
5436             Daniel Berlin  <dan@dberlin.org>
5437
5438         C++ alias analysis improvement.
5439         * alias.c (record_component_aliases): Record aliases for base
5440         classes too.
5441
5442 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
5443
5444         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
5445
5446 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
5447
5448         * toplev.c (vms_fopen): Remove, not needed.
5449
5450         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
5451
5452         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
5453
5454         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
5455         for FP, already done later.
5456
5457         * toplev.c (debug_args): Add entry for VMS_DEBUG.
5458         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
5459
5460 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
5461
5462         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
5463         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
5464         LARGEST_EXPONENT_IS_NORMAL for the given mode.
5465         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
5466         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
5467         (ediv, emul, eldexp, esqrt): Likewise.
5468         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
5469         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
5470         (saturate): New function.
5471         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
5472         (make_nan): Use a saturation value instead of a NaN if
5473         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
5474         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
5475         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
5476         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
5477         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
5478         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
5479         !ROUND_TOWARDS_ZERO.
5480         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
5481         (ROUND_TOWARDS_ZERO): Document.
5482
5483 2002-03-11  Andreas Jaeger  <aj@suse.de>
5484
5485         * cfg.c (dump_flow_info): Remove unused variable.
5486
5487 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
5488
5489         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
5490         computations on trees.
5491
5492 2002-03-10  Richard Henderson  <rth@redhat.com>
5493
5494         PR 5693:
5495         * reload.c (copy_replacements_1): New.
5496         (copy_replacements): Use it to recurse through the rtx.
5497
5498 2002-03-10  Richard Henderson  <rth@redhat.com>
5499
5500         * loop.c (strength_reduce): Compute number of iterations as
5501         unsigned HOST_WIDE_INT.
5502
5503 2002-03-10  Richard Henderson  <rth@redhat.com>
5504
5505         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
5506         to move away from the end of the block.
5507
5508 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
5509
5510         PR preprocessor/5899
5511         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
5512
5513 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5514
5515         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
5516
5517         * attribs.c (decl_attributes): Fix signed/unsigned warning.
5518
5519 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
5520
5521         * config/mmix/mmix.c: Improve comments.
5522         (mmix_target_asm_function_prologue): Drop variable
5523         empty_stack_frame.  Don't allocate unused slot above fp.
5524         (mmix_target_asm_function_epilogue): Mirror prologue changes.
5525         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
5526         brace in first column.
5527         (enum reg_class): Ditto.
5528         (FIRST_PARM_OFFSET): Now 0.
5529         (USER_LABEL_PREFIX): Remove #if 0:d definition.
5530
5531 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5532
5533         * combine.c (make_extraction): Fix error in last change.
5534
5535 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5536
5537         * c4x.c (c4x_fp_reglist): Const-ify.
5538         * cris.c (cris_print_operand): Likewise.
5539         * i386.c (ix86_va_arg): Likewise.
5540         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
5541         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
5542         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
5543         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
5544         * mcore.h (regno_reg_class): Likewise.
5545         * mips.c (gen_int_relational): Likewise.
5546         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
5547         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
5548         * pdp11.c (move_costs): Likewise.
5549         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
5550         * s390.c (s390_branch_condition_mnemonic, regclass_map):
5551         Likewise.
5552         * s390.h (regclass_map): Likewise.
5553         * sh.c (shift_amounts): Likewise.
5554         * sh.md (rotlsi3): Likewise.
5555
5556 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
5557
5558         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
5559         (ne0+5): Use new clobber to generate proper shift pattern.
5560         Patch by Michael Matz <matz@kde.org>.
5561
5562 2002-03-09  Andreas Schwab  <schwab@suse.de>
5563
5564         * gcc.c (validate_all_switches): Also handle `%W{...}'.
5565
5566 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
5567
5568         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
5569
5570 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
5571
5572         PR middle-end/5877
5573         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
5574         even for non-representable constants.
5575
5576 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5577
5578         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
5579         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
5580         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
5581         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
5582         (pop_function_context): Compute MAY_SHARE parameter for
5583         fixup_var_refs.
5584         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
5585         (gen_mem_addressof): Call fixup_var_refs with new parm.
5586
5587         * combine.c (make_extraction): Don't make extension of CONST_INT.
5588
5589 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
5590
5591         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
5592         in o32 and o64 ABIs.
5593         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
5594         but getting fixed-size structs passed in registers regardless of
5595         padding in o32 and o64 ABIs.
5596
5597         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
5598         offset before loading address of argument passed by transparent
5599         reference.
5600
5601 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5602
5603         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
5604
5605 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
5606
5607         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
5608         marker such that registers after it are saved.
5609
5610 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5611
5612         * sparc.c (arith_4096_operand): Fix error in last change.
5613
5614 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
5615
5616         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
5617         defaults for MEABI.
5618
5619 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
5620
5621         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
5622         vectors.
5623
5624 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
5625
5626         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
5627
5628 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
5629
5630         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
5631         removed; fix return value.
5632         * combine.c (combine_instructions): Dirtify blocks where we failed to
5633         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
5634         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
5635
5636 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5637
5638         * gcse.c (insert_insn_end_bb): Fix typo in last change.
5639
5640 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
5641
5642         * recog.c (peephole2_optimize): Re-distribute EH edges.
5643
5644 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
5645
5646         * expr.c (expand_expr): Use unsave lang hook.
5647         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
5648         (LANG_HOOKS_INITIALIZER): Update.
5649         * langhooks.h (struct lang_hooks): New hook unsave.
5650         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
5651         (unsave_expr_1): Remove unused lang_unsave_expr_now.
5652         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
5653         (unsave_expr_now): Remove.
5654         * tree.h (unsave_expr_now, lang_unsave,
5655         lang_unsave_expr_now): Remove.
5656         (lhd_unsave): New.
5657
5658 2002-03-08  Andreas Jaeger  <aj@suse.de>
5659
5660         * flow.c (propagate_block_delete_insn): Remove unused variable.
5661
5662 2002-03-08  Kazu Hirata  <kazu@hxi.com>
5663
5664         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
5665         insn length for memory load/store.
5666
5667 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5668
5669         * doc/install.texi (--with-libiconv-prefix): Document.
5670
5671 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
5672
5673         * doc/sourcebuild.texi: Fix typo.
5674
5675 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
5676
5677         PR c/3711
5678         * builtins.c (std_expand_builtin_va_arg): Do all computations on
5679         trees.
5680
5681 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5682
5683         * rtl.c (copy_most_rtx): Move from here ...
5684         * emit-rtl.c (copy_most_rtx): ... to here.
5685
5686 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
5687
5688         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
5689         SUBTARGET_CPP_SIZE_SPEC.
5690         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
5691
5692         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
5693
5694 2002-03-07  Matt Hiller  <hiller@redhat.com>
5695
5696         * gensupport.c (first_dir_md_include): Renamed from include;
5697         change all references.
5698         (last_dir_md_include): Renamed from last_include; change all
5699         references.
5700         (init_md_reader): Unconditionally initialize base_dir whether or
5701         not filename is a relative path.
5702
5703 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
5704
5705         * config/fp-bit.c (_unord_f2): Compile it in even if
5706         US_SOFTWARE_GOFAST is enabled.
5707
5708         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
5709         NULL_RTX.  Set all HFmode operations as NULL_RTX.
5710         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
5711         NULL_RTX, try reversing the comparison and the operands.
5712
5713 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
5714
5715         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
5716         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
5717         and MATCH_OP_DUP.
5718
5719 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
5720
5721         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
5722
5723 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
5724
5725         * basic-block.h (fixup_abnormal_edges): Declare.
5726         * reload1.c (fixup_abnormal_edges): New function.
5727         * reg-stack.c (convert_regs): Use it.
5728
5729         * gcse.c (insert_insn_end_bb): Handle trapping insns.
5730
5731         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
5732
5733 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
5734
5735         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
5736         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
5737         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
5738         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
5739         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
5740         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
5741         unless x and y could be infinite.
5742         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
5743         Check that the common type of both arguments is a real, even for
5744         targets without unordered comparisons.  Allow an integer argument
5745         to be compared against a real.
5746         (expand_tree_builtin): Use expand_unordered_cmp.
5747         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
5748         * cse.c (fold_rtx): Likewise.  Fix indentation.
5749         * fold-const.c (fold_real_zero_addition_p): New.
5750         (fold): Use it, and the new HONOR_... macros.
5751         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
5752         * jump.c (reversed_comparison_code_parts): After searching for
5753         the true comparison mode, use HONOR_NANS to decide whether it
5754         can be safely reversed.
5755         (reverse_condition_maybe_unordered): Remove IEEE check.
5756         * simplify-rtx.c (simplify_binary_operation): Use the new macros
5757         to decide which simplifications are valid.  Allow the following
5758         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
5759         and (a - -b) to (a + b).
5760         (simplify_relational_operation): Use HONOR_NANS.
5761         * doc/tm.texi: Document the MODE_HAS_... macros.
5762
5763 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
5764
5765         * combine.c (simplify_comparison): If simplifying a logical shift
5766         right and compare with constant, force the comparison to unsigned.
5767
5768 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
5769
5770         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
5771
5772         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
5773         -mabi=no-altivec
5774         (alt_reg_names): Remove % for vrsave.
5775
5776 2002-03-06  Richard Henderson  <rth@redhat.com>
5777
5778         PR optimization/5844
5779         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
5780         if used indicates we've already emitted one copy of an operand.
5781         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
5782         (gen_split): Supply a non-null used.
5783
5784 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
5785
5786         * reload1.c (reload): Unshare all rtl after reload is done.
5787
5788         * simplify-rtx.c (simplify_plus_minus): Do not abort,
5789         but simply fail if the expression is too complex to simplify.
5790         (simplify_gen_binary): Handle simplify_plus_minus failures.
5791
5792 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
5793
5794         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
5795         consistently call delete_trivially_dead_insns after CSE and GCSE;
5796         fix DFI_life dumping; do jump threading after liveness; do crossjumping
5797         after liveness2; update comment in last crossjumping.
5798         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
5799
5800 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
5801
5802         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
5803         after completing fast dead code elimination.
5804
5805         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
5806         COMPARE operator.
5807
5808 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
5809
5810         * version.c:  Fix misplaced leading blanks on first line.
5811
5812 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
5813
5814         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
5815
5816 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
5817
5818         * cfgcleanup.c (mentions_nonequal_regs): New function.
5819         (thread_jump): Use it.
5820         * toplev.c (rest_of_compilation): Run jump threading after
5821         liveness.
5822
5823 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
5824
5825         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
5826         patch.
5827
5828 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
5829
5830         * predict.c (estimate_bb_frequencies): Do not reload the
5831         frequencies from notes.
5832
5833 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
5834
5835         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
5836         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
5837
5838         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
5839         delete_noop_moves): Return indeger.
5840         * flow.c (ndead): New variable.
5841         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
5842         BB argument; update callers.
5843         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
5844         (life_analysis): Do not call purge_all_dead_edges.
5845         (update_life_info): Return number of deleted insns; print statistics.
5846         (update_life_info_in_dirty_blocks): likewise.
5847         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
5848         return number of insns deleted.
5849
5850         * cse.c: Include timevar.h
5851         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
5852         iterate until stabilizes; print statistics; return number of killed
5853         insns.
5854         * Makefile.in: (cse.o): Add timevar.h dependency
5855         * rtl.h (delete_trivially_dead_insns): New.
5856         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
5857         * toplev.c (rest_of_compilation): Update callers.
5858
5859         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
5860         (try_optimize_cfg): Do not update liveness.
5861         (cleanup-cfg): Loop until try_optimize_cfg and dead code
5862         removal stabilizes; use delete_trivially_dead_insns.
5863
5864         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
5865
5866 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
5867
5868         * cppmain.c (setup_callbacks): Disable #pragma and #ident
5869         callbacks when processing assembly language.
5870
5871 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5872
5873         * pa.h (ASM_FILE_END): Define.
5874         * som.h (ASM_FILE_END): Delete.
5875
5876         * pa.c (function_arg): Don't pass floats in general registers in
5877         indirect calls if TARGET_ELF32.
5878
5879 2002-03-05  Richard Henderson  <rth@redhat.com>
5880
5881         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
5882
5883 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
5884
5885         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
5886
5887 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
5888
5889         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
5890         -r command line.  Don't hide any symbols if not building
5891         shared libgcc.
5892
5893 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
5894
5895         * cfg.c (dump_flow_info): Warn about profile mismatches.
5896         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
5897         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
5898
5899 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
5900
5901         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
5902         wide volatile memory by parts.
5903
5904 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
5905
5906         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
5907         is NULL.
5908
5909 2002-03-05  Richard Henderson  <rth@redhat.com>
5910
5911         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
5912
5913 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
5914
5915         * toplev.c (documented_lang_options): Document more
5916         language-specific options.
5917         * doc/invoke.texi (Warning Options): Correct documentation for
5918         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
5919         * c-decl.c (c_decode_option): Use a table to handle warning options.
5920
5921 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
5922
5923         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
5924         parameter to mmix_encode_section_info.
5925         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
5926         relocatably.  Always produce ELF, not mmo if linking relocatably.
5927         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
5928         first is non-zero, don't add symbol prefix.
5929         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
5930         prototype accordingly.
5931
5932 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
5933
5934         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
5935
5936 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
5937
5938         * configure.in: Increase required makeinfo version to 4.1.
5939         * configure: Regenerate.
5940
5941 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
5942
5943         * .cvsignore: Remove *.info* and genrtl*; these files are generated
5944         elsewhere now.
5945
5946 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
5947
5948         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
5949         * doc/invoke.texi: Fix @math uses.
5950
5951 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
5952
5953         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
5954         removal
5955
5956 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
5957
5958         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
5959         (powerpc-*-eabisimaltivec*): Same.
5960
5961         * config/rs6000/t-ppcendian: New.
5962
5963 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5964
5965         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
5966         nonimmediate_src_operand and nonimmediate_lsrc_operand to
5967         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
5968
5969 2002-03-03  Richard Henderson  <rth@redhat.com>
5970
5971         * toplev.c (rest_of_decl_compilation): Revert last two changes.
5972
5973 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
5974
5975         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
5976         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
5977         tree.c, config/m68k/m68k.c:
5978         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
5979         REAL_ARITHMETIC blocks unconditional.  Delete some further
5980         #ifdef blocks predicated on REAL_ARITHMETIC.
5981         * flags.h, toplev.c: Delete remaining references to
5982         flag_pretend_float.
5983
5984         * doc/invoke.texi: Remove documentation of -fpretend-float.
5985         * doc/tm.texi: Describe the various REAL_* macros as provided by
5986         real.h, not by the target configuration files.
5987
5988         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
5989         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
5990         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
5991         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
5992         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
5993         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
5994         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
5995         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
5996         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
5997         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
5998         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
5999         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
6000         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
6001         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
6002         config/xtensa/xtensa.h:
6003         Do not define, undefine, or mention in comments any of
6004         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
6005         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
6006         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
6007         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
6008         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
6009         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
6010         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
6011         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
6012         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
6013
6014 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6015
6016         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
6017         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
6018         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
6019         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
6020         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
6021         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
6022         Delete.
6023         * defaults.h (BITS_PER_WORD): Define.
6024         * doc/tm.texi (BITS_PER_WORD): Document default value.
6025
6026         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
6027         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
6028         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
6029
6030 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6031
6032         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
6033         lieu of explicit sizeof/sizeof.
6034         * i386.c (override_options, ix86_init_mmx_sse_builtins,
6035         ix86_expand_builtin): Likewise.
6036         * mips.c (mips_add_gc_roots): Likewise.
6037         * mmix.c (mmix_output_condition): Likewise.
6038         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
6039         altivec_init_builtins): Likewise.
6040         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
6041         * cppexp.c (Nsuff, parse_number): Likewise.
6042         * cppinit.c (builtin_array_end): Likewise.
6043         * gcc.c (n_default_compilers, process_command): Likewise.
6044         * genpreds.c (output_predicate_decls): Likewise.
6045         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
6046         * lcm.c (N_ENTITIES): Likewise.
6047         * stor-layout.c (set_sizetype): Likewise.
6048
6049 2002-03-03  Richard Henderson  <rth@redhat.com>
6050
6051         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
6052         for types or labels.
6053
6054 2002-03-03  Richard Henderson  <rth@redhat.com>
6055
6056         * c-decl.c (start_decl): Initialized variables are not common.
6057
6058 2002-03-02  Per Bothner  <per@bothner.com>
6059
6060         * gcc.c (option_map):  Suport new --bootclasspath option.
6061         --CLASSPATH is now just an alias for --classpath.
6062
6063 2002-03-02  Richard Henderson  <rth@redhat.com>
6064
6065         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
6066         load if "internal" visibility.
6067         * doc/extend.texi: Document visibility meanings.
6068
6069 2002-03-02  Richard Henderson  <rth@redhat.com>
6070
6071         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
6072         to functions as well.
6073
6074 2002-03-02  Richard Henderson  <rth@redhat.com>
6075
6076         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
6077         (handle_visibility_attribute): Don't call assemble_visibility.
6078         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
6079         without asmspec.  Invoke assemble_alias when needed.
6080         * varasm.c (maybe_assemble_visibility): New.
6081         (assemble_start_function, assemble_variable, assemble_alias): Use it.
6082
6083 2002-03-02  Richard Henderson  <rth@redhat.com>
6084
6085         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
6086         invoke ENCODE_SECTION_INFO with first call flag.
6087
6088         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
6089         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
6090         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
6091         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
6092         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
6093         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
6094         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
6095         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
6096         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
6097         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
6098         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
6099         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
6100         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
6101         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
6102         config/mcore/mcore-protos.h, config/mcore/mcore.c,
6103         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
6104         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
6105         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
6106         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
6107         config/sh/sh.h, config/sparc/sparc.h,
6108         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
6109         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
6110         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
6111         FIRST argument.  As needed, examine it and do nothing.
6112
6113         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
6114         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
6115         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
6116
6117         * config/arm/t-pe (pe.o): Add dependencies.
6118
6119 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6120
6121         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
6122         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
6123         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
6124         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
6125         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
6126         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
6127         * defaults.h (BITS_PER_UNIT): Define.
6128         * doc/tm.texi (BITS_PER_UNIT): Document default value.
6129
6130 2002-03-02  Kazu Hirata  <kazu@hxi.com>
6131
6132         * config/h8300/h8300-protos.h: Add a prototype for
6133         compute_a_shift_length.
6134         * config/h8300/h8300.c (h8300_asm_insn_count): New.
6135         (compute_a_shift_length): Likewise.
6136         (h8300_adjust_insn_length): Do not adjust insn length of shift
6137         insns.
6138         * config/h8300/h8300.md (anonymous shift patterns): Use
6139         compute_a_shift_length.
6140
6141 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6142
6143         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
6144         trunc_int_for_mode.
6145
6146         * emit-rtl.c (offset_address): Call update_temp_slot_address.
6147
6148 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6149
6150         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
6151         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
6152         * flags.h (flag_zero_initialized_in_bss): Declare.
6153         * toplev.c (flag_zero_initialized_in_bss): New flag.
6154         (lang_independent_options): Add flag_zero_initialized_in_bss.
6155         * tree.c (initializer_zerop): New function.
6156         * tree.h (initializer_zerop): Declare.
6157         * varasm.c (assemble_variable): If we can emit bss, put zero
6158         initializers in the bss section.
6159
6160 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
6161
6162         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
6163         like more than one symbol per .weak directive.
6164
6165 2002-03-01  Richard Henderson  <rth@redhat.com>
6166
6167         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
6168         adjust argument_pointer by pretend_args_size.
6169         (ia64_va_start): Adjust va_start address by -pretend_args_size.
6170
6171 2002-03-01  Kazu Hirata  <kazu@hxi.com>
6172
6173         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
6174
6175 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
6176
6177         * toplev.c (rest_of_compilation): Delete dead jumptables before
6178         loop.
6179         * flow.c (delete_dead_jumptables): Make global.
6180         * rtl.h (delete_dead_jumptables): Declare.
6181
6182 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
6183
6184         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
6185         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
6186         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
6187
6188 2002-03-01  Kazu Hirata  <kazu@hxi.com>
6189
6190         * config/h8300/h8300-protos.h: Fix formatting.
6191         * config/h8300/h8300.c: Likewise.
6192         * config/h8300/h8300.h: Likewise.
6193
6194 2002-03-01  Kazu Hirata  <kazu@hxi.com>
6195
6196         * config/h8300/h8300.c (print_operand): Support 16-bit
6197         constant addresses.
6198         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
6199
6200 2002-02-28  Richard Henderson  <rth@redhat.com>
6201
6202         * expmed.c (store_bit_field): Prevent generation of CONCATs;
6203         pun complex values as integers; use gen_lowpart instead of
6204         gen_rtx_SUBREG.
6205         (extract_bit_field): Likewise.
6206
6207 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
6208             David Edelsohn  <edelsohn@gnu.org>
6209
6210         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
6211         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
6212         (SUPPORTS_WEAK): Likewise.
6213         * output.h (add_weak): Add tree param.
6214         * varasm.c (add_weak): Likewise.  Save decl.
6215         (struct weak_syms): Add decl field.
6216         (mark_weak_decls): New function.
6217         (init_varasm_once): ggc_add_root mark_weak_decls.
6218         (assemble_start_function): Use ASM_WEAKEN_DECL.
6219         (assemble_variable): Likewise.
6220         (assemble_alias): Likewise.
6221         (declare_weak): Pass decl to add_weak.
6222         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
6223         (remove_from_pending_weak_list): Declare and define for
6224         ASM_WEAKEN_DECL.
6225         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
6226         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
6227         * defaults.h (SUPPORTS_WEAK): Likewise.
6228         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
6229         .weak for code sym.  Do emit .size for descriptor sym.
6230         (ASM_DECLARE_FUNCTION_SIZE): Define.
6231         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
6232         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
6233         .lglobl unless TARGET_XCOFF.  Formatting fixes.
6234         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
6235         .weak for code sym.
6236         (HANDLE_PRAGMA_WEAK): Remove.
6237         (ASM_WEAKEN_LABEL): Remove.
6238         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
6239
6240 2002-03-01  Jason Merrill  <jason@redhat.com>
6241
6242         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
6243         (TARGET_EXPR_CLEANUP): New macro.
6244
6245 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
6246
6247         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
6248         to take ptr_extend into account as third type of extension.
6249         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
6250         fields used by SUBREG_PROMOTED_UNSIGNED_P.
6251         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
6252         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
6253         * calls.c (precompute_arguments): Use new macro.
6254         (expand_call): Ditto.
6255         * combine.c (nonzero_bits): Ditto.
6256         (record_promoted_value): Ditto.
6257         * expr.c (store_expr): Ditto.
6258         (expand_expr): Ditto.
6259         * function.c (assign_parms): Ditto.
6260
6261 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
6262
6263         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
6264         override -shared and -shared-libgcc.
6265
6266 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
6267
6268         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
6269         of "ultrasparc".
6270         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
6271         to be broken.
6272
6273 2002-02-28  Richard Henderson  <rth@redhat.com>
6274
6275         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
6276         4 cycle latency from MM producers.
6277         (ia64_internal_sched_reorder): Likewise with pipeline flush.
6278
6279 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
6280
6281         * mklibgcc.in: Don't use GNU make extension.
6282
6283 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
6284
6285         * c-parse.in (STATIC): New terminal.
6286         (scspec): New non-terminal.  Update productions accordingly.
6287         (program): Remove bogus ifc / end ifc.
6288         (array_declarator): Simplify production using STATIC.
6289
6290 2002-02-28  Jim Meyering  <meyering@lucent.com>
6291
6292         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
6293         \a still means TARGET_BELL.
6294
6295 2002-02-28  Richard Henderson  <rth@redhat.com>
6296
6297         * haifa-sched.c (sched_emit_insn): New.
6298         (schedule_block): Use last_scheduled_insn to track last insn.
6299         * sched-int.h (sched_emit_insn): Prototype.
6300         * config/ia64/ia64.c (last_issued): Remove.
6301         (ia64_variable_issue): Don't set it.
6302         (nop_cycles_until): Use sched_emit_insn.
6303
6304 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
6305
6306         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
6307         extended constants.
6308
6309 2002-02-28  Kazu Hirata  <kazu@hxi.com>
6310
6311         * config/h8300/h8300.c: Fix formatting.
6312         * config/h8300/h8300.h: Likewise.
6313
6314 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6315
6316         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
6317         which may overwrite the high byte of the frame pointer.
6318
6319 2002-02-28  Bo Thorsen  <bo@suse.de>
6320
6321         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
6322         (STARTFILE_SPEC): Add 64 bit files.
6323         (ENDFILE_SPEC): Likewise.
6324
6325 2002-02-28  Jason Merrill  <jason@redhat.com>
6326
6327         * c-decl.c (finish_function): Only warn about missing return
6328         statement with -Wreturn-type.
6329
6330 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
6331
6332         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
6333
6334         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
6335         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
6336
6337 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
6338
6339         * basic-block.h (BB_REACHABLE): Renumber.
6340         (BB_DIRTY, BB_NEW): New flags.
6341         (clear_bb_flags): Declare.
6342         (update_life_info_in_dirty_blocks): Declare.
6343         * cfg.c (clear_bb_flags): New function.
6344         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
6345         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
6346         reorder_insns, emit_insn_after): Mark block as dirty.
6347         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
6348         (update_life_info_in_dirty_blocks): New function.
6349         * recog.c (apply_change_group): Dirtify block.
6350
6351         * cse.c (cse_insn): Reorder emitting of jump insn to keep
6352         cfg consistent.
6353         * gcse.c (delete_null_pointer_checks): Likewise.
6354
6355         * toplev.c (dump_file_index): Move cse2 after bp,
6356         add DFI_null
6357         (dump_file_info): Similary.
6358         (rest_of_compilation): Avoid most of CFG rebuilds;
6359         do first if converision after null pointer checks, do cse2
6360         after branch prediction; avoid full liveness rebuild after
6361         initializing subregs.
6362         * invoke.texi (-d options): Document -du, renumber.
6363
6364         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
6365         (notice_new_block): Do not set BB_UPDATE_LIFE.
6366         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
6367          merge_blocks_move_successor_nojumps, merge_blocks,
6368          try_crossjump_to_edge): Likewise.
6369         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
6370         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
6371         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
6372         (merge_of_block): Do not use life_data_ok.
6373         (find_if_case_1): Do not use SET_UPDATE_LIFE.
6374         (if_convert): Use BB_DIRTY mechanizm to update life.
6375         * lcm.c (optimize_mode_switching): Update
6376         update_life_info_in_dirty_blocks
6377
6378 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
6379
6380         * Makefile.in (integrate.o): Update.
6381         * c-decl.c (copy_lang_decl): Rename.
6382         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
6383         * integrate.c: Include langhooks.h.
6384         (copy_decl_for_inlining): Update to use langhook.
6385         * langhooks-def.h (lhd_do_nothing_t,
6386         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
6387         (LANG_HOOKS_INITIALIZER): Update.
6388         * langhooks.c (lhd_do_nothing_t): New.
6389         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
6390         * tree.h (copy_lang_decl): Remove.
6391 objc:
6392         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
6393
6394 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
6395
6396         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
6397         POST_DEC, and POST_MODIFY.
6398
6399 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
6400
6401         * c-typeck.c (digest_init): Remove unused parameter; all
6402         callers changed.
6403
6404 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
6405
6406         * expmed.c (expand_shift): Correctly test for low part of a
6407         subreg.
6408
6409 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
6410
6411         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
6412         insn UIDs with insn addresses.
6413
6414 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
6415
6416         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
6417         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
6418         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
6419         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
6420         gcc.c, toplev.c: Delete code implementing -traditional mode.
6421
6422         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
6423         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
6424         Document removal of -traditional mode for compilation, and
6425         remove documentation only relevant to that mode.
6426
6427         * config/nextstep.h, config/ptx4.h, config/svr4.h,
6428         config/convex/convex.h, config/d30v/d30v.h,
6429         config/i386/dgux.h, config/i386/osf1elf.h,
6430         config/i386/osfelf.h, config/i386/osfrose.h,
6431         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
6432         config/m68k/hp310.h, config/m88k/dgux.h,
6433         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
6434         config/m88k/m88k.h, config/m88k/openbsd.h,
6435         config/mips/abi64.h, config/mips/osfrose.h,
6436         config/mips/svr4-5.h, config/mips/svr4-t.h,
6437         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
6438         config/stormy16/stormy16.h: Remove all references to
6439         -traditional from target specs.  Delete all mention of the
6440         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
6441         delete a couple of commented-out definitions of
6442         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
6443         to -traditional.
6444
6445         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
6446         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
6447
6448 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
6449
6450         * mklibgcc.in: Don't use \n in a line subject to
6451         interpretation by echo.
6452
6453 2002-02-27  Graham Stott  <grahams@redhat.com>
6454
6455         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
6456         Constify NAME.
6457
6458         * loop.c (prescan_loop): Handle PARALLEL.
6459
6460         * unroll.c (loop_iterations): Return 0 if the add_val for
6461         a BIV is REG.
6462
6463         * final.c (output_operand_lossage): Constify PFX_STR.
6464
6465         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
6466
6467 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
6468
6469         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
6470         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
6471
6472 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
6473
6474         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
6475
6476 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6477
6478         * cpplex.c (_cpp_lex_token): Handle directives in macro
6479         arguments.
6480         * cpplib.c (_cpp_handle_directive): Save and restore state
6481         if parsing macro args when entering a directive.
6482         * cppmacro.c (collect_args): No need to handle directives
6483         in macro arguments.
6484         (enter_macro_context, replace_args): Use the original macro
6485         definition in case it was redefined whilst collecting arguments.
6486 doc:
6487         * cpp.texi: Update.
6488
6489 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
6490
6491         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
6492         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
6493         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
6494         method on AIX.
6495         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
6496         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
6497         (load_toc_v4_PIC_2): Same.
6498
6499 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
6500
6501         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
6502
6503 2002-02-26  Richard Henderson  <rth@redhat.com>
6504
6505         * config/alpha/alpha.md (ashldi_se): Re-enable.
6506
6507 2002-02-26  Richard Henderson  <rth@redhat.com>
6508
6509         * config/alpha/alpha.c (alpha_encode_section_info): Examine
6510         MODULE_LOCAL_P; improve commentary.
6511
6512 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
6513
6514         * doc/cpp.texi: Clarify documentation of relationship between
6515         #line and #include.
6516
6517 2002-02-26  Kazu Hirata  <kazu@hxi.com>
6518
6519         * config/h8300/h8300-protos.h: Update the prototype for
6520         compute_logical_op_length.  Add the prototype for
6521         compute_logical_op_cc.
6522         * config/h8300/h8300.c (compute_logical_op_length): Figure out
6523         code from operands.
6524         (compute_logical_op_cc): New.
6525         * config/h8300/h8300.md: Combine all the logical op patterns
6526         in HImode and SImode.  Use compute_logical_op_cc.
6527
6528 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
6529
6530         * config/i386/i386.c (print_operand): Don't append ATT-style
6531         length suffixs to x87 opcodes when in Intel mode.
6532
6533 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
6534
6535         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
6536         (init_emit_once): Update calls.
6537         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
6538         (init_syntax_once): Prototype.
6539
6540 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6541
6542         * pa-linux.h (LIB_SPEC): Update definition.
6543         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6544
6545 2002-02-26  Richard Henderson  <rth@redhat.com>
6546
6547         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
6548         if we emitted a stop bit.
6549
6550 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
6551
6552         * configure.in (libgcc_visibility): Substitute.
6553         * configure: Rebuilt.
6554         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
6555         defined symbols .hidden.
6556
6557 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
6558
6559         * attribs.c (c_common_attribute_table): Add visibility.
6560         (handle_visibility_attribute): New function.
6561         * varasm.c (assemble_visibility): New function.
6562         * output.h (assemble_visibility): Add prototype.
6563         * tree.h (MODULE_LOCAL_P): Define.
6564         * crtstuff.c (__dso_handle): Use visibility attribute.
6565         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
6566         for MODULE_LOCAL_P symbols too.
6567         * config/ia64/ia64.c (ia64_encode_section_info): Handle
6568         MODULE_LOCAL_P symbols the same way as local symbols.
6569         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
6570         into .sdata/.sbss by the user.
6571         * doc/extend.texi (Function Attributes): Document visibility
6572         attribute.
6573
6574 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
6575
6576         PR debug/5770
6577         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
6578         STRING_CST initializer spanning the whole variable without
6579         embedded zeros.
6580         If expand_expr returned MEM, don't use it.
6581
6582 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
6583
6584         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
6585         generate a die for the lexical block.
6586
6587 2002-02-26  Kazu Hirata  <kazu@hxi.com>
6588
6589         * config/h8300/h8300-protos.h: Add a prototype for
6590         compute_logical_op_length.
6591         * config/h8300/h8300.c (compute_logical_op_length): New.
6592         * config/h8300/h8300.md (anonymous logical patterns): Use
6593         compute_logical_op_length for length.
6594
6595 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
6596
6597         * dwarf2out.c (modified_type_die): Do not call type_main_variant
6598         for vectors.
6599         (gen_type_die): Same.
6600
6601         * attribs.c (handle_vector_size_attribute): Set debug information.
6602
6603 2002-02-26  Daniel Egger  <degger@fhm.edu>
6604
6605         * config/rs6000/rs6000.md: Swap define_insn attributes to
6606         fix incorrect generation of merge high instructions instead
6607         of merge low.
6608
6609 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
6610
6611         * c-typeck.c (really_start_incremental_init): Use
6612         bitsize_zero_node for vectors.
6613
6614 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
6615
6616         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
6617         ("*set_vrsave_internal"): Same.
6618
6619 2002-02-25  Richard Henderson  <rth@redhat.com>
6620
6621         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
6622         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
6623
6624 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
6625
6626         PR target/5755
6627         * config/i386/i386.c (ix86_return_pops_args): Only pop
6628         fake structure return argument if it was passed on the stack.
6629
6630 2002-02-25  Jason Merrill  <jason@redhat.com>
6631
6632         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
6633         RESULT_DECL.
6634
6635 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
6636
6637         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
6638         link with shared_name only.
6639         * doc/invoke.texi (Link Options): Document new behavior.
6640
6641 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
6642
6643         * c-typeck.c (push_init_level): Handle vectors.
6644
6645 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
6646
6647         * config/sparc/sparc.c (const64_high_operand): Zero-extend
6648         operands of SPARC_SETHI_P.
6649         (input_operand): Likewise.
6650         (sparc_emit_set_const32): Likewise.
6651         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
6652         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
6653         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
6654         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
6655         (movdi_insn_sp64_vis): Likewise.
6656         (movdi split, movdf split): Use SETHI32.
6657         * doc/md.texi: Document SPARC constraints L, M and N.
6658
6659 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
6660
6661         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
6662         ("*set_vrsave_internal"): use mfspr for Darwin.
6663
6664         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
6665         gen_get_vrsave_internal.
6666
6667 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6668
6669         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
6670
6671 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6672
6673         * cpplex.c (cpp_interpret_charconst): Get signedness or
6674         otherwise of wide character constants correct.
6675         * cppexp.c (lex): Get signedness of wide charconsts correct.
6676
6677 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6678
6679         * optabs.c (widen_operand): Only call convert_modes for
6680         promoted SUBREG if signedness matches.
6681         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
6682
6683 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
6684
6685         * cpplib.c (glue_header_name): Use local buffer to build up
6686         header name.
6687
6688 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
6689
6690         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
6691
6692 2002-02-23  Kazu Hirata  <kazu@hxi.com>
6693
6694         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
6695         H8/300[HS] separately.
6696         * config/h8300/h8300.md: Remove the early clobber constraint
6697         from bit field patterns.
6698
6699 2002-02-23  Kazu Hirata  <kazu@hxi.com>
6700
6701         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
6702         register_operand.
6703         (mulhisi3): Likewise.
6704         (umulqisi3): Likewise.
6705         (umulhisi3): Likewise.
6706
6707 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
6708
6709         * cppinit.c (output_deps): Correct test for stdout output.
6710         (init_dependency_output): Cure warning.
6711
6712 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6713
6714         * expr.c (store_expr): When converting expression to promoted
6715         equivalent type, allow using SUBREG_REG of TARGET as the target
6716         of the expansion of EXP.
6717         * loop.c (basic_induction_var, case SUBREG): Always look inside.
6718         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
6719         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
6720         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
6721         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
6722
6723 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
6724
6725         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
6726         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
6727         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
6728
6729 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
6730
6731         PR optimization/5747
6732         * loop.c (scan_loop): Update reg info if move_movables created new
6733         pseudos.
6734
6735 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
6736
6737         * gcc.c (init_gcc_spec): Revert last change.
6738
6739 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
6740
6741         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
6742         gpc_reg_operand constraint.
6743
6744 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
6745
6746         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
6747         Simplify comparison of `low'.
6748         (add_operand): Fix formatting.
6749         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
6750         (mask_operand): Disallow mask to wrap in 64-bit mode.
6751         (rs6000_stack_info): Remove redundant test setting push_p.
6752         (output_toc): Fix formatting.
6753         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
6754         cc_reg_not_cr0_operand constraint.
6755         (booldi3, boolcdi3 splitters): Same.
6756
6757 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
6758
6759         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
6760
6761 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
6762
6763         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
6764         gcc invoked with -shared-libgcc.
6765
6766 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
6767
6768         PR c++/5748
6769         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
6770         decl if any of elements was TREE_USED.
6771
6772 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
6773
6774         * config/sparc/sol2.h: Don't include sys/mman.h.
6775         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
6776         (arith_4096_operand): Don't throw high bits away.
6777         (const64_operand): Take sign extension of CONST_INTs into account.
6778         (const64_high_operand, sparc_emit_set_const32): Likewise.
6779         (GEN_HIGHINT64): Likewise.
6780         (sparc_emit_set_const64_quick1): Likewise.
6781         (const64_is_2insns): Likewise.
6782         (print_operand): Use trunc_int_for_mode for sign extension.
6783         * config/sparc/sparc.h (SMALL_INT32): Likewise.
6784         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
6785         chars.  Assume CONST_INT is already properly sign-extended.
6786         (movdi split): Sign-extend each SImode part.
6787         (andsi3 split): Don't mask high bits off, so that result
6788         remains properly sign-extend.
6789         (iorsi3 split): Likewise.
6790         (xorsi3 split): Likewise.
6791
6792 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
6793
6794         * fold-const.c (fold): Fix typo in comments.
6795
6796 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
6797
6798         * Makefile.in (langhooks.o): Update dependencies.
6799
6800 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
6801
6802         * langhooks.c: Include flags.h.
6803
6804 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
6805
6806         * testsuite/gcc.dg/attr-alwaysinline.c: New.
6807
6808         * c-common.c (c_common_post_options): Set inline trees by
6809         default.
6810
6811         * doc/extend.texi (Function Attributes): Document always_inline
6812         attribute.
6813         Update documentation about inlining when not optimizing.
6814
6815         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
6816
6817         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
6818         unless DECL_ALWAYS_INLINE.
6819
6820         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
6821         unless DECL_ALWAYS_INLINE.
6822         (c_disregard_inline_limits): Disregard if always_inline set.
6823
6824         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
6825         Disregard if always_inline set.
6826         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
6827         unless DECL_ALWAYS_INLINE.
6828
6829         * attribs.c (handle_always_inline_attribute): New.
6830         (c_common_attribute_table): Add always_inline.
6831
6832         * config/rs6000/altivec.h: Add prototypes for builtins
6833         requiring the always_inline attribute.
6834
6835 2002-02-21  Eric Christopher  <echristo@redhat.com>
6836
6837         * expmed.c (store_bit_field): Try to simplify the subreg
6838         before generating a new one when when the mode size of
6839         value is less than maxmode.
6840
6841 2002-02-21  Richard Henderson  <rth@redhat.com>
6842
6843         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
6844         than gen_rtx_PLUS to form the sum.
6845         * explow.c (force_reg): Rearrange to not allocate new pseudo
6846         when force_operand returns a register.
6847         * expr.c (expand_assignment): Allow offset_rtx expansion to
6848         return a sum.  Do not force addresses into registers.
6849         (expand_expr): Likewise.
6850         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
6851         to canonicalize arithmetic that didn't simpify.
6852         (simplify_plus_minus): New argument force; update
6853         all callers.  Don't split CONST unless we can do something with it,
6854         and wouldn't lose the constness of the operands.
6855
6856         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
6857         that we generated earlier.
6858
6859 2002-02-21  Tom Tromey  <tromey@redhat.com>
6860
6861         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6862         (output_line_info): Use constant `1', with a long explanatory
6863         comment.
6864         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
6865
6866 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
6867
6868         * jump.c (redirect_jump): If old label has no UID, don't try to
6869         delete it.
6870
6871 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
6872
6873         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
6874         If input is constant, do shifts at compile time.
6875
6876 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
6877
6878         * doc/extend.texi: Fix some more overfull hboxes.
6879
6880 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
6881
6882         PR optimization/4994
6883         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
6884         register moves.
6885
6886 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
6887
6888         PR c++/4574
6889         * expr.h (expand_and): Add mode argument.
6890         * expmed.c (expand_and): Add mode argument.
6891         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
6892         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
6893         * except.c (expand_builtin_extract_return_addr): Likewise.
6894         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
6895         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
6896         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
6897         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
6898         * config/c4x/c4x.md: Use GEN_INT (x) instead of
6899         gen_rtx (CONST_INT, VOIDmode, x).
6900
6901 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
6902
6903         PR c/4697:
6904         * stmt.c (warn_if_unused_value): Move side effects test once more.
6905
6906 2002-02-20  Torbjorn Granlund  <tege@swox.com>
6907
6908         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
6909         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
6910
6911 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
6912
6913         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
6914         SUBREG or ZERO_EXTEND.
6915
6916 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
6917
6918         * sh.h (current_function_anonymous_args): Remove.
6919         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
6920         of current_function_varargs and current_function_stdarg is set.
6921         * sh.c (sh_expand_prologue): Check current_function_varargs /
6922         current_function_stdarg / TARGET_SH5 instead of
6923         current_function_anonymous_args.
6924
6925         * sh64.h (TARGET_VERSION): Define.
6926
6927 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
6928
6929         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
6930         VRSAVE_REGNO on TARGET_ALTIVEC.
6931
6932 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
6933
6934         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
6935         bits of SImode const_int.
6936         (includes_rshift_p): Likewise.
6937         (print_operand): Call mask_operand and mask64_operand with correct
6938         mode.
6939         (rs6000_output_function_epilogue): Pad traceback table to word.
6940         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
6941         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
6942         mask64_operand with correct mode.
6943         (FUNCTION_ARG_REGNO_P): Correct parentheses.
6944
6945 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
6946
6947         PR debug/4461
6948         * varasm.c (get_pool_constant_mark): New.
6949         * rtl.h (get_pool_constant_mark): Add prototype.
6950         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
6951         be represented if it has not been output.
6952
6953 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
6954
6955         * combine.c (do_SUBST): Sanity check substitutions of
6956         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
6957         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
6958         CONST_INT into its operand.
6959         (known_cond): Likewise, for ZERO_EXTEND.
6960         * simplify-rtx.c (simplify_unary_operation): Fix condition to
6961         allow for simplification of wide modes.  Reject CONST_INTs in
6962         ZERO_EXTEND when their actual mode is not given.
6963
6964 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
6965
6966         * c-decl.c (pushdecl): If no global declaration is found for an
6967         extern declaration in block scope, try a limbo one.
6968
6969 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
6970
6971         PR c++/4401
6972         * c-common.c (pointer_int_sum): Moved from...
6973         * c-typeck.c (pointer_int_sum): ...here.
6974         * c-common.h (pointer_int_sum): Add prototype.
6975
6976 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
6977
6978         PR c++/5713
6979         * c-decl.c (duplicate_decls): Return 0 if issued error about
6980         redeclaration.
6981
6982 2002-02-20  Roger Sayle  <roger@eyesopen.com>
6983             Jakub Jelinek  <jakub@redhat.com>
6984
6985         PR c/4389
6986         * tree.c (host_integerp): Ensure that the constant integer is
6987         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
6988         when pos is zero or non-zero respectively.  Clarify comment.
6989         * c-format.c (check_format_info_recurse): Fix host_integerp
6990         usage; the pos argument should be zero when assigning to a
6991         signed HOST_WIDE_INT.
6992
6993 2002-02-20  Richard Henderson  <rth@redhat.com>
6994
6995         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
6996         of the operand, rather than assuming TImode.
6997         (ix86_expand_binop_builtin): Cope with commutative patterns
6998         using nonimmediate_operand for both operands.
6999         (ix86_expand_timode_binop_builtin): Likewise.
7000         (ix86_expand_store_builtin): Validate operand 1.
7001         (ix86_expand_unop1_builtin): Likewise.
7002
7003 2002-02-20  Philip Blundell  <philb@gnu.org>
7004
7005         PR 5705
7006         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
7007
7008 2002-02-20  Richard Henderson  <rth@redhat.com>
7009
7010         PR c/5615
7011         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
7012
7013 2002-02-20  Tom Tromey  <tromey@redhat.com>
7014
7015         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7016         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7017         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7018         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7019         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
7020         unconditionally.
7021
7022 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
7023
7024         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
7025           for (const_int 0) in X not just INTVAL.
7026
7027 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
7028
7029         * doc/extend.texi: Avoid or reduce overfull hboxes.
7030
7031 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
7032
7033         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
7034         operations if the field does not start at a mode boundary.
7035
7036 2001-02-20      Joel Sherrill <joel@OARcorp.com>
7037
7038         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
7039         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
7040         Also done for -Acpu and -Amachine.
7041
7042 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
7043
7044         * cppinit.c (init_dependency_output): Take deps output file
7045         from -o if none given with -MF.  Suppress normal output.
7046         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
7047         * doc/cpp.texi, doc/invoke.texi: Update.
7048
7049 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
7050
7051         * toplev.c (output_quoted_string): Write unprintable
7052         characters with octal escapes.
7053
7054 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
7055
7056         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
7057         really_call_used[VRSAVE_REGNO] if not Altivec.
7058
7059 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
7060
7061         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
7062         MODE_MASK.
7063         (constant_pool_expr_1): Fix formatting.
7064         (rs6000_legitimize_reload_address): Likewise.
7065
7066 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7067
7068         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
7069         now that we have one.
7070
7071 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
7072
7073         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
7074         end of first block of bitfields (which was only seven bits);
7075         rename dummy to unused_1; remove comment which is no longer true.
7076
7077 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
7078
7079         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
7080
7081 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
7082
7083         PR 5399
7084         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
7085         if generating PIC.
7086
7087         PR 5054
7088         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
7089         arm_is_longcall_p rather than inspecting call-type cookie
7090         directly.
7091         (call_value_insn) [TARGET_THUMB]: Likewise.
7092
7093 2002-02-19  Graham Stott  <grahams@redhat.com>
7094
7095         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
7096
7097 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
7098
7099         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
7100         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
7101         (FP_SAVE_INLINE): Delete.
7102
7103         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
7104         * config/rs6000/eabi.asm: Remove ABI save restore routines.
7105         * config/rs6000/t-ppccomm: Build crtsavres.o.
7106         * config/rs6000/crtsavres.asm: New file.
7107
7108 2002-02-19  Philip Blundell  <philb@gnu.org>
7109
7110         * config/arm/arm.c (use_return_insn): Don't reject interrupt
7111         functions.
7112         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
7113         (output_return_instruction): Allow interrupt functions to return with
7114         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
7115         (arm_expand_prologue): Subtract 4 before stacking LR in an
7116         interrupt function.
7117
7118 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
7119
7120         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
7121         decl, not just FUNCTION_DECL.
7122         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
7123         (arm_assemble_integer): Likewise.
7124         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
7125         marked local.
7126
7127 2002-02-19  matthew green  <mrg@eterna.com.au>
7128
7129         * config.gcc (sparc-*-netbsdelf*): Enable target.
7130         (sparc64-*-netbsd*): New target.
7131         * config/sparc/netbsd-elf.h: New file.
7132         * config/sparc/t-netbsd64: New file.
7133
7134 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
7135
7136         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
7137
7138 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
7139
7140         * doc/invoke.texi: explicitly list the style guidelines that
7141         -Weffc++ checks for.
7142
7143 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
7144
7145         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
7146
7147 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
7148
7149         PR other/5718
7150         * gcc.c (cpp_unique_options): Treat -o as indicating object file
7151         only if not -E.  If -E, pass -o through to the preprocessor.
7152
7153 2002-02-19  Kazu Hirata  <kazu@hxi.com>
7154
7155         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
7156         register number with an appropriate macro.
7157
7158 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
7159
7160         * doc/rtl.texi (Constants): Close @code tag.
7161
7162 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
7163
7164         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
7165         ("mmx_uavgv4hi3"): Same.
7166         ("pmulhrwv4hi3"): Same.
7167
7168         * tree-inline.c (walk_tree): Handle vectors.
7169
7170         * c-common.c (constant_expression_warning): Handle vectors.
7171         (overflow_warning): Same.
7172
7173         * sched-deps.c (sched_analyze_2): Handle vectors.
7174
7175         * rtlanal.c (rtx_unstable_p): Handle vectors.
7176         (rtx_varies_p): Same.
7177         (count_occurrences): Same.
7178         (regs_set_between_p): Same.
7179         (modified_between_p): Same.
7180         (modified_in_p): Same.
7181         (volatile_insn_p): Same.
7182         (volatile_refs_p): Same.
7183         (side_effects_p): Same.
7184         (may_trap_p): Same.
7185         (inequality_comparisons_p): Same.
7186         (replace_regs): Same.
7187         (computed_jump_p_1): Same.
7188
7189         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
7190         argument.
7191         (inner_mode_array): New.
7192         (copy_rtx): Handle vectors.
7193         (copy_most_rtx): Same.
7194         (rtx_equal_p): Same.
7195         (get_mode_alignment): Adjust for vectors.
7196
7197         * resource.c (mark_referenced_resources): Handle vectors.
7198         (mark_set_resources): Same.
7199
7200         * reload1.c (eliminate_regs): Handle vectors.
7201         (elimination_effects): Same.
7202         (scan_paradoxical_subregs): Same.
7203
7204         * reload.c (subst_reg_equivs): Handle vectors.
7205
7206         * regrename.c (scan_rtx): Handle vectors.
7207
7208         * regclass.c (reg_scan_mark_refs): Handle vectors.
7209
7210         * recog.c (find_single_use_1): Handle vectors.
7211
7212         * local-alloc.c (equiv_init_varies_p): Handle vectors.
7213         (contains_replace_regs): Same.
7214         (memref_referenced_p): Same.
7215
7216         * integrate.c (copy_rtx_and_substitute): Handle vectors.
7217         (subst_constants): Same.
7218
7219         * genattrtab.c (attr_copy_rtx): Handle vectors.
7220         (encode_units_mask): Same.
7221         (clear_struct_flag): Same.
7222         (count_sub_rtxs): Same.
7223
7224         * gcse.c (want_to_gcse_p): Handle vectors.
7225         (oprs_unchanged_p): Same.
7226         (hash_expr_1): Same.
7227         (oprs_not_set_p): Same.
7228         (expr_killed_p): Same.
7229         (compute_transp): Same.
7230         (store_ops_ok): Same.
7231
7232         * function.c (purge_addressof_1): Do not allow paradoxical subregs
7233         of vectors.
7234         (fixup_var_refs_1): Same.
7235         (instantiate_virtual_regs_1): Same.
7236
7237         * fold-const.c (operand_equal_p): Handle vectors.
7238         (fold): Same.
7239         (rtl_expr_nonnegative_p): Same.
7240
7241         * flow.c (mark_used_regs): Handle vectors.
7242
7243         * df.c (df_uses_record): Handle vectors.
7244
7245         * cselib.c (cselib_subst_to_values): Handle vectors.
7246         (cselib_mem_conflict_p): Same.
7247         (hash_rtx): Same.
7248
7249         * cse.c (canon_reg): Handle vectors.
7250         (fold_rt): Same.
7251         (cse_process_notes): Same.
7252         (count_reg_usage): Same.
7253         (canon_hash): Same.
7254
7255         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
7256
7257         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
7258
7259         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
7260         (gen_rtx): Handle CONST_VECTOR.
7261         (gen_const_vector_0): New.
7262         (copy_rtx_if_shared): CONST_VECTORs can be shared.
7263         (reset_used_flags): Same.
7264         (copy_insn_1): Same.
7265         (initializer_constant_valid_p): Handle VECTOR_CST.
7266
7267         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
7268
7269         * doc/rtl.texi (Constants): Document const_vector.
7270         (CONST0_RTX): Update for vectors.
7271         (RTL sharing): Same.
7272
7273         * print-tree.c (print_node): Add case for VECTOR_CST.
7274
7275         * tree.h (TREE_VECTOR_CST_ELTS): New.
7276         (struct tree_vector): New.
7277         (union tree_node): Add vector node.
7278         (build_vector): Add prototype.
7279
7280         * tree.def (VECTOR_CST): New.
7281
7282         * tree.c (build_vector): New.
7283
7284         * expmed.c (make_tree): Handle CONST_VECTOR.
7285
7286         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
7287         (CONST_VECTOR_ELT): New.
7288         (CONST_VECTOR_NUNITS): New.
7289
7290         * machmode.h (GET_MODE_INNER): New.
7291         (DEF_MACHMODE): Accept 8th arg.
7292
7293         * machmode.def: Add 8th argument for vector inner mode.
7294         Add inner vector modes for vectors.
7295
7296         * rtl.def (VEC_CONST): Remove.
7297         (CONST_VECTOR): New.
7298
7299         * expr.c (clear_storage): Allow vectors.
7300         (is_zeros_p): Handle VECTOR_CST.
7301
7302         * varasm.c (output_constant_pool): Handle vectors.
7303         (rtx_const): Add veclo and vechi fields.
7304         (kind): Add RTX_VECTOR.
7305         (decode_rtx_const): Add case for vector.
7306
7307         * config/rs6000/rs6000-protos.h: Add zero_constant.
7308
7309         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
7310         constants.  Force easy vector constants into memory.
7311         (easy_vector_constant): New.
7312         (emit_easy_vector_constant): New.
7313         (rs6000_legitimize_reload_address): Do not generate bad reloads on
7314         darwin.
7315
7316         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
7317         instruction does.
7318         ("altivec_lvxl"): Same.
7319         (altivec_lvebx): Same.
7320         (altivec_lvehx): Same.
7321         (altivec_lvewx): Same.
7322         ("*movv4si_const0"): New.
7323         ("*movv4sf_const0"): New.
7324         ("*movv8hi_const0"): New.
7325         ("*movv16qi_const0"): New.
7326
7327 2002-02-18  Kazu Hirata  <kazu@hxi.com>
7328
7329         * config/h8300/h8300.c (notice_update_cc): Use
7330         cc_status.value2.
7331
7332 2002-02-18  Kazu Hirata  <kazu@hxi.com>
7333
7334         * config/h8300/h8300.md (divmod patterns): Change the
7335         constraints for operands[1] to register_operand.
7336
7337 2002-02-18  Kazu Hirata  <kazu@hxi.com>
7338
7339         * config/h8300/h8300-protos.h: Remove the prototype for
7340         p_operand.
7341         * config/h8300/h8300.c (p_operand): Remove.
7342         * config/h8300/h8300.md: Replace p_operand with
7343         const_int_operand.
7344
7345 2002-02-18 Philip Blundell <pb@nexus.co.uk>
7346
7347         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
7348         comment.
7349         (output_return_instruction): Allow use of LDR to unstack
7350         return addresss even for interrupt handlers or when
7351         interworking.  If compiling for ARMv5, use interworking-safe
7352         return instructions by default.  Remove duplicated code and
7353         lengthy "strcat" sequences.
7354
7355 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7356
7357         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
7358         (LINK_EH_SPEC): Define.
7359         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
7360
7361 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
7362
7363         * config/s390/s390.c (s390_emit_prologue): Do not set the
7364         frame_related flag for call-clobbered registers.
7365
7366 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
7367
7368         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
7369         (construct_container): Fix handling of SSE operands.
7370         (ix86_expand_builtin): Fix handling of 64bit pointers.
7371         (mmx_maskmovq_rex): New pattern.
7372
7373 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
7374
7375         * regrename.c (kill_set_value): Handle subregs properly.
7376
7377 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
7378
7379         * objc/objc-act.c (handle_impent): Remove leading '*'
7380         from objc_class_name.
7381
7382 2002-02-17  Richard Henderson  <rth@redhat.com>
7383
7384         * config/alpha/alpha.c (some_small_symbolic_operand,
7385         some_small_symbolic_operand_1, split_small_symbolic_operand,
7386         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
7387         Handle small SYMBOL_REFs anywhere, not just inside memories.
7388         * config/alpha/alpha-protos.h: Update.
7389         * config/alpha/alpha.h (PREDICATE_CODES): Update.
7390         * config/alpha/alpha.md (small symbolic operand splitter): Update.
7391
7392 2002-02-17  Roland McGrath  <roland@frob.com>
7393
7394         * config.gcc (powerpc-*-gnu-gnualtivec*,
7395         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
7396         * config/rs6000/gnu.h: New file.
7397         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
7398         Grok "gnu" in rs6000_abi_name.
7399         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
7400         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
7401         Grok -mcall-gnu analogous to -mcall-linux et al.
7402         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
7403         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
7404         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
7405
7406 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
7407
7408         PR c/3444:
7409         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
7410         shortening.
7411
7412 2002-02-17  Philipp Thomas  <pthomas@suse.de>
7413
7414         * config/cris/cris.h: Undefine STARTFILE_SPEC and
7415         ENDFILE_SPEC before (re)defining them.
7416
7417 2002-02-17  Kazu Hirata  <kazu@hxi.com>
7418
7419         * config/h8300/h8300.c: Fix formatting.
7420         * config/h8300/h8300.h: Likewise.
7421
7422 2002-02-17  Philipp Thomas  <pthomas@suse.de>
7423
7424         * doc/tm.texi: Explain why empty strings should not be
7425         marked for translation.
7426
7427 2002-02-17  Philipp Thomas  <pthomas@suse.de>
7428
7429         * final.c (output_operand_lossage): Changed to accept
7430         printf style arguments. Change calls where necessary.
7431         * output.h (output_operand_lossage): Change declaration
7432         accordingly. Update copyright.
7433         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
7434         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
7435         Update copyright date where necessary.
7436
7437         * config/i386/i386.c (print_operand): Likewise. Remove use of
7438         sprintf.
7439
7440         * config/cris/cris.c (cris_operand_lossage): Likewise.
7441         Rename parameter so that exgettext recognizes it as
7442         translatable message.
7443         (LOSE_AND_RETURN): Rename parameter to msgid.
7444
7445 2002-02-17  Kazu Hirata  <kazu@hxi.com>
7446
7447         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
7448         hard coded register number with an appropriate macro.
7449         (HARD_REGNO_MODE_OK): Likewise.
7450         (ARG_POINTER_REGNUM): Likewise.
7451         (STATIC_CHAIN_REGNUM): Likewise.
7452         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
7453         * config/h8300/h8300.md (define_constants): Define more
7454         register numbers.
7455
7456 2002-02-17  Philipp Thomas  <pthomas@suse.de>
7457
7458         * config/i386/i386.h: Don't mark empty strings for translation.
7459
7460 2002-02-16  H.J. Lu <hjl@gnu.org>
7461
7462         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
7463
7464 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
7465
7466         * cppinit.c (merge_include_chains): Check for brack being
7467         NULL before attempting to merge it with qtail.
7468
7469 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
7470
7471         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
7472         DBX_DEBUG.
7473
7474 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7475
7476         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
7477
7478 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7479
7480         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
7481         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
7482         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
7483
7484 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7485
7486         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
7487         now only if !TARGET_FIX.
7488         (*movsi_nt_vms_fix): New pattern.
7489
7490 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
7491
7492         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
7493         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
7494         (alpha_sa_mask, alpha_sa_size): Reflect above change.
7495         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
7496         (alpha_start_function, alpha_expand_epilogue): Likewise.
7497         (unicosmk_gen_dsib): Likewise.
7498
7499 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7500
7501         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
7502
7503 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
7504
7505         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
7506         check_and_change_labels, s390_final_chunkify): Delete.
7507         (s390_split_branches, s390_chunkify_pool): New functions.
7508         (s390_function_prologue): Call them.
7509
7510         * config/s390/s390.h (S390_REL_MAX): Delete.
7511         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
7512
7513         * config/s390/s390.md (cjump, icjump, jump): Fix length
7514         attribute calculation.
7515
7516
7517 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
7518
7519         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
7520         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
7521
7522 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7523
7524         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
7525         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
7526         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
7527
7528 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
7529
7530         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
7531
7532 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
7533
7534         * reload.c (find_dummy_reload): Check that an output register
7535         is valid for its mode.
7536
7537 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
7538
7539         * combine.c (known_cond): After replacing the REG of a SUBREG, try
7540         to simplify it.
7541
7542         * function.c (assign_parms): Demote promoted argument passed by
7543         transparent reference.
7544
7545 2001-02-14      Joel Sherrill <joel@OARcorp.com>
7546
7547         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
7548         -Acpu() and -Amachine() to eliminate warnings.
7549
7550 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
7551
7552         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
7553
7554 2002-02-14  Kazu Hirata  <kazu@hxi.com>
7555
7556         * config/h8300/h8300-protos.h: Update the prototype for
7557         const_costs.
7558         * config/h8300/h8300.c (const_costs): Treat SET as a little
7559         more expensive operation.
7560         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
7561         reference to const_costs.
7562
7563 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
7564
7565         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
7566
7567 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
7568
7569         PR c/5503:
7570         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
7571         use arguments from newtype.
7572
7573 2002-02-13  Eric Christopher  <echristo@redhat.com>
7574
7575         * config/mips/mips.c (override_options): Add check for march/mipsX
7576         on the same command line. Fix error message in cpu processing.
7577         Remove architecture and ISA checks.
7578
7579 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
7580
7581         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
7582
7583         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
7584
7585 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
7586
7587         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
7588         alternatives.
7589         ("*movv8hi_internal1"): Same.
7590         ("*movv16qi_internal1"): Same.
7591         ("*movv4sf_internal1"): Same.
7592
7593         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
7594         not push_reload for altivec modes.
7595
7596 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
7597
7598         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
7599         all RTEMS targets including removal of #includes from config/*/rtems*.h
7600         file and adding them to tm_file setting. Added xm_defines=POSIX to
7601         many targets.
7602         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
7603         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
7604         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
7605         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
7606         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
7607         config/m68k/rtemself.h: Ditto.
7608         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
7609         config/mips/rtems64.h: Ditto.
7610         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
7611         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
7612         Ditto.
7613         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
7614         config/sparc/rtemself.h: Ditto.
7615         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
7616         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
7617         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
7618         more like arm-elf.
7619         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
7620         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
7621         target made more similar to i386-elf.
7622         * config/i386/t-rtems-i386: Added soft float support and multilibs.
7623         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
7624         be similar to config/m68k/t-m68kelf.
7625         * gthr-rtems.h: Encapsulate with extern "C" for C++.
7626
7627 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
7628
7629         * regmove.c (kill_value): Handle subregs.
7630
7631 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
7632
7633         * i386.md (mul patterns): Allow memory operand to be first;
7634         add expanders where needed; fix constraints.
7635         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
7636         Allow memory operand to be the first.
7637
7638         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
7639         operands.
7640
7641 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
7642
7643         PR c/5681:
7644         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
7645         GET_MODE (x).
7646
7647 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
7648
7649         PR optimization/5547:
7650         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
7651         all valid IA-32 address modes involving non-scaled %ebx and
7652         GOT/GOTOFF as displacement.
7653
7654 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
7655
7656         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
7657         after emitting ltorg insns.
7658
7659         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
7660         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
7661         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
7662         *abssf2): Fix "op_type" attribute.
7663
7664 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
7665
7666         * mkconfig.sh: Avoid using a subshell redirect.
7667         ($output.T): Change to $(output)T.
7668         (ENABLE_NLS): Remove unneeded undef.
7669
7670         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
7671         * config/alpha/x-vms (libsubdir): Define.
7672
7673         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
7674         register frame procedures. Optimize retrieving context.
7675
7676         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
7677         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
7678         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
7679
7680 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7681
7682         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
7683         Make same change as for find_base_value.
7684
7685 2002-02-13  Kazu Hirata  <kazu@hxi.com>
7686
7687         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
7688         of QImode and SImode.
7689
7690 2002-02-13  Kazu Hirata  <kazu@hxi.com>
7691
7692         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
7693         length computation of movsi.
7694         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
7695
7696 2002-02-13  Kazu Hirata  <kazu@hxi.com>
7697
7698         * config/h8300/h8300.md (subqi3): Tighten the predicate for
7699         operands[2] to register_operand.
7700
7701 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
7702
7703         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
7704
7705 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
7706
7707         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
7708         for altivec_lvx* and altivec_stvx*.
7709         ("*movv4si_internal"): Add constraint for loading from GPRs.
7710         ("*movv8hi_internal1"): Same.
7711         ("*movv16qi_internal1"): Same.
7712         ("*movv4sf_internal1"): Same.
7713
7714         * config/rs6000/rs6000.c (altivec_register_operand): New.
7715
7716         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
7717         altivec_register_operand.
7718
7719 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
7720
7721         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
7722         handle SYMBOL_REF.
7723
7724 2002-02-13  Stan Shebs  <shebs@apple.com>
7725
7726         * c-typeck.c (digest_init): Handle vectors.
7727         (really_start_incremental_init): Same.
7728         (pop_init_level): Same.
7729         (process_init_element): Same.
7730
7731         * varasm.c (output_constant): Same.
7732
7733         * expr.c (clear_storage): Same.
7734         (store_constructor): Same.
7735
7736 2002-02-12  Eric Christopher  <echristo@redhat.com>
7737
7738         * explow.c (hard_function_value): Add comment explaining
7739         signed/unsigned comparison.
7740
7741 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
7742
7743         * jump.c (never_reached_warning): Add finish argument.
7744         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
7745         real insn after end.
7746         * rtl.h (never_reached_warning): Adjust prototype.
7747         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
7748         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
7749         never_reached_warning.
7750
7751 2002-02-12  Graham Stott  <grahams@redhat.com>
7752
7753         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
7754
7755 2002-02-12  Kazu Hirata  <kazu@hxi.com>
7756
7757         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
7758         logical shifts on H8/300.
7759         (shift_alg_si): Improve several shifts on H8/300.
7760         (get_shift_alg): Likewise.
7761
7762 2002-02-12  Graham Stott  <grahams@redhat.com>
7763
7764         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
7765
7766 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7767
7768         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
7769         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
7770
7771 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
7772
7773         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
7774         non-CONST_INT through default_assemble_integer.
7775         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
7776         <case 8>: Abort for CONST_DOUBLE.
7777
7778 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7779
7780         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
7781         is specified.
7782         * config/pa/pa-linux.h (LIB_SPEC): Delete.
7783         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
7784
7785 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
7786
7787         * config/stormy16/stormy16.md (zero_extendqihi2): New.
7788
7789 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
7790
7791         * regrename.c (regrename_optimize): Don't accept a
7792         part-clobbered register if the replaced register is not part
7793         clobbered.
7794
7795         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
7796         take padding into account when computing the argument value.
7797
7798         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
7799
7800         * combine.c (try_combine): Apply substitutions in
7801         CALL_INSN_FUNCTION_USAGE too.
7802
7803 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
7804
7805         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
7806         __builtin_altivec_abs*.
7807         (bdesc_abs): New.
7808
7809         * config/rs6000/rs6000.h (rs6000_builtins): Add
7810         ALTIVEC_BUILTIN_ABS*.
7811
7812         * config/rs6000/altivec.h: Use const char for builtins expecting
7813         literals.
7814         (vec_abs): New versions for C and C++.
7815         (vec_abss): Same.
7816
7817 2002-02-10  Kazu Hirata  <kazu@hxi.com>
7818
7819         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
7820         using Pmode.
7821
7822 2002-02-10  Kazu Hirata  <kazu@hxi.com>
7823
7824         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
7825         constant definition from h8300.md.
7826         (FRAME_POINTER_REGNUM): Likewise.
7827         * config/h8300/h8300.md (define_constants): Add FP_REG.
7828
7829 2002-02-10  Kazu Hirata  <kazu@hxi.com>
7830
7831         * config/h8300/h8300.c (print_operand): Remove redundant code.
7832
7833 2002-02-10  Kazu Hirata  <kazu@hxi.com>
7834
7835         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
7836         * config/h8300/h8300.c (byte_reg): Make it static.
7837
7838 2002-02-10  Richard Henderson  <rth@redhat.com>
7839
7840         PR c/5623
7841         * c-typeck.c (incomplete_type_error): Handle flexible array members.
7842
7843 2002-02-10  Richard Henderson  <rth@redhat.com>
7844
7845         PR c++/5624
7846         * tree.c (append_random_chars): Don't abort if main_input_filename
7847         does not exist.
7848
7849 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
7850
7851         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
7852
7853 2002-02-10  Kazu Hirata  <kazu@hxi.com>
7854
7855         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
7856         (pushhi1): Likewise.
7857
7858 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7859
7860         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
7861         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
7862
7863 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
7864
7865         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
7866         remove MASK_VIS.
7867         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
7868
7869 2002-02-09  Kazu Hirata  <kazu@hxi.com>
7870
7871         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
7872         a half of an SImode register on H8/300.
7873
7874 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
7875
7876         * i386.md (movdi_2): Add missing '!'.
7877
7878 2002-02-09  Kazu Hirata  <kazu@hxi.com>
7879
7880         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
7881         definitions.
7882
7883 2002-02-09  Kazu Hirata  <kazu@hxi.com>
7884
7885         * config/h8300/h8300.md (length): Correct the distance valid
7886         for the short branch.
7887
7888 2002-02-09  Kazu Hirata  <kazu@hxi.com>
7889
7890         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
7891
7892 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
7893
7894         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
7895         registers in SImode.
7896         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
7897         part-clobbered.
7898
7899         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
7900         patch.
7901
7902         Contribute sh64-elf.
7903         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
7904         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
7905         (sh_cannot_modify_jumps_p): New function.
7906         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
7907         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
7908         (sh_ms_bitfield_layout_p): New function.
7909         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
7910                     Zack Weinberg  <zack@codesourcery.com>
7911         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
7912         expand_simple_binop instead of expand_binop.
7913         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
7914         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
7915         use of .quad and .uaquad.
7916         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
7917         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
7918         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
7919         * config/sh/sh.md (movdi_const, movdi_const_32bit,
7920         movdi_const_16bit): Make sure all CONSTs have modes.
7921         (sym2PIC): Ditto, but by adjusting all callers.
7922         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
7923         if the prologue calls the SHmedia argument decoder or register
7924         saver.
7925         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
7926         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
7927         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
7928         (sh_expand_epilogue): Don't emit USE of return target register.
7929         (prepare_move_operands): Legitimize DImode PIC addresses.
7930         (sh_media_register_for_return): Skip tr0, used to initialize the
7931         PIC register.
7932         (sh_expand_prologue): Remove explicit USE of return register.
7933         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
7934         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
7935         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
7936         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
7937         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
7938         EXTRA_CONSTRAINT_T.
7939         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
7940         (MOVI_SHORI_BASE_OPERAND_P): New.
7941         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
7942         (EXTRA_CONSTRAINT_T): Define in terms of them.
7943         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
7944         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
7945         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
7946         alternatives supporting TARGET_REGS.
7947         (UNSPEC_GOTPLT): New constant.
7948         (movdi split): Move incrementing of LABEL_NUSES...
7949         (movdi_const, movdi_const_32bit): Here.  Use
7950         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
7951         (movdi_const_16bit): New.
7952         (call, call_value) [flag_pic]: Use GOTPLT.
7953         (call_pop, call_value_pop): New expands.
7954         (call_pop_compact, call_pop_rettramp): New insns.
7955         (call_value_pop_compact, call_value_pop_rettramp): New insns.
7956         (sibcall) [flag_pic]: Use GOT.
7957         (builtint_setjmp_receiver): Remove bogus, unused expand.
7958         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
7959         (*pt, *ptb, ptrel): New insns.
7960         (sym2GOT): Handle DImode GOT.
7961         (sym2GOTPLT, symGOTPLT2reg): New expands.
7962         (sym2PIC): New expand.
7963         (shcompact_return_tramp): Use GOTPLT to return trampoline.
7964         (shcompact_return_tramp_i): Use return register explicitly.
7965         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
7966         disable flag_reorder_blocks.
7967         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
7968         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
7969         clobbers, for clarity.
7970         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
7971         restoring of r0 in macl as MAYBE_DEAD.
7972         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
7973         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
7974         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
7975         alter_subreg all over.
7976         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
7977         reload, instead of emitting instructions that would require
7978         reloading.
7979         (casesi_load_media): Add missing modes.
7980         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
7981         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
7982         as used if the argument decoder is called.
7983         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
7984         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
7985         Pmode, then extend it to DImode if necessary.
7986         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
7987         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
7988         constants in FPU-enabled SHmedia, let them be loaded from memory.
7989         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
7990         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
7991         Adjust whitespace in assembly output templates.
7992         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
7993         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
7994         mode of if_then_else.
7995         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
7996         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
7997         sh.h.
7998         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
7999                     Joern Rennecke <amylaar@redhat.com>
8000         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
8001         (SUBTARGET_CPP_PTR_SPEC): New.
8002         (SUBTARGET_CPP_SPEC): Remove.
8003         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
8004         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
8005         Fix typo in previous checkin.
8006         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
8007         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
8008         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
8009                     Alexandre Oliva  <aoliva@redhat.com>
8010         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
8011         what single FP register can hold for SHmedia target.
8012         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
8013                     Alexandre Oliva  <aoliva@redhat.com>
8014         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
8015         Do not split into SUBREG.
8016         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
8017         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
8018         and added new functions as specified in SH5 ABI r9.
8019         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
8020         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
8021         8-byte boundary.
8022         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
8023         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
8024         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
8025         and consttable_window_ends.
8026         2001-06-03  Graham Stott  <grahams@redhat,com>
8027         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
8028         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
8029         * config/sh/sh.c (print_operand): Handle floating-point pair,
8030         vector and matrix registers.
8031         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
8032         vector modes into account.
8033         * config/sh/sh.md (movv2sf): Split move between registers into
8034         movdf.
8035         (movv4sf, movv16sf): Introduce insns that get split only after
8036         reload.
8037         * config/sh/shmedia.h: Fix Copyright dates.
8038         * config/sh/ushmedia.h: Likewise.  Move loop counter
8039         declarations into conditionals that uses them.
8040         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
8041         loop boundary.
8042         * config/sh/sshmedia.h: Fix Copyright dates.
8043         (sh_media_PUTCFG): Fix constraints.
8044         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
8045         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
8046         ptrmemfunc_vbit_in_delta for SH5.
8047         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
8048         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
8049         * invoke.texi: Likewise.
8050         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
8051         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
8052         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
8053         GCC_pop_shmedia_regs_nofpu): New global symbols.
8054         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
8055         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
8056         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
8057         compact function with nonlocal labels.
8058         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
8059         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
8060         (initial_elimination_offset): Account for their stack space.
8061         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
8062         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
8063         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
8064         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
8065         least one of the operands to be a register.
8066         (movv2sf): Likewise.  Renamed to movv2sf_i.
8067         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
8068         prepare_move_operands() before emitting SHmedia insns.
8069         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
8070         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
8071         Don't save nor initialize r12.  Don't mis-align the stack.
8072         Pad the code with a nop.
8073         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
8074         stack.
8075         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
8076         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
8077         [__SHMEDIA__]: Implement.
8078         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
8079         * config/sh/sh.md: Set latency of `pt' closer to reality.
8080         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
8081         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
8082         Set move, load and store type attributes.
8083         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
8084         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
8085         profiling.
8086         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
8087         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
8088         * config/sh/sh.c (sh_media_register_for_return): New function.
8089         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
8090         branch-target register.
8091         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
8092         * config/sh/sh.md (return_media_i): Use any call-clobbered
8093         branch-target register.
8094         (return_media): If r18 wasn't copied in the prologue, copy it
8095         here.
8096         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
8097         Clear class FP0_REGS.
8098         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
8099         from elf.h.
8100         2001-03-08  DJ Delorie  <dj@redhat.com>
8101         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
8102         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
8103         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
8104         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
8105         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
8106         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
8107         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
8108         return value correctly for call_cookie.
8109         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
8110         * config/sh/crt1.asm (start): Modified so as to call
8111         ___setup_argv_and_call_main.
8112         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
8113         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
8114         SHmedia mode.
8115         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
8116         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
8117         (STRIP_NAME_ENCODING): Use it.
8118         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
8119         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
8120         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
8121         prepare_scc_operands().
8122         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
8123         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
8124         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
8125         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
8126         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
8127         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
8128         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
8129         used in shcompact_incoming_args.
8130         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
8131         change.
8132         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
8133         mode.
8134         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
8135         Adjust accordingly.
8136         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
8137         Simplify.  Adjust.  Add sanity check.
8138         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
8139         FPU_SINGLE_BIT.
8140         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
8141         TARGET_SHCOMPACT.
8142         (udivsi3, divsi3): Use them.
8143         (force_mode_for_call): New insn.
8144         (call, call_value, sibcall_value): Emit it before SHcompact
8145         calls.
8146         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
8147         * config/sh/sh.md (call, call_value, sibcall): Make sure the
8148         call cookie is non-NULL before taking its value.
8149         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
8150         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
8151         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
8152         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
8153         block.
8154         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
8155         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
8156         temporary for stack adjusts.  Use MACL and MACH to pass
8157         arguments to shcompact_incoming_args.
8158         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
8159         clobber r1.
8160         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
8161         (nested_trampoline): Load static chain address into r1.
8162         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
8163         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
8164         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
8165         fp_arith_reg_operand().
8166         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
8167         * config/sh/sh.md (casesi): Sign-extend the first two operands,
8168         and use signed compares for them.
8169         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
8170         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
8171         ones properly aligned.
8172         (find_barrier): Account for extra alignment needed for 8-byte wide
8173         constants.
8174         (machine_dependent_reorg): Require a label for the second 4-byte
8175         constant after an 8-byte one.
8176         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
8177         change.
8178         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
8179         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
8180         last_float when switching float modes.
8181         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
8182         auto-increment for general-purpose registers.
8183         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
8184         result.
8185         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
8186         for stack adjust.
8187         * config/sh/sh.c (sh_builtin_saveregs): Support using all
8188         registers for varargs.
8189         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
8190         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
8191         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
8192         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
8193         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
8194         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
8195         call_cookie accordingly.
8196         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
8197         (SHCOMPACT_BYREF): Likewise.
8198         (SHCOMPACT_FORCE_ON_STACK): New macro.
8199         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
8200         (sh_builtin_saveregs): Likewise.
8201         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8202         shcompact_incoming_args): Use new shift values.  Support
8203         sequences of consecutive and non-consecutive pushes/pops.
8204         * config/sh/sh.md (return): Don't explicitly use PR_REG.
8205         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
8206         * config/sh/sh.h (TEXT_SECTION): Define.
8207         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
8208         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
8209         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
8210         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
8211         return values on FPU-enabled SHmedia.
8212         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
8213         FPU-enabled SHmedia.
8214         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
8215         value is returned in a non-FP reg and is not returned by
8216         reference.
8217         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
8218         jump_ind.
8219         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
8220         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
8221         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
8222         quad-aligned to be passed by callee-copy reference.
8223         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
8224         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
8225         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
8226         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
8227         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
8228         copying low-numbered FP regs to r7 and r8.
8229         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
8230         FP regs to general-purpose regs only if the copy was passed on the
8231         stack.
8232         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
8233         copying FP reg to r9.
8234         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
8235         copy FP regs to general-purpose regs only in outgoing calls.
8236         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
8237         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
8238         HOST_WIDE_INT.
8239         * config/sh/sh.h (struct sh_args): Document all fields.
8240         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
8241         passed partially on the stack should not consider making
8242         sibcalls.
8243         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
8244         stack_regs only for incoming calls.  When passing FP args,
8245         make sure there are FP regs available before modifying
8246         call_cookie.
8247         (SHCOMPACT_BYREF): Pass double args in general-purpose
8248         registers by reference.
8249         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
8250         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
8251         attempt to generate sibcalls if the caller got any arguments
8252         by reference.
8253         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
8254         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
8255         to 8-byte boundaries.
8256         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
8257         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
8258         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
8259         stored in the stack.
8260         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
8261         for the offsets to have the ISA bit set.
8262         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
8263         invocation.  Use beq instead of bgt to mark end of sequence of
8264         loads.
8265         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
8266         bgt to mark end of sequence of stores.
8267         * config/sh/sh.c (arith_operand): Don't check whether
8268         CONST_OK_FOR_J for now.
8269         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
8270         instead of long for conversion.
8271         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
8272         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
8273         before passing it to fprintf.
8274         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
8275         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
8276         Call set_fpscr before reading/writing SR.
8277         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
8278         Call set_fpscr.
8279         * config/sh/lib1funcs.asm: Add `.align 2' directives before
8280         SHmedia code.
8281         (FMOVD_WORKS): Define on SH5 with FPU.
8282         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
8283         setting.
8284         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
8285         _fpscr_values.
8286         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
8287         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
8288         address.
8289         (ia_main_table): Ditto.
8290         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
8291         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8292         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
8293         the definitions from sh.h.
8294         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
8295         TARGET_SH5.
8296         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
8297         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
8298         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
8299         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
8300         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
8301         Increment LABEL_NUSES.
8302
8303         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
8304         TARGET_SH5.
8305         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
8306         defined.
8307         * config/sh/elf.h (SIZE_TYPE): Likewise.
8308         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
8309         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8310         shcompact_incoming_args): Load switch table addresses using
8311         datalabel.
8312         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
8313         (NO_BUILTIN_SIZE_TYPE): Define.
8314         (SIZE_TYPE): Don't define.
8315         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
8316         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
8317         definition of __SH5__=32 for -m5-compact-nofpu.
8318         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
8319         ADDR_DIFF_VEC.
8320         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
8321         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
8322         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
8323         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
8324         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
8325         (INSN_LENGTH_ALIGNMENT): Likewise.
8326         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
8327         * config/sh/sh.md (call, call_value, sibcall): Simplify
8328         copying of non-branch-target register.
8329         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
8330         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
8331         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
8332         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
8333         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
8334         floating-point values as structs.
8335         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
8336         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
8337         general-purpose register.
8338         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
8339         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
8340         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
8341         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
8342         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
8343         (ENCODE_SECTION_INFO): Enclose variables and constants in
8344         DATALABEL unspecs.
8345         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
8346         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
8347         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
8348         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
8349         only for LABEL_REFs.  For SYMBOL_REFs, prepend
8350         SH_DATALABEL_ENCODING to the symbol name.
8351         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
8352         convert_mode().
8353         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
8354         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
8355         UNSPEC_DATALABEL.
8356         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
8357         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
8358         (DATALABEL_REF_P): Don't require CONST.
8359         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
8360         REL label.
8361         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
8362         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
8363         right.
8364         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
8365         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
8366         Use shallow_copy_rtx and PUT_MODE to change the mode of
8367         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
8368         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
8369         on SHmedia using GENERAL_REGs.
8370         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
8371         bltu_media_i): Fix reversion of conditions.
8372         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
8373         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
8374         * config/sh/sh.c (output_far_jump): Save r13 in macl.
8375         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
8376         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
8377         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
8378         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
8379         (GCC_nested_trampoline): Likewise.
8380         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
8381         * config/sh/sh.c (gen_datalabel_ref): Define.
8382         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
8383         (INITIALIZE_TRAMPOLINE): Likewise.
8384         (TRAMPOLINE_ADJUST_ADDRESS): Define.
8385         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
8386         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
8387         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
8388         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
8389         (ic_invalidate): Adjust for SH5.
8390         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
8391         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
8392         _nested_trampoline.
8393         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
8394         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
8395         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
8396         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
8397         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
8398         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
8399         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
8400         * config/sh/sh.c (target_reg_operand): Match only target-branch
8401         registers and pseudos that aren't virtual registers.
8402         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
8403         Copy operands that don't match target_reg_operand to pseudos.
8404         (call_media, call_value_media, sibcall_media): Use
8405         target_reg_operand instead of target_operand.
8406         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
8407         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
8408         * config/sh/sh.c (target_reg_operand): Match hardware registers
8409         other than branch-target registers.
8410         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
8411         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
8412         (fpscr_values) [SH5 == 32]: Define.
8413         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
8414         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
8415         Handle function addresses coming in SUBREGs.
8416         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
8417         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8418         shcompact_return_trampoline): Use datalabel where appropriate.
8419         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
8420         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
8421         general-purpose register to copy one branch-target register to
8422         another.
8423         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
8424         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
8425         SYMBOL_REFs with VOIDmode.
8426         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
8427         bltu_media_i): New insns.
8428         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
8429         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
8430         (INIT_CUMULATIVE_ARGS): Likewise.
8431         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
8432         * machmode.def (V16SFmode): New mode.
8433         * c-common.c (type_for_mode): Support V2SF and V16SF.
8434         * tree.c (build_common_tree_nodes_2): Likewise.
8435         * tree.h (tree_index): Likewise.
8436         * calls.c (emit_call_1): Take args_so_far.  Adjust all
8437         callers.  Introduce CALL_POPS_ARGS.
8438         * tm.texi (CALL_POPS_ARGS): Document.
8439         * config/sh/crt1.asm: Implement in SHmedia mode.
8440         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
8441         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
8442         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
8443         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
8444         Implement divsi and udivsi in SHmedia mode.  Introduce
8445         SHcompact trampolines.
8446         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
8447         only in SHmedia64.
8448         (regno_reg_class): Rewrite.
8449         (fp_reg_names): Remove.
8450         (sh_register_names, sh_additional_register_names): New.
8451         (print_operand): Added `u'.  Support SUBREGs in addresses.
8452         Add parentheses around shifted CONSTs.
8453         (output_file_start): Output .mode and .abi directives.
8454         (shiftcosts, addsubcosts, multcosts): Adjust.
8455         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
8456         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
8457         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
8458         bytes, not registers.  Take into account the need for the
8459         SHcompact incoming args trampoline.  Adjust all callers.
8460         (sh_expand_prologue): Take stack_regs into account.  Call
8461         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
8462         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
8463         stack aligned as per SH5 ABI.
8464         (sh_builtin_saveregs): Support SH5 ABI.
8465         (sh_build_va_list, sh_va_start): Likewise.
8466         (initial_elimination_offset): Take alignment into account.
8467         Compute location of PR according to the SH5 stack frame.
8468         (arith_reg_operand): Reject branch-target registers.
8469         (shmedia_6bit_operand): New.
8470         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
8471         (target_reg_operand): Match DImode only.  Accept SUBREGs.
8472         (target_operand): New.
8473         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
8474         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
8475         SIBCALL_REGS for SHmedia.
8476         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
8477         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
8478         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
8479         (TARGET_SWITCHES): New SH5 flags.
8480         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
8481         VALID_REGISTER_P to disable unsupported registers.
8482         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
8483         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
8484         (FUNCTION_ARG_PADDING): Define.
8485         (FASTEST_ALIGNMENT): Adjust.
8486         (SH_REGISTER_NAMES_INITIALIZER): New.
8487         (sh_register_names): Declare.
8488         (DEBUG_REGISTER_NAMES): Define.
8489         (REGISTER_NAMES): Define based on sh_register_names.
8490         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
8491         (sh_additional_register_names): Declare.
8492         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
8493         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
8494         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
8495         (REGISTER_NATURAL_MODE): Define.
8496         (FIRST_PSEUDO_REGISTER): Adjust.
8497         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
8498         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
8499         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
8500         (VECTOR_MODE_SUPPORTED_P): Define.
8501         (REG_CLASS_CONTENTS): Adjust.
8502         (SMALL_REGISTER_CLASSES): Adjust.
8503         (REG_ALLOC_ORDER): Adjust.
8504         (INDEX_REG_CLASS): Adjust.
8505         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
8506         (CONST_OK_FOR_LETTER_P): Adjust.
8507         (PREFERRED_RELOAD_CLASS): Adjust.
8508         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
8509         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
8510         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
8511         (FIRST_FP_PARM_REG): Adjust.
8512         (CALL_POPS_ARGS): Define.
8513         (FUNCTION_ARG_REGNO_P): Adjust.
8514         (struct sh_args): New fields.
8515         (GET_SH_ARG_CLASS): Adjust.
8516         (INIT_CUMULATIVE_ARGS): Adjust.
8517         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
8518         (FUNCTION_ARG_ADVANCE): Adjust.
8519         (FUNCTION_ARG): Adjust.
8520         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
8521         (FUNCTION_ARG_CALLEE_COPIES): Define.
8522         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
8523         (STRICT_ARGUMENT_NAMING): Define.
8524         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
8525         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
8526         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
8527         (SETUP_INCOMING_VARARGS): Adjust.
8528         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
8529         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
8530         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
8531         (SUBREG_OK_FOR_INDEX_P): Adjust.
8532         (EXTRA_CONSTRAINT_S): Update.
8533         (EXTRA_CONSTRAINT_T): New.
8534         (EXTRA_CONSTRAINT): Adjust.
8535         (GO_IF_LEGITIMATE_INDEX): Adjust.
8536         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
8537         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
8538         (MOVE_MAX): Adjust.
8539         (MAX_MOVE_MAX): Define.
8540         (Pmode): Adjust.
8541         (CONST_COSTS): Adjust.
8542         (REGISTER_MOVE_COST): Adjust.
8543         (BRANCH_COST): Adjust.
8544         (TEXT_SECTION_ASM_OP): Adjust.
8545         (DBX_REGISTER_NUMBER): Adjust.
8546         (ASM_OUTPUT_DOUBLE_INT): New.
8547         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
8548         (PREDICATE_CODES): Adjust.
8549         (PROMOTE_MODE): Adjust.
8550         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
8551         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
8552         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
8553         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
8554         (DR0_REG, DR2_REG, DR4_REG): Renumber.
8555         (TR0_REG, TR1_REG, TR2_REG): New.
8556         (XD0_REG): Renumber.
8557         (UNSPEC_COMPACT_ARGS): New.
8558         (type): Added pt and ptabs.
8559         (length): Default to 4 on SHmedia.  Default pt length to 12
8560         and     20 on SHmedia32 and SHmedia64, respectively.
8561         (pt): New function unit.
8562         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
8563         Add whitespace between operands of SHmedia instructions.
8564         (movdicc): Fix.
8565         (adddi3_media, addsi3_media): Adjust constraints.
8566         (subsi3) [SHmedia]: Force operand 1 into a register.
8567         (udivsi3_i1_media, udivsi3_i4_media): New.
8568         (udivsi3): Support SHmedia.
8569         (divsi3_i1_media, divsi3_i4_media): New.
8570         (divsi3): Support SHmedia.
8571         (anddi3, iordi3, xordi3): Adjust constraints.
8572         (zero_extendhidi2, zero_extendqidi2): New.
8573         (extendsidi2, extendhidi2, extendqidi2): New.
8574         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
8575         (pop_e, pop_fpul, pop_4): Likewise.
8576         (movsi_media): Support FP and BT registers.
8577         (movsi_media_nofpu): New.  Adjust splits to DImode.
8578         (lduw, ldub): Renamed to zero_extend* above.
8579         (movqi_media): Fix typo.
8580         (movdi_media): Support FP and BT registers.
8581         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
8582         (movdi_const_32bit): New.
8583         (shori_media): Require immediate operand.  Use `u' for output.
8584         (movdf_media, movsf_media): Simplified.
8585         (movdf_media_nofpu, movsf_media_nofpu): New.
8586         (movdf, movsf): Adjust
8587         (movv2sf, movv2sf, movv16sf): New.
8588         (beq_media, beq_media_i): Adjust constraints.  Don't use
8589         scratch BT register.
8590         (bne_media, bne_media_i): Likewise.
8591         (bgt_media, bgt_media_i): Likewise.
8592         (bge_media, bge_media_i): Likewise.
8593         (bgtu_media, bgtu_media_i): Likewise.
8594         (bgeu_media, bgeu_media_i): Likewise.
8595         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
8596         bunordered): Emit jump insn.  Force operands to registers when
8597         needed.
8598         (jump_media, jump): Simplify.
8599         (call_compact, call_compact_rettramp): New.
8600         (call_value_compact, call_value_compact_rettramp): New.
8601         (call_media, call_value_media): Simplify.
8602         (sibcall_compact, sibcall_media): New.
8603         (call, call_value): Adjust for SHmedia and SHcompact.
8604         (sibcall, sibcall_value, untyped_call): Likewise.
8605         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
8606         (indirect_jump): Adjust for SHmedia.
8607         (casesi_jump_media): New.
8608         (nop): Re-enable for SHmedia.
8609         (call_site): Restrict to SH1.
8610         (casesi): Adjust for SHmedia.
8611         (casesi_shift_media, casesi_load_media): New.
8612         (return): Explicitly use PR register.  Call return trampoline
8613         on SHcompact.
8614         (return_i): Explicitly use PR register.
8615         (shcompact_return_tramp, shcompact_return_tramp_i): New.
8616         (return_media): Adjust.
8617         (shcompact_incoming_args): New.
8618         (epilogue): Adjust.
8619         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
8620         (movstrsi): Disable on SH5.
8621         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
8622         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
8623         (subsf3, subsf3_media): Likewise.
8624         (mulsf3, mulsf3_media, mac_media): Likewise.
8625         (divsf3, divsf3_media): Likewise.
8626         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
8627         (floatsisf2, fux_truncsfsi2): Likewise.
8628         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
8629         constraints.
8630         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
8631         (cmpunsf_media, cmpsf): Likewise.
8632         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
8633         (abssf2, abssf2_media): Likewise.
8634         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
8635         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
8636         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
8637         (floatsidf2, fix_truncdfsi2): Likewise.
8638         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
8639         constraints.
8640         (cmpeqdf_media, cmpgtdf_media): Likewise.
8641         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
8642         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
8643         (absdf2, absdf2_media): Likewise.
8644         (extendsfdf2, extendsfdf2_media): Likewise.
8645         (truncsfdf2, truncsfdf2_media): Likewise.
8646         * config/sh/sh64.h: New file.
8647         * config/sh/t-sh64: New file.
8648         * config/sh/shmedia.h: New file.
8649         * config/sh/ushmedia.h: New file.
8650         * config/sh/sshmedia.h: New file.
8651         * configure.in: Added sh64-*-elf.
8652         * configure: Rebuilt.
8653         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
8654         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
8655         (reg_class_from_letter): Use `b' for TARGET_REGS.
8656         (print_operand): Support `%M', `%m', `AND' and
8657         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
8658         (andcosts): Adjust for SHmedia.
8659         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
8660         Likewise.
8661         (target_reg_operand): New function.
8662         * config/sh/sh-protos.h (target_reg_operand): Declare.
8663         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
8664         FP registers on SH5.
8665         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
8666         on SH4.
8667         (TARGET_REGISTER_P): New macro.
8668         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
8669         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
8670         (EXTRA_CONSTRAINT_S): New macro.
8671         (EXTRA_CONSTRAINT): Adjust.
8672         (FLOAT_TYPE_SIZE): Define to 32.
8673         (Pmode): DImode on SHmedia.
8674         (CONST_COSTS): Adjust for SHmedia literals.
8675         (PREDICATE_CODES): Added target_reg_operand.
8676         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
8677         * config/sh/sh.md: Remove all attrs from SHmedia insns.
8678         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
8679         (cmpdi): Accept SHmedia.
8680         (movdicc_false, movdicc_true): New insns.
8681         (movdicc): New expand.
8682         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
8683         no_new_pseudos.
8684         (addsi3_media): Match `S' constraint.
8685         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
8686         (negdi2): Expand for SHmedia.
8687         (one_cmpldi2): New expand.
8688         (zero_extendsidi2): Change from expand to insn.
8689         (extendsidi2): Add constraints.
8690         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
8691         LD/ST address.  Fix SI immediate loading split.
8692         (movhi_media, movqi_media, lduw, ldub): New insns.
8693         (movhi, movqi): Accept SHmedia.
8694         (shori_media, movdi_media): Relax input constraints.  Split
8695         symbolic constants.
8696         (movdf_media, movsf_media): New insn.  New split to movdi.
8697         (movdf, movsf): Match on SHmedia.
8698         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
8699         bgeu_media): New insns and splits.  New insns with `_i' suffix.
8700         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
8701         (bunordered): New expand.
8702         (jump_compact): Renamed from `jump'.
8703         (jump_media): New insn.
8704         (jump): New expand.
8705         (call_media, call_value_media): New insns.
8706         (call, call_value): Adjust.
8707         (indirect_jump_compact): Renamed from `indirect_jump'.
8708         (indirect_jump_media): New insn.
8709         (indirect_jump): New expand.
8710         (untyped_call, return): Accept SHmedia.
8711         (return_media): New insn.
8712         (prologue, epilogue, blockage): Accept SHmedia.
8713         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
8714         (sunordered): New expand.
8715         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
8716         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
8717         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
8718         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
8719         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
8720         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
8721         abssf2_media): New insns.
8722         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
8723         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
8724         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
8725         floatdidf2, floatsidf2_media, fix_truncdfdi2,
8726         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
8727         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
8728         absdf2_media): New insns.
8729         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
8730         (extendsfdf2_media, truncdfsf2_media): New insns.
8731         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
8732         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
8733         * config/sh/sh.h (CONST_OK_FOR_J): Document.
8734         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
8735         * config/sh/sh.md (adddi3): New expand.
8736         (adddi3_media, adddi3z_media): New insns.
8737         (adddi3_compact): Renamed from adddi3.
8738         (addsi3_media): Use add.l r63 to add constant zero.
8739         (subdi3): New expand.
8740         (subdi3_media): New insn.
8741         (subdi3_compact): Renamed from subdi3.
8742         (mulsidi3): New expand.
8743         (mulsidi3_media): New insn.
8744         (mulsidi3_compact): Renamed from mulsidi3.
8745         (umulsidi3): New expand.
8746         (umulsidi3_media): New insn.
8747         (umulsidi3_compact): Renamed from umulsidi3.
8748         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
8749         (ashlsi3, ashrsi3, lshrsi3): Use them.
8750         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
8751         (ashldi3, ashrdi3, lshrdi3): Use them.
8752         (zero_extendsidi2): New expand.
8753         (extendsidi2): New insn.
8754         (movsi_media): New insn.  Split to movdi to load constants.
8755         (movsi): Enable for shmedia.
8756         (movdi_media): New insn.  Use shori_media to load wide constants.
8757         (short_media): New insn.
8758         (movdi): Enable for shmedia.
8759         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
8760         * config/sh/sh.h (CPP_SPEC): Added `m5'.
8761         (SUBTARGET_CPP_SPEC): Added `!m5'.
8762         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
8763         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
8764         to all other SH variants.
8765         (TARGET_DEFAULT): Set to SH1_BIT.
8766         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
8767         (BITS_PER_WORD): Raise to 64 on shmedia.
8768         (MAX_BITS_PER_WORD): Change to 64.
8769         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
8770         (INT_TYPE_SIZE): Keep as 32.
8771         (UNITS_PER_WORD): Raise to 8 on shmedia.
8772         (MIN_UNITS_PER_WORD): Keep as 4.
8773         (POINTER_SIZE): Raise to 64 on shmedia.
8774         (CONST_OK_FOR_J): New macro.
8775         (CONST_OK_FOR_LETTER_P): Use it.
8776         (processor_type): Add PROCESSOR_SH5.
8777         * config/sh/sh.md: Conditionalize all expands, insns and
8778         splits to TARGET_SH1.
8779         (cpu): Added sh5.
8780         (addsi3_compact): Renamed from...
8781         (addsi3): Now an expand.
8782         (addsi3_media, subsi3_media): New insns.
8783         (subsi3): Don't negate constants with SHmedia.
8784
8785         * hooks.c: New file.
8786         * hooks.h: New file.
8787         * Makefile.in (HOOKS_H): New.
8788         (TARGET_DEF_H): Added $(HOOKS_H).
8789         (OBJS): Added hooks.o.
8790         (cfgcleanup.o, bb-reorder.o): Added target.h.
8791         (hooks.o): Added dependencies.
8792         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
8793         (TARGET_INITIALIZER): this.
8794         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
8795         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
8796         * bb-reorder.c: Include target.h.
8797         (reorder_basic_blocks): Skip if cannot modify jumps.
8798         * cfgcleanup.c: Include target.h.
8799         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
8800
8801 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
8802
8803         * config/mips/mips.md (casesi_internal, casesi_internal_di):
8804         Protect jump delay slot instructions with .set noreorder and
8805         .set nomacro.
8806
8807 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
8808
8809         * config/mips/mips.md (casesi_internal_di): Calculate
8810         the index into the target offset table correctly.
8811
8812 2002-02-08  Richard Henderson  <rth@redhat.com>
8813
8814         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
8815         * final.c (output_addr_const): Accept and discard SUBREG.
8816         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
8817         mark them unknown instead.
8818         (simplify_subtraction): Handle RTX_UNKNOWN.
8819         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
8820
8821 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
8822
8823         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
8824
8825 2002-02-08  Richard Henderson  <rth@redhat.com>
8826
8827         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
8828
8829 2002-02-08  Andreas Jaeger  <aj@suse.de>
8830
8831         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
8832         * config/i386/t-linux64: New file.
8833
8834 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
8835
8836         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
8837         * c-parse.in (compstmt): Clear last_expr_type.
8838
8839 2002-02-07  Richard Henderson  <rth@redhat.com>
8840
8841         * loop.c (strength_reduce): Sink final_value when not
8842         eliminating a biv.
8843
8844 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
8845
8846         * config/sparc/freebsd.h: Fix mismatched spec {.
8847
8848 2002-02-07  Richard Henderson  <rth@redhat.com>
8849
8850         * cfgrtl.c: Include recog.h and insn-config.h.
8851         (keep_with_call_p): Fix general_operand invocation.
8852         * Makefile.in (cfgrtl.o): Update dependencies.
8853
8854 2002-02-07  Kazu Hirata  <kazu@hxi.com>
8855
8856         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
8857         comment.  Accept HImode only if TARGET_H8300.
8858
8859 2002-02-07  Eric Christopher  <echristo@redhat.com>
8860
8861         * config/mips/crtn.asm: Cleanup #ifdefs.
8862
8863 2002-02-07  Eric Christopher  <echristo@redhat.com>
8864
8865         * config/mips/crti.asm: Add changes for mips16. mips16 uses
8866         register 7 as RA instead of $31.
8867         * config/mips/crtn.asm: Ditto.
8868         * config/mips/mips.c (mips_move_2words): Add case for
8869         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
8870         (compute_frame_size): Fix typo.
8871         (save_restore_insns): Ditto.  Make documentation about using
8872         register $7 as return register more precise.
8873         (mips_expand_epilogue): Fix comment. Add code to work around not
8874         being able to add to the stack pointer directly.
8875         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
8876         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
8877         epilogue.
8878
8879 2002-02-07  Tom Rix  <trix@redhat.com>
8880
8881         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
8882         immediates in ldu and stdu DS opcode field.
8883         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
8884         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
8885         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
8886
8887 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
8888
8889         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
8890         offset for stack bias.
8891
8892 2002-02-07  H.J. Lu <hjl@gnu.org>
8893
8894         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
8895
8896 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
8897
8898         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
8899
8900 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
8901
8902         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
8903         * i386.c (x86_order_regs_for_local_alloc): New global function.
8904         * i386.h (REG_ALLOC_ORDER): CLeanup.
8905         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
8906
8907 2002-02-07  Richard Henderson  <rth@redhat.com>
8908
8909         PR optimization/2463
8910         * alias.c (find_base_value): Recall base values for fixed hard regs.
8911         * loop.c (loop_regs_update): Don't use single_set on non-insns.
8912
8913 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
8914
8915         * config/mips/mips.md (define_delay) [mips16]: Adjust required
8916         length.
8917
8918 2002-02-06  Richard Henderson  <rth@redhat.com>
8919
8920         PR c/5609
8921         * stmt.c (resolve_operand_name_1): Take more care with mixed
8922         named and unnamed operands.
8923
8924 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
8925             Jan Hubicka  <jh@suse.cz>
8926
8927         * loop.c (remove_constant_addition): Avoid clobbering a shared
8928         CONST expression.
8929
8930 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
8931
8932         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
8933         * config/s390/t-linux64: New file.
8934         * config/s390/libgcc-glibc.ver: New file.
8935
8936 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
8937
8938         * config/s390/linux64.h: Delete file.
8939         * config/s390/s390x.h: New file.
8940         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
8941         as target header file.
8942         * config/s390/linux.h (TARGET_VERSION): Define depending on
8943         DEFAULT_TARGET_64BIT.
8944         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
8945         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
8946         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
8947         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
8948         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
8949         (EXTRA_SPEC): New define.
8950         * config/s390/s390.h (TARGET_VERSION): Define depending on
8951         DEFAULT_TARGET_64BIT.
8952         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
8953
8954 2002-02-06  Jason Merrill  <jason@redhat.com>
8955
8956         * c-decl.c (finish_function): Warn about a non-void function with
8957         no return statement and no abnormal exit.
8958         (current_function_returns_abnormally): New variable.
8959         (start_function): Clear it.
8960         (struct c_language_function): Add returns_abnormally.
8961         (push_c_function_context): Save it.
8962         (pop_c_function_context): Restore it.
8963         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
8964         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
8965         an explicit return type.
8966         * c-tree.h: Declare current_function_returns_abnormally.
8967         (C_FUNCTION_IMPLICIT_INT): New macro.
8968         * c-typeck.c (build_function_call): Set it.
8969         (c_expand_return): Set current_function_returns_value even if the
8970         value is erroneous.
8971
8972 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
8973
8974         PR c/5420:
8975         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
8976         unsafe for reevaluation.
8977
8978 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
8979
8980         PR c/5482:
8981         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
8982         EXPR_STMT, but COMPOUND_STMT, recurse into it.
8983
8984 2002-02-06  Richard Henderson  <rth@redhat.com>
8985
8986         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
8987         be a general_operand.  Dest for function value must be a pseudo.
8988
8989 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
8990
8991         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
8992         as SYMBOL_REFs from the constant pool.
8993
8994 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
8995
8996         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
8997         passed by invisible reference.
8998
8999 2002-02-05  Richard Henderson  <rth@redhat.com>
9000
9001         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
9002
9003 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
9004
9005         Implement using "base addresses" in insn operands as default.
9006         * config/mmix/mmix.c (mmix_conditional_register_usage): if
9007         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
9008         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
9009         used to read the rtx value.
9010         (mmix_target_asm_function_epilogue): Fix spacing.
9011         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
9012         (mmix_legitimate_address): Ditto.
9013         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
9014         should be loaded with a GETA insn.  Don't allocate needless extra
9015         char for nul termination and fix misleading comment.
9016         (mmix_print_operand_address): Handle constants if
9017         TARGET_BASE_ADDRESSES.
9018         (mmix_output_register_setting): Use base addressing if
9019         TARGET_BASE_ADDRESSES and the number of insns is 3.
9020         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
9021         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
9022         to use R as constraint, add LDA to match s.
9023         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
9024         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
9025         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
9026         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
9027         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
9028         order with other fixed registers.
9029         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
9030         other parameter/call-clobbered registers.
9031         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
9032         -mbase-addresses, -mno-base-addresses.
9033         (MMIX Options): Ditto.
9034
9035 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9036
9037         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
9038
9039 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
9040
9041         * config/rs6000/altivec.h: Change elem to _S_elem.
9042
9043 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
9044
9045         * config/netbsd.h (WCHAR_TYPE): Define.
9046         (WCHAR_TYPE_SIZE): Ditto.
9047         (WINT_TYPE): Ditto.
9048         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
9049         (WCHAR_UNSIGNED): Ditto.
9050         (WCHAR_TYPE_SIZE): Ditto.
9051         (WINT_TYPE): Ditto.
9052         * config/arm/netbsd.h: Likewise.
9053         * config/i386/netbsd-elf.h: Likewise.
9054         * config/i386/netbsd.h: Likewise.
9055         * config/m68k/netbsd-elf.h: Likewise.
9056         * config/m68k/netbsd.h: Likewise.
9057         * config/ns32k/netbsd.h: Likewise.
9058         * config/sparc/netbsd.h: Likewise.
9059         * config/vax/netbsd.: Likewise.
9060
9061 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
9062
9063         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
9064         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
9065         (TARGET_INITIALIZER): this.
9066         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
9067         (BITFIELD_NBYTES_LIMITED): Markup fix.
9068         * tree.h (default_ms_bitfield_layout_p): Declare.
9069         (record_layout_info): Added prev_field.
9070         * tree.c (default_ms_bitfield_layout_p): New fn.
9071         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
9072         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
9073         * stor-layout.c: Include target.h.
9074         (start_record_layout): Initialize prev_field.
9075         (place_field): Handle MS bit-field layout, and disregard
9076         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
9077         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
9078         * Makefile.in (stor-layout.o): Adjust dependencies.
9079
9080 2002-02-05  Jason Merrill  <jason@redhat.com>
9081
9082         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
9083
9084 2002-02-05  Andreas Jaeger  <aj@suse.de>
9085
9086         * crtstuff.c: Fix comments.
9087
9088 2002-02-05  Richard Henderson  <rth@redhat.com>
9089
9090         PR fortran/3393
9091         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
9092         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
9093
9094         PR fortran/3392
9095         * config/mips/mips.c (function_arg): Handle TImode.
9096         (function_arg_advance): Likewise.
9097
9098 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9099
9100         * config/rs6000/altivec.h (vec_step_help): Rename to
9101         __vec_step_help.
9102
9103 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9104
9105         * config/rs6000/altivec.h: Fix typos.
9106
9107 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
9108
9109         * config/arm/netbsd.h: Correct a comment.
9110
9111 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9112
9113         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
9114         building void typed builtins.
9115
9116         * config/rs6000/altivec.h (vec_ld*): Fix typos.
9117         (vec_step): Implement for C++.
9118
9119 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9120
9121         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
9122
9123 2002-02-04  Richard Henderson  <rth@redhat.com>
9124
9125         * combine.c (nonzero_bits): Re-introduce special case for
9126         sp/fp/ap wrt REGNO_POINTER_ALIGN.
9127
9128 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9129
9130         * doc/extend.texi: Warn about unsupported usage of altivec
9131         builtins.
9132
9133         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
9134         (altivec_predicate_*): New.
9135
9136         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
9137         Add C++ version of vec_*() functions.
9138
9139         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
9140         (bdesc_2arg): Remove altivec predicates.
9141         (altivec_expand_builtin): Handle predicates.
9142         (altivec_init_builtins): Handle predicates.
9143         (altivec_expand_predicate_builtin): New.
9144
9145 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9146
9147         * pa.c (DO_FRAME_NOTES): Move forward.
9148         (store_reg): Revise handling of frame notes.
9149         (load_reg): Likewise.
9150         (set_reg_plus_d): Likewise.
9151         (hppa_expand_prologue): Likewise.
9152         (hppa_expand_epilogue): Likewise.
9153
9154 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9155
9156         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
9157
9158 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
9159
9160         PR c/4475, c++/3780:
9161         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
9162         * c-common.h (SWITCH_TYPE): Define.
9163         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
9164         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
9165         Rename spareness variable to sparseness.
9166         (expand_end_case_type): Renamed from expand_end_case, use orig_type
9167         if non-NULL instead of TREE_TYPE (orig_index).
9168         * tree.h (expand_end_case_type): Renamed from expand_end_case.
9169         (expand_end_case): Define using expand_end_case_type.
9170         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
9171         to expand_end_case_type.
9172         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
9173
9174 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9175
9176         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
9177         (BIGGEST_ALIGNMENT): Change to 128.
9178
9179 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9180
9181         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
9182
9183 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9184
9185         * pa.md (call_internal_reg_64bit): Remove unused variable.
9186
9187 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
9188
9189         * config/arm/arm.h (machine_function): Add uses_anonymous_args
9190         field.
9191         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
9192         * config/arm/arm.c (current_function_anonymous_args): Delete,
9193         replace uses with cfun->machine->uses_anonymous_args.
9194         (arm_reorg): Do not reset uses_anonymous_args.
9195
9196         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
9197         any geenral register.
9198
9199 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
9200
9201         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
9202         the entry block.
9203
9204 2002-02-04  Richard Henderson  <rth@redhat.com>
9205
9206         * combine.c (force_to_mode): Remove STACK_BIAS code.
9207         (nonzero_bits): Likewise.  Replace sp/fp special case with
9208         REGNO_POINTER_ALIGN.
9209
9210         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
9211         (HARD_FRAME_POINTER_REGNUM): New.
9212         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
9213         (FIXED_REGS, CALL_USED_REGS): Update.
9214         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
9215         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
9216         (HARD_REGNO_NREGS): Update for SFP.
9217         (STACK_POINTER_OFFSET): Include bias here ...
9218         (FIRST_PARM_OFFSET): ... not here.
9219         (STACK_BIAS): Remove.
9220         (INIT_EXPANDERS): New.
9221         (STARTING_FRAME_OFFSET): Do not include bias.
9222         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
9223         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
9224         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
9225         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
9226         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
9227         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
9228         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
9229         (MUST_SAVE_REGISTER): Likewise.
9230         (sparc_flat_function_prologue): Likewise.
9231         (sparc_flat_function_epilogue): Likewise.
9232         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
9233         (sparc_init_modes): SFP is GENERAL_REGS.
9234         (sparc_builtin_saveregs): SFP does not have bias applied.
9235
9236 2002-02-04  Richard Henderson  <rth@redhat.com>
9237
9238         * config/alpha/alpha.c (current_function_is_thunk): Don't check
9239         current_function_is_thunk.
9240         (alpha_sa_mask): Distinguish between current_function_is_thunk
9241         called from ASM_OUTPUT_MI_THUNK and not.
9242         (alpha_does_function_need_gp): Thunks always need gp.
9243         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9244         (alpha_output_mi_thunk_osf): New.
9245         * config/alpha/alpha-protos.h: Update.
9246         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
9247
9248 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
9249
9250         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
9251         function types, not when they're taken away.
9252
9253 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
9254
9255         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
9256         CODE_LABEL and jump table when replacing a table jump with a
9257         simple jump.
9258
9259 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
9260
9261         * config/s390/s390-protos.h (legitimize_la_operand,
9262         s390_secondary_input_reload_class, s390_plus_operand,
9263         s390_expand_plus_operand): Add prototypes.
9264
9265         config/s390/s390.c (s390_secondary_input_reload_class,
9266         s390_plus_operand, s390_expand_plus_operand): New functions.
9267
9268         (struct s390_address): New member 'pointer'.
9269         (s390_decompose_address): Compute it.
9270         (legitimate_la_operand_p): Use it.
9271         (legitimize_la_operand): New function.
9272         (movti, movdi, movdf splitters): Call it.
9273
9274         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
9275         (PREDICATE_CODES): Add s390_plus_operand.
9276
9277         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
9278         (la_ccclobber): Allow GENERAL_REGS as output operand.
9279
9280         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
9281         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
9282         (*la_64, *la_31, reload_indi, reload_insi): ... these.
9283
9284 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
9285
9286         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
9287         register names for regular asm () construct.
9288
9289 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
9290
9291         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
9292         registers.
9293
9294 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
9295
9296         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
9297         pat for recog.
9298
9299 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
9300
9301         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
9302         constant pool to be identical by string address and index.
9303
9304 2002-02-04  Anthony Green  <green@redhat.com>
9305
9306         * output.h (SECTION_OVERRIDE): Define.
9307         * varasm.c (named_section): Obey SECTION_OVERRIDE.
9308
9309 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
9310
9311         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
9312         by existing arm*-*-netbsd* (a.out) target.
9313         (ns32k-*-netbsdelf*): Likewise.
9314         (sparc-*-netbsdelf*): Likewise.
9315         (vax-*-netbsdelf*): Likewise.
9316
9317 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
9318
9319         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
9320         headers and libobjc headers.
9321
9322 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
9323
9324         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
9325         (_mingw.h): Remove duplicate include.
9326
9327 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
9328
9329         * config.gcc: Set cpu_type to m68k for 68010, as well.
9330         (m68010-*-netbsdelf*): New...
9331         (m68k*-*-netbsdelf*): ...targets.
9332         * config/m68k/netbsd-elf.h: New file.
9333
9334 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9335
9336         * config/h8300/h8300.c (hand_list): Move inside function_arg.
9337
9338 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9339
9340         * config/h8300/h8300.c (h8_push_ops): Move inside
9341         h8300_init_once.
9342         (h8_pop_ops): Likewise.
9343         (h8_move_ops): Likewise.
9344
9345 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9346
9347         * config/h8300/h8300.c (os_task): Make it static.
9348         (monitor): Likewise.
9349         (pragma_saveall): Likewise.
9350
9351 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
9352
9353         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
9354         constant is a valid sign-extension for Pmode.
9355
9356 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9357
9358         * config/h8300/h8300.c: Fix formatting.
9359
9360 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9361
9362         * config/h8300/h8300.md: Fix formatting.
9363
9364 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9365
9366         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
9367         predicates of operands[1].  Split the patterns for each
9368         processor variant.
9369
9370 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9371
9372         * config/h8300/h8300.md (xor patterns): Tighten the predicates
9373         of operands[1] to register_operand.
9374
9375 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
9376
9377         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
9378         * cpphash.c (_cpp_init_hashtable): Similarly.
9379         * cppinit.c (cpp_create_reader): Default the signed_char flag.
9380         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
9381         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
9382         (cpp_handle_option): Handle the new options.
9383         * cpplex.c (cpp_interpret_charconst): Use new flag.
9384         * cpplib.h (struct cpp_options): New member signed_char.
9385         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
9386         (cpp_options): Handle -fsigned-char and -funsigned-char.
9387         (static_specs): Remove signed_char_spec.
9388         (do_spec1): Don't handle %c.
9389         * system.h: Poison SIGNED_CHAR_SPEC.
9390         * tradcif.y (yylex): Use flag_signed_char.
9391         * tradcpp.h (flag_signed_char): New.
9392         * tradcpp.c (flag_signed_char): New.
9393         (main): Handle new command-line options.
9394         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
9395 config:
9396         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
9397         * avr/avr.h: Remove old comments.
9398         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
9399         (CC1_SPEC): Pass -fsigned-char if -mic*.
9400         (SIGNED_CHAR_SPEC): Remove.
9401 doc:
9402         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
9403
9404 2002-02-01  Eric Christopher  <echristo@redhat.com>
9405
9406         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
9407         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
9408         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
9409         (ASM_OUTPUT_REG_POP): Ditto.
9410
9411 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
9412
9413         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
9414         patch.
9415
9416 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
9417
9418         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
9419
9420 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
9421
9422         PR c/5304:
9423         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
9424         unconditionally.
9425
9426 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
9427
9428         * cfganal.c: Include tm_p.h.
9429         (keep_with_call_p): Fix the test that determines if a register holds
9430         the return value of a call.
9431
9432 2002-02-01  DJ Delorie  <dj@redhat.com>
9433
9434         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
9435         we are given conflicting registers, switch to the other one we
9436         had allocated for us.
9437         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
9438         as TImode so we know when the "other" register is available.
9439
9440 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
9441
9442         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
9443         sparc/sparc_bi.h.
9444
9445 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
9446
9447         * cfganal.c (keep_with_call_p): New function.
9448         (flow_call_edges_add): Prevent splitting a block between a call and
9449         a single-set instruction that should be kept in the same block.
9450
9451 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9452
9453         * doc/install.texi (avr): Update outdated URL.
9454
9455 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
9456
9457         * config/stormy16/stormy16.md (pushqi): New.
9458         (popqi): New.
9459         (pushhi): New.
9460         (pophi): New.
9461         (movhi): Remove stack operands.
9462         (movqi): Likewise.
9463         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
9464         nonimmediate_nonstack_operand.
9465         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
9466         New.
9467         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
9468         New.
9469
9470 2002-01-31  Jason Merrill  <jason@redhat.com>
9471
9472         * Makefile.in (c-parse.c): Handle .output file.
9473         * objc/Make-lang.in (objc-parse.c): Likewise.
9474
9475 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
9476
9477         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
9478         the -me[lb] option is given.  Don't output the default flag
9479         twice.
9480
9481 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
9482
9483         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
9484         the primary source file; this has not been done yet.
9485         * c-decl.c (c_expand_body): Reset input_filename from
9486         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
9487
9488 2002-01-31  Kazu Hirata  <kazu@hxi.com>
9489
9490         * rtlanal.c (subreg_regno_offset): Do not use
9491         SUBREG_REGNO_OFFSET.
9492         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
9493         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
9494
9495 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
9496
9497         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
9498         version rather than GNATS version in --version output.
9499
9500 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
9501
9502         * ifcvt.c (noce_process_if_block): Make a copy of the destination
9503         when copying back from a temporary.
9504
9505 2002-01-30  Richard Henderson  <rth@redhat.com>
9506
9507         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
9508         and new_dest are the same.
9509
9510 2002-01-30  Richard Henderson  <rth@redhat.com>
9511
9512         PR opt/5076
9513         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
9514         * rtl.c (note_insn_name): Update.
9515         * emit-rtl.c (remove_unnecessary_notes): Kill it.
9516         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
9517         to perform loop rotation.
9518         (expand_exit_loop_top_cond): New.
9519         * tree.h (expand_exit_loop_top_cond): Declare it.
9520         * c-semantics.c (genrtl_while_stmt): Use it.
9521         (genrtl_for_stmt): Likewise.
9522
9523 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
9524
9525         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
9526         arguments to 64-bit boundaries on 64-bit ABIs.
9527
9528 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
9529
9530         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
9531
9532 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
9533
9534         * c-decl.c (grokdeclarator): Handle type being a typedef for an
9535         invalid type.
9536
9537 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
9538
9539         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
9540         * config/sparc/sparc_bi.h: Remove file.
9541         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
9542
9543 2002-01-30  Richard Henderson  <rth@redhat.com>
9544
9545         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
9546
9547 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
9548
9549         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
9550
9551 2002-01-30  Jason Merrill  <jason@redhat.com>
9552
9553         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
9554         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
9555         (reg_save): Use DW_CFA_offset_extended_sf instead.
9556
9557         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
9558
9559 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
9560
9561         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
9562         in cselib_lookup.
9563
9564 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
9565
9566         * rs6000.md ("*call_value_local32"): Remove constraints.
9567         ("*call_value_local64"): Same.
9568         ("*call_value_indirect_nonlocal_aix32"): Same.
9569         ("*call_value_nonlocal_aix32"): Same.
9570         ("*call_value_indirect_nonlocal_aix64"): Same.
9571         ("*call_value_nonlocal_aix64"): Same.
9572         ("*call_value_nonlocal_sysv"): Same.
9573
9574 2002-01-29  Richard Henderson  <rth@redhat.com>
9575
9576         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
9577
9578 2002-01-29  Richard Henderson  <rth@redhat.com>
9579
9580         * expr.c (force_operand): Ignore flag_pic for detecting pic
9581         address loads.
9582         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
9583         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
9584         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
9585         instead of open-coded loop.
9586         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
9587         be fixed when in use.
9588
9589 2002-01-29  Richard Henderson  <rth@redhat.com>
9590
9591         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
9592         * sched-rgn.c (propagate_deps): Update them.
9593         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
9594         clobbers list when either gets too long.
9595
9596 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
9597
9598         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
9599         and INDEX_REGS the same as GENERAL_REGS.
9600         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
9601
9602 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
9603
9604         * tree.c (build_nonstandard_integer_type): Correct prototype.
9605
9606 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
9607
9608         * config/s390/s390.md (movstrsico, movstrdix_64,
9609         movstrsix_31): Remove, replace by ...
9610         (movstrdi_short, movstrsi_short, movstrdi_long,
9611         movstrsi_long): ... these.  New.
9612         (movstrdi, movstrsi): Adapt.
9613
9614         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
9615         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
9616         Remove unnecessary CC clobber.
9617         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
9618         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
9619
9620         (divmoddi4): Don't partially initialize TImode register.
9621
9622 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
9623
9624         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
9625
9626 2002-01-29  Richard Henderson  <rth@redhat.com>
9627
9628         * flow.c (print_rtl_and_abort): Remove.
9629         (print_rtl_and_abort_fcn): Remove.
9630         (verify_local_live_at_start): Use dump_bb instead.
9631         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
9632         (verify_wide_reg_1): Return 2 on mode test failure.
9633
9634 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
9635
9636         PR c/3325, c/3326, c/2511, c/3347
9637         * c-decl.c (enum_decl_context): Remove BITFIELD.
9638         (grokdeclarator): Take bitfield width as an input.
9639         Ensure bitfields are given the correct type.  Perform
9640         bitfield width validation with build_bitfield_integer_type
9641         rather than waiting for finish_struct.
9642         (grok_typename, grok_typename_in_parm_context, start_decl,
9643         push_parmdecl, grokfield, start_function): Update calls to
9644         grokdeclarator.
9645         (build_bitfield_integer_type): New function.
9646         (finish_struct): Move bitfield validation to grokdeclarator
9647         and build_bitfield_integer_type.
9648         * tree.c (build_nonstandard_integer_type): New function.
9649         * tree.h (build_nonstandard_integer_type): New prototype.
9650 objc:
9651         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
9652
9653 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
9654
9655         PR other/1502:
9656         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
9657         don't ignore unrecognized -W* options.
9658         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
9659         * cpplib.h (cpp_handle_option): Adjust prototype.
9660         * c-decl.c (c_decode_options): Pass 0 as last argument to
9661         cpp_handle_option.
9662
9663         PR c/2896:
9664         * gcc.c (cpp_unique_options): Split from cpp_options.
9665         (cpp_options): Source cpp_unique_options.
9666         (default_compilers): Use cpp_unique_options instead of cpp_options
9667         when used together with cc1_options.
9668         (static_specs): Add cpp_unique_options.
9669         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
9670         when used together with cc1_options.
9671
9672 2002-01-29  Kazu Hirata  <kazu@hxi.com>
9673
9674         * config/h8300/h8300-protos.h: Update the prototype of
9675         output_a_shift.
9676         * config/h8300/h8300.c (output_a_shift): Remove an unused
9677         argument 'insn'.  Remove redundant code.
9678         * config/h8300/h8300.md: Adust to the new prototype of
9679         output_a_shift.
9680
9681 2002-01-29  Kazu Hirata  <kazu@hxi.com>
9682
9683         * config/h8300/h8300-protos.h: Update the prototypes of
9684         emit_a_rotate and expand_a_rotate.
9685         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
9686         first argument to 'enum rtx_code'.
9687         (expand_a_rotate): Likewise.
9688
9689 2002-01-28  Kazu Hirata  <kazu@hxi.com>
9690
9691         * config/h8300/h8300-protos.h: Update the prototype of
9692         output_simode_bld.
9693         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
9694         'log2'.
9695         * config/h8300/h8300.md: Adjust to the new prototype.
9696
9697 2002-01-28  Kazu Hirata  <kazu@hxi.com>
9698
9699         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
9700         redundant code.
9701
9702 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9703
9704         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
9705         is a fixed register before returning pic_offset_table_rtx.
9706         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
9707         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
9708
9709 2002-01-28  Jason Merrill  <jason@redhat.com>
9710
9711         * dwarf2.h: Sync with src version.
9712
9713 2002-01-28  Paul Koning  <pkoning@equallogic.com>
9714
9715         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
9716         BT_FN_VOID_PTR_VAR.
9717         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
9718         * doc/extend.texi (__builtin_prefetch): Update documentation:
9719         first argument is now const void ptr.
9720
9721 2002-01-28  Kazu Hirata  <kazu@hxi.com>
9722
9723         * config/h8300/h8300-protos.h: Remove an unused prototype.
9724
9725 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
9726
9727         * toplev.c (lang_independent_init): Round up identifier size.
9728
9729 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
9730
9731         * config.gcc: Revert previous change.
9732
9733 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
9734
9735         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
9736
9737 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
9738
9739         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
9740         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
9741         other non-elf netbsd config frags.
9742         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
9743         collect2 will does that.
9744         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
9745         shared-lib frobbing will work.
9746
9747 2002-01-28  Kazu Hirata  <kazu@hxi.com>
9748
9749         * config/h8300/h8300.h: Fix formatting.
9750         * config/h8300/h8300.md: Likewise.
9751
9752 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
9753
9754         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
9755         the old, removed AAA_standards fix.
9756         * fixinc/fixincl.x: Rebuilt.
9757
9758 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
9759
9760         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
9761         atexit call in crtbegin, hooked in after call to frame_dummy;
9762         register EH before registering __fini__start.
9763
9764 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
9765
9766         * config/rs6000/altivec.h: Remove spurious semicolons.
9767
9768 2002-01-27  Kazu Hirata  <kazu@hxi.com>
9769
9770         * config/h8300/h8300.md: Replace dead bit extraction patterns
9771         with ones that work.
9772
9773 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9774
9775         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
9776         if not STRICT_ALIGNMENT.
9777         * rtl.h (MEM_ALIGN): Likewise.
9778
9779 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9780
9781         * doc/invoke.texi (-fdump-translation-unit): Revert this
9782         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9783
9784 2002-01-27  Kazu Hirata  <kazu@hxi.com>
9785
9786         * config/h8300/h8300.md (define_constants): New.
9787         (anonymous patterns) Use defined constants appropriately.
9788
9789 2002-01-27  Kazu Hirata  <kazu@hxi.com>
9790
9791         * config/h8300/h8300.c (function_arg): Remove redundant code.
9792
9793 2002-01-26  Richard Henderson  <rth@redhat.com>
9794
9795         * sched-deps.c (reg_pending_uses_head): New.
9796         (reg_pending_barrier): Rename from reg_pending_sets_all.
9797         (find_insn_list): Don't mark inline.
9798         (find_insn_mem_list): Remove.
9799         (add_dependence_list, add_dependence_list_and_free): New.
9800         (flush_pending_lists): Replace only_write param with separate
9801         for_read and for_write parameters.  Update all callers.  Use
9802         add_dependence_list_and_free.
9803         (sched_analyze_1): Do not add reg dependencies here; just set
9804         the pending bits.  Use add_dependence_list.
9805         (sched_analyze_2): Likewise.
9806         (sched_analyze_insn): Replace schedule_barrier_found with
9807         reg_pending_barrier.  Add all dependencies for pending reg
9808         uses, sets, and clobbers.
9809         (sched_analyze): Don't add reg dependencies for calls, just
9810         set pending bits.  Use regs_invalidated_by_call.  Treat
9811         sched_before_next_call as a normal list, not a fake insn.
9812         (init_deps): No funny init for sched_before_next_call.
9813         (free_deps): Free pending mems lists.  Don't zero reg_last.
9814         (init_deps_global): Init reg_pending_uses.
9815         (finish_deps_global): Free it.
9816         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
9817         (find_insn_mem_list): Remove.
9818         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
9819         (propagate_deps): Use them.  Zero temp mem lists.
9820
9821 2002-01-26  Richard Henderson  <rth@redhat.com>
9822
9823         * Makefile.in (CRTSTUFF_CFLAGS): New.
9824         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
9825         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
9826         crtstuff.c instead of alpha assembly version.
9827         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
9828         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
9829         not FORCE_{INIT,FINI}_SECTION_ALIGN.
9830         (__do_global_dtors_aux): Mark used.
9831         (frame_dummy, __do_global_ctors_aux): Mark used.
9832         (fini_dummy, init_dummy): Remove.
9833
9834         * config/alpha/crtbegin.asm: Remove file.
9835         * config/alpha/crtend.asm: Remove file.
9836         * config/alpha/t-crtbe: Remove file.
9837         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
9838         (LINK_EH_SPEC): New.
9839
9840         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
9841         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
9842         calling constructors.
9843         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
9844
9845         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
9846         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
9847         CRT_END_INIT_DUMMY hack.
9848         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
9849         FORCE_{INIT,FINI}_SECTION_ALIGN.
9850
9851         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
9852         FORCE_{INIT,FINI}_SECTION_ALIGN.
9853
9854         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
9855         invocation sequence.
9856         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
9857
9858         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
9859         (FORCE_CODE_SECTION_ALIGN): New.
9860
9861 2002-01-26  Richard Henderson  <rth@redhat.com>
9862
9863         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
9864
9865 2002-01-26  Richard Henderson  <rth@redhat.com>
9866
9867         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
9868         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
9869
9870 2002-01-26  Kazu Hirata  <kazu@hxi.com>
9871
9872         * config/h8300/h8300.md: Remove bit extraction patterns that
9873         cannot be triggered.
9874         Restrict each bit extraction pattern to a variant on which the
9875         pattern is tested.
9876
9877 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
9878
9879         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
9880
9881 2002-01-26  Kazu Hirata  <kazu@hxi.com>
9882
9883         * config/h8300/h8300.md: Remove bit test patterns that cannot
9884         be triggered.
9885         Restrict each bit test pattern to a variant on which the
9886         pattern is tested.
9887
9888 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9889
9890         * builtins.c (expand_builtin_strncat): Remove redundant check for
9891         INTEGER_CST.
9892
9893 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
9894
9895         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
9896         default setting.
9897         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
9898         existing setting.
9899
9900 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
9901
9902         * dbxout.c (dbxout_init): Use assemble_name rather than just
9903         stripping off the first character.
9904         (dbxout_source_file): Likewise.
9905
9906 2002-01-25  DJ Delorie  <dj@redhat.com>
9907
9908         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
9909         using rtx_equal_p, not by comparing pointers.
9910
9911 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
9912
9913         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
9914         for PIC_OFFSET_TABLE_REGNUM.
9915         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
9916
9917 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
9918
9919         * config.gcc (x86_64-*-freebsd*): New target.
9920         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
9921         value.
9922         (i[34567]86-*-freebsd*): Don't include svr4.h.
9923         * config/i386/freebsd64.h: New file.
9924
9925 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
9926
9927         * config/alpha/x-vms (version): Make static.
9928
9929         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
9930         in previous checkin.
9931
9932         * Makefile.in (install-headers-cp): New target.
9933         * config.gcc (alpha-dec-*vms*): Install headers with
9934         install-headers-cp
9935
9936 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
9937
9938         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
9939         avoid it's copies.
9940
9941 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9942
9943         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
9944         of compare_tree_int.
9945         (expand_builtin_strncat): Likewise.
9946         * c-decl.c (finish_struct): Use tree_low_cst.
9947         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
9948         * tree.c (compare_tree_int): Likewise.
9949
9950 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
9951
9952         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
9953         adjustments even if they are implemented by more than two insns.
9954
9955 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
9956
9957         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
9958         * df.h (struct ref): Kill B.
9959         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
9960
9961         * basic-block.h (PROP_EQUAL_NOTES): New flag.
9962         * flow.c (propagate_one_insn): Use it.
9963         (mark_used_regs): Handle NIL.
9964
9965 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
9966
9967         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
9968         to help folding.
9969
9970 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
9971
9972         * rs6000.md (prefetch): Make address V4SI mode so that the address
9973         is restricted to legitimate form for instruction.
9974
9975 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
9976
9977         * doc/install.texi (xtensa-*-elf): New target.
9978         (xtensa-*-linux*): New target.
9979         * doc/contrib.texi: Add myself.
9980
9981 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
9982
9983         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
9984         purpose register to hold an SImode (or smaller) value.
9985
9986 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
9987
9988         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
9989         registry only.
9990         * crtstuff.c: Likewise.
9991
9992 2002-01-25  Kazu Hirata  <kazu@hxi.com>
9993
9994         * config/h8300/h8300.md (negation patterns): Tighten
9995         predicates to register_operand.
9996
9997 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
9998
9999         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
10000         mode, not Pmode.
10001
10002         * builtins.c (expand_builtin_prefetch): Same.
10003
10004 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10005
10006         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
10007         modes.
10008
10009 2002-01-24  Kazu Hirata  <kazu@hxi.com>
10010
10011         * config/h8300/h8300.c (print_operand): Remove support for
10012         operand character 'A'.
10013         * config/h8300/h8300.md (three anonymous patterns): Replace
10014         operand character 'A' with either 'T' or 'S'.
10015
10016 2002-01-24  Kazu Hirata  <kazu@hxi.com>
10017
10018         * config/h8300/h8300.c (print_operand): Remove support for
10019         operand character 'U'.
10020
10021 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
10022
10023         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
10024
10025 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
10026
10027         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
10028         values to be assigned to the stack pointer.
10029
10030 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
10031
10032         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
10033         to const_double needs to be done right for big-endian systems.
10034
10035 2002-01-24  Jason Merrill  <jason@redhat.com>
10036
10037         PR c++/2432
10038         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
10039         to can_throw_internal.
10040
10041 2002-01-23  Richard Henderson  <rth@redhat.com>
10042
10043         * fold-const.c (fold): Change UINT_MAX test to check vs precision
10044         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
10045
10046 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10047
10048         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
10049         (symGOT2reg): Use them, then set as GOT value as unchanging.
10050         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
10051         as a temporary, if possible.
10052         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
10053         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
10054
10055 2002-01-23  Kazu Hirata  <kazu@hxi.com>
10056
10057         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
10058         accept to accept 0x80 as operands[2].
10059
10060 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10061
10062         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
10063
10064 2002-01-23  Richard Henderson  <rth@redhat.com>
10065
10066         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
10067
10068 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
10069
10070         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
10071         (parmlist_or_identifiers_1): Verify that only a parmlist follows
10072         an attribute.
10073
10074 2002-01-23  Richard Henderson  <rth@redhat.com>
10075
10076         * expr.c (move_by_pieces_1): Extend size before negation.
10077
10078         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
10079         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
10080         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
10081         * config/m68k/t-m68kelf: Likewise.
10082
10083 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
10084
10085         * config/xtensa/elf.h: New file.
10086         * config/xtensa/lib1funcs.asm: New file.
10087         * config/xtensa/lib2funcs.S: New file.
10088         * config/xtensa/linux.h: New file.
10089         * config/xtensa/t-xtensa: New file.
10090         * config/xtensa/xtensa-config.h: New file.
10091         * config/xtensa/xtensa-protos.h: New file.
10092         * config/xtensa/xtensa.c: New file.
10093         * config/xtensa/xtensa.h: New file.
10094         * config/xtensa/xtensa.md: New file.
10095         * config.gcc (xtensa-*-elf*): New target.
10096         (xtensa-*-linux*): New target.
10097         * cse.c (canon_hash): Compare rtx pointers instead of register
10098         numbers.  This is required for the Xtensa port.
10099         * integrate.c (copy_insn_list): Handle case where the static
10100         chain is in memory and the memory address has to be copied to
10101         a register.
10102         * doc/invoke.texi (Option Summary): Add Xtensa options.
10103         (Xtensa Options): New node.
10104         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
10105
10106 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
10107
10108         * diagnostic.c (internal_error): Do ICE suppression only
10109         when ENABLE_CHECKING is not defined.
10110
10111         * c-typeck.c (require_complete_type): Return error_mark_node
10112         if type is error_mark_node.
10113
10114 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
10115
10116         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
10117         -Os and issue a warning.
10118
10119 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
10120
10121         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
10122         current (lack of) need for host configuration by hand.
10123
10124         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
10125         references.  Documentation of some target macros moved from
10126         hostconfig.texi to tm.texi.
10127
10128 2002-01-23  Will Cohen  <wcohen@redhat.com>
10129
10130         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
10131         defined.
10132
10133 2002-01-23  Kazu Hirata  <kazu@hxi.com>
10134
10135         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
10136         operand[3].
10137
10138 2002-01-23  Jason Merrill  <jason@redhat.com>
10139
10140         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
10141
10142         * function.c (assign_parms): Don't put args of inline functions
10143         into registers when not optimizing.
10144
10145 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
10146
10147         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
10148         (prologue_use): New pattern.
10149         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
10150         preference to gen_rtx_USE.
10151         (thumb_expand_prologue): Use gen_prologue_use in preference to
10152         gen_rtx_USE.
10153         (thumb_expand_epilogue): Use gen_prologue_use in preference to
10154         gen_rtx_USE.
10155
10156 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
10157
10158         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
10159
10160 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
10161
10162         PR c/3504
10163         * doc/extend.texi: Correct documentation of __alignof__.
10164
10165 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
10166
10167         * params.h: Rename arguments of DEFPARAM so that it will be
10168         recognized as a translation keyword.
10169
10170 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
10171
10172         * extend.texi: Document altivec functions.
10173         Fix N-bit adjectives in X86 builtin documentation.
10174
10175 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
10176
10177         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
10178         auto_inc_dec values.
10179
10180 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
10181
10182         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
10183         after backslash.
10184         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
10185
10186 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
10187
10188         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
10189
10190 2002-01-22  Richard Henderson  <rth@redhat.com>
10191
10192         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
10193         copy_insn not copy_rtx.
10194
10195 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
10196
10197         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
10198         "nonzero" as that might add "1" bits.  Ensure "constop" is
10199         properly sign extened.
10200         (force_to_mode): Tweak for sign extended constop.
10201
10202 2002-01-22  Richard Henderson  <rth@redhat.com>
10203
10204         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
10205         for_each_rtx instead of assuming we're already looking at the MEM.
10206         (split_small_symbolic_mem_operand): Likewise.
10207         * config/alpha/alpha.h (PREDICATE_CODES): Update.
10208         * config/alpha/alpha.md (small symbolic memory splitters): Update.
10209
10210 2002-01-22  Richard Henderson  <rth@redhat.com>
10211
10212         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
10213         sequence number for the literal.
10214         (divmoddi_internal_er): Likewise.
10215
10216 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10217
10218         PR java/4972
10219         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
10220         in LIBICONV variable.
10221         * configure: Regenerated.
10222
10223 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
10224
10225         * dependence.c (build_def_use): Remove array_idx.
10226
10227         * dwarfout.c (last_filename): Remove.
10228         (output_compile_unit_die): Remove last_filename.
10229
10230 2002-01-22  Roger Sayle  <roger@eyesopen.com>
10231             Richard Henderson  <rth@redhat.com>
10232
10233         PR opt/3640
10234         * fold-const.c (fold): Optimize unsigned comparisons against
10235         UINT_MAX (and similar unsigned constants).
10236
10237 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
10238
10239         * Makefile.in (loop.o): Depend on OPTABS_H.
10240         * loop.c (emit_prefetch_instructions): Check the prefetch operand
10241         against the predicate.
10242
10243         PR target/5379
10244         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
10245         for the address operand.
10246
10247 2002-01-22  Richard Henderson  <rth@redhat.com>
10248
10249         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
10250
10251 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10252
10253         PR other/5450
10254         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
10255         preprocessor flags.
10256
10257 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
10258
10259         * config.gcc (x86_64-*-netbsd*): New target.
10260         * config/i386/netbsd64.h: New file.
10261
10262 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
10263
10264         * regrename.c (kill_value): Fix typo.
10265
10266 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
10267
10268         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
10269
10270         * config/rs6000/rs6000.h: Same.
10271
10272         * function.c (instantiate_virtual_regs): Remove
10273         STARTING_FRAME_PHASE.
10274         (assign_stack_local_1): Same.
10275         Calculate frame phase.
10276
10277 2002-01-22  Nick Clifton  <nickc@redhat.com>
10278
10279         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
10280         variable declaration to outer scope in order to simplify
10281         future extensions.
10282         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
10283         arm_hard_regno_mode_ok.
10284         * config/arm/arm-protos.h: Add a prototype for
10285         arm_hard_regno_mode_ok.
10286         * config/arm/arm.c (soft_df_operand): Remove now redundant
10287         check for DImode values using IP_REGNUM.
10288         (nonimmediate_soft_df_operand): Remove now redundant check for
10289         DImode values using IP_REGNUM.
10290         (arm_hard_regno_mode_ok): New function. New check: make sure
10291         that DImode values are not stored in IP_REGNUM.
10292
10293         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
10294         note with a USE.
10295         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
10296
10297 2002-01-22  Jason Merrill  <jason@redhat.com>
10298
10299         * c-semantics.c (genrtl_compound_stmt): Only check nesting
10300         consistency if this COMPOUND_STMT is scoped.
10301
10302 2002-01-22  Kazu Hirata  <kazu@hxi.com>
10303
10304         * predict.c: Fix formatting.
10305         * print-tree.c: Likewise.
10306         * protoize.c: Likewise.
10307         * real.h: Likewise.
10308         * rtl.h: Likewise.
10309         * sbitmap.h: Likewise.
10310         * scan.c: Likewise.
10311         * sched-deps.c: Likewise.
10312         * sched-vis.c: Likewise.
10313         * sdbout.c: Likewise.
10314         * sibcall.c: Likewise.
10315         * ssa.c: Likewise.
10316         * ssa-ccp.c: Likewise.
10317         * ssa-dce.c: Likewise.
10318         * stmt.c: Likewise.
10319         * stor-layout.c: Likewise.
10320         * system.h: Likewise.
10321
10322 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10323
10324         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
10325         if fits in bounds of base type.
10326
10327         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
10328         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
10329         (add_bound_info, default): If can't find a context, make a
10330         SAVE_EXPR.
10331         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
10332
10333 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
10334
10335         * c-typeck.c (parser_build_binary_op): If result from
10336         build_binary_op is ERROR_MARK just return error_mark_node without
10337         further processing.
10338
10339 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
10340
10341         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
10342         Split a.out-specific bits into...
10343         * config/netbsd-aout.h: ...this.
10344         * config/netbsd-elf.h: New file.
10345         * config/alpha/netbsd-elf.h: Remove.
10346         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
10347         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
10348         (STARTFILE_SPEC): Remove redundant definition.
10349         (ENDFILE_SPEC): Likewise.
10350         (LINK_SPEC): Likewise.
10351         (CPP_SPEC): Likewise.
10352         (ASM_SPEC): Likewise.
10353         (LIB_SPEC): Likewise.
10354         (SWITCH_TAKES_ARG): Likewise.
10355         (TARGET_MEM_FUNCTIONS): Likewise.
10356         (CPP_PREDEFINES): Redefine.
10357         (ASM_FINAL_SPEC): Remove redefinition.
10358         (ASM_COMMENT_START): Redefine.
10359         (FUNCTION_PROFILER): Define.
10360         (TARGET_VERSION): Redefine.
10361         Comment and formatting cleanup.
10362         * config/i386/netbsd.h: Include <netbsd-aout.h>.
10363         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
10364         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
10365         big- or little-endian.
10366         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
10367         * config.gcc (*-*-netbsd*): Add definitions common to all
10368         NetBSD configs.
10369         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
10370         gnu_ld definitions.  Add netbsd-elf.h to and remove
10371         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
10372         tmake_file, and don't lose previous tmake_file contents.
10373         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
10374         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
10375         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
10376         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
10377         (mipsel-*-netbsd*): Rename this to...
10378         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
10379         mips/little.h to tm_file for mips*el-*.
10380         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
10381         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
10382         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
10383
10384 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10385
10386         * pa-protos.h (reg_before_reload_operand): New function prototype.
10387         * pa.c (reg_before_reload_operand): New function implementation.
10388         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
10389         contraints to "*m".
10390
10391 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10392
10393         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
10394
10395 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10396
10397         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
10398         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
10399         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
10400         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
10401         (ENDFILE_SPEC): Undefine.
10402         (STARTFILE_SPEC): Redefine for PA.
10403
10404 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10405
10406         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
10407
10408 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
10409
10410         * config.gcc: Add entries to supported PowerPC --with-cpu
10411         types.
10412
10413 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
10414
10415         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
10416         true for 64-bit mode only SSE registers in 32-bit mode.
10417
10418 2002-01-21  Kazu Hirata  <kazu@hxi.com>
10419
10420         * unwind-dw2.c: Fix formatting.
10421         * unwind-dw2-fde.c: Likewise.
10422         * unwind-dw2-fde.h: Likewise.
10423         * unwind-pe.h: Likewise.
10424         * varasm.c: Likewise.
10425         * varray.h: Likewise.
10426
10427 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
10428
10429         Remove workaround for register stack overwrite bug in mmix.
10430         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
10431         support for TARGET_REG_STACK_FILL_BUG.
10432         * config/mmix/mmix.h: Remove member has_call_without_parameters.
10433         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
10434         Delete.
10435         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
10436         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
10437         -mno-reg-stack-fill-bug-workaround.
10438         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
10439         machine member has_call_without_parameters.
10440         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
10441         -mreg-stack-fill-bug-workaround and
10442         -mno-reg-stack-fill-bug-workaround.
10443         (MMIX Options): Ditto.
10444
10445 2002-01-21  Kazu Hirata  <kazu@hxi.com>
10446
10447         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
10448         as appropriate.
10449         Remove redundant code.
10450
10451 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
10452
10453         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
10454         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10455         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10456         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
10457         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
10458         out target macro definitions and non-target-specific comments
10459         mostly taken from old versions of the manual.
10460
10461 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10462
10463         * config/h8300/h8300.h: Fix comment formatting.
10464         * config/ia64/aix.h: Likewise.
10465         * config/ia64/ia64-protos.h: Likewise.
10466         * config/ia64/ia64.c: Likewise.
10467         * config/ia64/ia64.h: Likewise.
10468         * config/ia64/ia64intrin.h: Likewise.
10469         * config/ia64/linux.h: Likewise.
10470         * config/ia64/unwind-aix.c: Likewise.
10471         * config/ia64/unwind-ia64.c: Likewise.
10472
10473 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10474
10475         * config/h8300/h8300.c: Revise comments about shift code.
10476
10477 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10478
10479         * config/h8300/h8300.c (function_arg): Update a comment.
10480
10481 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10482
10483         * config/h8300/h8300.md: Update the comments at the beginning
10484         of the file.
10485
10486 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10487
10488         * config/i370/i370.c: Fix comment formatting.
10489         * config/i370/i370.h: Likewise.
10490         * config/i370/i370.md: Likewise.
10491         * config/i370/linux.h: Likewise.
10492
10493 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10494
10495         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
10496
10497         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
10498         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
10499         in incomplete case.
10500
10501 2002-01-20  Graham Stott  <grahams@redhat.com>
10502
10503         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
10504
10505 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10506
10507         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
10508
10509 2002-01-19  Tom Rix  <trix@redhat.com>
10510
10511         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
10512
10513 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
10514
10515         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
10516
10517         * function.c (assign_stack_local_1): Adjust x_frame_offset with
10518         STARTING_FRAME_PHASE.
10519         (STARTING_FRAME_PHASE): New.
10520         (instantiate_virtual_regs): Check saneness of
10521         STARTING_FRAME_PHASE.
10522
10523         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
10524
10525 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
10526
10527         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
10528
10529 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10530
10531         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
10532         be used for bootstrapping GCC 3.0.
10533
10534 2002-01-18  Kazu Hirata  <kazu@hxi.com>
10535
10536         * config/h8300/h8300.md: Fix an insn length.
10537
10538 2002-01-18  Kazu Hirata  <kazu@hxi.com>
10539
10540         * bitmap.h: Fix comment formatting.
10541         * combine.c: Likewise.
10542         * cppfiles.c: Likewise.
10543         * c-pragma.h: Likewise.
10544         * c-typeck.c: Likewise.
10545         * df.c: Likewise.
10546         * dwarf2out.c: Likewise.
10547         * function.c: Likewise.
10548         * gcc.c: Likewise.
10549         * genattrtab.c: Likewise.
10550         * gthr-win32.h: Likewise.
10551         * haifa-sched.c: Likewise.
10552         * predict.c: Likewise.
10553         * rtlanal.c: Likewise.
10554         * rtl.h: Likewise.
10555         * unwind-dw2-fde.h: Likewise.
10556         * unwind-pe.h: Likewise.
10557         * vmsdbgout.c: Likewise.
10558
10559 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10560
10561         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
10562         if type_required and passed decl.
10563
10564 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
10565
10566         * config.gcc (cpu_type): Include altivec.h in powerpc
10567         extra_headers.
10568         Same for darwin.
10569
10570         * config/rs6000/altivec.h: New.
10571
10572 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
10573
10574         * doc/install.texi (*-ibm-aix*): Update assembler and exception
10575         handling information.
10576         * doc/trouble.texi (Interoperation): Add libstdc++ information
10577         for AIX.
10578         (Misunderstandings): Add template instantiation and static template
10579         member information for AIX.
10580
10581 2002-01-17  Jason Merrill  <jason@redhat.com>
10582
10583         * dbxout.c (dbxout_type): Support const and volatile.
10584
10585         * except.c (add_partial_entry): Remove backwards compatibility code.
10586         (end_protect_partials): Likewise.
10587
10588 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
10589
10590         * config/ia64/ia64.md (prologue_use): New.
10591         * config/ia64/ia64.c (ia64_expand_prologue): Use
10592         gen_prologue_use instead of gen_rtx_USE.
10593         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
10594         as CODE_FOR_pred_rel_mutex.
10595         (ia64_sched_reorder2): Likewise.
10596
10597 2002-01-16  Eric Christopher  <echristo@redhat.com>
10598
10599         * config/mips/r3900.h: Reformat.
10600         (SUBTARGET_CPP_SIZE_SPEC): Remove.
10601         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
10602         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
10603         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
10604         * config/mips/t-elf: Remove mips3 multilib.
10605
10606 2002-01-16  H.J. Lu <hjl@gnu.org>
10607
10608         * config/mips/linux.h: Include "mips/abi64.h".
10609
10610 2002-01-16  H.J. Lu <hjl@gnu.org>
10611
10612         * config/mips/t-linux: New.
10613
10614         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
10615
10616         * config/mips/linux.h: Don't include "gofast.h".
10617         (INIT_SUBTARGET_OPTABS): Removed.
10618
10619 2002-01-16  Kazu Hirata  <kazu@hxi.com>
10620
10621         * config/h8300/h8300-protos.h: Replace emit_a_shift with
10622         output_a_shift.
10623         * config/h8300/h8300.c: Likewise.
10624         * config/h8300/h8300.md: Likewise.
10625
10626 2002-01-16  Kazu Hirata  <kazu@hxi.com>
10627
10628         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
10629         spaces after an opcode name.
10630         (pushqi1_h8300hs): Likewise.
10631         (pushhi1_h8300hs): Likewise.
10632
10633 2002-01-16  Kazu Hirata  <kazu@hxi.com>
10634
10635         * doc/extend.texi: Replace "option" with "attribute"
10636         appropriately.
10637
10638 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
10639
10640         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
10641         (and:DI () (const_int -8)).
10642         (split_small_symbolic_mem_operand): Split
10643         (mem (and:DI () (const_int -8)).
10644
10645 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
10646
10647         PR target/5309:
10648         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
10649         same way as TYPE_IMUL.
10650         (ultrasparc_sched_reorder): Likewise.
10651         * config/sparc/sparc.md (type): Add comment to update
10652         ultrasparc_sched_reorder when making changes.
10653
10654 2002-01-16  Kazu Hirata  <kazu@hxi.com>
10655
10656         * doc/invoke.texi: Change the dump file name of block
10657         reordering pass from 28.bbro to 29.bbro.
10658         Mention -dk option.
10659
10660 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
10661
10662         * i386.md (minsf splitter): Fix pasto.
10663
10664 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
10665
10666         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
10667         to frame pointer initialisation instruction.
10668         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
10669         initialisation instruction.
10670         (soft_df_operand): Do not accept the IP register.
10671         (nonimmediate_soft_df_operand): Do not accept the IP register.
10672
10673 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
10674
10675         PR target/5357:
10676         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
10677         MASK_V8 being both set.
10678
10679 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
10680
10681         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
10682         insn for GOT register; add REG_MAYBE_DEAD notes instead.
10683         config/s390/s390.md (call, call_value): Add GOT register to
10684         CALL_INSN_FUNCTION_USAGE where needed.
10685         (call_exp, call_value_exp): New.
10686
10687 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
10688
10689         * config/arm/arm.c: General formatting tidy up.
10690
10691 2002-01-16  Graham Stott  <grahams@redhat.com>
10692
10693         * calls.c (try_to_integrate): Use "(size_t)" intermediate
10694         cast and when casting an integer literal to "rtx" pointer.
10695         (expand_call): Likewise.
10696         * flow.c (try_pre_increment): Likewise.
10697         (find_use_as_address): Likewise.
10698         * integrate.c (expand_iline_function): Likewise.
10699         * regmove.c (try_auto_increment): Likewise.
10700
10701 2002-01-16  Graham Stott  <grahams@redhat.com>
10702
10703         * sched-rgn.c (passed): Use sbitmap_free.
10704         (header): Likewise.
10705         (inner): Likewise.
10706         (in_queue): Likewise.
10707         (in_stack): Likewise.
10708
10709 2002-01-15  Eric Christopher  <echristo@redhat.com>
10710
10711         * flow.c (propagate_one_insn): Change to use fatal_insn.
10712
10713 2002-01-15  Kazu Hirata  <kazu@hxi.com>
10714
10715         * expmed.c (extract_fixed_bit_field): Remove unused code.
10716         * system.h: Poison SLOW_ZERO_EXTEND.
10717         * doc/tm.texi: Remove.
10718         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
10719         * config/arm/arm.h: Likewise.
10720         * config/avr/avr.h: Likewise.
10721         * config/clipper/clipper.h: Likewise.
10722         * config/convex/convex.h: Likewise.
10723         * config/d30v/d30v.h: Likewise.
10724         * config/dsp16xx/dsp16xx.h: Likewise.
10725         * config/elxsi/elxsi.h: Likewise.
10726         * config/fr30/fr30.h: Likewise.
10727         * config/h8300/h8300.h: Likewise.
10728         * config/i370/i370.h: Likewise.
10729         * config/i386/i386.h: Likewise.
10730         * config/m68k/m68k.h: Likewise.
10731         * config/mips/mips.h: Likewise.
10732         * config/ns32k/ns32k.h: Likewise.
10733         * config/pdp11/pdp11.h: Likewise.
10734         * config/pj/pj.h: Likewise.
10735         * config/s390/s390.h: Likewise.
10736         * config/sh/sh.h: Likewise.
10737         * config/stormy16/stormy16.h: Likewise.
10738         * config/v850/v850.h: Likewise.
10739         * config/vax/vax.h: Likewise.
10740         * config/we32k/we32k.h: Likewise.
10741
10742 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
10743
10744         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
10745         (altivec_lvsl): Change constraint to b.
10746         (altivec_lvsr): Same.
10747         (altivec_lvebx): Same.
10748         (altivec_lvehx): Same.
10749         (altivec_lvewx): Same.
10750         (altivec_lvxl): Same.
10751         (altivec_lvx): Same.
10752         (altivec_stvx): Add parallel.
10753         (altivec_stvxl): Same.
10754         (altivec_stvehx): Same.
10755         (altivec_stvebx): Same.
10756         (altivec_stvebx): Same.
10757
10758 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
10759
10760         * config.gcc: Change altivec.h to altivec-defs.h.
10761
10762         * config/rs6000/altivec.h: Delete.
10763
10764         * config/rs6000/altivec-defs.h: Add.
10765
10766 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10767
10768         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
10769         and UMOD modes.
10770
10771         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
10772         less than or equal to eight bytes.
10773
10774         * vax.md (andsi3): Remove constraints and change SET destination
10775         operand type to nonimmediate_operand.
10776         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
10777         when it is a CONST_INT.
10778
10779 2002-01-15  Jason Merrill  <jason@redhat.com>
10780
10781         * c-common.def (FILE_STMT): New code.
10782         * c-common.c (statement_code_p): It's a statement.
10783         * c-common.h (stmt_tree_s): Add x_last_filename.
10784         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
10785         (last_expr_filename): New macro.
10786         * c-semantics.c (begin_stmt_tree): Initialize it.
10787         (add_stmt): If the filename changed, also insert a
10788         FILE_STMT.
10789         (expand_stmt): Handle seeing one.
10790
10791 2002-01-15  Eric Christopher  <echristo@redhat.com>
10792
10793         * flow.c (propagate_one_insn): Add error message and print out
10794         insn for debugging.
10795
10796 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
10797
10798         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
10799         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
10800         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
10801         TRAMPOLINE_ALIGNMENT.
10802         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
10803         to be in bits.
10804         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
10805         PCC_BITFIELD_TYPE_MATTERS.
10806         * config/interix.h (STDC_VALUE): Remove.  Use
10807         STDC_0_IN_SYSTEM_HEADERS.
10808         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
10809         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
10810         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
10811
10812 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10813
10814         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
10815         not work on this platform currently.
10816
10817 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
10818
10819         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
10820         readonly_warning in _().
10821
10822 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
10823
10824         * gcc.c (delete_if_ordinary): Backout previous change.
10825
10826 2002-01-15  Kazu Hirata  <kazu@hxi.com>
10827
10828         * config/h8300/h8300.c (print_operand): Remove support for
10829         unused operand characters.
10830
10831         * read-rtl.c: Fix formatting.
10832         * real.c: Likewise.
10833         * recog.c: Likewise.
10834         * regclass.c: Likewise.
10835         * regmove.c: Likewise.
10836         * reg-stack.c: Likewise.
10837         * reload1.c: Likewise.
10838         * rtlanal.c: Likewise.
10839
10840 2002-01-15  Kazu Hirata  <kazu@hxi.com>
10841
10842         * config/i386/i386.c: Fix formatting.
10843
10844 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
10845
10846         * c-typeck.c (process_init_element): Don't save_expr
10847         COMPOUND_LITERAL_EXPR if just its initializer will be used.
10848
10849 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
10850
10851         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
10852         emit optional traceback table if optimize_size or TARGET_ELF.
10853         * config/rs6000/rs6000.md (prefetch): New.
10854
10855 2002-01-15  Andreas Jaeger  <aj@suse.de>
10856
10857         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
10858
10859 2002-01-15  Kazu Hirata  <kazu@hxi.com>
10860
10861         * mips-tfile.c: Fix formatting.
10862
10863 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
10864
10865         * unroll.c (final_reg_note_copy): Fix previous commit.
10866
10867 2002-01-14  Kazu Hirata  <kazu@hxi.com>
10868
10869         * config/h8300/h8300-protos.h: Remove the prototype for
10870         eq_operator.
10871         * config/h8300/h8300.c (eq_operator): Remove.
10872
10873 2002-01-14  Richard Henderson  <rth@redhat.com>
10874
10875         * config/i386/i386.md (prefetch): Tidy.
10876         (prefetch_3dnow): Fix locality operand.
10877
10878 2002-01-14  Richard Henderson  <rth@redhat.com>
10879
10880         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
10881         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
10882
10883 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
10884
10885         * reload1.c (reload_combine): Pass reg_sum replacement through
10886         copy_rtx in loop performing multiple changes.
10887
10888 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
10889
10890         * except.c (remove_unreachable_regions): New.
10891         (free_eh_status): Clear exception_handler_labels.
10892         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
10893         (find_exception_handler_labels): Don't add the same label more than
10894         once.
10895         (remove_exception_handler_label): Don't die if
10896         find_exception_handler_labels hasn't been called for the current
10897         function yet.
10898
10899 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
10900
10901         * toplev.c (rest_of_compilation): Rebuild jump labels after
10902         gcse.
10903
10904 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
10905
10906         * doc/extend.texi: Move documentation of X86 built-in functions
10907         here.
10908         * doc/invoke.texi: From here.
10909         * doc/sourcebuild.texi: Document location of documentation for
10910         machine built-in functions.
10911
10912 2002-01-13  Christopher Faylor  <cgf@redhat.com>
10913
10914         * cppfiles.c (TEST_THRESHOLD): New macro.
10915         (SHOULD_MMAP): Ditto.
10916         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
10917         be used.
10918
10919 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
10920
10921         * unroll.c (final_reg_note_copy): Properly handle
10922         REG_LABEL
10923         (unroll_loops): Fix LOOP_CONDITION heuristics.
10924
10925 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
10926
10927         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
10928         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
10929
10930 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
10931
10932         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
10933         threaded loop.
10934
10935 2002-01-14  Tom Rix  <trix@redhat.com>
10936
10937         * config/rs6000/rs6000.md: Fix typo with sradi.
10938
10939 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
10940
10941         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
10942         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
10943         (clrstrdi, clrstrsi): Adapt callers.
10944
10945         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
10946
10947         (movti splitter): Never use register 0 as base register.
10948
10949 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
10950
10951         * combine.c (simplify_shift_const): Always generate new rtx
10952         for shift expression instead of reusing given expression.
10953
10954 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10955
10956         * config/alpha/alpha.c (alpha_expand_mov): Don't call
10957         alpha_legitimize_address unless mode is Pmode.
10958
10959 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
10960
10961         * doc/md.texi (Modifiers): Document the '*' constraint for the
10962         user.
10963
10964         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
10965         * doc/extend.texi (Function Attributes): 'interrupt' is valid
10966         for xstormy16 too.
10967
10968 2002-01-13  Richard Henderson  <rth@redhat.com>
10969
10970         * reload.c (find_reloads): Use a hard reg destination as reload reg
10971         for an input reload of the source.
10972
10973 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10974
10975         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
10976         more generic.
10977
10978 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
10979
10980         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
10981         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
10982
10983         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
10984
10985 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10986
10987         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
10988
10989 2002-01-12  Tom Rix  <trix@redhat.com>
10990
10991         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
10992         TARGET_POWERPC64.
10993
10994 2002-01-12  Richard Henderson  <rth@redhat.com>
10995
10996         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
10997
10998         * doc/invoke.texi: Update Alpha options.
10999
11000         * doc/invoke.texi: Update i386 built-in function lists.
11001
11002 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
11003
11004         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
11005         referencing outside.
11006
11007 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11008
11009         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
11010         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
11011         offsets, and change line folding.
11012         * optabs.c (expand_binop): Remove warnings.
11013         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
11014
11015 2002-01-12  Graham Stott <grahams@redhat.com>
11016
11017         * attribs.c (handle_deprecated_attribute): constify WHAT.
11018         * diagnostic.c (warn_deprecated_use): Add braces, fixes
11019         dangling else warning and constify WHAT.
11020         * except.h (struct function, struct inline_remap): Move
11021         struct tag forward defs before all prototypes.
11022         (duplicate_eh_regions): Whitespace.
11023
11024 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
11025
11026         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11027         MODE_BASE_REG_CLASS.
11028         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
11029
11030 2002-01-12  Richard Henderson  <rth@redhat.com>
11031
11032         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
11033         (ix86_expand_vector_move): New.
11034         (bdesc_2arg): Remove andps, andnps, orps, xorps.
11035         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
11036         Remove old prefetch builtins.  Special case the logicals removed above.
11037         (ix86_expand_builtin): Likewise.
11038         (safe_vector_operand): Use V4SFmode, not TImode.
11039         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
11040         (ix86_expand_timode_binop_builtin): New.
11041         * config/i386/i386-protos.h: Update.
11042         * config/i386/i386.h (enum ix86_builtins): Update.
11043         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
11044         Use ix86_expand_vector_move in vector move expanders.
11045         (movti_internal, movti_rex64): Add xorps alternative.
11046         (sse_clrv4sf): Rename and adjust from sse_clrti.
11047         (prefetch): Don't work so hard.
11048         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
11049         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
11050         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
11051
11052 2002-01-11  Richard Henderson  <rth@redhat.com>
11053
11054         * config/i386/mmintrin.h: New file.
11055         * config/i386/xmmintrin.h: New file.
11056         * config.gcc (i?86-*-*): Add extra_headers.
11057         * simplify-rtx.c (simplify_unary_operation): Handle saturating
11058         truncation codes.
11059         (simplify_binary_operation): Handle saturating arithmetic codes.
11060         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
11061         not the lowpart subreg.
11062         (ix86_expand_builtin): Return a TImode dummy register instead of 0
11063         on error.
11064         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
11065
11066 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11067
11068         * conflict.c (conflict_graph_compute): Free regsets when finished.
11069         * ssa.c (compute_coalesced_reg_partition): Likewise.
11070
11071 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11072
11073         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
11074         every where we allocate a register.
11075
11076 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11077
11078         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
11079         * lcm.c (compute_earliest, compute_farthest): Likewise.
11080
11081 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
11082
11083         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
11084
11085 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
11086
11087         * doc/rtl.texi (Insns): Fix 2 typos.
11088
11089 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
11090
11091         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
11092         options.  Use @table @gcctabopt for MMIX options.  Add index
11093         entries for MMIX options.  Start new paragraph with first
11094         heading of the machine-dependent options.
11095
11096 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11097
11098         PR other/5299
11099         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
11100         * combine.c (force_to_mode): Same.
11101         * reload1.c (clear_reload_reg_in_use): Same.
11102
11103 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
11104
11105         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
11106         and 'subtargets'.
11107
11108 2002-01-11  Andreas Jaeger  <aj@suse.de>,
11109             Brad Lucier <lucier@math.purdue.edu>
11110
11111         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
11112         mcpu.
11113
11114 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
11115
11116         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
11117         Protect with IN_LIBGCC.
11118         (LINK_EH_SPEC): Add required trailing space.
11119
11120 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
11121
11122         * c-tree.h: Move function declarations so that they are listed
11123         under the filename which contains them.
11124         (check_identifier, finish_decl_top_level,
11125         lookup_name_current_level_global, shadow_record_fields): Remove.
11126
11127 2002-01-11  Andreas Jaeger  <aj@suse.de>
11128
11129         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
11130         march.
11131
11132 2002-01-10  Richard Henderson  <rth@redhat.com>
11133
11134         * config/alpha/alpha.c (print_operand): Add 'J'.
11135         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
11136         new operand with the sequence number for the lituse.  When splitting
11137         the insns, use gen_movdi_er_high_g and generate a sequence number.
11138         (gen_movdi_er_high_g): Print the sequence number if non-zero.
11139
11140 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
11141
11142         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
11143         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
11144         stvxl.
11145         (altivec_expand_builtin): Same.
11146         (altivec_expand_stv_builtin): New.
11147
11148         * config/rs6000/rs6000.h (rs6000_builtins): Same.
11149
11150         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
11151         ("altivec_lvehx"): New.
11152         ("altivec_lvewx"): New.
11153         ("altivec_lvxl"): New.
11154         ("altivec_lvx"): New.
11155         ("altivec_stvx"): New.
11156         ("altivec_stvebx"): New.
11157         ("altivec_stvehx"): New.
11158         ("altivec_stvewx"): New.
11159         ("altivec_stvxl"): New.
11160
11161 2002-01-10  Richard Henderson  <rth@redhat.com>
11162
11163         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
11164         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
11165         care not to delete instructions twice.
11166
11167 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
11168
11169         * toplev.c: Don't declare environ (it's not used anywhere).
11170         * configure.in: Don't check for declaration of environ.
11171         * config/i386/xm-mingw32.h: Don't #define environ.
11172         * config.in, configure: Regenerate.
11173
11174 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
11175
11176         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
11177         * configure: Regenerate.
11178
11179         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
11180         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
11181         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
11182         alpha/xm-vms.h.
11183         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
11184         LIMITS_H_TEST here, not in m68k/x-next.
11185         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
11186         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
11187
11188         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
11189         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
11190         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
11191
11192         * config/i386/x-djgpp: Renamed i386/t-djgpp.
11193         * config/m88k/x-dolph: Renamed m88k/t-dolph.
11194         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
11195         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
11196         replacement of quadlib.asm with quadlib.c.
11197
11198         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
11199         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
11200         config/rs6000/xm-beos.h: Delete file.
11201
11202         * config.gcc: Update to match above changes.
11203
11204 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11205
11206         * config/h8300/h8300.h: Fix comment typos.
11207         * config/h8300/h8300.md: Likewise.
11208         * config/h8300/lib1funcs.asm: Likewise.
11209
11210 2002-01-10  Dale Johannesen  <dalej@apple.com>
11211
11212         PR optimization/5269
11213         * unroll.c (precondition_loop_p): Make *increment be the correct
11214         sign when n_iterations known, to avoid confusing caller.
11215
11216 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11217
11218         * doc/extend.texi (deprecated): Fix a typo.
11219
11220 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
11221
11222         * basic-block.h (update_br_prob_note): Declare.
11223         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
11224         (try_forward_edges): Care negative frequencies and update note.
11225         (outgoing_edges_match): Tweek conditional merging heuristics.
11226         (try_crossjump_to_edge): use update_br_prob_note.
11227         * cfglayout.c (fixup_reorder_chain): Likewise.
11228         * cfrtl.c (update_br_prob_note): New.
11229         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
11230
11231         * i386.c (ix86_decompose_address): Return -1 if address contains
11232         shift.
11233         (legitimate_address_p): Require ix86_decompose_address to return 1.
11234
11235         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
11236         (cprop_insn): Likewise.
11237
11238 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11239
11240         * toplev.c: Fix formatting.
11241         * tree.c: Likewise.
11242         * tree-dump.c: Likewise.
11243         * unroll.c: Likewise.
11244         * unwind-dw2.c: Likewise.
11245         * unwind-dw2-fde.c: Likewise.
11246         * unwind-dw2-fde-glibc.c: Likewise.
11247         * unwind-sjlj.c: Likewise.
11248
11249 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
11250
11251         * doc/invoke.texi: Document PDP-11 options.
11252
11253 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11254
11255         * config/h8300/h8300.h: Fix formatting.
11256
11257 2002-01-10  Ira Ruben   <ira@apple.com>
11258
11259         Add __attribute__ ((deprecated)).
11260         * extend.texi: Document __attribute__ ((deprecated)).
11261         * invoke.texi: Document -Wno-deprecated-declarations.
11262         * testsuite/g++.dg/other/deprecated.C: New C++ test.
11263         * testsuite/gcc.dg/deprecated.c: New C test.
11264         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
11265         (c_common_attribute_table): Add "deprecated" entry.
11266         (handle_deprecated_attribute): New function.
11267         * c-decl.c (deprecated_states): New enum.
11268         deprecated_state: State of "deprecated" handling.
11269         (start_decl): Set deprecated_state based on attributes.
11270         (grokdeclarator): Test for deprecated uses, propagate attribute.
11271         * c-typeck.c (build_component_ref): Test for deprecated fields.
11272         (build_external_ref): Test for deprecated primaries.
11273         * diagnostic.c (warn_deprecated_use) New function to issue
11274         warnings about __attribute__ ((depricated)) references.
11275         * flags.h (warn_deprecated_decl): Extern declared for
11276         -W[no-]deprecated-declarations option.
11277         * print-tree.c (print_node): Show deprecated flag status.
11278         * toplev.c (warn_deprecated_decl): Defined.
11279         (W_options): Added "deprecated-declaration".
11280         * toplev.h (warn_deprecated_use): Extern declared.
11281         * tree.h (struct tree_common): Define deprecated_flag.
11282         (TREE_DEPRECATED): New macro to access flag.
11283         * cp/call.c (build_call): Test for deprecated calls.
11284         * cp/class.c (add_implicitly_declared_members): Set global
11285         flag to tell grokdeclarator to not issue deprecated warnings.
11286         * cp/cp-tree.h: Add extern for adding_implicit_members.
11287         * cp/decl.c (deprecated_states): New enum.
11288         (start_decl): Set deprecated_state based on attributes.
11289         (grokdeclarator): Test for deprecated uses, propagate attribute.
11290         * cp/lex.c (do_identifier): Test for deprecated primaries.
11291         * cp/typeck.c (build_component_ref): Test for deprecated fields.
11292
11293 2002-01-10  Ira Ruben   <ira@apple.com>
11294
11295         Fix to assign attributes to inline member functions.
11296         * cp/decl.c (start_method): Handle attrlist.
11297
11298 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11299
11300         * combine.c (expand_field_assignment): Use subreg_lsb().
11301
11302 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
11303
11304         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
11305         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
11306         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
11307         Recurse for any operand of AND as long as constant is non-zero.
11308
11309 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11310
11311         * config/h8300/h8300.md: Remove constraints from expanders.
11312
11313 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11314
11315         * varasm.c: Fix formatting.
11316         * varray.c: Likewise.
11317         * vmsdbgout.c: Likewise.
11318         * xcoffout.c: Likewise.
11319
11320 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
11321
11322         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
11323         update edge probabilities to match.
11324
11325 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
11326
11327         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
11328         dependencies.
11329         * doc/languages.texi, doc/sourcebuild.texi: New files.
11330         * doc/configfiles.texi: Make a subsubsection.  Update.
11331         * doc/configterms.texi: Add @node.  Remove warning that this isn't
11332         instructions for building GCC.
11333         * doc/makefile.texi: Make a subsection.
11334         * doc/gccint.texi: Update.
11335
11336 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
11337
11338         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
11339
11340 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
11341
11342         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
11343
11344 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
11345
11346         * optabs.c (expand_fix): Look for wider integer modes first.
11347
11348         * i386.md (mov?f): Avoid the fake const double trick for medium
11349         memory model.
11350         (min?f*/max?f*): Prohibit memory operands for i387 variant.
11351         (fop_df_4): Disable for SSE compilation.
11352
11353 2002-01-10  Graham Stott  <grahams@redhat.com>
11354
11355         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
11356         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
11357
11358 2002-01-10  Richard Henderson  <rth@redhat.com>
11359
11360         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
11361
11362 2002-01-10  Richard Henderson  <rth@redhat.com>
11363
11364         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
11365         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
11366
11367 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11368
11369         * combine.c (can_combine_p): Fix a comment typo.
11370
11371 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
11372
11373         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
11374         empty list correctly.  Change loop index $t to $f for
11375         consistency with rest of Makefile.
11376
11377 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
11378
11379         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
11380         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
11381
11382         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
11383         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
11384         (altivec_init_builtins): Same.
11385         (altivec_expand_unop_builtin): Return NULL_RTX on error.
11386         (altivec_expand_binop_builtin): Same.
11387         (altivec_expand_ternop_builtin): Same.
11388         (bdesc_dst): New.
11389
11390         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
11391         ("altivec_vctuxs"): Fix typo.
11392         ("altivec_vnmsubfp"): Same.
11393         ("altivec_dssall"): New.
11394         ("altivec_mfvscr"): New.
11395         ("altivec_dss"): New.
11396         ("altivec_lvsl"): New.
11397         ("altivec_lvsr"): New.
11398         ("altivec_dstt"): New.
11399         ("altivec_dstst"): New.
11400         ("altivec_dststt"): New.
11401         ("altivec_dst"): New.
11402
11403         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
11404         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
11405
11406 2002-01-09  Richard Henderson  <rth@redhat.com>
11407
11408         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
11409
11410 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
11411
11412         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
11413         function.
11414         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
11415         prototype.
11416         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
11417
11418 2002-01-09  Kazu Hirata  <kazu@hxi.com>
11419
11420         * read-rtl.c: Fix formatting.
11421         * real.c: Likewise.
11422         * regclass.c: Likewise.
11423         * regrename.c: Likewise.
11424         * reg-stack.c: Likewise.
11425         * reload1.c: Likewise.
11426         * reload.c: Likewise.
11427         * rtl.c: Likewise.
11428
11429 2002-01-09  Kazu Hirata  <kazu@hxi.com>
11430
11431         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
11432         to extract items in the expr_list chain.
11433
11434 2002-01-09  Richard Henderson  <rth@redhat.com>
11435
11436         * config/vax/vax.c (vax_rtx_cost): Never abort.
11437
11438         * config/vax/vax.h (REAL_ARITHMETIC): Define.
11439
11440 2002-01-09  Jan Hubicka  <jh@suse.cz>
11441
11442         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
11443
11444 2002-01-09  Richard Henderson  <rth@redhat.com>
11445
11446         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
11447         Unify code from various alternatives.
11448
11449 2002-01-09  Richard Henderson  <rth@redhat.com>
11450
11451         * regrename.c (copy_value): Ignore the copy if the source register
11452         is present in the value chain with a narrower mode.
11453
11454 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
11455
11456         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
11457         for the c4x target. Also improve layout.
11458
11459 2002-01-09  Richard Henderson  <rth@redhat.com>
11460
11461         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
11462         * config/m32r/m32r.md (and ior xor splitters): Swap operands
11463         to match insn patterns.
11464
11465 2002-01-09  Richard Henderson  <rth@redhat.com>
11466
11467         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
11468         (copyprop_hardreg_forward_1): Likewise.
11469
11470 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11471
11472         * pa.md (decrement_and_branch_until_zero): Change predicate for
11473         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
11474
11475 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
11476
11477         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
11478         gets undefined. For Darwin.
11479
11480 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11481
11482         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
11483
11484 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11485
11486         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
11487
11488 2002-01-08  Richard Henderson  <rth@redhat.com>
11489
11490         * regrename.c (copy_value): Ignore overlapping copies.
11491
11492 2002-01-08  Richard Henderson  <rth@redhat.com>
11493
11494         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
11495         as needed to avoid shared structure.
11496
11497 2002-01-08  Kazu Hirata  <kazu@hxi.com>
11498
11499         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
11500         H8/300H and H8/S.
11501
11502 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
11503
11504         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
11505         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
11506         documentation of obsolete macros.
11507         * system.h: Poison these macros.
11508         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
11509         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
11510         config/c4x/c4x.h, config/clipper/clipper.h,
11511         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
11512         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
11513         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
11514         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
11515         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
11516         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
11517         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
11518         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
11519         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
11520         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
11521         config/sparc/sparc.h, config/stormy16/stormy16.h,
11522         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
11523         definitions and commented out definitions of obsolete macros.
11524         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
11525         of MAX_INT_TYPE_SIZE.
11526
11527 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
11528
11529         * config/s390/s390.c (s390_preferred_reload_class): Never
11530         return ADDR_REGS if it isn't a subset of the given class.
11531         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
11532         FP_REGS, but all superclasses as well.
11533
11534         * config/s390/s390.c (s390_function_profiler): Fix thinko.
11535
11536         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
11537         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
11538         must not be a const_int.
11539
11540 2002-01-08  Richard Henderson  <rth@redhat.com>
11541
11542         * Makefile.in (toplev.o): Depend on options.h.
11543         (gcc.o): Depend on specs.h.
11544
11545 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
11546
11547         * expr.c (store_expr): Convert VOIDmode constants back to target's
11548         mode.
11549
11550 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11551
11552         * doc/invoke.texi: Markup gcc as @command.  Refer to
11553         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
11554         of http://gcc.gnu.org/thanks.html.
11555
11556 2002-01-08  Dale Johannesen  <dalej@apple.com>
11557
11558         * config/rs6000/rs6000.md: Add missing int register
11559         target case to movdf_low.
11560
11561 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
11562
11563         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
11564         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
11565         (cppinit.o): Depend on except.h.
11566         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
11567         s-specs): New rules.
11568
11569         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
11570         Don't create specs.h/options.h/gencheck.h here.  Remove
11571         unnecessary variable settings from last argument of AC_OUTPUT.
11572         * config.in, configure: Regenerate.
11573         * intl.c: Hardcode package name as "gcc".
11574
11575         * cppinit.c: Include except.h.
11576         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
11577         appropriate.
11578         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
11579         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
11580         (!)USING_SJLJ_EXCEPTIONS.
11581         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
11582
11583 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
11584
11585         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
11586         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
11587         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
11588         documentation of obsolete macros.
11589         * system.h: Poison these macros.
11590         * config/d30v/d30v.h, config/ns32k/encore.h,
11591         config/stormy16/stormy16.h: Remove definitions and commented out
11592         definitions of obsolete macros.
11593
11594 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
11595
11596         * objc/objc-act.c (handle_class_ref): Mark the declaration of
11597         %sobjc_class_ref_%s as used - to prevent unwanted compiler
11598         warnings.
11599
11600 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
11601
11602         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
11603         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
11604         to insn adjusting stack/frame pointer.
11605         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
11606         accept operands that cause the insn to be non-splittable.
11607
11608 2002-01-08  Graham Stott  <grahams@redhat.com>
11609
11610         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
11611         (C_TYPE_FIELDS_VOLATILE): Likewise.
11612         (C_TYPE_BEING_DEFINED): Likewise.
11613         (C_IS_RESERVED_WORD): Likewise.
11614         (C_TYPE_VARIABLE_SIZE): Likewise.
11615         (C_DECL_VARIABLE_SIZE): Likewise.
11616         (C_MISSING_PROTOTYPE_WARNED): Likewise.
11617         (C_SET_EXP_ORIGINAL_CODE): Likewise.
11618         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
11619         parenthesis.
11620         (C_DECL_ANTICIPATED): Likewise.
11621         (c_build_type_variant): Add parenthesis.
11622
11623 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
11624
11625         * gcc.c (option_map): Remove --version.
11626         (process_command): Handle -fversion following the GNU Coding
11627         Standards.  Partially addresses PR other/704.
11628
11629 2002-01-08  Graham Stott  <grahams@redhat.com>
11630
11631         * combine.c (combine_instructions): Fix typo.
11632
11633 2002-01-08  Graham Stott  <grahams@redhat.com>
11634
11635         * debug.h: Use "tree" and "rtx" throughout.
11636
11637         * debug.c: Likewise.
11638
11639 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
11640
11641         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
11642         constant pool, use the pool's version of the symbol instead.
11643
11644 2002-01-07  Richard Henderson  <rth@redhat.com>
11645
11646         * regrename.c (find_oldest_value_reg): Ignore the value chain if
11647         the original register was copied in a mode with a fewer number of
11648         hard registers than the desired mode.
11649         (copyprop_hardreg_forward_1): Likewise.
11650         (debug_value_data): Fix loop test.
11651         * toplev.c (parse_options_and_default_flags): Reenable
11652         -fcprop-registers at -O1.
11653
11654 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
11655
11656         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
11657         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
11658
11659         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
11660         predicates.
11661
11662         * config/rs6000/rs6000.md: Add altivec predicate patterns.
11663
11664 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11665
11666         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
11667         (pa_output_function_prologue): Output local label at the beginning of
11668         the prologue when profiling.
11669         (hppa_profile_hook): Use the local label rather than the function label.
11670         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
11671
11672 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
11673
11674         * config/rs6000/rs6000.c (print_operand): Remove extra space.
11675         (altivec_expand_unop_builtin): Fix thinko.
11676         (altivec_expand_binop_builtin): Same.
11677         (altivec_expand_ternop_builtin): Same.
11678         (altivec_expand_builtin): Same.
11679
11680 2002-01-07  Richard Henderson  <rth@redhat.com>
11681
11682         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
11683
11684 2002-01-07  Jason Merrill  <jason@redhat.com>
11685
11686         * unwind-dw2.c (execute_cfa_program): Use < again.
11687
11688 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
11689
11690         * predict.c (combine_predictions_for_insn): Avoid division by zero.
11691
11692 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
11693
11694         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
11695         Don't allow -1 - x -> ~x simplifications in the first pass.
11696
11697 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
11698
11699         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
11700         arguments.
11701         (altivec_expand_binop_builtin): Same.
11702         (altivec_expand_unop_builtin): Same.
11703         (print_operand): Fix typo.
11704         (bdesc_1arg): Add vupk* variants.
11705
11706         * rs6000.h (rs6000_builtins): Add vupk* enums.
11707
11708         * rs6000.md: Add altivec_vupk* variants.
11709
11710 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
11711
11712         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
11713         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
11714         and last update dates.
11715
11716 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
11717
11718         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
11719
11720 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11721
11722         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
11723         * config/avr/avr.h (CPP_SPEC): Likewise.
11724         (LINK_SPEC): Likewise.
11725         (CRT_BINUTILS_SPECS): Likewise.
11726         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11727         * doc/invoke.texi (AVR Options): Document them.
11728
11729 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
11730
11731         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
11732         LABEL_NUSES.
11733
11734 2002-01-07  Graham Stott  <grahams@redhat.com>
11735
11736         * config/i386/i386.h: Update copyright date.
11737         (HALF_PIC_PTR): Add parenthesis.
11738         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
11739         (CONSTANT_ALIGNMENT): Add parenthesis.
11740         (DATA_ALIGNMENT): Likewise.
11741         (LOCAL_ALIGNMENT): Likewise.
11742         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
11743         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
11744         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
11745         (HARD_REGNO_NREGS): Add paranethesis.
11746         (VALID_SSE_REG_MODE): Whitespace.
11747         (VALID_MMX_REG_MODE): Whitespace.
11748         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
11749         (ix86_hard_regno_mode_ok): Add parenthesis.
11750         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
11751         (RETURN_IN_MEMORY): Whitespace.
11752         (N_REG_CLASSES): Add parenthesis.
11753         (INTEGER_CLASS_P): Add parenthesis and wrap.
11754         (FLOAT_CLASS_P): Likewise.
11755         (SSE_CLASS_P): Likewise.
11756         (MMX_CLASS_P): Likewise.
11757         (MAYBE_INTEGER_CLASS_P): Likewise.
11758         (MAYBE_FLOAT_CLASS_P): Likewise.
11759         (MAYBE_SSE_CLASS_P): Likewise.
11760         (MAYBE_MMX_CLASS_P): Likewise.
11761         (Q_CLASS_P): Likewise.
11762         (GENERAL_REGNO_P): Uppercase macro parameter.
11763         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
11764         (FP_REGNO_P): Likewise.
11765         (ANY_FP_REGNO_P): Uppercase macro parameter.
11766         (SSE_REGNO_P): Likewise.
11767         (SSE_REGNO): Likewise.
11768         (SSE_REG_P): Likewise.
11769         (SSE_FLOAT_MODE_P): Likewise.
11770         (MMX_REGNO_P): Likewise.
11771         (MMX_REG_P):Likewise.
11772         (STACK_REG_P): Likewise.
11773         (NON_STACK_REG_P): Likewise.
11774         (STACK_TOP_P): Likewise.
11775         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
11776         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
11777         (SECONDARY_MEMORY_NEEDED): Likewise.
11778         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
11779         (MD_ASM_CLOBBERS): Whitespace and wrap.
11780         (MUST_PASS_IN_STACK): Whitespace and wrap.
11781         (RETURN_POPS_ARGS): Add parenthesis.
11782         (INIT_CUMULATIVE_ARGS): Likewise.
11783         (FUNCTION_ARG): Likewise.
11784         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
11785         (SETUP_INCOMING_VARARGS): Likewise.
11786         (BUILD_VA_LIST_TYPE):  Add parenthesis.
11787         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
11788         parenthsis.
11789         (EXPAND_BUILTIN_VA_ARG): Likewise.
11790         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
11791         (INITIALIZE_TRAMPOLINE): Add parenthesis.
11792         (INITIAL_ELIMINATION_OFFSET): Likewise.
11793         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
11794         (REGNO_OK_FOR_BASE_P): Likewise.
11795         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
11796         (REGNO_OK_FOR_DIREG_P): Likewise.
11797         (REG_OK_FOR_INDEX_P): Whitespace.
11798         (REG_OK_FOR_BASE_P): Whitespace.
11799         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
11800         parenthesis.
11801         (FIND_BASE_TERM): Fix typo.
11802         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
11803         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
11804         (SYMBOLIC_CONST; Whitespace.
11805         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
11806         (ENCODE_SECTION_INFO): Whitespace.
11807         (FINALIZE_PIC): Remove do { ... } while (0).
11808         (PROMOTE_MODE): Wrap in do { ... } while (0).
11809         (CONST_COSTS): Whitespace.
11810         (RTX_COSTS): Add paramethesis, whitespace and wrap.
11811         (REGISTER_MOVE_COST): Add parenthesis.
11812         (MEMORY_MOVE_COST): Likewise.
11813         (EXTRA_CC_MODES): Whitespace.
11814         (SELECT_CC_MODE): Add parenthesis and whitespace.
11815         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
11816         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
11817         (ASM_OUTPUT_LABEL): Add paramethesis.
11818         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
11819         (ASM_OUTPUT_REG_POP): Likewise.
11820         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
11821         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11822
11823         * config/i386/i386.c: Update copyright.
11824         (CHECK_STACK_LIMIT): Add parenthesis.
11825         (AT_BP): Uppercase macro parameter.
11826         (x86_64_int_parameter_registers): Constify.
11827         (x86_64_int_return_registers): Likewise.
11828         (ix86_compare_op0): Use rtx.
11829         (construct_container): Constify INTREG parameter.
11830         (function_arg): Use rtx.
11831
11832         * diagnostic.h: Update copyright date.
11833         (output_buffer_state): Add parenthesis.
11834         (output_buffer_format_args): Likewise.
11835
11836         * combine.c (combine_instructions): Replace XEXP (links, 0)
11837         with link.
11838
11839 2002-01-06  H.J. Lu <hjl@gnu.org>
11840
11841         * cfgcleanup.c (thread_jump): Fix 2 typos.
11842
11843 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
11844
11845         * config.gcc: Add support for --enable-altivec.
11846
11847 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11848
11849         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
11850
11851 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
11852
11853         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
11854         __objc_class_name_*.
11855
11856 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11857
11858         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
11859
11860 2002-01-06  Richard Henderson  <rth@redhat.com>
11861
11862         * reorg.c (emit_delay_sequence): Remove death notes, not merely
11863         nop them out.  Increment label reference count for REG_LABEL.
11864         (fill_slots_from_thread): Frob label reference count around
11865         delete_related_insns.
11866
11867 2002-01-05  Richard Henderson  <rth@redhat.com>
11868
11869         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
11870         jump threading.
11871
11872 2002-01-05  Richard Henderson  <rth@redhat.com>
11873
11874         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
11875         * integrate.c (output_inline_function): Likewise.
11876         * toplev.c (rest_of_compilation): Do it here instead.  Move call
11877         to remove_unnecessary_notes after emitting abstract instance.
11878         Force an emitted nested function to have its parent emited as well.
11879         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
11880         for null.
11881         (rtl_for_decl_location): Do not look at reload data structures
11882         before reload has run.
11883
11884 2002-01-05  Kazu Hirata  <kazu@hxi.com>
11885
11886         * cse.c: Fix formatting.
11887         * dwarf2asm.c: Likewise.
11888         * dwarf2out.c: Likewise.
11889         * explow.c: Likewise.
11890         * expmed.c: Likewise.
11891         * function.c: Likewise.
11892         * gcov.c: Likewise.
11893         * gencheck.c: Likewise.
11894         * genrecog.c: Likewise.
11895         * ggc-common.c: Likewise.
11896         * ggc-page.c: Likewise.
11897         * global.c: Likewise.
11898
11899 2002-01-05  Kazu Hirata  <kazu@hxi.com>
11900
11901         * combine.c: Fix formatting.
11902
11903 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
11904
11905         PR middle-end/1557
11906         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
11907
11908 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
11909
11910         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
11911         as 1 for __powerpc64__ as well.
11912
11913         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
11914
11915         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
11916         return it.
11917
11918 2002-01-05  Daniel Berlin  <dan@dberlin.org>
11919
11920         * lcm.c: Revert change, due to performance regression it causes on
11921         SPEC because it's slightly more conservative (sigh, I hate
11922         edge-based LCM).
11923
11924 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
11925
11926         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
11927
11928 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
11929
11930         * doc/cppinternals.texi: Update.
11931
11932 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
11933
11934         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
11935         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
11936         negatives.
11937         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
11938         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
11939         kludge for pre-october-14th mmix versions to handle new-found bug
11940         with PUSHJ/PUSHGO and the register stack.
11941         * config/mmix/mmix.h (struct machine_function): Rename member
11942         has_call_value_without_parameters to has_call_without_parameters.
11943         All referers changed.
11944         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
11945         TARGET_MASK_BRANCH_PREDICT): New macros.
11946         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
11947         -mno-reg-stack-fill-bug-workaround.
11948         * config/mmix/mmix.md ("call"): Set struct machine member
11949         has_call_without_parameters.
11950
11951 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
11952
11953         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
11954
11955 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
11956
11957         * cfgcleanup.c: Include tm_p.h
11958         (mark_effect): Fix handling of hard register; fix handling of SET
11959
11960 2002-01-04  Kazu Hirata  <kazu@hxi.com>
11961
11962         * config/h8300/h8300.md (anonymous patterns): Check that
11963         operands are registers before using REGNO on them.
11964
11965 2002-01-03  Roland McGrath  <roland@frob.com>
11966
11967         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
11968
11969 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
11970
11971         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
11972         * c-common.h (genrtl_expr_stmt_value): Likewise.
11973         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
11974         (expand_expr_stmt_value): Add maybe_last argument.
11975         Don't warn about statement with no effect if it is the last statement
11976         in expression statement.
11977         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
11978         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
11979         expand_expr_stmt_value.
11980         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
11981         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
11982         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
11983         as maybe_last to expand_expr_stmt_value.
11984
11985 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
11986
11987         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
11988         be passed in, do not build it.
11989         (c_begin_if_stmt): New function.
11990         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
11991         * c-common.h (c_expand_start_cond): Update prototype.
11992         (c_begin_if_stmt): Prototype new function.
11993         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
11994         * c-parse.in (if_prefix): Use c_begin_if_stmt,
11995         c_begin_while_stmt and c_finish_while_stmt_cond.
11996
11997 2002-01-04  William Cohen  <wcohen@redhat.com>
11998
11999         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
12000         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
12001         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
12002         * config/pa/som.h (ASM_FILE_START): Likewise.
12003
12004 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
12005
12006         * lcm.c: Include df.h.
12007         Add available_transfer_function prototype.
12008         (compute_available): Rework to use iterative dataflow framework.
12009         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
12010         with bb_info in df.h
12011         (available_transfer_function): New function.
12012
12013         * Makefile.in (lcm.o): add df.h to dependencies.
12014
12015 2002-01-04  Richard Henderson  <rth@redhat.com>
12016
12017         * config/alpha/alpha.c (some_operand): Accept HIGH.
12018         (input_operand): Likewise; accept simple references to globals.
12019         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
12020         (alpha_const_double_ok_for_letter_p): Likewise.
12021         (alpha_extra_constraint): Likewise.
12022         (alpha_preferred_reload_class): Likewise.  Do not force
12023         symbolic constants to memory.
12024         (alpha_legitimate_address_p): Accept simple references
12025         to small_symbolic_operand.
12026         (alpha_legitimize_address): New arg scratch.  Be prepared to be
12027         called when no_new_pseudos.  Emit simple symbolic references.
12028         Split integers into low, high, and rest.
12029         (alpha_expand_mov): Use alpha_legitimize_address.
12030         (some_small_symbolic_mem_operand): New.
12031         (split_small_symbolic_mem_operand): New.
12032         * config/alpha/alpha-protos.h: Update.
12033         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
12034         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
12035         (EXTRA_CONSTRAINT): Likewise.
12036         (PREFERRED_RELOAD_CLASS): Likewise.
12037         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
12038         (PREDICATE_CODES): Update.
12039         * config/alpha/alpha.md: New post-reload splitters to convert
12040         simplfied symbolic operands to the form that references $29.
12041         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
12042         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
12043
12044 2002-01-03  Richard Henderson  <rth@redhat.com>
12045
12046         * local-alloc.c (function_invariant_p): Update commentary.
12047
12048 2002-01-04  H.J. Lu <hjl@gnu.org>
12049
12050         * toplev.c (rest_of_compilation): Fix a typo when calling
12051         cleanup_cfg.
12052
12053 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12054
12055         * c-common.c: Fix formatting.
12056         * diagnostic.c: Likewise.
12057         * doloop.c: Likewise.
12058         * dwarf2out.c: Likewise.
12059
12060 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12061
12062         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
12063         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
12064
12065 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
12066
12067         * cpperror.c: Update comments and copyright.
12068         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
12069         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
12070
12071 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12072
12073         * collect2.c (main): Use strcmp when testing for "-shared".
12074
12075 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
12076
12077         * cppmacro.c: Don't include intl.h.  Update comments.
12078         (new_number_token): Allocate enough buffer for 64-bit unsigned
12079         integers; update prototype.
12080         * cppmain.c: Update comments.
12081
12082 2002-01-03  William Cohen  <wcohen@redhat.com>
12083
12084         * function.h (struct function): Add profile.
12085         (current_function_profile): New.
12086         doc/extend.texi: Update documentation.
12087         * final.c (final_start_function): Use current_function_profile
12088         instead of profile_flag.
12089         (profile_after_prologue): Likewise.
12090         * function.c (expand_function_start): Likewise.
12091         (expand_function_start): Likewise.
12092         * config/alpha/alpha.c (direct_call_operand):
12093         (alpha_does_function_need_gp): Likewise.
12094         (alpha_expand_prologue): Likewise.
12095         * config/arm/arm.c (arm_expand_prologue): Likewise.
12096         thumb_expand_prologue: Likewise.
12097         * config/d30v/d30v.c (d30v_stack_info): Likewise.
12098         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
12099         (fr30_expand_prologue): Likewise.
12100         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
12101         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
12102         * config/i386/i386.h (FINALIZE_PIC): Likewise.
12103         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
12104         * config/i960/i960.c (i960_output_function_prologue): Likewise.
12105         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
12106         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
12107         (m32r_expand_prologue): Likewise.
12108         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
12109         (m88k_expand_prologue): Likewise.
12110         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
12111         * config/mips/mips.c (compute_frame_size): Likewise.
12112         (mips_expand_prologue): Likewise.
12113         (mips_can_use_return_insn): Likewise.
12114         * config/pa/elf.h (ASM_FILE_START): Likewise.
12115         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
12116         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
12117         * config/pa/som.h (ASM_FILE_START): Likewise.
12118         * config/romp/romp.c (romp_using_r14): Likewise.
12119         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
12120         (rs6000_stack_info): Likewise.
12121         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
12122         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
12123         * config/v850/v850.c (compute_register_save_size): Likewise.
12124
12125 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
12126
12127         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
12128         gen_lowpart_common fails, use gen_lowpart_SUBREG.
12129
12130 2002-01-03  Turly O'Connor  <turly@apple.com>
12131
12132         * darwin.c (machopic_output_possible_stub_label): Don't generate
12133         stub routines for pseudo-stubs which we've just defined.
12134
12135 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12136
12137         * builtins.c: Fix formatting.
12138         * c-typeck.c: Likewise.
12139         * combine.c: Likewise.
12140         * expr.c: Likewise.
12141         * loop.c: Likewise.
12142
12143 2002-01-03  Andreas Schwab  <schwab@suse.de>
12144
12145         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
12146         and return true if _cpp_push_next_buffer pushed a new include
12147         file.
12148         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
12149         _cpp_pop_file_buffer did not push a new file.
12150         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
12151
12152 2002-01-02  Eric Christopher  <echristo@redhat.com>
12153
12154         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
12155         FIND_REG_INC_NOTE call. Update copyright.
12156         * loop.c (canonicalize_condition): Ditto.
12157         * reorg.c (delete_scheduled_jump): Ditto.
12158
12159 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12160
12161         * gcse.c: Fix formatting.
12162
12163 2002-01-03  Graham Stott  <grahams@redhat.com>
12164
12165         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
12166         forward defs for struct tags rtx_def, union_tree, rtvec_def
12167         also output corresponding typedefs for rtx, tree, and rtvec.
12168
12169         * system.h: Move forward defs for struct tags rtx_def, union_tree,
12170         rtvec_def along with corresponding typedefs for rtx, tree, and
12171         rtvec to config.h, hconfig.h, tconfig.h.
12172
12173 2002-01-03  Graham Stott  <grahams@redhat.com>
12174
12175         * tree.h: Update copyright date.
12176         (IS_EXPR_CODE_CLASS): Add parenthesis.
12177         (TREE_SET_CODE): Add whitespace.
12178         (TREE_CHECK): Add parenthesis.
12179         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
12180         (CST_OR_CONSTRUCTOR_CHECK):
12181         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
12182         (TREE_SYMBOL_REFERENCED): Whitespace.
12183         (INT_CST_LT): Likewise.
12184         (INT_CST_LT_UNSIGNED): Likewise.
12185         (tree_real_cst): Unwrap comment.
12186         (tree_string): Likewise.
12187         (tree_complex): Likewise.
12188         (IDENTIFIER_POINTER): correct cast.
12189         (SAVE_EXPR_CONTEXT): Whitespace.
12190         (EXPR_WFL_FILENAME_NODE): Likewise.
12191         (EXPR_WFL_FILENAME): Remove parenthesis.
12192         (DECL_ORIGIN): Add parenthesis.
12193         (DECL_FROM_INLINE): Use NULL_TREE.
12194         (build_int_2): Whitespace.
12195         (build_type_variant): Add parenthesis.
12196
12197         * gcc/jcf-parse.c: Update copyright date.
12198         (yyparse): Constify resource_filename.
12199
12200 2002-01-03  Graham Stott  <grahams@redhat.com>
12201
12202         * rtl.h: Update copyright date.
12203         (RTL_CHECK1): Wrap long line.
12204         (RTL_CHECK2): Likewise.
12205         (RTL_CHECKC1): Wrap long line and whitespace.
12206         (RTL_CHECKC2): Likewise.
12207         (XWINT): Whitespace.
12208         (XINT): Likewise.
12209         (XSTR): Likewise.
12210         (XEXP): Likewise.
12211         (XVEC): Likewise.
12212         (XMODE): Likewise.
12213         (XBITMAP): Likewise.
12214         (XTREE): Likewise.
12215         (XBBDEF): Likewise.
12216         (XTMPL): Likewise.
12217         (X0WINT): Likewise.
12218         (X0INT):Likewise.
12219         (X0UINT): Likewise.
12220         (X0STR): Likewise.
12221         (X0EXP): Likewise.
12222         (X0VEC): Likewise.
12223         (X0MODE): Likewise.
12224         (X0BITMAP): Likewise.
12225         (X0TREE): Likewise.
12226         (X0BBDEF): Likewise.
12227         (X0ADVFLAGS): Likewise.
12228         (X0CSELIB): Likewise.
12229         (X0MEMATTR): Likewise.
12230         (XCWINT): Likewise.
12231         (XCINT): Likewise.
12232         (XCUINT): Likewise.
12233         (XCSTR): Likewise.
12234         (XCEXP): Likewise.
12235         (XCVEC): Likewise.
12236         (XCMODE): Likewise.
12237         (XCBITMAP): Likewise.
12238         (XCTREE): Likewise.
12239         (XCBBDEF): Likewise.
12240         (XCADVFLAGS): Likewise.
12241         (XCCSELIB): Likewise.
12242         (XC2EXP): Likewise.
12243         (INSN_UID): Likewise.
12244         (PREV_INSN): Likewise.
12245         (PATTERN): Likewise.
12246         (INSN_CODE): Likewise.
12247         (PUT_REG_NOTE_KIND): Likewise.
12248         (CODE_LABEL_NUMBER): Likewise.
12249         (NOTE_SOURCE_FILE): Likewise.
12250         (NOTE_BLOCK): Likewise.
12251         (NOTE_EH_HANDLER): Likewise.
12252         (NOTE_RANGE_INFO): Likewise.
12253         (NOTE_LIVE_INFO): Likewise.
12254         (NOTE_BASIC_BLOCK): Likewise.
12255         (NOTE_EXPECTED_VALUE): Likewise.
12256         (NOTE_LINE_NUMBER): Likewise.
12257         (LABEL_NAME): Likewise.
12258         (LABEL_NUSES): Likewise.
12259         (LABEL_ALTERNATE_NAME): Likewise.
12260         (ADDRESSOF_DECL): Likewise.
12261         (JUMP_LABEL): Likewise.
12262         (LABEL_NEXTREF): Likewise.
12263         (REGNO): Likewise.
12264         (ORIGINAL_REGNO: Likewise.
12265         (HARD_REGISTER_NUM_P): Add parenthesis.
12266         (SUBREG_REG): Whitespace.
12267         (SUBREG_BYTE): Likewise.
12268         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
12269         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
12270         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
12271         (ASM_OPERANDS_INPUT_VEC): Likewise.
12272         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
12273         (ASM_OPERANDS_INPUT): Likewise.
12274         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
12275         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
12276         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
12277         (ASM_OPERANDS_INPUT_MODE): Likewise.
12278         (ASM_OPERANDS_SOURCE_FILE): Likewise.
12279         (ASM_OPERANDS_SOURCE_LINE): Likewise.
12280         (MEM_SET_IN_STRUCT_P): Minor reformat.
12281         (TRAP_CONDITION): Whitespace.
12282         (TRAP_CODE): Likewise.
12283         (COND_EXEC_TEST): Likewise.
12284         (COND_EXEC_CODE): Likewise.
12285         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
12286         (PHI_NODE_P): Add parenthesis.
12287         (plus_constant): Whitespace and add parenthesis.
12288
12289 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12290
12291         * config/avr/avr.c: Fix comment typos.
12292         * config/c4x/c4x.md: Likewise.
12293         * config/dsp16xx/dsp16xx.h: Likewise.
12294         * config/dsp16xx/dsp16xx.md: Likewise.
12295         * config/i386/i386.md: Likewise.
12296         * config/ia64/ia64.c: Likewise.
12297         * config/m32r/m32r.h: Likewise.
12298         * config/m68hc11/m68hc11.md: Likewise.
12299         * config/mmix/mmix.c: Likewise.
12300         * config/mn10200/mn10200.c: Likewise.
12301         * config/romp/romp.c: Likewise.
12302         * config/sh/sh.c: Likewise.
12303         * config/stormy16/stormy16.c: Likewise.
12304         * config/stormy16/stormy16.h: Likewise.
12305         * config/stormy16/stormy16.md: Likewise.
12306
12307 2002-01-03  Graham Stott  <grahams@redhat.com>
12308
12309         * loop.h: Update copyright date.
12310         (LOOP_MOVABLES): Fix typo.
12311         (LOOP_REGS): Likewise.
12312         (LOOP_IVS): Likewise.
12313
12314 2002-01-03  Graham Stott  <grahams@redhat.com>
12315
12316         * cppinit.c: Update copyright date.
12317         Don't include output.h
12318         * Makefile.in: Update copyright date.
12319         Update dependency.
12320
12321 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12322
12323         PR c/5226
12324         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
12325         (-pthread) Add to RS/6000 options.
12326
12327 2002-01-02  Kazu Hirata  <kazu@hxi.com>
12328
12329         * except.c: Fix comment typos.
12330         * loop.c: Likewise.
12331         * varasm.c: Likewise.
12332         * doc/tm.texi: Fix a typo.
12333
12334 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
12335
12336         * c-typeck.c (output_init_element): Allow initializing static storage
12337         duration objects with compound literals.
12338
12339 2002-01-02  Richard Henderson  <rth@redhat.com>
12340
12341         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
12342         after abusing it.
12343
12344 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12345
12346         * gcc.c (default_compilers): Const-ify.
12347         * mips-tdump.c (stab_names): Likewise.
12348         * mips-tfile.c (map_coff_types, map_coff_storage,
12349         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
12350         pseudo_ops_t, pseudo_ops): Likewise.
12351         * protoize.c (default_include): Likewise
12352
12353         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
12354         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
12355         Add array size in declaration.
12356         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
12357         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
12358         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
12359         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
12360         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
12361         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
12362         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
12363         emtens, make_nan): Const-ify.
12364         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
12365         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
12366
12367 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
12368
12369         * config.gcc (ia64-*-*): Set extra_headers.
12370         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
12371         * config/alpha/t-osf: Remove.
12372         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
12373
12374 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
12375
12376         * config/rs6000/t-aix43: Revert previous change.
12377
12378 2002-01-02  Jason Merrill  <jason@redhat.com>
12379
12380         * c-decl.c (c_expand_body): Call outlining_inline_function when
12381         emitting an inline function out of line.
12382
12383 2002-01-02  Richard Henderson  <rth@redhat.com>
12384
12385         * dwarf2out.c (limbo_die_node): Add created_for member.
12386         (new_die): New argument created_for.  Update all callers.
12387         (mark_limbo_die_list): New.
12388         (dwarf2out_init): Register limbo_die_list as a root.
12389         (dwarf2out_finish): Force insert limbo dies into their function
12390         context.
12391
12392 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
12393
12394         PR c++/5089
12395         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
12396
12397 2002-01-02  Kazu Hirata  <kazu@hxi.com>
12398
12399         * config/h8300/fixunssfsi.c: Update copyright.
12400         Fix comment typos.
12401         Fix formatting.
12402         * config/h8300/h8300.c: Update copyright.
12403         Eliminate warnings.
12404
12405 2002-01-02  Kazu Hirata  <kazu@hxi.com>
12406
12407         * config/romp/romp.c: Fix comment formatting.
12408         * config/romp/romp.h: Likewise.
12409         * config/romp/romp.md: Likewise.
12410         * config/s390/s390.c: Likewise.
12411         * config/stormy16/stormy16.c: Likewise.
12412         * config/stormy16/stormy16.h: Likewise.
12413
12414 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
12415
12416         * c-common.h (genrtl_expr_stmt_value): Declare.
12417         * c-semantics.c (genrtl_goto_stmt): Redirect to...
12418         (genrtl_goto_stmt_value): ... this new function.  Pass new
12419         argument down to expand_expr_stmt_value, taking
12420         TREE_ADDRESSABLE into account.
12421         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
12422         STMT_EXPR as addressable, i.e., one whose result we want.
12423         * expr.c (expand_expr): Don't save expression statement value
12424         of labeled_blocks or loop_exprs.
12425         * stmt.c (expand_expr_stmt): Redirect to...
12426         (expand_expr_stmt_value): ... this new function.  Use new
12427         argument to tell whether to save expression value.
12428         (expand_end_stmt_expr): Reset last_expr_type and
12429         last_expr_value if we don't have either.
12430         * tree-inline.c (declare_return_variable): Mark its use
12431         statement as addressable.
12432         * tree.h: Document new use of TREE_ADDRESSABLE.
12433         (expand_expr_stmt_value): Declare.
12434
12435 2002-01-01  Tom Rix  <trix@redhat.com>
12436
12437         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
12438         rs6000_emit_allocate_stack.
12439
12440 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
12441
12442         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
12443         ${srcdir}/ginclude/ to every entry in extra_headers.
12444         * configure: Regenerate.
12445         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
12446         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
12447         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
12448         * ginclude/proto.h: Rename to config/convex/proto.h.
12449
12450 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12451
12452         * attribs.c (handle_vector_size_attribute): Use host_integerp
12453         and tree_int_cst; remove warnings.
12454         * caller-save.c (insert_restore): Add cast to get rid of warning.
12455         (insert_save): Likewise.
12456         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
12457         * regmove.c (find_matches): Add temporary var to kill a warning.
12458
12459 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
12460
12461         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
12462         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
12463         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
12464         (vms-dwarf2eh.o): Add Makefile rule.
12465         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
12466         * config/alpha/vms-dwarf2eh.asm: New file.
12467
12468         * gcc.c (delete_if_ordinary): Delete all versions.
12469
12470 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
12471
12472         * config/mmix/mmix.md: Update FIXME to not mention
12473         define_constants.
12474         (MMIX_rJ_REGNUM): New define_constants constant.
12475         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
12476         "*movdicc_real"): Adjust contraints formatting.
12477         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
12478         for branch prediction.
12479         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
12480         output template.
12481         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
12482         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
12483         number.  Delete related FIXMEs.
12484         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
12485         from number to MMIX_rJ_REGNUM.
12486         (TARGET_MASK_BRANCH_PREDICT): New.
12487         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
12488         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
12489         value.  Add -mbranch-predict and -mno-branch-predict.
12490         (TARGET_VERSION): Drop date.
12491         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
12492         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
12493         for finding out global symbols.
12494         (mmix_asm_output_labelref): Revert condition for global symbol.
12495         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
12496         (mmix_print_operand_punct_valid_p): A '+' is valid.
12497
12498 See ChangeLog.6 for earlier changes.