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/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
4
5 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
6
7         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
8         (nabs_nopower): Same.
9         (floatdisf2): New pattern.
10         (absdi2): Convert to define_insn_and_split.
11         (nabsdi2): Same.
12         (trunctfsf2): Same.
13         (floatditf2): Same.
14         (floatsitf2): Same.
15         (fix_trunctfdi2): Same.
16         (fix_trunctfsi2): Same.
17
18 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
19
20         * doc/install.texi: Update Texinfo version requirement
21         documentation.
22
23 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
24
25         PR target/6512, PR target/5628
26         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
27         when memory is not aligned.
28         (movdf_insn_v9only_vis): Likewise.
29         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
30         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
31         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
32
33 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
34
35         * gcc.dg/altivec-7.c: New.
36
37         * config/rs6000/altivec.h: Cleanup.
38
39 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
40
41         * doc/invoke.texi (Option Summary): Add -mvrsave=.
42         (RS/6000 and PowerPC Options): Document -mvrsave=.
43
44         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
45         (rs6000_altivec_vrsave_string): Same.
46         (rs6000_override_options): Call rs6000_parse_vrsave_option.
47         (rs6000_parse_vrsave_option): New.
48         (rs6000_stack_info): Only generate vrsave instructions when
49         TARGET_ALTIVEC_VRSAVE.
50
51         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
52         (rs6000_altivec_vrsave_string): Define extern.
53         (rs6000_altivec_vrsave): Same.
54         (TARGET_ALTIVEC_VRSAVE): New.
55
56 2002-04-30  Richard Henderson  <rth@redhat.com>
57
58         PR opt/6516
59         * toplev.c (rest_of_compilation): Don't run cross-jump before
60         bb-reorder.
61
62 2002-04-30  Tom Rix  <trix@redhat.com>
63
64         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity 
65         check which_alternative.
66
67 2002-04-30  Kazu Hirata  <kazu@hxi.com>
68
69         * cpplex.c: Fix comment formatting.
70         * function.c: Likewise.
71         * integrate.c: Likewise.
72         * regrename.c: Likewise.
73         * sibcall.c: Likewise.
74         * simplify-rtx.c: Likewise.
75         * tree-inline.c: Likewise.
76
77 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
78
79         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
80         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
81         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
82         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
83         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
84         * pa/x-ada: New file.  Define ADA_CFLAGS.
85
86 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
87
88         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
89         from MMIX_LAST_REGISTER_FILE_REGNUM.
90         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
91         (struct machine_function): New member highest_saved_stack_register
92         previously static variable in mmix.c.
93         (MACHINE_DEPENDENT_REORG): Define.
94         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
95         (MMIX_OUTPUT_REGNO): New.
96         (mmix_target_asm_function_prologue): Move calculation of last used
97         saved-stack-register into...
98         (mmix_machine_dependent_reorg): New function.  Update to also handle
99         !TARGET_ABI_GNU.
100         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
101         register names, simplify somewhat by new variable regno.
102         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
103         register.
104         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
105         emitting register names.
106         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
107         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
108         Remove fixed FIXME.
109         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
110         Declare.
111
112         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
113
114 2002-04-30  Richard Henderson  <rth@redhat.com>
115
116         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
117         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
118         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
119         emit_tfmode_cvt): New.
120         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
121         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
122         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
123         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
124         * config/sparc/sparc-protos.h: Update.
125
126 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
127
128         * install.texi (Final install): Add to the list of info to include
129         in a report of a successful bootstrap, and add link to 3.1 list.
130
131 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
132
133         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
134         (mode): Add vector modes
135         (i387): Kill attribute.
136         (unit): New attribute.
137         (length_immediate): Grok new types.
138         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
139         (modrm): Use "unit".
140         (memory): Handle MMX/SSE properly.
141         (scheduling descriptions): Kill uses of fop1.
142         (sse, mmx, fp patterns): Set type and mode properly.
143
144 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@cygnus.com)
145
146         * pa.c (override_options): Default to PA8000 scheduling.
147         * doc/invoke.texi (HP-PA options): Mention newly added 7300
148         scheduling parameter.
149
150         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
151         handling of double precision multiplies.
152
153         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
154         fpdiv and fpsqrt instructions.
155         (7200 & 7300 scheduling): Fix typo in handling of
156         store-load and store-store penalties.
157
158 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
159
160         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
161         mips.  Add two missing commas.
162
163 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
164
165         * doc/contrib.texi (Contributors): Update Paolo Carlini's
166         and Benjamin Kosnik's entries.
167
168 2002-04-29  David S. Miller  <davem@redhat.com>
169
170         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
171         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
172         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
173         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
174
175 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
176
177         * combine.c (find_split_point): Use gen_int_mode.
178
179 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
180
181         Merging code from dfa-branch:
182         
183         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
184
185         * genautomata.c (output_reserv_sets): Fix typo.
186
187         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
188
189         * genautomata.c (output_reserv_sets): Remove
190         next_cycle_output_flag.
191
192         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
193
194         * sched-rgn.c (init_ready_list): Make the DFA code handle
195         USE/CLOBBER insns in the same way as the traditional
196         scheduler.
197         (new_ready): Similarly..
198
199         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
200
201         * haifa-sched.c (schedule_block): Change the DFA state only after
202         issuing insn.
203
204         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
205
206         * pa.c (hppa_use_dfa_pipeline_interface): New function.
207         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
208         (override_options): Add PA7300 scheduling support.
209         (pa_adjust_cost): Update various comments.  Properly
210         handle anti and output dependencies when using the
211         DFA scheduler.
212         (pa_issue_rate): Add PA7300 scheduling support.
213         (pa_can_combine_p): Call extract_insn before calling
214         constrain_operands (taken from mainline tree).
215         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
216         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
217         descriptions using DFA descriptions.  Add PA7300
218         scheduling support.
219
220         2002-03-30  David S. Miller  <davem@redhat.com>
221
222         Add UltraSPARC-III DFA scheduling support.
223         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
224         Update FP conditional move on register insn patterns to use it, as
225         appropriate.
226         (define_attr cpu): Add ultrasparc3.
227         (define_attr us3load_type): New, update integer load patterns to
228         set it, as appropriate.
229         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
230         (rest): Add UltraSPARC3 scheduling description.
231         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
232         (PROCESSOR_ULTRASPARC3): New.
233         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
234         ({ASM,CPP}_CPU_SPEC): Likewise.
235         (REGISTER_MOVE_COST): Likewise.
236         (RTX_COSTS): Likewise.
237         * config/sparc/sparc.c (sparc_override_options,
238         sparc_initialize_trampoline, sparc64_initialize_trampoline,
239         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
240         sparc_issue_rate): Likewise.
241         * config/sparc/sol2.h: Likewise.
242         * config/sparc/sol2-sld-64.h: Likewise.
243         * config/sparc/linux64.h: Likewise.
244         
245         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
246
247         * doc/md.texi: Add comments about usage the latency time for the
248         different dependencies and about case when two or more conditions
249         in different define_insn_reservations returns TRUE for an insn.
250
251         * doc/md.texi: Add reference for automaton based pipeline
252         description.
253         
254         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
255
256         * doc/passes.texi: Add missed information about genattrtab.
257
258         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
259
260         * genautomata.c (output_automata_list_transition_code): Check
261         automata_list on NULL.
262
263         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
264
265         * genautomata.c (output_insn_code_cases,
266         output_automata_list_min_issue_delay_code,
267         output_automata_list_transition_code,
268         output_automata_list_state_alts_code): Comment the functions.
269
270         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
271
272         * genautomata.c (automata_list_el_t): New typedef.
273         (get_free_automata_list_el,free_automata_list_el,
274         free_automata_list, automata_list_hash, automata_list_eq_p,
275         initiate_automata_lists, automata_list_start, automata_list_add,
276         automata_list_finish, finish_automata_lists,
277         output_insn_code_cases, output_automata_list_min_issue_delay_code,
278         output_automata_list_transition_code,
279         output_automata_list_state_alts_code, add_automaton_state,
280         form_important_insn_automata_lists): New functions and prototypes.
281         (insn_reserv_decl): Add members important_automata_list and
282         processed_p.
283         (ainsn): Add members important_p.
284         (automata_list_el): New structure.
285         (first_free_automata_list_el, current_automata_list,
286         automata_list_table): New global variables.
287         (create_ainsns): Initiate member important_p.
288         (output_internal_min_issue_delay_func): Generate the switch and
289         call output_insn_code_cases.
290         (output_internal_trans_func, output_internal_state_alts_func):
291         Ditto.
292         (generate): Call initiate_automata_lists.
293         (automaton_states): New global variable.
294         (expand_automata): Call form_important_insn_automata_lists.
295         (write_automata): Call finish_automata_lists.
296         
297         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
298
299         * genautomata.c (add_excls, add_presence_absence): Check that
300         cpu units in the sets belong the same automaton.
301
302         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
303         about that cpu units in the sets belong the same automaton.
304
305         * doc/md.texi: Ditto.
306         
307         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
308                     Nitin Gupta  <niting@noida.hcltech.com>
309         
310         * config/sh/sh.c (sh_use_dfa_interface): New function.
311
312         (sh_issue_rate): New Function.
313         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
314         TARGET_SCHED_ISSUE_RATE: define.
315
316         * config/sh/sh.md: Add DFA based pipeline description for SH4.
317
318         (define_attr insn_class): New attribute used for DFA 
319          scheduling.
320         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
321         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
322          cmpeqdi_t): Likewise.
323
324         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
325          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class 
326          ex_group.
327         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
328            
329         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
330
331         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
332         break.
333
334         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
335
336         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
337         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
338         necessary.
339         (output_dfa_start_func): Initiate new variable insn_codes_length,
340         (write_automata): Output definition of the new variable.
341         
342         2001-10-02  David S. Miller  <davem@redhat.com>
343
344         * haifa-sched.c (advance_one_cycle): New function.
345         (schedule_block): Use it.
346         (queue_to_ready): Use it, and also make sure to advance the DFA
347         state on all stall cycles, not just those where insn_queue links
348         are found.
349
350         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
351
352         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
353         non-zero if the highest-priority instruction could be scheduled.
354         (choose_ready): Remove last argument from max_issue call.
355
356         2001-09-28  David S. Miller  <davem@redhat.com>
357
358         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
359         ultrasparc and 3 for other multi-issue sparcs.
360
361         2001-09-27  David S. Miller  <davem@redhat.com>
362
363         * config/sparc/sparc.md (cycle_display): New pattern.
364         * config/sparc/sparc.c (sparc_cycle_display): New.
365         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
366
367         2001-09-25  David S. Miller  <davem@redhat.com>
368
369         Convert all of Sparc scheduling to DFA
370         * config/sparc/sparc.md: Kill all define_function_unit
371         directives and replace with DFA equivalent.
372         * config/sparc/sparc.c (ultrasparc_adjust_cost,
373         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
374         ultra_fpmode_conflict_exists, ultra_find_type,
375         ultra_build_types_avail, ultra_flush_pipeline,
376         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
377         ultrasparc_variable_issue, ultrasparc_sched_init,
378         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
379         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
380         ultra_cur_hist, ultra_cycles_elapsed): Kill.
381         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
382         ultrasparc_store_bypass_p): New.
383         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
384         Declare.
385
386         2001-09-24  David S. Miller  <davem@redhat.com>
387
388         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
389         ready->vec[foo] not ready[foo].
390
391         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
392
393         * doc/md.texi: Correct examples for define_insn_reservations
394         `mult' and `div'.
395
396         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
397
398         * genautomata.c (create_automata): Print message about creation of
399         each automaton.
400         (generate): Remove printing meease about creation of
401         automata.
402
403         2001-09-05  David S. Miller  <davem@redhat.com>
404
405         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
406         * config/sparc/linux64.h: Likewise.
407
408         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
409
410         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
411         schedule_block, sched_init, sched_finish): Add missed calls of
412         use_dfa_pipeline_interface.
413
414         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
415         Ditto.
416
417         * sched-vis.c (get_visual_tbl_length): Ditto.
418         
419         2001-08-27  Richard Henderson  <rth@redhat.com>
420
421         * genattr.c (main): Emit state_t even when not doing scheduling.
422
423         2001-08-27  Richard Henderson  <rth@redhat.com>
424
425         * genautomata.c (expand_automata): Always create a description.
426
427         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
428
429         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
430         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
431         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
432         RTL constructions.
433
434         * genattr.c (main): New variable num_insn_reservations.  Increase
435         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
436         pipeline hazard recognizer interface.
437
438         * genattrtab.h: New file.
439
440         * genattrtab.c: Include genattrtab.h.
441         (attr_printf, check_attr_test, make_internal_attr,
442         make_numeric_value): Move protypes into genattrtab.h.  Define them
443         as external.
444         (num_dfa_decls): New global variable.
445         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
446         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
447         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
448         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
449
450         * genautomata.c: New file.
451
452         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
453
454         * sched-int.h: (curr_state): Add the external definition for
455         automaton pipeline interface.
456         (haifa_insn_data): Add comments for members blockage and units.
457
458         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
459         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
460         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
461         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
462         TARGET_SCHED_DFA_POST_CYCLE_INSN,
463         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
464         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
465         macros.
466         (TARGET_SCHED): Use the new macros.
467
468         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
469         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
470         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
471         dfa_bubble): New members in gcc_target.sched.
472
473         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
474         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
475         (insn_queue): Redefine it as pointer to array.
476         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
477         INSN_QUEUE_SIZE.
478         (max_insn_queue_index_macro_value): New variable.
479         (curr_state, dfa_state_size, ready_try): New varaibles for
480         automaton interface.
481         (ready_element, ready_remove, max_issue): New function prototypes
482         for automaton interface.
483         (choose_ready): New function prototype.
484         (insn_unit, blockage_range): Add comments.
485         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
486         FUNCTION_UNITS_SIZE == 0.
487         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
488         actual_hazard, potential_hazard): Add comments.
489         (insn_cost): Use cost -1 as undefined value.  Remove
490         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
491         pipeline interface.
492         (ready_element, ready_remove): New functions for automaton
493         interface.
494         (schedule_insn): Add new code for automaton pipeline interface.
495         (queue_to_ready): Add new code for automaton pipeline interface.
496         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
497         (debug_ready_list): Print newline when the queue is empty.
498         (max_issue): New function for automaton pipeline interface.
499         (choose_ready): New function.
500         (schedule_block): Add new code for automaton pipeline interface.
501         Print ready list before scheduling each insn.
502         (sched_init): Add new code for automaton pipeline interface.
503         Initiate insn cost by -1.
504         (sched_finish): Free the current automaton state and finalize
505         automaton pipeline interface.
506
507         * sched-rgn.c: Include target.h.
508         (init_ready_list, new_ready, debug_dependencies): Add new code for
509         automaton pipeline interface.
510
511         * sched-vis.c: Include target.h.
512         (get_visual_tbl_length): Add code for automaton interface.
513         (target_units, print_block_visualization):  Add comments.
514
515         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
516         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
517         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
518         (getruntime.o, genautomata.o): New entries.
519         (genattrtab.o): Add new dependency file genattrtab.h.
520         (genattrtab): Add new dependencies.  Link it with `libm.a'.
521         (getruntime.o, hashtab.o): New entries for canadian cross.
522
523         * doc/md.texi: Description of automaton based model.
524
525         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
526         Add comments.
527         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
528         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
529         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
530         TARGET_SCHED_DFA_POST_CYCLE_INSN,
531         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
532         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
533         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
534         hook descriptions.
535         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
536         MAX_DFA_ISSUE_RATE): New macro descriptions.
537
538         * doc/contrib.texi: Add dfa based scheduler contribution.
539
540         * doc/gcc.texi: Add more information about genattrtab.
541
542 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
543
544         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
545         adjust_address_nv call.
546
547 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
548
549         * doc/install.texi (Testing): Provide additional information, and
550         a stronger encouragement, for running the testsuites.
551
552 2002-04-29  DJ Delorie  <dj@redhat.com>
553
554         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
555         given in upper case.
556
557 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
558
559         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
560         Solaris 2 <widec.h> if missing.
561         * fixinc/fixincl.x: Regenerate.
562         * fixinc/tests/base/widec.h: New file.
563
564 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
565
566         * toplev.c (f_options): Add "profile" switch so that
567         -fno-profile can be used to disable -p.
568
569 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
570
571         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
572         UV2DImode.
573         * tree.c (build_common_tree_nodes_2): Likewise.
574         * tree.h (enum tree_index): Likewise.
575         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
576
577         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
578         entries.
579         (init_mmx_sse_builtins): Initialize SSE2 builtins.
580         (ix86_expand_builtin): Add support for SSE2 builtins.
581         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
582         (VALID_SSE_REG_MODE): Use it.
583         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
584         (enum ix86_builtins): Add SSE2 builtins.
585         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
586         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
587         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
588         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
589         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
590         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
591         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
592         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
593         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
594         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
595         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
596         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
597         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
598         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
599         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
600         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
601         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
602         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
603         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
604         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
605         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
606         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
607         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
608         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
609         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
610         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
611         lfence_insn): New patterns.
612         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
613         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
614
615 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
616
617         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
618
619 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
620
621         * doc/contrib.texi (Contributors): Add Paolo Carlini and
622         Janis Johnson.
623         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
624         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
625         and CPU instead of cpu.
626
627 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
628
629         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
630         variables.
631         (lang_independent_options): Add -fif-conversion, -fif-conversion2
632         (rest_of_compilation): Do if conversion only when asked for.
633         (parse_options_and_default_flags): Set new variables to 1 for -O1
634         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
635
636 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
637
638         * i386.c (dbx64_register_map): Fix typo.
639
640 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
641
642         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
643         real_one_half, real_bb_freq_max): New static variables.
644         (debug_profile_bbauxs): Kill.
645         (process_note_predictions): Kill unused variable.
646         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
647         volatile double.
648         (propagate_freq): Use REAL_ARITHMETICS.
649         (estimate_bb_frequencies): Likevise; init new static variables.
650         * Makefile.in (predict.o): Add dependency on real.h
651
652 2002-04-28  David S. Miller  <davem@redhat.com>
653
654         PR target/6500
655         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
656         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
657         several {reads,writes} instead.
658         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
659         Define.
660
661 2002-04-27  David S. Miller  <davem@redhat.com>
662
663         PR target/6494
664         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
665         of the stack bias.
666
667         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
668         including signal.h and sys/ucontext.h, not needed.
669
670 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
671
672         * varasm.c (output_constant_def): Correct test for not calling
673         ENCODE_SECTION_INFO for INTEGER_CST.
674
675 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
676
677         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
678         keep most cases as function eval_token.
679         (eval_token): New function.
680         (_cpp_parse_expr): Read token here for improved diagnostics.
681         Don't use op_as_text.  Detect bad ':' here.
682         (reduce): Don't detect bad ':' here.
683         (op_as_text): Remove.
684         * cpphash.h (_cpp_test_assertion): Change prototype.
685         * cpplib.c (_cpp_test_assertion): Change prototype.
686
687 2002-04-28  Richard Henderson  <rth@redhat.com>
688
689         PR c/5154
690         * ggc-common.c (ggc_mark_rtx_children_1): Rename from... 
691         (ggc_mark_rtx_children): New.
692
693 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
694
695         PR target/6496
696         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
697         after call peepholes for UltraSPARC.
698         (call + jump 64-bit peepholes): Remove.
699
700 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
701
702         PR c/6497
703         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
704         result as temporary value.
705
706 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
707
708         PR c++/6396
709         * toplev.c (rest_of_compilation): Only run regrename and copy
710         propagation if optimizing.
711
712 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
713
714         PR optimization/6475
715         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
716         register of REGNO_DECL (i).
717         * Makefile.in (reload1.o): Add $(TREE_H).
718
719 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
720
721         * cppexp.c (lex): Update to use state.skip_eval.
722         (struct op): Remove prio and flags members.
723         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
724         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
725         (LEFT_ASSOC): New macro.
726         (optab): New table of operator priorities and flags.
727         (SHIFT): Update.
728         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
729         malloc-ed parser stack.
730         (reduce): New; reduce the operator stack.
731         (_cpp_expand_op_stack): Expand the operator stack as necessary.
732         * cpphash.h (struct op): Predeclare.
733         (struct cpp_reader): New members op_stack, op_limit.
734         (struct lexer_state): New member skip_eval.
735         (_cpp_parse_expr): Update.
736         (_cpp_expand_op_stack): New.
737         * cpplib.c (do_if): Update.
738         * cppinit.c (cpp_create_reader): Create op stack.
739         (cpp_destroy): And destroy it.
740         * cpplib.h (CPP_LAST_CPP_OP): Correct.
741         (TTYPE_TABLE): Correct.
742
743 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
744
745         PR c/6343
746         * c-decl.c (duplicate_decls): Call merge_weak.
747         * c-pragma.c (apply_pragma_weak): Warn about misuse.
748         * output.h (merge_weak): Prototype merge_weak.
749         * varasm.c (merge_weak): New function.
750         (declare_weak): Make sure we don't give an error on VAR_DECLs.
751         Mark RTL with SYMBOL_REF_WEAK.
752
753 2002-04-27  Kurt Garloff <garloff@suse.de>
754
755         * tree-inline.c (inlinable_function_p): Improve heuristics
756         by using a smoother function to cut down allowable inlinable size.
757         * param.def: Add parameters max-inline-insns-single,
758         max-inline-slope, min-inline-insns that determine the exact
759         shape of the above function.
760         * param.h: Likewise.
761
762 2002-04-26  Richard Henderson  <rth@redhat.com>
763
764         * c-parse.in (malloced_yyss, malloced_yyvs): New.
765         (yyoverflow): Re-add.  Set them.
766         (free_parser_stacks): New.
767         * c-common.h: Declare it.
768         * c-lex.c (c_common_parse_file): Call it.
769
770 2002-04-26  Richard Henderson  <rth@redhat.com>
771
772         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
773         for fallthru search.
774
775 2002-04-26  Eric Christopher  <echristo@redhat.com>
776
777         PR optimization/3700
778         * config/mips/mips.c (mips_issue_rate): Define.  New function.
779         (TARGET_SCHED_ISSUE_RATE): Use.
780
781 2002-04-25  David S. Miller  <davem@redhat.com>
782
783         PR target/6422
784         * reorg.c (optimize_skip): Do not allow exception causing
785         instructions to be considered for delay slots.
786         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
787         (relax_delay_slots): Do not try to consider exception causing
788         instructions as redundant.
789
790 2002-04-26  Richard Henderson  <rth@redhat.com>
791
792         PR c/5225
793         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
794
795 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
796
797         PR bootstrap/6445
798         * config/i386/i386.md (untyped_call): Return the value in a float
799         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
800         TARGET_80387.
801
802 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
803
804         * tree.c (tree_int_cst_lt): Compare constants whose types differ
805         in unsigned-ness correctly.
806
807 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
808
809         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
810         portable runtime model.
811
812 2002-04-26  Richard Henderson  <rth@redhat.com>
813
814         * c-parse.in (yyoverflow): Revert.
815
816 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
817             Richard Henderson  <rth@redhat.com>
818
819         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
820         result as temporary value.
821
822 2002-04-26  Richard Henderson  <rth@redhat.com>
823
824         PR c/3581
825         * c-common.c (fix_string_type): Split out of ...
826         (combine_strings): ... here.  Take a varray, not a tree list.
827         (c_expand_builtin_printf): Use fix_string_type.
828         * c-common.h: Update decls.
829         * c-parse.in (string): Remove.  Update all uses to use STRING
830         instead, and not call combine_strings.
831         (yylexstring): New.
832         (_yylex): Use it.
833         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
834         (build_asm_stmt): Likewise.
835         * objc/objc-act.c (my_build_string): Use fix_string_type.
836         (build_objc_string_object): Build varray for combine_strings.
837
838 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
839
840         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
841         x86-64.
842
843 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
844
845         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
846         (HAVE_NO_R_OPERAND): Remove.
847         (HAVE_VALUE): Remove.
848         (op_to_prio): Update.
849         (UNARY): Don't alter flags.
850         (_cpp_parse_expr): want_value used to indicate whether
851         a number or unary operator is expected next.  Distinguish
852         unary and binary +/-.
853         (op_as_text): Update for unary operators.
854
855 2002-04-25  Richard Henderson  <rth@redhat.com>
856
857         PR c/2161
858         * c-parse.in (yyoverflow): New.
859
860 2002-04-25  Richard Henderson  <rth@redhat.com>
861
862         PR c/2098
863         * c-common.c (shorten_compare): Simplfy conditions leading to
864         the generation of a warning.
865
866 2002-04-25  Richard Henderson  <rth@redhat.com>
867
868         PR c/2035
869         * expmed.c (extract_bit_field): Fall through to generic code rather
870         than aborting on subreg special case.
871
872 2002-04-25  David S. Miller  <davem@redhat.com>
873
874         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
875         for DECL being NULL.
876
877 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
878
879         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
880
881 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
882
883         * c-decl.c (grokdeclarator): Remove outdated ??? note
884         on invalid declaration of flexible array members.
885
886 2002-04-25  Richard Henderson  <rth@redhat.com>
887
888         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
889
890 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
891
892         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
893         needed by the compiler, even if they are used as global regs.
894
895 2002-04-25  Matt Hiller  <hiller@redhat.com>
896
897         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
898         functions.
899         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
900         of the corresponding functions.
901         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
902         New prototypes.
903
904 2002-04-25  Matt Hiller  <hiller@redhat.com>
905
906         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
907
908         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
909         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
910         registers, adjust comment accordingly.
911         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
912         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
913         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
914         for coprocessor registers.
915         (ADDITIONAL_REGISTER_NAMES): Include
916         ALL_COP_ADDITIONAL_REGISTER_NAMES.
917
918         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
919         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
920         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
921         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
922         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
923
924         (mips_char_to_class): Adjust comment to include coprocessor
925         constraint letters.
926
927         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
928         New functions.
929         (mips_reg_names, mips_regno_to_class): Include coprocessor
930         information.
931         (mips_sw_reg_names): Ditto, make non-static.
932         (mips_move_1word): Handle moves to and from coprocessor registers.
933         (mips_move_2words): Handle moves to and from coprocessor
934         registers.
935         (mips_class_max_nregs, mips_register_move_cost): Handle
936         coprocessor register classes.
937         (override_options): Initialize mips_char_to_class and
938         mips_hard_regno_mode_ok properly for coprocessor registers.
939
940         * config/mips/mips.md (movdi_internal, movdi_internal2,
941         movsi_internal1, movsi_internal2): Add constraint-sets for
942         coprocessor registers.
943         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
944         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
945         isn't mips.
946         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
947         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
948         isn't mips.
949         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
950         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
951         isn't mips.
952         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
953         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
954         isn't mips.
955
956         * doc/tm.texi: Document feature.
957
958 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
959
960         * integrate.c (function_attribute_inlinable_p): Simplify.
961         Check the table pointer is not NULL.
962
963 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
964
965         * doc/c-tree.texi: Fix typo in introduction.
966
967 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
968
969         * c-common.h (c_common_parse_file): Update.
970         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
971         * c-lex.c (YYDEBUG): Get from c-lex.h.
972         (c_common_parse_file): Update.
973         * c-lex.h (YYDEBUG, yydebug): New.
974         * c-parse.in (YYDEBUG): Get from c-lex.h.
975         (c_set_yydebug): Remove.
976         * c-tree.h (c_set_yydebug): Remove.
977         * langhooks-def.h (lhd_do_nothing_i): New.
978         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
979         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
980         * langhooks.c  (lhd_do_nothing_i): New.
981         (lhd_set_yydebug): Remove.
982         * langhooks.h (struct lang_hooks): Update.
983         * toplev.c (set_yydebug): New.
984         (compile_file): Update call to parse_file hook.
985         (decode_d_option): Update.
986 objc:
987         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
988
989 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
990
991         * loop.c (load_mems): Don't change the interface of called functions.
992
993         * calls.c (expand_call): Take current_function_pretend_args_size
994         into account when setting argblock for sibcalls.
995
996 2002-04-24  Matt Hiller  <hiller@redhat.com>
997
998         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
999         * c-lex.c: Ditto.
1000
1001         * cpplex.c (skip_line_comment): Process comment one multibyte
1002         character at a time rather than one char at a time, if
1003         appropriate.
1004         (parse_string): Process string one multibyte character at a time
1005         rather than one char at a time, if appropriate.
1006         * c-lex.c (lex_string): Lex and copy multibyte strings
1007         appropriately.
1008         * cpplib.h (cppchar_t): Change to unsigned.
1009
1010 2002-04-24  Richard Henderson  <rth@redhat.com>
1011
1012         PR c/3467
1013         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
1014         for c99.
1015
1016 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
1017
1018         * sh.c (sh_va_arg): If argument was passed by reference,
1019         dereference the pointer.
1020
1021         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
1022
1023         * sh.md (divsi3_i4_media): Use match_operand for input values
1024         rather than hard registers.
1025         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
1026         unnecessarily through hard registers.  Keep copies of pseudo
1027         registers outside of the libcall sequence.
1028
1029         * sh.md (casesi_shift_media): Add modes.
1030
1031         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
1032         values in memory.
1033
1034 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
1035
1036         * attribs.c (c_common_attribute_table): Move table and handlers
1037         to c-common.c.
1038         (format_attribute_table, lang_attribute_table,
1039         lang_attribute_common): Remove.
1040         (init_attributes): Replace NULL pointers with pointers to the
1041         empty table.
1042         (handle_packed_attribute, handle_nocommon_attribute,
1043         handle_common_attribute, handle_noreturn_attribute,
1044         handle_noinline_attribute, handle_always_inline_attribute,
1045         handle_used_attribute, handle_unused_attribute,
1046         handle_const_attribute, handle_transparent_union_attribute,
1047         handle_constructor_attribute, handle_destructor_attribute,
1048         handle_mode_attribute, handle_section_attribute,
1049         handle_aligned_attribute, handle_weak_attribute,
1050         handle_alias_attribute, handle_visibility_attribute,
1051         handle_no_instrument_function_attribute, handle_malloc_attribute,
1052         handle_no_limit_stack_attribute, handle_pure_attribute,
1053         handle_deprecated_attribute, handle_vector_size_attribute,
1054         vector_size_helper): Move to c-common.c.
1055         * c-common.c (c_common_attribute_table,
1056         handle_packed_attribute, handle_nocommon_attribute,
1057         handle_common_attribute, handle_noreturn_attribute,
1058         handle_noinline_attribute, handle_always_inline_attribute,
1059         handle_used_attribute, handle_unused_attribute,
1060         handle_const_attribute, handle_transparent_union_attribute,
1061         handle_constructor_attribute, handle_destructor_attribute,
1062         handle_mode_attribute, handle_section_attribute,
1063         handle_aligned_attribute, handle_weak_attribute,
1064         handle_alias_attribute, handle_visibility_attribute,
1065         handle_no_instrument_function_attribute, handle_malloc_attribute,
1066         handle_no_limit_stack_attribute, handle_pure_attribute,
1067         handle_deprecated_attribute, handle_vector_size_attribute,
1068         vector_size_helper): Move from attribs.c.
1069         * c-common.h (c_common_attribute_table,
1070         c_common_format_attribute_table): New.
1071         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
1072         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
1073         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
1074         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
1075         (LANG_HOOKS_INITIALIZER): Update.
1076         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
1077         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
1078         * target.h: Update comment.
1079         * tree.c (default_target_attribute_table): Remove.
1080         * tree.h (default_target_attribute_table, format_attribute_table,
1081         lang_attribute_table, lang_attribute_common): Remove.
1082 objc:
1083         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
1084         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
1085
1086 2002-04-24  Jason Merrill  <jason@redhat.com>
1087
1088         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
1089         * dwarf2out.c (dwarf_attr_name): Support it.
1090         (gen_array_type_die): Emit it.
1091         (lookup_type_die): No special handling for VECTOR_TYPE.
1092         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
1093
1094 2002-04-24  Richard Henderson  <rth@redhat.com>
1095
1096         * config/mips/mips.md (movdi_usd): Renumber.
1097
1098 2002-04-24  David S. Miller  <davem@redhat.com>
1099
1100         PR target/6420
1101         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
1102         32-bit Sparc and current_function_returns_struct is true.
1103
1104 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
1105
1106         * loop.c (canonicalize_condition): Use gen_int_mode.
1107
1108 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
1109
1110         * config/rs6000/altivec.h: Cleanup file.  Add non individual
1111         variants.
1112         (vec_vaddubm): New.
1113         (vec_vadduhm): New.
1114         (vec_vadduwm): New.
1115         (vec_vaddfp): New.
1116         (vec_vaddcuw): New.
1117         (vec_vaddubs): New.
1118         (vec_vaddsbs): New.
1119         (vec_vadduhs): New.
1120         (vec_vadduws): New.
1121         (vec_vaddsws): New.
1122         (vec_vand): New.
1123         (vec_vandc): New.
1124         (vec_vavgub): New.
1125         (vec_vavgsb): New.
1126         (vec_vavguh): New.
1127         (vec_vavgsh): New.
1128         (vec_vavguw): New.
1129         (vec_vavgsw): New.
1130         (vec_vrfip): New.
1131         (vec_vcmpbfp): New.
1132         (vec_vcmpequb): New.
1133         (vec_vcmpequh): New.
1134         (vec_vcmpequw): New.
1135         (vec_vcmpeqfp): New.
1136         (vec_vcmpgefp): New.
1137         (vec_vcmpgtub): New.
1138         (vec_vcmpgtsb): New.
1139         (vec_vcmpgtuh): New.
1140         (vec_vcmpgtsh): New.
1141         (vec_vcmpgtuw): New.
1142         (vec_vcmpgtsw): New.
1143         (vec_vcmpgtfp): New.
1144         (vec_vcmpgefp): New.
1145         (vec_vcfux): New.
1146         (vec_vcfsx): New.
1147         (vec_vctsxs): New.
1148         (vec_vctuxs): New.
1149         (vec_vexptefp): New.
1150         (vec_vrfim): New.
1151         (vec_lvx): New.
1152         (vec_lvebx): New.
1153         (vec_lvehx): New.
1154         (vec_lde): Add vector float variant.
1155         (vec_lvewx): New.
1156         (vec_lvxl): New.
1157         (vec_vlogefp): New.
1158         (vec_vmaddfp): New.
1159         (vec_vmhaddshs): New.
1160         (vec_vmaxub): New.
1161         (vec_vmaxsb): New.
1162         (vec_vmaxuh): New.
1163         (vec_vmaxsh): New.
1164         (vec_vmaxuw): New.
1165         (vec_vmaxsw): New.
1166         (vec_vmaxsw): New.
1167         (vec_vmaxfp): New.
1168         (vec_vmrghb): New.
1169         (vec_vmrghh): New.
1170         (vec_vmrghw): New.
1171         (vec_vmrglb): New.
1172         (vec_vmrglh): New.
1173         (vec_vmrglw): New.
1174         (vec_vminub): New.
1175         (vec_vminsb): New.
1176         (vec_vminuh): New.
1177         (vec_vminsh): New.
1178         (vec_vminuw): New.
1179         (vec_vminsw): New.
1180         (vec_vminfp): New.
1181         (vec_vmladduhm): New.
1182         (vec_vmhraddshs): New.
1183         (vec_msumubm): New.
1184         (vec_vmsummbm): New.
1185         (vec_vmsumuhm): New.
1186         (vec_vmsumshm): New.
1187         (vec_vmsumuhs): New.
1188         (vec_vmsumshs): New.
1189         (vec_vmuleub): New.
1190         (vec_vmulesb): New.
1191         (vec_vmuleuh): New.
1192         (vec_vmulesh): New.
1193         (vec_vmuloub): New.
1194         (vec_mulosb): New.
1195         (vec_vmulouh): New.
1196         (vec_vmulosh): New.
1197         (vec_vnmsubfp): New.
1198         (vec_vnor): New.
1199         (vec_vor): New.
1200         (vec_vpkuhum): New.
1201         (vec_vpkuwum): New.
1202         (vec_vpkpx): New.
1203         (vec_vpkuhus): New.
1204         (vec_vpkshss): New.
1205         (vec_vpkuwus): New.
1206         (vec_vpkswss): New.
1207         (vec_vpkshus): New.
1208         (vec_vpkswus): New.
1209         (vec_vperm): New.
1210         (vec_vrefp): New.
1211         (vec_vrlb): New.
1212         (vec_vrlh): New.
1213         (vec_vrlw): New.
1214         (vec_vrfin): New.
1215         (vec_vrsqrtefp): New.
1216         (vec_vsel): New.
1217         (vec_vslb): New.
1218         (vec_vslh): New.
1219         (vec_vslw): New.
1220         (vec_vsldoi): New.
1221         (vec_vsl): New.
1222         (vec_vslo): New.
1223         (vec_vspltb): New.
1224         (vec_vsplth): New.
1225         (vec_vspltw): New.
1226         (vec_vspltisb): New.
1227         (vec_vspltish): New.
1228         (vec_vspltisw): New.
1229         (vec_vsrb): New.
1230         (vec_vsrh): New.
1231         (vec_vsrw): New.
1232         (vec_vsrab): New.
1233         (vec_vsrah): New.
1234         (vec_vsraw): New.
1235         (vec_vsr): New.
1236         (vec_vsro): New.
1237         (vec_stvx): New.
1238         (vec_stvebx): New.
1239         (vec_stvehx): New.
1240         (vec_stvewx): New.
1241         (vec_stvxl): New.
1242         (vec_vsububm): New.
1243         (vec_vsubuhm): New.
1244         (vec_vsubuwm): New.
1245         (vec_vsubfp): New.
1246         (vec_vsubcuw): New.
1247         (vec_vsububs): New.
1248         (vec_vsubsbs): New.
1249         (vec_vsubuhs): New.
1250         (vec_vsubshs): New.
1251         (vec_vsubuws): New.
1252         (vec_vsubsws): New.
1253         (vec_vsum4ubs): New.
1254         (vec_vsum4sbs): New.
1255         (vec_vsum4shs): New.
1256         (vec_vsum2sws): New.
1257         (vec_vsumsws): New.
1258         (vec_vrfiz): New.
1259         (vec_vupkhsb): New.
1260         (vec_vupkhpx): New.
1261         (vec_vupkhsh): New.
1262         (vec_vupklsb): New.
1263         (vec_vupklpx): New.
1264         (vec_vupklsh): New.
1265         (vec_vxor): New.
1266
1267 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
1268
1269         PR c/5430
1270         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
1271         added literals from substracted literals.
1272         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
1273         (fold) [associate]: Preserve MINUS_EXPR if needed.
1274
1275 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
1276
1277         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
1278         are obsoleted.
1279
1280 2002-04-23  Tom Tromey  <tromey@redhat.com>
1281
1282         * gcc.c: Added --resource.  For PR java/6314.
1283
1284 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
1285
1286         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
1287         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
1288         these libraries.
1289
1290 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
1291
1292         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
1293
1294 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
1295
1296         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
1297         workaround.
1298         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
1299         (ix86_expand_clrstr): Fix typo.
1300         * loop.c (gen_load_of_final_value): New.
1301         (loop_givs_rescan, strength_reduce, check_dbra_loop):
1302         Use it.
1303
1304 2002-04-23  Roger Sayle  <roger@eyesopen.com>
1305
1306         * builtins.c (builtin_memset_gen_str): New function.
1307         (expand_builtin_memset): Optimize the case of constant length, but
1308         unknown value.
1309
1310 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
1311
1312         * config/rs6000/altivec.h (vec_step): Remove extraneous
1313         parentheses.
1314         (vec_ctu): Cast return.
1315
1316 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
1317
1318         PR target/6413
1319         * function.h: (struct function): Add profile_label_no field.
1320         (current_function_profile_label_no): Define.
1321         * function.c: (profile_label_no): New static var.
1322         (expand_function_start): Increment it, and copy to
1323         current_function_profile_label_no.
1324         * output.h (profile_label_no): Delete.
1325         * final.c (profile_label_no): Delete.
1326         (profile_function): Use current_function_profile_label_no.
1327         (final_end_function): Don't increment profile_label_no here.
1328         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
1329         profile_label_no with current_function_profile_label_no.
1330         * config/pa/pa.c (current_function_number): Delete.
1331         (pa_output_function_prologue): Don't output profile label here.
1332         (hppa_profile_hook): Use label_no param rather than
1333         current_function_number.
1334         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
1335         * config/pa/pa.h: .. here.
1336         (FUNCTION_PROFILER): Output profile label here.
1337
1338 2002-04-22  Eric Christopher  <echristo@redhat.com>
1339
1340         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
1341         patch of 2002-04-09 due to binutils issues.
1342         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
1343
1344 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
1345
1346         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
1347         constraint to 'o' for m=r and r=m alternatives.
1348         ("*movv8hi_internal1"): Same.
1349         ("*movv16qi_internal1"): Same.
1350         ("*movv4sf_internal1"): Same.
1351
1352 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
1353
1354         * rtl.h (RTX_FLAG): New macro.
1355         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
1356         * final.c (alter_subreg): Use macro to access rtx flag.
1357         * integrate.c (copy_rtx_and_substitute): Use new access macro.
1358         * print-rtl.c (print_rtx): Use new access macro.
1359
1360         * cse.c (insert): Check rtx code before accessing flag.
1361
1362         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
1363         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
1364         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
1365         convert_const_symbol_ref, make_canonical, make_alternative_compare,
1366         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
1367         simplify_test_exp, optimize_attrs, simplify_by_exploding,
1368         find_and_mark_used_attributes, unmark_used_attributes,
1369         add_values_to_cover, simplify_with_current_value,
1370         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
1371         copy_rtx_unchanging, main): Use new access macros.
1372
1373 2002-04-22  Tom Rix  <trix@redhat.com>
1374
1375         * expmed.c (init_expmed): Generate shifted constant once.
1376
1377 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
1378
1379         * c-lex.c (lex_charconst): Call convert to get constant in
1380         proper type; don't just smash the type field.
1381         Fixes PR c/6300.
1382
1383         * config.gcc: Add list of obsolete configurations.  Disallow
1384         building these without --enable-obsolete.
1385         * doc/install.texi: Document --enable-obsolete and obsoletion
1386         policy.  Mention obsoletion of individual targets in
1387         appropriate places.
1388
1389 2002-04-22  Richard Henderson  <rth@redhat.com>
1390
1391         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
1392
1393 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
1394
1395         PR f/6138.
1396         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
1397         (walk_fixup_memory_subreg): Likewise.
1398         (fixup_var_refs_insn): Adjust accordingly.
1399         (fixup_var_refs_1): Likewise.
1400
1401 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
1402
1403         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
1404         LIBPATH_ARCH64_SPEC): Define.
1405         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
1406         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
1407         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
1408         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
1409
1410 2002-04-22      Joel Sherrill <joel@OARcorp.com>
1411
1412         * gthr-rtems.h: Correct prototypes to remove warnings.
1413
1414 2002-04-22  Richard Henderson  <rth@redhat.com>
1415
1416         PR c/6344
1417         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
1418
1419         * gcse.c (free_insn_expr_list_list): New.
1420         (clear_modify_mem_tables): Use it.  Fix bit set usage.
1421         (canon_list_insert): Use EXPR_LISTs for expressions.
1422         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
1423
1424 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
1425
1426         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
1427         file change and include code to _cpp_pop_buffer.
1428         * cpphash.h (struct pending_option): Predeclare.
1429         (struct cpp_reader): New member next_include_file.
1430         (_cpp_pop_file_buffer): Update.
1431         (_cpp_push_next_buffer): Update, rename.
1432         * cppinit.c (cpp_destroy): Free include chain and pending here.
1433         (cpp_finish_options): Simplify.
1434         (_cpp_push_next_buffer): Rename and clean up.
1435         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
1436         Clarify.
1437         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
1438
1439 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
1440
1441         * config/rs6000/altivec.h (vec_xor): Add variant for both args
1442         being vector signed int.
1443         (vec_andc): Same.
1444         (vec_xor): Add variant for both args being vector signed char.
1445         Remove redundant variant.
1446         (vec_andc): Same.
1447
1448 2002-04-21  David S. Miller  <davem@redhat.com>
1449
1450         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
1451         compare mode in output RTL.
1452
1453 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
1454
1455         * config/rs6000/rs6000.c (rs6000_override_options): Correct
1456         style and formatting of previous patch.
1457
1458 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
1459
1460         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
1461         flag_pic for ABI_AIX.
1462
1463 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
1464
1465         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
1466         * cppfiles.c (read_include_file): Similarly.
1467         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
1468         uxstrdup ustrchr, ufputs): Similarly.
1469         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
1470         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
1471         cpp_ideq, parse_identifier, parse_number): Similarly.
1472         * cpplib.c (struct directive, dequote_string, D, run_directive,
1473         cpp_push_buffer): Similarly.
1474         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
1475         _cpp_create_definition, check_trad_stringification,
1476         cpp_macro_definition): Similarly.
1477
1478 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
1479
1480         * cppmacro.c (funlike_invocation_p): Don't step back
1481         over CPP_EOF.
1482
1483 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
1484
1485         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
1486         labelno.
1487
1488 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
1489
1490         * doc/invoke.texi: Remove Chill references.
1491         * doc/gcc.texi: Update last modified date.
1492
1493 2002-04-20  Kazu Hirata  <kazu@hxi.com>
1494
1495         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
1496         push and pop.  Replace add.l with add.w.
1497
1498 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1499
1500         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
1501         multiply instructions for H8/300H case.
1502
1503 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1504
1505         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
1506         Bum three instructions from each routine.
1507
1508 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
1509
1510         * Makefile.in: Update.
1511         * decl.c (push_c_function_context, pop_c_function_context,
1512         mark_c_function_context): Rename for consistency.
1513         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
1514         * c-tree.h (push_c_function_context, pop_c_function_context,
1515         mark_c_function_context): Rename for consistency.
1516         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1517         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
1518         * function.c (init_lang_status, save_lang_status,
1519         restore_lang_status, mark_lang_status, free_lang_status):
1520         Move to langhooks.h.
1521         (push_function_context_to, pop_function_context_from,
1522         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
1523         Update.
1524         * function.h (init_lang_status, save_lang_status,
1525         restore_lang_status, mark_lang_status, free_lang_status):
1526         Move to langhooks.h.
1527         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
1528         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
1529         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
1530         LANG_HOOKS_FUNCTION_INITIALIZER): New.
1531         (LANG_HOOKS_INITIALIZER): Update.
1532         (lhd_do_nothing_f): New.
1533         * langhooks.h (struct lang_hooks_for_functions): New.
1534         (struct lang_hooks): New hooks.
1535         * langhooks.c (lhd_do_nothing_f): New.
1536 objc:
1537         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1538         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
1539
1540 2002-04-19  David S. Miller  <davem@redhat.com>
1541
1542         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
1543         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
1544
1545 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
1546
1547         PR optimization/3756
1548         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
1549         x = ((int) y < 0) ? cst1 : cst2.
1550
1551 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
1552
1553         PR c/6358
1554         * function.c: Reapply patch for c/6358.
1555         (expand_function_end): Copy decl_rtl's mode, not
1556         current_function_return_rtx mode.
1557
1558 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
1559
1560         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
1561         targets.
1562
1563 2002-04-19  Tom Tromey  <tromey@redhat.com>
1564
1565         * doc/install.texi (Specific): Update status of Solaris 2.8.
1566         For PR libgcj/6158.
1567
1568 2002-04-19  Andreas Schwab  <schwab@suse.de>
1569
1570         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
1571         (PUT_REAL): Restore old definition.
1572
1573 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
1574             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1575
1576         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
1577         binutils 2.11.2 and higher generate smaller binaries than Sun's
1578         native tools.
1579
1580 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
1581
1582         PR c++/6352
1583         * toplev.c (rest_of_compilation): Do not defer functions for which
1584         TREE_SYMBOL_REFERENCED has already been set.
1585
1586 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
1587
1588         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
1589         alternative.
1590
1591 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
1592
1593         * builtins.c: Include langhooks.h.
1594         (lang_type_promotes_to): Remove.
1595         (expand_builtin_va_arg): Use new hook.
1596         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
1597         (simple_type_promotes_to): Move to c-typeck.c.
1598         * c-common.h (simple_type_promotes_to): Remove.
1599         * c-decl.c (duplicate_decls, grokdeclarator): Update.
1600         * c-format.c: Include langhooks.h.
1601         (check_format_types): Update.
1602         * c-tree.h (c_type_promotes_to): New.
1603         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
1604         (type_lists_compatible_p): Update.
1605         * langhooks-def.h (lhd_type_promotes_to): New.
1606         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
1607         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
1608         * langhooks.c (lhd_type_promotes_to): New.
1609         * langhooks.h (struct lang_hooks_for_types): New hook.
1610         * tree.h (lang_type_promotes_to): Remove.
1611 objc:
1612         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
1613
1614 2002-04-18  Richard Henderson  <rth@redhat.com>
1615
1616         * function.c: Revert patch for c/6358.
1617
1618 2002-04-18  Richard Henderson  <rth@redhat.com>
1619
1620         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
1621         blocks.  Handle multiple references to the TRAP block.  Handle
1622         non-adjacent THEN and OTHER blocks.
1623
1624 2002-04-18  Richard Henderson  <rth@redhat.com>
1625
1626         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
1627         crash with no type for by-mode libcalls.
1628
1629         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
1630
1631 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
1632
1633         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
1634         __xtensa_nonlocal_goto): Use a syscall instructions to flush
1635         the register windows.
1636
1637 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
1638
1639         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
1640         appropriate.  Document need for extended precision even when
1641         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
1642         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
1643         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
1644         instead of relying on later syntax error when REAL_WIDTH > 5.
1645         * real.c: Define NE based only on whether or not we have a
1646         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
1647         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
1648         define GET_REAL and PUT_REAL as simple memcpy operations; no
1649         need to byteswap or round.
1650         Use #error instead of #ifdef-ing out the entire file, for
1651         prompt error detection.
1652
1653         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
1654
1655 2002-04-18  David S. Miller  <davem@redhat.com>
1656
1657         * config/sparc/sparc.h (BRANCH_COST): Define.
1658
1659         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
1660         does it.
1661
1662 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
1663
1664         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
1665         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
1666         propagate_block calls after relaxation loop using new variable
1667         stabilized_prop_flags.
1668
1669 2002-04-18  Richard Henderson  <rth@redhat.com>
1670
1671         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
1672         (ia64_va_arg): Expect variable sized types by reference.
1673         * config/ia64/ia64-protos.h: Update.
1674         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
1675         ia64_function_arg_pass_by_reference.
1676
1677 2002-04-18  Richard Henderson  <rth@redhat.com>
1678
1679         * ifcvt.c: Include except.h.
1680         (block_has_only_trap): Break out from find_cond_trap.
1681         (find_cond_trap): Use it.  Always delete the trap block.
1682         (merge_if_block): Allow then block null.  Be less simplistic about
1683         what insns can end a block.
1684         * Makefile.in (ifcvt.o): Depend on except.h.
1685
1686         * config/ia64/ia64.md (trap, conditional_trap): New.
1687
1688 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
1689
1690         PR c/6358
1691         * function.c (assign_parms): Assign hard current_function_return_rtx
1692         register here...
1693         (expand_function_end): ...not here.
1694
1695 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
1696
1697         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
1698         * c-tree.h (c_incomplete_type_error): New.
1699         * c-typeck.c (require_complete_type, build_component_ref): Update.
1700         (incomplete_type_error): Rename.
1701         * langhooks-def.h (lhd_incomplete_type_error): New.
1702         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
1703         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
1704         * langhooks.c (lhd_incomplete_type_error): New.
1705         * langhooks.h (struct lang_hooks_for_types): New hook.
1706         * tree.c (size_in_bytes): Use new hook.
1707         * tree.h (incomplete_type_error): Remove.
1708 objc:
1709         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
1710
1711 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
1712
1713         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
1714         TARGET_FLOAT_FORMAT blocks.
1715
1716 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1717
1718         * doc/install.texi (Downloading the source): Do not mention Chill
1719         any longer, but mention Ada.
1720         (Configuration): Do not mention Chill any longer.
1721
1722 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
1723
1724         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
1725
1726 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
1727
1728         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
1729         in last patch.
1730
1731 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
1732
1733         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
1734         instead of unsigned_type.
1735
1736 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
1737
1738         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
1739         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
1740         later.
1741
1742 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
1743
1744         * attribs.c (vector_type_node_list): New static variable.
1745         (handle_vector_size_attribute): Use it to avoid generating a
1746         new type node each time we are called.
1747
1748         * combine.c (subst): Avoid trying to make a vector mode subreg of
1749         an integer constant.
1750         (gen_lowpart_for_combine): Likewise.
1751
1752 2002-04-18  Roger Sayle  <roger@eyesopen.com>
1753             Jakub Jelinek  <jakub@redhat.com>
1754
1755         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
1756         for integer constant c (if x has unsigned type or sign bit is not
1757         set in c).  This folds the zero/sign extension into the bit-wise and
1758         operation.
1759
1760 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
1761
1762         PR middle-end/6205
1763         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
1764         otherwise xorps.
1765
1766 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
1767
1768         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
1769
1770 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
1771
1772         * gcc.c (read_specs): Detect and fail if an attempt is made to
1773         rename a spec string to an already existing string.
1774
1775 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
1776
1777         * config/s390/s390.c (legitimize_pic_address): Do not generate
1778         illegal address constant without CONST.
1779
1780 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1781
1782         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
1783         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1784
1785 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
1786
1787         PR optimization/6305
1788         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
1789         to make sure previous reloads are taken into account.  Generate
1790         better code if one operand is an in-range immediate constant.
1791
1792 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
1793
1794         * doc/install.texi (Building): libgcj requires GNU make.
1795
1796 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
1797
1798         PR bootstrap/6315
1799         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
1800         even if hard quad and register is not floating.
1801         (movtf reg<-mem split): Disallow splitting if hard quad and
1802         register is floating.
1803         (movtf mem<-reg split): Likewise.
1804         * config/sparc/sparc.c (fp_register_operand): New predicate.
1805         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
1806
1807 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
1808
1809         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
1810         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
1811         (unprotoize.o): Ditto.  Build from protoize.c.  Define
1812         UNPROTOIZE on command line.
1813         * protoize.c: Include cppdefault.h.  Delete include_defaults.
1814         (in_system_include_dir): Use cpp_include_defaults (defined in
1815         cppdefault.o).
1816         * unprotoize.c: Delete file.
1817
1818 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
1819
1820         * config/rs6000/altivec.h (vec_ld): Add array variants.
1821         (vec_lde): Same.
1822         (vec_ldl): Same.
1823
1824 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
1825             Aldy Hernandez <aldyh@redhat.com>
1826
1827         * config/rs6000/altivec.h: Define __ALTIVEC__.
1828         (bool): New.
1829         (__pixel): New.
1830         (pixel): New.
1831         (vec_cfux): New.
1832         (vec_vmaddfp): New.
1833         (vec_vsldoi): New.
1834         Add parentheses to all macro arguments.
1835
1836 2002-04-16  Richard Henderson  <rth@redhat.com>
1837
1838         PR c++/6320
1839         * except.c (remove_eh_handler): Insert inner regions at beginning
1840         of sibling chain.  Refactor expressions.
1841
1842 2002-04-16  Richard Henderson  <rth@redhat.com>
1843
1844         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
1845         * config/sparc/sol2-gas-bi.h: New file.
1846         * config.gcc (sparc*-solaris): Add it as needed.
1847         * configure.in (AS_SPARC64_FLAG): Remove check.
1848         * config.in, configure: Regenerate.
1849
1850         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
1851
1852 2002-04-16  Richard Henderson  <rth@redhat.com>
1853
1854         * config/mips/mips.c (override_options): Don't override N32 for
1855         a 64-bit ISA.
1856
1857         PR 6202
1858         * config/mips/mips.md (can_delay): Split out of existing define_delays.
1859         (HILO_delay): Set can_delay false.
1860
1861 2002-04-16  Dale Johannesen <dalej@apple.com>
1862
1863         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
1864         instruction addresses.
1865         (rs6000_output_function_epilogue): Likewise.
1866
1867 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
1868
1869         * c-parse.in (poplevel, compstmt_start,
1870         compstmt_primary_start): Add ending ';', in accordance
1871         with POSIX.
1872
1873 2002-04-16  Richard Henderson  <rth@redhat.com>
1874
1875         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
1876         Adjust tm_file order to get TARGET_DEFAULT set properly.
1877         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
1878         * doc/install.texi (sparc-solaris): Update.
1879
1880 2002-04-16  Dale Johannesen <dalej@apple.com>
1881
1882         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
1883         comparison operands do not match each other or if modes of
1884         conditions do not match result.
1885
1886 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
1887
1888         PR target/6305
1889         * config/s390/s390.md (mulsidi3): Set both subregs of the
1890         multiword register.
1891
1892 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
1893
1894         * config/rs6000/altivec.h (vec_addc): Type check.
1895
1896 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
1897
1898         PR middle-end/6279
1899         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
1900
1901         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
1902
1903 2002-04-15  Richard Henderson  <rth@redhat.com>
1904
1905         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
1906         call_really_used_regs too.
1907
1908 2002-04-15  Richard Henderson  <rth@redhat.com>
1909
1910         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
1911
1912 2002-04-15  David S. Miller  <davem@redhat.com>
1913
1914         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
1915         as being CLOBBERed.
1916
1917 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
1918
1919         PR c/6290
1920         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
1921         CONST_VECTOR is { 0, ... 0 }.
1922
1923 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
1924
1925         * doc/install.texi (Installing GCC: Configuration): Clarify
1926         the only supported ways to configure gcc.
1927
1928 2002-04-15  Roland McGrath  <roland@frob.com>
1929
1930         * config.gcc (alpha*-*-gnu*): New target configuration.
1931         * config/alpha/gnu.h: New file for it.
1932         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
1933
1934 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
1935
1936         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
1937         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
1938         * tree.h (expand_start_stmt_expr): Update prototype.
1939         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
1940         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
1941         on the STMT_EXPR created for the inline function.
1942
1943 2002-04-15  Richard Henderson  <rth@redhat.com>
1944
1945         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
1946         config/i386/linux-aout.h, config/i386/linux-oldld.h,
1947         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
1948         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
1949         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
1950         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
1951         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
1952         Define __gnu_linux__, not gnu_linux.
1953         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
1954
1955 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
1956
1957         Remove Chill front end.
1958         * gcc.c (default_compilers): Remove Chill entries.
1959         * ch: Remove directory.
1960         * doc/frontends.texi: Remove information about Chill.
1961         * doc/sourcebuild.texi: Likewise.
1962         * doc/standards.texi: Likewise.
1963
1964 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
1965
1966         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
1967         (LONGLONG_STANDALONE): Define.
1968
1969 2002-04-15  David S. Miller  <davem@redhat.com>
1970
1971         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
1972         Call emit_library_call with LCT_NORMAL.
1973         (sparc_initialize_trampoline): Use LCT_foo instead of
1974         magic constant in emit_library_call invocations.
1975         (sparc64_initialize_trampoline): Likewise.
1976         (sparc_profile_hook): Likewise.
1977         * config/sparc/sparc.md: Likewise.
1978
1979         * config/sparc/sparc.c (sparc_extra_constraint_check):
1980         Fix type of argument 'c'.
1981         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
1982         Likewise.
1983
1984 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
1985
1986         * diagnostic.h (output_buffer_state): Redefine.
1987         (output_format_decoder): New macro.
1988         (output_prefixing_rule): Likewise.
1989         (output_line_cutoff): Likewise.
1990         (diagnostic_format_decoder): Adjust.
1991         (diagnostic_prefixing_rule): Likewise.
1992         (diagnostic_line_cutoff): Likewise.
1993         (diagnostic_state): Likewise.
1994         (diagnostic_kind_count): Likewise.
1995         (diagnostic_buffer): Now a macro.
1996
1997         * diagnostic.c (diagnostic_buffer): Remove definition.
1998         (output_is_line_wrapping): Adjust.
1999         (set_real_maximum_length): Likewise.
2000         (output_set_maximum_length): Likewise.
2001         (init_output_buffer): Likewise.
2002         (lhd_print_error_function): Likewise.
2003         (output_do_verbatim): Likewise.
2004
2005 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
2006
2007         * cpperror.c (print_location): Don't print include chain
2008         if line == 0.
2009         (cpp_begin_message): Update to use DL_ macros.
2010         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
2011         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
2012         cpp_notice, cpp_notice_from_errno): Remove.
2013         (cpp_error, cpp_error_with_line): Update to take a diagnostic
2014         level.
2015         (cpp_errno): New.
2016         * cppexp.c (CPP_ICE): Remove.
2017         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
2018         lex, integer_overflow, _cpp_parse_expr): Update.
2019         * cppfiles.c (read_include_file, find_include_file,
2020         handle_missing_header, _cpp_read_file, remap_filename): Update.
2021         * cpphash.h (enum error_type): Remove.
2022         (_cpp_begin_message): Update.
2023         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
2024         cpp_handle_option, cpp_post_options): Update.
2025         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
2026         skip_whitespace, parse_identifier, parse_slow, parse_string,
2027         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
2028         cpp_interpret_charconst): Update.
2029         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
2030         lex_macro_node, do_undef, glue_header_name, parse_include,
2031         do_include_common, read_flag, do_line, do_linemarker, do_ident,
2032         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
2033         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
2034         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
2035         _cpp_pop_buffer, do_diagnostic): Update.
2036         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
2037         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
2038         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
2039         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
2040         cpp_notice, cpp_notice_from_errno): Remove.
2041         (cpp_error, cpp_error_with_line): Update to take a diagnostic
2042         level.
2043         (cpp_errno): New.
2044         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
2045         collect_args, enter_macro_context, save_parameter, parse_params,
2046         _cpp_create_definition, check_trad_stringification,
2047         cpp_macro_definition): Update.
2048         * cppmain.c (cpp_preprocess_file): Update.
2049         * fix-header.c (read_scan_file): Update.
2050
2051 2002-04-14  Andreas Schwab  <schwab@suse.de>
2052
2053         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
2054
2055 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
2056
2057         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
2058
2059 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
2060
2061         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
2062         not gnu_hurd.
2063
2064 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
2065
2066         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
2067
2068 2002-04-13      Joel Sherrill <joel@OARcorp.com>
2069
2070         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
2071         sparc-elf and sparc-rtems targets.
2072
2073 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
2074
2075         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
2076         defined, and __gnu_hurd__ wherever __GNU__ is defined.
2077         * arm/linux-elf.h: Likewise.
2078         * cris/aout.h: Likewise.
2079         * cris/linux.h: Likewise.
2080         * i370/linux.h: Likewise.
2081         * i386/gnu.h: Likewise.
2082         * i386/linux-aout.h: Likewise.
2083         * i386/linux-oldld.h: Likewise.
2084         * i386/linux.h: Likewise.
2085         * i386/linux64.h: Likewise.
2086         * ia64/linux.h: Likewise.
2087         * m68k/linux-aout.h: Likewise.
2088         * m68k/linux.h: Likewise.
2089         * mips/linux.h: Likewise.
2090         * pa/pa-linux.h: Likewise.
2091         * pj/linux.h: Likewise.
2092         * rs6000/sysv4.h: Likewise.
2093         * s390/linux.h: Likewise.
2094         * sh/linux.h: Likewise.
2095         * sparc/linux-aout.h: Likewise.
2096         * sparc/linux.h: Likewise.
2097         * sparc/linux64.h: Likewise.
2098         * xtensa/linux.h: Likewise.
2099
2100 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
2101
2102         * stmt.c (check_unique_operand_names): Expect operand names to
2103         be strings rather than identifiers.  Use simple_cst_equal to
2104         compare them.
2105         (resolve_operand_name_1): Make same identifier to string change here.
2106         * c-parse.in (asm_operand): Convert a named operand into a string.
2107         * cp/parse.y (asm_operand): Likewise.
2108
2109 2002-04-13  Andreas Schwab  <schwab@suse.de>
2110
2111         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
2112
2113 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
2114
2115         Revert these changes:
2116
2117         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
2118
2119         PR c++/5571
2120         * stor-layout.c (layout_decl): Reset the RTL for the decl.
2121
2122 2002-04-12  Richard Henderson  <rth@redhat.com>
2123
2124         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
2125         (sparc*-*-solaris): Clean up header files.
2126         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
2127         and plan on generating 64-bit code.
2128         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
2129         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
2130         * config/sparc/sol2-sld-64.h: Rename ...
2131         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
2132         for AS_SPARC64_FLAG not defined.
2133         * config/sparc/sol2-gld-bi.h: New.
2134         * config/sparc/sol2-sld.h: Remove.
2135         * config/sparc/sol26-sld.h: New.
2136         * config/sparc/sol2.h: Tidy comments.
2137         * doc/install.texi: Document sparc-solaris configury changes.
2138
2139 2002-04-12  Richard Henderson  <rth@redhat.com>
2140
2141         * recog.c (offsettable_address_p): Match the logic in adjust_address.
2142
2143         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
2144         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
2145
2146 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2147
2148         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
2149
2150 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
2151
2152         * pa.c (pa_can_combine_p): Call extract_insn before calling
2153         constrain_operands.
2154
2155 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
2156
2157         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
2158         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
2159         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
2160         (CPP_PREDEFINES): Handle __declspec.
2161         * config/i386/t-interix (USER_H): Remove.
2162
2163 2002-04-12  DJ Delorie  <dj@redhat.com>
2164
2165         * integrate.c (compare_blocks): Make comparisons safe for when
2166         sizeof(int) < sizeof(char *).
2167         (find_block): Likewise.
2168
2169 2002-04-12  Jan Hubicka  <jh@suse.cz>
2170             David Edelsohn  <edelsohn@gnu.org>
2171
2172         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
2173         registers.
2174         (symbol_ref_operand): New.
2175         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
2176         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
2177
2178 2002-04-12  Andreas Schwab  <schwab@suse.de>
2179
2180         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
2181         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
2182         overrides the definition in config/svr4.h.
2183
2184 2002-04-12      Eric Norum <eric.norum@usask.ca>
2185
2186         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
2187         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
2188         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
2189         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
2190         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
2191         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
2192         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
2193         definitions to config/rtems.h and make the targets more similar.
2194
2195 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2196
2197         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
2198         POINTERS_EXTEND_UNSIGNED.
2199         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
2200         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
2201
2202         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
2203         not specified.
2204
2205 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
2206
2207         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
2208         depends on TARGET_SHMEDIA, not TARGET_SH5.
2209
2210 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
2211
2212         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
2213         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
2214
2215 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
2216
2217         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
2218         no r0 clobber.
2219
2220 2002-04-12  Andreas Schwab  <schwab@suse.de>
2221
2222         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
2223
2224 2002-04-12  Richard Henderson  <rth@redhat.com>
2225
2226         PR bootstrap/4191
2227         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
2228
2229         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
2230         modes spanning multiple hard regs.
2231
2232         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
2233
2234 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2235
2236         * pa.c (pa_output_function_prologue): Don't accumulate the total
2237         number of code bytes when using TARGET_64BIT, or gas, SOM and not
2238         the portable runtime.
2239         (output_deferred_plabels): Handle 64bit plabels.
2240         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
2241         generating pic code using the GAS assembler for object formats that
2242         are not SOM (ie., ELF32 and ELF64).
2243         (output_millicode_call): Check attribute type if attribute length is 28.
2244         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
2245         dbr_sequence_length once.
2246         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
2247         dbr_sequence_length once.
2248         * pa.h (TARGET_SOM): Define if not defined.
2249         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
2250         with GAS and not SOM.
2251         (jump, call_internal_reg, call_value_internal_reg): Likewise.
2252         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
2253
2254 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2255
2256         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
2257         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
2258         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
2259         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
2260         elfos.h and dbxelf.h values are fine now.
2261         * config/i386/freebsd.h, config/alpha/freebsd.h
2262         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
2263
2264 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2265
2266         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
2267         or set Acpu or Amachine.  Reformat.
2268         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2269         define.
2270         (LINK_SPEC): Do not need to undef.
2271         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
2272         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
2273         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2274         define.
2275         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
2276         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
2277         (LINK_SPEC): Do not need to undef.
2278         (DONT_USE_BUILTIN_SETJMP): Do not define.
2279         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
2280         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
2281         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
2282         Remove trailing spaces.
2283         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
2284         __ELF__, or set Acpu or Amachine.  Reformat.
2285         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2286         define.
2287
2288 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2289
2290         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
2291         all other *-*-freebsd* targets.
2292
2293 2002-04-11  Richard Henderson  <rth@redhat.com>
2294
2295         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
2296
2297 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
2298
2299         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
2300         Include {cpu}/{cpu}.h thru tm_file.
2301         (alpha*-*-linux*ecoff): Remove target.
2302         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
2303         (LINK_SPEC): Remove, is not OS independent.
2304         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
2305         (LINK_SPEC): Do not need to #undef any longer.
2306         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
2307         any longer.
2308         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
2309         __ELF__.
2310         (LINK_SPEC): Moved here from alpha/elf.h.
2311         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
2312         SUB_CPP_PREDEFINES.
2313         * config/alpha/linux-ecoff.h: Remove.
2314         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
2315         (CPP_SPEC): Define _POSIX_SOURCE as needed.
2316         (CPP_SUBTARGET_SPEC): Do not define.
2317         (LINK_SPEC): Do not need to #undef any longer.
2318         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
2319         * config/alpha/vms.h: Likewise.
2320
2321 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
2322
2323         * doc/extend.texi: Remove old claim that typedefs cannot have
2324         an alignment attribute.
2325
2326 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
2327
2328         PR optimization/6177
2329         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
2330         bitpos is 0 and bitsize CONCAT size.
2331
2332 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
2333
2334         PR c/6223
2335         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
2336
2337 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
2338
2339         * config/alpha/freebsd.h: Minor reformatting.
2340         (CPP_SPEC): Define ELF and add cpp_subtarget.
2341         (ASM_SPEC): No longer needed.
2342
2343 2002-04-11  Richard Henderson  <rth@redhat.com>
2344
2345         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
2346         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
2347         (dimode mem/zero splitter): New.
2348
2349 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
2350
2351         * config/cris/cris.c (cris_override_options): Tweak error message
2352         for PIC not implemented.
2353
2354         * config/cris/cris.h: Tweak comments related to parameter-passing.
2355
2356         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
2357
2358 2002-04-10  Richard Henderson  <rth@redhat.com>
2359
2360         * except.c (add_ehl_entry): Allow duplicates after landing pad
2361         creation.
2362
2363 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
2364
2365         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
2366
2367 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
2368
2369         * c-decl.c (c_init_decl_processing): Move generation of
2370         decls for g77_integer_type_node and friends from here ...
2371         * c-common.c (c_common_nodes_and_builtins): ... to here.
2372
2373 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
2374
2375         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
2376         is only used as frame pointer when frame_pointer_needed is true.
2377
2378 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
2379
2380         PR target/817
2381         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
2382         for the fact that the pool entry uses two words.
2383         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
2384         1k bytes.
2385         (movdf_soft_insn): Similarly.
2386         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
2387         for the fact that the pool entry uses three words.
2388
2389 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
2390
2391         * config/mips/mips.c (mips_va_arg): When using the struct version
2392         of the EABI va_list, allow arguments in the register save area to
2393         take up less room than a stack argument.
2394
2395 2002-04-10  Richard Henderson  <rth@redhat.com>
2396
2397         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
2398         if EXPAND_INITIALIZER.
2399
2400 2002-04-09  Richard Henderson  <rth@redhat.com>
2401
2402         * config/alpha/alpha.md (movdi_er_maybe_g): New.
2403         * config/alpha/alpha.c (alpha_expand_mov): Use it.
2404
2405 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
2406
2407         PR optimization/6233
2408         * rtlanal.c (pure_call_p): New function.
2409         * rtl.h (pure_call_p): Declare.
2410         * loop.c (prescan_loop): Use it to set has_nonconst_call.
2411         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
2412
2413 2002-04-09  Eric Christopher  <echristo@redhat.com>
2414
2415         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
2416         information to .comm directive.
2417
2418 2002-04-09  Richard Henderson  <rth@redhat.com>
2419
2420         PR c/5078
2421         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
2422
2423 2002-04-09  Richard Henderson  <rth@redhat.com>
2424
2425         * basic-block.h (flow_delete_block_noexpunge): Declare.
2426         (expunge_block_nocompact): Declare.
2427         * cfg.c (expunge_block_nocompact): Split out from ...
2428         (expunge_block): ... here.
2429         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
2430         (flow_delete_block_noexpunge): Split out from ...
2431         (flow_delete_block): ... here.
2432         * cfgcleanup.c (delete_unreachable_blocks): Compact while
2433         removing dead blocks.
2434         * except.c (exception_handler_labels): Remove.
2435         (exception_handler_label_map): New.
2436         (struct eh_region): Add aka member.
2437         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
2438         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
2439         (for_each_eh_label, for_each_eh_label_1): New.
2440         (init_eh): Register exception_handler_label_map.
2441         (free_eh_status): Use free_region.
2442         (find_exception_handler_labels): Use the map, not the list.
2443         (remove_exception_handler_label): Likewise.
2444         (maybe_remove_eh_handler): Likewise.
2445         (remove_eh_handler): Use the region aka bitmap.
2446         * except.h (exception_handler_labels): Remove.
2447         (for_each_eh_label): Declare.
2448         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
2449         * loop.c (invalidate_loops_containing_label): New.
2450         (find_and_verify_loops): Use it.  Use for_each_eh_label.
2451         * sched-rgn.c (is_cfg_nonregular): Use
2452         current_function_has_exception_handlers.
2453
2454 2002-04-09  Richard Henderson  <rth@redhat.com>
2455
2456         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
2457         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
2458         Do not return changed status.
2459         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
2460         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
2461         New functions that do return changed status.
2462         * sbitmap.h: Update decls.
2463         * gcse.c, lcm.c: Use _cg functions as needed.
2464
2465 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
2466
2467         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
2468         (sh64-*-elf*, sh-*-rtemself*): Likewise.
2469         * config/sh/embed_bb.c: New file.
2470         * config/sh/embed-elf.h: New file.
2471         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
2472         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
2473         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
2474         __PTRDIFF_TYPE__ .
2475         (SUBTARGET_CPP_PTR_SPEC): Don't define.
2476         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
2477         Add subtarget_asm_endian_spec.
2478         (ASM_SPEC): Use subtarget_asm_endian_spec.
2479         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
2480         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
2481         (WCHAR_UNSIGNED): Define.
2482         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
2483         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
2484         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
2485         Fix value.
2486         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
2487         (sh_adjust_cost): Likewise.
2488         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
2489         __PTRDIFF_TYPE__ .
2490         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
2491         (WCHAR_TYPE_SIZE): Likewise.
2492         (ASM_SPEC): Use subtarget_asm_endian_spec.
2493         (SH_ELF_WCHAR_TYPE): #undef/ #define.
2494         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
2495         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
2496         (MAX_WCHAR_TYPE_SIZE): Don't #define .
2497         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
2498         (USER_LABEL_PREFIX): Don't #undef /#define .
2499         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
2500         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
2501         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
2502         (ASM_SPEC): Likewise.
2503         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
2504         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
2505         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
2506         (LIB2FUNCS_EXTRA): Define.
2507         * t-sh64 (LIB2FUNCS_EXTRA): Define.
2508         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
2509         (LIB1ASMFUNCS_CACHE): Define.
2510         (LIB2FUNCS_EXTRA): Redefine empty.
2511
2512 2002-04-08  Richard Henderson  <rth@redhat.com>
2513
2514         * reorg.c (get_branch_condition): Use reversed_comparison_code.
2515
2516 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2517
2518         * config/m68hc11/larith.asm (__map_data_section): Fix condition
2519         and optimize for size.
2520         (__do_global_ctors): Fix pointer comparison.
2521         (__do_global_dtors): Likewise.
2522
2523 2002-04-09  David S. Miller  <davem@redhat.com>
2524
2525         * config/sparc/sparc.c (sparc_extra_constraint_check): New
2526         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
2527         allow reloading pseudos.
2528         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
2529         * config/sparc/sparc-protos.h: Declare it.
2530
2531         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
2532         unsigned comparison warning.
2533         (output_restore_regs): Mark leaf_function as unused.
2534
2535 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2536
2537         * expr.c (is_aligning_offset): New function.
2538         (expand_expr, case COMPONENT_EXPR): Call it.
2539
2540 2002-04-08  David S. Miller  <davem@redhat.com>
2541
2542         PR target/6082
2543         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
2544
2545         Make init_priority work on Sparc when using GNU ld.
2546         * config/sparc/linux.h, config/sparc/linux64.h,
2547         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
2548         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
2549         * config/sparc/sol2-gld.h: New file to do the same.
2550         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
2551         sparc/sol2-gld.h to tm_file.
2552
2553         PR optimization/4328
2554         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
2555         * doc/md.texi: Document it.
2556         * config/sparc/sparc.md (movdi_insn_sp64_novis,
2557         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
2558         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
2559         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
2560         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
2561
2562 2002-04-08  Andreas Jaeger  <aj@suse.de>
2563
2564         * stmt.c (expand_asm_operands): Revert last patch from Richard
2565         Henderson.
2566
2567 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2568
2569         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
2570         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
2571
2572 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2573
2574         * doc/contrib.texi (Contributors): Add David O'Brien.
2575
2576 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
2577
2578         * configure.in (auto-build.h): Use target_alias and build_alias
2579         when running configure.
2580         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
2581         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
2582         * configure: Regenerate.
2583
2584 2002-04-07  David S. Miller  <davem@redhat.com>
2585
2586         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
2587
2588 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2589
2590         PR 5933
2591         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
2592         generating 32-bit pic code.
2593
2594 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
2595
2596         * cppinit.c (cpp_create_reader): Initialize
2597         discard_comments_in_macro_exp.
2598         (COMMAND_LINE_OPTIONS): Add "-CC" option.
2599         (cpp_handle_option): Handle "-CC" option.
2600         * cpplex.c (save_comment): If saving a C++ comment in
2601         a directive, convert it to a C comment.
2602         (_cpp_lex_direct): Pass second comment start character to
2603         save_comment to indicate comment type.
2604         * cpplib.c (_cpp_handle_directive): If processing
2605         a "#define" directive and discard_comments_in_macro_exp
2606         is false,  re-enable saving of comments.
2607         (lex_macro_node): If discard_comments_in_macro_exp is false,
2608         discard any comments before the macro identifier.
2609         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
2610         member.
2611         * cppmacro.c (cpp_get_token): If expanding a macro while
2612         processing a directive, discard any comments we might encounter.
2613         (parse_params): If discard_comments_in_macro_exp is false,
2614         ignore comments in the macro parameter list.
2615         * gcc.c (cpp_unique_options): Add "-CC" option.
2616         (option_map): Map "--comments-in-macros" to "-CC".
2617         * doc/cppopts.texi: Document "-CC" option.
2618         * f/lang-specs.h: Add "-CC" option.
2619         * testsuite/gcc.dg/cpp/maccom1.c: New test.
2620         * testsuite/gcc.dg/cpp/maccom2.c: New test.
2621         * testsuite/gcc.dg/cpp/maccom3.c: New test.
2622         * testsuite/gcc.dg/cpp/maccom4.c: New test.
2623         * testsuite/gcc.dg/cpp/maccom5.c: New test.
2624         * testsuite/gcc.dg/cpp/maccom6.c: New test.
2625
2626 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2627
2628         PR middle-end/6180
2629         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
2630
2631 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
2632
2633         PR c++/5571
2634         * stor-layout.c (layout_decl): Reset the RTL for the decl.
2635
2636         PR opt/5120
2637         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
2638         RTX_UNCHANGING_P for the functions arguments when a tail call
2639         is made.
2640
2641 2002-04-06  Jason Merrill  <jason@redhat.com>
2642
2643         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
2644         (parse_options_and_default_flags): Set them appropriately.
2645         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
2646
2647 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
2648
2649         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
2650         here.
2651
2652         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
2653         semicolon.
2654
2655         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
2656         types come in by-reference.  Fix typo in comment.
2657
2658 2002-04-05  David S. Miller  <davem@redhat.com>
2659
2660         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
2661         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
2662         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
2663         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
2664
2665 2002-04-05  David S. Miller  <davem@redhat.com>
2666
2667         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
2668         are not going to emit return instructions, emit at least a nop
2669         for the sake of sane backtraces.
2670
2671 2002-04-05  Richard Henderson  <rth@redhat.com>
2672
2673         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
2674
2675 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
2676
2677         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
2678
2679 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
2680
2681         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
2682         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
2683         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
2684
2685 2002-04-05  Andreas Schwab  <schwab@suse.de>
2686
2687         * c-convert.c: Include c-common.h.
2688         * Makefile.in (c-convert.o): Updated.
2689
2690 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
2691
2692         * mklibgcc.in: Use separate libgcc.map for each multilib.
2693         * Makefile.in (distclean): Don't remove libgcc.map here.
2694
2695 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
2696
2697         * Makefile.in (s-mlib): Handle --disable-multilib by separate
2698         genmultilib invocation.
2699
2700 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
2701
2702         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
2703         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
2704         to num_gprs for symmetry.
2705         * config/mips/mips.c: Adjust accordingly.
2706
2707 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
2708
2709         * c-common.c (truthvalue_conversion): Rename, update.
2710         * c-common.h (c_common_truthvalue_conversion): New.
2711         * c-convert.c (convert): Update.
2712         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
2713         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
2714         * c-typeck.c (build_binary_op, build_unary_op,
2715         build_conditional_expr): Update.
2716         * fold-const.c (constant_boolean_node, fold): Use langhook.
2717         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
2718         * langhooks.h (struct lang_hooks): New hook.
2719         * stmt.c (expand_decl_cleanup): Use langhook.
2720         * tree.h (truthvalue_conversion): Remove.
2721 objc:
2722         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
2723
2724 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
2725
2726         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
2727         Add rules to make null object file.
2728
2729 2002-04-04  Jim Blandy  <jimb@redhat.com>
2730
2731         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
2732         macro formal parameter names.
2733
2734 2002-04-04  David S. Miller  <davem@redhat.com>
2735
2736         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
2737
2738 2002-04-04  Richard Henderson  <rth@redhat.com>
2739
2740         PR middle-end/5099
2741         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
2742         Support copies into and out of memory.  Don't accept allows_reg
2743         and allows_mem as gospel.
2744
2745 2002-04-04  Richard Henderson  <rth@redhat.com>
2746
2747         PR opt/6165
2748         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
2749         (write_dependence_p): Likewise.
2750
2751 2002-04-04  Richard Henderson  <rth@redhat.com>
2752
2753         * predict.c (estimate_bb_frequencies): Do frequency calculation
2754         with a volatile temporary.
2755
2756 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
2757
2758         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
2759
2760 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
2761
2762         PR c++/6119
2763         * final.c (final_start_function): Don't bump profile_label_no here...
2764         (final_end_function): ...but here.
2765
2766 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
2767
2768         * config/sparc/sparc.md (pic): New attribute.
2769         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
2770         into stack slots.
2771         (split after do_builtin_setjmp_setup): New.
2772
2773 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
2774
2775         PR fortran/6106
2776         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
2777         change.
2778
2779 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
2780
2781         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
2782         UNITS_PER_WORD for zero sized aggregates.
2783
2784 2002-04-03  David S. Miller  <davem@redhat.com>
2785
2786         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
2787         one-character spec for this, just use %(link_gcc_c_sequence).
2788
2789 2002-04-03  David S. Miller  <davem@redhat.com>
2790
2791         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
2792         handling.
2793
2794 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2795
2796         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
2797         (DWARF_FRAME_RETURN_COLUMN): Move.
2798         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2799         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
2800         * pa.c (except.h, predict.h): Include.
2801         (FRP): Delete.
2802         (store_reg_modify, set_reg_plus_d): Revise prototypes.
2803         (output_ascii): Add cast.
2804         (store_reg_modify): Revise to add frame notes.
2805         (set_reg_plus_d): Likewise.
2806         (compute_frame_size): Include space for eh data registers in frame if
2807         the current function calls eh_return.
2808         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
2809         function calls eh_return.  Save eh data registers if the current
2810         function calls eh_return.  Fix code to add frame notes.  Emit
2811         blockage to prevent insns with frame notes being scheduled in the
2812         delay slot of calls.
2813         (hppa_expand_epilogue): Restore eh data registers and do final stack
2814         adjustment if the current function calls eh_return.  Don't add frame
2815         notes.
2816         (output_call): Revise for change in length of call insn.  Don't do
2817         return pointer adjustment for an unconditional jump in the delay slot
2818         of a call when using frame notes.
2819         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
2820         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
2821         (ARG_POINTER_CFA_OFFSET): Define.
2822         * pa.md (return_external_pic): New pattern.
2823         (prologue): Correct formatting.  Use return_external_pic if current
2824         function calls eh_return.
2825         (call_internal_symref, call_value_internal_symref,
2826         sibcall_internal_symref, sibcall_value_internal_symref): Change default
2827         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
2828         respectively.
2829         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
2830
2831         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
2832         list of targets to check using "nop" insn.
2833         * configure: Rebuilt.
2834
2835 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
2836
2837         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
2838
2839 2002-04-03  David S. Miller  <davem@redhat.com>
2840
2841         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
2842         library sequence passed to the linker.
2843         (LINK_COMMAND_SPEC): Use it.
2844         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
2845         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
2846         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2847
2848 2002-04-03  Jason Merrill  <jason@redhat.com>
2849
2850         * except.c (struct eh_status): Remove protect_list.
2851         (begin_protect_partials, end_protect_partials): Remove.
2852         (add_partial_entry): Remove.
2853         * except.h: Remove prototypes.
2854
2855         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
2856         expand_decl_cleanup_eh.
2857
2858         PR c++/5636
2859         * tree.h (CLEANUP_EH_ONLY): New macro.
2860         * stmt.c (expand_decl_cleanup_eh): New fn.
2861         (expand_cleanups): Check CLEANUP_EH_ONLY.
2862         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
2863         Use expand_decl_cleanup_eh.
2864         (expand_stmt): Adjust.
2865         * c-common.h: Adjust prototype.
2866
2867 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
2868
2869         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
2870         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
2871         (cris_target_asm_function_epilogue): Ditto.
2872         (cris_initial_frame_pointer_offset): Ditto.
2873         (cris_simple_epilogue): Ditto.
2874         (cris_expand_builtin_va_arg): Variable-size types come in
2875         by-reference.
2876
2877 2002-04-03  David S. Miller  <davem@redhat.com>
2878
2879         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
2880         little-endian.
2881         (set_fast_math): Correct 'fsr' type.
2882
2883 2002-04-03  Richard Henderson  <rth@redhat.com>
2884
2885         PR opt/3569
2886         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
2887         * toplev.c (check_global_declarations): Use it.
2888         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
2889         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2890         (LANG_HOOKS_DECLS): Add it.
2891         * langhooks.c (lhd_warn_unused_global_decl): New.
2892         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2893         * c-objc-common.c (c_warn_unused_global_decl): New.
2894         * c-tree.h (c_warn_unused_global_decl): Declare.
2895         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2896
2897 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
2898
2899         * langhooks-def.h (lhd_set_decl_assembler_name,
2900         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
2901         (LANG_HOOKS_INITIALIZER): Update.
2902         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
2903         * langhooks.h (struct lang_hooks): New hook.
2904         * tree.c (set_decl_assembler_name): Move to langhooks.c.
2905         (lang_set_decl_assembler_name): Remove.
2906         (init_obstacks): Don't set hook.
2907         (decl_assembler_name): New function.
2908         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
2909         (decl_assembler_name): New.
2910         (lang_set_decl_assembler_name): Remove.
2911
2912 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
2913
2914         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
2915         works properly with .hidden symbols.
2916         * configure: Rebuilt.
2917         * config.in: Rebuilt.
2918         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
2919         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
2920         properly with .hidden symbols.
2921
2922 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
2923
2924         PR middle-end/6102
2925         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
2926         USE argument.
2927
2928 2002-04-03  Richard Henderson  <rth@redhat.com>
2929
2930         PR opt/4120
2931         * sched-rgn.c (sets_likely_spilled): New.
2932         (sets_likely_spilled_1): New.
2933         (add_branch_dependences): Use it.
2934
2935 2002-04-02  Richard Henderson  <rth@redhat.com>
2936
2937         PR opt/4311
2938         * loop.h (LOOP_FIRST_PASS): New.
2939         * loop.c (strength_reduce): Mind it when deciding to unroll.
2940         * toplev.c (rest_of_compilation): Set it.
2941
2942 2002-04-02  David S. Miller  <davem@redhat.com>
2943
2944         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
2945         mems_ok_for_ldd_peep when the order of the loads being examined
2946         is reversed.
2947         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
2948         existing comment to increase comprehension of this situation.
2949
2950 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
2951
2952         * config/sh/sh.md: Don't use union real_extract.
2953
2954 2002-04-02  Richard Henderson  <rth@redhat.com>
2955
2956         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
2957
2958 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
2959
2960         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
2961         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
2962         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
2963         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
2964         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
2965         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
2966         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
2967         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
2968         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
2969         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
2970         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
2971         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
2972         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
2973         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
2974         Include as many configury headers via tm_file as possible.  This
2975         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
2976         * config/openbsd-oldgas.h: New file.
2977         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
2978         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
2979         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
2980         config/i386/i386-coff.h, config/i386/i386-interix.h,
2981         config/i386/iscdbx.h, config/i386/linux-aout.h,
2982         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
2983         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
2984         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
2985         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
2986         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
2987         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
2988         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
2989         config/i386/vxi386.h: Do not directly include configury headers.
2990         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
2991         Directly include configury headers that are no longer automatically
2992         included by the above headers.
2993         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
2994         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
2995         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
2996         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
2997         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
2998         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
2999         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
3000         (TARGET_VERSION): Define.
3001         * config/i386/beos-elf.h, config/i386/freebsd.h,
3002         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
3003         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
3004         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
3005         config/i386/sco5.h, config/i386/sysv4.h
3006         (TARGET_VERSION): Do not need to protect.
3007         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
3008         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
3009         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
3010         config/i386/i386-interix.h, config/i386/linux-aout.h,
3011         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
3012         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
3013         (YES_UNDERSCORES): Do not define - not needed.
3014         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
3015         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
3016         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
3017         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
3018         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
3019         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
3020         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
3021         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
3022
3023 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
3024             Richard Henderson  <rth@redhat.com>
3025
3026         PR c/5484
3027         * function.c (assign_temp): Accept either type or decl argument.
3028         Detect variables whose size is too large to fit into an integer.
3029         * stmt.c (expand_decl): Pass the decl, not the type.
3030
3031 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
3032
3033         * protoize.c: Match include directory usage with cppdefault.c.
3034
3035 2002-04-03  Jeffrey A Law  (law@redhat.com)
3036             Hans-Peter Nilsson  <hp@bitrange.com>
3037
3038         * combine.c (simplify_comparison): Avoid narrowing a comparison
3039         with a paradoxical subreg when doing so would drop signficant bits.
3040
3041 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
3042
3043         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
3044         if POINTERS_EXTEND_UNSIGNED is defined.
3045
3046 2002-04-02  Richard Henderson  <rth@redhat.com>
3047
3048         PR opt/3967
3049         * local-alloc.c (contains_replace_regs): LO_SUM may contain
3050         replace regs.
3051
3052 2002-04-02  Richard Henderson  <rth@redhat.com>
3053
3054         * doc/standards.texi: Document required freestanding libc entry points.
3055
3056 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
3057
3058         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
3059         associated splitter.  Remove MQ constraint.
3060         (ctrdi_internal4): Correct CCmode clobber.
3061
3062 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3063
3064         * milli64.S ($$dyncall): New function.
3065         * t-linux (LIB1ASMFUNCS): Revise module list.
3066         (LIB1ASMSRC): Use pa/milli64.S.
3067
3068 2002-04-02  Richard Henderson  <rth@redhat.com>
3069
3070         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
3071         rename solaris_sys_varargs_h.
3072
3073 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3074
3075         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
3076         the same mode as its component.
3077
3078 2002-04-02  Richard Henderson  <rth@redhat.com>
3079
3080         PR opt/190
3081         * final.c (this_is_asm_operands): Export.
3082         * output.h (this_is_asm_operands): Declare.
3083         * config/i386/i386.c (print_operand): Error odd asm operands.
3084
3085 2002-04-02  Richard Henderson  <rth@redhat.com>
3086
3087         PR opt/420
3088         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
3089
3090 2002-04-01  Richard Henderson  <rth@redhat.com>
3091
3092         PR target/1538
3093         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
3094         * fixinc/fixincl.x: Rebuild.
3095
3096 2002-04-01  Richard Henderson  <rth@redhat.com>
3097
3098         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
3099         (atomic_alloc, atomic_free): New.
3100         (SIZE, MASK_FOR, PTR_IN): New.
3101         (emergency_reg_state, emergency_reg_state_free): New.
3102         (emergency_labeled_state, emergency_labeled_state_free): New.
3103         (reg_state_alloced, labeled_state_alloced): New.
3104         (alloc_reg_state, free_reg_state): New.
3105         (alloc_label_state, free_label_state, free_label_states): New.
3106         (push, pop, dup_state_stack, free_state_stack): Use them.
3107         (desc_label_state): Likewise.
3108         (uw_frame_state_for): Free label states and state stack.
3109         (uw_update_reg_address): Eliminate warnings.
3110
3111 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
3112
3113         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
3114         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
3115
3116 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3117
3118         * c-decl.c (grokdeclarator): Update.
3119         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
3120         * c-tree.h (c_mark_addressable): New.
3121         * c-typeck.c (default_function_array_conversion, build_unary_op,
3122         build_array_ref, convert_for_assignment): Update.
3123         (mark_addressable): Rename.
3124         * calls.c (try_to_integrate, expand_call): Use langhook.
3125         * expr.c (expand_expr): Use langhook.
3126         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
3127         * langhooks.h (struct lang_hooks): New hook.
3128         * stmt.c (expand_asm_operands): Use langhook.
3129         * tree.h (mark_addressable): Remove.
3130 objc:
3131         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
3132
3133 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
3134
3135         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
3136         in previous change.
3137
3138 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
3139
3140         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
3141         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
3142
3143 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3144
3145         * c-common.c (unsigned_conversion_warning, convert_and_check,
3146         unsigned_type, signed_type, shorten_compare,
3147         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
3148         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
3149         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
3150         New.
3151         * c-decl.c (grokdeclarator): Update.
3152         * c-format.c (check_format_types): Update.
3153         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
3154         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
3155         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
3156         * convert.c (convert_to_integer): Use new hooks.
3157         * expmed.c (make_tree): Use new hooks.
3158         * expr.c (store_expr): Use new hooks.
3159         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
3160         all_ones_mask_p, unextend, fold): Use new hooks.
3161         * langhooks.h (struct lang_hooks_for_types): New hooks.
3162         * tree.h (signed_or_unsigned_type, signed_type,
3163         unsigned_type): Remove.
3164 objc:
3165         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
3166         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
3167
3168 2002-03-31  Richard Henderson  <rth@redhat.com>
3169
3170         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
3171         (desc_frgr_mem): Fix reference to f16-f31.
3172
3173 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3174
3175         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
3176         RTVEC_ELT): Const-ify.
3177         * varray.h (VARRAY_CHECK): Const-ify.
3178         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
3179         ggc_mark_rtvec, ggc_mark): Const-ify.
3180
3181 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3182
3183         * diagnostic.c: Include langhooks-def.h.
3184         * Makefile.in (diagnostic.o): Update.
3185
3186 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
3187
3188         * c-common.c (c_unsafe_for_reeval): Rename.
3189         * c-common.h (c_unsafe_for_reeval): Rename.
3190         * c-decl.c (finish_incomplete_decl): Rename.
3191         (c_init_decl_processing): Don't set langhook.
3192         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
3193         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3194         * c-objc-common.c (c_objc_common_init): Don't set langhook.
3195         * c-tree.h (finish_incomplete_decl): Rename.
3196         * langhooks-def.h (lhd_unsafe_for_reeval): New.
3197         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
3198         (LANG_HOOKS_INITIALIZER): Update.
3199         * langhooks.c (lhd_unsafe_For_reeval): New.
3200         * langhooks.h (struct langhooks): New hooks.
3201         * toplev.c (incomplete_decl_finalize_hook): Remove.
3202         (wrapup_global_declarations): Update.
3203         * tree.c (lang_unsafe_for_reeval): Remove.
3204         (unsafe_for_reeval): Update.
3205         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
3206         Remove.
3207 objc:
3208         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
3209         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3210
3211 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
3212
3213         * diagnostic.c (print_error_function): Remove.
3214         (default_print_error_function): Rename.
3215         (report_error_function): Update.
3216         * diagnostic.h (print_error_function): Remove.
3217         (default_print_error_function): Remove.
3218         * langhooks-def.h (struct diagnostic_context): Predeclare.
3219         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
3220         (LANG_HOOKS_INITIALIZER): Update.
3221         * langhooks.h (struct diagnostic context): Predeclare.
3222         (struct lang_hooks): New hook.
3223
3224 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3225
3226         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
3227         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
3228         !flag_pic.
3229         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
3230         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
3231         of PIC_OFFSET_TABLE_REGNUM thruout.
3232         * config/rs6000/rs6000.md: Likewise.
3233         * config/rs6000/darwin.h: Likewise.
3234
3235 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3236
3237         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
3238         unsigned HOST_WIDE_INT, not unsigned int.
3239
3240 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
3241
3242         PR middle-end/6096, middle-end/6098, middle-end/6099
3243         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
3244         CODE_LABELs.
3245         (fill_slots_from_thread): Likewise.
3246
3247 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
3248
3249         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
3250         floating fields in float regs.
3251         (function_arg_record_value_2): Likewise.
3252
3253 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
3254
3255         * config/mmix/mmix.md (define_constants): Remove misleading
3256         FIXME.  Add MMIX_fp_rO_OFFSET.
3257         ("nonlocal_goto_receiver"): Don't have stack-frame address of
3258         saved rO as part of the pattern.  Remove FIXME.
3259         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
3260         here, at output-time.
3261
3262 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
3263
3264         PR middle-end/6100
3265         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
3266         REG_BR_PRED.
3267         (output_v9branch): Likewise.
3268
3269 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
3270
3271         * gcc.c: Revert previous patch for now.
3272         * config/i386/djgpp.h: Likewise.
3273
3274 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
3275
3276         * config/mmix/crti.asm (_init): Register _fini with atexit.
3277         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
3278
3279 2002-03-31  Richard Henderson  <rth@redhat.com>
3280
3281         PR target/3997
3282         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
3283         (ASM_OUTPUT_DEF_FROM_DECLS): New.
3284
3285 2002-03-31  Richard Henderson  <rth@redhat.com>
3286
3287         * libgcc2.c (__bb_exit_func): Make static.
3288
3289         * config/alpha/alpha.md (trap): New.
3290
3291 2002-03-31  Richard Henderson  <rth@redhat.com>
3292
3293         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
3294         promoted argument types; build trap.
3295         (expand_builtin_trap): New.
3296         (expand_builtin): Use it.
3297         * stmt.c (expand_nl_goto_receivers): Likewise.
3298         * expr.h (expand_builtin_trap): Declare.
3299         * libfuncs.h (LTI_abort, abort_libfunc): New.
3300         * optabs.c (init_optabs): Init abort_libfunc.
3301
3302 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
3303
3304         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
3305         (LINK_COMMAND_SPEC): ... from here.
3306         (init_gcc_specs): Duplicate it here too, omitting
3307         shared_name in the second copy.
3308         (init_spec): Test for duplicate
3309         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
3310
3311 2002-03-30  David S. Miller  <davem@redhat.com>
3312
3313         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3314         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
3315
3316 2002-03-30  Roger Sayle <roger@eyesopen.com>
3317             Richard Henderson  <rth@redhat.com>
3318
3319         * regmove.c (combine_stack_adjustments_for_block): Avoid
3320         emitting a stack adjustment of zero bytes.  Let delete_insn
3321         update bb->head.
3322
3323 2002-03-30  Richard Henderson  <rth@redhat.com>
3324
3325         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
3326         (sparc_emitting_epilogue): New.
3327         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
3328         * config/sparc/sparc-protos.h: Update.
3329         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
3330         (TARGET_SWITCHES): Update.
3331         * config/sparc/sparc.md (return): Remove.
3332         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
3333         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
3334         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
3335         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
3336         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
3337         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
3338         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
3339         Remove MASK_EPILOGUE.
3340         * doc/invoke.texi: Update.
3341
3342 2002-03-30  Daniel Berlin  <dan@dberlin.org>
3343
3344         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
3345         CPP will start the file for us.
3346
3347 2002-03-30  Richard Henderson  <rth@redhat.com>
3348
3349         PR target/5446
3350         * config/ia64/ia64.c (group_barrier_needed_p): Special case
3351         prologue_allocate_stack.
3352         (ia64_single_set): Use insn codes for recognition of special
3353         cases, not rtl matching.
3354         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
3355
3356 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
3357
3358         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
3359
3360 2002-03-30  Richard Henderson  <rth@redhat.com>
3361
3362         PR target/6032
3363         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
3364         or -fomit-frame-pointer with profiling.
3365         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3366         (FUNCTION_PROFILER): Do nothing.
3367         (PROFILE_HOOK): New.
3368         * config/sparc/sparc.c (sparc_override_options): Don't check
3369         code models for profiling.
3370         (sparc_function_profiler): Remove.
3371         (sparc_profile_hook): New.
3372         * config/sparc/sparc-protos.h: Update.
3373
3374 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
3375
3376         PR optimization/6086
3377         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
3378         of SUBREG of volatile MEM or because the MEM was mode dependent,
3379         return CLOBBER instead of unmodified SUBREG.
3380
3381 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
3382
3383         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
3384         when not optimizing.
3385
3386         * toplev.c (rest_of_compilation): Cann mark_constant_function
3387         only when optimizing.
3388
3389         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
3390         are NULL.
3391
3392         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
3393         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
3394         (try_optimize_cfg): clear all AUX fields.
3395
3396         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
3397         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
3398         (ix86_address_cost): Be prepared for SUBREGed registers.
3399         (legitimate_address_p): Accept SUBREGed registers.
3400
3401 2002-03-29  Richard Henderson  <rth@redhat.com>
3402
3403         PR target/5672
3404         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
3405
3406 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3407
3408         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
3409         for aggregate and TFmode types.
3410
3411 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
3412
3413         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
3414
3415 2002-03-29  Richard Henderson  <rth@redhat.com>
3416
3417         PR target/5886
3418         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
3419         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
3420
3421 2002-03-29  Richard Henderson  <rth@redhat.com>
3422
3423         PR target/6041
3424         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
3425         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
3426         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
3427         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
3428         conditional.
3429         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
3430
3431 2002-03-29  Dale Johannesen <dalej@apple.com>
3432
3433         * loop.c (combine_movables): Do allow combination of pseudos.
3434
3435 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
3436
3437         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
3438         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
3439         No functional change except ...
3440         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
3441         * doc/install.texi (*-*-freebsd*): Document port configuration.
3442
3443 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3444
3445         * Makefile.in (convert.o, calls.o, expmed.o): Update.
3446         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
3447         Use new hooks.
3448         * builtin-types.def (BT_PTRMODE): Update.
3449         * c-common.c (type_for_size): Rename c_common_type_for_size.
3450         (type_for_mode): Similarly.
3451         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
3452         Use new hook.
3453         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
3454         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
3455         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
3456         Redefine.
3457         * c-typeck.c (common_type, comptypes, default_conversion):
3458         Use new hooks.
3459         * calls.c: Include langhooks.h.
3460         (emit_library_call_value_1): Use new hooks.  Avoid redundant
3461         calls.
3462         * convert.c: Include langhooks.h
3463         (convert_to_pointer, convert_to_integer): Use new hooks.
3464         * except.c (init_eh): Similarly.
3465         * expmed.c: Include langhooks.h.
3466         (expand_mult_add): Use new hooks.
3467         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
3468         try_casesi): Similarly.
3469         * fold-const.c (optimize_bit_field_compare, make_range,
3470         decode_field_reference, fold_truthop, fold): Similarly.
3471         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
3472         put_var_into_stack): Similarly.
3473         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
3474         LANG_HOOKS_TYPE_FOR_SIZE): New.
3475         (LANG_HOOKS_TYPES_INITIALIZER): Update.
3476         * langhooks.h (lang_hooks_for_types): New hooks.
3477         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
3478         * tree.c (get_unwidened, get_narrower): Similarly.
3479         * tree.h (type_for_mode, type_for_size): Remove.
3480         * varasm.c (force_const_mem): Use new hooks.
3481         * utils2.c (nonbinary_modular_operation): Update.
3482 objc:
3483         * objc-act.c (handle_impent): Update.
3484         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
3485         Redefine.
3486
3487 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
3488
3489         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
3490         * config/ia64/ia64.c (basereg_operand): New.
3491         * config/ia64/ia64-protos.h (basereg_operand): Declare.
3492         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
3493
3494 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
3495
3496         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
3497         unwind information when frame_pointer_needed.
3498         (mmix_assemble_integer): Tweak wording in comment.
3499
3500 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
3501
3502         * Makefile.in (except.o): Update.
3503         * except.c: Include langhooks.h.
3504         (init_eh): Use langhook.
3505         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
3506         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
3507         (LANG_HOOKS_INITIALIZER): Update.
3508         * langhooks.h (lang_hooks_for_types): New.
3509         (struct lang_hooks): Add it.
3510         * tree.c (make_lang_type_fn, make_lang_type): Remove.
3511         * tree.h (make_lang_type_fn, make_lang_type): Remove.
3512 config:
3513         * alpha/alpha.c: Include langhooks.h.
3514         (alpha_build_va_list): Use langhook.
3515         * d30v/d30v.c: Include langhooks.h.
3516         (d30v_build_va_list): Use langhook.
3517         * i386/i386.c: Include langhooks.h.
3518         (ix86_build_va_list): Use langhook.
3519         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
3520         * s390/s390.c: Include langhooks.h.
3521         (s390_build_va_list): Use langhook.
3522         * stormy16/stormy16.c: Include langhooks.h.
3523         (stormy16_build_va_list): Use langhook.
3524
3525 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
3526
3527         PR c++/5964
3528         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
3529         attributes.
3530         (length): Compute variable length for branches/calls/jumps here.
3531         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
3532         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
3533         define branch_type attribute.
3534         (divsi3_sp32): Maximum length is 6 not 7.
3535         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
3536         call_address_untyped_struct_value_sp32,
3537         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
3538         * config/sparc/sparc.c (empty_delay_slot): New function.
3539         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
3540         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
3541
3542 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
3543
3544         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
3545         nonzero_bits if not needed.
3546         (nonzero_bits) [XOR]: Likewise.
3547         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
3548         reg_last_set_mode and mode are both MODE_INT, but not equal.
3549         (record_value_for_reg): Compute reg_last_set_nonzero_bits
3550         in nonzero_bits_mode for MODE_INT modes.
3551
3552 2002-03-28  Richard Henderson  <rth@redhat.com>
3553
3554         PR target/5715
3555         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
3556         to GAS.  Correct drift between alternatives.
3557
3558 2002-03-28  Richard Henderson  <rth@redhat.com>
3559
3560         PR target/6087
3561         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
3562
3563 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
3564
3565         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
3566         emulation to the linker.
3567
3568 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
3569
3570         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
3571         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
3572
3573 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
3574
3575         * combine.c (simplify_and_const_int): Make sure to apply mask
3576         when force_to_mode returns a constant integer.  PR3311.
3577
3578 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3579
3580         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
3581
3582 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3583
3584         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
3585         and Objective-C Dialect Options.
3586
3587 2002-03-28  Richard Henderson  <rth@redhat.com>
3588
3589         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
3590         comparison should be done vs !=0 not >0 return code.  Tidy cases.
3591
3592 2002-03-28  Richard Henderson  <rth@redhat.com>
3593
3594         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
3595         on to c_expand_body.
3596         * c-tree.h (finish_function): Update decl.
3597         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
3598
3599 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
3600
3601         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
3602
3603 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
3604
3605         * rtlanal.c: Include flags.h
3606         (may_trap_p): Do not mark FP operations if trapping
3607         if !flag_trapping_math
3608         * Makefile.in (rtlanal.o): Add dependency on flag.h
3609         * ifcvt.c (noce_operand_ok): Avoid the lameness.
3610
3611 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
3612
3613         * mips.md: Use dconst1, not 1.0, as first argument of
3614         REAL_VALUE_LDEXP.  Don't use union real_extract.
3615
3616 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
3617
3618         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
3619         rather than $target.  Heed program_prefix and
3620         program_transform_name.  Search for gas in cross-compiler case too.
3621         "test -x" rather than "test -f".
3622         (gcc_cv_ld): Likewise.
3623         (gcc_cv_nm): Heed program_prefix and program_transform_name.
3624         (gcc_cv_objdump): Likewise.
3625         * configure: Regenerate.
3626
3627 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3628
3629         * Makefile.in (attribs.o): Update.
3630         * attribs.c: Include langhooks.h.
3631         (decl_attributes): Use langhook.
3632         * c-decl.c (insert_default_attributes): Rename.
3633         * c-tree.h (c_insert_default_attributes): New.
3634         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
3635         (LANG_HOOKS_INITIALIZER): Update.
3636         * langhooks.h (struct lang_hooks): New hook.
3637         * tree.h (insert_default_attributes): Remove.
3638 objc:
3639         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
3640
3641 2002-03-27  Andreas Schwab  <schwab@suse.de>
3642
3643         * config/i386/i386.c (classify_argument): Also check for
3644         QUAL_UNION_TYPE.
3645
3646 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3647
3648         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
3649         any more.
3650
3651 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
3652
3653         * i960.md (ret): Set PC.
3654         (nonlocal_goto): Fix expander.
3655         * builtins.c (epxand_builin_longjmp): Check that we've emitted
3656         some jump or call.
3657
3658 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
3659
3660         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
3661         of libcall regions.
3662
3663 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3664
3665         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
3666         assigning to BLOCK_FOR_INSN directly.
3667
3668 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
3669
3670         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
3671
3672 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3673
3674         * c-common.c (c_expand_expr): Fix prototype.
3675         * c-common.h (c_expand_expr): Always declare, update.
3676         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
3677         * c-objc-common.c (c_objc_common_init): No global hook.
3678         * expr.c (expand_expr): Use langhook.
3679         * expr.h (enum expand_modifier): Conditionally declare.
3680         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
3681         (LANG_HOOKS_INITIALIZER): Update.
3682         * langhooks.c (lhd_expand_expr): New.
3683         * langhooks.h (struct lang_hooks): New hook.
3684         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
3685         (lang_independent_init): Don't default hook.
3686 objc:
3687         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
3688
3689 2002-03-27  Richard Henderson  <rth@redhat.com>
3690
3691         PR target/6054
3692         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
3693         TARGET_CONST_GP.  Simplify conditions.
3694
3695 2002-03-27  Richard Henderson  <rth@redhat.com>
3696
3697         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
3698         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
3699         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
3700
3701 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
3702
3703         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
3704         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
3705         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
3706         Remove unnecessary masks.
3707         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
3708         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
3709         -mwindows, -mdll switches and their negations.
3710
3711 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3712
3713         * gcc-common.c (lang_mark_false_label_stack): Remove.
3714         * ggc.h (lang_mark_false_label_stack): Similarly.
3715
3716 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
3717
3718         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
3719
3720         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
3721         or __rtems_ is defined.
3722
3723 2002-03-26  Richard Henderson  <rth@redhat.com>
3724
3725         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
3726         if a non-trivial load was emitted.
3727         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
3728         in high+extra+low case.
3729
3730 2002-03-26  Richard Henderson  <rth@redhat.com>
3731
3732         * config.gcc (sparc*-solaris): Use float_format=sparc.
3733
3734 2002-03-26  Richard Henderson  <rth@redhat.com>
3735
3736         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
3737         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
3738         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
3739         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
3740         (WINT_TYPE_SIZE): Fix at 32.
3741
3742 2002-03-26  Richard Henderson  <rth@redhat.com>
3743
3744         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
3745         until after eh landing pad generation.
3746         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
3747         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
3748
3749 2002-03-26  Richard Henderson  <rth@redhat.com>
3750
3751         * expr.h (ADD_PARM_SIZE): One more convert for INC.
3752
3753 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
3754
3755         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
3756         and warning switches.
3757         (cc1_options):  Likewise.
3758
3759 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
3760
3761         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
3762         Restore more of the signal context.  Set no_reg_stack_frame.
3763         * config/ia64/unwind-ia64.c (unw_state_record):
3764         Add no_reg_stack_frame, comments.
3765         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
3766         (uw_update_context): Adjust bsp when unwinding from leaf,
3767         but not signal frame.
3768
3769 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
3770
3771         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
3772
3773 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
3774
3775         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
3776
3777 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
3778
3779         PR target/5621
3780         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
3781         "Add a pool_range attribute", which was lost during the ARM/Thumb
3782         merge.
3783
3784 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
3785
3786         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
3787         a register into the MAC16 accumulator.
3788
3789 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
3790
3791         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
3792         (Warning Options): Document -Wswitch-enum.
3793         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
3794         -Wswitch.
3795         (warn_switch_enum): Define variables.
3796         * flags.h (warn_switch_enum): Declare variables.
3797         * stmt.c (expand_end_case_type): When warn_switch_enum /
3798         -Wswitch-enum, perform switch checks.
3799         Fix PR c/5044.
3800
3801 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
3802
3803         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
3804         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
3805         (reload_muladdsi_compare0_scratch): Delete.
3806
3807 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
3808
3809         * doc/install.texi (*-*-freebsd*): Update.
3810
3811 2002-03-26  Richard Henderson  <rth@redhat.com>
3812
3813         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
3814         (SUB_PARM_SIZE): Cast DEC to ssizetype.
3815
3816         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
3817         types from the normal argument frame.
3818
3819         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
3820         variable sized objects by reference.
3821         (sparc_va_arg): Receive them by reference too.
3822
3823 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
3824
3825         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
3826         code to not restoring global registers.
3827
3828 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
3829
3830         * Makefile.in (ggc-common.o): Update.
3831         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
3832         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
3833         * c-tree.h (c_mark_tree): New.
3834         * ggc-common.c: Include langhooks.h.
3835         (gcc_mark_trees): Use new langhook.
3836         * ggc-callbacks.c: Delete file.
3837         * ggc.h (lang_mark_tree): Remove.
3838         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
3839         (LANG_HOOKS_INITIALIZER): Update.
3840         * langhooks.h (struct lang_hooks): New hook.
3841 objc:
3842         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
3843
3844 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
3845
3846         * doc/cpp.texi: Exclude entire Top node from printed manual.
3847         Move option index after directive index.  Insert page breaks
3848         before GFDL and concept index.  Index environment variables
3849         with command line options.
3850         * doc/cppenv.texi: Use @vtable for environment variable list.
3851         Add paragraph explaining semantics of empty elements in path
3852         variables.  Exclude a cross-reference to Fishkill from the
3853         manpage.  Remove an unnecessary cross-reference of the entry
3854         right above the referer.  Don't use @anchor in text that goes
3855         into manpage.
3856         * doc/cppopts.texi: Cross-reference the environment variables
3857         section, not the specific environment variable, for consistency.
3858
3859 2002-03-25  Richard Henderson  <rth@redhat.com>
3860
3861         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
3862         anywhere in the block.  Don't refer to insns that have been
3863         removed from the chain.  Iterate backward through the new insns.
3864         Don't refer to edges that have been removed.
3865
3866 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
3867
3868         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
3869         test for overflow of constant.
3870
3871 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
3872
3873         PR target/2623
3874         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
3875         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
3876         these patterns on arm_archv4.
3877
3878 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
3879
3880         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
3881         int".
3882
3883 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
3884
3885         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
3886         float_handled, float_handler, float_signal, set_float_handler,
3887         and do_float_handler.  Set handler for SIGFPE to crash_signal.
3888         * toplev.h: Don't prototype do_float_handler.
3889
3890         * c-lex.c: Fold parse_float into lex_number.  Make warning
3891         about portability of hex float constants more informative, and
3892         don't issue it on top of a syntax error.
3893         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
3894         their callers.
3895         * real.h: Define REAL_VALUE_ABS here...
3896         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
3897         simplify_unary_real, simplify_binary_real, and
3898         simplify_binary_is2orm1 into their callers.
3899         * tree.c: Fold build_real_from_int_cst_1 into caller.
3900
3901         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
3902
3903         * tsystem.h: Include float.h here...
3904         * libgcc2.c: ... not here.
3905
3906 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
3907
3908         Fixes for: PR bootstrap/3591, target/5676
3909         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
3910         defined.  Do not disable exceptions or rtti.
3911         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
3912         mcore.h.  Disable exceptions and rtti, since they are not
3913         supported by EPOC.
3914
3915 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
3916
3917         * c-decl.c (maybe_build_cleanup): Remove.
3918         * expr.c (expand_expr): Use langhook.
3919         * langhooks-def.h (lhd_return_null_tree,
3920         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
3921         (LANGHOOKS_INITIALIZER): Update.
3922         * langhooks.c (lhd_return_null_tree): New.
3923         * langhooks.h (struct lang_hooks): New hook.
3924         * tree-inline.c (initialize_inlined_parameters): Use langhook.
3925         * tree.h (maybe_build_cleanup): Remove.
3926
3927 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
3928
3929         * regrename.c (build_def_use): Move recog_memoized
3930         before extract_insn.
3931
3932 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
3933
3934         PR target/6043
3935         * expr.c (emit_group_store): Handle storing into CONCAT.
3936
3937 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
3938
3939         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
3940         corresponding MATCH_DUP.
3941
3942 2002-03-24  Richard Henderson  <rth@redhat.com>
3943
3944         * unroll.c (unroll_loop): Zero label_map.
3945
3946         * gcse.c: Include except.h.
3947         * Makefile.in (gcse.o): Update.
3948
3949 2002-03-24  Richard Henderson  <rth@redhat.com>
3950
3951         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
3952         Do resolve_unique_section before shared data clause.
3953
3954 2002-03-24  Richard Henderson  <rth@redhat.com>
3955
3956         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
3957
3958 2002-03-24  Richard Henderson  <rth@redhat.com>
3959
3960         * recog.c (peephole2_optimize): Split blocks when EH insns are
3961         generated in the middle of a block.  Do global life update if
3962         zapped EH edges.
3963
3964 2002-03-24  Richard Henderson  <rth@redhat.com>
3965
3966         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
3967
3968 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
3969
3970         preprocessor/3951
3971         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
3972         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
3973         (init_dependency_output): Don't make no_output decision here.
3974
3975 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
3976
3977         * stmt.c (check_for_full_enumeration_handling): Remove tests of
3978         warn_switch.  Update description.
3979         (expand_end_case_type): Call check_for_full_enumeration_handling
3980         when warn_switch.
3981
3982 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3983
3984         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
3985         (m68hc11_split_move): Call it to see if the source and destination
3986         operands use the same direction auto inc/dec mode, otherwise make the
3987         source an offsetable memory operand and generate an add.
3988
3989 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3990
3991         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
3992         register for operand 2.
3993         ("*subsi3_zero_extendqi"): Likewise.
3994         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
3995         bits so that it is compatible with a pop.
3996         ("*andhi3_gen"): Likewise.
3997         ("xorhi3"): Likewise.
3998
3999 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4000
4001         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
4002         -pedantic here...
4003         (cpp_post_options): ... not here.
4004
4005 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4006             Aldy Hernandez  <aldyh@redhat.com>
4007
4008         Removal of separate preprocessor cpp0.
4009
4010         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
4011         cpp0, install-common): Update.
4012         * c-common.c (flag_preprocess_only): New.
4013         (c_common_init): Preprocess for -E.
4014         * c-common.h (flag_preprocess_only): New.
4015         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
4016         * c-objc-common.c (c_init_decl_processing): Exit quickly
4017         for NULL return from c_common_init.
4018         * cpplib.h (cpp_preprocess_file): New.
4019         * cppmain.c (main, general_init, pfile, progname): Remove.
4020         (do_preprocessing): Rename cpp_preprocess_file, don't call
4021         cpp_finish.  Don't close stdout here.
4022         (setup_callbacks): Update prototype.
4023         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
4024         Update.
4025         * tradcpp.c (main): Ignore -quiet.
4026 objc:
4027         * lang-specs.h (default_compilers): Preprocess with cc1obj.
4028
4029 2002-03-24  Richard Henderson  <rth@redhat.com>
4030
4031         PR optimization/5742
4032         * machmode.def: Add inner mode field to complex modes.
4033         * config/mips/mips.c (mips_function_value): Always define.  Add
4034         new argument to handle libcalls.
4035         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
4036         (FUNCTION_VALUE): Likewise.
4037         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
4038         * config/mips/mips-protos.h: Update.
4039
4040 2002-03-23  Richard Henderson  <rth@redhat.com>
4041
4042         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
4043         * config/sparc/sparc-protos.h: Update.
4044         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
4045
4046 2002-03-23  Richard Henderson  <rth@redhat.com>
4047
4048         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
4049         _start or _init begins the text segment.
4050
4051 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
4052
4053         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
4054         not HOST_WIDEST_INT.
4055         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
4056
4057 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
4058
4059         PR java/5489
4060         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
4061         operand argument to output_return_instruction.
4062         * arm.c (arm_print_operand, case 'd'): If the operand is
4063         const_true_rtx then just return.
4064         (arm_print_operand, case 'D'): If the operand is const_true_rtx
4065         then abort.
4066
4067 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
4068
4069         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
4070         (Warning Options): Document -Wswitch-default.
4071         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
4072         -Wswitch.
4073         (warn_switch_default): Define variable.
4074         (warn_switch): Update comment.
4075         * flags.h (warn_switch_default): Declare variable.
4076         (warn_switch): Update comment.
4077         * stmt.c (expand_end_case): Check for and, when
4078         warn_switch_no_default, warn of a missing default case.
4079
4080 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
4081
4082         * real.h (N): Special case 128 bit doubles.
4083
4084         * combine.c (simplify_comparison): When widening modes, ignore
4085         sign extension on CONST_INTs.
4086
4087 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
4088
4089         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
4090         passed to adjust_address.  Fix comment formatting.
4091
4092
4093 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
4094
4095         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
4096         Always make REAL_VALUE_TYPE a struct containing an array of
4097         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
4098         big it is.  Don't declare or use union real_extract.
4099
4100         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
4101         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
4102         (print_operand), config/arm/arm.c (output_move_double),
4103         config/arm/arm.md (consttable_4, consttable_8),
4104         config/romp/romp.c (output_fpops), config/s390/s390.h
4105         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
4106         (xtensa_output_literal): Don't use union real_extract.
4107
4108         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
4109         (sfmode_constant_to_ulong), config/ns32k/merlin.h
4110         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
4111         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
4112         (PRINT_OPERAND): Don't use local version of union
4113         real_extract.
4114
4115         * config/convex/convex.c (check_float_value), config/vax/vax.c
4116         (vax_float_literal), config/m88k/m88k.md (divdf3),
4117         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
4118         config/pdp11/pdp11.c (output_move_quad): Don't do host
4119         arithmetic on target floating point quantities.
4120
4121         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
4122         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
4123
4124         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
4125         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
4126
4127         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
4128         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
4129         INFINITY.
4130         * print-rtl.c (print_rtx): Disable code which needs
4131         floating-point emulator.
4132         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
4133         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
4134         depending on HOST_FLOAT_FORMAT to be defined properly.
4135
4136         * config/1750a/1750a.c (get_double, float_label): Delete.
4137         (print_operand): Delete huge commented-out chunk.  Use
4138         REAL_VALUE_TO_DECIMAL.
4139         * config/1750a/1750a-protos.h: Delete prototypes of deleted
4140         functions.
4141         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
4142         IEEE_FLOAT_FORMAT.
4143         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
4144         Use REAL_VALUE_TO_DECIMAL as ELF version does.
4145         * config/m88k/m88k.c (real_power_of_2_operand,
4146         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
4147         real_extract out of the union; run the input through
4148         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
4149         from that into the union.
4150         * config/pdp11/pdp11.c (output_move_double): Rearrange
4151         parentheses to make automatic indenter happy.
4152
4153         * doc/tm.texi (Cross-compilation): Rename node to "Floating
4154         Point" and rewrite to describe current situation.  Also adjust
4155         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
4156         match code.
4157         * doc/rtl.texi: Adjust cross reference.
4158
4159 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
4160
4161         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
4162         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
4163         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
4164         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
4165         prevent use of sp as a reload register.
4166         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
4167         non_acc_reg_operand.
4168         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
4169         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
4170         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
4171         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
4172
4173 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
4174
4175         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
4176         * cpplex.c (unterminated): Delete.
4177         (parse_string): No string literal may extend over multiple
4178         lines.  Suppress the error when preprocessing assembly.
4179         * cppmain.c (scan_translation_unit): Strings are single-line.
4180
4181         * doc/cpp.texi: Update to match.
4182
4183 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
4184
4185         PR optimization/5854
4186         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
4187         Shut up warnings.
4188         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
4189         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
4190         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
4191         const0 if scratch register was not allocated.
4192         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
4193         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
4194         with GEN_INT (...).
4195         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
4196         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
4197         with GEN_INT (...) everywhere.  Remove constraints in define_split
4198         patterns.
4199         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
4200         require scratch register for setting 0 into regs/non-pushable memory.
4201
4202 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
4203
4204         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
4205         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
4206
4207 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
4208
4209         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
4210         * cppinit.c (cpp_create_reader):  On by default.
4211         (cpp_handle_option):  Handle -W[no-]endif-labels.
4212         (cpp_post_options):  Also enable if -pedantic.
4213         * cpplib.c (do_else):  Use it.
4214         (do_endif):  Likewise.
4215         * doc/cppopts.texi:  Document new option.
4216         * doc/invoke.texi:  Document new option.
4217
4218 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
4219
4220         * config/i386/i386.c, config/i386/i386.md: Change all occurences
4221         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
4222
4223 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
4224
4225         * flow.c (calculate_global_regs_live): Clear aux fields of
4226         ENTRY and EXIT.
4227
4228 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
4229
4230         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
4231         REG or MEM subregs, pass rtx * instead of rtx to it.
4232         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
4233         rtx * instead of rtx to alter_subreg.
4234         * config/m32r/m32r.c (gen_split_move_double): Likewise.
4235         * config/pj/pj.c (pj_output_rval): Likewise.
4236
4237 2002-03-22  Richard Henderson  <rth@redhat.com>
4238
4239         PR target/3177
4240         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
4241         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
4242         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
4243         (ia64_expand_prologue): Look at int_regs, not words, for number
4244         of incomming int regs.
4245
4246 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
4247
4248         * expr.c (expand_expr): A RESULT_DECL is part of a call.
4249
4250 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
4251
4252         * toplev.c (flag_loop_optimize, flag_crossjumping):
4253         New static variables.
4254         (rest_of_compilation): Conditionalize crossjumping and
4255         loop optimizer.
4256         (parse_options_and_default_flags): Default loop_optimize and
4257         crossjumping.
4258         (lang_independent_options): Add -fcrossjumping and -floop-optimize
4259         * invoke.texi (crossjumping, loop-optimize): Document.
4260
4261 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
4262
4263         * real.c (eiisneg): Move outside #ifdef NANS.
4264
4265 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
4266
4267         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
4268         frequencies match; avoid match on different loop depths.
4269         (try_crossjump_to_bb): Kill tests that no longer brings time
4270         savings.
4271         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
4272         updating code.
4273         (split_edge): Likewise.
4274
4275         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
4276         variable.
4277
4278         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
4279         * cfgrtl.c: Include insn-config.h
4280         (split_block) Dirtify block in presence of conditional execution
4281
4282 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
4283
4284         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
4285         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
4286         (function_arg): Constify CUMULATIVE_ARGS.
4287         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
4288         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
4289         (UNITS_PER_DOUBLE): New macro.
4290         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
4291         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
4292         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
4293         fp_regs and stack_words.
4294         (EABI_FLOAT_VARARGS_P): New macro.
4295         * config/mips/mips.c (struct mips_arg_info): New.
4296         (mips_arg_info): New function.
4297         (function_arg_advance): Use it.  Add adjustment instructions here
4298         rather than in function_arg.
4299         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
4300         for VOIDmode at the beginning of the function.
4301         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
4302         (function_arg_pass_by_reference): Likewise.
4303         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
4304         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
4305         (mips_va_start): Likewise.  Use the new stack_words field of
4306         CUMULATIVE_ARGS to set up overflow area.  Reformat.
4307         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
4308         doubles and other types, aligning the overflow pointer for non-doubles
4309         too.  Remove some code duplication.  Replace hard-coded constants.
4310
4311 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
4312
4313         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
4314         (CLASS_UNITS): Undefine.
4315         (CLASS_MAX_NREGS): Use FP_INC.
4316         * config/mips/mips.c (compute_frame_size): Likewise.
4317         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
4318
4319 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
4320
4321         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
4322         prototype, and handle lexing numbers and identifiers.
4323         (parse_identifier): Update to new form of parse_slow.
4324         (parse_number): Fast path only, use parse_slow otherwise.
4325         (_cpp_lex_direct): Update calls to parse_number.
4326
4327 2002-03-21  DJ Delorie  <dj@redhat.com>
4328
4329         * bb-reorder.c (make_reorder_chain_1): Protect against
4330         when redundant edges are omitted.
4331         * predict.c (dump_prediction): Likewise.
4332
4333 2002-03-21  Richard Henderson  <rth@redhat.com>
4334
4335         PR target/5996
4336         * fixinc/inclhack.def (solaris_stdio_tag): New.
4337         * fixinc/fixincl.x: Regenerate.
4338
4339 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
4340
4341         PR c/5597
4342         * c-typeck.c (process_init_element): Flag non-static
4343         initialization of a flexible array member as illegal.
4344
4345 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
4346
4347         * config/rs6000/t-linux64: New.
4348         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
4349         t-ppccomm.  Use t-rs6000 and t-linux64.
4350         (powerpc64-*-gnu* <tmake_file>): Likewise.
4351         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
4352         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
4353         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
4354
4355 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
4356
4357         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
4358         flag_really_no_inline instead of optimize == 0.
4359
4360         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
4361
4362         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
4363
4364         * flags.h (flag_really_no_inline): New.
4365
4366         * c-common.c (c_common_post_options): Initialize
4367         flag_really_no_inline.
4368
4369         * toplev.c (flag_really_no_inline): New.
4370
4371 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
4372
4373         * config/avr/avr.md (length): Fix length computation for
4374         conditional branches.
4375
4376 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
4377
4378         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
4379         sdbout.o, profile.o): Update.
4380         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
4381         langhook.
4382         * c-common.h (gettags): Move here from tree.h.
4383         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
4384         insert_block, getdecls, kept_level_p, global_bindings_p): New.
4385         * dbxout.c (dbxout_init): Use getdecls langhook.
4386         * expr.c (expand_expr): Use insert_block langhook.
4387         * fold-const.c: Include langhooks.h.
4388         (fold_range_test, fold_binary_op_with_conditional_arg,
4389         fold): Use global_bindings_p langhook.
4390         * integrate.c (expand_inline_function): Use insert_block langhook.
4391         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
4392         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
4393         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
4394         LANG_HOOKS_GETDECLS): New.
4395         (LANG_HOOKS_INITIALIZER): Update.
4396         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
4397         langhook.
4398         * langhooks.h (struct lang_hooks_for_decls): New.
4399         (struct lang_hooks): Update.
4400         * profile.c: Include langhooks.h.
4401         (output_func_start_profiler): Use new langhooks.
4402         * sdbout.c: Include langhooks.h.
4403         (sdbout_init, sdbout_finish): Use getdecls langhook.
4404         * stmt.c: Include langhooks.h.
4405         (expand_fixup, fixup_gotos): Use new langhooks.
4406         * stor-layout.c: Include langhooks.h.
4407         (variable_size): Use global_bindings_p langhook.
4408         * toplev.c (compile_file): Use getdecls langhook.
4409         * tree-inline.c (remap_block): Use insert_block langhook.
4410         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
4411         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
4412
4413 2002-03-21  Richard Henderson  <rth@redhat.com>
4414
4415         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
4416         constants in .data when -fpic.
4417
4418 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4419
4420         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
4421         where appropriate.
4422
4423 2002-03-21  Tom Tromey  <tromey@redhat.com>
4424
4425         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
4426
4427 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4428
4429         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
4430
4431         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
4432
4433 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
4434             Richard Henderson  <rth@redhat.com>
4435
4436         PR c/5354
4437         * c-common.c (c_expand_expr): Preserve result of a statement
4438         expression if needed.
4439
4440 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
4441
4442         PR bootstrap/4195
4443         * genrecog.c (maybe_both_true_mode): Remove.
4444         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
4445         * machmode.def (Pmode): Likewise.
4446
4447 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
4448
4449         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
4450         (nonlocal_mentioned_p_1): New function.
4451         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
4452         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
4453         (mark_constant_function): Recognize pure functions.
4454         * rtl.h (global_reg_mentioned_p): New prototype.
4455         * rtlanal.c (global_reg_mentioned_p,
4456         global_reg_mentioned_p_1): New function.
4457
4458 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4459
4460         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
4461         UNIX assert.h.
4462         * fixinc/fixincl.x: Regenerate.
4463
4464 2002-03-20  Jason Merrill  <jason@redhat.com>
4465
4466         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
4467
4468 2002-03-20  Michael Meissner  <meissner@redhat.com>
4469
4470         * doc/invoke.texi (Optimize Options): Document that -O2 sets
4471         -fstrict-aliasing.
4472
4473 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
4474
4475         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
4476         ".literal_position" directive before the constant pool.
4477
4478 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4479
4480         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
4481         Add Craig Rodrigues.
4482         Add Brad Lucier to testers.
4483
4484 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
4485
4486         PR target/4792
4487         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
4488         to if_then_else.
4489         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
4490         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
4491         instead of insn_extract.
4492
4493 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
4494
4495         PR bootstrap/4192
4496         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
4497
4498         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
4499         stmt if some case has been output.
4500
4501 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
4502
4503         PR c/5972
4504         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
4505         movsfcc_1, movdfcc_1): Add %O2.
4506         * config/i386/i386.c (print_operand): Handle %ON.
4507         Print . before float condition codes in Sun as cmov syntax.
4508         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
4509         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
4510         no longer true.
4511
4512 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
4513
4514         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
4515         return instruction if PC was popped.
4516
4517 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
4518
4519         * config/xtensa/xtensa.md: Remove unused type attributes.
4520         (adddi_carry, subddi_carry): Change type attribute to "multi".
4521
4522 2002-03-19  Dale Johannesen  <dalej@apple.com>
4523
4524         PR optimization/5999, middle-end/5731
4525         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
4526         multiplications by reciprocals.
4527
4528 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
4529
4530         * Makefile.in: Update.
4531         * c-common.c: Include langhooks.h.
4532         (inline_forbidden_p): Use new hook.
4533         * diagnostic.c: Include langhooks.h.
4534         (format_with_decl, announce_function,
4535         default_print_error_function): Use new hook.
4536         * dwarf2out.c (dwarf2_name): Use new hook.
4537         * function.c: Include langhooks.h.
4538         (init_function_start): Use new hook.
4539         * langhooks-def.h (lhd_decl_printable_name): New.
4540         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
4541         (LANGHOOKS_INITIALIZER): Update.
4542         * langhooks.c (lhd_decl_printable_name): New.
4543         * langhooks.h (struct lang_hooks): New hook.
4544         * toplev.c (decl_name, decl_printable_name): Remove.
4545         (open_dump_file): Use new hook.
4546         (process_options): Remove old hook.
4547         * tree.h (decl_printable_name): Remove.
4548 objc:
4549         * objc-act.c (objc_init): Remove old hook.
4550         (objc_printable_name): Export.
4551         * objc-act.h (objc_printable_name): New.
4552         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
4553
4554 2002-03-19  Jim Blandy  <jimb@redhat.com>
4555
4556         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
4557         the start_source_file debug hook, not the current line number.
4558
4559 2002-03-19  Richard Henderson  <rth@redhat.com>
4560
4561         * flow.c (EH_USES): Provide default.
4562         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
4563         * doc/tm.texi (EH_USES): New.
4564
4565         * config/ia64/ia64.c (ia64_eh_uses): New.
4566         * config/ia64/ia64-protos.h: Update.
4567         * config/ia64/ia64.h (EH_USES): New.
4568
4569 2002-03-19  Richard Henderson  <rth@redhat.com>
4570
4571         * varasm.c (output_constant_def): Fix stupid typo.
4572
4573 2002-03-19  Richard Henderson  <rth@redhat.com>
4574
4575         PR 5879
4576         * except.c (current_function_has_exception_handlers): New.
4577         * except.h: Declare it.
4578         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
4579         Combine tests that disable all sibcalls for the function.
4580
4581 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
4582
4583         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
4584         for INTEGER_CST.
4585
4586 2002-03-19  Richard Henderson  <rth@redhat.com>
4587
4588         PR 5977, 5991
4589         * config/ia64/ia64.c: Revert 2002-03-01 patch.
4590         * config/ia64/ia64.h (INIT_EXPANDERS): New.
4591
4592 2002-03-19  Jim Blandy  <jimb@redhat.com>
4593
4594         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
4595         name, even if the replacement list contains no tokens, as required
4596         by Dwarf.
4597
4598 2002-03-19  Jason Merrill  <jason@redhat.com>
4599
4600         * varasm.c (globalize_decl): Get the name from the RTL, not
4601         DECL_ASSEMBLER_NAME.
4602
4603         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
4604
4605 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
4606
4607         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
4608         subdi_carry): Define.
4609
4610 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
4611
4612         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
4613         about -fpic/-fPIC if extra_warnings set.
4614
4615 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
4616
4617         * expr.c (expand_expr): Sign-extend CONST_INT generated from
4618         TREE_STRING_POINTER.
4619         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
4620
4621 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4622
4623         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
4624         in favor of SP if FRAME_POINTER_REQUIRED is false.
4625
4626 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
4627
4628         * emit-rtl.c (gen_int_mode): New function.
4629         * rtl.h: Prototype for it.
4630         * combine.c (make_extraction, simplify_comparison), expmed.c
4631         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
4632         (convert_modes, store_field), optabs.c (expand_fix),
4633         simplify-rtx.c (neg_const_int, simplify_unary_real),
4634
4635         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
4636         Use it instead of GEN_INT (trunc_int_for_mode (...)).
4637
4638 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
4639
4640         PR c/5656
4641         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
4642         convert_parm_for_inlining.
4643         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
4644         Define.
4645         * langhooks-def.h: Likewise.
4646         * objc/objc-lang.c: Likewise.
4647         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
4648         function.
4649         * tree-inline.c (initialize_inlined_parameters):
4650         Call convert_parm_for_inlining lang hook if needed.
4651         * c-typeck.c (c_convert_parm_for_inlining): New function.
4652         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
4653
4654 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
4655
4656         * calls.c (precompute_arguments): Do not assume that temporaries
4657         can be destroyed after expanding the argument.
4658         (expand_call): Likewise.
4659
4660 2002-03-15  Eric Christopher  <echristo@redhat.com>
4661
4662         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
4663         Fix register preference on last change.
4664         * config/mips/mips.c (mips_return_in_memory): New function.
4665         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
4666         * config/mips/mips-protos.h: Declare.
4667         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
4668         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
4669
4670 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
4671
4672         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
4673         a register too.
4674         (anddi3, iorsi3): Likewise.
4675
4676         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
4677         use %gprel for symbols that are going to be placed in linkonce
4678         sections.
4679
4680         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
4681         RETURN_ADDRESS_POINTER_REGNUM to $ra.
4682         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
4683         not needed.  Disregard leaf_function_p().
4684         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
4685         mips16 frame pointer.
4686         * config/mips/mips.md (store ra): Only to small SP offsets.
4687         2001-08-22  Graham Stott  <grahams@redhat.com>
4688         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
4689         return a REG rtx for the return address register.
4690
4691 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
4692
4693         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
4694         constant-pool addresses as "mode-dependent".
4695         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
4696
4697 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
4698
4699         PR target/5740
4700         * expr.c (emit_group_load): Use extract_bit_field if
4701         needed for CONCAT arguments.
4702
4703 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
4704
4705         PR target/4863
4706         * arm.md (tablejump): Make this a define_expand.  For PIC add the
4707         offset to the base of the table.
4708         (thumb_tablejump): Matcher for Thumb tablejump insn.
4709         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
4710         as the difference of two labels.
4711         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4712         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
4713         tables in the code.
4714         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
4715         * arm.c (get_jump_table_size): If the table is not in the text
4716         section, return zero.
4717
4718 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
4719
4720         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
4721         of gen_rtx_SUBREG.
4722         (arm_reload_out_hi): Use gen_lowpart instead of
4723         gen_rtx_SUBREG to access QImode components.
4724         * config/arm/arm.md: Disable zero_extend split for QImode
4725         subregs in BIG_ENDIAN mode.
4726         (storehi_bigend): Match use of least significant byte.
4727         (storeinthi): Remove extraneous SUBREG.
4728         Add missing construction of operands[2].
4729         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
4730         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
4731         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
4732
4733 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
4734
4735         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
4736         any_operand.
4737
4738 2002-03-17  Richard Henderson  <rth@redhat.com>
4739
4740         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
4741         explicitly.
4742
4743 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
4744
4745         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
4746         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
4747
4748 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4749
4750         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
4751
4752         * predict.c (estimate_bb_frequencies): Delete unused variables.
4753
4754 2002-03-17  Richard Henderson  <rth@redhat.com>
4755
4756         * config/ia64/ia64.c (ia64_attribute_table): Move before
4757         targetm definition.  Make static.
4758
4759 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
4760
4761         * c-common.h (yyparse, c_common_parse_file): New.
4762         * c-lang.c: Include c-common.h.
4763         (LANG_HOOKS_PARSE_FILE): Redefine.
4764         * c-lex.c: Include c-common.h.
4765         (yyparse): Rename c_common_parse_file.  Call yyparse.
4766         * c-parse.in (yyparse): Remove macro.
4767         * c-tree.h (yyparse_1): Remove.
4768         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
4769         (LANG_HOOKS_INITIALIZER): Update.
4770         * langhooks.h (struct lang_hoooks): New hook parse_file.
4771         * toplev.c (compile_file): Use parse_file hook.
4772         * tree.h (yyparse): Remove.
4773         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
4774
4775 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
4776
4777         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
4778         float_truncate, not fix.
4779         ("*truncdfsf2_real"): Ditto.
4780         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
4781
4782         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
4783
4784 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
4785
4786         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
4787         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
4788         where appropriate.  Make the second reference to
4789         leaf_function_p a function call, as intended.  Reindented.
4790
4791         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
4792         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
4793
4794         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
4795         add register to non-constant into sp.
4796
4797         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
4798         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
4799         (mips16_gp_pseudo_rtx): Lose.
4800         (INIT_EXPANDERS): Deleted.
4801         * config/mips/mips.c (mips_init_machine_status): New.
4802         (mips_free_machine_status): New.
4803         (mips_mark_machine_status): New.
4804         (override_options): Set them.
4805         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
4806         (struct machine_function): ... new.  Replaced all references.
4807         (mips_add_gc_roots): Don't mark them.
4808         (embedded_pic_fnaddr_reg): New, extracted from...
4809         (embedded_pic_offset): ... here.
4810         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
4811         (movsi): Likewise.
4812
4813 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
4814
4815         * cppinit.c: Revert -MD removal.
4816
4817 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4818
4819         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
4820         soft registers by default for 68HC12.
4821         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
4822         when compiling with -fomit-frame-pointer.
4823         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
4824         (expand_epilogue): Likewise.
4825         (m68hc11_gen_rotate): Use exg when rotating by 8.
4826
4827 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4828
4829         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
4830         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
4831         (splits): Remove unused add splits.
4832         ("*addhi3_68hc12"): Tune constraints.
4833         ("addhi_sp"): Try to use X instead of Y in all cases and if the
4834         constant fits in 8-bits and D is dead use abx/aby instructions.
4835         ("*addhi3"): Remove extern declaration of ix_reg.
4836         ("*subsi3"): Optimize and provide new split.
4837         ("subhi3"): Cleanup.
4838         ("*subhi3_sp"): Avoid saving X if we know it is dead.
4839         (arith splits): For 68hc12 save the address register on the stack
4840         and do the arithmetic operation with a pop.
4841
4842 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4843
4844         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
4845         allocating QImode in address registers.
4846         ("*movqi_m68hc11"): Likewise.
4847
4848 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
4849
4850         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
4851
4852 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
4853
4854         * cppinit.c (print_help): Display -MD and -MMD.
4855         Don't display usage string.  Update assertion syntax and
4856         typo.
4857         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
4858         (cpp_handle_option): Update.
4859
4860 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
4861
4862         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
4863         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
4864         and define it so that regardless of target CPU size,
4865         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
4866         of "int" rather than "long."
4867
4868 2002-03-15  Richard Henderson  <rth@redhat.com>
4869
4870         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
4871         size as a tree.
4872
4873 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4874
4875         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
4876         ("tstqi" split): Avoid using memory for tstqi on address register.
4877         (splits): Remove constraints.
4878         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
4879         ("cmpdf", "cmpsf"): Remove since not used.
4880         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
4881         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
4882
4883 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4884
4885         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
4886         ("neghi2"): Tighten constraints.
4887         ("one_cmplsi2"): Optimize and simplify split.
4888         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
4889
4890 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4891
4892         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
4893         and split of AND operation to clear the upper bits.
4894         ("*logicalsi3_zextqi"): Likewise.
4895         ("*logicallhi3_zexthi_ashift8"): Likewise.
4896         ("*logicalsi3_silshr16"): Likewise.
4897         ("logicalsi3_silshl16"): Likewise.
4898         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
4899
4900 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4901
4902         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
4903         (m68hc11_indirect_p): New function.
4904         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
4905         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
4906         TARGET_M6812.
4907         (asm_print_register): Likewise.
4908         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
4909         (m68hc11_indirect_p): Declare.
4910         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
4911         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
4912         (TARGET_SWITCHES): New option -mrelax.
4913         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
4914         destination.
4915         ("iorsi3", "xorsi3"): Likewise.
4916         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
4917         ("*andhi3_mem"): New to handle destination in memory with bclr
4918         and a scratch register.
4919         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
4920         ("*andhi3_const"): New when operand2 is constant.
4921         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
4922         ("*andhi3_gen"): Cleanup of the old "andhi3".
4923         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
4924         ("xorqi3"): Update constraints.
4925
4926 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4927
4928         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
4929         for reg_equiv_memory_loc when the operand is a register that does
4930         not get a hard register (stack location).
4931         (tst_operand): After reload, accept all memory operand.
4932         (symbolic_memory_operand): Fix detection of symbolic references.
4933         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
4934         accept symbols and any constant.
4935
4936 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4937
4938         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
4939         note on the insn that sets the soft frame register.
4940         (must_parenthesize): ix and iy are also reserved names.
4941         (print_operand_address): One more place where parenthesis are required
4942         to avoid confusion with register names.
4943         (m68hc11_gen_movhi): Allow push of stack pointer.
4944         (m68hc11_check_z_replacement): Fix handling of parallel with a
4945         clobber.
4946         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
4947         the replacement register is.
4948         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
4949         and D8_REGS classes.
4950         (MODES_TIEABLE_P): All modes are tieable except QImode.
4951
4952 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4953
4954         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
4955         (___subdi3): Likewise.
4956         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
4957         (__map_data_section): Optimize 68hc11 case.
4958
4959 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4960
4961         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
4962         than a shift to avoid adding a register with itself.
4963         (m68hc11_memory_move_cost): Take into account NO_REGS.
4964         (m68hc11_register_move_cost): Update and use memory move cost
4965         for soft registers.
4966         (m68hc11_address_cost): Make cost of valid offset not 0 so that
4967         it gives more opportunities to cse to optimize.
4968         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
4969         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
4970
4971 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
4972
4973         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
4974         * c-common.def (CLEANUP_STMT): New tree node.
4975         * c-common.h (CLEANUP_DECL): New macro.
4976         (CLEANUP_EXPR): Likewise.
4977         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
4978         * expr.c (expand_expr): Tidy.
4979         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
4980         * tree-inline.c (initialize_inlined_parameters): Clean up
4981         new local variables.
4982
4983 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
4984
4985         PR bootstrap/4128
4986         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
4987         before movrXX only, use reg_overlap_mentioned_p.
4988         Only special case NE if just one insn can be generated.
4989
4990 2002-03-15  Jason Merrill  <jason@redhat.com>
4991
4992         * varasm.c (assemble_variable): Call resolve_unique_section before
4993         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
4994         of error_mark_node.
4995
4996 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
4997
4998         PR target/5170
4999         * arm.md (split pattern for thumb shiftable immediates): Add comment
5000         explaining non-obvious test.
5001
5002 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
5003
5004         PR target/5712
5005         * arm.md (movaddr, movaddr_insn): Delete.
5006
5007 2002-03-15  Jason Merrill  <jason@redhat.com>
5008
5009         * toplev.c (wrapup_global_declarations): Clarify variable handling.
5010         -fkeep-static-consts doesn't apply to comdats.
5011
5012 2002-03-14  Richard Henderson  <rth@redhat.com>
5013
5014         * c-decl.c: Include c-pragma.h.
5015         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
5016         (finish_function): Tidy.
5017         * c-pragma.c: Include c-common.h.
5018         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
5019         (handle_pragma_weak): Use them.
5020         (init_pragma): Register pending_weaks.
5021         * c-pragma.h (maybe_apply_pragma_weak): Declare.
5022         * print-tree.c (print_node): Print DECL_WEAK.
5023         * varasm.c (mark_weak_decls): Remove.
5024         (remove_from_pending_weak_list): Remove.
5025         (add_weak): Remove.
5026         (asm_emit_uninitialised): Call globalize_decl for weak commons.
5027         (weak_decls): Make a tree_list.
5028         (declare_weak): Cons weak_decls directly.
5029         (globalize_decl): Remove weak_decls elements directly.
5030         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
5031         symbols.  Don't pretend to handle aliases.
5032         (init_varasm_once): Update weak_decls registry.
5033         * Makefile.in: Update dependencies.
5034
5035 2002-03-14  Richard Henderson  <rth@redhat.com>
5036
5037         PR target/5312
5038         * config/ia64/ia64.c: Include tm_p.h last.
5039         (gen_nop_type): Remove duplicate definition.
5040         (cycle_end_fill_slots): Set sched_data for second L slot.
5041         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
5042         (nop_cycles_until): Fix typos.
5043
5044 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
5045
5046         PR optimization/5891
5047         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
5048
5049 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
5050
5051         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
5052           descriptors correctly.
5053
5054 2002-03-14  Michael Meissner  <meissner@redhat.com>
5055
5056         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
5057         100, allowing MAX_UNROLLED_INSNS to be overridden.
5058
5059         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
5060         --param.
5061
5062         * unroll.c (params.h): Include.
5063         (MAX_UNROLLED_INSNS): Delete, now in params.h.
5064
5065         * doc/invoke.texi (--param max-unroll-insns): Document.
5066
5067         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
5068
5069 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
5070
5071         * arm.md: Fix warnings about constraints in peepholes and splits.
5072
5073 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
5074
5075         * cpphash.h (struct lexer_state): Remove line_extension member.
5076         * cpplib.c (dequote_string, do_linemarker): New functions.
5077         (linemarker_dir): New data object.
5078         (DIRECTIVE_TABLE): No longer need to interpret #line in
5079         preprocessed source.  Delete obsolete comment about return
5080         values of handlers.
5081         (end_directive, directive_diagnostics, _cpp_handle_directive):
5082         Don't muck with line_extension.
5083         (directive_diagnostics): No need to issue warnings for
5084         linemarkers here.
5085         (_cpp_handle_directive): Issue warnings for linemarkers here,
5086         when appropriate.  Dispatch linemarkers to do_linemarker, not
5087         do_line.
5088         (do_line): Code to handle linemarkers split out to do_linemarker.
5089         Convert escape sequences in filename argument, both places.
5090
5091         * cppmacro.c (quote_string): Rename cpp_quote_string and
5092         export.  All callers changed.
5093         * cpplib.h (cpp_quote_string): Prototype.
5094         * cppmain.c (print_line): Call cpp_quote_string on to_file
5095         before printing it.
5096
5097         * doc/cpp.texi: Document that escapes are now interpreted in
5098         #line and in linemarkers, and that non-printing characters are
5099         converted to octal escapes when linemarkers are generated.
5100
5101 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
5102
5103         * emit-rtl.c (try_split): Use delete_insns.
5104         * recog.c (split_all_insns): Fix terminating condition.
5105
5106 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
5107             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
5108
5109         PR target/5828
5110         * arm.c (arm_output_epilogue): Fix floating-point register save
5111         adjustment when using a frame pointer.
5112
5113 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
5114
5115         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
5116         * config/mips/mips.c (compute_frame_size): Retrofit them here.
5117         (save_restore_insns, mips_expand_epilogue): And here.
5118         (build_mips16_call_stub): And here.
5119         (mips_function_value): Use the new macros to decide whether a single
5120         or complex float can be returned in floating-point registers.  Return
5121         a parallel rtx in the complex case.
5122
5123 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
5124
5125         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
5126         call after liveness analysis.
5127
5128         * recog.c (split_insn): Use delete_insn_and_edges.
5129
5130         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
5131         instructions to have branch prediction notes.
5132         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
5133
5134 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
5135
5136         * configure.in: Don't pass -Wno-long-long to a ADA compiler
5137         that doesn't support it.
5138         * configure: Regenerate.
5139
5140 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5141
5142         PR target/5626
5143         * config/sparc/sparc.md (normal_branch, inverted_branch,
5144         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
5145         inverted_fp_branch): Adjust calls to output_cbranch.
5146         Set length attribute.
5147         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
5148         output_v9branch.  Set length attribute.
5149         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
5150         predicates.
5151         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
5152         (output_cbranch): Likewise.  Handle far branches.
5153         (output_v9branch): Handle far branches.
5154         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
5155         Adjust prototypes.
5156         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
5157         noov_compare64_op predicates.
5158
5159 2002-03-13  Jason Merrill  <jason@redhat.com>
5160
5161         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
5162         into the function and constify it.
5163         * gthr-dce.h, gthr-solaris.h: Likewise.
5164
5165 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
5166
5167         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
5168         * config/rs6000/rs6000.c (rs6000_va_arg): Use
5169         std_expand_builtin_va_arg if not ABI_V4.
5170
5171 2002-03-13  Jason Merrill  <jason@redhat.com>
5172
5173         * varasm.c (globalize_decl): New fn.
5174         (assemble_start_function): Use it.
5175         (asm_emit_uninitialized): Use it.
5176         (assemble_alias): Use it.
5177         (assemble_variable): Use it.
5178
5179 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
5180
5181         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
5182         2002-03-12 internal visibility change.
5183         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
5184         visibility into SYMBOL_REF_FLAG.
5185
5186 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
5187
5188         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
5189         VOIDmode operand.  Add compile-time optimization for constant results.
5190
5191 2002-03-12  Jason Merrill  <jason@redhat.com>
5192
5193         * c-typeck.c (convert_for_assignment): Don't allow conversions
5194         between pointers and references.  Only allow lvalues to convert to
5195         reference.
5196
5197 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
5198
5199         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
5200         before prologue, to avoid scheduling problems.
5201
5202 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5203
5204         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
5205         (ELIMINABLE_REGS): Add sfp->sp.
5206         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
5207
5208 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5209
5210         PR optimization/5892
5211         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
5212
5213 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
5214
5215         * loop.c (basic_induction_var): Don't call convert_modes if mode
5216         classes are different.
5217
5218 2002-03-12  Richard Henderson  <rth@redhat.com>
5219
5220         PR optimization/5901
5221         * function.c (reposition_prologue_and_epilogue_notes): Position
5222         the markers after/before the last/first insn not deleted.
5223
5224 2002-03-12  Richard Henderson  <rth@redhat.com>
5225
5226         PR optimization/5878
5227         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
5228         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
5229         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5230
5231         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
5232         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
5233         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
5234
5235         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
5236         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
5237         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
5238         also.  Don't set it if not flag_pic.
5239         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
5240         to be INVALID_REGNUM when not used.
5241
5242 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
5243
5244         * expmed.c (store_bit_field): Reset alias set for memory.
5245         (extract_bit_field): Same.
5246
5247 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5248
5249         * c-common.c (c_tree_code_type, c_tree_code_length,
5250         c_tree_code_name, add_c_tree_codes): Delete.
5251         * c-common.h (add_c_tree_codes): Delete.
5252         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
5253         Define.
5254         * c-objc-common.c (c_objc_common_init): Don't call
5255         add_c_tree_codes, instead set lang_unsafe_for_reeval.
5256         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
5257         objc_tree_code_name, add_objc_tree_codes): Delete.
5258         (objc_init): Don't call add_objc_tree_codes.
5259         * objc/objc-lang.c (tree_code_type, tree_code_length,
5260         tree_code_name): Define.
5261         * toplev.c (lang_independent_init): Don't set
5262         tree_code_length[IDENTIFIER_NODE].
5263         * tree.c (tree_code_type, tree_code_length, tree_code_name):
5264         Delete definitions, moved to language front-ends.
5265         * tree.def (IDENTIFIER_NODE): Hardwire the length.
5266         * tree.h (tree_code_type, tree_code_length, tree_code_name):
5267         Const-ify.
5268         (tree_code_length): Change type to unsigned char.
5269
5270 2002-03-12  Richard Henderson  <rth@redhat.com>
5271
5272         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
5273         internal visibility change.
5274
5275 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5276
5277         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
5278         validize_mem() instead of change_address to avoid clobbering
5279         memory attributes.
5280
5281 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
5282
5283         * c-lex.h (position_after_whitespace): Remove.
5284
5285 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
5286
5287         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
5288         (lex_string): Use unsigned char pointers.
5289
5290 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
5291
5292         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
5293         is not a valid memory_operand.
5294
5295 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5296
5297         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
5298         * config/xtensa/lib1funcs.asm: Fix copyright to include
5299         special case for libgcc files.
5300         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
5301         (__divsi3): Likewise.
5302         (__umodsi3): Likewise.
5303         (__modsi3): Likewise.
5304         * config/xtensa/lib2funcs.S: Fix copyright to include
5305         special case for libgcc files.
5306
5307 2002-03-12  Tom Rix  <trix@redhat.com>
5308
5309         * collect2.c (resolve_lib_name): Move outside of
5310         OBJECT_FORMAT_COFF ifdef.
5311         (ignore_library): Same.
5312
5313 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5314
5315         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
5316
5317 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5318
5319         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
5320         to function_section before writing out the constant pool.
5321
5322 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
5323
5324         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
5325         zero_constant.
5326         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
5327
5328 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
5329
5330         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
5331         (adddi3): Likewise.
5332         (movdf): Likewise.
5333         (movdi): Likewise.
5334         (cmpsi splitter): Likewise.
5335         (modsi3): Fail if <= 0.
5336         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
5337         redundant test when HOST_BITS_PER_WIDE_INT != 32.
5338         (reg_or_sub_cint64_operand): Likewise.
5339         (num_insns_constant_wide): Optimize sign extension.
5340         (rs6000_legitimize_address): Likewise.
5341
5342 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
5343
5344         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5345         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5346
5347 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
5348
5349         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
5350         address calculation.
5351
5352 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
5353
5354         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
5355         scratch register to DImode / TImode.
5356         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
5357         register used does not overlap the target.
5358
5359 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5360
5361         * Makefile.in (debug.o): Depend on debug.h.
5362         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
5363         * debug.c (do_nothing_debug_hooks): Likewise.
5364         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
5365         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
5366         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
5367         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
5368         * dwarfout.c (dwarf_debug_hooks): Likewise.
5369         * integrate.c (output_inline_function): Likewise.
5370         * objc/objc-act.c (synth_module_prologue): Likewise.
5371         * sdbout.c (sdb_debug_hooks): Likewise.
5372         * toplev.c (debug_hooks): Likewise.
5373         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5374
5375 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5376
5377         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
5378         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
5379         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
5380         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
5381         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
5382         * defaults.h (POINTER_SIZE): Define.
5383         * doc/tm.texi (POINTER_SIZE): Document default.
5384
5385 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5386
5387         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
5388
5389 2002-03-11  Richard Henderson  <rth@redhat.com>
5390
5391         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
5392         if rebuild_label_notes_after_reload.
5393
5394 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
5395
5396         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
5397         emit pic register load if "internal" visibility.
5398         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
5399         (cris_expand_builtin_va_arg): Do all computations on trees.
5400
5401 2002-03-11  Richard Henderson  <rth@redhat.com>
5402
5403         * rtlanal.c: Include recog.h.
5404         (keep_with_call_p): Fix thinko.
5405         * Makefile.in (rtlanal.o): Update dependencies.
5406
5407 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
5408
5409         * genflags.c (gen_insn): Use IS_VSPACE.
5410         * genoutput.c (output_insn_data): Likewise.
5411         (process_template): Likewise.
5412
5413 2002-03-11  Richard Henderson  <rth@redhat.com>
5414
5415         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
5416
5417 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
5418
5419         * Makefile.in: Update.
5420         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
5421         Update documentation.
5422         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
5423         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
5424
5425 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
5426
5427         * Makefile.in: Give texi2pod its input file as a command line
5428         argument, not on stdin.
5429
5430 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
5431             Daniel Berlin  <dan@dberlin.org>
5432
5433         C++ alias analysis improvement.
5434         * alias.c (record_component_aliases): Record aliases for base
5435         classes too.
5436
5437 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
5438
5439         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
5440
5441 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
5442
5443         * toplev.c (vms_fopen): Remove, not needed.
5444
5445         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
5446
5447         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
5448
5449         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
5450         for FP, already done later.
5451
5452         * toplev.c (debug_args): Add entry for VMS_DEBUG.
5453         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
5454
5455 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
5456
5457         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
5458         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
5459         LARGEST_EXPONENT_IS_NORMAL for the given mode.
5460         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
5461         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
5462         (ediv, emul, eldexp, esqrt): Likewise.
5463         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
5464         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
5465         (saturate): New function.
5466         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
5467         (make_nan): Use a saturation value instead of a NaN if
5468         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
5469         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
5470         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
5471         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
5472         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
5473         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
5474         !ROUND_TOWARDS_ZERO.
5475         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
5476         (ROUND_TOWARDS_ZERO): Document.
5477
5478 2002-03-11  Andreas Jaeger  <aj@suse.de>
5479
5480         * cfg.c (dump_flow_info): Remove unused variable.
5481
5482 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
5483
5484         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
5485         computations on trees.
5486
5487 2002-03-10  Richard Henderson  <rth@redhat.com>
5488
5489         PR 5693:
5490         * reload.c (copy_replacements_1): New.
5491         (copy_replacements): Use it to recurse through the rtx.
5492
5493 2002-03-10  Richard Henderson  <rth@redhat.com>
5494
5495         * loop.c (strength_reduce): Compute number of iterations as
5496         unsigned HOST_WIDE_INT.
5497
5498 2002-03-10  Richard Henderson  <rth@redhat.com>
5499
5500         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
5501         to move away from the end of the block.
5502
5503 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
5504
5505         PR preprocessor/5899
5506         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
5507
5508 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5509
5510         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
5511
5512         * attribs.c (decl_attributes): Fix signed/unsigned warning.
5513
5514 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
5515
5516         * config/mmix/mmix.c: Improve comments.
5517         (mmix_target_asm_function_prologue): Drop variable
5518         empty_stack_frame.  Don't allocate unused slot above fp.
5519         (mmix_target_asm_function_epilogue): Mirror prologue changes.
5520         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
5521         brace in first column.
5522         (enum reg_class): Ditto.
5523         (FIRST_PARM_OFFSET): Now 0.
5524         (USER_LABEL_PREFIX): Remove #if 0:d definition.
5525
5526 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5527
5528         * combine.c (make_extraction): Fix error in last change.
5529
5530 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5531
5532         * c4x.c (c4x_fp_reglist): Const-ify.
5533         * cris.c (cris_print_operand): Likewise.
5534         * i386.c (ix86_va_arg): Likewise.
5535         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
5536         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
5537         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
5538         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
5539         * mcore.h (regno_reg_class): Likewise.
5540         * mips.c (gen_int_relational): Likewise.
5541         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
5542         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
5543         * pdp11.c (move_costs): Likewise.
5544         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
5545         * s390.c (s390_branch_condition_mnemonic, regclass_map):
5546         Likewise.
5547         * s390.h (regclass_map): Likewise.
5548         * sh.c (shift_amounts): Likewise.
5549         * sh.md (rotlsi3): Likewise.
5550
5551 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
5552
5553         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
5554         (ne0+5): Use new clobber to generate proper shift pattern.
5555         Patch by Michael Matz <matz@kde.org>.
5556
5557 2002-03-09  Andreas Schwab  <schwab@suse.de>
5558
5559         * gcc.c (validate_all_switches): Also handle `%W{...}'.
5560
5561 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
5562
5563         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
5564
5565 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
5566
5567         PR middle-end/5877
5568         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
5569         even for non-representable constants.
5570
5571 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5572
5573         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
5574         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
5575         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
5576         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
5577         (pop_function_context): Compute MAY_SHARE parameter for
5578         fixup_var_refs.
5579         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
5580         (gen_mem_addressof): Call fixup_var_refs with new parm.
5581
5582         * combine.c (make_extraction): Don't make extension of CONST_INT.
5583
5584 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
5585
5586         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
5587         in o32 and o64 ABIs.
5588         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
5589         but getting fixed-size structs passed in registers regardless of
5590         padding in o32 and o64 ABIs.
5591
5592         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
5593         offset before loading address of argument passed by transparent
5594         reference.
5595
5596 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5597
5598         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
5599
5600 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
5601
5602         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
5603         marker such that registers after it are saved.
5604
5605 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5606
5607         * sparc.c (arith_4096_operand): Fix error in last change.
5608
5609 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
5610
5611         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
5612         defaults for MEABI.
5613
5614 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
5615
5616         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
5617         vectors.
5618
5619 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
5620
5621         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
5622
5623 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
5624
5625         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
5626         removed; fix return value.
5627         * combine.c (combine_instructions): Dirtify blocks where we failed to
5628         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
5629         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
5630
5631 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5632
5633         * gcse.c (insert_insn_end_bb): Fix typo in last change.
5634
5635 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
5636
5637         * recog.c (peephole2_optimize): Re-distribute EH edges.
5638
5639 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
5640
5641         * expr.c (expand_expr): Use unsave lang hook.
5642         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
5643         (LANG_HOOKS_INITIALIZER): Update.
5644         * langhooks.h (struct lang_hooks): New hook unsave.
5645         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
5646         (unsave_expr_1): Remove unused lang_unsave_expr_now.
5647         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
5648         (unsave_expr_now): Remove.
5649         * tree.h (unsave_expr_now, lang_unsave,
5650         lang_unsave_expr_now): Remove.
5651         (lhd_unsave): New.
5652
5653 2002-03-08  Andreas Jaeger  <aj@suse.de>
5654
5655         * flow.c (propagate_block_delete_insn): Remove unused variable.
5656
5657 2002-03-08  Kazu Hirata  <kazu@hxi.com>
5658
5659         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
5660         insn length for memory load/store.
5661
5662 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5663
5664         * doc/install.texi (--with-libiconv-prefix): Document.
5665
5666 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
5667
5668         * doc/sourcebuild.texi: Fix typo.
5669
5670 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
5671
5672         PR c/3711
5673         * builtins.c (std_expand_builtin_va_arg): Do all computations on
5674         trees.
5675
5676 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5677
5678         * rtl.c (copy_most_rtx): Move from here ...
5679         * emit-rtl.c (copy_most_rtx): ... to here.
5680
5681 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
5682
5683         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
5684         SUBTARGET_CPP_SIZE_SPEC.
5685         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
5686
5687         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
5688
5689 2002-03-07  Matt Hiller  <hiller@redhat.com>
5690
5691         * gensupport.c (first_dir_md_include): Renamed from include;
5692         change all references.
5693         (last_dir_md_include): Renamed from last_include; change all
5694         references.
5695         (init_md_reader): Unconditionally initialize base_dir whether or
5696         not filename is a relative path.
5697
5698 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
5699
5700         * config/fp-bit.c (_unord_f2): Compile it in even if
5701         US_SOFTWARE_GOFAST is enabled.
5702
5703         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
5704         NULL_RTX.  Set all HFmode operations as NULL_RTX.
5705         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
5706         NULL_RTX, try reversing the comparison and the operands.
5707
5708 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
5709
5710         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
5711         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
5712         and MATCH_OP_DUP.
5713
5714 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
5715
5716         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
5717
5718 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
5719
5720         * basic-block.h (fixup_abnormal_edges): Declare.
5721         * reload1.c (fixup_abnormal_edges): New function.
5722         * reg-stack.c (convert_regs): Use it.
5723
5724         * gcse.c (insert_insn_end_bb): Handle trapping insns.
5725
5726         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
5727
5728 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
5729
5730         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
5731         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
5732         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
5733         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
5734         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
5735         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
5736         unless x and y could be infinite.
5737         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
5738         Check that the common type of both arguments is a real, even for
5739         targets without unordered comparisons.  Allow an integer argument
5740         to be compared against a real.
5741         (expand_tree_builtin): Use expand_unordered_cmp.
5742         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
5743         * cse.c (fold_rtx): Likewise.  Fix indentation.
5744         * fold-const.c (fold_real_zero_addition_p): New.
5745         (fold): Use it, and the new HONOR_... macros.
5746         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
5747         * jump.c (reversed_comparison_code_parts): After searching for
5748         the true comparison mode, use HONOR_NANS to decide whether it
5749         can be safely reversed.
5750         (reverse_condition_maybe_unordered): Remove IEEE check.
5751         * simplify-rtx.c (simplify_binary_operation): Use the new macros
5752         to decide which simplifications are valid.  Allow the following
5753         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
5754         and (a - -b) to (a + b).
5755         (simplify_relational_operation): Use HONOR_NANS.
5756         * doc/tm.texi: Document the MODE_HAS_... macros.
5757
5758 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
5759
5760         * combine.c (simplify_comparison): If simplifying a logical shift
5761         right and compare with constant, force the comparison to unsigned.
5762
5763 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
5764
5765         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
5766
5767         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
5768         -mabi=no-altivec
5769         (alt_reg_names): Remove % for vrsave.
5770
5771 2002-03-06  Richard Henderson  <rth@redhat.com>
5772
5773         PR optimization/5844
5774         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
5775         if used indicates we've already emitted one copy of an operand.
5776         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
5777         (gen_split): Supply a non-null used.
5778
5779 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
5780
5781         * reload1.c (reload): Unshare all rtl after reload is done.
5782
5783         * simplify-rtx.c (simplify_plus_minus): Do not abort,
5784         but simply fail if the expression is too complex to simplify.
5785         (simplify_gen_binary): Handle simplify_plus_minus failures.
5786
5787 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
5788
5789         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
5790         consistently call delete_trivially_dead_insns after CSE and GCSE;
5791         fix DFI_life dumping; do jump threading after liveness; do crossjumping
5792         after liveness2; update comment in last crossjumping.
5793         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
5794
5795 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
5796
5797         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
5798         after completing fast dead code elimination.
5799
5800         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
5801         COMPARE operator.
5802
5803 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
5804
5805         * version.c:  Fix misplaced leading blanks on first line.
5806
5807 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
5808
5809         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
5810
5811 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
5812
5813         * cfgcleanup.c (mentions_nonequal_regs): New function.
5814         (thread_jump): Use it.
5815         * toplev.c (rest_of_compilation): Run jump threading after
5816         liveness.
5817
5818 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
5819
5820         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
5821         patch.
5822
5823 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
5824
5825         * predict.c (estimate_bb_frequencies): Do not reload the
5826         frequencies from notes.
5827
5828 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
5829
5830         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
5831         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
5832
5833         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
5834         delete_noop_moves): Return indeger.
5835         * flow.c (ndead): New variable.
5836         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
5837         BB argument; update callers.
5838         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
5839         (life_analysis): Do not call purge_all_dead_edges.
5840         (update_life_info): Return number of deleted insns; print statistics.
5841         (update_life_info_in_dirty_blocks): likewise.
5842         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
5843         return number of insns deleted.
5844
5845         * cse.c: Include timevar.h
5846         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
5847         iterate until stabilizes; print statistics; return number of killed
5848         insns.
5849         * Makefile.in: (cse.o): Add timevar.h dependency
5850         * rtl.h (delete_trivially_dead_insns): New.
5851         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
5852         * toplev.c (rest_of_compilation): Update callers.
5853
5854         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
5855         (try_optimize_cfg): Do not update liveness.
5856         (cleanup-cfg): Loop until try_optimize_cfg and dead code
5857         removal stabilizes; use delete_trivially_dead_insns.
5858
5859         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
5860
5861 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
5862
5863         * cppmain.c (setup_callbacks): Disable #pragma and #ident
5864         callbacks when processing assembly language.
5865
5866 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5867
5868         * pa.h (ASM_FILE_END): Define.
5869         * som.h (ASM_FILE_END): Delete.
5870
5871         * pa.c (function_arg): Don't pass floats in general registers in
5872         indirect calls if TARGET_ELF32.
5873
5874 2002-03-05  Richard Henderson  <rth@redhat.com>
5875
5876         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
5877
5878 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
5879
5880         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
5881
5882 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
5883
5884         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
5885         -r command line.  Don't hide any symbols if not building
5886         shared libgcc.
5887
5888 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
5889
5890         * cfg.c (dump_flow_info): Warn about profile mismatches.
5891         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
5892         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
5893
5894 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
5895
5896         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
5897         wide volatile memory by parts.
5898
5899 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
5900
5901         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
5902         is NULL.
5903
5904 2002-03-05  Richard Henderson  <rth@redhat.com>
5905
5906         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
5907
5908 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
5909
5910         * toplev.c (documented_lang_options): Document more
5911         language-specific options.
5912         * doc/invoke.texi (Warning Options): Correct documentation for
5913         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
5914         * c-decl.c (c_decode_option): Use a table to handle warning options.
5915
5916 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
5917
5918         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
5919         parameter to mmix_encode_section_info.
5920         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
5921         relocatably.  Always produce ELF, not mmo if linking relocatably.
5922         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
5923         first is non-zero, don't add symbol prefix.
5924         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
5925         prototype accordingly.
5926
5927 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
5928
5929         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
5930
5931 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
5932
5933         * configure.in: Increase required makeinfo version to 4.1.
5934         * configure: Regenerate.
5935
5936 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
5937
5938         * .cvsignore: Remove *.info* and genrtl*; these files are generated
5939         elsewhere now.
5940
5941 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
5942
5943         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
5944         * doc/invoke.texi: Fix @math uses.
5945
5946 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
5947
5948         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
5949         removal
5950
5951 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
5952
5953         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
5954         (powerpc-*-eabisimaltivec*): Same.
5955
5956         * config/rs6000/t-ppcendian: New.
5957
5958 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5959
5960         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
5961         nonimmediate_src_operand and nonimmediate_lsrc_operand to
5962         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
5963
5964 2002-03-03  Richard Henderson  <rth@redhat.com>
5965
5966         * toplev.c (rest_of_decl_compilation): Revert last two changes.
5967
5968 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
5969
5970         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
5971         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
5972         tree.c, config/m68k/m68k.c:
5973         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
5974         REAL_ARITHMETIC blocks unconditional.  Delete some further
5975         #ifdef blocks predicated on REAL_ARITHMETIC.
5976         * flags.h, toplev.c: Delete remaining references to
5977         flag_pretend_float.
5978
5979         * doc/invoke.texi: Remove documentation of -fpretend-float.
5980         * doc/tm.texi: Describe the various REAL_* macros as provided by
5981         real.h, not by the target configuration files.
5982
5983         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
5984         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
5985         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
5986         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
5987         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
5988         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
5989         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
5990         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
5991         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
5992         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
5993         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
5994         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
5995         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
5996         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
5997         config/xtensa/xtensa.h:
5998         Do not define, undefine, or mention in comments any of
5999         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
6000         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
6001         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
6002         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
6003         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
6004         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
6005         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
6006         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
6007         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
6008
6009 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6010
6011         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
6012         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
6013         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
6014         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
6015         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
6016         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
6017         Delete.
6018         * defaults.h (BITS_PER_WORD): Define.
6019         * doc/tm.texi (BITS_PER_WORD): Document default value.
6020
6021         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
6022         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
6023         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
6024
6025 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6026
6027         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
6028         lieu of explicit sizeof/sizeof.
6029         * i386.c (override_options, ix86_init_mmx_sse_builtins,
6030         ix86_expand_builtin): Likewise.
6031         * mips.c (mips_add_gc_roots): Likewise.
6032         * mmix.c (mmix_output_condition): Likewise.
6033         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
6034         altivec_init_builtins): Likewise.
6035         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
6036         * cppexp.c (Nsuff, parse_number): Likewise.
6037         * cppinit.c (builtin_array_end): Likewise.
6038         * gcc.c (n_default_compilers, process_command): Likewise.
6039         * genpreds.c (output_predicate_decls): Likewise.
6040         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
6041         * lcm.c (N_ENTITIES): Likewise.
6042         * stor-layout.c (set_sizetype): Likewise.
6043
6044 2002-03-03  Richard Henderson  <rth@redhat.com>
6045
6046         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
6047         for types or labels.
6048
6049 2002-03-03  Richard Henderson  <rth@redhat.com>
6050
6051         * c-decl.c (start_decl): Initialized variables are not common.
6052
6053 2002-03-02  Per Bothner  <per@bothner.com>
6054
6055         * gcc.c (option_map):  Suport new --bootclasspath option.
6056         --CLASSPATH is now just an alias for --classpath.
6057
6058 2002-03-02  Richard Henderson  <rth@redhat.com>
6059
6060         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
6061         load if "internal" visibility.
6062         * doc/extend.texi: Document visibility meanings.
6063
6064 2002-03-02  Richard Henderson  <rth@redhat.com>
6065
6066         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
6067         to functions as well.
6068
6069 2002-03-02  Richard Henderson  <rth@redhat.com>
6070
6071         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
6072         (handle_visibility_attribute): Don't call assemble_visibility.
6073         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
6074         without asmspec.  Invoke assemble_alias when needed.
6075         * varasm.c (maybe_assemble_visibility): New.
6076         (assemble_start_function, assemble_variable, assemble_alias): Use it.
6077
6078 2002-03-02  Richard Henderson  <rth@redhat.com>
6079
6080         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
6081         invoke ENCODE_SECTION_INFO with first call flag.
6082
6083         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
6084         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
6085         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
6086         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
6087         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
6088         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
6089         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
6090         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
6091         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
6092         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
6093         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
6094         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
6095         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
6096         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
6097         config/mcore/mcore-protos.h, config/mcore/mcore.c,
6098         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
6099         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
6100         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
6101         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
6102         config/sh/sh.h, config/sparc/sparc.h,
6103         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
6104         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
6105         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
6106         FIRST argument.  As needed, examine it and do nothing.
6107
6108         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
6109         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
6110         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
6111
6112         * config/arm/t-pe (pe.o): Add dependencies.
6113
6114 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6115
6116         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
6117         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
6118         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
6119         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
6120         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
6121         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
6122         * defaults.h (BITS_PER_UNIT): Define.
6123         * doc/tm.texi (BITS_PER_UNIT): Document default value.
6124
6125 2002-03-02  Kazu Hirata  <kazu@hxi.com>
6126
6127         * config/h8300/h8300-protos.h: Add a prototype for
6128         compute_a_shift_length.
6129         * config/h8300/h8300.c (h8300_asm_insn_count): New.
6130         (compute_a_shift_length): Likewise.
6131         (h8300_adjust_insn_length): Do not adjust insn length of shift
6132         insns.
6133         * config/h8300/h8300.md (anonymous shift patterns): Use
6134         compute_a_shift_length.
6135
6136 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6137
6138         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
6139         trunc_int_for_mode.
6140
6141         * emit-rtl.c (offset_address): Call update_temp_slot_address.
6142
6143 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6144
6145         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
6146         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
6147         * flags.h (flag_zero_initialized_in_bss): Declare.
6148         * toplev.c (flag_zero_initialized_in_bss): New flag.
6149         (lang_independent_options): Add flag_zero_initialized_in_bss.
6150         * tree.c (initializer_zerop): New function.
6151         * tree.h (initializer_zerop): Declare.
6152         * varasm.c (assemble_variable): If we can emit bss, put zero
6153         initializers in the bss section.
6154
6155 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
6156
6157         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
6158         like more than one symbol per .weak directive.
6159
6160 2002-03-01  Richard Henderson  <rth@redhat.com>
6161
6162         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
6163         adjust argument_pointer by pretend_args_size.
6164         (ia64_va_start): Adjust va_start address by -pretend_args_size.
6165
6166 2002-03-01  Kazu Hirata  <kazu@hxi.com>
6167
6168         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
6169
6170 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
6171
6172         * toplev.c (rest_of_compilation): Delete dead jumptables before
6173         loop.
6174         * flow.c (delete_dead_jumptables): Make global.
6175         * rtl.h (delete_dead_jumptables): Declare.
6176
6177 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
6178
6179         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
6180         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
6181         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
6182
6183 2002-03-01  Kazu Hirata  <kazu@hxi.com>
6184
6185         * config/h8300/h8300-protos.h: Fix formatting.
6186         * config/h8300/h8300.c: Likewise.
6187         * config/h8300/h8300.h: Likewise.
6188
6189 2002-03-01  Kazu Hirata  <kazu@hxi.com>
6190
6191         * config/h8300/h8300.c (print_operand): Support 16-bit
6192         constant addresses.
6193         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
6194
6195 2002-02-28  Richard Henderson  <rth@redhat.com>
6196
6197         * expmed.c (store_bit_field): Prevent generation of CONCATs;
6198         pun complex values as integers; use gen_lowpart instead of
6199         gen_rtx_SUBREG.
6200         (extract_bit_field): Likewise.
6201
6202 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
6203             David Edelsohn  <edelsohn@gnu.org>
6204
6205         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
6206         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
6207         (SUPPORTS_WEAK): Likewise.
6208         * output.h (add_weak): Add tree param.
6209         * varasm.c (add_weak): Likewise.  Save decl.
6210         (struct weak_syms): Add decl field.
6211         (mark_weak_decls): New function.
6212         (init_varasm_once): ggc_add_root mark_weak_decls.
6213         (assemble_start_function): Use ASM_WEAKEN_DECL.
6214         (assemble_variable): Likewise.
6215         (assemble_alias): Likewise.
6216         (declare_weak): Pass decl to add_weak.
6217         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
6218         (remove_from_pending_weak_list): Declare and define for
6219         ASM_WEAKEN_DECL.
6220         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
6221         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
6222         * defaults.h (SUPPORTS_WEAK): Likewise.
6223         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
6224         .weak for code sym.  Do emit .size for descriptor sym.
6225         (ASM_DECLARE_FUNCTION_SIZE): Define.
6226         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
6227         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
6228         .lglobl unless TARGET_XCOFF.  Formatting fixes.
6229         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
6230         .weak for code sym.
6231         (HANDLE_PRAGMA_WEAK): Remove.
6232         (ASM_WEAKEN_LABEL): Remove.
6233         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
6234
6235 2002-03-01  Jason Merrill  <jason@redhat.com>
6236
6237         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
6238         (TARGET_EXPR_CLEANUP): New macro.
6239
6240 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
6241
6242         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
6243         to take ptr_extend into account as third type of extension.
6244         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
6245         fields used by SUBREG_PROMOTED_UNSIGNED_P.
6246         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
6247         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
6248         * calls.c (precompute_arguments): Use new macro.
6249         (expand_call): Ditto.
6250         * combine.c (nonzero_bits): Ditto.
6251         (record_promoted_value): Ditto.
6252         * expr.c (store_expr): Ditto.
6253         (expand_expr): Ditto.
6254         * function.c (assign_parms): Ditto.
6255
6256 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
6257
6258         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
6259         override -shared and -shared-libgcc.
6260
6261 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
6262
6263         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
6264         of "ultrasparc".
6265         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
6266         to be broken.
6267
6268 2002-02-28  Richard Henderson  <rth@redhat.com>
6269
6270         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
6271         4 cycle latency from MM producers.
6272         (ia64_internal_sched_reorder): Likewise with pipeline flush.
6273
6274 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
6275
6276         * mklibgcc.in: Don't use GNU make extension.
6277
6278 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
6279
6280         * c-parse.in (STATIC): New terminal.
6281         (scspec): New non-terminal.  Update productions accordingly.
6282         (program): Remove bogus ifc / end ifc.
6283         (array_declarator): Simplify production using STATIC.
6284
6285 2002-02-28  Jim Meyering  <meyering@lucent.com>
6286
6287         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
6288         \a still means TARGET_BELL.
6289
6290 2002-02-28  Richard Henderson  <rth@redhat.com>
6291
6292         * haifa-sched.c (sched_emit_insn): New.
6293         (schedule_block): Use last_scheduled_insn to track last insn.
6294         * sched-int.h (sched_emit_insn): Prototype.
6295         * config/ia64/ia64.c (last_issued): Remove.
6296         (ia64_variable_issue): Don't set it.
6297         (nop_cycles_until): Use sched_emit_insn.
6298
6299 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
6300
6301         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
6302         extended constants.
6303
6304 2002-02-28  Kazu Hirata  <kazu@hxi.com>
6305
6306         * config/h8300/h8300.c: Fix formatting.
6307         * config/h8300/h8300.h: Likewise.
6308
6309 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6310
6311         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
6312         which may overwrite the high byte of the frame pointer.
6313
6314 2002-02-28  Bo Thorsen  <bo@suse.de>
6315
6316         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
6317         (STARTFILE_SPEC): Add 64 bit files.
6318         (ENDFILE_SPEC): Likewise.
6319
6320 2002-02-28  Jason Merrill  <jason@redhat.com>
6321
6322         * c-decl.c (finish_function): Only warn about missing return
6323         statement with -Wreturn-type.
6324
6325 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
6326
6327         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
6328
6329         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
6330         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
6331
6332 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
6333
6334         * basic-block.h (BB_REACHABLE): Renumber.
6335         (BB_DIRTY, BB_NEW): New flags.
6336         (clear_bb_flags): Declare.
6337         (update_life_info_in_dirty_blocks): Declare.
6338         * cfg.c (clear_bb_flags): New function.
6339         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
6340         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
6341         reorder_insns, emit_insn_after): Mark block as dirty.
6342         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
6343         (update_life_info_in_dirty_blocks): New function.
6344         * recog.c (apply_change_group): Dirtify block.
6345
6346         * cse.c (cse_insn): Reorder emitting of jump insn to keep
6347         cfg consistent.
6348         * gcse.c (delete_null_pointer_checks): Likewise.
6349
6350         * toplev.c (dump_file_index): Move cse2 after bp,
6351         add DFI_null
6352         (dump_file_info): Similary.
6353         (rest_of_compilation): Avoid most of CFG rebuilds;
6354         do first if converision after null pointer checks, do cse2
6355         after branch prediction; avoid full liveness rebuild after
6356         initializing subregs.
6357         * invoke.texi (-d options): Document -du, renumber.
6358
6359         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
6360         (notice_new_block): Do not set BB_UPDATE_LIFE.
6361         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
6362          merge_blocks_move_successor_nojumps, merge_blocks,
6363          try_crossjump_to_edge): Likewise.
6364         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
6365         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
6366         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
6367         (merge_of_block): Do not use life_data_ok.
6368         (find_if_case_1): Do not use SET_UPDATE_LIFE.
6369         (if_convert): Use BB_DIRTY mechanizm to update life.
6370         * lcm.c (optimize_mode_switching): Update
6371         update_life_info_in_dirty_blocks
6372
6373 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
6374
6375         * Makefile.in (integrate.o): Update.
6376         * c-decl.c (copy_lang_decl): Rename.
6377         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
6378         * integrate.c: Include langhooks.h.
6379         (copy_decl_for_inlining): Update to use langhook.
6380         * langhooks-def.h (lhd_do_nothing_t,
6381         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
6382         (LANG_HOOKS_INITIALIZER): Update.
6383         * langhooks.c (lhd_do_nothing_t): New.
6384         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
6385         * tree.h (copy_lang_decl): Remove.
6386 objc:
6387         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
6388
6389 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
6390
6391         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
6392         POST_DEC, and POST_MODIFY.
6393
6394 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
6395
6396         * c-typeck.c (digest_init): Remove unused parameter; all
6397         callers changed.
6398
6399 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
6400
6401         * expmed.c (expand_shift): Correctly test for low part of a
6402         subreg.
6403
6404 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
6405
6406         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
6407         insn UIDs with insn addresses.
6408
6409 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
6410
6411         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
6412         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
6413         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
6414         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
6415         gcc.c, toplev.c: Delete code implementing -traditional mode.
6416
6417         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
6418         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
6419         Document removal of -traditional mode for compilation, and
6420         remove documentation only relevant to that mode.
6421
6422         * config/nextstep.h, config/ptx4.h, config/svr4.h,
6423         config/convex/convex.h, config/d30v/d30v.h,
6424         config/i386/dgux.h, config/i386/osf1elf.h,
6425         config/i386/osfelf.h, config/i386/osfrose.h,
6426         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
6427         config/m68k/hp310.h, config/m88k/dgux.h,
6428         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
6429         config/m88k/m88k.h, config/m88k/openbsd.h,
6430         config/mips/abi64.h, config/mips/osfrose.h,
6431         config/mips/svr4-5.h, config/mips/svr4-t.h,
6432         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
6433         config/stormy16/stormy16.h: Remove all references to
6434         -traditional from target specs.  Delete all mention of the
6435         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
6436         delete a couple of commented-out definitions of
6437         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
6438         to -traditional.
6439
6440         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
6441         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
6442
6443 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
6444
6445         * mklibgcc.in: Don't use \n in a line subject to
6446         interpretation by echo.
6447
6448 2002-02-27  Graham Stott  <grahams@redhat.com>
6449
6450         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
6451         Constify NAME.
6452
6453         * loop.c (prescan_loop): Handle PARALLEL.
6454
6455         * unroll.c (loop_iterations): Return 0 if the add_val for
6456         a BIV is REG.
6457
6458         * final.c (output_operand_lossage): Constify PFX_STR.
6459
6460         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
6461
6462 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
6463
6464         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
6465         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
6466
6467 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
6468
6469         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
6470
6471 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6472
6473         * cpplex.c (_cpp_lex_token): Handle directives in macro
6474         arguments.
6475         * cpplib.c (_cpp_handle_directive): Save and restore state
6476         if parsing macro args when entering a directive.
6477         * cppmacro.c (collect_args): No need to handle directives
6478         in macro arguments.
6479         (enter_macro_context, replace_args): Use the original macro
6480         definition in case it was redefined whilst collecting arguments.
6481 doc:
6482         * cpp.texi: Update.
6483
6484 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
6485
6486         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
6487         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
6488         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
6489         method on AIX.
6490         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
6491         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
6492         (load_toc_v4_PIC_2): Same.
6493
6494 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
6495
6496         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
6497
6498 2002-02-26  Richard Henderson  <rth@redhat.com>
6499
6500         * config/alpha/alpha.md (ashldi_se): Re-enable.
6501
6502 2002-02-26  Richard Henderson  <rth@redhat.com>
6503
6504         * config/alpha/alpha.c (alpha_encode_section_info): Examine
6505         MODULE_LOCAL_P; improve commentary.
6506
6507 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
6508
6509         * doc/cpp.texi: Clarify documentation of relationship between
6510         #line and #include.
6511
6512 2002-02-26  Kazu Hirata  <kazu@hxi.com>
6513
6514         * config/h8300/h8300-protos.h: Update the prototype for
6515         compute_logical_op_length.  Add the prototype for
6516         compute_logical_op_cc.
6517         * config/h8300/h8300.c (compute_logical_op_length): Figure out
6518         code from operands.
6519         (compute_logical_op_cc): New.
6520         * config/h8300/h8300.md: Combine all the logical op patterns
6521         in HImode and SImode.  Use compute_logical_op_cc.
6522
6523 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
6524
6525         * config/i386/i386.c (print_operand): Don't append ATT-style
6526         length suffixs to x87 opcodes when in Intel mode.
6527
6528 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
6529
6530         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
6531         (init_emit_once): Update calls.
6532         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
6533         (init_syntax_once): Prototype.
6534
6535 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6536
6537         * pa-linux.h (LIB_SPEC): Update definition.
6538         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6539
6540 2002-02-26  Richard Henderson  <rth@redhat.com>
6541
6542         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
6543         if we emitted a stop bit.
6544
6545 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
6546
6547         * configure.in (libgcc_visibility): Substitute.
6548         * configure: Rebuilt.
6549         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
6550         defined symbols .hidden.
6551
6552 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
6553
6554         * attribs.c (c_common_attribute_table): Add visibility.
6555         (handle_visibility_attribute): New function.
6556         * varasm.c (assemble_visibility): New function.
6557         * output.h (assemble_visibility): Add prototype.
6558         * tree.h (MODULE_LOCAL_P): Define.
6559         * crtstuff.c (__dso_handle): Use visibility attribute.
6560         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
6561         for MODULE_LOCAL_P symbols too.
6562         * config/ia64/ia64.c (ia64_encode_section_info): Handle
6563         MODULE_LOCAL_P symbols the same way as local symbols.
6564         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
6565         into .sdata/.sbss by the user.
6566         * doc/extend.texi (Function Attributes): Document visibility
6567         attribute.
6568
6569 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
6570
6571         PR debug/5770
6572         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
6573         STRING_CST initializer spanning the whole variable without
6574         embedded zeros.
6575         If expand_expr returned MEM, don't use it.
6576
6577 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
6578
6579         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
6580         generate a die for the lexical block.
6581
6582 2002-02-26  Kazu Hirata  <kazu@hxi.com>
6583
6584         * config/h8300/h8300-protos.h: Add a prototype for
6585         compute_logical_op_length.
6586         * config/h8300/h8300.c (compute_logical_op_length): New.
6587         * config/h8300/h8300.md (anonymous logical patterns): Use
6588         compute_logical_op_length for length.
6589
6590 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
6591
6592         * dwarf2out.c (modified_type_die): Do not call type_main_variant
6593         for vectors.
6594         (gen_type_die): Same.
6595
6596         * attribs.c (handle_vector_size_attribute): Set debug information.
6597
6598 2002-02-26  Daniel Egger  <degger@fhm.edu>
6599
6600         * config/rs6000/rs6000.md: Swap define_insn attributes to
6601         fix incorrect generation of merge high instructions instead
6602         of merge low.
6603
6604 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
6605
6606         * c-typeck.c (really_start_incremental_init): Use
6607         bitsize_zero_node for vectors.
6608
6609 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
6610
6611         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
6612         ("*set_vrsave_internal"): Same.
6613
6614 2002-02-25  Richard Henderson  <rth@redhat.com>
6615
6616         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
6617         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
6618
6619 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
6620
6621         PR target/5755
6622         * config/i386/i386.c (ix86_return_pops_args): Only pop
6623         fake structure return argument if it was passed on the stack.
6624
6625 2002-02-25  Jason Merrill  <jason@redhat.com>
6626
6627         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
6628         RESULT_DECL.
6629
6630 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
6631
6632         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
6633         link with shared_name only.
6634         * doc/invoke.texi (Link Options): Document new behavior.
6635
6636 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
6637
6638         * c-typeck.c (push_init_level): Handle vectors.
6639
6640 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
6641
6642         * config/sparc/sparc.c (const64_high_operand): Zero-extend
6643         operands of SPARC_SETHI_P.
6644         (input_operand): Likewise.
6645         (sparc_emit_set_const32): Likewise.
6646         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
6647         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
6648         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
6649         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
6650         (movdi_insn_sp64_vis): Likewise.
6651         (movdi split, movdf split): Use SETHI32.
6652         * doc/md.texi: Document SPARC constraints L, M and N.
6653
6654 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
6655
6656         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
6657         ("*set_vrsave_internal"): use mfspr for Darwin.
6658
6659         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
6660         gen_get_vrsave_internal.
6661
6662 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6663
6664         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
6665
6666 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6667
6668         * cpplex.c (cpp_interpret_charconst): Get signedness or
6669         otherwise of wide character constants correct.
6670         * cppexp.c (lex): Get signedness of wide charconsts correct.
6671
6672 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6673
6674         * optabs.c (widen_operand): Only call convert_modes for
6675         promoted SUBREG if signedness matches.
6676         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
6677
6678 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
6679
6680         * cpplib.c (glue_header_name): Use local buffer to build up
6681         header name.
6682
6683 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
6684
6685         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
6686
6687 2002-02-23  Kazu Hirata  <kazu@hxi.com>
6688
6689         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
6690         H8/300[HS] separately.
6691         * config/h8300/h8300.md: Remove the early clobber constraint
6692         from bit field patterns.
6693
6694 2002-02-23  Kazu Hirata  <kazu@hxi.com>
6695
6696         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
6697         register_operand.
6698         (mulhisi3): Likewise.
6699         (umulqisi3): Likewise.
6700         (umulhisi3): Likewise.
6701
6702 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
6703
6704         * cppinit.c (output_deps): Correct test for stdout output.
6705         (init_dependency_output): Cure warning.
6706
6707 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6708
6709         * expr.c (store_expr): When converting expression to promoted
6710         equivalent type, allow using SUBREG_REG of TARGET as the target
6711         of the expansion of EXP.
6712         * loop.c (basic_induction_var, case SUBREG): Always look inside.
6713         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
6714         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
6715         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
6716         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
6717
6718 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
6719
6720         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
6721         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
6722         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
6723
6724 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
6725
6726         PR optimization/5747
6727         * loop.c (scan_loop): Update reg info if move_movables created new
6728         pseudos.
6729
6730 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
6731
6732         * gcc.c (init_gcc_spec): Revert last change.
6733
6734 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
6735
6736         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
6737         gpc_reg_operand constraint.
6738
6739 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
6740
6741         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
6742         Simplify comparison of `low'.
6743         (add_operand): Fix formatting.
6744         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
6745         (mask_operand): Disallow mask to wrap in 64-bit mode.
6746         (rs6000_stack_info): Remove redundant test setting push_p.
6747         (output_toc): Fix formatting.
6748         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
6749         cc_reg_not_cr0_operand constraint.
6750         (booldi3, boolcdi3 splitters): Same.
6751
6752 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
6753
6754         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
6755
6756 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
6757
6758         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
6759         gcc invoked with -shared-libgcc.
6760
6761 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
6762
6763         PR c++/5748
6764         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
6765         decl if any of elements was TREE_USED.
6766
6767 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
6768
6769         * config/sparc/sol2.h: Don't include sys/mman.h.
6770         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
6771         (arith_4096_operand): Don't throw high bits away.
6772         (const64_operand): Take sign extension of CONST_INTs into account.
6773         (const64_high_operand, sparc_emit_set_const32): Likewise.
6774         (GEN_HIGHINT64): Likewise.
6775         (sparc_emit_set_const64_quick1): Likewise.
6776         (const64_is_2insns): Likewise.
6777         (print_operand): Use trunc_int_for_mode for sign extension.
6778         * config/sparc/sparc.h (SMALL_INT32): Likewise.
6779         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
6780         chars.  Assume CONST_INT is already properly sign-extended.
6781         (movdi split): Sign-extend each SImode part.
6782         (andsi3 split): Don't mask high bits off, so that result
6783         remains properly sign-extend.
6784         (iorsi3 split): Likewise.
6785         (xorsi3 split): Likewise.
6786
6787 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
6788
6789         * fold-const.c (fold): Fix typo in comments.
6790
6791 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
6792
6793         * Makefile.in (langhooks.o): Update dependencies.
6794
6795 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
6796
6797         * langhooks.c: Include flags.h.
6798
6799 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
6800
6801         * testsuite/gcc.dg/attr-alwaysinline.c: New.
6802
6803         * c-common.c (c_common_post_options): Set inline trees by
6804         default.
6805
6806         * doc/extend.texi (Function Attributes): Document always_inline
6807         attribute.
6808         Update documentation about inlining when not optimizing.
6809
6810         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
6811
6812         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
6813         unless DECL_ALWAYS_INLINE.
6814
6815         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
6816         unless DECL_ALWAYS_INLINE.
6817         (c_disregard_inline_limits): Disregard if always_inline set.
6818
6819         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
6820         Disregard if always_inline set.
6821         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
6822         unless DECL_ALWAYS_INLINE.
6823
6824         * attribs.c (handle_always_inline_attribute): New.
6825         (c_common_attribute_table): Add always_inline.
6826
6827         * config/rs6000/altivec.h: Add prototypes for builtins
6828         requiring the always_inline attribute.
6829
6830 2002-02-21  Eric Christopher  <echristo@redhat.com>
6831
6832         * expmed.c (store_bit_field): Try to simplify the subreg
6833         before generating a new one when when the mode size of
6834         value is less than maxmode.
6835
6836 2002-02-21  Richard Henderson  <rth@redhat.com>
6837
6838         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
6839         than gen_rtx_PLUS to form the sum.
6840         * explow.c (force_reg): Rearrange to not allocate new pseudo
6841         when force_operand returns a register.
6842         * expr.c (expand_assignment): Allow offset_rtx expansion to
6843         return a sum.  Do not force addresses into registers.
6844         (expand_expr): Likewise.
6845         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
6846         to canonicalize arithmetic that didn't simpify.
6847         (simplify_plus_minus): New argument force; update
6848         all callers.  Don't split CONST unless we can do something with it,
6849         and wouldn't lose the constness of the operands.
6850
6851         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
6852         that we generated earlier.
6853
6854 2002-02-21  Tom Tromey  <tromey@redhat.com>
6855
6856         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6857         (output_line_info): Use constant `1', with a long explanatory
6858         comment.
6859         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
6860
6861 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
6862
6863         * jump.c (redirect_jump): If old label has no UID, don't try to
6864         delete it.
6865
6866 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
6867
6868         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
6869         If input is constant, do shifts at compile time.
6870
6871 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
6872
6873         * doc/extend.texi: Fix some more overfull hboxes.
6874
6875 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
6876
6877         PR optimization/4994
6878         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
6879         register moves.
6880
6881 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
6882
6883         PR c++/4574
6884         * expr.h (expand_and): Add mode argument.
6885         * expmed.c (expand_and): Add mode argument.
6886         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
6887         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
6888         * except.c (expand_builtin_extract_return_addr): Likewise.
6889         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
6890         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
6891         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
6892         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
6893         * config/c4x/c4x.md: Use GEN_INT (x) instead of
6894         gen_rtx (CONST_INT, VOIDmode, x).
6895
6896 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
6897
6898         PR c/4697:
6899         * stmt.c (warn_if_unused_value): Move side effects test once more.
6900
6901 2002-02-20  Torbjorn Granlund  <tege@swox.com>
6902
6903         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
6904         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
6905
6906 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
6907
6908         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
6909         SUBREG or ZERO_EXTEND.
6910
6911 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
6912
6913         * sh.h (current_function_anonymous_args): Remove.
6914         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
6915         of current_function_varargs and current_function_stdarg is set.
6916         * sh.c (sh_expand_prologue): Check current_function_varargs /
6917         current_function_stdarg / TARGET_SH5 instead of
6918         current_function_anonymous_args.
6919
6920         * sh64.h (TARGET_VERSION): Define.
6921
6922 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
6923
6924         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
6925         VRSAVE_REGNO on TARGET_ALTIVEC.
6926
6927 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
6928
6929         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
6930         bits of SImode const_int.
6931         (includes_rshift_p): Likewise.
6932         (print_operand): Call mask_operand and mask64_operand with correct
6933         mode.
6934         (rs6000_output_function_epilogue): Pad traceback table to word.
6935         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
6936         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
6937         mask64_operand with correct mode.
6938         (FUNCTION_ARG_REGNO_P): Correct parentheses.
6939
6940 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
6941
6942         PR debug/4461
6943         * varasm.c (get_pool_constant_mark): New.
6944         * rtl.h (get_pool_constant_mark): Add prototype.
6945         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
6946         be represented if it has not been output.
6947
6948 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
6949
6950         * combine.c (do_SUBST): Sanity check substitutions of
6951         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
6952         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
6953         CONST_INT into its operand.
6954         (known_cond): Likewise, for ZERO_EXTEND.
6955         * simplify-rtx.c (simplify_unary_operation): Fix condition to
6956         allow for simplification of wide modes.  Reject CONST_INTs in
6957         ZERO_EXTEND when their actual mode is not given.
6958
6959 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
6960
6961         * c-decl.c (pushdecl): If no global declaration is found for an
6962         extern declaration in block scope, try a limbo one.
6963
6964 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
6965
6966         PR c++/4401
6967         * c-common.c (pointer_int_sum): Moved from...
6968         * c-typeck.c (pointer_int_sum): ...here.
6969         * c-common.h (pointer_int_sum): Add prototype.
6970
6971 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
6972
6973         PR c++/5713
6974         * c-decl.c (duplicate_decls): Return 0 if issued error about
6975         redeclaration.
6976
6977 2002-02-20  Roger Sayle  <roger@eyesopen.com>
6978             Jakub Jelinek  <jakub@redhat.com>
6979
6980         PR c/4389
6981         * tree.c (host_integerp): Ensure that the constant integer is
6982         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
6983         when pos is zero or non-zero respectively.  Clarify comment.
6984         * c-format.c (check_format_info_recurse): Fix host_integerp
6985         usage; the pos argument should be zero when assigning to a
6986         signed HOST_WIDE_INT.
6987
6988 2002-02-20  Richard Henderson  <rth@redhat.com>
6989
6990         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
6991         of the operand, rather than assuming TImode.
6992         (ix86_expand_binop_builtin): Cope with commutative patterns
6993         using nonimmediate_operand for both operands.
6994         (ix86_expand_timode_binop_builtin): Likewise.
6995         (ix86_expand_store_builtin): Validate operand 1.
6996         (ix86_expand_unop1_builtin): Likewise.
6997
6998 2002-02-20  Philip Blundell  <philb@gnu.org>
6999
7000         PR 5705
7001         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
7002
7003 2002-02-20  Richard Henderson  <rth@redhat.com>
7004
7005         PR c/5615
7006         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
7007
7008 2002-02-20  Tom Tromey  <tromey@redhat.com>
7009
7010         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7011         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7012         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7013         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
7014         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
7015         unconditionally.
7016
7017 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
7018
7019         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
7020           for (const_int 0) in X not just INTVAL.
7021
7022 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
7023
7024         * doc/extend.texi: Avoid or reduce overfull hboxes.
7025
7026 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
7027
7028         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
7029         operations if the field does not start at a mode boundary.
7030
7031 2001-02-20      Joel Sherrill <joel@OARcorp.com>
7032
7033         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
7034         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
7035         Also done for -Acpu and -Amachine.
7036
7037 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
7038
7039         * cppinit.c (init_dependency_output): Take deps output file
7040         from -o if none given with -MF.  Suppress normal output.
7041         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
7042         * doc/cpp.texi, doc/invoke.texi: Update.
7043
7044 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
7045
7046         * toplev.c (output_quoted_string): Write unprintable
7047         characters with octal escapes.
7048
7049 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
7050
7051         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
7052         really_call_used[VRSAVE_REGNO] if not Altivec.
7053
7054 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
7055
7056         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
7057         MODE_MASK.
7058         (constant_pool_expr_1): Fix formatting.
7059         (rs6000_legitimize_reload_address): Likewise.
7060
7061 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7062
7063         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
7064         now that we have one.
7065
7066 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
7067
7068         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
7069         end of first block of bitfields (which was only seven bits);
7070         rename dummy to unused_1; remove comment which is no longer true.
7071
7072 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
7073
7074         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
7075
7076 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
7077
7078         PR 5399
7079         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
7080         if generating PIC.
7081
7082         PR 5054
7083         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
7084         arm_is_longcall_p rather than inspecting call-type cookie
7085         directly.
7086         (call_value_insn) [TARGET_THUMB]: Likewise.
7087
7088 2002-02-19  Graham Stott  <grahams@redhat.com>
7089
7090         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
7091
7092 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
7093
7094         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
7095         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
7096         (FP_SAVE_INLINE): Delete.
7097
7098         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
7099         * config/rs6000/eabi.asm: Remove ABI save restore routines.
7100         * config/rs6000/t-ppccomm: Build crtsavres.o.
7101         * config/rs6000/crtsavres.asm: New file.
7102
7103 2002-02-19  Philip Blundell  <philb@gnu.org>
7104
7105         * config/arm/arm.c (use_return_insn): Don't reject interrupt
7106         functions.
7107         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
7108         (output_return_instruction): Allow interrupt functions to return with
7109         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
7110         (arm_expand_prologue): Subtract 4 before stacking LR in an
7111         interrupt function.
7112
7113 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
7114
7115         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
7116         decl, not just FUNCTION_DECL.
7117         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
7118         (arm_assemble_integer): Likewise.
7119         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
7120         marked local.
7121
7122 2002-02-19  matthew green  <mrg@eterna.com.au>
7123
7124         * config.gcc (sparc-*-netbsdelf*): Enable target.
7125         (sparc64-*-netbsd*): New target.
7126         * config/sparc/netbsd-elf.h: New file.
7127         * config/sparc/t-netbsd64: New file.
7128
7129 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
7130
7131         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
7132
7133 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
7134
7135         * doc/invoke.texi: explicitly list the style guidelines that
7136         -Weffc++ checks for.
7137
7138 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
7139
7140         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
7141
7142 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
7143
7144         PR other/5718
7145         * gcc.c (cpp_unique_options): Treat -o as indicating object file
7146         only if not -E.  If -E, pass -o through to the preprocessor.
7147
7148 2002-02-19  Kazu Hirata  <kazu@hxi.com>
7149
7150         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
7151         register number with an appropriate macro.
7152
7153 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
7154
7155         * doc/rtl.texi (Constants): Close @code tag.
7156
7157 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
7158
7159         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
7160         ("mmx_uavgv4hi3"): Same.
7161         ("pmulhrwv4hi3"): Same.
7162
7163         * tree-inline.c (walk_tree): Handle vectors.
7164
7165         * c-common.c (constant_expression_warning): Handle vectors.
7166         (overflow_warning): Same.
7167
7168         * sched-deps.c (sched_analyze_2): Handle vectors.
7169
7170         * rtlanal.c (rtx_unstable_p): Handle vectors.
7171         (rtx_varies_p): Same.
7172         (count_occurrences): Same.
7173         (regs_set_between_p): Same.
7174         (modified_between_p): Same.
7175         (modified_in_p): Same.
7176         (volatile_insn_p): Same.
7177         (volatile_refs_p): Same.
7178         (side_effects_p): Same.
7179         (may_trap_p): Same.
7180         (inequality_comparisons_p): Same.
7181         (replace_regs): Same.
7182         (computed_jump_p_1): Same.
7183
7184         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
7185         argument.
7186         (inner_mode_array): New.
7187         (copy_rtx): Handle vectors.
7188         (copy_most_rtx): Same.
7189         (rtx_equal_p): Same.
7190         (get_mode_alignment): Adjust for vectors.
7191
7192         * resource.c (mark_referenced_resources): Handle vectors.
7193         (mark_set_resources): Same.
7194
7195         * reload1.c (eliminate_regs): Handle vectors.
7196         (elimination_effects): Same.
7197         (scan_paradoxical_subregs): Same.
7198
7199         * reload.c (subst_reg_equivs): Handle vectors.
7200
7201         * regrename.c (scan_rtx): Handle vectors.
7202
7203         * regclass.c (reg_scan_mark_refs): Handle vectors.
7204
7205         * recog.c (find_single_use_1): Handle vectors.
7206
7207         * local-alloc.c (equiv_init_varies_p): Handle vectors.
7208         (contains_replace_regs): Same.
7209         (memref_referenced_p): Same.
7210
7211         * integrate.c (copy_rtx_and_substitute): Handle vectors.
7212         (subst_constants): Same.
7213
7214         * genattrtab.c (attr_copy_rtx): Handle vectors.
7215         (encode_units_mask): Same.
7216         (clear_struct_flag): Same.
7217         (count_sub_rtxs): Same.
7218
7219         * gcse.c (want_to_gcse_p): Handle vectors.
7220         (oprs_unchanged_p): Same.
7221         (hash_expr_1): Same.
7222         (oprs_not_set_p): Same.
7223         (expr_killed_p): Same.
7224         (compute_transp): Same.
7225         (store_ops_ok): Same.
7226
7227         * function.c (purge_addressof_1): Do not allow paradoxical subregs
7228         of vectors.
7229         (fixup_var_refs_1): Same.
7230         (instantiate_virtual_regs_1): Same.
7231
7232         * fold-const.c (operand_equal_p): Handle vectors.
7233         (fold): Same.
7234         (rtl_expr_nonnegative_p): Same.
7235
7236         * flow.c (mark_used_regs): Handle vectors.
7237
7238         * df.c (df_uses_record): Handle vectors.
7239
7240         * cselib.c (cselib_subst_to_values): Handle vectors.
7241         (cselib_mem_conflict_p): Same.
7242         (hash_rtx): Same.
7243
7244         * cse.c (canon_reg): Handle vectors.
7245         (fold_rt): Same.
7246         (cse_process_notes): Same.
7247         (count_reg_usage): Same.
7248         (canon_hash): Same.
7249
7250         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
7251
7252         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
7253
7254         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
7255         (gen_rtx): Handle CONST_VECTOR.
7256         (gen_const_vector_0): New.
7257         (copy_rtx_if_shared): CONST_VECTORs can be shared.
7258         (reset_used_flags): Same.
7259         (copy_insn_1): Same.
7260         (initializer_constant_valid_p): Handle VECTOR_CST.
7261
7262         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
7263
7264         * doc/rtl.texi (Constants): Document const_vector.
7265         (CONST0_RTX): Update for vectors.
7266         (RTL sharing): Same.
7267
7268         * print-tree.c (print_node): Add case for VECTOR_CST.
7269
7270         * tree.h (TREE_VECTOR_CST_ELTS): New.
7271         (struct tree_vector): New.
7272         (union tree_node): Add vector node.
7273         (build_vector): Add prototype.
7274
7275         * tree.def (VECTOR_CST): New.
7276
7277         * tree.c (build_vector): New.
7278
7279         * expmed.c (make_tree): Handle CONST_VECTOR.
7280
7281         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
7282         (CONST_VECTOR_ELT): New.
7283         (CONST_VECTOR_NUNITS): New.
7284
7285         * machmode.h (GET_MODE_INNER): New.
7286         (DEF_MACHMODE): Accept 8th arg.
7287
7288         * machmode.def: Add 8th argument for vector inner mode.
7289         Add inner vector modes for vectors.
7290
7291         * rtl.def (VEC_CONST): Remove.
7292         (CONST_VECTOR): New.
7293
7294         * expr.c (clear_storage): Allow vectors.
7295         (is_zeros_p): Handle VECTOR_CST.
7296
7297         * varasm.c (output_constant_pool): Handle vectors.
7298         (rtx_const): Add veclo and vechi fields.
7299         (kind): Add RTX_VECTOR.
7300         (decode_rtx_const): Add case for vector.
7301
7302         * config/rs6000/rs6000-protos.h: Add zero_constant.
7303
7304         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
7305         constants.  Force easy vector constants into memory.
7306         (easy_vector_constant): New.
7307         (emit_easy_vector_constant): New.
7308         (rs6000_legitimize_reload_address): Do not generate bad reloads on
7309         darwin.
7310
7311         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
7312         instruction does.
7313         ("altivec_lvxl"): Same.
7314         (altivec_lvebx): Same.
7315         (altivec_lvehx): Same.
7316         (altivec_lvewx): Same.
7317         ("*movv4si_const0"): New.
7318         ("*movv4sf_const0"): New.
7319         ("*movv8hi_const0"): New.
7320         ("*movv16qi_const0"): New.
7321
7322 2002-02-18  Kazu Hirata  <kazu@hxi.com>
7323
7324         * config/h8300/h8300.c (notice_update_cc): Use
7325         cc_status.value2.
7326
7327 2002-02-18  Kazu Hirata  <kazu@hxi.com>
7328
7329         * config/h8300/h8300.md (divmod patterns): Change the
7330         constraints for operands[1] to register_operand.
7331
7332 2002-02-18  Kazu Hirata  <kazu@hxi.com>
7333
7334         * config/h8300/h8300-protos.h: Remove the prototype for
7335         p_operand.
7336         * config/h8300/h8300.c (p_operand): Remove.
7337         * config/h8300/h8300.md: Replace p_operand with
7338         const_int_operand.
7339
7340 2002-02-18 Philip Blundell <pb@nexus.co.uk>
7341
7342         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
7343         comment.
7344         (output_return_instruction): Allow use of LDR to unstack
7345         return addresss even for interrupt handlers or when
7346         interworking.  If compiling for ARMv5, use interworking-safe
7347         return instructions by default.  Remove duplicated code and
7348         lengthy "strcat" sequences.
7349
7350 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7351
7352         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
7353         (LINK_EH_SPEC): Define.
7354         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
7355
7356 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
7357
7358         * config/s390/s390.c (s390_emit_prologue): Do not set the
7359         frame_related flag for call-clobbered registers.
7360
7361 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
7362
7363         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
7364         (construct_container): Fix handling of SSE operands.
7365         (ix86_expand_builtin): Fix handling of 64bit pointers.
7366         (mmx_maskmovq_rex): New pattern.
7367
7368 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
7369
7370         * regrename.c (kill_set_value): Handle subregs properly.
7371
7372 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
7373
7374         * objc/objc-act.c (handle_impent): Remove leading '*'
7375         from objc_class_name.
7376
7377 2002-02-17  Richard Henderson  <rth@redhat.com>
7378
7379         * config/alpha/alpha.c (some_small_symbolic_operand,
7380         some_small_symbolic_operand_1, split_small_symbolic_operand,
7381         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
7382         Handle small SYMBOL_REFs anywhere, not just inside memories.
7383         * config/alpha/alpha-protos.h: Update.
7384         * config/alpha/alpha.h (PREDICATE_CODES): Update.
7385         * config/alpha/alpha.md (small symbolic operand splitter): Update.
7386
7387 2002-02-17  Roland McGrath  <roland@frob.com>
7388
7389         * config.gcc (powerpc-*-gnu-gnualtivec*,
7390         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
7391         * config/rs6000/gnu.h: New file.
7392         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
7393         Grok "gnu" in rs6000_abi_name.
7394         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
7395         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
7396         Grok -mcall-gnu analogous to -mcall-linux et al.
7397         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
7398         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
7399         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
7400
7401 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
7402
7403         PR c/3444:
7404         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
7405         shortening.
7406
7407 2002-02-17  Philipp Thomas  <pthomas@suse.de>
7408
7409         * config/cris/cris.h: Undefine STARTFILE_SPEC and
7410         ENDFILE_SPEC before (re)defining them.
7411
7412 2002-02-17  Kazu Hirata  <kazu@hxi.com>
7413
7414         * config/h8300/h8300.c: Fix formatting.
7415         * config/h8300/h8300.h: Likewise.
7416
7417 2002-02-17  Philipp Thomas  <pthomas@suse.de>
7418
7419         * doc/tm.texi: Explain why empty strings should not be
7420         marked for translation.
7421
7422 2002-02-17  Philipp Thomas  <pthomas@suse.de>
7423
7424         * final.c (output_operand_lossage): Changed to accept
7425         printf style arguments. Change calls where necessary.
7426         * output.h (output_operand_lossage): Change declaration
7427         accordingly. Update copyright.
7428         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
7429         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
7430         Update copyright date where necessary.
7431
7432         * config/i386/i386.c (print_operand): Likewise. Remove use of
7433         sprintf.
7434
7435         * config/cris/cris.c (cris_operand_lossage): Likewise.
7436         Rename parameter so that exgettext recognizes it as
7437         translatable message.
7438         (LOSE_AND_RETURN): Rename parameter to msgid.
7439
7440 2002-02-17  Kazu Hirata  <kazu@hxi.com>
7441
7442         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
7443         hard coded register number with an appropriate macro.
7444         (HARD_REGNO_MODE_OK): Likewise.
7445         (ARG_POINTER_REGNUM): Likewise.
7446         (STATIC_CHAIN_REGNUM): Likewise.
7447         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
7448         * config/h8300/h8300.md (define_constants): Define more
7449         register numbers.
7450
7451 2002-02-17  Philipp Thomas  <pthomas@suse.de>
7452
7453         * config/i386/i386.h: Don't mark empty strings for translation.
7454
7455 2002-02-16  H.J. Lu <hjl@gnu.org>
7456
7457         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
7458
7459 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
7460
7461         * cppinit.c (merge_include_chains): Check for brack being
7462         NULL before attempting to merge it with qtail.
7463
7464 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
7465
7466         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
7467         DBX_DEBUG.
7468
7469 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7470
7471         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
7472
7473 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7474
7475         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
7476         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
7477         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
7478
7479 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7480
7481         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
7482         now only if !TARGET_FIX.
7483         (*movsi_nt_vms_fix): New pattern.
7484
7485 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
7486
7487         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
7488         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
7489         (alpha_sa_mask, alpha_sa_size): Reflect above change.
7490         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
7491         (alpha_start_function, alpha_expand_epilogue): Likewise.
7492         (unicosmk_gen_dsib): Likewise.
7493
7494 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7495
7496         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
7497
7498 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
7499
7500         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
7501         check_and_change_labels, s390_final_chunkify): Delete.
7502         (s390_split_branches, s390_chunkify_pool): New functions.
7503         (s390_function_prologue): Call them.
7504
7505         * config/s390/s390.h (S390_REL_MAX): Delete.
7506         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
7507
7508         * config/s390/s390.md (cjump, icjump, jump): Fix length
7509         attribute calculation.
7510
7511
7512 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
7513
7514         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
7515         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
7516
7517 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7518
7519         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
7520         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
7521         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
7522
7523 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
7524
7525         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
7526
7527 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
7528
7529         * reload.c (find_dummy_reload): Check that an output register
7530         is valid for its mode.
7531
7532 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
7533
7534         * combine.c (known_cond): After replacing the REG of a SUBREG, try
7535         to simplify it.
7536
7537         * function.c (assign_parms): Demote promoted argument passed by
7538         transparent reference.
7539
7540 2001-02-14      Joel Sherrill <joel@OARcorp.com>
7541
7542         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
7543         -Acpu() and -Amachine() to eliminate warnings.
7544
7545 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
7546
7547         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
7548
7549 2002-02-14  Kazu Hirata  <kazu@hxi.com>
7550
7551         * config/h8300/h8300-protos.h: Update the prototype for
7552         const_costs.
7553         * config/h8300/h8300.c (const_costs): Treat SET as a little
7554         more expensive operation.
7555         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
7556         reference to const_costs.
7557
7558 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
7559
7560         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
7561
7562 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
7563
7564         PR c/5503:
7565         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
7566         use arguments from newtype.
7567
7568 2002-02-13  Eric Christopher  <echristo@redhat.com>
7569
7570         * config/mips/mips.c (override_options): Add check for march/mipsX
7571         on the same command line. Fix error message in cpu processing.
7572         Remove architecture and ISA checks.
7573
7574 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
7575
7576         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
7577
7578         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
7579
7580 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
7581
7582         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
7583         alternatives.
7584         ("*movv8hi_internal1"): Same.
7585         ("*movv16qi_internal1"): Same.
7586         ("*movv4sf_internal1"): Same.
7587
7588         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
7589         not push_reload for altivec modes.
7590
7591 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
7592
7593         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
7594         all RTEMS targets including removal of #includes from config/*/rtems*.h
7595         file and adding them to tm_file setting. Added xm_defines=POSIX to
7596         many targets.
7597         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
7598         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
7599         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
7600         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
7601         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
7602         config/m68k/rtemself.h: Ditto.
7603         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
7604         config/mips/rtems64.h: Ditto.
7605         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
7606         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
7607         Ditto.
7608         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
7609         config/sparc/rtemself.h: Ditto.
7610         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
7611         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
7612         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
7613         more like arm-elf.
7614         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
7615         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
7616         target made more similar to i386-elf.
7617         * config/i386/t-rtems-i386: Added soft float support and multilibs.
7618         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
7619         be similar to config/m68k/t-m68kelf.
7620         * gthr-rtems.h: Encapsulate with extern "C" for C++.
7621
7622 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
7623
7624         * regmove.c (kill_value): Handle subregs.
7625
7626 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
7627
7628         * i386.md (mul patterns): Allow memory operand to be first;
7629         add expanders where needed; fix constraints.
7630         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
7631         Allow memory operand to be the first.
7632
7633         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
7634         operands.
7635
7636 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
7637
7638         PR c/5681:
7639         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
7640         GET_MODE (x).
7641
7642 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
7643
7644         PR optimization/5547:
7645         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
7646         all valid IA-32 address modes involving non-scaled %ebx and
7647         GOT/GOTOFF as displacement.
7648
7649 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
7650
7651         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
7652         after emitting ltorg insns.
7653
7654         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
7655         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
7656         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
7657         *abssf2): Fix "op_type" attribute.
7658
7659 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
7660
7661         * mkconfig.sh: Avoid using a subshell redirect.
7662         ($output.T): Change to $(output)T.
7663         (ENABLE_NLS): Remove unneeded undef.
7664
7665         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
7666         * config/alpha/x-vms (libsubdir): Define.
7667
7668         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
7669         register frame procedures. Optimize retrieving context.
7670
7671         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
7672         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
7673         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
7674
7675 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7676
7677         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
7678         Make same change as for find_base_value.
7679
7680 2002-02-13  Kazu Hirata  <kazu@hxi.com>
7681
7682         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
7683         of QImode and SImode.
7684
7685 2002-02-13  Kazu Hirata  <kazu@hxi.com>
7686
7687         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
7688         length computation of movsi.
7689         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
7690
7691 2002-02-13  Kazu Hirata  <kazu@hxi.com>
7692
7693         * config/h8300/h8300.md (subqi3): Tighten the predicate for
7694         operands[2] to register_operand.
7695
7696 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
7697
7698         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
7699
7700 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
7701
7702         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
7703         for altivec_lvx* and altivec_stvx*.
7704         ("*movv4si_internal"): Add constraint for loading from GPRs.
7705         ("*movv8hi_internal1"): Same.
7706         ("*movv16qi_internal1"): Same.
7707         ("*movv4sf_internal1"): Same.
7708
7709         * config/rs6000/rs6000.c (altivec_register_operand): New.
7710
7711         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
7712         altivec_register_operand.
7713
7714 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
7715
7716         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
7717         handle SYMBOL_REF.
7718
7719 2002-02-13  Stan Shebs  <shebs@apple.com>
7720
7721         * c-typeck.c (digest_init): Handle vectors.
7722         (really_start_incremental_init): Same.
7723         (pop_init_level): Same.
7724         (process_init_element): Same.
7725
7726         * varasm.c (output_constant): Same.
7727
7728         * expr.c (clear_storage): Same.
7729         (store_constructor): Same.
7730
7731 2002-02-12  Eric Christopher  <echristo@redhat.com>
7732
7733         * explow.c (hard_function_value): Add comment explaining
7734         signed/unsigned comparison.
7735
7736 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
7737
7738         * jump.c (never_reached_warning): Add finish argument.
7739         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
7740         real insn after end.
7741         * rtl.h (never_reached_warning): Adjust prototype.
7742         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
7743         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
7744         never_reached_warning.
7745
7746 2002-02-12  Graham Stott  <grahams@redhat.com>
7747
7748         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
7749
7750 2002-02-12  Kazu Hirata  <kazu@hxi.com>
7751
7752         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
7753         logical shifts on H8/300.
7754         (shift_alg_si): Improve several shifts on H8/300.
7755         (get_shift_alg): Likewise.
7756
7757 2002-02-12  Graham Stott  <grahams@redhat.com>
7758
7759         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
7760
7761 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7762
7763         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
7764         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
7765
7766 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
7767
7768         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
7769         non-CONST_INT through default_assemble_integer.
7770         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
7771         <case 8>: Abort for CONST_DOUBLE.
7772
7773 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7774
7775         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
7776         is specified.
7777         * config/pa/pa-linux.h (LIB_SPEC): Delete.
7778         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
7779
7780 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
7781
7782         * config/stormy16/stormy16.md (zero_extendqihi2): New.
7783
7784 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
7785
7786         * regrename.c (regrename_optimize): Don't accept a
7787         part-clobbered register if the replaced register is not part
7788         clobbered.
7789
7790         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
7791         take padding into account when computing the argument value.
7792
7793         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
7794
7795         * combine.c (try_combine): Apply substitutions in
7796         CALL_INSN_FUNCTION_USAGE too.
7797
7798 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
7799
7800         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
7801         __builtin_altivec_abs*.
7802         (bdesc_abs): New.
7803
7804         * config/rs6000/rs6000.h (rs6000_builtins): Add
7805         ALTIVEC_BUILTIN_ABS*.
7806
7807         * config/rs6000/altivec.h: Use const char for builtins expecting
7808         literals.
7809         (vec_abs): New versions for C and C++.
7810         (vec_abss): Same.
7811
7812 2002-02-10  Kazu Hirata  <kazu@hxi.com>
7813
7814         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
7815         using Pmode.
7816
7817 2002-02-10  Kazu Hirata  <kazu@hxi.com>
7818
7819         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
7820         constant definition from h8300.md.
7821         (FRAME_POINTER_REGNUM): Likewise.
7822         * config/h8300/h8300.md (define_constants): Add FP_REG.
7823
7824 2002-02-10  Kazu Hirata  <kazu@hxi.com>
7825
7826         * config/h8300/h8300.c (print_operand): Remove redundant code.
7827
7828 2002-02-10  Kazu Hirata  <kazu@hxi.com>
7829
7830         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
7831         * config/h8300/h8300.c (byte_reg): Make it static.
7832
7833 2002-02-10  Richard Henderson  <rth@redhat.com>
7834
7835         PR c/5623
7836         * c-typeck.c (incomplete_type_error): Handle flexible array members.
7837
7838 2002-02-10  Richard Henderson  <rth@redhat.com>
7839
7840         PR c++/5624
7841         * tree.c (append_random_chars): Don't abort if main_input_filename
7842         does not exist.
7843
7844 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
7845
7846         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
7847
7848 2002-02-10  Kazu Hirata  <kazu@hxi.com>
7849
7850         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
7851         (pushhi1): Likewise.
7852
7853 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7854
7855         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
7856         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
7857
7858 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
7859
7860         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
7861         remove MASK_VIS.
7862         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
7863
7864 2002-02-09  Kazu Hirata  <kazu@hxi.com>
7865
7866         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
7867         a half of an SImode register on H8/300.
7868
7869 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
7870
7871         * i386.md (movdi_2): Add missing '!'.
7872
7873 2002-02-09  Kazu Hirata  <kazu@hxi.com>
7874
7875         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
7876         definitions.
7877
7878 2002-02-09  Kazu Hirata  <kazu@hxi.com>
7879
7880         * config/h8300/h8300.md (length): Correct the distance valid
7881         for the short branch.
7882
7883 2002-02-09  Kazu Hirata  <kazu@hxi.com>
7884
7885         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
7886
7887 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
7888
7889         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
7890         registers in SImode.
7891         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
7892         part-clobbered.
7893
7894         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
7895         patch.
7896
7897         Contribute sh64-elf.
7898         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
7899         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
7900         (sh_cannot_modify_jumps_p): New function.
7901         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
7902         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
7903         (sh_ms_bitfield_layout_p): New function.
7904         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
7905                     Zack Weinberg  <zack@codesourcery.com>
7906         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
7907         expand_simple_binop instead of expand_binop.
7908         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
7909         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
7910         use of .quad and .uaquad.
7911         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
7912         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
7913         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
7914         * config/sh/sh.md (movdi_const, movdi_const_32bit,
7915         movdi_const_16bit): Make sure all CONSTs have modes.
7916         (sym2PIC): Ditto, but by adjusting all callers.
7917         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
7918         if the prologue calls the SHmedia argument decoder or register
7919         saver.
7920         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
7921         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
7922         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
7923         (sh_expand_epilogue): Don't emit USE of return target register.
7924         (prepare_move_operands): Legitimize DImode PIC addresses.
7925         (sh_media_register_for_return): Skip tr0, used to initialize the
7926         PIC register.
7927         (sh_expand_prologue): Remove explicit USE of return register.
7928         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
7929         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
7930         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
7931         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
7932         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
7933         EXTRA_CONSTRAINT_T.
7934         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
7935         (MOVI_SHORI_BASE_OPERAND_P): New.
7936         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
7937         (EXTRA_CONSTRAINT_T): Define in terms of them.
7938         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
7939         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
7940         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
7941         alternatives supporting TARGET_REGS.
7942         (UNSPEC_GOTPLT): New constant.
7943         (movdi split): Move incrementing of LABEL_NUSES...
7944         (movdi_const, movdi_const_32bit): Here.  Use
7945         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
7946         (movdi_const_16bit): New.
7947         (call, call_value) [flag_pic]: Use GOTPLT.
7948         (call_pop, call_value_pop): New expands.
7949         (call_pop_compact, call_pop_rettramp): New insns.
7950         (call_value_pop_compact, call_value_pop_rettramp): New insns.
7951         (sibcall) [flag_pic]: Use GOT.
7952         (builtint_setjmp_receiver): Remove bogus, unused expand.
7953         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
7954         (*pt, *ptb, ptrel): New insns.
7955         (sym2GOT): Handle DImode GOT.
7956         (sym2GOTPLT, symGOTPLT2reg): New expands.
7957         (sym2PIC): New expand.
7958         (shcompact_return_tramp): Use GOTPLT to return trampoline.
7959         (shcompact_return_tramp_i): Use return register explicitly.
7960         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
7961         disable flag_reorder_blocks.
7962         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
7963         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
7964         clobbers, for clarity.
7965         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
7966         restoring of r0 in macl as MAYBE_DEAD.
7967         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
7968         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
7969         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
7970         alter_subreg all over.
7971         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
7972         reload, instead of emitting instructions that would require
7973         reloading.
7974         (casesi_load_media): Add missing modes.
7975         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
7976         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
7977         as used if the argument decoder is called.
7978         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
7979         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
7980         Pmode, then extend it to DImode if necessary.
7981         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
7982         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
7983         constants in FPU-enabled SHmedia, let them be loaded from memory.
7984         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
7985         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
7986         Adjust whitespace in assembly output templates.
7987         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
7988         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
7989         mode of if_then_else.
7990         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
7991         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
7992         sh.h.
7993         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
7994                     Joern Rennecke <amylaar@redhat.com>
7995         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
7996         (SUBTARGET_CPP_PTR_SPEC): New.
7997         (SUBTARGET_CPP_SPEC): Remove.
7998         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
7999         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
8000         Fix typo in previous checkin.
8001         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
8002         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
8003         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
8004                     Alexandre Oliva  <aoliva@redhat.com>
8005         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
8006         what single FP register can hold for SHmedia target.
8007         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
8008                     Alexandre Oliva  <aoliva@redhat.com>
8009         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
8010         Do not split into SUBREG.
8011         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
8012         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
8013         and added new functions as specified in SH5 ABI r9.
8014         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
8015         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
8016         8-byte boundary.
8017         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
8018         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
8019         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
8020         and consttable_window_ends.
8021         2001-06-03  Graham Stott  <grahams@redhat,com>
8022         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
8023         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
8024         * config/sh/sh.c (print_operand): Handle floating-point pair,
8025         vector and matrix registers.
8026         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
8027         vector modes into account.
8028         * config/sh/sh.md (movv2sf): Split move between registers into
8029         movdf.
8030         (movv4sf, movv16sf): Introduce insns that get split only after
8031         reload.
8032         * config/sh/shmedia.h: Fix Copyright dates.
8033         * config/sh/ushmedia.h: Likewise.  Move loop counter
8034         declarations into conditionals that uses them.
8035         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
8036         loop boundary.
8037         * config/sh/sshmedia.h: Fix Copyright dates.
8038         (sh_media_PUTCFG): Fix constraints.
8039         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
8040         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
8041         ptrmemfunc_vbit_in_delta for SH5.
8042         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
8043         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
8044         * invoke.texi: Likewise.
8045         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
8046         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
8047         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
8048         GCC_pop_shmedia_regs_nofpu): New global symbols.
8049         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
8050         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
8051         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
8052         compact function with nonlocal labels.
8053         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
8054         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
8055         (initial_elimination_offset): Account for their stack space.
8056         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
8057         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
8058         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
8059         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
8060         least one of the operands to be a register.
8061         (movv2sf): Likewise.  Renamed to movv2sf_i.
8062         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
8063         prepare_move_operands() before emitting SHmedia insns.
8064         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
8065         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
8066         Don't save nor initialize r12.  Don't mis-align the stack.
8067         Pad the code with a nop.
8068         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
8069         stack.
8070         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
8071         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
8072         [__SHMEDIA__]: Implement.
8073         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
8074         * config/sh/sh.md: Set latency of `pt' closer to reality.
8075         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
8076         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
8077         Set move, load and store type attributes.
8078         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
8079         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
8080         profiling.
8081         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
8082         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
8083         * config/sh/sh.c (sh_media_register_for_return): New function.
8084         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
8085         branch-target register.
8086         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
8087         * config/sh/sh.md (return_media_i): Use any call-clobbered
8088         branch-target register.
8089         (return_media): If r18 wasn't copied in the prologue, copy it
8090         here.
8091         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
8092         Clear class FP0_REGS.
8093         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
8094         from elf.h.
8095         2001-03-08  DJ Delorie  <dj@redhat.com>
8096         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
8097         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
8098         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
8099         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
8100         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
8101         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
8102         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
8103         return value correctly for call_cookie.
8104         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
8105         * config/sh/crt1.asm (start): Modified so as to call
8106         ___setup_argv_and_call_main.
8107         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
8108         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
8109         SHmedia mode.
8110         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
8111         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
8112         (STRIP_NAME_ENCODING): Use it.
8113         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
8114         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
8115         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
8116         prepare_scc_operands().
8117         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
8118         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
8119         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
8120         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
8121         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
8122         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
8123         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
8124         used in shcompact_incoming_args.
8125         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
8126         change.
8127         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
8128         mode.
8129         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
8130         Adjust accordingly.
8131         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
8132         Simplify.  Adjust.  Add sanity check.
8133         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
8134         FPU_SINGLE_BIT.
8135         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
8136         TARGET_SHCOMPACT.
8137         (udivsi3, divsi3): Use them.
8138         (force_mode_for_call): New insn.
8139         (call, call_value, sibcall_value): Emit it before SHcompact
8140         calls.
8141         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
8142         * config/sh/sh.md (call, call_value, sibcall): Make sure the
8143         call cookie is non-NULL before taking its value.
8144         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
8145         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
8146         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
8147         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
8148         block.
8149         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
8150         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
8151         temporary for stack adjusts.  Use MACL and MACH to pass
8152         arguments to shcompact_incoming_args.
8153         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
8154         clobber r1.
8155         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
8156         (nested_trampoline): Load static chain address into r1.
8157         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
8158         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
8159         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
8160         fp_arith_reg_operand().
8161         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
8162         * config/sh/sh.md (casesi): Sign-extend the first two operands,
8163         and use signed compares for them.
8164         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
8165         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
8166         ones properly aligned.
8167         (find_barrier): Account for extra alignment needed for 8-byte wide
8168         constants.
8169         (machine_dependent_reorg): Require a label for the second 4-byte
8170         constant after an 8-byte one.
8171         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
8172         change.
8173         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
8174         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
8175         last_float when switching float modes.
8176         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
8177         auto-increment for general-purpose registers.
8178         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
8179         result.
8180         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
8181         for stack adjust.
8182         * config/sh/sh.c (sh_builtin_saveregs): Support using all
8183         registers for varargs.
8184         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
8185         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
8186         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
8187         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
8188         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
8189         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
8190         call_cookie accordingly.
8191         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
8192         (SHCOMPACT_BYREF): Likewise.
8193         (SHCOMPACT_FORCE_ON_STACK): New macro.
8194         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
8195         (sh_builtin_saveregs): Likewise.
8196         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8197         shcompact_incoming_args): Use new shift values.  Support
8198         sequences of consecutive and non-consecutive pushes/pops.
8199         * config/sh/sh.md (return): Don't explicitly use PR_REG.
8200         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
8201         * config/sh/sh.h (TEXT_SECTION): Define.
8202         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
8203         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
8204         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
8205         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
8206         return values on FPU-enabled SHmedia.
8207         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
8208         FPU-enabled SHmedia.
8209         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
8210         value is returned in a non-FP reg and is not returned by
8211         reference.
8212         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
8213         jump_ind.
8214         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
8215         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
8216         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
8217         quad-aligned to be passed by callee-copy reference.
8218         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
8219         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
8220         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
8221         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
8222         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
8223         copying low-numbered FP regs to r7 and r8.
8224         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
8225         FP regs to general-purpose regs only if the copy was passed on the
8226         stack.
8227         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
8228         copying FP reg to r9.
8229         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
8230         copy FP regs to general-purpose regs only in outgoing calls.
8231         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
8232         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
8233         HOST_WIDE_INT.
8234         * config/sh/sh.h (struct sh_args): Document all fields.
8235         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
8236         passed partially on the stack should not consider making
8237         sibcalls.
8238         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
8239         stack_regs only for incoming calls.  When passing FP args,
8240         make sure there are FP regs available before modifying
8241         call_cookie.
8242         (SHCOMPACT_BYREF): Pass double args in general-purpose
8243         registers by reference.
8244         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
8245         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
8246         attempt to generate sibcalls if the caller got any arguments
8247         by reference.
8248         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
8249         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
8250         to 8-byte boundaries.
8251         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
8252         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
8253         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
8254         stored in the stack.
8255         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
8256         for the offsets to have the ISA bit set.
8257         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
8258         invocation.  Use beq instead of bgt to mark end of sequence of
8259         loads.
8260         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
8261         bgt to mark end of sequence of stores.
8262         * config/sh/sh.c (arith_operand): Don't check whether
8263         CONST_OK_FOR_J for now.
8264         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
8265         instead of long for conversion.
8266         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
8267         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
8268         before passing it to fprintf.
8269         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
8270         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
8271         Call set_fpscr before reading/writing SR.
8272         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
8273         Call set_fpscr.
8274         * config/sh/lib1funcs.asm: Add `.align 2' directives before
8275         SHmedia code.
8276         (FMOVD_WORKS): Define on SH5 with FPU.
8277         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
8278         setting.
8279         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
8280         _fpscr_values.
8281         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
8282         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
8283         address.
8284         (ia_main_table): Ditto.
8285         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
8286         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8287         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
8288         the definitions from sh.h.
8289         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
8290         TARGET_SH5.
8291         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
8292         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
8293         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
8294         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
8295         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
8296         Increment LABEL_NUSES.
8297
8298         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
8299         TARGET_SH5.
8300         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
8301         defined.
8302         * config/sh/elf.h (SIZE_TYPE): Likewise.
8303         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
8304         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8305         shcompact_incoming_args): Load switch table addresses using
8306         datalabel.
8307         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
8308         (NO_BUILTIN_SIZE_TYPE): Define.
8309         (SIZE_TYPE): Don't define.
8310         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
8311         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
8312         definition of __SH5__=32 for -m5-compact-nofpu.
8313         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
8314         ADDR_DIFF_VEC.
8315         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
8316         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
8317         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
8318         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
8319         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
8320         (INSN_LENGTH_ALIGNMENT): Likewise.
8321         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
8322         * config/sh/sh.md (call, call_value, sibcall): Simplify
8323         copying of non-branch-target register.
8324         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
8325         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
8326         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
8327         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
8328         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
8329         floating-point values as structs.
8330         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
8331         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
8332         general-purpose register.
8333         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
8334         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
8335         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
8336         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
8337         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
8338         (ENCODE_SECTION_INFO): Enclose variables and constants in
8339         DATALABEL unspecs.
8340         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
8341         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
8342         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
8343         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
8344         only for LABEL_REFs.  For SYMBOL_REFs, prepend
8345         SH_DATALABEL_ENCODING to the symbol name.
8346         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
8347         convert_mode().
8348         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
8349         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
8350         UNSPEC_DATALABEL.
8351         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
8352         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
8353         (DATALABEL_REF_P): Don't require CONST.
8354         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
8355         REL label.
8356         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
8357         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
8358         right.
8359         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
8360         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
8361         Use shallow_copy_rtx and PUT_MODE to change the mode of
8362         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
8363         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
8364         on SHmedia using GENERAL_REGs.
8365         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
8366         bltu_media_i): Fix reversion of conditions.
8367         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
8368         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
8369         * config/sh/sh.c (output_far_jump): Save r13 in macl.
8370         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
8371         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
8372         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
8373         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
8374         (GCC_nested_trampoline): Likewise.
8375         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
8376         * config/sh/sh.c (gen_datalabel_ref): Define.
8377         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
8378         (INITIALIZE_TRAMPOLINE): Likewise.
8379         (TRAMPOLINE_ADJUST_ADDRESS): Define.
8380         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
8381         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
8382         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
8383         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
8384         (ic_invalidate): Adjust for SH5.
8385         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
8386         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
8387         _nested_trampoline.
8388         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
8389         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
8390         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
8391         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
8392         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
8393         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
8394         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
8395         * config/sh/sh.c (target_reg_operand): Match only target-branch
8396         registers and pseudos that aren't virtual registers.
8397         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
8398         Copy operands that don't match target_reg_operand to pseudos.
8399         (call_media, call_value_media, sibcall_media): Use
8400         target_reg_operand instead of target_operand.
8401         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
8402         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
8403         * config/sh/sh.c (target_reg_operand): Match hardware registers
8404         other than branch-target registers.
8405         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
8406         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
8407         (fpscr_values) [SH5 == 32]: Define.
8408         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
8409         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
8410         Handle function addresses coming in SUBREGs.
8411         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
8412         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8413         shcompact_return_trampoline): Use datalabel where appropriate.
8414         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
8415         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
8416         general-purpose register to copy one branch-target register to
8417         another.
8418         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
8419         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
8420         SYMBOL_REFs with VOIDmode.
8421         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
8422         bltu_media_i): New insns.
8423         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
8424         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
8425         (INIT_CUMULATIVE_ARGS): Likewise.
8426         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
8427         * machmode.def (V16SFmode): New mode.
8428         * c-common.c (type_for_mode): Support V2SF and V16SF.
8429         * tree.c (build_common_tree_nodes_2): Likewise.
8430         * tree.h (tree_index): Likewise.
8431         * calls.c (emit_call_1): Take args_so_far.  Adjust all
8432         callers.  Introduce CALL_POPS_ARGS.
8433         * tm.texi (CALL_POPS_ARGS): Document.
8434         * config/sh/crt1.asm: Implement in SHmedia mode.
8435         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
8436         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
8437         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
8438         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
8439         Implement divsi and udivsi in SHmedia mode.  Introduce
8440         SHcompact trampolines.
8441         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
8442         only in SHmedia64.
8443         (regno_reg_class): Rewrite.
8444         (fp_reg_names): Remove.
8445         (sh_register_names, sh_additional_register_names): New.
8446         (print_operand): Added `u'.  Support SUBREGs in addresses.
8447         Add parentheses around shifted CONSTs.
8448         (output_file_start): Output .mode and .abi directives.
8449         (shiftcosts, addsubcosts, multcosts): Adjust.
8450         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
8451         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
8452         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
8453         bytes, not registers.  Take into account the need for the
8454         SHcompact incoming args trampoline.  Adjust all callers.
8455         (sh_expand_prologue): Take stack_regs into account.  Call
8456         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
8457         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
8458         stack aligned as per SH5 ABI.
8459         (sh_builtin_saveregs): Support SH5 ABI.
8460         (sh_build_va_list, sh_va_start): Likewise.
8461         (initial_elimination_offset): Take alignment into account.
8462         Compute location of PR according to the SH5 stack frame.
8463         (arith_reg_operand): Reject branch-target registers.
8464         (shmedia_6bit_operand): New.
8465         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
8466         (target_reg_operand): Match DImode only.  Accept SUBREGs.
8467         (target_operand): New.
8468         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
8469         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
8470         SIBCALL_REGS for SHmedia.
8471         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
8472         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
8473         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
8474         (TARGET_SWITCHES): New SH5 flags.
8475         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
8476         VALID_REGISTER_P to disable unsupported registers.
8477         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
8478         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
8479         (FUNCTION_ARG_PADDING): Define.
8480         (FASTEST_ALIGNMENT): Adjust.
8481         (SH_REGISTER_NAMES_INITIALIZER): New.
8482         (sh_register_names): Declare.
8483         (DEBUG_REGISTER_NAMES): Define.
8484         (REGISTER_NAMES): Define based on sh_register_names.
8485         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
8486         (sh_additional_register_names): Declare.
8487         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
8488         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
8489         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
8490         (REGISTER_NATURAL_MODE): Define.
8491         (FIRST_PSEUDO_REGISTER): Adjust.
8492         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
8493         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
8494         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
8495         (VECTOR_MODE_SUPPORTED_P): Define.
8496         (REG_CLASS_CONTENTS): Adjust.
8497         (SMALL_REGISTER_CLASSES): Adjust.
8498         (REG_ALLOC_ORDER): Adjust.
8499         (INDEX_REG_CLASS): Adjust.
8500         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
8501         (CONST_OK_FOR_LETTER_P): Adjust.
8502         (PREFERRED_RELOAD_CLASS): Adjust.
8503         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
8504         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
8505         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
8506         (FIRST_FP_PARM_REG): Adjust.
8507         (CALL_POPS_ARGS): Define.
8508         (FUNCTION_ARG_REGNO_P): Adjust.
8509         (struct sh_args): New fields.
8510         (GET_SH_ARG_CLASS): Adjust.
8511         (INIT_CUMULATIVE_ARGS): Adjust.
8512         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
8513         (FUNCTION_ARG_ADVANCE): Adjust.
8514         (FUNCTION_ARG): Adjust.
8515         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
8516         (FUNCTION_ARG_CALLEE_COPIES): Define.
8517         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
8518         (STRICT_ARGUMENT_NAMING): Define.
8519         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
8520         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
8521         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
8522         (SETUP_INCOMING_VARARGS): Adjust.
8523         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
8524         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
8525         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
8526         (SUBREG_OK_FOR_INDEX_P): Adjust.
8527         (EXTRA_CONSTRAINT_S): Update.
8528         (EXTRA_CONSTRAINT_T): New.
8529         (EXTRA_CONSTRAINT): Adjust.
8530         (GO_IF_LEGITIMATE_INDEX): Adjust.
8531         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
8532         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
8533         (MOVE_MAX): Adjust.
8534         (MAX_MOVE_MAX): Define.
8535         (Pmode): Adjust.
8536         (CONST_COSTS): Adjust.
8537         (REGISTER_MOVE_COST): Adjust.
8538         (BRANCH_COST): Adjust.
8539         (TEXT_SECTION_ASM_OP): Adjust.
8540         (DBX_REGISTER_NUMBER): Adjust.
8541         (ASM_OUTPUT_DOUBLE_INT): New.
8542         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
8543         (PREDICATE_CODES): Adjust.
8544         (PROMOTE_MODE): Adjust.
8545         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
8546         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
8547         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
8548         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
8549         (DR0_REG, DR2_REG, DR4_REG): Renumber.
8550         (TR0_REG, TR1_REG, TR2_REG): New.
8551         (XD0_REG): Renumber.
8552         (UNSPEC_COMPACT_ARGS): New.
8553         (type): Added pt and ptabs.
8554         (length): Default to 4 on SHmedia.  Default pt length to 12
8555         and     20 on SHmedia32 and SHmedia64, respectively.
8556         (pt): New function unit.
8557         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
8558         Add whitespace between operands of SHmedia instructions.
8559         (movdicc): Fix.
8560         (adddi3_media, addsi3_media): Adjust constraints.
8561         (subsi3) [SHmedia]: Force operand 1 into a register.
8562         (udivsi3_i1_media, udivsi3_i4_media): New.
8563         (udivsi3): Support SHmedia.
8564         (divsi3_i1_media, divsi3_i4_media): New.
8565         (divsi3): Support SHmedia.
8566         (anddi3, iordi3, xordi3): Adjust constraints.
8567         (zero_extendhidi2, zero_extendqidi2): New.
8568         (extendsidi2, extendhidi2, extendqidi2): New.
8569         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
8570         (pop_e, pop_fpul, pop_4): Likewise.
8571         (movsi_media): Support FP and BT registers.
8572         (movsi_media_nofpu): New.  Adjust splits to DImode.
8573         (lduw, ldub): Renamed to zero_extend* above.
8574         (movqi_media): Fix typo.
8575         (movdi_media): Support FP and BT registers.
8576         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
8577         (movdi_const_32bit): New.
8578         (shori_media): Require immediate operand.  Use `u' for output.
8579         (movdf_media, movsf_media): Simplified.
8580         (movdf_media_nofpu, movsf_media_nofpu): New.
8581         (movdf, movsf): Adjust
8582         (movv2sf, movv2sf, movv16sf): New.
8583         (beq_media, beq_media_i): Adjust constraints.  Don't use
8584         scratch BT register.
8585         (bne_media, bne_media_i): Likewise.
8586         (bgt_media, bgt_media_i): Likewise.
8587         (bge_media, bge_media_i): Likewise.
8588         (bgtu_media, bgtu_media_i): Likewise.
8589         (bgeu_media, bgeu_media_i): Likewise.
8590         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
8591         bunordered): Emit jump insn.  Force operands to registers when
8592         needed.
8593         (jump_media, jump): Simplify.
8594         (call_compact, call_compact_rettramp): New.
8595         (call_value_compact, call_value_compact_rettramp): New.
8596         (call_media, call_value_media): Simplify.
8597         (sibcall_compact, sibcall_media): New.
8598         (call, call_value): Adjust for SHmedia and SHcompact.
8599         (sibcall, sibcall_value, untyped_call): Likewise.
8600         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
8601         (indirect_jump): Adjust for SHmedia.
8602         (casesi_jump_media): New.
8603         (nop): Re-enable for SHmedia.
8604         (call_site): Restrict to SH1.
8605         (casesi): Adjust for SHmedia.
8606         (casesi_shift_media, casesi_load_media): New.
8607         (return): Explicitly use PR register.  Call return trampoline
8608         on SHcompact.
8609         (return_i): Explicitly use PR register.
8610         (shcompact_return_tramp, shcompact_return_tramp_i): New.
8611         (return_media): Adjust.
8612         (shcompact_incoming_args): New.
8613         (epilogue): Adjust.
8614         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
8615         (movstrsi): Disable on SH5.
8616         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
8617         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
8618         (subsf3, subsf3_media): Likewise.
8619         (mulsf3, mulsf3_media, mac_media): Likewise.
8620         (divsf3, divsf3_media): Likewise.
8621         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
8622         (floatsisf2, fux_truncsfsi2): Likewise.
8623         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
8624         constraints.
8625         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
8626         (cmpunsf_media, cmpsf): Likewise.
8627         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
8628         (abssf2, abssf2_media): Likewise.
8629         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
8630         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
8631         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
8632         (floatsidf2, fix_truncdfsi2): Likewise.
8633         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
8634         constraints.
8635         (cmpeqdf_media, cmpgtdf_media): Likewise.
8636         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
8637         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
8638         (absdf2, absdf2_media): Likewise.
8639         (extendsfdf2, extendsfdf2_media): Likewise.
8640         (truncsfdf2, truncsfdf2_media): Likewise.
8641         * config/sh/sh64.h: New file.
8642         * config/sh/t-sh64: New file.
8643         * config/sh/shmedia.h: New file.
8644         * config/sh/ushmedia.h: New file.
8645         * config/sh/sshmedia.h: New file.
8646         * configure.in: Added sh64-*-elf.
8647         * configure: Rebuilt.
8648         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
8649         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
8650         (reg_class_from_letter): Use `b' for TARGET_REGS.
8651         (print_operand): Support `%M', `%m', `AND' and
8652         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
8653         (andcosts): Adjust for SHmedia.
8654         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
8655         Likewise.
8656         (target_reg_operand): New function.
8657         * config/sh/sh-protos.h (target_reg_operand): Declare.
8658         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
8659         FP registers on SH5.
8660         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
8661         on SH4.
8662         (TARGET_REGISTER_P): New macro.
8663         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
8664         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
8665         (EXTRA_CONSTRAINT_S): New macro.
8666         (EXTRA_CONSTRAINT): Adjust.
8667         (FLOAT_TYPE_SIZE): Define to 32.
8668         (Pmode): DImode on SHmedia.
8669         (CONST_COSTS): Adjust for SHmedia literals.
8670         (PREDICATE_CODES): Added target_reg_operand.
8671         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
8672         * config/sh/sh.md: Remove all attrs from SHmedia insns.
8673         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
8674         (cmpdi): Accept SHmedia.
8675         (movdicc_false, movdicc_true): New insns.
8676         (movdicc): New expand.
8677         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
8678         no_new_pseudos.
8679         (addsi3_media): Match `S' constraint.
8680         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
8681         (negdi2): Expand for SHmedia.
8682         (one_cmpldi2): New expand.
8683         (zero_extendsidi2): Change from expand to insn.
8684         (extendsidi2): Add constraints.
8685         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
8686         LD/ST address.  Fix SI immediate loading split.
8687         (movhi_media, movqi_media, lduw, ldub): New insns.
8688         (movhi, movqi): Accept SHmedia.
8689         (shori_media, movdi_media): Relax input constraints.  Split
8690         symbolic constants.
8691         (movdf_media, movsf_media): New insn.  New split to movdi.
8692         (movdf, movsf): Match on SHmedia.
8693         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
8694         bgeu_media): New insns and splits.  New insns with `_i' suffix.
8695         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
8696         (bunordered): New expand.
8697         (jump_compact): Renamed from `jump'.
8698         (jump_media): New insn.
8699         (jump): New expand.
8700         (call_media, call_value_media): New insns.
8701         (call, call_value): Adjust.
8702         (indirect_jump_compact): Renamed from `indirect_jump'.
8703         (indirect_jump_media): New insn.
8704         (indirect_jump): New expand.
8705         (untyped_call, return): Accept SHmedia.
8706         (return_media): New insn.
8707         (prologue, epilogue, blockage): Accept SHmedia.
8708         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
8709         (sunordered): New expand.
8710         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
8711         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
8712         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
8713         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
8714         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
8715         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
8716         abssf2_media): New insns.
8717         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
8718         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
8719         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
8720         floatdidf2, floatsidf2_media, fix_truncdfdi2,
8721         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
8722         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
8723         absdf2_media): New insns.
8724         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
8725         (extendsfdf2_media, truncdfsf2_media): New insns.
8726         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
8727         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
8728         * config/sh/sh.h (CONST_OK_FOR_J): Document.
8729         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
8730         * config/sh/sh.md (adddi3): New expand.
8731         (adddi3_media, adddi3z_media): New insns.
8732         (adddi3_compact): Renamed from adddi3.
8733         (addsi3_media): Use add.l r63 to add constant zero.
8734         (subdi3): New expand.
8735         (subdi3_media): New insn.
8736         (subdi3_compact): Renamed from subdi3.
8737         (mulsidi3): New expand.
8738         (mulsidi3_media): New insn.
8739         (mulsidi3_compact): Renamed from mulsidi3.
8740         (umulsidi3): New expand.
8741         (umulsidi3_media): New insn.
8742         (umulsidi3_compact): Renamed from umulsidi3.
8743         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
8744         (ashlsi3, ashrsi3, lshrsi3): Use them.
8745         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
8746         (ashldi3, ashrdi3, lshrdi3): Use them.
8747         (zero_extendsidi2): New expand.
8748         (extendsidi2): New insn.
8749         (movsi_media): New insn.  Split to movdi to load constants.
8750         (movsi): Enable for shmedia.
8751         (movdi_media): New insn.  Use shori_media to load wide constants.
8752         (short_media): New insn.
8753         (movdi): Enable for shmedia.
8754         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
8755         * config/sh/sh.h (CPP_SPEC): Added `m5'.
8756         (SUBTARGET_CPP_SPEC): Added `!m5'.
8757         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
8758         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
8759         to all other SH variants.
8760         (TARGET_DEFAULT): Set to SH1_BIT.
8761         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
8762         (BITS_PER_WORD): Raise to 64 on shmedia.
8763         (MAX_BITS_PER_WORD): Change to 64.
8764         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
8765         (INT_TYPE_SIZE): Keep as 32.
8766         (UNITS_PER_WORD): Raise to 8 on shmedia.
8767         (MIN_UNITS_PER_WORD): Keep as 4.
8768         (POINTER_SIZE): Raise to 64 on shmedia.
8769         (CONST_OK_FOR_J): New macro.
8770         (CONST_OK_FOR_LETTER_P): Use it.
8771         (processor_type): Add PROCESSOR_SH5.
8772         * config/sh/sh.md: Conditionalize all expands, insns and
8773         splits to TARGET_SH1.
8774         (cpu): Added sh5.
8775         (addsi3_compact): Renamed from...
8776         (addsi3): Now an expand.
8777         (addsi3_media, subsi3_media): New insns.
8778         (subsi3): Don't negate constants with SHmedia.
8779
8780         * hooks.c: New file.
8781         * hooks.h: New file.
8782         * Makefile.in (HOOKS_H): New.
8783         (TARGET_DEF_H): Added $(HOOKS_H).
8784         (OBJS): Added hooks.o.
8785         (cfgcleanup.o, bb-reorder.o): Added target.h.
8786         (hooks.o): Added dependencies.
8787         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
8788         (TARGET_INITIALIZER): this.
8789         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
8790         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
8791         * bb-reorder.c: Include target.h.
8792         (reorder_basic_blocks): Skip if cannot modify jumps.
8793         * cfgcleanup.c: Include target.h.
8794         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
8795
8796 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
8797
8798         * config/mips/mips.md (casesi_internal, casesi_internal_di):
8799         Protect jump delay slot instructions with .set noreorder and
8800         .set nomacro.
8801
8802 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
8803
8804         * config/mips/mips.md (casesi_internal_di): Calculate
8805         the index into the target offset table correctly.
8806
8807 2002-02-08  Richard Henderson  <rth@redhat.com>
8808
8809         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
8810         * final.c (output_addr_const): Accept and discard SUBREG.
8811         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
8812         mark them unknown instead.
8813         (simplify_subtraction): Handle RTX_UNKNOWN.
8814         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
8815
8816 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
8817
8818         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
8819
8820 2002-02-08  Richard Henderson  <rth@redhat.com>
8821
8822         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
8823
8824 2002-02-08  Andreas Jaeger  <aj@suse.de>
8825
8826         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
8827         * config/i386/t-linux64: New file.
8828
8829 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
8830
8831         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
8832         * c-parse.in (compstmt): Clear last_expr_type.
8833
8834 2002-02-07  Richard Henderson  <rth@redhat.com>
8835
8836         * loop.c (strength_reduce): Sink final_value when not
8837         eliminating a biv.
8838
8839 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
8840
8841         * config/sparc/freebsd.h: Fix mismatched spec {.
8842
8843 2002-02-07  Richard Henderson  <rth@redhat.com>
8844
8845         * cfgrtl.c: Include recog.h and insn-config.h.
8846         (keep_with_call_p): Fix general_operand invocation.
8847         * Makefile.in (cfgrtl.o): Update dependencies.
8848
8849 2002-02-07  Kazu Hirata  <kazu@hxi.com>
8850
8851         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
8852         comment.  Accept HImode only if TARGET_H8300.
8853
8854 2002-02-07  Eric Christopher  <echristo@redhat.com>
8855
8856         * config/mips/crtn.asm: Cleanup #ifdefs.
8857
8858 2002-02-07  Eric Christopher  <echristo@redhat.com>
8859
8860         * config/mips/crti.asm: Add changes for mips16. mips16 uses
8861         register 7 as RA instead of $31.
8862         * config/mips/crtn.asm: Ditto.
8863         * config/mips/mips.c (mips_move_2words): Add case for
8864         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
8865         (compute_frame_size): Fix typo.
8866         (save_restore_insns): Ditto.  Make documentation about using
8867         register $7 as return register more precise.
8868         (mips_expand_epilogue): Fix comment. Add code to work around not
8869         being able to add to the stack pointer directly.
8870         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
8871         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
8872         epilogue.
8873
8874 2002-02-07  Tom Rix  <trix@redhat.com>
8875
8876         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
8877         immediates in ldu and stdu DS opcode field.
8878         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
8879         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
8880         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
8881
8882 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
8883
8884         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
8885         offset for stack bias.
8886
8887 2002-02-07  H.J. Lu <hjl@gnu.org>
8888
8889         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
8890
8891 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
8892
8893         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
8894
8895 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
8896
8897         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
8898         * i386.c (x86_order_regs_for_local_alloc): New global function.
8899         * i386.h (REG_ALLOC_ORDER): CLeanup.
8900         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
8901
8902 2002-02-07  Richard Henderson  <rth@redhat.com>
8903
8904         PR optimization/2463
8905         * alias.c (find_base_value): Recall base values for fixed hard regs.
8906         * loop.c (loop_regs_update): Don't use single_set on non-insns.
8907
8908 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
8909
8910         * config/mips/mips.md (define_delay) [mips16]: Adjust required
8911         length.
8912
8913 2002-02-06  Richard Henderson  <rth@redhat.com>
8914
8915         PR c/5609
8916         * stmt.c (resolve_operand_name_1): Take more care with mixed
8917         named and unnamed operands.
8918
8919 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
8920             Jan Hubicka  <jh@suse.cz>
8921
8922         * loop.c (remove_constant_addition): Avoid clobbering a shared
8923         CONST expression.
8924
8925 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
8926
8927         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
8928         * config/s390/t-linux64: New file.
8929         * config/s390/libgcc-glibc.ver: New file.
8930
8931 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
8932
8933         * config/s390/linux64.h: Delete file.
8934         * config/s390/s390x.h: New file.
8935         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
8936         as target header file.
8937         * config/s390/linux.h (TARGET_VERSION): Define depending on
8938         DEFAULT_TARGET_64BIT.
8939         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
8940         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
8941         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
8942         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
8943         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
8944         (EXTRA_SPEC): New define.
8945         * config/s390/s390.h (TARGET_VERSION): Define depending on
8946         DEFAULT_TARGET_64BIT.
8947         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
8948
8949 2002-02-06  Jason Merrill  <jason@redhat.com>
8950
8951         * c-decl.c (finish_function): Warn about a non-void function with
8952         no return statement and no abnormal exit.
8953         (current_function_returns_abnormally): New variable.
8954         (start_function): Clear it.
8955         (struct c_language_function): Add returns_abnormally.
8956         (push_c_function_context): Save it.
8957         (pop_c_function_context): Restore it.
8958         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
8959         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
8960         an explicit return type.
8961         * c-tree.h: Declare current_function_returns_abnormally.
8962         (C_FUNCTION_IMPLICIT_INT): New macro.
8963         * c-typeck.c (build_function_call): Set it.
8964         (c_expand_return): Set current_function_returns_value even if the
8965         value is erroneous.
8966
8967 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
8968
8969         PR c/5420:
8970         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
8971         unsafe for reevaluation.
8972
8973 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
8974
8975         PR c/5482:
8976         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
8977         EXPR_STMT, but COMPOUND_STMT, recurse into it.
8978
8979 2002-02-06  Richard Henderson  <rth@redhat.com>
8980
8981         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
8982         be a general_operand.  Dest for function value must be a pseudo.
8983
8984 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
8985
8986         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
8987         as SYMBOL_REFs from the constant pool.
8988
8989 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
8990
8991         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
8992         passed by invisible reference.
8993
8994 2002-02-05  Richard Henderson  <rth@redhat.com>
8995
8996         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
8997
8998 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
8999
9000         Implement using "base addresses" in insn operands as default.
9001         * config/mmix/mmix.c (mmix_conditional_register_usage): if
9002         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
9003         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
9004         used to read the rtx value.
9005         (mmix_target_asm_function_epilogue): Fix spacing.
9006         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
9007         (mmix_legitimate_address): Ditto.
9008         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
9009         should be loaded with a GETA insn.  Don't allocate needless extra
9010         char for nul termination and fix misleading comment.
9011         (mmix_print_operand_address): Handle constants if
9012         TARGET_BASE_ADDRESSES.
9013         (mmix_output_register_setting): Use base addressing if
9014         TARGET_BASE_ADDRESSES and the number of insns is 3.
9015         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
9016         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
9017         to use R as constraint, add LDA to match s.
9018         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
9019         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
9020         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
9021         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
9022         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
9023         order with other fixed registers.
9024         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
9025         other parameter/call-clobbered registers.
9026         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
9027         -mbase-addresses, -mno-base-addresses.
9028         (MMIX Options): Ditto.
9029
9030 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9031
9032         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
9033
9034 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
9035
9036         * config/rs6000/altivec.h: Change elem to _S_elem.
9037
9038 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
9039
9040         * config/netbsd.h (WCHAR_TYPE): Define.
9041         (WCHAR_TYPE_SIZE): Ditto.
9042         (WINT_TYPE): Ditto.
9043         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
9044         (WCHAR_UNSIGNED): Ditto.
9045         (WCHAR_TYPE_SIZE): Ditto.
9046         (WINT_TYPE): Ditto.
9047         * config/arm/netbsd.h: Likewise.
9048         * config/i386/netbsd-elf.h: Likewise.
9049         * config/i386/netbsd.h: Likewise.
9050         * config/m68k/netbsd-elf.h: Likewise.
9051         * config/m68k/netbsd.h: Likewise.
9052         * config/ns32k/netbsd.h: Likewise.
9053         * config/sparc/netbsd.h: Likewise.
9054         * config/vax/netbsd.: Likewise.
9055
9056 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
9057
9058         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
9059         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
9060         (TARGET_INITIALIZER): this.
9061         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
9062         (BITFIELD_NBYTES_LIMITED): Markup fix.
9063         * tree.h (default_ms_bitfield_layout_p): Declare.
9064         (record_layout_info): Added prev_field.
9065         * tree.c (default_ms_bitfield_layout_p): New fn.
9066         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
9067         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
9068         * stor-layout.c: Include target.h.
9069         (start_record_layout): Initialize prev_field.
9070         (place_field): Handle MS bit-field layout, and disregard
9071         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
9072         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
9073         * Makefile.in (stor-layout.o): Adjust dependencies.
9074
9075 2002-02-05  Jason Merrill  <jason@redhat.com>
9076
9077         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
9078
9079 2002-02-05  Andreas Jaeger  <aj@suse.de>
9080
9081         * crtstuff.c: Fix comments.
9082
9083 2002-02-05  Richard Henderson  <rth@redhat.com>
9084
9085         PR fortran/3393
9086         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
9087         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
9088
9089         PR fortran/3392
9090         * config/mips/mips.c (function_arg): Handle TImode.
9091         (function_arg_advance): Likewise.
9092
9093 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9094
9095         * config/rs6000/altivec.h (vec_step_help): Rename to
9096         __vec_step_help.
9097
9098 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9099
9100         * config/rs6000/altivec.h: Fix typos.
9101
9102 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
9103
9104         * config/arm/netbsd.h: Correct a comment.
9105
9106 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9107
9108         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
9109         building void typed builtins.
9110
9111         * config/rs6000/altivec.h (vec_ld*): Fix typos.
9112         (vec_step): Implement for C++.
9113
9114 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9115
9116         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
9117
9118 2002-02-04  Richard Henderson  <rth@redhat.com>
9119
9120         * combine.c (nonzero_bits): Re-introduce special case for
9121         sp/fp/ap wrt REGNO_POINTER_ALIGN.
9122
9123 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
9124
9125         * doc/extend.texi: Warn about unsupported usage of altivec
9126         builtins.
9127
9128         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
9129         (altivec_predicate_*): New.
9130
9131         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
9132         Add C++ version of vec_*() functions.
9133
9134         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
9135         (bdesc_2arg): Remove altivec predicates.
9136         (altivec_expand_builtin): Handle predicates.
9137         (altivec_init_builtins): Handle predicates.
9138         (altivec_expand_predicate_builtin): New.
9139
9140 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9141
9142         * pa.c (DO_FRAME_NOTES): Move forward.
9143         (store_reg): Revise handling of frame notes.
9144         (load_reg): Likewise.
9145         (set_reg_plus_d): Likewise.
9146         (hppa_expand_prologue): Likewise.
9147         (hppa_expand_epilogue): Likewise.
9148
9149 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9150
9151         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
9152
9153 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
9154
9155         PR c/4475, c++/3780:
9156         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
9157         * c-common.h (SWITCH_TYPE): Define.
9158         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
9159         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
9160         Rename spareness variable to sparseness.
9161         (expand_end_case_type): Renamed from expand_end_case, use orig_type
9162         if non-NULL instead of TREE_TYPE (orig_index).
9163         * tree.h (expand_end_case_type): Renamed from expand_end_case.
9164         (expand_end_case): Define using expand_end_case_type.
9165         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
9166         to expand_end_case_type.
9167         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
9168
9169 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9170
9171         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
9172         (BIGGEST_ALIGNMENT): Change to 128.
9173
9174 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9175
9176         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
9177
9178 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9179
9180         * pa.md (call_internal_reg_64bit): Remove unused variable.
9181
9182 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
9183
9184         * config/arm/arm.h (machine_function): Add uses_anonymous_args
9185         field.
9186         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
9187         * config/arm/arm.c (current_function_anonymous_args): Delete,
9188         replace uses with cfun->machine->uses_anonymous_args.
9189         (arm_reorg): Do not reset uses_anonymous_args.
9190
9191         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
9192         any geenral register.
9193
9194 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
9195
9196         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
9197         the entry block.
9198
9199 2002-02-04  Richard Henderson  <rth@redhat.com>
9200
9201         * combine.c (force_to_mode): Remove STACK_BIAS code.
9202         (nonzero_bits): Likewise.  Replace sp/fp special case with
9203         REGNO_POINTER_ALIGN.
9204
9205         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
9206         (HARD_FRAME_POINTER_REGNUM): New.
9207         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
9208         (FIXED_REGS, CALL_USED_REGS): Update.
9209         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
9210         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
9211         (HARD_REGNO_NREGS): Update for SFP.
9212         (STACK_POINTER_OFFSET): Include bias here ...
9213         (FIRST_PARM_OFFSET): ... not here.
9214         (STACK_BIAS): Remove.
9215         (INIT_EXPANDERS): New.
9216         (STARTING_FRAME_OFFSET): Do not include bias.
9217         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
9218         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
9219         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
9220         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
9221         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
9222         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
9223         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
9224         (MUST_SAVE_REGISTER): Likewise.
9225         (sparc_flat_function_prologue): Likewise.
9226         (sparc_flat_function_epilogue): Likewise.
9227         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
9228         (sparc_init_modes): SFP is GENERAL_REGS.
9229         (sparc_builtin_saveregs): SFP does not have bias applied.
9230
9231 2002-02-04  Richard Henderson  <rth@redhat.com>
9232
9233         * config/alpha/alpha.c (current_function_is_thunk): Don't check
9234         current_function_is_thunk.
9235         (alpha_sa_mask): Distinguish between current_function_is_thunk
9236         called from ASM_OUTPUT_MI_THUNK and not.
9237         (alpha_does_function_need_gp): Thunks always need gp.
9238         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9239         (alpha_output_mi_thunk_osf): New.
9240         * config/alpha/alpha-protos.h: Update.
9241         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
9242
9243 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
9244
9245         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
9246         function types, not when they're taken away.
9247
9248 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
9249
9250         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
9251         CODE_LABEL and jump table when replacing a table jump with a
9252         simple jump.
9253
9254 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
9255
9256         * config/s390/s390-protos.h (legitimize_la_operand,
9257         s390_secondary_input_reload_class, s390_plus_operand,
9258         s390_expand_plus_operand): Add prototypes.
9259
9260         config/s390/s390.c (s390_secondary_input_reload_class,
9261         s390_plus_operand, s390_expand_plus_operand): New functions.
9262
9263         (struct s390_address): New member 'pointer'.
9264         (s390_decompose_address): Compute it.
9265         (legitimate_la_operand_p): Use it.
9266         (legitimize_la_operand): New function.
9267         (movti, movdi, movdf splitters): Call it.
9268
9269         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
9270         (PREDICATE_CODES): Add s390_plus_operand.
9271
9272         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
9273         (la_ccclobber): Allow GENERAL_REGS as output operand.
9274
9275         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
9276         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
9277         (*la_64, *la_31, reload_indi, reload_insi): ... these.
9278
9279 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
9280
9281         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
9282         register names for regular asm () construct.
9283
9284 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
9285
9286         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
9287         registers.
9288
9289 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
9290
9291         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
9292         pat for recog.
9293
9294 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
9295
9296         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
9297         constant pool to be identical by string address and index.
9298
9299 2002-02-04  Anthony Green  <green@redhat.com>
9300
9301         * output.h (SECTION_OVERRIDE): Define.
9302         * varasm.c (named_section): Obey SECTION_OVERRIDE.
9303
9304 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
9305
9306         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
9307         by existing arm*-*-netbsd* (a.out) target.
9308         (ns32k-*-netbsdelf*): Likewise.
9309         (sparc-*-netbsdelf*): Likewise.
9310         (vax-*-netbsdelf*): Likewise.
9311
9312 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
9313
9314         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
9315         headers and libobjc headers.
9316
9317 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
9318
9319         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
9320         (_mingw.h): Remove duplicate include.
9321
9322 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
9323
9324         * config.gcc: Set cpu_type to m68k for 68010, as well.
9325         (m68010-*-netbsdelf*): New...
9326         (m68k*-*-netbsdelf*): ...targets.
9327         * config/m68k/netbsd-elf.h: New file.
9328
9329 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9330
9331         * config/h8300/h8300.c (hand_list): Move inside function_arg.
9332
9333 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9334
9335         * config/h8300/h8300.c (h8_push_ops): Move inside
9336         h8300_init_once.
9337         (h8_pop_ops): Likewise.
9338         (h8_move_ops): Likewise.
9339
9340 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9341
9342         * config/h8300/h8300.c (os_task): Make it static.
9343         (monitor): Likewise.
9344         (pragma_saveall): Likewise.
9345
9346 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
9347
9348         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
9349         constant is a valid sign-extension for Pmode.
9350
9351 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9352
9353         * config/h8300/h8300.c: Fix formatting.
9354
9355 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9356
9357         * config/h8300/h8300.md: Fix formatting.
9358
9359 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9360
9361         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
9362         predicates of operands[1].  Split the patterns for each
9363         processor variant.
9364
9365 2002-02-02  Kazu Hirata  <kazu@hxi.com>
9366
9367         * config/h8300/h8300.md (xor patterns): Tighten the predicates
9368         of operands[1] to register_operand.
9369
9370 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
9371
9372         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
9373         * cpphash.c (_cpp_init_hashtable): Similarly.
9374         * cppinit.c (cpp_create_reader): Default the signed_char flag.
9375         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
9376         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
9377         (cpp_handle_option): Handle the new options.
9378         * cpplex.c (cpp_interpret_charconst): Use new flag.
9379         * cpplib.h (struct cpp_options): New member signed_char.
9380         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
9381         (cpp_options): Handle -fsigned-char and -funsigned-char.
9382         (static_specs): Remove signed_char_spec.
9383         (do_spec1): Don't handle %c.
9384         * system.h: Poison SIGNED_CHAR_SPEC.
9385         * tradcif.y (yylex): Use flag_signed_char.
9386         * tradcpp.h (flag_signed_char): New.
9387         * tradcpp.c (flag_signed_char): New.
9388         (main): Handle new command-line options.
9389         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
9390 config:
9391         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
9392         * avr/avr.h: Remove old comments.
9393         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
9394         (CC1_SPEC): Pass -fsigned-char if -mic*.
9395         (SIGNED_CHAR_SPEC): Remove.
9396 doc:
9397         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
9398
9399 2002-02-01  Eric Christopher  <echristo@redhat.com>
9400
9401         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
9402         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
9403         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
9404         (ASM_OUTPUT_REG_POP): Ditto.
9405
9406 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
9407
9408         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
9409         patch.
9410
9411 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
9412
9413         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
9414
9415 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
9416
9417         PR c/5304:
9418         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
9419         unconditionally.
9420
9421 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
9422
9423         * cfganal.c: Include tm_p.h.
9424         (keep_with_call_p): Fix the test that determines if a register holds
9425         the return value of a call.
9426
9427 2002-02-01  DJ Delorie  <dj@redhat.com>
9428
9429         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
9430         we are given conflicting registers, switch to the other one we
9431         had allocated for us.
9432         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
9433         as TImode so we know when the "other" register is available.
9434
9435 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
9436
9437         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
9438         sparc/sparc_bi.h.
9439
9440 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
9441
9442         * cfganal.c (keep_with_call_p): New function.
9443         (flow_call_edges_add): Prevent splitting a block between a call and
9444         a single-set instruction that should be kept in the same block.
9445
9446 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9447
9448         * doc/install.texi (avr): Update outdated URL.
9449
9450 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
9451
9452         * config/stormy16/stormy16.md (pushqi): New.
9453         (popqi): New.
9454         (pushhi): New.
9455         (pophi): New.
9456         (movhi): Remove stack operands.
9457         (movqi): Likewise.
9458         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
9459         nonimmediate_nonstack_operand.
9460         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
9461         New.
9462         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
9463         New.
9464
9465 2002-01-31  Jason Merrill  <jason@redhat.com>
9466
9467         * Makefile.in (c-parse.c): Handle .output file.
9468         * objc/Make-lang.in (objc-parse.c): Likewise.
9469
9470 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
9471
9472         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
9473         the -me[lb] option is given.  Don't output the default flag
9474         twice.
9475
9476 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
9477
9478         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
9479         the primary source file; this has not been done yet.
9480         * c-decl.c (c_expand_body): Reset input_filename from
9481         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
9482
9483 2002-01-31  Kazu Hirata  <kazu@hxi.com>
9484
9485         * rtlanal.c (subreg_regno_offset): Do not use
9486         SUBREG_REGNO_OFFSET.
9487         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
9488         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
9489
9490 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
9491
9492         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
9493         version rather than GNATS version in --version output.
9494
9495 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
9496
9497         * ifcvt.c (noce_process_if_block): Make a copy of the destination
9498         when copying back from a temporary.
9499
9500 2002-01-30  Richard Henderson  <rth@redhat.com>
9501
9502         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
9503         and new_dest are the same.
9504
9505 2002-01-30  Richard Henderson  <rth@redhat.com>
9506
9507         PR opt/5076
9508         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
9509         * rtl.c (note_insn_name): Update.
9510         * emit-rtl.c (remove_unnecessary_notes): Kill it.
9511         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
9512         to perform loop rotation.
9513         (expand_exit_loop_top_cond): New.
9514         * tree.h (expand_exit_loop_top_cond): Declare it.
9515         * c-semantics.c (genrtl_while_stmt): Use it.
9516         (genrtl_for_stmt): Likewise.
9517
9518 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
9519
9520         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
9521         arguments to 64-bit boundaries on 64-bit ABIs.
9522
9523 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
9524
9525         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
9526
9527 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
9528
9529         * c-decl.c (grokdeclarator): Handle type being a typedef for an
9530         invalid type.
9531
9532 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
9533
9534         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
9535         * config/sparc/sparc_bi.h: Remove file.
9536         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
9537
9538 2002-01-30  Richard Henderson  <rth@redhat.com>
9539
9540         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
9541
9542 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
9543
9544         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
9545
9546 2002-01-30  Jason Merrill  <jason@redhat.com>
9547
9548         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
9549         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
9550         (reg_save): Use DW_CFA_offset_extended_sf instead.
9551
9552         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
9553
9554 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
9555
9556         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
9557         in cselib_lookup.
9558
9559 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
9560
9561         * rs6000.md ("*call_value_local32"): Remove constraints.
9562         ("*call_value_local64"): Same.
9563         ("*call_value_indirect_nonlocal_aix32"): Same.
9564         ("*call_value_nonlocal_aix32"): Same.
9565         ("*call_value_indirect_nonlocal_aix64"): Same.
9566         ("*call_value_nonlocal_aix64"): Same.
9567         ("*call_value_nonlocal_sysv"): Same.
9568
9569 2002-01-29  Richard Henderson  <rth@redhat.com>
9570
9571         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
9572
9573 2002-01-29  Richard Henderson  <rth@redhat.com>
9574
9575         * expr.c (force_operand): Ignore flag_pic for detecting pic
9576         address loads.
9577         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
9578         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
9579         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
9580         instead of open-coded loop.
9581         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
9582         be fixed when in use.
9583
9584 2002-01-29  Richard Henderson  <rth@redhat.com>
9585
9586         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
9587         * sched-rgn.c (propagate_deps): Update them.
9588         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
9589         clobbers list when either gets too long.
9590
9591 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
9592
9593         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
9594         and INDEX_REGS the same as GENERAL_REGS.
9595         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
9596
9597 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
9598
9599         * tree.c (build_nonstandard_integer_type): Correct prototype.
9600
9601 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
9602
9603         * config/s390/s390.md (movstrsico, movstrdix_64,
9604         movstrsix_31): Remove, replace by ...
9605         (movstrdi_short, movstrsi_short, movstrdi_long,
9606         movstrsi_long): ... these.  New.
9607         (movstrdi, movstrsi): Adapt.
9608
9609         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
9610         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
9611         Remove unnecessary CC clobber.
9612         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
9613         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
9614
9615         (divmoddi4): Don't partially initialize TImode register.
9616
9617 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
9618
9619         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
9620
9621 2002-01-29  Richard Henderson  <rth@redhat.com>
9622
9623         * flow.c (print_rtl_and_abort): Remove.
9624         (print_rtl_and_abort_fcn): Remove.
9625         (verify_local_live_at_start): Use dump_bb instead.
9626         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
9627         (verify_wide_reg_1): Return 2 on mode test failure.
9628
9629 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
9630
9631         PR c/3325, c/3326, c/2511, c/3347
9632         * c-decl.c (enum_decl_context): Remove BITFIELD.
9633         (grokdeclarator): Take bitfield width as an input.
9634         Ensure bitfields are given the correct type.  Perform
9635         bitfield width validation with build_bitfield_integer_type
9636         rather than waiting for finish_struct.
9637         (grok_typename, grok_typename_in_parm_context, start_decl,
9638         push_parmdecl, grokfield, start_function): Update calls to
9639         grokdeclarator.
9640         (build_bitfield_integer_type): New function.
9641         (finish_struct): Move bitfield validation to grokdeclarator
9642         and build_bitfield_integer_type.
9643         * tree.c (build_nonstandard_integer_type): New function.
9644         * tree.h (build_nonstandard_integer_type): New prototype.
9645 objc:
9646         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
9647
9648 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
9649
9650         PR other/1502:
9651         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
9652         don't ignore unrecognized -W* options.
9653         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
9654         * cpplib.h (cpp_handle_option): Adjust prototype.
9655         * c-decl.c (c_decode_options): Pass 0 as last argument to
9656         cpp_handle_option.
9657
9658         PR c/2896:
9659         * gcc.c (cpp_unique_options): Split from cpp_options.
9660         (cpp_options): Source cpp_unique_options.
9661         (default_compilers): Use cpp_unique_options instead of cpp_options
9662         when used together with cc1_options.
9663         (static_specs): Add cpp_unique_options.
9664         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
9665         when used together with cc1_options.
9666
9667 2002-01-29  Kazu Hirata  <kazu@hxi.com>
9668
9669         * config/h8300/h8300-protos.h: Update the prototype of
9670         output_a_shift.
9671         * config/h8300/h8300.c (output_a_shift): Remove an unused
9672         argument 'insn'.  Remove redundant code.
9673         * config/h8300/h8300.md: Adust to the new prototype of
9674         output_a_shift.
9675
9676 2002-01-29  Kazu Hirata  <kazu@hxi.com>
9677
9678         * config/h8300/h8300-protos.h: Update the prototypes of
9679         emit_a_rotate and expand_a_rotate.
9680         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
9681         first argument to 'enum rtx_code'.
9682         (expand_a_rotate): Likewise.
9683
9684 2002-01-28  Kazu Hirata  <kazu@hxi.com>
9685
9686         * config/h8300/h8300-protos.h: Update the prototype of
9687         output_simode_bld.
9688         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
9689         'log2'.
9690         * config/h8300/h8300.md: Adjust to the new prototype.
9691
9692 2002-01-28  Kazu Hirata  <kazu@hxi.com>
9693
9694         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
9695         redundant code.
9696
9697 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9698
9699         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
9700         is a fixed register before returning pic_offset_table_rtx.
9701         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
9702         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
9703
9704 2002-01-28  Jason Merrill  <jason@redhat.com>
9705
9706         * dwarf2.h: Sync with src version.
9707
9708 2002-01-28  Paul Koning  <pkoning@equallogic.com>
9709
9710         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
9711         BT_FN_VOID_PTR_VAR.
9712         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
9713         * doc/extend.texi (__builtin_prefetch): Update documentation:
9714         first argument is now const void ptr.
9715
9716 2002-01-28  Kazu Hirata  <kazu@hxi.com>
9717
9718         * config/h8300/h8300-protos.h: Remove an unused prototype.
9719
9720 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
9721
9722         * toplev.c (lang_independent_init): Round up identifier size.
9723
9724 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
9725
9726         * config.gcc: Revert previous change.
9727
9728 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
9729
9730         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
9731
9732 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
9733
9734         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
9735         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
9736         other non-elf netbsd config frags.
9737         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
9738         collect2 will does that.
9739         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
9740         shared-lib frobbing will work.
9741
9742 2002-01-28  Kazu Hirata  <kazu@hxi.com>
9743
9744         * config/h8300/h8300.h: Fix formatting.
9745         * config/h8300/h8300.md: Likewise.
9746
9747 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
9748
9749         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
9750         the old, removed AAA_standards fix.
9751         * fixinc/fixincl.x: Rebuilt.
9752
9753 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
9754
9755         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
9756         atexit call in crtbegin, hooked in after call to frame_dummy;
9757         register EH before registering __fini__start.
9758
9759 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
9760
9761         * config/rs6000/altivec.h: Remove spurious semicolons.
9762
9763 2002-01-27  Kazu Hirata  <kazu@hxi.com>
9764
9765         * config/h8300/h8300.md: Replace dead bit extraction patterns
9766         with ones that work.
9767
9768 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9769
9770         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
9771         if not STRICT_ALIGNMENT.
9772         * rtl.h (MEM_ALIGN): Likewise.
9773
9774 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9775
9776         * doc/invoke.texi (-fdump-translation-unit): Revert this
9777         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9778
9779 2002-01-27  Kazu Hirata  <kazu@hxi.com>
9780
9781         * config/h8300/h8300.md (define_constants): New.
9782         (anonymous patterns) Use defined constants appropriately.
9783
9784 2002-01-27  Kazu Hirata  <kazu@hxi.com>
9785
9786         * config/h8300/h8300.c (function_arg): Remove redundant code.
9787
9788 2002-01-26  Richard Henderson  <rth@redhat.com>
9789
9790         * sched-deps.c (reg_pending_uses_head): New.
9791         (reg_pending_barrier): Rename from reg_pending_sets_all.
9792         (find_insn_list): Don't mark inline.
9793         (find_insn_mem_list): Remove.
9794         (add_dependence_list, add_dependence_list_and_free): New.
9795         (flush_pending_lists): Replace only_write param with separate
9796         for_read and for_write parameters.  Update all callers.  Use
9797         add_dependence_list_and_free.
9798         (sched_analyze_1): Do not add reg dependencies here; just set
9799         the pending bits.  Use add_dependence_list.
9800         (sched_analyze_2): Likewise.
9801         (sched_analyze_insn): Replace schedule_barrier_found with
9802         reg_pending_barrier.  Add all dependencies for pending reg
9803         uses, sets, and clobbers.
9804         (sched_analyze): Don't add reg dependencies for calls, just
9805         set pending bits.  Use regs_invalidated_by_call.  Treat
9806         sched_before_next_call as a normal list, not a fake insn.
9807         (init_deps): No funny init for sched_before_next_call.
9808         (free_deps): Free pending mems lists.  Don't zero reg_last.
9809         (init_deps_global): Init reg_pending_uses.
9810         (finish_deps_global): Free it.
9811         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
9812         (find_insn_mem_list): Remove.
9813         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
9814         (propagate_deps): Use them.  Zero temp mem lists.
9815
9816 2002-01-26  Richard Henderson  <rth@redhat.com>
9817
9818         * Makefile.in (CRTSTUFF_CFLAGS): New.
9819         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
9820         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
9821         crtstuff.c instead of alpha assembly version.
9822         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
9823         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
9824         not FORCE_{INIT,FINI}_SECTION_ALIGN.
9825         (__do_global_dtors_aux): Mark used.
9826         (frame_dummy, __do_global_ctors_aux): Mark used.
9827         (fini_dummy, init_dummy): Remove.
9828
9829         * config/alpha/crtbegin.asm: Remove file.
9830         * config/alpha/crtend.asm: Remove file.
9831         * config/alpha/t-crtbe: Remove file.
9832         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
9833         (LINK_EH_SPEC): New.
9834
9835         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
9836         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
9837         calling constructors.
9838         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
9839
9840         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
9841         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
9842         CRT_END_INIT_DUMMY hack.
9843         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
9844         FORCE_{INIT,FINI}_SECTION_ALIGN.
9845
9846         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
9847         FORCE_{INIT,FINI}_SECTION_ALIGN.
9848
9849         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
9850         invocation sequence.
9851         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
9852
9853         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
9854         (FORCE_CODE_SECTION_ALIGN): New.
9855
9856 2002-01-26  Richard Henderson  <rth@redhat.com>
9857
9858         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
9859
9860 2002-01-26  Richard Henderson  <rth@redhat.com>
9861
9862         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
9863         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
9864
9865 2002-01-26  Kazu Hirata  <kazu@hxi.com>
9866
9867         * config/h8300/h8300.md: Remove bit extraction patterns that
9868         cannot be triggered.
9869         Restrict each bit extraction pattern to a variant on which the
9870         pattern is tested.
9871
9872 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
9873
9874         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
9875
9876 2002-01-26  Kazu Hirata  <kazu@hxi.com>
9877
9878         * config/h8300/h8300.md: Remove bit test patterns that cannot
9879         be triggered.
9880         Restrict each bit test pattern to a variant on which the
9881         pattern is tested.
9882
9883 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9884
9885         * builtins.c (expand_builtin_strncat): Remove redundant check for
9886         INTEGER_CST.
9887
9888 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
9889
9890         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
9891         default setting.
9892         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
9893         existing setting.
9894
9895 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
9896
9897         * dbxout.c (dbxout_init): Use assemble_name rather than just
9898         stripping off the first character.
9899         (dbxout_source_file): Likewise.
9900
9901 2002-01-25  DJ Delorie  <dj@redhat.com>
9902
9903         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
9904         using rtx_equal_p, not by comparing pointers.
9905
9906 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
9907
9908         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
9909         for PIC_OFFSET_TABLE_REGNUM.
9910         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
9911
9912 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
9913
9914         * config.gcc (x86_64-*-freebsd*): New target.
9915         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
9916         value.
9917         (i[34567]86-*-freebsd*): Don't include svr4.h.
9918         * config/i386/freebsd64.h: New file.
9919
9920 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
9921
9922         * config/alpha/x-vms (version): Make static.
9923
9924         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
9925         in previous checkin.
9926
9927         * Makefile.in (install-headers-cp): New target.
9928         * config.gcc (alpha-dec-*vms*): Install headers with
9929         install-headers-cp
9930
9931 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
9932
9933         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
9934         avoid it's copies.
9935
9936 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9937
9938         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
9939         of compare_tree_int.
9940         (expand_builtin_strncat): Likewise.
9941         * c-decl.c (finish_struct): Use tree_low_cst.
9942         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
9943         * tree.c (compare_tree_int): Likewise.
9944
9945 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
9946
9947         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
9948         adjustments even if they are implemented by more than two insns.
9949
9950 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
9951
9952         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
9953         * df.h (struct ref): Kill B.
9954         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
9955
9956         * basic-block.h (PROP_EQUAL_NOTES): New flag.
9957         * flow.c (propagate_one_insn): Use it.
9958         (mark_used_regs): Handle NIL.
9959
9960 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
9961
9962         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
9963         to help folding.
9964
9965 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
9966
9967         * rs6000.md (prefetch): Make address V4SI mode so that the address
9968         is restricted to legitimate form for instruction.
9969
9970 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
9971
9972         * doc/install.texi (xtensa-*-elf): New target.
9973         (xtensa-*-linux*): New target.
9974         * doc/contrib.texi: Add myself.
9975
9976 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
9977
9978         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
9979         purpose register to hold an SImode (or smaller) value.
9980
9981 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
9982
9983         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
9984         registry only.
9985         * crtstuff.c: Likewise.
9986
9987 2002-01-25  Kazu Hirata  <kazu@hxi.com>
9988
9989         * config/h8300/h8300.md (negation patterns): Tighten
9990         predicates to register_operand.
9991
9992 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
9993
9994         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
9995         mode, not Pmode.
9996
9997         * builtins.c (expand_builtin_prefetch): Same.
9998
9999 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10000
10001         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
10002         modes.
10003
10004 2002-01-24  Kazu Hirata  <kazu@hxi.com>
10005
10006         * config/h8300/h8300.c (print_operand): Remove support for
10007         operand character 'A'.
10008         * config/h8300/h8300.md (three anonymous patterns): Replace
10009         operand character 'A' with either 'T' or 'S'.
10010
10011 2002-01-24  Kazu Hirata  <kazu@hxi.com>
10012
10013         * config/h8300/h8300.c (print_operand): Remove support for
10014         operand character 'U'.
10015
10016 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
10017
10018         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
10019
10020 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
10021
10022         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
10023         values to be assigned to the stack pointer.
10024
10025 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
10026
10027         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
10028         to const_double needs to be done right for big-endian systems.
10029
10030 2002-01-24  Jason Merrill  <jason@redhat.com>
10031
10032         PR c++/2432
10033         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
10034         to can_throw_internal.
10035
10036 2002-01-23  Richard Henderson  <rth@redhat.com>
10037
10038         * fold-const.c (fold): Change UINT_MAX test to check vs precision
10039         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
10040
10041 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10042
10043         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
10044         (symGOT2reg): Use them, then set as GOT value as unchanging.
10045         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
10046         as a temporary, if possible.
10047         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
10048         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
10049
10050 2002-01-23  Kazu Hirata  <kazu@hxi.com>
10051
10052         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
10053         accept to accept 0x80 as operands[2].
10054
10055 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10056
10057         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
10058
10059 2002-01-23  Richard Henderson  <rth@redhat.com>
10060
10061         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
10062
10063 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
10064
10065         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
10066         (parmlist_or_identifiers_1): Verify that only a parmlist follows
10067         an attribute.
10068
10069 2002-01-23  Richard Henderson  <rth@redhat.com>
10070
10071         * expr.c (move_by_pieces_1): Extend size before negation.
10072
10073         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
10074         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
10075         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
10076         * config/m68k/t-m68kelf: Likewise.
10077
10078 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
10079
10080         * config/xtensa/elf.h: New file.
10081         * config/xtensa/lib1funcs.asm: New file.
10082         * config/xtensa/lib2funcs.S: New file.
10083         * config/xtensa/linux.h: New file.
10084         * config/xtensa/t-xtensa: New file.
10085         * config/xtensa/xtensa-config.h: New file.
10086         * config/xtensa/xtensa-protos.h: New file.
10087         * config/xtensa/xtensa.c: New file.
10088         * config/xtensa/xtensa.h: New file.
10089         * config/xtensa/xtensa.md: New file.
10090         * config.gcc (xtensa-*-elf*): New target.
10091         (xtensa-*-linux*): New target.
10092         * cse.c (canon_hash): Compare rtx pointers instead of register
10093         numbers.  This is required for the Xtensa port.
10094         * integrate.c (copy_insn_list): Handle case where the static
10095         chain is in memory and the memory address has to be copied to
10096         a register.
10097         * doc/invoke.texi (Option Summary): Add Xtensa options.
10098         (Xtensa Options): New node.
10099         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
10100
10101 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
10102
10103         * diagnostic.c (internal_error): Do ICE suppression only
10104         when ENABLE_CHECKING is not defined.
10105
10106         * c-typeck.c (require_complete_type): Return error_mark_node
10107         if type is error_mark_node.
10108
10109 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
10110
10111         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
10112         -Os and issue a warning.
10113
10114 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
10115
10116         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
10117         current (lack of) need for host configuration by hand.
10118
10119         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
10120         references.  Documentation of some target macros moved from
10121         hostconfig.texi to tm.texi.
10122
10123 2002-01-23  Will Cohen  <wcohen@redhat.com>
10124
10125         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
10126         defined.
10127
10128 2002-01-23  Kazu Hirata  <kazu@hxi.com>
10129
10130         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
10131         operand[3].
10132
10133 2002-01-23  Jason Merrill  <jason@redhat.com>
10134
10135         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
10136
10137         * function.c (assign_parms): Don't put args of inline functions
10138         into registers when not optimizing.
10139
10140 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
10141
10142         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
10143         (prologue_use): New pattern.
10144         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
10145         preference to gen_rtx_USE.
10146         (thumb_expand_prologue): Use gen_prologue_use in preference to
10147         gen_rtx_USE.
10148         (thumb_expand_epilogue): Use gen_prologue_use in preference to
10149         gen_rtx_USE.
10150
10151 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
10152
10153         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
10154
10155 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
10156
10157         PR c/3504
10158         * doc/extend.texi: Correct documentation of __alignof__.
10159
10160 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
10161
10162         * params.h: Rename arguments of DEFPARAM so that it will be
10163         recognized as a translation keyword.
10164
10165 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
10166
10167         * extend.texi: Document altivec functions.
10168         Fix N-bit adjectives in X86 builtin documentation.
10169
10170 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
10171
10172         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
10173         auto_inc_dec values.
10174
10175 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
10176
10177         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
10178         after backslash.
10179         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
10180
10181 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
10182
10183         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
10184
10185 2002-01-22  Richard Henderson  <rth@redhat.com>
10186
10187         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
10188         copy_insn not copy_rtx.
10189
10190 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
10191
10192         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
10193         "nonzero" as that might add "1" bits.  Ensure "constop" is
10194         properly sign extened.
10195         (force_to_mode): Tweak for sign extended constop.
10196
10197 2002-01-22  Richard Henderson  <rth@redhat.com>
10198
10199         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
10200         for_each_rtx instead of assuming we're already looking at the MEM.
10201         (split_small_symbolic_mem_operand): Likewise.
10202         * config/alpha/alpha.h (PREDICATE_CODES): Update.
10203         * config/alpha/alpha.md (small symbolic memory splitters): Update.
10204
10205 2002-01-22  Richard Henderson  <rth@redhat.com>
10206
10207         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
10208         sequence number for the literal.
10209         (divmoddi_internal_er): Likewise.
10210
10211 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10212
10213         PR java/4972
10214         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
10215         in LIBICONV variable.
10216         * configure: Regenerated.
10217
10218 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
10219
10220         * dependence.c (build_def_use): Remove array_idx.
10221
10222         * dwarfout.c (last_filename): Remove.
10223         (output_compile_unit_die): Remove last_filename.
10224
10225 2002-01-22  Roger Sayle  <roger@eyesopen.com>
10226             Richard Henderson  <rth@redhat.com>
10227
10228         PR opt/3640
10229         * fold-const.c (fold): Optimize unsigned comparisons against
10230         UINT_MAX (and similar unsigned constants).
10231
10232 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
10233
10234         * Makefile.in (loop.o): Depend on OPTABS_H.
10235         * loop.c (emit_prefetch_instructions): Check the prefetch operand
10236         against the predicate.
10237
10238         PR target/5379
10239         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
10240         for the address operand.
10241
10242 2002-01-22  Richard Henderson  <rth@redhat.com>
10243
10244         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
10245
10246 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10247
10248         PR other/5450
10249         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
10250         preprocessor flags.
10251
10252 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
10253
10254         * config.gcc (x86_64-*-netbsd*): New target.
10255         * config/i386/netbsd64.h: New file.
10256
10257 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
10258
10259         * regrename.c (kill_value): Fix typo.
10260
10261 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
10262
10263         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
10264
10265         * config/rs6000/rs6000.h: Same.
10266
10267         * function.c (instantiate_virtual_regs): Remove
10268         STARTING_FRAME_PHASE.
10269         (assign_stack_local_1): Same.
10270         Calculate frame phase.
10271
10272 2002-01-22  Nick Clifton  <nickc@redhat.com>
10273
10274         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
10275         variable declaration to outer scope in order to simplify
10276         future extensions.
10277         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
10278         arm_hard_regno_mode_ok.
10279         * config/arm/arm-protos.h: Add a prototype for
10280         arm_hard_regno_mode_ok.
10281         * config/arm/arm.c (soft_df_operand): Remove now redundant
10282         check for DImode values using IP_REGNUM.
10283         (nonimmediate_soft_df_operand): Remove now redundant check for
10284         DImode values using IP_REGNUM.
10285         (arm_hard_regno_mode_ok): New function. New check: make sure
10286         that DImode values are not stored in IP_REGNUM.
10287
10288         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
10289         note with a USE.
10290         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
10291
10292 2002-01-22  Jason Merrill  <jason@redhat.com>
10293
10294         * c-semantics.c (genrtl_compound_stmt): Only check nesting
10295         consistency if this COMPOUND_STMT is scoped.
10296
10297 2002-01-22  Kazu Hirata  <kazu@hxi.com>
10298
10299         * predict.c: Fix formatting.
10300         * print-tree.c: Likewise.
10301         * protoize.c: Likewise.
10302         * real.h: Likewise.
10303         * rtl.h: Likewise.
10304         * sbitmap.h: Likewise.
10305         * scan.c: Likewise.
10306         * sched-deps.c: Likewise.
10307         * sched-vis.c: Likewise.
10308         * sdbout.c: Likewise.
10309         * sibcall.c: Likewise.
10310         * ssa.c: Likewise.
10311         * ssa-ccp.c: Likewise.
10312         * ssa-dce.c: Likewise.
10313         * stmt.c: Likewise.
10314         * stor-layout.c: Likewise.
10315         * system.h: Likewise.
10316
10317 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10318
10319         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
10320         if fits in bounds of base type.
10321
10322         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
10323         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
10324         (add_bound_info, default): If can't find a context, make a
10325         SAVE_EXPR.
10326         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
10327
10328 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
10329
10330         * c-typeck.c (parser_build_binary_op): If result from
10331         build_binary_op is ERROR_MARK just return error_mark_node without
10332         further processing.
10333
10334 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
10335
10336         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
10337         Split a.out-specific bits into...
10338         * config/netbsd-aout.h: ...this.
10339         * config/netbsd-elf.h: New file.
10340         * config/alpha/netbsd-elf.h: Remove.
10341         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
10342         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
10343         (STARTFILE_SPEC): Remove redundant definition.
10344         (ENDFILE_SPEC): Likewise.
10345         (LINK_SPEC): Likewise.
10346         (CPP_SPEC): Likewise.
10347         (ASM_SPEC): Likewise.
10348         (LIB_SPEC): Likewise.
10349         (SWITCH_TAKES_ARG): Likewise.
10350         (TARGET_MEM_FUNCTIONS): Likewise.
10351         (CPP_PREDEFINES): Redefine.
10352         (ASM_FINAL_SPEC): Remove redefinition.
10353         (ASM_COMMENT_START): Redefine.
10354         (FUNCTION_PROFILER): Define.
10355         (TARGET_VERSION): Redefine.
10356         Comment and formatting cleanup.
10357         * config/i386/netbsd.h: Include <netbsd-aout.h>.
10358         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
10359         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
10360         big- or little-endian.
10361         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
10362         * config.gcc (*-*-netbsd*): Add definitions common to all
10363         NetBSD configs.
10364         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
10365         gnu_ld definitions.  Add netbsd-elf.h to and remove
10366         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
10367         tmake_file, and don't lose previous tmake_file contents.
10368         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
10369         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
10370         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
10371         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
10372         (mipsel-*-netbsd*): Rename this to...
10373         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
10374         mips/little.h to tm_file for mips*el-*.
10375         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
10376         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
10377         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
10378
10379 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10380
10381         * pa-protos.h (reg_before_reload_operand): New function prototype.
10382         * pa.c (reg_before_reload_operand): New function implementation.
10383         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
10384         contraints to "*m".
10385
10386 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10387
10388         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
10389
10390 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10391
10392         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
10393         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
10394         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
10395         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
10396         (ENDFILE_SPEC): Undefine.
10397         (STARTFILE_SPEC): Redefine for PA.
10398
10399 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10400
10401         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
10402
10403 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
10404
10405         * config.gcc: Add entries to supported PowerPC --with-cpu
10406         types.
10407
10408 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
10409
10410         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
10411         true for 64-bit mode only SSE registers in 32-bit mode.
10412
10413 2002-01-21  Kazu Hirata  <kazu@hxi.com>
10414
10415         * unwind-dw2.c: Fix formatting.
10416         * unwind-dw2-fde.c: Likewise.
10417         * unwind-dw2-fde.h: Likewise.
10418         * unwind-pe.h: Likewise.
10419         * varasm.c: Likewise.
10420         * varray.h: Likewise.
10421
10422 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
10423
10424         Remove workaround for register stack overwrite bug in mmix.
10425         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
10426         support for TARGET_REG_STACK_FILL_BUG.
10427         * config/mmix/mmix.h: Remove member has_call_without_parameters.
10428         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
10429         Delete.
10430         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
10431         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
10432         -mno-reg-stack-fill-bug-workaround.
10433         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
10434         machine member has_call_without_parameters.
10435         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
10436         -mreg-stack-fill-bug-workaround and
10437         -mno-reg-stack-fill-bug-workaround.
10438         (MMIX Options): Ditto.
10439
10440 2002-01-21  Kazu Hirata  <kazu@hxi.com>
10441
10442         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
10443         as appropriate.
10444         Remove redundant code.
10445
10446 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
10447
10448         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
10449         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10450         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10451         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
10452         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
10453         out target macro definitions and non-target-specific comments
10454         mostly taken from old versions of the manual.
10455
10456 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10457
10458         * config/h8300/h8300.h: Fix comment formatting.
10459         * config/ia64/aix.h: Likewise.
10460         * config/ia64/ia64-protos.h: Likewise.
10461         * config/ia64/ia64.c: Likewise.
10462         * config/ia64/ia64.h: Likewise.
10463         * config/ia64/ia64intrin.h: Likewise.
10464         * config/ia64/linux.h: Likewise.
10465         * config/ia64/unwind-aix.c: Likewise.
10466         * config/ia64/unwind-ia64.c: Likewise.
10467
10468 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10469
10470         * config/h8300/h8300.c: Revise comments about shift code.
10471
10472 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10473
10474         * config/h8300/h8300.c (function_arg): Update a comment.
10475
10476 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10477
10478         * config/h8300/h8300.md: Update the comments at the beginning
10479         of the file.
10480
10481 2002-01-20  Kazu Hirata  <kazu@hxi.com>
10482
10483         * config/i370/i370.c: Fix comment formatting.
10484         * config/i370/i370.h: Likewise.
10485         * config/i370/i370.md: Likewise.
10486         * config/i370/linux.h: Likewise.
10487
10488 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10489
10490         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
10491
10492         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
10493         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
10494         in incomplete case.
10495
10496 2002-01-20  Graham Stott  <grahams@redhat.com>
10497
10498         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
10499
10500 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10501
10502         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
10503
10504 2002-01-19  Tom Rix  <trix@redhat.com>
10505
10506         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
10507
10508 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
10509
10510         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
10511
10512         * function.c (assign_stack_local_1): Adjust x_frame_offset with
10513         STARTING_FRAME_PHASE.
10514         (STARTING_FRAME_PHASE): New.
10515         (instantiate_virtual_regs): Check saneness of
10516         STARTING_FRAME_PHASE.
10517
10518         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
10519
10520 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
10521
10522         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
10523
10524 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10525
10526         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
10527         be used for bootstrapping GCC 3.0.
10528
10529 2002-01-18  Kazu Hirata  <kazu@hxi.com>
10530
10531         * config/h8300/h8300.md: Fix an insn length.
10532
10533 2002-01-18  Kazu Hirata  <kazu@hxi.com>
10534
10535         * bitmap.h: Fix comment formatting.
10536         * combine.c: Likewise.
10537         * cppfiles.c: Likewise.
10538         * c-pragma.h: Likewise.
10539         * c-typeck.c: Likewise.
10540         * df.c: Likewise.
10541         * dwarf2out.c: Likewise.
10542         * function.c: Likewise.
10543         * gcc.c: Likewise.
10544         * genattrtab.c: Likewise.
10545         * gthr-win32.h: Likewise.
10546         * haifa-sched.c: Likewise.
10547         * predict.c: Likewise.
10548         * rtlanal.c: Likewise.
10549         * rtl.h: Likewise.
10550         * unwind-dw2-fde.h: Likewise.
10551         * unwind-pe.h: Likewise.
10552         * vmsdbgout.c: Likewise.
10553
10554 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10555
10556         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
10557         if type_required and passed decl.
10558
10559 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
10560
10561         * config.gcc (cpu_type): Include altivec.h in powerpc
10562         extra_headers.
10563         Same for darwin.
10564
10565         * config/rs6000/altivec.h: New.
10566
10567 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
10568
10569         * doc/install.texi (*-ibm-aix*): Update assembler and exception
10570         handling information.
10571         * doc/trouble.texi (Interoperation): Add libstdc++ information
10572         for AIX.
10573         (Misunderstandings): Add template instantiation and static template
10574         member information for AIX.
10575
10576 2002-01-17  Jason Merrill  <jason@redhat.com>
10577
10578         * dbxout.c (dbxout_type): Support const and volatile.
10579
10580         * except.c (add_partial_entry): Remove backwards compatibility code.
10581         (end_protect_partials): Likewise.
10582
10583 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
10584
10585         * config/ia64/ia64.md (prologue_use): New.
10586         * config/ia64/ia64.c (ia64_expand_prologue): Use
10587         gen_prologue_use instead of gen_rtx_USE.
10588         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
10589         as CODE_FOR_pred_rel_mutex.
10590         (ia64_sched_reorder2): Likewise.
10591
10592 2002-01-16  Eric Christopher  <echristo@redhat.com>
10593
10594         * config/mips/r3900.h: Reformat.
10595         (SUBTARGET_CPP_SIZE_SPEC): Remove.
10596         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
10597         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
10598         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
10599         * config/mips/t-elf: Remove mips3 multilib.
10600
10601 2002-01-16  H.J. Lu <hjl@gnu.org>
10602
10603         * config/mips/linux.h: Include "mips/abi64.h".
10604
10605 2002-01-16  H.J. Lu <hjl@gnu.org>
10606
10607         * config/mips/t-linux: New.
10608
10609         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
10610
10611         * config/mips/linux.h: Don't include "gofast.h".
10612         (INIT_SUBTARGET_OPTABS): Removed.
10613
10614 2002-01-16  Kazu Hirata  <kazu@hxi.com>
10615
10616         * config/h8300/h8300-protos.h: Replace emit_a_shift with
10617         output_a_shift.
10618         * config/h8300/h8300.c: Likewise.
10619         * config/h8300/h8300.md: Likewise.
10620
10621 2002-01-16  Kazu Hirata  <kazu@hxi.com>
10622
10623         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
10624         spaces after an opcode name.
10625         (pushqi1_h8300hs): Likewise.
10626         (pushhi1_h8300hs): Likewise.
10627
10628 2002-01-16  Kazu Hirata  <kazu@hxi.com>
10629
10630         * doc/extend.texi: Replace "option" with "attribute"
10631         appropriately.
10632
10633 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
10634
10635         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
10636         (and:DI () (const_int -8)).
10637         (split_small_symbolic_mem_operand): Split
10638         (mem (and:DI () (const_int -8)).
10639
10640 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
10641
10642         PR target/5309:
10643         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
10644         same way as TYPE_IMUL.
10645         (ultrasparc_sched_reorder): Likewise.
10646         * config/sparc/sparc.md (type): Add comment to update
10647         ultrasparc_sched_reorder when making changes.
10648
10649 2002-01-16  Kazu Hirata  <kazu@hxi.com>
10650
10651         * doc/invoke.texi: Change the dump file name of block
10652         reordering pass from 28.bbro to 29.bbro.
10653         Mention -dk option.
10654
10655 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
10656
10657         * i386.md (minsf splitter): Fix pasto.
10658
10659 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
10660
10661         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
10662         to frame pointer initialisation instruction.
10663         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
10664         initialisation instruction.
10665         (soft_df_operand): Do not accept the IP register.
10666         (nonimmediate_soft_df_operand): Do not accept the IP register.
10667
10668 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
10669
10670         PR target/5357:
10671         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
10672         MASK_V8 being both set.
10673
10674 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
10675
10676         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
10677         insn for GOT register; add REG_MAYBE_DEAD notes instead.
10678         config/s390/s390.md (call, call_value): Add GOT register to
10679         CALL_INSN_FUNCTION_USAGE where needed.
10680         (call_exp, call_value_exp): New.
10681
10682 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
10683
10684         * config/arm/arm.c: General formatting tidy up.
10685
10686 2002-01-16  Graham Stott  <grahams@redhat.com>
10687
10688         * calls.c (try_to_integrate): Use "(size_t)" intermediate
10689         cast and when casting an integer literal to "rtx" pointer.
10690         (expand_call): Likewise.
10691         * flow.c (try_pre_increment): Likewise.
10692         (find_use_as_address): Likewise.
10693         * integrate.c (expand_iline_function): Likewise.
10694         * regmove.c (try_auto_increment): Likewise.
10695
10696 2002-01-16  Graham Stott  <grahams@redhat.com>
10697
10698         * sched-rgn.c (passed): Use sbitmap_free.
10699         (header): Likewise.
10700         (inner): Likewise.
10701         (in_queue): Likewise.
10702         (in_stack): Likewise.
10703
10704 2002-01-15  Eric Christopher  <echristo@redhat.com>
10705
10706         * flow.c (propagate_one_insn): Change to use fatal_insn.
10707
10708 2002-01-15  Kazu Hirata  <kazu@hxi.com>
10709
10710         * expmed.c (extract_fixed_bit_field): Remove unused code.
10711         * system.h: Poison SLOW_ZERO_EXTEND.
10712         * doc/tm.texi: Remove.
10713         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
10714         * config/arm/arm.h: Likewise.
10715         * config/avr/avr.h: Likewise.
10716         * config/clipper/clipper.h: Likewise.
10717         * config/convex/convex.h: Likewise.
10718         * config/d30v/d30v.h: Likewise.
10719         * config/dsp16xx/dsp16xx.h: Likewise.
10720         * config/elxsi/elxsi.h: Likewise.
10721         * config/fr30/fr30.h: Likewise.
10722         * config/h8300/h8300.h: Likewise.
10723         * config/i370/i370.h: Likewise.
10724         * config/i386/i386.h: Likewise.
10725         * config/m68k/m68k.h: Likewise.
10726         * config/mips/mips.h: Likewise.
10727         * config/ns32k/ns32k.h: Likewise.
10728         * config/pdp11/pdp11.h: Likewise.
10729         * config/pj/pj.h: Likewise.
10730         * config/s390/s390.h: Likewise.
10731         * config/sh/sh.h: Likewise.
10732         * config/stormy16/stormy16.h: Likewise.
10733         * config/v850/v850.h: Likewise.
10734         * config/vax/vax.h: Likewise.
10735         * config/we32k/we32k.h: Likewise.
10736
10737 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
10738
10739         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
10740         (altivec_lvsl): Change constraint to b.
10741         (altivec_lvsr): Same.
10742         (altivec_lvebx): Same.
10743         (altivec_lvehx): Same.
10744         (altivec_lvewx): Same.
10745         (altivec_lvxl): Same.
10746         (altivec_lvx): Same.
10747         (altivec_stvx): Add parallel.
10748         (altivec_stvxl): Same.
10749         (altivec_stvehx): Same.
10750         (altivec_stvebx): Same.
10751         (altivec_stvebx): Same.
10752
10753 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
10754
10755         * config.gcc: Change altivec.h to altivec-defs.h.
10756
10757         * config/rs6000/altivec.h: Delete.
10758
10759         * config/rs6000/altivec-defs.h: Add.
10760
10761 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10762
10763         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
10764         and UMOD modes.
10765
10766         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
10767         less than or equal to eight bytes.
10768
10769         * vax.md (andsi3): Remove constraints and change SET destination
10770         operand type to nonimmediate_operand.
10771         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
10772         when it is a CONST_INT.
10773
10774 2002-01-15  Jason Merrill  <jason@redhat.com>
10775
10776         * c-common.def (FILE_STMT): New code.
10777         * c-common.c (statement_code_p): It's a statement.
10778         * c-common.h (stmt_tree_s): Add x_last_filename.
10779         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
10780         (last_expr_filename): New macro.
10781         * c-semantics.c (begin_stmt_tree): Initialize it.
10782         (add_stmt): If the filename changed, also insert a
10783         FILE_STMT.
10784         (expand_stmt): Handle seeing one.
10785
10786 2002-01-15  Eric Christopher  <echristo@redhat.com>
10787
10788         * flow.c (propagate_one_insn): Add error message and print out
10789         insn for debugging.
10790
10791 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
10792
10793         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
10794         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
10795         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
10796         TRAMPOLINE_ALIGNMENT.
10797         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
10798         to be in bits.
10799         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
10800         PCC_BITFIELD_TYPE_MATTERS.
10801         * config/interix.h (STDC_VALUE): Remove.  Use
10802         STDC_0_IN_SYSTEM_HEADERS.
10803         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
10804         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
10805         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
10806
10807 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10808
10809         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
10810         not work on this platform currently.
10811
10812 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
10813
10814         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
10815         readonly_warning in _().
10816
10817 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
10818
10819         * gcc.c (delete_if_ordinary): Backout previous change.
10820
10821 2002-01-15  Kazu Hirata  <kazu@hxi.com>
10822
10823         * config/h8300/h8300.c (print_operand): Remove support for
10824         unused operand characters.
10825
10826         * read-rtl.c: Fix formatting.
10827         * real.c: Likewise.
10828         * recog.c: Likewise.
10829         * regclass.c: Likewise.
10830         * regmove.c: Likewise.
10831         * reg-stack.c: Likewise.
10832         * reload1.c: Likewise.
10833         * rtlanal.c: Likewise.
10834
10835 2002-01-15  Kazu Hirata  <kazu@hxi.com>
10836
10837         * config/i386/i386.c: Fix formatting.
10838
10839 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
10840
10841         * c-typeck.c (process_init_element): Don't save_expr
10842         COMPOUND_LITERAL_EXPR if just its initializer will be used.
10843
10844 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
10845
10846         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
10847         emit optional traceback table if optimize_size or TARGET_ELF.
10848         * config/rs6000/rs6000.md (prefetch): New.
10849
10850 2002-01-15  Andreas Jaeger  <aj@suse.de>
10851
10852         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
10853
10854 2002-01-15  Kazu Hirata  <kazu@hxi.com>
10855
10856         * mips-tfile.c: Fix formatting.
10857
10858 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
10859
10860         * unroll.c (final_reg_note_copy): Fix previous commit.
10861
10862 2002-01-14  Kazu Hirata  <kazu@hxi.com>
10863
10864         * config/h8300/h8300-protos.h: Remove the prototype for
10865         eq_operator.
10866         * config/h8300/h8300.c (eq_operator): Remove.
10867
10868 2002-01-14  Richard Henderson  <rth@redhat.com>
10869
10870         * config/i386/i386.md (prefetch): Tidy.
10871         (prefetch_3dnow): Fix locality operand.
10872
10873 2002-01-14  Richard Henderson  <rth@redhat.com>
10874
10875         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
10876         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
10877
10878 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
10879
10880         * reload1.c (reload_combine): Pass reg_sum replacement through
10881         copy_rtx in loop performing multiple changes.
10882
10883 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
10884
10885         * except.c (remove_unreachable_regions): New.
10886         (free_eh_status): Clear exception_handler_labels.
10887         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
10888         (find_exception_handler_labels): Don't add the same label more than
10889         once.
10890         (remove_exception_handler_label): Don't die if
10891         find_exception_handler_labels hasn't been called for the current
10892         function yet.
10893
10894 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
10895
10896         * toplev.c (rest_of_compilation): Rebuild jump labels after
10897         gcse.
10898
10899 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
10900
10901         * doc/extend.texi: Move documentation of X86 built-in functions
10902         here.
10903         * doc/invoke.texi: From here.
10904         * doc/sourcebuild.texi: Document location of documentation for
10905         machine built-in functions.
10906
10907 2002-01-13  Christopher Faylor  <cgf@redhat.com>
10908
10909         * cppfiles.c (TEST_THRESHOLD): New macro.
10910         (SHOULD_MMAP): Ditto.
10911         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
10912         be used.
10913
10914 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
10915
10916         * unroll.c (final_reg_note_copy): Properly handle
10917         REG_LABEL
10918         (unroll_loops): Fix LOOP_CONDITION heuristics.
10919
10920 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
10921
10922         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
10923         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
10924
10925 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
10926
10927         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
10928         threaded loop.
10929
10930 2002-01-14  Tom Rix  <trix@redhat.com>
10931
10932         * config/rs6000/rs6000.md: Fix typo with sradi.
10933
10934 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
10935
10936         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
10937         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
10938         (clrstrdi, clrstrsi): Adapt callers.
10939
10940         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
10941
10942         (movti splitter): Never use register 0 as base register.
10943
10944 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
10945
10946         * combine.c (simplify_shift_const): Always generate new rtx
10947         for shift expression instead of reusing given expression.
10948
10949 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10950
10951         * config/alpha/alpha.c (alpha_expand_mov): Don't call
10952         alpha_legitimize_address unless mode is Pmode.
10953
10954 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
10955
10956         * doc/md.texi (Modifiers): Document the '*' constraint for the
10957         user.
10958
10959         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
10960         * doc/extend.texi (Function Attributes): 'interrupt' is valid
10961         for xstormy16 too.
10962
10963 2002-01-13  Richard Henderson  <rth@redhat.com>
10964
10965         * reload.c (find_reloads): Use a hard reg destination as reload reg
10966         for an input reload of the source.
10967
10968 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10969
10970         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
10971         more generic.
10972
10973 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
10974
10975         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
10976         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
10977
10978         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
10979
10980 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10981
10982         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
10983
10984 2002-01-12  Tom Rix  <trix@redhat.com>
10985
10986         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
10987         TARGET_POWERPC64.
10988
10989 2002-01-12  Richard Henderson  <rth@redhat.com>
10990
10991         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
10992
10993         * doc/invoke.texi: Update Alpha options.
10994
10995         * doc/invoke.texi: Update i386 built-in function lists.
10996
10997 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
10998
10999         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
11000         referencing outside.
11001
11002 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11003
11004         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
11005         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
11006         offsets, and change line folding.
11007         * optabs.c (expand_binop): Remove warnings.
11008         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
11009
11010 2002-01-12  Graham Stott <grahams@redhat.com>
11011
11012         * attribs.c (handle_deprecated_attribute): constify WHAT.
11013         * diagnostic.c (warn_deprecated_use): Add braces, fixes
11014         dangling else warning and constify WHAT.
11015         * except.h (struct function, struct inline_remap): Move
11016         struct tag forward defs before all prototypes.
11017         (duplicate_eh_regions): Whitespace.
11018
11019 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
11020
11021         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11022         MODE_BASE_REG_CLASS.
11023         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
11024
11025 2002-01-12  Richard Henderson  <rth@redhat.com>
11026
11027         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
11028         (ix86_expand_vector_move): New.
11029         (bdesc_2arg): Remove andps, andnps, orps, xorps.
11030         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
11031         Remove old prefetch builtins.  Special case the logicals removed above.
11032         (ix86_expand_builtin): Likewise.
11033         (safe_vector_operand): Use V4SFmode, not TImode.
11034         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
11035         (ix86_expand_timode_binop_builtin): New.
11036         * config/i386/i386-protos.h: Update.
11037         * config/i386/i386.h (enum ix86_builtins): Update.
11038         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
11039         Use ix86_expand_vector_move in vector move expanders.
11040         (movti_internal, movti_rex64): Add xorps alternative.
11041         (sse_clrv4sf): Rename and adjust from sse_clrti.
11042         (prefetch): Don't work so hard.
11043         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
11044         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
11045         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
11046
11047 2002-01-11  Richard Henderson  <rth@redhat.com>
11048
11049         * config/i386/mmintrin.h: New file.
11050         * config/i386/xmmintrin.h: New file.
11051         * config.gcc (i?86-*-*): Add extra_headers.
11052         * simplify-rtx.c (simplify_unary_operation): Handle saturating
11053         truncation codes.
11054         (simplify_binary_operation): Handle saturating arithmetic codes.
11055         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
11056         not the lowpart subreg.
11057         (ix86_expand_builtin): Return a TImode dummy register instead of 0
11058         on error.
11059         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
11060
11061 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11062
11063         * conflict.c (conflict_graph_compute): Free regsets when finished.
11064         * ssa.c (compute_coalesced_reg_partition): Likewise.
11065
11066 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11067
11068         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
11069         every where we allocate a register.
11070
11071 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11072
11073         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
11074         * lcm.c (compute_earliest, compute_farthest): Likewise.
11075
11076 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
11077
11078         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
11079
11080 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
11081
11082         * doc/rtl.texi (Insns): Fix 2 typos.
11083
11084 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
11085
11086         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
11087         options.  Use @table @gcctabopt for MMIX options.  Add index
11088         entries for MMIX options.  Start new paragraph with first
11089         heading of the machine-dependent options.
11090
11091 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11092
11093         PR other/5299
11094         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
11095         * combine.c (force_to_mode): Same.
11096         * reload1.c (clear_reload_reg_in_use): Same.
11097
11098 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
11099
11100         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
11101         and 'subtargets'.
11102
11103 2002-01-11  Andreas Jaeger  <aj@suse.de>,
11104             Brad Lucier <lucier@math.purdue.edu>
11105
11106         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
11107         mcpu.
11108
11109 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
11110
11111         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
11112         Protect with IN_LIBGCC.
11113         (LINK_EH_SPEC): Add required trailing space.
11114
11115 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
11116
11117         * c-tree.h: Move function declarations so that they are listed
11118         under the filename which contains them.
11119         (check_identifier, finish_decl_top_level,
11120         lookup_name_current_level_global, shadow_record_fields): Remove.
11121
11122 2002-01-11  Andreas Jaeger  <aj@suse.de>
11123
11124         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
11125         march.
11126
11127 2002-01-10  Richard Henderson  <rth@redhat.com>
11128
11129         * config/alpha/alpha.c (print_operand): Add 'J'.
11130         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
11131         new operand with the sequence number for the lituse.  When splitting
11132         the insns, use gen_movdi_er_high_g and generate a sequence number.
11133         (gen_movdi_er_high_g): Print the sequence number if non-zero.
11134
11135 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
11136
11137         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
11138         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
11139         stvxl.
11140         (altivec_expand_builtin): Same.
11141         (altivec_expand_stv_builtin): New.
11142
11143         * config/rs6000/rs6000.h (rs6000_builtins): Same.
11144
11145         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
11146         ("altivec_lvehx"): New.
11147         ("altivec_lvewx"): New.
11148         ("altivec_lvxl"): New.
11149         ("altivec_lvx"): New.
11150         ("altivec_stvx"): New.
11151         ("altivec_stvebx"): New.
11152         ("altivec_stvehx"): New.
11153         ("altivec_stvewx"): New.
11154         ("altivec_stvxl"): New.
11155
11156 2002-01-10  Richard Henderson  <rth@redhat.com>
11157
11158         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
11159         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
11160         care not to delete instructions twice.
11161
11162 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
11163
11164         * toplev.c: Don't declare environ (it's not used anywhere).
11165         * configure.in: Don't check for declaration of environ.
11166         * config/i386/xm-mingw32.h: Don't #define environ.
11167         * config.in, configure: Regenerate.
11168
11169 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
11170
11171         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
11172         * configure: Regenerate.
11173
11174         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
11175         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
11176         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
11177         alpha/xm-vms.h.
11178         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
11179         LIMITS_H_TEST here, not in m68k/x-next.
11180         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
11181         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
11182
11183         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
11184         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
11185         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
11186
11187         * config/i386/x-djgpp: Renamed i386/t-djgpp.
11188         * config/m88k/x-dolph: Renamed m88k/t-dolph.
11189         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
11190         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
11191         replacement of quadlib.asm with quadlib.c.
11192
11193         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
11194         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
11195         config/rs6000/xm-beos.h: Delete file.
11196
11197         * config.gcc: Update to match above changes.
11198
11199 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11200
11201         * config/h8300/h8300.h: Fix comment typos.
11202         * config/h8300/h8300.md: Likewise.
11203         * config/h8300/lib1funcs.asm: Likewise.
11204
11205 2002-01-10  Dale Johannesen  <dalej@apple.com>
11206
11207         PR optimization/5269
11208         * unroll.c (precondition_loop_p): Make *increment be the correct
11209         sign when n_iterations known, to avoid confusing caller.
11210
11211 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11212
11213         * doc/extend.texi (deprecated): Fix a typo.
11214
11215 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
11216
11217         * basic-block.h (update_br_prob_note): Declare.
11218         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
11219         (try_forward_edges): Care negative frequencies and update note.
11220         (outgoing_edges_match): Tweek conditional merging heuristics.
11221         (try_crossjump_to_edge): use update_br_prob_note.
11222         * cfglayout.c (fixup_reorder_chain): Likewise.
11223         * cfrtl.c (update_br_prob_note): New.
11224         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
11225
11226         * i386.c (ix86_decompose_address): Return -1 if address contains
11227         shift.
11228         (legitimate_address_p): Require ix86_decompose_address to return 1.
11229
11230         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
11231         (cprop_insn): Likewise.
11232
11233 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11234
11235         * toplev.c: Fix formatting.
11236         * tree.c: Likewise.
11237         * tree-dump.c: Likewise.
11238         * unroll.c: Likewise.
11239         * unwind-dw2.c: Likewise.
11240         * unwind-dw2-fde.c: Likewise.
11241         * unwind-dw2-fde-glibc.c: Likewise.
11242         * unwind-sjlj.c: Likewise.
11243
11244 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
11245
11246         * doc/invoke.texi: Document PDP-11 options.
11247
11248 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11249
11250         * config/h8300/h8300.h: Fix formatting.
11251
11252 2002-01-10  Ira Ruben   <ira@apple.com>
11253
11254         Add __attribute__ ((deprecated)).
11255         * extend.texi: Document __attribute__ ((deprecated)).
11256         * invoke.texi: Document -Wno-deprecated-declarations.
11257         * testsuite/g++.dg/other/deprecated.C: New C++ test.
11258         * testsuite/gcc.dg/deprecated.c: New C test.
11259         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
11260         (c_common_attribute_table): Add "deprecated" entry.
11261         (handle_deprecated_attribute): New function.
11262         * c-decl.c (deprecated_states): New enum.
11263         deprecated_state: State of "deprecated" handling.
11264         (start_decl): Set deprecated_state based on attributes.
11265         (grokdeclarator): Test for deprecated uses, propagate attribute.
11266         * c-typeck.c (build_component_ref): Test for deprecated fields.
11267         (build_external_ref): Test for deprecated primaries.
11268         * diagnostic.c (warn_deprecated_use) New function to issue
11269         warnings about __attribute__ ((depricated)) references.
11270         * flags.h (warn_deprecated_decl): Extern declared for
11271         -W[no-]deprecated-declarations option.
11272         * print-tree.c (print_node): Show deprecated flag status.
11273         * toplev.c (warn_deprecated_decl): Defined.
11274         (W_options): Added "deprecated-declaration".
11275         * toplev.h (warn_deprecated_use): Extern declared.
11276         * tree.h (struct tree_common): Define deprecated_flag.
11277         (TREE_DEPRECATED): New macro to access flag.
11278         * cp/call.c (build_call): Test for deprecated calls.
11279         * cp/class.c (add_implicitly_declared_members): Set global
11280         flag to tell grokdeclarator to not issue deprecated warnings.
11281         * cp/cp-tree.h: Add extern for adding_implicit_members.
11282         * cp/decl.c (deprecated_states): New enum.
11283         (start_decl): Set deprecated_state based on attributes.
11284         (grokdeclarator): Test for deprecated uses, propagate attribute.
11285         * cp/lex.c (do_identifier): Test for deprecated primaries.
11286         * cp/typeck.c (build_component_ref): Test for deprecated fields.
11287
11288 2002-01-10  Ira Ruben   <ira@apple.com>
11289
11290         Fix to assign attributes to inline member functions.
11291         * cp/decl.c (start_method): Handle attrlist.
11292
11293 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11294
11295         * combine.c (expand_field_assignment): Use subreg_lsb().
11296
11297 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
11298
11299         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
11300         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
11301         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
11302         Recurse for any operand of AND as long as constant is non-zero.
11303
11304 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11305
11306         * config/h8300/h8300.md: Remove constraints from expanders.
11307
11308 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11309
11310         * varasm.c: Fix formatting.
11311         * varray.c: Likewise.
11312         * vmsdbgout.c: Likewise.
11313         * xcoffout.c: Likewise.
11314
11315 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
11316
11317         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
11318         update edge probabilities to match.
11319
11320 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
11321
11322         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
11323         dependencies.
11324         * doc/languages.texi, doc/sourcebuild.texi: New files.
11325         * doc/configfiles.texi: Make a subsubsection.  Update.
11326         * doc/configterms.texi: Add @node.  Remove warning that this isn't
11327         instructions for building GCC.
11328         * doc/makefile.texi: Make a subsection.
11329         * doc/gccint.texi: Update.
11330
11331 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
11332
11333         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
11334
11335 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
11336
11337         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
11338
11339 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
11340
11341         * optabs.c (expand_fix): Look for wider integer modes first.
11342
11343         * i386.md (mov?f): Avoid the fake const double trick for medium
11344         memory model.
11345         (min?f*/max?f*): Prohibit memory operands for i387 variant.
11346         (fop_df_4): Disable for SSE compilation.
11347
11348 2002-01-10  Graham Stott  <grahams@redhat.com>
11349
11350         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
11351         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
11352
11353 2002-01-10  Richard Henderson  <rth@redhat.com>
11354
11355         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
11356
11357 2002-01-10  Richard Henderson  <rth@redhat.com>
11358
11359         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
11360         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
11361
11362 2002-01-10  Kazu Hirata  <kazu@hxi.com>
11363
11364         * combine.c (can_combine_p): Fix a comment typo.
11365
11366 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
11367
11368         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
11369         empty list correctly.  Change loop index $t to $f for
11370         consistency with rest of Makefile.
11371
11372 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
11373
11374         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
11375         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
11376
11377         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
11378         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
11379         (altivec_init_builtins): Same.
11380         (altivec_expand_unop_builtin): Return NULL_RTX on error.
11381         (altivec_expand_binop_builtin): Same.
11382         (altivec_expand_ternop_builtin): Same.
11383         (bdesc_dst): New.
11384
11385         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
11386         ("altivec_vctuxs"): Fix typo.
11387         ("altivec_vnmsubfp"): Same.
11388         ("altivec_dssall"): New.
11389         ("altivec_mfvscr"): New.
11390         ("altivec_dss"): New.
11391         ("altivec_lvsl"): New.
11392         ("altivec_lvsr"): New.
11393         ("altivec_dstt"): New.
11394         ("altivec_dstst"): New.
11395         ("altivec_dststt"): New.
11396         ("altivec_dst"): New.
11397
11398         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
11399         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
11400
11401 2002-01-09  Richard Henderson  <rth@redhat.com>
11402
11403         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
11404
11405 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
11406
11407         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
11408         function.
11409         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
11410         prototype.
11411         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
11412
11413 2002-01-09  Kazu Hirata  <kazu@hxi.com>
11414
11415         * read-rtl.c: Fix formatting.
11416         * real.c: Likewise.
11417         * regclass.c: Likewise.
11418         * regrename.c: Likewise.
11419         * reg-stack.c: Likewise.
11420         * reload1.c: Likewise.
11421         * reload.c: Likewise.
11422         * rtl.c: Likewise.
11423
11424 2002-01-09  Kazu Hirata  <kazu@hxi.com>
11425
11426         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
11427         to extract items in the expr_list chain.
11428
11429 2002-01-09  Richard Henderson  <rth@redhat.com>
11430
11431         * config/vax/vax.c (vax_rtx_cost): Never abort.
11432
11433         * config/vax/vax.h (REAL_ARITHMETIC): Define.
11434
11435 2002-01-09  Jan Hubicka  <jh@suse.cz>
11436
11437         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
11438
11439 2002-01-09  Richard Henderson  <rth@redhat.com>
11440
11441         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
11442         Unify code from various alternatives.
11443
11444 2002-01-09  Richard Henderson  <rth@redhat.com>
11445
11446         * regrename.c (copy_value): Ignore the copy if the source register
11447         is present in the value chain with a narrower mode.
11448
11449 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
11450
11451         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
11452         for the c4x target. Also improve layout.
11453
11454 2002-01-09  Richard Henderson  <rth@redhat.com>
11455
11456         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
11457         * config/m32r/m32r.md (and ior xor splitters): Swap operands
11458         to match insn patterns.
11459
11460 2002-01-09  Richard Henderson  <rth@redhat.com>
11461
11462         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
11463         (copyprop_hardreg_forward_1): Likewise.
11464
11465 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11466
11467         * pa.md (decrement_and_branch_until_zero): Change predicate for
11468         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
11469
11470 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
11471
11472         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
11473         gets undefined. For Darwin.
11474
11475 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11476
11477         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
11478
11479 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11480
11481         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
11482
11483 2002-01-08  Richard Henderson  <rth@redhat.com>
11484
11485         * regrename.c (copy_value): Ignore overlapping copies.
11486
11487 2002-01-08  Richard Henderson  <rth@redhat.com>
11488
11489         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
11490         as needed to avoid shared structure.
11491
11492 2002-01-08  Kazu Hirata  <kazu@hxi.com>
11493
11494         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
11495         H8/300H and H8/S.
11496
11497 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
11498
11499         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
11500         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
11501         documentation of obsolete macros.
11502         * system.h: Poison these macros.
11503         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
11504         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
11505         config/c4x/c4x.h, config/clipper/clipper.h,
11506         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
11507         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
11508         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
11509         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
11510         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
11511         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
11512         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
11513         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
11514         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
11515         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
11516         config/sparc/sparc.h, config/stormy16/stormy16.h,
11517         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
11518         definitions and commented out definitions of obsolete macros.
11519         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
11520         of MAX_INT_TYPE_SIZE.
11521
11522 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
11523
11524         * config/s390/s390.c (s390_preferred_reload_class): Never
11525         return ADDR_REGS if it isn't a subset of the given class.
11526         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
11527         FP_REGS, but all superclasses as well.
11528
11529         * config/s390/s390.c (s390_function_profiler): Fix thinko.
11530
11531         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
11532         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
11533         must not be a const_int.
11534
11535 2002-01-08  Richard Henderson  <rth@redhat.com>
11536
11537         * Makefile.in (toplev.o): Depend on options.h.
11538         (gcc.o): Depend on specs.h.
11539
11540 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
11541
11542         * expr.c (store_expr): Convert VOIDmode constants back to target's
11543         mode.
11544
11545 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11546
11547         * doc/invoke.texi: Markup gcc as @command.  Refer to
11548         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
11549         of http://gcc.gnu.org/thanks.html.
11550
11551 2002-01-08  Dale Johannesen  <dalej@apple.com>
11552
11553         * config/rs6000/rs6000.md: Add missing int register
11554         target case to movdf_low.
11555
11556 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
11557
11558         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
11559         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
11560         (cppinit.o): Depend on except.h.
11561         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
11562         s-specs): New rules.
11563
11564         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
11565         Don't create specs.h/options.h/gencheck.h here.  Remove
11566         unnecessary variable settings from last argument of AC_OUTPUT.
11567         * config.in, configure: Regenerate.
11568         * intl.c: Hardcode package name as "gcc".
11569
11570         * cppinit.c: Include except.h.
11571         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
11572         appropriate.
11573         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
11574         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
11575         (!)USING_SJLJ_EXCEPTIONS.
11576         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
11577
11578 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
11579
11580         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
11581         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
11582         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
11583         documentation of obsolete macros.
11584         * system.h: Poison these macros.
11585         * config/d30v/d30v.h, config/ns32k/encore.h,
11586         config/stormy16/stormy16.h: Remove definitions and commented out
11587         definitions of obsolete macros.
11588
11589 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
11590
11591         * objc/objc-act.c (handle_class_ref): Mark the declaration of
11592         %sobjc_class_ref_%s as used - to prevent unwanted compiler
11593         warnings.
11594
11595 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
11596
11597         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
11598         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
11599         to insn adjusting stack/frame pointer.
11600         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
11601         accept operands that cause the insn to be non-splittable.
11602
11603 2002-01-08  Graham Stott  <grahams@redhat.com>
11604
11605         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
11606         (C_TYPE_FIELDS_VOLATILE): Likewise.
11607         (C_TYPE_BEING_DEFINED): Likewise.
11608         (C_IS_RESERVED_WORD): Likewise.
11609         (C_TYPE_VARIABLE_SIZE): Likewise.
11610         (C_DECL_VARIABLE_SIZE): Likewise.
11611         (C_MISSING_PROTOTYPE_WARNED): Likewise.
11612         (C_SET_EXP_ORIGINAL_CODE): Likewise.
11613         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
11614         parenthesis.
11615         (C_DECL_ANTICIPATED): Likewise.
11616         (c_build_type_variant): Add parenthesis.
11617
11618 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
11619
11620         * gcc.c (option_map): Remove --version.
11621         (process_command): Handle -fversion following the GNU Coding
11622         Standards.  Partially addresses PR other/704.
11623
11624 2002-01-08  Graham Stott  <grahams@redhat.com>
11625
11626         * combine.c (combine_instructions): Fix typo.
11627
11628 2002-01-08  Graham Stott  <grahams@redhat.com>
11629
11630         * debug.h: Use "tree" and "rtx" throughout.
11631
11632         * debug.c: Likewise.
11633
11634 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
11635
11636         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
11637         constant pool, use the pool's version of the symbol instead.
11638
11639 2002-01-07  Richard Henderson  <rth@redhat.com>
11640
11641         * regrename.c (find_oldest_value_reg): Ignore the value chain if
11642         the original register was copied in a mode with a fewer number of
11643         hard registers than the desired mode.
11644         (copyprop_hardreg_forward_1): Likewise.
11645         (debug_value_data): Fix loop test.
11646         * toplev.c (parse_options_and_default_flags): Reenable
11647         -fcprop-registers at -O1.
11648
11649 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
11650
11651         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
11652         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
11653
11654         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
11655         predicates.
11656
11657         * config/rs6000/rs6000.md: Add altivec predicate patterns.
11658
11659 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11660
11661         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
11662         (pa_output_function_prologue): Output local label at the beginning of
11663         the prologue when profiling.
11664         (hppa_profile_hook): Use the local label rather than the function label.
11665         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
11666
11667 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
11668
11669         * config/rs6000/rs6000.c (print_operand): Remove extra space.
11670         (altivec_expand_unop_builtin): Fix thinko.
11671         (altivec_expand_binop_builtin): Same.
11672         (altivec_expand_ternop_builtin): Same.
11673         (altivec_expand_builtin): Same.
11674
11675 2002-01-07  Richard Henderson  <rth@redhat.com>
11676
11677         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
11678
11679 2002-01-07  Jason Merrill  <jason@redhat.com>
11680
11681         * unwind-dw2.c (execute_cfa_program): Use < again.
11682
11683 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
11684
11685         * predict.c (combine_predictions_for_insn): Avoid division by zero.
11686
11687 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
11688
11689         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
11690         Don't allow -1 - x -> ~x simplifications in the first pass.
11691
11692 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
11693
11694         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
11695         arguments.
11696         (altivec_expand_binop_builtin): Same.
11697         (altivec_expand_unop_builtin): Same.
11698         (print_operand): Fix typo.
11699         (bdesc_1arg): Add vupk* variants.
11700
11701         * rs6000.h (rs6000_builtins): Add vupk* enums.
11702
11703         * rs6000.md: Add altivec_vupk* variants.
11704
11705 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
11706
11707         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
11708         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
11709         and last update dates.
11710
11711 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
11712
11713         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
11714
11715 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11716
11717         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
11718         * config/avr/avr.h (CPP_SPEC): Likewise.
11719         (LINK_SPEC): Likewise.
11720         (CRT_BINUTILS_SPECS): Likewise.
11721         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11722         * doc/invoke.texi (AVR Options): Document them.
11723
11724 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
11725
11726         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
11727         LABEL_NUSES.
11728
11729 2002-01-07  Graham Stott  <grahams@redhat.com>
11730
11731         * config/i386/i386.h: Update copyright date.
11732         (HALF_PIC_PTR): Add parenthesis.
11733         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
11734         (CONSTANT_ALIGNMENT): Add parenthesis.
11735         (DATA_ALIGNMENT): Likewise.
11736         (LOCAL_ALIGNMENT): Likewise.
11737         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
11738         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
11739         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
11740         (HARD_REGNO_NREGS): Add paranethesis.
11741         (VALID_SSE_REG_MODE): Whitespace.
11742         (VALID_MMX_REG_MODE): Whitespace.
11743         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
11744         (ix86_hard_regno_mode_ok): Add parenthesis.
11745         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
11746         (RETURN_IN_MEMORY): Whitespace.
11747         (N_REG_CLASSES): Add parenthesis.
11748         (INTEGER_CLASS_P): Add parenthesis and wrap.
11749         (FLOAT_CLASS_P): Likewise.
11750         (SSE_CLASS_P): Likewise.
11751         (MMX_CLASS_P): Likewise.
11752         (MAYBE_INTEGER_CLASS_P): Likewise.
11753         (MAYBE_FLOAT_CLASS_P): Likewise.
11754         (MAYBE_SSE_CLASS_P): Likewise.
11755         (MAYBE_MMX_CLASS_P): Likewise.
11756         (Q_CLASS_P): Likewise.
11757         (GENERAL_REGNO_P): Uppercase macro parameter.
11758         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
11759         (FP_REGNO_P): Likewise.
11760         (ANY_FP_REGNO_P): Uppercase macro parameter.
11761         (SSE_REGNO_P): Likewise.
11762         (SSE_REGNO): Likewise.
11763         (SSE_REG_P): Likewise.
11764         (SSE_FLOAT_MODE_P): Likewise.
11765         (MMX_REGNO_P): Likewise.
11766         (MMX_REG_P):Likewise.
11767         (STACK_REG_P): Likewise.
11768         (NON_STACK_REG_P): Likewise.
11769         (STACK_TOP_P): Likewise.
11770         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
11771         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
11772         (SECONDARY_MEMORY_NEEDED): Likewise.
11773         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
11774         (MD_ASM_CLOBBERS): Whitespace and wrap.
11775         (MUST_PASS_IN_STACK): Whitespace and wrap.
11776         (RETURN_POPS_ARGS): Add parenthesis.
11777         (INIT_CUMULATIVE_ARGS): Likewise.
11778         (FUNCTION_ARG): Likewise.
11779         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
11780         (SETUP_INCOMING_VARARGS): Likewise.
11781         (BUILD_VA_LIST_TYPE):  Add parenthesis.
11782         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
11783         parenthsis.
11784         (EXPAND_BUILTIN_VA_ARG): Likewise.
11785         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
11786         (INITIALIZE_TRAMPOLINE): Add parenthesis.
11787         (INITIAL_ELIMINATION_OFFSET): Likewise.
11788         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
11789         (REGNO_OK_FOR_BASE_P): Likewise.
11790         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
11791         (REGNO_OK_FOR_DIREG_P): Likewise.
11792         (REG_OK_FOR_INDEX_P): Whitespace.
11793         (REG_OK_FOR_BASE_P): Whitespace.
11794         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
11795         parenthesis.
11796         (FIND_BASE_TERM): Fix typo.
11797         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
11798         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
11799         (SYMBOLIC_CONST; Whitespace.
11800         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
11801         (ENCODE_SECTION_INFO): Whitespace.
11802         (FINALIZE_PIC): Remove do { ... } while (0).
11803         (PROMOTE_MODE): Wrap in do { ... } while (0).
11804         (CONST_COSTS): Whitespace.
11805         (RTX_COSTS): Add paramethesis, whitespace and wrap.
11806         (REGISTER_MOVE_COST): Add parenthesis.
11807         (MEMORY_MOVE_COST): Likewise.
11808         (EXTRA_CC_MODES): Whitespace.
11809         (SELECT_CC_MODE): Add parenthesis and whitespace.
11810         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
11811         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
11812         (ASM_OUTPUT_LABEL): Add paramethesis.
11813         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
11814         (ASM_OUTPUT_REG_POP): Likewise.
11815         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
11816         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11817
11818         * config/i386/i386.c: Update copyright.
11819         (CHECK_STACK_LIMIT): Add parenthesis.
11820         (AT_BP): Uppercase macro parameter.
11821         (x86_64_int_parameter_registers): Constify.
11822         (x86_64_int_return_registers): Likewise.
11823         (ix86_compare_op0): Use rtx.
11824         (construct_container): Constify INTREG parameter.
11825         (function_arg): Use rtx.
11826
11827         * diagnostic.h: Update copyright date.
11828         (output_buffer_state): Add parenthesis.
11829         (output_buffer_format_args): Likewise.
11830
11831         * combine.c (combine_instructions): Replace XEXP (links, 0)
11832         with link.
11833
11834 2002-01-06  H.J. Lu <hjl@gnu.org>
11835
11836         * cfgcleanup.c (thread_jump): Fix 2 typos.
11837
11838 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
11839
11840         * config.gcc: Add support for --enable-altivec.
11841
11842 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11843
11844         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
11845
11846 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
11847
11848         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
11849         __objc_class_name_*.
11850
11851 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11852
11853         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
11854
11855 2002-01-06  Richard Henderson  <rth@redhat.com>
11856
11857         * reorg.c (emit_delay_sequence): Remove death notes, not merely
11858         nop them out.  Increment label reference count for REG_LABEL.
11859         (fill_slots_from_thread): Frob label reference count around
11860         delete_related_insns.
11861
11862 2002-01-05  Richard Henderson  <rth@redhat.com>
11863
11864         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
11865         jump threading.
11866
11867 2002-01-05  Richard Henderson  <rth@redhat.com>
11868
11869         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
11870         * integrate.c (output_inline_function): Likewise.
11871         * toplev.c (rest_of_compilation): Do it here instead.  Move call
11872         to remove_unnecessary_notes after emitting abstract instance.
11873         Force an emitted nested function to have its parent emited as well.
11874         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
11875         for null.
11876         (rtl_for_decl_location): Do not look at reload data structures
11877         before reload has run.
11878
11879 2002-01-05  Kazu Hirata  <kazu@hxi.com>
11880
11881         * cse.c: Fix formatting.
11882         * dwarf2asm.c: Likewise.
11883         * dwarf2out.c: Likewise.
11884         * explow.c: Likewise.
11885         * expmed.c: Likewise.
11886         * function.c: Likewise.
11887         * gcov.c: Likewise.
11888         * gencheck.c: Likewise.
11889         * genrecog.c: Likewise.
11890         * ggc-common.c: Likewise.
11891         * ggc-page.c: Likewise.
11892         * global.c: Likewise.
11893
11894 2002-01-05  Kazu Hirata  <kazu@hxi.com>
11895
11896         * combine.c: Fix formatting.
11897
11898 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
11899
11900         PR middle-end/1557
11901         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
11902
11903 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
11904
11905         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
11906         as 1 for __powerpc64__ as well.
11907
11908         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
11909
11910         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
11911         return it.
11912
11913 2002-01-05  Daniel Berlin  <dan@dberlin.org>
11914
11915         * lcm.c: Revert change, due to performance regression it causes on
11916         SPEC because it's slightly more conservative (sigh, I hate
11917         edge-based LCM).
11918
11919 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
11920
11921         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
11922
11923 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
11924
11925         * doc/cppinternals.texi: Update.
11926
11927 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
11928
11929         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
11930         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
11931         negatives.
11932         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
11933         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
11934         kludge for pre-october-14th mmix versions to handle new-found bug
11935         with PUSHJ/PUSHGO and the register stack.
11936         * config/mmix/mmix.h (struct machine_function): Rename member
11937         has_call_value_without_parameters to has_call_without_parameters.
11938         All referers changed.
11939         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
11940         TARGET_MASK_BRANCH_PREDICT): New macros.
11941         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
11942         -mno-reg-stack-fill-bug-workaround.
11943         * config/mmix/mmix.md ("call"): Set struct machine member
11944         has_call_without_parameters.
11945
11946 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
11947
11948         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
11949
11950 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
11951
11952         * cfgcleanup.c: Include tm_p.h
11953         (mark_effect): Fix handling of hard register; fix handling of SET
11954
11955 2002-01-04  Kazu Hirata  <kazu@hxi.com>
11956
11957         * config/h8300/h8300.md (anonymous patterns): Check that
11958         operands are registers before using REGNO on them.
11959
11960 2002-01-03  Roland McGrath  <roland@frob.com>
11961
11962         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
11963
11964 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
11965
11966         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
11967         * c-common.h (genrtl_expr_stmt_value): Likewise.
11968         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
11969         (expand_expr_stmt_value): Add maybe_last argument.
11970         Don't warn about statement with no effect if it is the last statement
11971         in expression statement.
11972         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
11973         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
11974         expand_expr_stmt_value.
11975         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
11976         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
11977         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
11978         as maybe_last to expand_expr_stmt_value.
11979
11980 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
11981
11982         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
11983         be passed in, do not build it.
11984         (c_begin_if_stmt): New function.
11985         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
11986         * c-common.h (c_expand_start_cond): Update prototype.
11987         (c_begin_if_stmt): Prototype new function.
11988         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
11989         * c-parse.in (if_prefix): Use c_begin_if_stmt,
11990         c_begin_while_stmt and c_finish_while_stmt_cond.
11991
11992 2002-01-04  William Cohen  <wcohen@redhat.com>
11993
11994         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
11995         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
11996         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
11997         * config/pa/som.h (ASM_FILE_START): Likewise.
11998
11999 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
12000
12001         * lcm.c: Include df.h.
12002         Add available_transfer_function prototype.
12003         (compute_available): Rework to use iterative dataflow framework.
12004         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
12005         with bb_info in df.h
12006         (available_transfer_function): New function.
12007
12008         * Makefile.in (lcm.o): add df.h to dependencies.
12009
12010 2002-01-04  Richard Henderson  <rth@redhat.com>
12011
12012         * config/alpha/alpha.c (some_operand): Accept HIGH.
12013         (input_operand): Likewise; accept simple references to globals.
12014         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
12015         (alpha_const_double_ok_for_letter_p): Likewise.
12016         (alpha_extra_constraint): Likewise.
12017         (alpha_preferred_reload_class): Likewise.  Do not force
12018         symbolic constants to memory.
12019         (alpha_legitimate_address_p): Accept simple references
12020         to small_symbolic_operand.
12021         (alpha_legitimize_address): New arg scratch.  Be prepared to be
12022         called when no_new_pseudos.  Emit simple symbolic references.
12023         Split integers into low, high, and rest.
12024         (alpha_expand_mov): Use alpha_legitimize_address.
12025         (some_small_symbolic_mem_operand): New.
12026         (split_small_symbolic_mem_operand): New.
12027         * config/alpha/alpha-protos.h: Update.
12028         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
12029         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
12030         (EXTRA_CONSTRAINT): Likewise.
12031         (PREFERRED_RELOAD_CLASS): Likewise.
12032         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
12033         (PREDICATE_CODES): Update.
12034         * config/alpha/alpha.md: New post-reload splitters to convert
12035         simplfied symbolic operands to the form that references $29.
12036         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
12037         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
12038
12039 2002-01-03  Richard Henderson  <rth@redhat.com>
12040
12041         * local-alloc.c (function_invariant_p): Update commentary.
12042
12043 2002-01-04  H.J. Lu <hjl@gnu.org>
12044
12045         * toplev.c (rest_of_compilation): Fix a typo when calling
12046         cleanup_cfg.
12047
12048 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12049
12050         * c-common.c: Fix formatting.
12051         * diagnostic.c: Likewise.
12052         * doloop.c: Likewise.
12053         * dwarf2out.c: Likewise.
12054
12055 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12056
12057         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
12058         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
12059
12060 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
12061
12062         * cpperror.c: Update comments and copyright.
12063         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
12064         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
12065
12066 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12067
12068         * collect2.c (main): Use strcmp when testing for "-shared".
12069
12070 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
12071
12072         * cppmacro.c: Don't include intl.h.  Update comments.
12073         (new_number_token): Allocate enough buffer for 64-bit unsigned
12074         integers; update prototype.
12075         * cppmain.c: Update comments.
12076
12077 2002-01-03  William Cohen  <wcohen@redhat.com>
12078
12079         * function.h (struct function): Add profile.
12080         (current_function_profile): New.
12081         doc/extend.texi: Update documentation.
12082         * final.c (final_start_function): Use current_function_profile
12083         instead of profile_flag.
12084         (profile_after_prologue): Likewise.
12085         * function.c (expand_function_start): Likewise.
12086         (expand_function_start): Likewise.
12087         * config/alpha/alpha.c (direct_call_operand):
12088         (alpha_does_function_need_gp): Likewise.
12089         (alpha_expand_prologue): Likewise.
12090         * config/arm/arm.c (arm_expand_prologue): Likewise.
12091         thumb_expand_prologue: Likewise.
12092         * config/d30v/d30v.c (d30v_stack_info): Likewise.
12093         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
12094         (fr30_expand_prologue): Likewise.
12095         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
12096         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
12097         * config/i386/i386.h (FINALIZE_PIC): Likewise.
12098         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
12099         * config/i960/i960.c (i960_output_function_prologue): Likewise.
12100         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
12101         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
12102         (m32r_expand_prologue): Likewise.
12103         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
12104         (m88k_expand_prologue): Likewise.
12105         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
12106         * config/mips/mips.c (compute_frame_size): Likewise.
12107         (mips_expand_prologue): Likewise.
12108         (mips_can_use_return_insn): Likewise.
12109         * config/pa/elf.h (ASM_FILE_START): Likewise.
12110         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
12111         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
12112         * config/pa/som.h (ASM_FILE_START): Likewise.
12113         * config/romp/romp.c (romp_using_r14): Likewise.
12114         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
12115         (rs6000_stack_info): Likewise.
12116         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
12117         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
12118         * config/v850/v850.c (compute_register_save_size): Likewise.
12119
12120 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
12121
12122         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
12123         gen_lowpart_common fails, use gen_lowpart_SUBREG.
12124
12125 2002-01-03  Turly O'Connor  <turly@apple.com>
12126
12127         * darwin.c (machopic_output_possible_stub_label): Don't generate
12128         stub routines for pseudo-stubs which we've just defined.
12129
12130 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12131
12132         * builtins.c: Fix formatting.
12133         * c-typeck.c: Likewise.
12134         * combine.c: Likewise.
12135         * expr.c: Likewise.
12136         * loop.c: Likewise.
12137
12138 2002-01-03  Andreas Schwab  <schwab@suse.de>
12139
12140         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
12141         and return true if _cpp_push_next_buffer pushed a new include
12142         file.
12143         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
12144         _cpp_pop_file_buffer did not push a new file.
12145         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
12146
12147 2002-01-02  Eric Christopher  <echristo@redhat.com>
12148
12149         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
12150         FIND_REG_INC_NOTE call. Update copyright.
12151         * loop.c (canonicalize_condition): Ditto.
12152         * reorg.c (delete_scheduled_jump): Ditto.
12153
12154 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12155
12156         * gcse.c: Fix formatting.
12157
12158 2002-01-03  Graham Stott  <grahams@redhat.com>
12159
12160         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
12161         forward defs for struct tags rtx_def, union_tree, rtvec_def
12162         also output corresponding typedefs for rtx, tree, and rtvec.
12163
12164         * system.h: Move forward defs for struct tags rtx_def, union_tree,
12165         rtvec_def along with corresponding typedefs for rtx, tree, and
12166         rtvec to config.h, hconfig.h, tconfig.h.
12167
12168 2002-01-03  Graham Stott  <grahams@redhat.com>
12169
12170         * tree.h: Update copyright date.
12171         (IS_EXPR_CODE_CLASS): Add parenthesis.
12172         (TREE_SET_CODE): Add whitespace.
12173         (TREE_CHECK): Add parenthesis.
12174         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
12175         (CST_OR_CONSTRUCTOR_CHECK):
12176         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
12177         (TREE_SYMBOL_REFERENCED): Whitespace.
12178         (INT_CST_LT): Likewise.
12179         (INT_CST_LT_UNSIGNED): Likewise.
12180         (tree_real_cst): Unwrap comment.
12181         (tree_string): Likewise.
12182         (tree_complex): Likewise.
12183         (IDENTIFIER_POINTER): correct cast.
12184         (SAVE_EXPR_CONTEXT): Whitespace.
12185         (EXPR_WFL_FILENAME_NODE): Likewise.
12186         (EXPR_WFL_FILENAME): Remove parenthesis.
12187         (DECL_ORIGIN): Add parenthesis.
12188         (DECL_FROM_INLINE): Use NULL_TREE.
12189         (build_int_2): Whitespace.
12190         (build_type_variant): Add parenthesis.
12191
12192         * gcc/jcf-parse.c: Update copyright date.
12193         (yyparse): Constify resource_filename.
12194
12195 2002-01-03  Graham Stott  <grahams@redhat.com>
12196
12197         * rtl.h: Update copyright date.
12198         (RTL_CHECK1): Wrap long line.
12199         (RTL_CHECK2): Likewise.
12200         (RTL_CHECKC1): Wrap long line and whitespace.
12201         (RTL_CHECKC2): Likewise.
12202         (XWINT): Whitespace.
12203         (XINT): Likewise.
12204         (XSTR): Likewise.
12205         (XEXP): Likewise.
12206         (XVEC): Likewise.
12207         (XMODE): Likewise.
12208         (XBITMAP): Likewise.
12209         (XTREE): Likewise.
12210         (XBBDEF): Likewise.
12211         (XTMPL): Likewise.
12212         (X0WINT): Likewise.
12213         (X0INT):Likewise.
12214         (X0UINT): Likewise.
12215         (X0STR): Likewise.
12216         (X0EXP): Likewise.
12217         (X0VEC): Likewise.
12218         (X0MODE): Likewise.
12219         (X0BITMAP): Likewise.
12220         (X0TREE): Likewise.
12221         (X0BBDEF): Likewise.
12222         (X0ADVFLAGS): Likewise.
12223         (X0CSELIB): Likewise.
12224         (X0MEMATTR): Likewise.
12225         (XCWINT): Likewise.
12226         (XCINT): Likewise.
12227         (XCUINT): Likewise.
12228         (XCSTR): Likewise.
12229         (XCEXP): Likewise.
12230         (XCVEC): Likewise.
12231         (XCMODE): Likewise.
12232         (XCBITMAP): Likewise.
12233         (XCTREE): Likewise.
12234         (XCBBDEF): Likewise.
12235         (XCADVFLAGS): Likewise.
12236         (XCCSELIB): Likewise.
12237         (XC2EXP): Likewise.
12238         (INSN_UID): Likewise.
12239         (PREV_INSN): Likewise.
12240         (PATTERN): Likewise.
12241         (INSN_CODE): Likewise.
12242         (PUT_REG_NOTE_KIND): Likewise.
12243         (CODE_LABEL_NUMBER): Likewise.
12244         (NOTE_SOURCE_FILE): Likewise.
12245         (NOTE_BLOCK): Likewise.
12246         (NOTE_EH_HANDLER): Likewise.
12247         (NOTE_RANGE_INFO): Likewise.
12248         (NOTE_LIVE_INFO): Likewise.
12249         (NOTE_BASIC_BLOCK): Likewise.
12250         (NOTE_EXPECTED_VALUE): Likewise.
12251         (NOTE_LINE_NUMBER): Likewise.
12252         (LABEL_NAME): Likewise.
12253         (LABEL_NUSES): Likewise.
12254         (LABEL_ALTERNATE_NAME): Likewise.
12255         (ADDRESSOF_DECL): Likewise.
12256         (JUMP_LABEL): Likewise.
12257         (LABEL_NEXTREF): Likewise.
12258         (REGNO): Likewise.
12259         (ORIGINAL_REGNO: Likewise.
12260         (HARD_REGISTER_NUM_P): Add parenthesis.
12261         (SUBREG_REG): Whitespace.
12262         (SUBREG_BYTE): Likewise.
12263         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
12264         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
12265         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
12266         (ASM_OPERANDS_INPUT_VEC): Likewise.
12267         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
12268         (ASM_OPERANDS_INPUT): Likewise.
12269         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
12270         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
12271         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
12272         (ASM_OPERANDS_INPUT_MODE): Likewise.
12273         (ASM_OPERANDS_SOURCE_FILE): Likewise.
12274         (ASM_OPERANDS_SOURCE_LINE): Likewise.
12275         (MEM_SET_IN_STRUCT_P): Minor reformat.
12276         (TRAP_CONDITION): Whitespace.
12277         (TRAP_CODE): Likewise.
12278         (COND_EXEC_TEST): Likewise.
12279         (COND_EXEC_CODE): Likewise.
12280         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
12281         (PHI_NODE_P): Add parenthesis.
12282         (plus_constant): Whitespace and add parenthesis.
12283
12284 2002-01-03  Kazu Hirata  <kazu@hxi.com>
12285
12286         * config/avr/avr.c: Fix comment typos.
12287         * config/c4x/c4x.md: Likewise.
12288         * config/dsp16xx/dsp16xx.h: Likewise.
12289         * config/dsp16xx/dsp16xx.md: Likewise.
12290         * config/i386/i386.md: Likewise.
12291         * config/ia64/ia64.c: Likewise.
12292         * config/m32r/m32r.h: Likewise.
12293         * config/m68hc11/m68hc11.md: Likewise.
12294         * config/mmix/mmix.c: Likewise.
12295         * config/mn10200/mn10200.c: Likewise.
12296         * config/romp/romp.c: Likewise.
12297         * config/sh/sh.c: Likewise.
12298         * config/stormy16/stormy16.c: Likewise.
12299         * config/stormy16/stormy16.h: Likewise.
12300         * config/stormy16/stormy16.md: Likewise.
12301
12302 2002-01-03  Graham Stott  <grahams@redhat.com>
12303
12304         * loop.h: Update copyright date.
12305         (LOOP_MOVABLES): Fix typo.
12306         (LOOP_REGS): Likewise.
12307         (LOOP_IVS): Likewise.
12308
12309 2002-01-03  Graham Stott  <grahams@redhat.com>
12310
12311         * cppinit.c: Update copyright date.
12312         Don't include output.h
12313         * Makefile.in: Update copyright date.
12314         Update dependency.
12315
12316 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12317
12318         PR c/5226
12319         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
12320         (-pthread) Add to RS/6000 options.
12321
12322 2002-01-02  Kazu Hirata  <kazu@hxi.com>
12323
12324         * except.c: Fix comment typos.
12325         * loop.c: Likewise.
12326         * varasm.c: Likewise.
12327         * doc/tm.texi: Fix a typo.
12328
12329 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
12330
12331         * c-typeck.c (output_init_element): Allow initializing static storage
12332         duration objects with compound literals.
12333
12334 2002-01-02  Richard Henderson  <rth@redhat.com>
12335
12336         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
12337         after abusing it.
12338
12339 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12340
12341         * gcc.c (default_compilers): Const-ify.
12342         * mips-tdump.c (stab_names): Likewise.
12343         * mips-tfile.c (map_coff_types, map_coff_storage,
12344         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
12345         pseudo_ops_t, pseudo_ops): Likewise.
12346         * protoize.c (default_include): Likewise
12347
12348         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
12349         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
12350         Add array size in declaration.
12351         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
12352         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
12353         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
12354         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
12355         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
12356         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
12357         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
12358         emtens, make_nan): Const-ify.
12359         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
12360         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
12361
12362 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
12363
12364         * config.gcc (ia64-*-*): Set extra_headers.
12365         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
12366         * config/alpha/t-osf: Remove.
12367         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
12368
12369 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
12370
12371         * config/rs6000/t-aix43: Revert previous change.
12372
12373 2002-01-02  Jason Merrill  <jason@redhat.com>
12374
12375         * c-decl.c (c_expand_body): Call outlining_inline_function when
12376         emitting an inline function out of line.
12377
12378 2002-01-02  Richard Henderson  <rth@redhat.com>
12379
12380         * dwarf2out.c (limbo_die_node): Add created_for member.
12381         (new_die): New argument created_for.  Update all callers.
12382         (mark_limbo_die_list): New.
12383         (dwarf2out_init): Register limbo_die_list as a root.
12384         (dwarf2out_finish): Force insert limbo dies into their function
12385         context.
12386
12387 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
12388
12389         PR c++/5089
12390         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
12391
12392 2002-01-02  Kazu Hirata  <kazu@hxi.com>
12393
12394         * config/h8300/fixunssfsi.c: Update copyright.
12395         Fix comment typos.
12396         Fix formatting.
12397         * config/h8300/h8300.c: Update copyright.
12398         Eliminate warnings.
12399
12400 2002-01-02  Kazu Hirata  <kazu@hxi.com>
12401
12402         * config/romp/romp.c: Fix comment formatting.
12403         * config/romp/romp.h: Likewise.
12404         * config/romp/romp.md: Likewise.
12405         * config/s390/s390.c: Likewise.
12406         * config/stormy16/stormy16.c: Likewise.
12407         * config/stormy16/stormy16.h: Likewise.
12408
12409 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
12410
12411         * c-common.h (genrtl_expr_stmt_value): Declare.
12412         * c-semantics.c (genrtl_goto_stmt): Redirect to...
12413         (genrtl_goto_stmt_value): ... this new function.  Pass new
12414         argument down to expand_expr_stmt_value, taking
12415         TREE_ADDRESSABLE into account.
12416         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
12417         STMT_EXPR as addressable, i.e., one whose result we want.
12418         * expr.c (expand_expr): Don't save expression statement value
12419         of labeled_blocks or loop_exprs.
12420         * stmt.c (expand_expr_stmt): Redirect to...
12421         (expand_expr_stmt_value): ... this new function.  Use new
12422         argument to tell whether to save expression value.
12423         (expand_end_stmt_expr): Reset last_expr_type and
12424         last_expr_value if we don't have either.
12425         * tree-inline.c (declare_return_variable): Mark its use
12426         statement as addressable.
12427         * tree.h: Document new use of TREE_ADDRESSABLE.
12428         (expand_expr_stmt_value): Declare.
12429
12430 2002-01-01  Tom Rix  <trix@redhat.com>
12431
12432         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
12433         rs6000_emit_allocate_stack.
12434
12435 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
12436
12437         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
12438         ${srcdir}/ginclude/ to every entry in extra_headers.
12439         * configure: Regenerate.
12440         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
12441         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
12442         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
12443         * ginclude/proto.h: Rename to config/convex/proto.h.
12444
12445 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12446
12447         * attribs.c (handle_vector_size_attribute): Use host_integerp
12448         and tree_int_cst; remove warnings.
12449         * caller-save.c (insert_restore): Add cast to get rid of warning.
12450         (insert_save): Likewise.
12451         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
12452         * regmove.c (find_matches): Add temporary var to kill a warning.
12453
12454 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
12455
12456         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
12457         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
12458         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
12459         (vms-dwarf2eh.o): Add Makefile rule.
12460         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
12461         * config/alpha/vms-dwarf2eh.asm: New file.
12462
12463         * gcc.c (delete_if_ordinary): Delete all versions.
12464
12465 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
12466
12467         * config/mmix/mmix.md: Update FIXME to not mention
12468         define_constants.
12469         (MMIX_rJ_REGNUM): New define_constants constant.
12470         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
12471         "*movdicc_real"): Adjust contraints formatting.
12472         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
12473         for branch prediction.
12474         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
12475         output template.
12476         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
12477         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
12478         number.  Delete related FIXMEs.
12479         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
12480         from number to MMIX_rJ_REGNUM.
12481         (TARGET_MASK_BRANCH_PREDICT): New.
12482         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
12483         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
12484         value.  Add -mbranch-predict and -mno-branch-predict.
12485         (TARGET_VERSION): Drop date.
12486         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
12487         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
12488         for finding out global symbols.
12489         (mmix_asm_output_labelref): Revert condition for global symbol.
12490         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
12491         (mmix_print_operand_punct_valid_p): A '+' is valid.
12492
12493 See ChangeLog.6 for earlier changes.