1 2002-04-29 David S. Miller <davem@redhat.com>
3 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
4 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
5 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
6 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
8 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10 * combine.c (find_split_point): Use gen_int_mode.
12 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
14 Merging code from dfa-branch:
16 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
18 * genautomata.c (output_reserv_sets): Fix typo.
20 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
22 * genautomata.c (output_reserv_sets): Remove
23 next_cycle_output_flag.
25 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
27 * sched-rgn.c (init_ready_list): Make the DFA code handle
28 USE/CLOBBER insns in the same way as the traditional
30 (new_ready): Similarly..
32 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
34 * haifa-sched.c (schedule_block): Change the DFA state only after
37 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
39 * pa.c (hppa_use_dfa_pipeline_interface): New function.
40 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
41 (override_options): Add PA7300 scheduling support.
42 (pa_adjust_cost): Update various comments. Properly
43 handle anti and output dependencies when using the
45 (pa_issue_rate): Add PA7300 scheduling support.
46 (pa_can_combine_p): Call extract_insn before calling
47 constrain_operands (taken from mainline tree).
48 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
49 * pa.md (cpu attr): Add 7300. Rewrite pipeline
50 descriptions using DFA descriptions. Add PA7300
53 2002-03-30 David S. Miller <davem@redhat.com>
55 Add UltraSPARC-III DFA scheduling support.
56 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
57 Update FP conditional move on register insn patterns to use it, as
59 (define_attr cpu): Add ultrasparc3.
60 (define_attr us3load_type): New, update integer load patterns to
61 set it, as appropriate.
62 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
63 (rest): Add UltraSPARC3 scheduling description.
64 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
65 (PROCESSOR_ULTRASPARC3): New.
66 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
67 ({ASM,CPP}_CPU_SPEC): Likewise.
68 (REGISTER_MOVE_COST): Likewise.
69 (RTX_COSTS): Likewise.
70 * config/sparc/sparc.c (sparc_override_options,
71 sparc_initialize_trampoline, sparc64_initialize_trampoline,
72 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
73 sparc_issue_rate): Likewise.
74 * config/sparc/sol2.h: Likewise.
75 * config/sparc/sol2-sld-64.h: Likewise.
76 * config/sparc/linux64.h: Likewise.
78 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
80 * doc/md.texi: Add comments about usage the latency time for the
81 different dependencies and about case when two or more conditions
82 in different define_insn_reservations returns TRUE for an insn.
84 * doc/md.texi: Add reference for automaton based pipeline
87 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
89 * doc/passes.texi: Add missed information about genattrtab.
91 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
93 * genautomata.c (output_automata_list_transition_code): Check
94 automata_list on NULL.
96 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
98 * genautomata.c (output_insn_code_cases,
99 output_automata_list_min_issue_delay_code,
100 output_automata_list_transition_code,
101 output_automata_list_state_alts_code): Comment the functions.
103 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
105 * genautomata.c (automata_list_el_t): New typedef.
106 (get_free_automata_list_el,free_automata_list_el,
107 free_automata_list, automata_list_hash, automata_list_eq_p,
108 initiate_automata_lists, automata_list_start, automata_list_add,
109 automata_list_finish, finish_automata_lists,
110 output_insn_code_cases, output_automata_list_min_issue_delay_code,
111 output_automata_list_transition_code,
112 output_automata_list_state_alts_code, add_automaton_state,
113 form_important_insn_automata_lists): New functions and prototypes.
114 (insn_reserv_decl): Add members important_automata_list and
116 (ainsn): Add members important_p.
117 (automata_list_el): New structure.
118 (first_free_automata_list_el, current_automata_list,
119 automata_list_table): New global variables.
120 (create_ainsns): Initiate member important_p.
121 (output_internal_min_issue_delay_func): Generate the switch and
122 call output_insn_code_cases.
123 (output_internal_trans_func, output_internal_state_alts_func):
125 (generate): Call initiate_automata_lists.
126 (automaton_states): New global variable.
127 (expand_automata): Call form_important_insn_automata_lists.
128 (write_automata): Call finish_automata_lists.
130 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
132 * genautomata.c (add_excls, add_presence_absence): Check that
133 cpu units in the sets belong the same automaton.
135 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
136 about that cpu units in the sets belong the same automaton.
138 * doc/md.texi: Ditto.
140 2001-12-20 Naveen Sharma,Nitin Gupta <naveens@noida.hcltech.com,niting@noida.hcltech.com>
142 * config/sh/sh.c (sh_use_dfa_interface): New function.
144 (sh_issue_rate): New Function.
145 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
146 TARGET_SCHED_ISSUE_RATE: define.
148 * config/sh/sh.md: Add DFA based pipeline description for SH4.
150 (define_attr insn_class): New attribute used for DFA
152 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
153 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
154 cmpeqdi_t): Likewise.
156 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
157 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
159 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
161 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
163 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
166 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
168 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
169 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
171 (output_dfa_start_func): Initiate new variable insn_codes_length,
172 (write_automata): Output definition of the new variable.
174 2001-10-02 David S. Miller <davem@redhat.com>
176 * haifa-sched.c (advance_one_cycle): New function.
177 (schedule_block): Use it.
178 (queue_to_ready): Use it, and also make sure to advance the DFA
179 state on all stall cycles, not just those where insn_queue links
182 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
184 * haifa-sched.c (max_issue): Remove last_p argument. Only return
185 non-zero if the highest-priority instruction could be scheduled.
186 (choose_ready): Remove last argument from max_issue call.
188 2001-09-28 David S. Miller <davem@redhat.com>
190 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
191 ultrasparc and 3 for other multi-issue sparcs.
193 2001-09-27 David S. Miller <davem@redhat.com>
195 * config/sparc/sparc.md (cycle_display): New pattern.
196 * config/sparc/sparc.c (sparc_cycle_display): New.
197 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
199 2001-09-25 David S. Miller <davem@redhat.com>
201 Convert all of Sparc scheduling to DFA
202 * config/sparc/sparc.md: Kill all define_function_unit
203 directives and replace with DFA equivalent.
204 * config/sparc/sparc.c (ultrasparc_adjust_cost,
205 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
206 ultra_fpmode_conflict_exists, ultra_find_type,
207 ultra_build_types_avail, ultra_flush_pipeline,
208 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
209 ultrasparc_variable_issue, ultrasparc_sched_init,
210 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
211 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
212 ultra_cur_hist, ultra_cycles_elapsed): Kill.
213 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
214 ultrasparc_store_bypass_p): New.
215 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
218 2001-09-24 David S. Miller <davem@redhat.com>
220 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
221 ready->vec[foo] not ready[foo].
223 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
225 * doc/md.texi: Correct examples for define_insn_reservations
228 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
230 * genautomata.c (create_automata): Print message about creation of
232 (generate): Remove printing meease about creation of
235 2001-09-05 David S. Miller <davem@redhat.com>
237 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
238 * config/sparc/linux64.h: Likewise.
240 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
242 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
243 schedule_block, sched_init, sched_finish): Add missed calls of
244 use_dfa_pipeline_interface.
246 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
249 * sched-vis.c (get_visual_tbl_length): Ditto.
251 2001-08-27 Richard Henderson <rth@redhat.com>
253 * genattr.c (main): Emit state_t even when not doing scheduling.
255 2001-08-27 Richard Henderson <rth@redhat.com>
257 * genautomata.c (expand_automata): Always create a description.
259 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
261 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
262 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
263 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
266 * genattr.c (main): New variable num_insn_reservations. Increase
267 it if there is DEFINE_INSN_RESERVATION. Output automaton based
268 pipeline hazard recognizer interface.
270 * genattrtab.h: New file.
272 * genattrtab.c: Include genattrtab.h.
273 (attr_printf, check_attr_test, make_internal_attr,
274 make_numeric_value): Move protypes into genattrtab.h. Define them
276 (num_dfa_decls): New global variable.
277 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
278 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
279 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
280 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
282 * genautomata.c: New file.
284 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
286 * sched-int.h: (curr_state): Add the external definition for
287 automaton pipeline interface.
288 (haifa_insn_data): Add comments for members blockage and units.
290 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
291 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
292 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
293 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
294 TARGET_SCHED_DFA_POST_CYCLE_INSN,
295 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
296 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
298 (TARGET_SCHED): Use the new macros.
300 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
301 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
302 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
303 dfa_bubble): New members in gcc_target.sched.
305 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
306 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
307 (insn_queue): Redefine it as pointer to array.
308 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
310 (max_insn_queue_index_macro_value): New variable.
311 (curr_state, dfa_state_size, ready_try): New varaibles for
313 (ready_element, ready_remove, max_issue): New function prototypes
314 for automaton interface.
315 (choose_ready): New function prototype.
316 (insn_unit, blockage_range): Add comments.
317 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
318 FUNCTION_UNITS_SIZE == 0.
319 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
320 actual_hazard, potential_hazard): Add comments.
321 (insn_cost): Use cost -1 as undefined value. Remove
322 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
324 (ready_element, ready_remove): New functions for automaton
326 (schedule_insn): Add new code for automaton pipeline interface.
327 (queue_to_ready): Add new code for automaton pipeline interface.
328 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
329 (debug_ready_list): Print newline when the queue is empty.
330 (max_issue): New function for automaton pipeline interface.
331 (choose_ready): New function.
332 (schedule_block): Add new code for automaton pipeline interface.
333 Print ready list before scheduling each insn.
334 (sched_init): Add new code for automaton pipeline interface.
335 Initiate insn cost by -1.
336 (sched_finish): Free the current automaton state and finalize
337 automaton pipeline interface.
339 * sched-rgn.c: Include target.h.
340 (init_ready_list, new_ready, debug_dependencies): Add new code for
341 automaton pipeline interface.
343 * sched-vis.c: Include target.h.
344 (get_visual_tbl_length): Add code for automaton interface.
345 (target_units, print_block_visualization): Add comments.
347 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
348 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
349 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
350 (getruntime.o, genautomata.o): New entries.
351 (genattrtab.o): Add new dependency file genattrtab.h.
352 (genattrtab): Add new dependencies. Link it with `libm.a'.
353 (getruntime.o, hashtab.o): New entries for canadian cross.
355 * doc/md.texi: Description of automaton based model.
357 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
359 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
360 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
361 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
362 TARGET_SCHED_DFA_POST_CYCLE_INSN,
363 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
364 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
365 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
367 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
368 MAX_DFA_ISSUE_RATE): New macro descriptions.
370 * doc/contrib.texi: Add dfa based scheduler contribution.
372 * doc/gcc.texi: Add more information about genattrtab.
374 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
376 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
377 adjust_address_nv call.
379 2002-04-29 Janis Johnson <janis187@us.ibm.com>
381 * doc/install.texi (Testing): Provide additional information, and
382 a stronger encouragement, for running the testsuites.
384 2002-04-29 DJ Delorie <dj@redhat.com>
386 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
389 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
391 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
392 Solaris 2 <widec.h> if missing.
393 * fixinc/fixincl.x: Regenerate.
394 * fixinc/tests/base/widec.h: New file.
396 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
398 * toplev.c (f_options): Add "profile" switch so that
399 -fno-profile can be used to disable -p.
401 2002-04-29 Bernd Schmidt <bernds@redhat.com>
403 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
405 * tree.c (build_common_tree_nodes_2): Likewise.
406 * tree.h (enum tree_index): Likewise.
407 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
409 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
411 (init_mmx_sse_builtins): Initialize SSE2 builtins.
412 (ix86_expand_builtin): Add support for SSE2 builtins.
413 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
414 (VALID_SSE_REG_MODE): Use it.
415 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
416 (enum ix86_builtins): Add SSE2 builtins.
417 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
418 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
419 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
420 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
421 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
422 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
423 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
424 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
425 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
426 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
427 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
428 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
429 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
430 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
431 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
432 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
433 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
434 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
435 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
436 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
437 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
438 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
439 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
440 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
441 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
442 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
443 lfence_insn): New patterns.
444 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
445 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
447 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
449 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
451 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
453 * doc/contrib.texi (Contributors): Add Paolo Carlini and
455 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
456 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
457 and CPU instead of cpu.
459 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
461 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
463 (lang_independent_options): Add -fif-conversion, -fif-conversion2
464 (rest_of_compilation): Do if conversion only when asked for.
465 (parse_options_and_default_flags): Set new variables to 1 for -O1
466 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
468 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
470 * i386.c (dbx64_register_map): Fix typo.
472 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
474 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
475 real_one_half, real_bb_freq_max): New static variables.
476 (debug_profile_bbauxs): Kill.
477 (process_note_predictions): Kill unused variable.
478 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
480 (propagate_freq): Use REAL_ARITHMETICS.
481 (estimate_bb_frequencies): Likevise; init new static variables.
482 * Makefile.in (predict.o): Add dependency on real.h
484 2002-04-28 David S. Miller <davem@redhat.com>
487 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
488 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
489 several {reads,writes} instead.
490 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
493 2002-04-27 David S. Miller <davem@redhat.com>
496 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
499 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
500 including signal.h and sys/ucontext.h, not needed.
502 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
504 * varasm.c (output_constant_def): Correct test for not calling
505 ENCODE_SECTION_INFO for INTEGER_CST.
507 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
509 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
510 keep most cases as function eval_token.
511 (eval_token): New function.
512 (_cpp_parse_expr): Read token here for improved diagnostics.
513 Don't use op_as_text. Detect bad ':' here.
514 (reduce): Don't detect bad ':' here.
515 (op_as_text): Remove.
516 * cpphash.h (_cpp_test_assertion): Change prototype.
517 * cpplib.c (_cpp_test_assertion): Change prototype.
519 2002-04-28 Richard Henderson <rth@redhat.com>
522 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
523 (ggc_mark_rtx_children): New.
525 2002-04-28 Jakub Jelinek <jakub@redhat.com>
528 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
529 after call peepholes for UltraSPARC.
530 (call + jump 64-bit peepholes): Remove.
532 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
535 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
536 result as temporary value.
538 2002-04-28 Jakub Jelinek <jakub@redhat.com>
541 * toplev.c (rest_of_compilation): Only run regrename and copy
542 propagation if optimizing.
544 2002-04-28 Jakub Jelinek <jakub@redhat.com>
547 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
548 register of REGNO_DECL (i).
549 * Makefile.in (reload1.o): Add $(TREE_H).
551 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
553 * cppexp.c (lex): Update to use state.skip_eval.
554 (struct op): Remove prio and flags members.
555 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
556 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
557 (LEFT_ASSOC): New macro.
558 (optab): New table of operator priorities and flags.
560 (_cpp_parse_expr): Clean up logic. Return bool. Use a
561 malloc-ed parser stack.
562 (reduce): New; reduce the operator stack.
563 (_cpp_expand_op_stack): Expand the operator stack as necessary.
564 * cpphash.h (struct op): Predeclare.
565 (struct cpp_reader): New members op_stack, op_limit.
566 (struct lexer_state): New member skip_eval.
567 (_cpp_parse_expr): Update.
568 (_cpp_expand_op_stack): New.
569 * cpplib.c (do_if): Update.
570 * cppinit.c (cpp_create_reader): Create op stack.
571 (cpp_destroy): And destroy it.
572 * cpplib.h (CPP_LAST_CPP_OP): Correct.
573 (TTYPE_TABLE): Correct.
575 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
578 * c-decl.c (duplicate_decls): Call merge_weak.
579 * c-pragma.c (apply_pragma_weak): Warn about misuse.
580 * output.h (merge_weak): Prototype merge_weak.
581 * varasm.c (merge_weak): New function.
582 (declare_weak): Make sure we don't give an error on VAR_DECLs.
583 Mark RTL with SYMBOL_REF_WEAK.
585 2002-04-27 Kurt Garloff <garloff@suse.de>
587 * tree-inline.c (inlinable_function_p): Improve heuristics
588 by using a smoother function to cut down allowable inlinable size.
589 * param.def: Add parameters max-inline-insns-single,
590 max-inline-slope, min-inline-insns that determine the exact
591 shape of the above function.
594 2002-04-26 Richard Henderson <rth@redhat.com>
596 * c-parse.in (malloced_yyss, malloced_yyvs): New.
597 (yyoverflow): Re-add. Set them.
598 (free_parser_stacks): New.
599 * c-common.h: Declare it.
600 * c-lex.c (c_common_parse_file): Call it.
602 2002-04-26 Richard Henderson <rth@redhat.com>
604 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
607 2002-04-26 Eric Christopher <echristo@redhat.com>
610 * config/mips/mips.c (mips_issue_rate): Define. New function.
611 (TARGET_SCHED_ISSUE_RATE): Use.
613 2002-04-25 David S. Miller <davem@redhat.com>
616 * reorg.c (optimize_skip): Do not allow exception causing
617 instructions to be considered for delay slots.
618 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
619 (relax_delay_slots): Do not try to consider exception causing
620 instructions as redundant.
622 2002-04-26 Richard Henderson <rth@redhat.com>
625 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
627 2002-04-26 Mark Mitchell <mark@codesourcery.com>
630 * config/i386/i386.md (untyped_call): Return the value in a float
631 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
634 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
636 * tree.c (tree_int_cst_lt): Compare constants whose types differ
637 in unsigned-ness correctly.
639 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
641 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
642 portable runtime model.
644 2002-04-26 Richard Henderson <rth@redhat.com>
646 * c-parse.in (yyoverflow): Revert.
648 2002-04-26 David Edelsohn <edelsohn@gnu.org>
649 Richard Henderson <rth@redhat.com>
651 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
652 result as temporary value.
654 2002-04-26 Richard Henderson <rth@redhat.com>
657 * c-common.c (fix_string_type): Split out of ...
658 (combine_strings): ... here. Take a varray, not a tree list.
659 (c_expand_builtin_printf): Use fix_string_type.
660 * c-common.h: Update decls.
661 * c-parse.in (string): Remove. Update all uses to use STRING
662 instead, and not call combine_strings.
665 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
666 (build_asm_stmt): Likewise.
667 * objc/objc-act.c (my_build_string): Use fix_string_type.
668 (build_objc_string_object): Build varray for combine_strings.
670 2002-04-26 Bo Thorsen <bo@suse.co.uk>
672 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
675 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
677 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
678 (HAVE_NO_R_OPERAND): Remove.
679 (HAVE_VALUE): Remove.
680 (op_to_prio): Update.
681 (UNARY): Don't alter flags.
682 (_cpp_parse_expr): want_value used to indicate whether
683 a number or unary operator is expected next. Distinguish
684 unary and binary +/-.
685 (op_as_text): Update for unary operators.
687 2002-04-25 Richard Henderson <rth@redhat.com>
690 * c-parse.in (yyoverflow): New.
692 2002-04-25 Richard Henderson <rth@redhat.com>
695 * c-common.c (shorten_compare): Simplfy conditions leading to
696 the generation of a warning.
698 2002-04-25 Richard Henderson <rth@redhat.com>
701 * expmed.c (extract_bit_field): Fall through to generic code rather
702 than aborting on subreg special case.
704 2002-04-25 David S. Miller <davem@redhat.com>
706 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
709 2002-04-25 Steve Christiansen <smc@us.ibm.com>
711 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
713 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
715 * c-decl.c (grokdeclarator): Remove outdated ??? note
716 on invalid declaration of flexible array members.
718 2002-04-25 Richard Henderson <rth@redhat.com>
720 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
722 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
724 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
725 needed by the compiler, even if they are used as global regs.
727 2002-04-25 Matt Hiller <hiller@redhat.com>
729 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
731 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
732 of the corresponding functions.
733 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
736 2002-04-25 Matt Hiller <hiller@redhat.com>
738 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
740 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
741 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
742 registers, adjust comment accordingly.
743 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
744 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
745 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
746 for coprocessor registers.
747 (ADDITIONAL_REGISTER_NAMES): Include
748 ALL_COP_ADDITIONAL_REGISTER_NAMES.
750 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
751 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
752 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
753 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
754 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
756 (mips_char_to_class): Adjust comment to include coprocessor
759 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
761 (mips_reg_names, mips_regno_to_class): Include coprocessor
763 (mips_sw_reg_names): Ditto, make non-static.
764 (mips_move_1word): Handle moves to and from coprocessor registers.
765 (mips_move_2words): Handle moves to and from coprocessor
767 (mips_class_max_nregs, mips_register_move_cost): Handle
768 coprocessor register classes.
769 (override_options): Initialize mips_char_to_class and
770 mips_hard_regno_mode_ok properly for coprocessor registers.
772 * config/mips/mips.md (movdi_internal, movdi_internal2,
773 movsi_internal1, movsi_internal2): Add constraint-sets for
774 coprocessor registers.
775 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
776 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
778 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
779 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
781 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
782 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
784 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
785 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
788 * doc/tm.texi: Document feature.
790 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
792 * integrate.c (function_attribute_inlinable_p): Simplify.
793 Check the table pointer is not NULL.
795 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
797 * doc/c-tree.texi: Fix typo in introduction.
799 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
801 * c-common.h (c_common_parse_file): Update.
802 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
803 * c-lex.c (YYDEBUG): Get from c-lex.h.
804 (c_common_parse_file): Update.
805 * c-lex.h (YYDEBUG, yydebug): New.
806 * c-parse.in (YYDEBUG): Get from c-lex.h.
807 (c_set_yydebug): Remove.
808 * c-tree.h (c_set_yydebug): Remove.
809 * langhooks-def.h (lhd_do_nothing_i): New.
810 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
811 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
812 * langhooks.c (lhd_do_nothing_i): New.
813 (lhd_set_yydebug): Remove.
814 * langhooks.h (struct lang_hooks): Update.
815 * toplev.c (set_yydebug): New.
816 (compile_file): Update call to parse_file hook.
817 (decode_d_option): Update.
819 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
821 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
823 * loop.c (load_mems): Don't change the interface of called functions.
825 * calls.c (expand_call): Take current_function_pretend_args_size
826 into account when setting argblock for sibcalls.
828 2002-04-24 Matt Hiller <hiller@redhat.com>
830 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
833 * cpplex.c (skip_line_comment): Process comment one multibyte
834 character at a time rather than one char at a time, if
836 (parse_string): Process string one multibyte character at a time
837 rather than one char at a time, if appropriate.
838 * c-lex.c (lex_string): Lex and copy multibyte strings
840 * cpplib.h (cppchar_t): Change to unsigned.
842 2002-04-24 Richard Henderson <rth@redhat.com>
845 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
848 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
850 * sh.c (sh_va_arg): If argument was passed by reference,
851 dereference the pointer.
853 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
855 * sh.md (divsi3_i4_media): Use match_operand for input values
856 rather than hard registers.
857 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
858 unnecessarily through hard registers. Keep copies of pseudo
859 registers outside of the libcall sequence.
861 * sh.md (casesi_shift_media): Add modes.
863 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
866 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
868 * attribs.c (c_common_attribute_table): Move table and handlers
870 (format_attribute_table, lang_attribute_table,
871 lang_attribute_common): Remove.
872 (init_attributes): Replace NULL pointers with pointers to the
874 (handle_packed_attribute, handle_nocommon_attribute,
875 handle_common_attribute, handle_noreturn_attribute,
876 handle_noinline_attribute, handle_always_inline_attribute,
877 handle_used_attribute, handle_unused_attribute,
878 handle_const_attribute, handle_transparent_union_attribute,
879 handle_constructor_attribute, handle_destructor_attribute,
880 handle_mode_attribute, handle_section_attribute,
881 handle_aligned_attribute, handle_weak_attribute,
882 handle_alias_attribute, handle_visibility_attribute,
883 handle_no_instrument_function_attribute, handle_malloc_attribute,
884 handle_no_limit_stack_attribute, handle_pure_attribute,
885 handle_deprecated_attribute, handle_vector_size_attribute,
886 vector_size_helper): Move to c-common.c.
887 * c-common.c (c_common_attribute_table,
888 handle_packed_attribute, handle_nocommon_attribute,
889 handle_common_attribute, handle_noreturn_attribute,
890 handle_noinline_attribute, handle_always_inline_attribute,
891 handle_used_attribute, handle_unused_attribute,
892 handle_const_attribute, handle_transparent_union_attribute,
893 handle_constructor_attribute, handle_destructor_attribute,
894 handle_mode_attribute, handle_section_attribute,
895 handle_aligned_attribute, handle_weak_attribute,
896 handle_alias_attribute, handle_visibility_attribute,
897 handle_no_instrument_function_attribute, handle_malloc_attribute,
898 handle_no_limit_stack_attribute, handle_pure_attribute,
899 handle_deprecated_attribute, handle_vector_size_attribute,
900 vector_size_helper): Move from attribs.c.
901 * c-common.h (c_common_attribute_table,
902 c_common_format_attribute_table): New.
903 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
904 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
905 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
906 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
907 (LANG_HOOKS_INITIALIZER): Update.
908 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
909 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
910 * target.h: Update comment.
911 * tree.c (default_target_attribute_table): Remove.
912 * tree.h (default_target_attribute_table, format_attribute_table,
913 lang_attribute_table, lang_attribute_common): Remove.
915 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
916 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
918 2002-04-24 Jason Merrill <jason@redhat.com>
920 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
921 * dwarf2out.c (dwarf_attr_name): Support it.
922 (gen_array_type_die): Emit it.
923 (lookup_type_die): No special handling for VECTOR_TYPE.
924 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
926 2002-04-24 Richard Henderson <rth@redhat.com>
928 * config/mips/mips.md (movdi_usd): Renumber.
930 2002-04-24 David S. Miller <davem@redhat.com>
933 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
934 32-bit Sparc and current_function_returns_struct is true.
936 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
938 * loop.c (canonicalize_condition): Use gen_int_mode.
940 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
942 * config/rs6000/altivec.h: Cleanup file. Add non individual
986 (vec_lde): Add vector float variant.
991 (vec_vmhaddshs): New.
1013 (vec_vmladduhm): New.
1014 (vec_vmhraddshs): New.
1016 (vec_vmsummbm): New.
1017 (vec_vmsumuhm): New.
1018 (vec_vmsumshm): New.
1019 (vec_vmsumuhs): New.
1020 (vec_vmsumshs): New.
1029 (vec_vnmsubfp): New.
1047 (vec_vrsqrtefp): New.
1058 (vec_vspltisb): New.
1059 (vec_vspltish): New.
1060 (vec_vspltisw): New.
1085 (vec_vsum4ubs): New.
1086 (vec_vsum4sbs): New.
1087 (vec_vsum4shs): New.
1088 (vec_vsum2sws): New.
1099 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
1102 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
1103 added literals from substracted literals.
1104 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
1105 (fold) [associate]: Preserve MINUS_EXPR if needed.
1107 2002-04-23 Zack Weinberg <zack@codesourcery.com>
1109 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
1112 2002-04-23 Tom Tromey <tromey@redhat.com>
1114 * gcc.c: Added --resource. For PR java/6314.
1116 2002-04-23 David O'Brien <obrien@FreeBSD.org>
1118 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
1119 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
1122 2002-04-23 David O'Brien <obrien@FreeBSD.org>
1124 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
1126 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
1128 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
1130 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
1131 (ix86_expand_clrstr): Fix typo.
1132 * loop.c (gen_load_of_final_value): New.
1133 (loop_givs_rescan, strength_reduce, check_dbra_loop):
1136 2002-04-23 Roger Sayle <roger@eyesopen.com>
1138 * builtins.c (builtin_memset_gen_str): New function.
1139 (expand_builtin_memset): Optimize the case of constant length, but
1142 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
1144 * config/rs6000/altivec.h (vec_step): Remove extraneous
1146 (vec_ctu): Cast return.
1148 2002-04-23 Alan Modra <amodra@bigpond.net.au>
1151 * function.h: (struct function): Add profile_label_no field.
1152 (current_function_profile_label_no): Define.
1153 * function.c: (profile_label_no): New static var.
1154 (expand_function_start): Increment it, and copy to
1155 current_function_profile_label_no.
1156 * output.h (profile_label_no): Delete.
1157 * final.c (profile_label_no): Delete.
1158 (profile_function): Use current_function_profile_label_no.
1159 (final_end_function): Don't increment profile_label_no here.
1160 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
1161 profile_label_no with current_function_profile_label_no.
1162 * config/pa/pa.c (current_function_number): Delete.
1163 (pa_output_function_prologue): Don't output profile label here.
1164 (hppa_profile_hook): Use label_no param rather than
1165 current_function_number.
1166 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
1167 * config/pa/pa.h: .. here.
1168 (FUNCTION_PROFILER): Output profile label here.
1170 2002-04-22 Eric Christopher <echristo@redhat.com>
1172 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
1173 patch of 2002-04-09 due to binutils issues.
1174 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
1176 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
1178 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
1179 constraint to 'o' for m=r and r=m alternatives.
1180 ("*movv8hi_internal1"): Same.
1181 ("*movv16qi_internal1"): Same.
1182 ("*movv4sf_internal1"): Same.
1184 2002-04-22 Janis Johnson <janis187@us.ibm.com>
1186 * rtl.h (RTX_FLAG): New macro.
1187 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
1188 * final.c (alter_subreg): Use macro to access rtx flag.
1189 * integrate.c (copy_rtx_and_substitute): Use new access macro.
1190 * print-rtl.c (print_rtx): Use new access macro.
1192 * cse.c (insert): Check rtx code before accessing flag.
1194 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
1195 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
1196 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
1197 convert_const_symbol_ref, make_canonical, make_alternative_compare,
1198 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
1199 simplify_test_exp, optimize_attrs, simplify_by_exploding,
1200 find_and_mark_used_attributes, unmark_used_attributes,
1201 add_values_to_cover, simplify_with_current_value,
1202 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
1203 copy_rtx_unchanging, main): Use new access macros.
1205 2002-04-22 Tom Rix <trix@redhat.com>
1207 * expmed.c (init_expmed): Generate shifted constant once.
1209 2002-04-22 Zack Weinberg <zack@codesourcery.com>
1211 * c-lex.c (lex_charconst): Call convert to get constant in
1212 proper type; don't just smash the type field.
1215 * config.gcc: Add list of obsolete configurations. Disallow
1216 building these without --enable-obsolete.
1217 * doc/install.texi: Document --enable-obsolete and obsoletion
1218 policy. Mention obsoletion of individual targets in
1221 2002-04-22 Richard Henderson <rth@redhat.com>
1223 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
1225 2002-04-22 Mark Mitchell <mark@codesourcery.com>
1228 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
1229 (walk_fixup_memory_subreg): Likewise.
1230 (fixup_var_refs_insn): Adjust accordingly.
1231 (fixup_var_refs_1): Likewise.
1233 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
1235 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
1236 LIBPATH_ARCH64_SPEC): Define.
1237 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
1238 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
1239 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
1240 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
1242 2002-04-22 Joel Sherrill <joel@OARcorp.com>
1244 * gthr-rtems.h: Correct prototypes to remove warnings.
1246 2002-04-22 Richard Henderson <rth@redhat.com>
1249 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
1251 * gcse.c (free_insn_expr_list_list): New.
1252 (clear_modify_mem_tables): Use it. Fix bit set usage.
1253 (canon_list_insert): Use EXPR_LISTs for expressions.
1254 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
1256 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
1258 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
1259 file change and include code to _cpp_pop_buffer.
1260 * cpphash.h (struct pending_option): Predeclare.
1261 (struct cpp_reader): New member next_include_file.
1262 (_cpp_pop_file_buffer): Update.
1263 (_cpp_push_next_buffer): Update, rename.
1264 * cppinit.c (cpp_destroy): Free include chain and pending here.
1265 (cpp_finish_options): Simplify.
1266 (_cpp_push_next_buffer): Rename and clean up.
1267 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
1269 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
1271 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
1273 * config/rs6000/altivec.h (vec_xor): Add variant for both args
1274 being vector signed int.
1276 (vec_xor): Add variant for both args being vector signed char.
1277 Remove redundant variant.
1280 2002-04-21 David S. Miller <davem@redhat.com>
1282 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
1283 compare mode in output RTL.
1285 2002-04-22 David Edelsohn <edelsohn@gnu.org>
1287 * config/rs6000/rs6000.c (rs6000_override_options): Correct
1288 style and formatting of previous patch.
1290 2002-04-22 Alan Modra <amodra@bigpond.net.au>
1292 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
1293 flag_pic for ABI_AIX.
1295 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
1297 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
1298 * cppfiles.c (read_include_file): Similarly.
1299 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
1300 uxstrdup ustrchr, ufputs): Similarly.
1301 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
1302 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
1303 cpp_ideq, parse_identifier, parse_number): Similarly.
1304 * cpplib.c (struct directive, dequote_string, D, run_directive,
1305 cpp_push_buffer): Similarly.
1306 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
1307 _cpp_create_definition, check_trad_stringification,
1308 cpp_macro_definition): Similarly.
1310 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
1312 * cppmacro.c (funlike_invocation_p): Don't step back
1315 2002-04-21 David Edelsohn <edelsohn@gnu.org>
1317 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
1320 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
1322 * doc/invoke.texi: Remove Chill references.
1323 * doc/gcc.texi: Update last modified date.
1325 2002-04-20 Kazu Hirata <kazu@hxi.com>
1327 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
1328 push and pop. Replace add.l with add.w.
1330 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
1332 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
1333 multiply instructions for H8/300H case.
1335 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
1337 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
1338 Bum three instructions from each routine.
1340 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
1342 * Makefile.in: Update.
1343 * decl.c (push_c_function_context, pop_c_function_context,
1344 mark_c_function_context): Rename for consistency.
1345 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
1346 * c-tree.h (push_c_function_context, pop_c_function_context,
1347 mark_c_function_context): Rename for consistency.
1348 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1349 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
1350 * function.c (init_lang_status, save_lang_status,
1351 restore_lang_status, mark_lang_status, free_lang_status):
1352 Move to langhooks.h.
1353 (push_function_context_to, pop_function_context_from,
1354 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
1356 * function.h (init_lang_status, save_lang_status,
1357 restore_lang_status, mark_lang_status, free_lang_status):
1358 Move to langhooks.h.
1359 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
1360 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
1361 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
1362 LANG_HOOKS_FUNCTION_INITIALIZER): New.
1363 (LANG_HOOKS_INITIALIZER): Update.
1364 (lhd_do_nothing_f): New.
1365 * langhooks.h (struct lang_hooks_for_functions): New.
1366 (struct lang_hooks): New hooks.
1367 * langhooks.c (lhd_do_nothing_f): New.
1369 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1370 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
1372 2002-04-19 David S. Miller <davem@redhat.com>
1374 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
1375 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
1377 2002-04-19 Jakub Jelinek <jakub@redhat.com>
1379 PR optimization/3756
1380 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
1381 x = ((int) y < 0) ? cst1 : cst2.
1383 2002-04-19 Jakub Jelinek <jakub@redhat.com>
1386 * function.c: Reapply patch for c/6358.
1387 (expand_function_end): Copy decl_rtl's mode, not
1388 current_function_return_rtx mode.
1390 2002-04-19 Joel Sherrill <joel@OARcorp.com>
1392 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
1395 2002-04-19 Tom Tromey <tromey@redhat.com>
1397 * doc/install.texi (Specific): Update status of Solaris 2.8.
1400 2002-04-19 Andreas Schwab <schwab@suse.de>
1402 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
1403 (PUT_REAL): Restore old definition.
1405 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
1406 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1408 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
1409 binutils 2.11.2 and higher generate smaller binaries than Sun's
1412 2002-04-19 Mark Mitchell <mark@codesourcery.com>
1415 * toplev.c (rest_of_compilation): Do not defer functions for which
1416 TREE_SYMBOL_REFERENCED has already been set.
1418 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
1420 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
1423 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
1425 * builtins.c: Include langhooks.h.
1426 (lang_type_promotes_to): Remove.
1427 (expand_builtin_va_arg): Use new hook.
1428 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
1429 (simple_type_promotes_to): Move to c-typeck.c.
1430 * c-common.h (simple_type_promotes_to): Remove.
1431 * c-decl.c (duplicate_decls, grokdeclarator): Update.
1432 * c-format.c: Include langhooks.h.
1433 (check_format_types): Update.
1434 * c-tree.h (c_type_promotes_to): New.
1435 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
1436 (type_lists_compatible_p): Update.
1437 * langhooks-def.h (lhd_type_promotes_to): New.
1438 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
1439 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
1440 * langhooks.c (lhd_type_promotes_to): New.
1441 * langhooks.h (struct lang_hooks_for_types): New hook.
1442 * tree.h (lang_type_promotes_to): Remove.
1444 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
1446 2002-04-18 Richard Henderson <rth@redhat.com>
1448 * function.c: Revert patch for c/6358.
1450 2002-04-18 Richard Henderson <rth@redhat.com>
1452 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
1453 blocks. Handle multiple references to the TRAP block. Handle
1454 non-adjacent THEN and OTHER blocks.
1456 2002-04-18 Richard Henderson <rth@redhat.com>
1458 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
1459 crash with no type for by-mode libcalls.
1461 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
1463 2002-04-18 Bob Wilson <bob.wilson@acm.org>
1465 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
1466 __xtensa_nonlocal_goto): Use a syscall instructions to flush
1467 the register windows.
1469 2002-04-18 Zack Weinberg <zack@codesourcery.com>
1471 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
1472 appropriate. Document need for extended precision even when
1473 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
1474 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
1475 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
1476 instead of relying on later syntax error when REAL_WIDTH > 5.
1477 * real.c: Define NE based only on whether or not we have a
1478 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
1479 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
1480 define GET_REAL and PUT_REAL as simple memcpy operations; no
1481 need to byteswap or round.
1482 Use #error instead of #ifdef-ing out the entire file, for
1483 prompt error detection.
1485 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
1487 2002-04-18 David S. Miller <davem@redhat.com>
1489 * config/sparc/sparc.h (BRANCH_COST): Define.
1491 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
1494 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
1496 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
1497 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
1498 propagate_block calls after relaxation loop using new variable
1499 stabilized_prop_flags.
1501 2002-04-18 Richard Henderson <rth@redhat.com>
1503 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
1504 (ia64_va_arg): Expect variable sized types by reference.
1505 * config/ia64/ia64-protos.h: Update.
1506 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
1507 ia64_function_arg_pass_by_reference.
1509 2002-04-18 Richard Henderson <rth@redhat.com>
1511 * ifcvt.c: Include except.h.
1512 (block_has_only_trap): Break out from find_cond_trap.
1513 (find_cond_trap): Use it. Always delete the trap block.
1514 (merge_if_block): Allow then block null. Be less simplistic about
1515 what insns can end a block.
1516 * Makefile.in (ifcvt.o): Depend on except.h.
1518 * config/ia64/ia64.md (trap, conditional_trap): New.
1520 2002-04-18 Jakub Jelinek <jakub@redhat.com>
1523 * function.c (assign_parms): Assign hard current_function_return_rtx
1525 (expand_function_end): ...not here.
1527 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
1529 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
1530 * c-tree.h (c_incomplete_type_error): New.
1531 * c-typeck.c (require_complete_type, build_component_ref): Update.
1532 (incomplete_type_error): Rename.
1533 * langhooks-def.h (lhd_incomplete_type_error): New.
1534 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
1535 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
1536 * langhooks.c (lhd_incomplete_type_error): New.
1537 * langhooks.h (struct lang_hooks_for_types): New hook.
1538 * tree.c (size_in_bytes): Use new hook.
1539 * tree.h (incomplete_type_error): Remove.
1541 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
1543 2002-04-18 Zack Weinberg <zack@codesourcery.com>
1545 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
1546 TARGET_FLOAT_FORMAT blocks.
1548 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1550 * doc/install.texi (Downloading the source): Do not mention Chill
1551 any longer, but mention Ada.
1552 (Configuration): Do not mention Chill any longer.
1554 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
1556 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
1558 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
1560 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
1563 2002-04-18 Jakub Jelinek <jakub@redhat.com>
1565 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
1566 instead of unsigned_type.
1568 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
1570 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
1571 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
1574 2002-04-18 Bernd Schmidt <bernds@redhat.com>
1576 * attribs.c (vector_type_node_list): New static variable.
1577 (handle_vector_size_attribute): Use it to avoid generating a
1578 new type node each time we are called.
1580 * combine.c (subst): Avoid trying to make a vector mode subreg of
1581 an integer constant.
1582 (gen_lowpart_for_combine): Likewise.
1584 2002-04-18 Roger Sayle <roger@eyesopen.com>
1585 Jakub Jelinek <jakub@redhat.com>
1587 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
1588 for integer constant c (if x has unsigned type or sign bit is not
1589 set in c). This folds the zero/sign extension into the bit-wise and
1592 2002-04-18 Jakub Jelinek <jakub@redhat.com>
1595 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
1598 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
1600 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
1602 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
1604 * gcc.c (read_specs): Detect and fail if an attempt is made to
1605 rename a spec string to an already existing string.
1607 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1609 * config/s390/s390.c (legitimize_pic_address): Do not generate
1610 illegal address constant without CONST.
1612 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1614 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
1615 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1617 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1619 PR optimization/6305
1620 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
1621 to make sure previous reloads are taken into account. Generate
1622 better code if one operand is an in-range immediate constant.
1624 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
1626 * doc/install.texi (Building): libgcj requires GNU make.
1628 2002-04-17 Jakub Jelinek <jakub@redhat.com>
1631 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
1632 even if hard quad and register is not floating.
1633 (movtf reg<-mem split): Disallow splitting if hard quad and
1634 register is floating.
1635 (movtf mem<-reg split): Likewise.
1636 * config/sparc/sparc.c (fp_register_operand): New predicate.
1637 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
1639 2002-04-17 Zack Weinberg <zack@codesourcery.com>
1641 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
1642 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
1643 (unprotoize.o): Ditto. Build from protoize.c. Define
1644 UNPROTOIZE on command line.
1645 * protoize.c: Include cppdefault.h. Delete include_defaults.
1646 (in_system_include_dir): Use cpp_include_defaults (defined in
1648 * unprotoize.c: Delete file.
1650 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
1652 * config/rs6000/altivec.h (vec_ld): Add array variants.
1656 2002-04-17 Alan Matsuoka <alanm@redhat.com>
1657 Aldy Hernandez <aldyh@redhat.com>
1659 * config/rs6000/altivec.h: Define __ALTIVEC__.
1666 Add parentheses to all macro arguments.
1668 2002-04-16 Richard Henderson <rth@redhat.com>
1671 * except.c (remove_eh_handler): Insert inner regions at beginning
1672 of sibling chain. Refactor expressions.
1674 2002-04-16 Richard Henderson <rth@redhat.com>
1676 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
1677 * config/sparc/sol2-gas-bi.h: New file.
1678 * config.gcc (sparc*-solaris): Add it as needed.
1679 * configure.in (AS_SPARC64_FLAG): Remove check.
1680 * config.in, configure: Regenerate.
1682 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
1684 2002-04-16 Richard Henderson <rth@redhat.com>
1686 * config/mips/mips.c (override_options): Don't override N32 for
1690 * config/mips/mips.md (can_delay): Split out of existing define_delays.
1691 (HILO_delay): Set can_delay false.
1693 2002-04-16 Dale Johannesen <dalej@apple.com>
1695 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
1696 instruction addresses.
1697 (rs6000_output_function_epilogue): Likewise.
1699 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
1701 * c-parse.in (poplevel, compstmt_start,
1702 compstmt_primary_start): Add ending ';', in accordance
1705 2002-04-16 Richard Henderson <rth@redhat.com>
1707 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
1708 Adjust tm_file order to get TARGET_DEFAULT set properly.
1709 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
1710 * doc/install.texi (sparc-solaris): Update.
1712 2002-04-16 Dale Johannesen <dalej@apple.com>
1714 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
1715 comparison operands do not match each other or if modes of
1716 conditions do not match result.
1718 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
1721 * config/s390/s390.md (mulsidi3): Set both subregs of the
1724 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
1726 * config/rs6000/altivec.h (vec_addc): Type check.
1728 2002-04-16 Jakub Jelinek <jakub@redhat.com>
1731 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
1733 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
1735 2002-04-15 Richard Henderson <rth@redhat.com>
1737 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
1738 call_really_used_regs too.
1740 2002-04-15 Richard Henderson <rth@redhat.com>
1742 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
1744 2002-04-15 David S. Miller <davem@redhat.com>
1746 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
1749 2002-04-16 Jakub Jelinek <jakub@redhat.com>
1752 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
1753 CONST_VECTOR is { 0, ... 0 }.
1755 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
1757 * doc/install.texi (Installing GCC: Configuration): Clarify
1758 the only supported ways to configure gcc.
1760 2002-04-15 Roland McGrath <roland@frob.com>
1762 * config.gcc (alpha*-*-gnu*): New target configuration.
1763 * config/alpha/gnu.h: New file for it.
1764 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
1766 2002-04-16 Mark Mitchell <mark@codesourcery.com>
1768 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
1769 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
1770 * tree.h (expand_start_stmt_expr): Update prototype.
1771 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
1772 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
1773 on the STMT_EXPR created for the inline function.
1775 2002-04-15 Richard Henderson <rth@redhat.com>
1777 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
1778 config/i386/linux-aout.h, config/i386/linux-oldld.h,
1779 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
1780 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
1781 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
1782 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
1783 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
1784 Define __gnu_linux__, not gnu_linux.
1785 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
1787 2002-04-15 Mark Mitchell <mark@codesourcery.com>
1789 Remove Chill front end.
1790 * gcc.c (default_compilers): Remove Chill entries.
1791 * ch: Remove directory.
1792 * doc/frontends.texi: Remove information about Chill.
1793 * doc/sourcebuild.texi: Likewise.
1794 * doc/standards.texi: Likewise.
1796 2002-04-15 Douglas B Rupp <rupp@gnat.com>
1798 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
1799 (LONGLONG_STANDALONE): Define.
1801 2002-04-15 David S. Miller <davem@redhat.com>
1803 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
1804 Call emit_library_call with LCT_NORMAL.
1805 (sparc_initialize_trampoline): Use LCT_foo instead of
1806 magic constant in emit_library_call invocations.
1807 (sparc64_initialize_trampoline): Likewise.
1808 (sparc_profile_hook): Likewise.
1809 * config/sparc/sparc.md: Likewise.
1811 * config/sparc/sparc.c (sparc_extra_constraint_check):
1812 Fix type of argument 'c'.
1813 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
1816 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
1818 * diagnostic.h (output_buffer_state): Redefine.
1819 (output_format_decoder): New macro.
1820 (output_prefixing_rule): Likewise.
1821 (output_line_cutoff): Likewise.
1822 (diagnostic_format_decoder): Adjust.
1823 (diagnostic_prefixing_rule): Likewise.
1824 (diagnostic_line_cutoff): Likewise.
1825 (diagnostic_state): Likewise.
1826 (diagnostic_kind_count): Likewise.
1827 (diagnostic_buffer): Now a macro.
1829 * diagnostic.c (diagnostic_buffer): Remove definition.
1830 (output_is_line_wrapping): Adjust.
1831 (set_real_maximum_length): Likewise.
1832 (output_set_maximum_length): Likewise.
1833 (init_output_buffer): Likewise.
1834 (lhd_print_error_function): Likewise.
1835 (output_do_verbatim): Likewise.
1837 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
1839 * cpperror.c (print_location): Don't print include chain
1841 (cpp_begin_message): Update to use DL_ macros.
1842 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
1843 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
1844 cpp_notice, cpp_notice_from_errno): Remove.
1845 (cpp_error, cpp_error_with_line): Update to take a diagnostic
1848 * cppexp.c (CPP_ICE): Remove.
1849 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
1850 lex, integer_overflow, _cpp_parse_expr): Update.
1851 * cppfiles.c (read_include_file, find_include_file,
1852 handle_missing_header, _cpp_read_file, remap_filename): Update.
1853 * cpphash.h (enum error_type): Remove.
1854 (_cpp_begin_message): Update.
1855 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
1856 cpp_handle_option, cpp_post_options): Update.
1857 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
1858 skip_whitespace, parse_identifier, parse_slow, parse_string,
1859 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
1860 cpp_interpret_charconst): Update.
1861 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
1862 lex_macro_node, do_undef, glue_header_name, parse_include,
1863 do_include_common, read_flag, do_line, do_linemarker, do_ident,
1864 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
1865 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
1866 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
1867 _cpp_pop_buffer, do_diagnostic): Update.
1868 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
1869 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
1870 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
1871 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
1872 cpp_notice, cpp_notice_from_errno): Remove.
1873 (cpp_error, cpp_error_with_line): Update to take a diagnostic
1876 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
1877 collect_args, enter_macro_context, save_parameter, parse_params,
1878 _cpp_create_definition, check_trad_stringification,
1879 cpp_macro_definition): Update.
1880 * cppmain.c (cpp_preprocess_file): Update.
1881 * fix-header.c (read_scan_file): Update.
1883 2002-04-14 Andreas Schwab <schwab@suse.de>
1885 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
1887 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
1889 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
1891 2002-04-13 Mark Mitchell <mark@codesourcery.com>
1893 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
1896 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
1898 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
1900 2002-04-13 Joel Sherrill <joel@OARcorp.com>
1902 * config/sparc/t-elf: Enable v8 multilibs. Impacts
1903 sparc-elf and sparc-rtems targets.
1905 2002-04-13 Mark Mitchell <mark@codesourcery.com>
1907 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
1908 defined, and __gnu_hurd__ wherever __GNU__ is defined.
1909 * arm/linux-elf.h: Likewise.
1910 * cris/aout.h: Likewise.
1911 * cris/linux.h: Likewise.
1912 * i370/linux.h: Likewise.
1913 * i386/gnu.h: Likewise.
1914 * i386/linux-aout.h: Likewise.
1915 * i386/linux-oldld.h: Likewise.
1916 * i386/linux.h: Likewise.
1917 * i386/linux64.h: Likewise.
1918 * ia64/linux.h: Likewise.
1919 * m68k/linux-aout.h: Likewise.
1920 * m68k/linux.h: Likewise.
1921 * mips/linux.h: Likewise.
1922 * pa/pa-linux.h: Likewise.
1923 * pj/linux.h: Likewise.
1924 * rs6000/sysv4.h: Likewise.
1925 * s390/linux.h: Likewise.
1926 * sh/linux.h: Likewise.
1927 * sparc/linux-aout.h: Likewise.
1928 * sparc/linux.h: Likewise.
1929 * sparc/linux64.h: Likewise.
1930 * xtensa/linux.h: Likewise.
1932 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
1934 * stmt.c (check_unique_operand_names): Expect operand names to
1935 be strings rather than identifiers. Use simple_cst_equal to
1937 (resolve_operand_name_1): Make same identifier to string change here.
1938 * c-parse.in (asm_operand): Convert a named operand into a string.
1939 * cp/parse.y (asm_operand): Likewise.
1941 2002-04-13 Andreas Schwab <schwab@suse.de>
1943 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
1945 2002-04-12 Mark Mitchell <mark@codesourcery.com>
1947 Revert these changes:
1949 2002-04-06 Mark Mitchell <mark@codesourcery.com>
1952 * stor-layout.c (layout_decl): Reset the RTL for the decl.
1954 2002-04-12 Richard Henderson <rth@redhat.com>
1956 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
1957 (sparc*-*-solaris): Clean up header files.
1958 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
1959 and plan on generating 64-bit code.
1960 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
1961 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
1962 * config/sparc/sol2-sld-64.h: Rename ...
1963 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
1964 for AS_SPARC64_FLAG not defined.
1965 * config/sparc/sol2-gld-bi.h: New.
1966 * config/sparc/sol2-sld.h: Remove.
1967 * config/sparc/sol26-sld.h: New.
1968 * config/sparc/sol2.h: Tidy comments.
1969 * doc/install.texi: Document sparc-solaris configury changes.
1971 2002-04-12 Richard Henderson <rth@redhat.com>
1973 * recog.c (offsettable_address_p): Match the logic in adjust_address.
1975 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
1976 in 64-bit mode only. Use only for 32-bit or MEDLOW.
1978 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1980 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
1982 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
1984 * pa.c (pa_can_combine_p): Call extract_insn before calling
1987 2002-04-12 Douglas B Rupp <rupp@gnat.com>
1989 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
1990 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
1991 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
1992 (CPP_PREDEFINES): Handle __declspec.
1993 * config/i386/t-interix (USER_H): Remove.
1995 2002-04-12 DJ Delorie <dj@redhat.com>
1997 * integrate.c (compare_blocks): Make comparisons safe for when
1998 sizeof(int) < sizeof(char *).
1999 (find_block): Likewise.
2001 2002-04-12 Jan Hubicka <jh@suse.cz>
2002 David Edelsohn <edelsohn@gnu.org>
2004 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
2006 (symbol_ref_operand): New.
2007 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
2008 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
2010 2002-04-12 Andreas Schwab <schwab@suse.de>
2012 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
2013 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
2014 overrides the definition in config/svr4.h.
2016 2002-04-12 Eric Norum <eric.norum@usask.ca>
2018 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
2019 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
2020 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
2021 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
2022 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
2023 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
2024 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
2025 definitions to config/rtems.h and make the targets more similar.
2027 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2029 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
2030 POINTERS_EXTEND_UNSIGNED.
2031 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
2032 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
2034 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
2037 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
2039 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
2040 depends on TARGET_SHMEDIA, not TARGET_SH5.
2042 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
2044 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
2045 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
2047 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
2049 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
2052 2002-04-12 Andreas Schwab <schwab@suse.de>
2054 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
2056 2002-04-12 Richard Henderson <rth@redhat.com>
2059 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
2061 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
2062 modes spanning multiple hard regs.
2064 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
2066 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
2068 * pa.c (pa_output_function_prologue): Don't accumulate the total
2069 number of code bytes when using TARGET_64BIT, or gas, SOM and not
2070 the portable runtime.
2071 (output_deferred_plabels): Handle 64bit plabels.
2072 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
2073 generating pic code using the GAS assembler for object formats that
2074 are not SOM (ie., ELF32 and ELF64).
2075 (output_millicode_call): Check attribute type if attribute length is 28.
2076 Likewise use $PIC_pcrel$0. Only call get_attr_length and
2077 dbr_sequence_length once.
2078 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
2079 dbr_sequence_length once.
2080 * pa.h (TARGET_SOM): Define if not defined.
2081 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
2082 with GAS and not SOM.
2083 (jump, call_internal_reg, call_value_internal_reg): Likewise.
2084 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
2086 2002-04-11 David O'Brien <obrien@FreeBSD.org>
2088 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
2089 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
2090 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
2091 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
2092 elfos.h and dbxelf.h values are fine now.
2093 * config/i386/freebsd.h, config/alpha/freebsd.h
2094 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
2096 2002-04-11 David O'Brien <obrien@FreeBSD.org>
2098 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
2099 or set Acpu or Amachine. Reformat.
2100 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2102 (LINK_SPEC): Do not need to undef.
2103 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
2104 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
2105 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2107 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
2108 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
2109 (LINK_SPEC): Do not need to undef.
2110 (DONT_USE_BUILTIN_SETJMP): Do not define.
2111 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
2112 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
2113 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
2114 Remove trailing spaces.
2115 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
2116 __ELF__, or set Acpu or Amachine. Reformat.
2117 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2120 2002-04-11 David O'Brien <obrien@FreeBSD.org>
2122 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
2123 all other *-*-freebsd* targets.
2125 2002-04-11 Richard Henderson <rth@redhat.com>
2127 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
2129 2002-04-11 David O'Brien <obrien@FreeBSD.org>
2131 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
2132 Include {cpu}/{cpu}.h thru tm_file.
2133 (alpha*-*-linux*ecoff): Remove target.
2134 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
2135 (LINK_SPEC): Remove, is not OS independent.
2136 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
2137 (LINK_SPEC): Do not need to #undef any longer.
2138 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
2140 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
2142 (LINK_SPEC): Moved here from alpha/elf.h.
2143 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
2145 * config/alpha/linux-ecoff.h: Remove.
2146 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
2147 (CPP_SPEC): Define _POSIX_SOURCE as needed.
2148 (CPP_SUBTARGET_SPEC): Do not define.
2149 (LINK_SPEC): Do not need to #undef any longer.
2150 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
2151 * config/alpha/vms.h: Likewise.
2153 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
2155 * doc/extend.texi: Remove old claim that typedefs cannot have
2156 an alignment attribute.
2158 2002-04-11 Jakub Jelinek <jakub@redhat.com>
2160 PR optimization/6177
2161 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
2162 bitpos is 0 and bitsize CONCAT size.
2164 2002-04-11 Jakub Jelinek <jakub@redhat.com>
2167 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
2169 2002-04-10 David O'Brien <obrien@FreeBSD.org>
2171 * config/alpha/freebsd.h: Minor reformatting.
2172 (CPP_SPEC): Define ELF and add cpp_subtarget.
2173 (ASM_SPEC): No longer needed.
2175 2002-04-11 Richard Henderson <rth@redhat.com>
2177 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
2178 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
2179 (dimode mem/zero splitter): New.
2181 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
2183 * config/cris/cris.c (cris_override_options): Tweak error message
2184 for PIC not implemented.
2186 * config/cris/cris.h: Tweak comments related to parameter-passing.
2188 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
2190 2002-04-10 Richard Henderson <rth@redhat.com>
2192 * except.c (add_ehl_entry): Allow duplicates after landing pad
2195 2002-04-10 David Edelsohn <edelsohn@gnu.org>
2197 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
2199 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
2201 * c-decl.c (c_init_decl_processing): Move generation of
2202 decls for g77_integer_type_node and friends from here ...
2203 * c-common.c (c_common_nodes_and_builtins): ... to here.
2205 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
2207 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
2208 is only used as frame pointer when frame_pointer_needed is true.
2210 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
2213 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
2214 for the fact that the pool entry uses two words.
2215 (movdf_hard_insn): Similarly. Also, ADR instruction can span
2217 (movdf_soft_insn): Similarly.
2218 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
2219 for the fact that the pool entry uses three words.
2221 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
2223 * config/mips/mips.c (mips_va_arg): When using the struct version
2224 of the EABI va_list, allow arguments in the register save area to
2225 take up less room than a stack argument.
2227 2002-04-10 Richard Henderson <rth@redhat.com>
2229 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
2230 if EXPAND_INITIALIZER.
2232 2002-04-09 Richard Henderson <rth@redhat.com>
2234 * config/alpha/alpha.md (movdi_er_maybe_g): New.
2235 * config/alpha/alpha.c (alpha_expand_mov): Use it.
2237 2002-04-10 Alan Modra <amodra@bigpond.net.au>
2239 PR optimization/6233
2240 * rtlanal.c (pure_call_p): New function.
2241 * rtl.h (pure_call_p): Declare.
2242 * loop.c (prescan_loop): Use it to set has_nonconst_call.
2243 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
2245 2002-04-09 Eric Christopher <echristo@redhat.com>
2247 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
2248 information to .comm directive.
2250 2002-04-09 Richard Henderson <rth@redhat.com>
2253 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
2255 2002-04-09 Richard Henderson <rth@redhat.com>
2257 * basic-block.h (flow_delete_block_noexpunge): Declare.
2258 (expunge_block_nocompact): Declare.
2259 * cfg.c (expunge_block_nocompact): Split out from ...
2260 (expunge_block): ... here.
2261 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
2262 (flow_delete_block_noexpunge): Split out from ...
2263 (flow_delete_block): ... here.
2264 * cfgcleanup.c (delete_unreachable_blocks): Compact while
2265 removing dead blocks.
2266 * except.c (exception_handler_labels): Remove.
2267 (exception_handler_label_map): New.
2268 (struct eh_region): Add aka member.
2269 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
2270 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
2271 (for_each_eh_label, for_each_eh_label_1): New.
2272 (init_eh): Register exception_handler_label_map.
2273 (free_eh_status): Use free_region.
2274 (find_exception_handler_labels): Use the map, not the list.
2275 (remove_exception_handler_label): Likewise.
2276 (maybe_remove_eh_handler): Likewise.
2277 (remove_eh_handler): Use the region aka bitmap.
2278 * except.h (exception_handler_labels): Remove.
2279 (for_each_eh_label): Declare.
2280 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
2281 * loop.c (invalidate_loops_containing_label): New.
2282 (find_and_verify_loops): Use it. Use for_each_eh_label.
2283 * sched-rgn.c (is_cfg_nonregular): Use
2284 current_function_has_exception_handlers.
2286 2002-04-09 Richard Henderson <rth@redhat.com>
2288 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
2289 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
2290 Do not return changed status.
2291 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
2292 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
2293 New functions that do return changed status.
2294 * sbitmap.h: Update decls.
2295 * gcse.c, lcm.c: Use _cg functions as needed.
2297 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
2299 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
2300 (sh64-*-elf*, sh-*-rtemself*): Likewise.
2301 * config/sh/embed_bb.c: New file.
2302 * config/sh/embed-elf.h: New file.
2303 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
2304 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
2305 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
2307 (SUBTARGET_CPP_PTR_SPEC): Don't define.
2308 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
2309 Add subtarget_asm_endian_spec.
2310 (ASM_SPEC): Use subtarget_asm_endian_spec.
2311 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
2312 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
2313 (WCHAR_UNSIGNED): Define.
2314 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
2315 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
2316 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
2318 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
2319 (sh_adjust_cost): Likewise.
2320 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
2322 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
2323 (WCHAR_TYPE_SIZE): Likewise.
2324 (ASM_SPEC): Use subtarget_asm_endian_spec.
2325 (SH_ELF_WCHAR_TYPE): #undef/ #define.
2326 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
2327 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
2328 (MAX_WCHAR_TYPE_SIZE): Don't #define .
2329 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
2330 (USER_LABEL_PREFIX): Don't #undef /#define .
2331 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
2332 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
2333 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
2334 (ASM_SPEC): Likewise.
2335 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
2336 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
2337 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
2338 (LIB2FUNCS_EXTRA): Define.
2339 * t-sh64 (LIB2FUNCS_EXTRA): Define.
2340 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
2341 (LIB1ASMFUNCS_CACHE): Define.
2342 (LIB2FUNCS_EXTRA): Redefine empty.
2344 2002-04-08 Richard Henderson <rth@redhat.com>
2346 * reorg.c (get_branch_condition): Use reversed_comparison_code.
2348 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2350 * config/m68hc11/larith.asm (__map_data_section): Fix condition
2351 and optimize for size.
2352 (__do_global_ctors): Fix pointer comparison.
2353 (__do_global_dtors): Likewise.
2355 2002-04-09 David S. Miller <davem@redhat.com>
2357 * config/sparc/sparc.c (sparc_extra_constraint_check): New
2358 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
2359 allow reloading pseudos.
2360 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
2361 * config/sparc/sparc-protos.h: Declare it.
2363 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
2364 unsigned comparison warning.
2365 (output_restore_regs): Mark leaf_function as unused.
2367 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2369 * expr.c (is_aligning_offset): New function.
2370 (expand_expr, case COMPONENT_EXPR): Call it.
2372 2002-04-08 David S. Miller <davem@redhat.com>
2375 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
2377 Make init_priority work on Sparc when using GNU ld.
2378 * config/sparc/linux.h, config/sparc/linux64.h,
2379 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
2380 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
2381 * config/sparc/sol2-gld.h: New file to do the same.
2382 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
2383 sparc/sol2-gld.h to tm_file.
2385 PR optimization/4328
2386 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
2387 * doc/md.texi: Document it.
2388 * config/sparc/sparc.md (movdi_insn_sp64_novis,
2389 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
2390 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
2391 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
2392 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
2394 2002-04-08 Andreas Jaeger <aj@suse.de>
2396 * stmt.c (expand_asm_operands): Revert last patch from Richard
2399 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2401 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
2402 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
2404 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2406 * doc/contrib.texi (Contributors): Add David O'Brien.
2408 2002-04-08 Alan Modra <amodra@bigpond.net.au>
2410 * configure.in (auto-build.h): Use target_alias and build_alias
2411 when running configure.
2412 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
2413 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
2414 * configure: Regenerate.
2416 2002-04-07 David S. Miller <davem@redhat.com>
2418 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
2420 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
2423 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
2424 generating 32-bit pic code.
2426 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
2428 * cppinit.c (cpp_create_reader): Initialize
2429 discard_comments_in_macro_exp.
2430 (COMMAND_LINE_OPTIONS): Add "-CC" option.
2431 (cpp_handle_option): Handle "-CC" option.
2432 * cpplex.c (save_comment): If saving a C++ comment in
2433 a directive, convert it to a C comment.
2434 (_cpp_lex_direct): Pass second comment start character to
2435 save_comment to indicate comment type.
2436 * cpplib.c (_cpp_handle_directive): If processing
2437 a "#define" directive and discard_comments_in_macro_exp
2438 is false, re-enable saving of comments.
2439 (lex_macro_node): If discard_comments_in_macro_exp is false,
2440 discard any comments before the macro identifier.
2441 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
2443 * cppmacro.c (cpp_get_token): If expanding a macro while
2444 processing a directive, discard any comments we might encounter.
2445 (parse_params): If discard_comments_in_macro_exp is false,
2446 ignore comments in the macro parameter list.
2447 * gcc.c (cpp_unique_options): Add "-CC" option.
2448 (option_map): Map "--comments-in-macros" to "-CC".
2449 * doc/cppopts.texi: Document "-CC" option.
2450 * f/lang-specs.h: Add "-CC" option.
2451 * testsuite/gcc.dg/cpp/maccom1.c: New test.
2452 * testsuite/gcc.dg/cpp/maccom2.c: New test.
2453 * testsuite/gcc.dg/cpp/maccom3.c: New test.
2454 * testsuite/gcc.dg/cpp/maccom4.c: New test.
2455 * testsuite/gcc.dg/cpp/maccom5.c: New test.
2456 * testsuite/gcc.dg/cpp/maccom6.c: New test.
2458 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2461 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
2463 2002-04-06 Mark Mitchell <mark@codesourcery.com>
2466 * stor-layout.c (layout_decl): Reset the RTL for the decl.
2469 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
2470 RTX_UNCHANGING_P for the functions arguments when a tail call
2473 2002-04-06 Jason Merrill <jason@redhat.com>
2475 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
2476 (parse_options_and_default_flags): Set them appropriately.
2477 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
2479 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
2481 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
2484 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
2487 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
2488 types come in by-reference. Fix typo in comment.
2490 2002-04-05 David S. Miller <davem@redhat.com>
2492 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
2493 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
2494 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
2495 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
2497 2002-04-05 David S. Miller <davem@redhat.com>
2499 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
2500 are not going to emit return instructions, emit at least a nop
2501 for the sake of sane backtraces.
2503 2002-04-05 Richard Henderson <rth@redhat.com>
2505 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
2507 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
2509 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
2511 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
2513 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
2514 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
2515 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
2517 2002-04-05 Andreas Schwab <schwab@suse.de>
2519 * c-convert.c: Include c-common.h.
2520 * Makefile.in (c-convert.o): Updated.
2522 2002-04-05 Jakub Jelinek <jakub@redhat.com>
2524 * mklibgcc.in: Use separate libgcc.map for each multilib.
2525 * Makefile.in (distclean): Don't remove libgcc.map here.
2527 2002-04-05 Jakub Jelinek <jakub@redhat.com>
2529 * Makefile.in (s-mlib): Handle --disable-multilib by separate
2530 genmultilib invocation.
2532 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
2534 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
2535 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
2536 to num_gprs for symmetry.
2537 * config/mips/mips.c: Adjust accordingly.
2539 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
2541 * c-common.c (truthvalue_conversion): Rename, update.
2542 * c-common.h (c_common_truthvalue_conversion): New.
2543 * c-convert.c (convert): Update.
2544 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
2545 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
2546 * c-typeck.c (build_binary_op, build_unary_op,
2547 build_conditional_expr): Update.
2548 * fold-const.c (constant_boolean_node, fold): Use langhook.
2549 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
2550 * langhooks.h (struct lang_hooks): New hook.
2551 * stmt.c (expand_decl_cleanup): Use langhook.
2552 * tree.h (truthvalue_conversion): Remove.
2554 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
2556 2002-04-05 Alan Modra <amodra@bigpond.net.au>
2558 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
2559 Add rules to make null object file.
2561 2002-04-04 Jim Blandy <jimb@redhat.com>
2563 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
2564 macro formal parameter names.
2566 2002-04-04 David S. Miller <davem@redhat.com>
2568 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
2570 2002-04-04 Richard Henderson <rth@redhat.com>
2573 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
2574 Support copies into and out of memory. Don't accept allows_reg
2575 and allows_mem as gospel.
2577 2002-04-04 Richard Henderson <rth@redhat.com>
2580 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
2581 (write_dependence_p): Likewise.
2583 2002-04-04 Richard Henderson <rth@redhat.com>
2585 * predict.c (estimate_bb_frequencies): Do frequency calculation
2586 with a volatile temporary.
2588 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
2590 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
2592 2002-04-04 Jakub Jelinek <jakub@redhat.com>
2595 * final.c (final_start_function): Don't bump profile_label_no here...
2596 (final_end_function): ...but here.
2598 2002-04-04 Jakub Jelinek <jakub@redhat.com>
2600 * config/sparc/sparc.md (pic): New attribute.
2601 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
2603 (split after do_builtin_setjmp_setup): New.
2605 2002-04-04 Jakub Jelinek <jakub@redhat.com>
2608 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
2611 2002-04-04 Jakub Jelinek <jakub@redhat.com>
2613 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
2614 UNITS_PER_WORD for zero sized aggregates.
2616 2002-04-03 David S. Miller <davem@redhat.com>
2618 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
2619 one-character spec for this, just use %(link_gcc_c_sequence).
2621 2002-04-03 David S. Miller <davem@redhat.com>
2623 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
2626 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
2628 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
2629 (DWARF_FRAME_RETURN_COLUMN): Move.
2630 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2631 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
2632 * pa.c (except.h, predict.h): Include.
2634 (store_reg_modify, set_reg_plus_d): Revise prototypes.
2635 (output_ascii): Add cast.
2636 (store_reg_modify): Revise to add frame notes.
2637 (set_reg_plus_d): Likewise.
2638 (compute_frame_size): Include space for eh data registers in frame if
2639 the current function calls eh_return.
2640 (hppa_expand_prologue): Ensure register %r2 is saved if the current
2641 function calls eh_return. Save eh data registers if the current
2642 function calls eh_return. Fix code to add frame notes. Emit
2643 blockage to prevent insns with frame notes being scheduled in the
2644 delay slot of calls.
2645 (hppa_expand_epilogue): Restore eh data registers and do final stack
2646 adjustment if the current function calls eh_return. Don't add frame
2648 (output_call): Revise for change in length of call insn. Don't do
2649 return pointer adjustment for an unconditional jump in the delay slot
2650 of a call when using frame notes.
2651 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
2652 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
2653 (ARG_POINTER_CFA_OFFSET): Define.
2654 * pa.md (return_external_pic): New pattern.
2655 (prologue): Correct formatting. Use return_external_pic if current
2656 function calls eh_return.
2657 (call_internal_symref, call_value_internal_symref,
2658 sibcall_internal_symref, sibcall_value_internal_symref): Change default
2659 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
2661 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
2663 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
2664 list of targets to check using "nop" insn.
2665 * configure: Rebuilt.
2667 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2669 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
2671 2002-04-03 David S. Miller <davem@redhat.com>
2673 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
2674 library sequence passed to the linker.
2675 (LINK_COMMAND_SPEC): Use it.
2676 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
2677 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
2678 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2680 2002-04-03 Jason Merrill <jason@redhat.com>
2682 * except.c (struct eh_status): Remove protect_list.
2683 (begin_protect_partials, end_protect_partials): Remove.
2684 (add_partial_entry): Remove.
2685 * except.h: Remove prototypes.
2687 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
2688 expand_decl_cleanup_eh.
2691 * tree.h (CLEANUP_EH_ONLY): New macro.
2692 * stmt.c (expand_decl_cleanup_eh): New fn.
2693 (expand_cleanups): Check CLEANUP_EH_ONLY.
2694 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
2695 Use expand_decl_cleanup_eh.
2696 (expand_stmt): Adjust.
2697 * c-common.h: Adjust prototype.
2699 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
2701 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
2702 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
2703 (cris_target_asm_function_epilogue): Ditto.
2704 (cris_initial_frame_pointer_offset): Ditto.
2705 (cris_simple_epilogue): Ditto.
2706 (cris_expand_builtin_va_arg): Variable-size types come in
2709 2002-04-03 David S. Miller <davem@redhat.com>
2711 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
2713 (set_fast_math): Correct 'fsr' type.
2715 2002-04-03 Richard Henderson <rth@redhat.com>
2718 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
2719 * toplev.c (check_global_declarations): Use it.
2720 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
2721 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2722 (LANG_HOOKS_DECLS): Add it.
2723 * langhooks.c (lhd_warn_unused_global_decl): New.
2724 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2725 * c-objc-common.c (c_warn_unused_global_decl): New.
2726 * c-tree.h (c_warn_unused_global_decl): Declare.
2727 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2729 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
2731 * langhooks-def.h (lhd_set_decl_assembler_name,
2732 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
2733 (LANG_HOOKS_INITIALIZER): Update.
2734 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
2735 * langhooks.h (struct lang_hooks): New hook.
2736 * tree.c (set_decl_assembler_name): Move to langhooks.c.
2737 (lang_set_decl_assembler_name): Remove.
2738 (init_obstacks): Don't set hook.
2739 (decl_assembler_name): New function.
2740 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
2741 (decl_assembler_name): New.
2742 (lang_set_decl_assembler_name): Remove.
2744 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2746 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
2747 works properly with .hidden symbols.
2748 * configure: Rebuilt.
2749 * config.in: Rebuilt.
2750 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
2751 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
2752 properly with .hidden symbols.
2754 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2757 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
2760 2002-04-03 Richard Henderson <rth@redhat.com>
2763 * sched-rgn.c (sets_likely_spilled): New.
2764 (sets_likely_spilled_1): New.
2765 (add_branch_dependences): Use it.
2767 2002-04-02 Richard Henderson <rth@redhat.com>
2770 * loop.h (LOOP_FIRST_PASS): New.
2771 * loop.c (strength_reduce): Mind it when deciding to unroll.
2772 * toplev.c (rest_of_compilation): Set it.
2774 2002-04-02 David S. Miller <davem@redhat.com>
2776 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
2777 mems_ok_for_ldd_peep when the order of the loads being examined
2779 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
2780 existing comment to increase comprehension of this situation.
2782 2002-04-02 Zack Weinberg <zack@codesourcery.com>
2784 * config/sh/sh.md: Don't use union real_extract.
2786 2002-04-02 Richard Henderson <rth@redhat.com>
2788 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
2790 2002-04-02 David O'Brien <obrien@FreeBSD.org>
2792 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
2793 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
2794 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
2795 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
2796 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
2797 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
2798 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
2799 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
2800 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
2801 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
2802 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
2803 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
2804 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
2805 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
2806 Include as many configury headers via tm_file as possible. This
2807 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
2808 * config/openbsd-oldgas.h: New file.
2809 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
2810 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
2811 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
2812 config/i386/i386-coff.h, config/i386/i386-interix.h,
2813 config/i386/iscdbx.h, config/i386/linux-aout.h,
2814 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
2815 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
2816 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
2817 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
2818 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
2819 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
2820 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
2821 config/i386/vxi386.h: Do not directly include configury headers.
2822 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
2823 Directly include configury headers that are no longer automatically
2824 included by the above headers.
2825 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
2826 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
2827 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
2828 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
2829 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
2830 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
2831 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
2832 (TARGET_VERSION): Define.
2833 * config/i386/beos-elf.h, config/i386/freebsd.h,
2834 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
2835 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
2836 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
2837 config/i386/sco5.h, config/i386/sysv4.h
2838 (TARGET_VERSION): Do not need to protect.
2839 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
2840 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
2841 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
2842 config/i386/i386-interix.h, config/i386/linux-aout.h,
2843 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
2844 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
2845 (YES_UNDERSCORES): Do not define - not needed.
2846 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
2847 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
2848 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
2849 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
2850 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
2851 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
2852 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
2853 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
2855 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
2856 Richard Henderson <rth@redhat.com>
2859 * function.c (assign_temp): Accept either type or decl argument.
2860 Detect variables whose size is too large to fit into an integer.
2861 * stmt.c (expand_decl): Pass the decl, not the type.
2863 2002-04-02 David O'Brien <obrien@FreeBSD.org>
2865 * protoize.c: Match include directory usage with cppdefault.c.
2867 2002-04-03 Jeffrey A Law (law@redhat.com)
2868 Hans-Peter Nilsson <hp@bitrange.com>
2870 * combine.c (simplify_comparison): Avoid narrowing a comparison
2871 with a paradoxical subreg when doing so would drop signficant bits.
2873 2002-04-02 Steve Ellcey <sje@cup.hp.com>
2875 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
2876 if POINTERS_EXTEND_UNSIGNED is defined.
2878 2002-04-02 Richard Henderson <rth@redhat.com>
2881 * local-alloc.c (contains_replace_regs): LO_SUM may contain
2884 2002-04-02 Richard Henderson <rth@redhat.com>
2886 * doc/standards.texi: Document required freestanding libc entry points.
2888 2002-04-02 Alan Modra <amodra@bigpond.net.au>
2890 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
2891 associated splitter. Remove MQ constraint.
2892 (ctrdi_internal4): Correct CCmode clobber.
2894 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
2896 * milli64.S ($$dyncall): New function.
2897 * t-linux (LIB1ASMFUNCS): Revise module list.
2898 (LIB1ASMSRC): Use pa/milli64.S.
2900 2002-04-02 Richard Henderson <rth@redhat.com>
2902 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
2903 rename solaris_sys_varargs_h.
2905 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2907 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
2908 the same mode as its component.
2910 2002-04-02 Richard Henderson <rth@redhat.com>
2913 * final.c (this_is_asm_operands): Export.
2914 * output.h (this_is_asm_operands): Declare.
2915 * config/i386/i386.c (print_operand): Error odd asm operands.
2917 2002-04-02 Richard Henderson <rth@redhat.com>
2920 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
2922 2002-04-01 Richard Henderson <rth@redhat.com>
2925 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
2926 * fixinc/fixincl.x: Rebuild.
2928 2002-04-01 Richard Henderson <rth@redhat.com>
2930 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
2931 (atomic_alloc, atomic_free): New.
2932 (SIZE, MASK_FOR, PTR_IN): New.
2933 (emergency_reg_state, emergency_reg_state_free): New.
2934 (emergency_labeled_state, emergency_labeled_state_free): New.
2935 (reg_state_alloced, labeled_state_alloced): New.
2936 (alloc_reg_state, free_reg_state): New.
2937 (alloc_label_state, free_label_state, free_label_states): New.
2938 (push, pop, dup_state_stack, free_state_stack): Use them.
2939 (desc_label_state): Likewise.
2940 (uw_frame_state_for): Free label states and state stack.
2941 (uw_update_reg_address): Eliminate warnings.
2943 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
2945 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
2946 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
2948 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
2950 * c-decl.c (grokdeclarator): Update.
2951 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
2952 * c-tree.h (c_mark_addressable): New.
2953 * c-typeck.c (default_function_array_conversion, build_unary_op,
2954 build_array_ref, convert_for_assignment): Update.
2955 (mark_addressable): Rename.
2956 * calls.c (try_to_integrate, expand_call): Use langhook.
2957 * expr.c (expand_expr): Use langhook.
2958 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
2959 * langhooks.h (struct lang_hooks): New hook.
2960 * stmt.c (expand_asm_operands): Use langhook.
2961 * tree.h (mark_addressable): Remove.
2963 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
2965 2002-04-01 Bob Wilson <bob.wilson@acm.org>
2967 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
2970 2002-04-01 Bob Wilson <bob.wilson@acm.org>
2972 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
2973 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
2975 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
2977 * c-common.c (unsigned_conversion_warning, convert_and_check,
2978 unsigned_type, signed_type, shorten_compare,
2979 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
2980 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
2981 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
2983 * c-decl.c (grokdeclarator): Update.
2984 * c-format.c (check_format_types): Update.
2985 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
2986 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
2987 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
2988 * convert.c (convert_to_integer): Use new hooks.
2989 * expmed.c (make_tree): Use new hooks.
2990 * expr.c (store_expr): Use new hooks.
2991 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
2992 all_ones_mask_p, unextend, fold): Use new hooks.
2993 * langhooks.h (struct lang_hooks_for_types): New hooks.
2994 * tree.h (signed_or_unsigned_type, signed_type,
2995 unsigned_type): Remove.
2997 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
2998 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
3000 2002-03-31 Richard Henderson <rth@redhat.com>
3002 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
3003 (desc_frgr_mem): Fix reference to f16-f31.
3005 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3007 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
3008 RTVEC_ELT): Const-ify.
3009 * varray.h (VARRAY_CHECK): Const-ify.
3010 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
3011 ggc_mark_rtvec, ggc_mark): Const-ify.
3013 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
3015 * diagnostic.c: Include langhooks-def.h.
3016 * Makefile.in (diagnostic.o): Update.
3018 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
3020 * c-common.c (c_unsafe_for_reeval): Rename.
3021 * c-common.h (c_unsafe_for_reeval): Rename.
3022 * c-decl.c (finish_incomplete_decl): Rename.
3023 (c_init_decl_processing): Don't set langhook.
3024 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
3025 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3026 * c-objc-common.c (c_objc_common_init): Don't set langhook.
3027 * c-tree.h (finish_incomplete_decl): Rename.
3028 * langhooks-def.h (lhd_unsafe_for_reeval): New.
3029 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
3030 (LANG_HOOKS_INITIALIZER): Update.
3031 * langhooks.c (lhd_unsafe_For_reeval): New.
3032 * langhooks.h (struct langhooks): New hooks.
3033 * toplev.c (incomplete_decl_finalize_hook): Remove.
3034 (wrapup_global_declarations): Update.
3035 * tree.c (lang_unsafe_for_reeval): Remove.
3036 (unsafe_for_reeval): Update.
3037 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
3040 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
3041 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3043 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
3045 * diagnostic.c (print_error_function): Remove.
3046 (default_print_error_function): Rename.
3047 (report_error_function): Update.
3048 * diagnostic.h (print_error_function): Remove.
3049 (default_print_error_function): Remove.
3050 * langhooks-def.h (struct diagnostic_context): Predeclare.
3051 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
3052 (LANG_HOOKS_INITIALIZER): Update.
3053 * langhooks.h (struct diagnostic context): Predeclare.
3054 (struct lang_hooks): New hook.
3056 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3058 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
3059 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
3061 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
3062 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
3063 of PIC_OFFSET_TABLE_REGNUM thruout.
3064 * config/rs6000/rs6000.md: Likewise.
3065 * config/rs6000/darwin.h: Likewise.
3067 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3069 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
3070 unsigned HOST_WIDE_INT, not unsigned int.
3072 2002-03-31 Jakub Jelinek <jakub@redhat.com>
3074 PR middle-end/6096, middle-end/6098, middle-end/6099
3075 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
3077 (fill_slots_from_thread): Likewise.
3079 2002-03-31 Jakub Jelinek <jakub@redhat.com>
3081 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
3082 floating fields in float regs.
3083 (function_arg_record_value_2): Likewise.
3085 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
3087 * config/mmix/mmix.md (define_constants): Remove misleading
3088 FIXME. Add MMIX_fp_rO_OFFSET.
3089 ("nonlocal_goto_receiver"): Don't have stack-frame address of
3090 saved rO as part of the pattern. Remove FIXME.
3091 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
3092 here, at output-time.
3094 2002-03-31 Jakub Jelinek <jakub@redhat.com>
3097 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
3099 (output_v9branch): Likewise.
3101 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
3103 * gcc.c: Revert previous patch for now.
3104 * config/i386/djgpp.h: Likewise.
3106 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
3108 * config/mmix/crti.asm (_init): Register _fini with atexit.
3109 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
3111 2002-03-31 Richard Henderson <rth@redhat.com>
3114 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
3115 (ASM_OUTPUT_DEF_FROM_DECLS): New.
3117 2002-03-31 Richard Henderson <rth@redhat.com>
3119 * libgcc2.c (__bb_exit_func): Make static.
3121 * config/alpha/alpha.md (trap): New.
3123 2002-03-31 Richard Henderson <rth@redhat.com>
3125 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
3126 promoted argument types; build trap.
3127 (expand_builtin_trap): New.
3128 (expand_builtin): Use it.
3129 * stmt.c (expand_nl_goto_receivers): Likewise.
3130 * expr.h (expand_builtin_trap): Declare.
3131 * libfuncs.h (LTI_abort, abort_libfunc): New.
3132 * optabs.c (init_optabs): Init abort_libfunc.
3134 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
3136 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
3137 (LINK_COMMAND_SPEC): ... from here.
3138 (init_gcc_specs): Duplicate it here too, omitting
3139 shared_name in the second copy.
3140 (init_spec): Test for duplicate
3141 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
3143 2002-03-30 David S. Miller <davem@redhat.com>
3145 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3146 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
3148 2002-03-30 Roger Sayle <roger@eyesopen.com>
3149 Richard Henderson <rth@redhat.com>
3151 * regmove.c (combine_stack_adjustments_for_block): Avoid
3152 emitting a stack adjustment of zero bytes. Let delete_insn
3155 2002-03-30 Richard Henderson <rth@redhat.com>
3157 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
3158 (sparc_emitting_epilogue): New.
3159 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
3160 * config/sparc/sparc-protos.h: Update.
3161 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
3162 (TARGET_SWITCHES): Update.
3163 * config/sparc/sparc.md (return): Remove.
3164 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
3165 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
3166 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
3167 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
3168 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
3169 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
3170 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
3171 Remove MASK_EPILOGUE.
3172 * doc/invoke.texi: Update.
3174 2002-03-30 Daniel Berlin <dan@dberlin.org>
3176 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
3177 CPP will start the file for us.
3179 2002-03-30 Richard Henderson <rth@redhat.com>
3182 * config/ia64/ia64.c (group_barrier_needed_p): Special case
3183 prologue_allocate_stack.
3184 (ia64_single_set): Use insn codes for recognition of special
3185 cases, not rtl matching.
3186 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
3188 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
3190 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
3192 2002-03-30 Richard Henderson <rth@redhat.com>
3195 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
3196 or -fomit-frame-pointer with profiling.
3197 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3198 (FUNCTION_PROFILER): Do nothing.
3199 (PROFILE_HOOK): New.
3200 * config/sparc/sparc.c (sparc_override_options): Don't check
3201 code models for profiling.
3202 (sparc_function_profiler): Remove.
3203 (sparc_profile_hook): New.
3204 * config/sparc/sparc-protos.h: Update.
3206 2002-03-30 Jakub Jelinek <jakub@redhat.com>
3208 PR optimization/6086
3209 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
3210 of SUBREG of volatile MEM or because the MEM was mode dependent,
3211 return CLOBBER instead of unmodified SUBREG.
3213 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
3215 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
3216 when not optimizing.
3218 * toplev.c (rest_of_compilation): Cann mark_constant_function
3219 only when optimizing.
3221 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
3224 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
3225 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
3226 (try_optimize_cfg): clear all AUX fields.
3228 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
3229 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
3230 (ix86_address_cost): Be prepared for SUBREGed registers.
3231 (legitimate_address_p): Accept SUBREGed registers.
3233 2002-03-29 Richard Henderson <rth@redhat.com>
3236 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
3238 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3240 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
3241 for aggregate and TFmode types.
3243 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
3245 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
3247 2002-03-29 Richard Henderson <rth@redhat.com>
3250 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
3251 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
3253 2002-03-29 Richard Henderson <rth@redhat.com>
3256 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
3257 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
3258 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
3259 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
3261 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
3263 2002-03-29 Dale Johannesen <dalej@apple.com>
3265 * loop.c (combine_movables): Do allow combination of pseudos.
3267 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
3269 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
3270 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
3271 No functional change except ...
3272 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
3273 * doc/install.texi (*-*-freebsd*): Document port configuration.
3275 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
3277 * Makefile.in (convert.o, calls.o, expmed.o): Update.
3278 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
3280 * builtin-types.def (BT_PTRMODE): Update.
3281 * c-common.c (type_for_size): Rename c_common_type_for_size.
3282 (type_for_mode): Similarly.
3283 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
3285 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
3286 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
3287 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
3289 * c-typeck.c (common_type, comptypes, default_conversion):
3291 * calls.c: Include langhooks.h.
3292 (emit_library_call_value_1): Use new hooks. Avoid redundant
3294 * convert.c: Include langhooks.h
3295 (convert_to_pointer, convert_to_integer): Use new hooks.
3296 * except.c (init_eh): Similarly.
3297 * expmed.c: Include langhooks.h.
3298 (expand_mult_add): Use new hooks.
3299 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
3300 try_casesi): Similarly.
3301 * fold-const.c (optimize_bit_field_compare, make_range,
3302 decode_field_reference, fold_truthop, fold): Similarly.
3303 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
3304 put_var_into_stack): Similarly.
3305 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
3306 LANG_HOOKS_TYPE_FOR_SIZE): New.
3307 (LANG_HOOKS_TYPES_INITIALIZER): Update.
3308 * langhooks.h (lang_hooks_for_types): New hooks.
3309 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
3310 * tree.c (get_unwidened, get_narrower): Similarly.
3311 * tree.h (type_for_mode, type_for_size): Remove.
3312 * varasm.c (force_const_mem): Use new hooks.
3313 * utils2.c (nonbinary_modular_operation): Update.
3315 * objc-act.c (handle_impent): Update.
3316 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
3319 2002-03-29 Steve Ellcey <sje@cup.hp.com>
3321 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
3322 * config/ia64/ia64.c (basereg_operand): New.
3323 * config/ia64/ia64-protos.h (basereg_operand): Declare.
3324 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
3326 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
3328 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
3329 unwind information when frame_pointer_needed.
3330 (mmix_assemble_integer): Tweak wording in comment.
3332 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
3334 * Makefile.in (except.o): Update.
3335 * except.c: Include langhooks.h.
3336 (init_eh): Use langhook.
3337 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
3338 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
3339 (LANG_HOOKS_INITIALIZER): Update.
3340 * langhooks.h (lang_hooks_for_types): New.
3341 (struct lang_hooks): Add it.
3342 * tree.c (make_lang_type_fn, make_lang_type): Remove.
3343 * tree.h (make_lang_type_fn, make_lang_type): Remove.
3345 * alpha/alpha.c: Include langhooks.h.
3346 (alpha_build_va_list): Use langhook.
3347 * d30v/d30v.c: Include langhooks.h.
3348 (d30v_build_va_list): Use langhook.
3349 * i386/i386.c: Include langhooks.h.
3350 (ix86_build_va_list): Use langhook.
3351 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
3352 * s390/s390.c: Include langhooks.h.
3353 (s390_build_va_list): Use langhook.
3354 * stormy16/stormy16.c: Include langhooks.h.
3355 (stormy16_build_va_list): Use langhook.
3357 2002-03-29 Jakub Jelinek <jakub@redhat.com>
3360 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
3362 (length): Compute variable length for branches/calls/jumps here.
3363 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
3364 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
3365 define branch_type attribute.
3366 (divsi3_sp32): Maximum length is 6 not 7.
3367 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
3368 call_address_untyped_struct_value_sp32,
3369 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
3370 * config/sparc/sparc.c (empty_delay_slot): New function.
3371 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
3372 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
3374 2002-03-29 Jakub Jelinek <jakub@redhat.com>
3376 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
3377 nonzero_bits if not needed.
3378 (nonzero_bits) [XOR]: Likewise.
3379 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
3380 reg_last_set_mode and mode are both MODE_INT, but not equal.
3381 (record_value_for_reg): Compute reg_last_set_nonzero_bits
3382 in nonzero_bits_mode for MODE_INT modes.
3384 2002-03-28 Richard Henderson <rth@redhat.com>
3387 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
3388 to GAS. Correct drift between alternatives.
3390 2002-03-28 Richard Henderson <rth@redhat.com>
3393 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
3395 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
3397 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
3398 emulation to the linker.
3400 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
3402 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
3403 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
3405 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
3407 * combine.c (simplify_and_const_int): Make sure to apply mask
3408 when force_to_mode returns a constant integer. PR3311.
3410 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
3412 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
3414 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3416 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
3417 and Objective-C Dialect Options.
3419 2002-03-28 Richard Henderson <rth@redhat.com>
3421 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
3422 comparison should be done vs !=0 not >0 return code. Tidy cases.
3424 2002-03-28 Richard Henderson <rth@redhat.com>
3426 * c-decl.c (finish_function): New arg can_defer_p. Pass it
3427 on to c_expand_body.
3428 * c-tree.h (finish_function): Update decl.
3429 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
3431 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
3433 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
3435 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
3437 * rtlanal.c: Include flags.h
3438 (may_trap_p): Do not mark FP operations if trapping
3439 if !flag_trapping_math
3440 * Makefile.in (rtlanal.o): Add dependency on flag.h
3441 * ifcvt.c (noce_operand_ok): Avoid the lameness.
3443 2002-03-27 Zack Weinberg <zack@codesourcery.com>
3445 * mips.md: Use dconst1, not 1.0, as first argument of
3446 REAL_VALUE_LDEXP. Don't use union real_extract.
3448 2002-03-28 Alan Modra <amodra@bigpond.net.au>
3450 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
3451 rather than $target. Heed program_prefix and
3452 program_transform_name. Search for gas in cross-compiler case too.
3453 "test -x" rather than "test -f".
3454 (gcc_cv_ld): Likewise.
3455 (gcc_cv_nm): Heed program_prefix and program_transform_name.
3456 (gcc_cv_objdump): Likewise.
3457 * configure: Regenerate.
3459 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
3461 * Makefile.in (attribs.o): Update.
3462 * attribs.c: Include langhooks.h.
3463 (decl_attributes): Use langhook.
3464 * c-decl.c (insert_default_attributes): Rename.
3465 * c-tree.h (c_insert_default_attributes): New.
3466 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
3467 (LANG_HOOKS_INITIALIZER): Update.
3468 * langhooks.h (struct lang_hooks): New hook.
3469 * tree.h (insert_default_attributes): Remove.
3471 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
3473 2002-03-27 Andreas Schwab <schwab@suse.de>
3475 * config/i386/i386.c (classify_argument): Also check for
3478 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3480 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
3483 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
3485 * i960.md (ret): Set PC.
3486 (nonlocal_goto): Fix expander.
3487 * builtins.c (epxand_builin_longjmp): Check that we've emitted
3490 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
3492 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
3495 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3497 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
3498 assigning to BLOCK_FOR_INSN directly.
3500 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
3502 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
3504 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
3506 * c-common.c (c_expand_expr): Fix prototype.
3507 * c-common.h (c_expand_expr): Always declare, update.
3508 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
3509 * c-objc-common.c (c_objc_common_init): No global hook.
3510 * expr.c (expand_expr): Use langhook.
3511 * expr.h (enum expand_modifier): Conditionally declare.
3512 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
3513 (LANG_HOOKS_INITIALIZER): Update.
3514 * langhooks.c (lhd_expand_expr): New.
3515 * langhooks.h (struct lang_hooks): New hook.
3516 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
3517 (lang_independent_init): Don't default hook.
3519 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
3521 2002-03-27 Richard Henderson <rth@redhat.com>
3524 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
3525 TARGET_CONST_GP. Simplify conditions.
3527 2002-03-27 Richard Henderson <rth@redhat.com>
3529 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
3530 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
3531 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
3533 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
3535 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
3536 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
3537 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
3538 Remove unnecessary masks.
3539 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
3540 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
3541 -mwindows, -mdll switches and their negations.
3543 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
3545 * gcc-common.c (lang_mark_false_label_stack): Remove.
3546 * ggc.h (lang_mark_false_label_stack): Similarly.
3548 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
3550 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
3552 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
3553 or __rtems_ is defined.
3555 2002-03-26 Richard Henderson <rth@redhat.com>
3557 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
3558 if a non-trivial load was emitted.
3559 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
3560 in high+extra+low case.
3562 2002-03-26 Richard Henderson <rth@redhat.com>
3564 * config.gcc (sparc*-solaris): Use float_format=sparc.
3566 2002-03-26 Richard Henderson <rth@redhat.com>
3568 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
3569 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
3570 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
3571 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
3572 (WINT_TYPE_SIZE): Fix at 32.
3574 2002-03-26 Richard Henderson <rth@redhat.com>
3576 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
3577 until after eh landing pad generation.
3578 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
3579 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
3581 2002-03-26 Richard Henderson <rth@redhat.com>
3583 * expr.h (ADD_PARM_SIZE): One more convert for INC.
3585 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
3587 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
3588 and warning switches.
3589 (cc1_options): Likewise.
3591 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
3593 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
3594 Restore more of the signal context. Set no_reg_stack_frame.
3595 * config/ia64/unwind-ia64.c (unw_state_record):
3596 Add no_reg_stack_frame, comments.
3597 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
3598 (uw_update_context): Adjust bsp when unwinding from leaf,
3599 but not signal frame.
3601 2002-03-26 David Edelsohn <edelsohn@gnu.org>
3603 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
3605 2002-03-26 Bob Wilson <bob.wilson@acm.org>
3607 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
3609 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
3612 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
3613 "Add a pool_range attribute", which was lost during the ARM/Thumb
3616 2002-03-26 Bob Wilson <bob.wilson@acm.org>
3618 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
3619 a register into the MAC16 accumulator.
3621 2002-03-26 Andrew Cagney <ac131313@redhat.com>
3623 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
3624 (Warning Options): Document -Wswitch-enum.
3625 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
3627 (warn_switch_enum): Define variables.
3628 * flags.h (warn_switch_enum): Declare variables.
3629 * stmt.c (expand_end_case_type): When warn_switch_enum /
3630 -Wswitch-enum, perform switch checks.
3633 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
3635 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
3636 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
3637 (reload_muladdsi_compare0_scratch): Delete.
3639 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
3641 * doc/install.texi (*-*-freebsd*): Update.
3643 2002-03-26 Richard Henderson <rth@redhat.com>
3645 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
3646 (SUB_PARM_SIZE): Cast DEC to ssizetype.
3648 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
3649 types from the normal argument frame.
3651 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
3652 variable sized objects by reference.
3653 (sparc_va_arg): Receive them by reference too.
3655 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
3657 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
3658 code to not restoring global registers.
3660 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
3662 * Makefile.in (ggc-common.o): Update.
3663 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
3664 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
3665 * c-tree.h (c_mark_tree): New.
3666 * ggc-common.c: Include langhooks.h.
3667 (gcc_mark_trees): Use new langhook.
3668 * ggc-callbacks.c: Delete file.
3669 * ggc.h (lang_mark_tree): Remove.
3670 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
3671 (LANG_HOOKS_INITIALIZER): Update.
3672 * langhooks.h (struct lang_hooks): New hook.
3674 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
3676 2002-03-25 Zack Weinberg <zack@codesourcery.com>
3678 * doc/cpp.texi: Exclude entire Top node from printed manual.
3679 Move option index after directive index. Insert page breaks
3680 before GFDL and concept index. Index environment variables
3681 with command line options.
3682 * doc/cppenv.texi: Use @vtable for environment variable list.
3683 Add paragraph explaining semantics of empty elements in path
3684 variables. Exclude a cross-reference to Fishkill from the
3685 manpage. Remove an unnecessary cross-reference of the entry
3686 right above the referer. Don't use @anchor in text that goes
3688 * doc/cppopts.texi: Cross-reference the environment variables
3689 section, not the specific environment variable, for consistency.
3691 2002-03-25 Richard Henderson <rth@redhat.com>
3693 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
3694 anywhere in the block. Don't refer to insns that have been
3695 removed from the chain. Iterate backward through the new insns.
3696 Don't refer to edges that have been removed.
3698 2002-03-26 Alan Modra <amodra@bigpond.net.au>
3700 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
3701 test for overflow of constant.
3703 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
3706 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
3707 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
3708 these patterns on arm_archv4.
3710 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
3712 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
3715 2002-03-25 Zack Weinberg <zack@codesourcery.com>
3717 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
3718 float_handled, float_handler, float_signal, set_float_handler,
3719 and do_float_handler. Set handler for SIGFPE to crash_signal.
3720 * toplev.h: Don't prototype do_float_handler.
3722 * c-lex.c: Fold parse_float into lex_number. Make warning
3723 about portability of hex float constants more informative, and
3724 don't issue it on top of a syntax error.
3725 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
3727 * real.h: Define REAL_VALUE_ABS here...
3728 * simplify-rtx.c: ... not here. Fold check_fold_consts,
3729 simplify_unary_real, simplify_binary_real, and
3730 simplify_binary_is2orm1 into their callers.
3731 * tree.c: Fold build_real_from_int_cst_1 into caller.
3733 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
3735 * tsystem.h: Include float.h here...
3736 * libgcc2.c: ... not here.
3738 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
3740 Fixes for: PR bootstrap/3591, target/5676
3741 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
3742 defined. Do not disable exceptions or rtti.
3743 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
3744 mcore.h. Disable exceptions and rtti, since they are not
3747 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
3749 * c-decl.c (maybe_build_cleanup): Remove.
3750 * expr.c (expand_expr): Use langhook.
3751 * langhooks-def.h (lhd_return_null_tree,
3752 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
3753 (LANGHOOKS_INITIALIZER): Update.
3754 * langhooks.c (lhd_return_null_tree): New.
3755 * langhooks.h (struct lang_hooks): New hook.
3756 * tree-inline.c (initialize_inlined_parameters): Use langhook.
3757 * tree.h (maybe_build_cleanup): Remove.
3759 2002-03-25 Jakub Jelinek <jakub@redhat.com>
3761 * regrename.c (build_def_use): Move recog_memoized
3762 before extract_insn.
3764 2002-03-25 Jakub Jelinek <jakub@redhat.com>
3767 * expr.c (emit_group_store): Handle storing into CONCAT.
3769 2002-03-25 Jakub Jelinek <jakub@redhat.com>
3771 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
3772 corresponding MATCH_DUP.
3774 2002-03-24 Richard Henderson <rth@redhat.com>
3776 * unroll.c (unroll_loop): Zero label_map.
3778 * gcse.c: Include except.h.
3779 * Makefile.in (gcse.o): Update.
3781 2002-03-24 Richard Henderson <rth@redhat.com>
3783 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
3784 Do resolve_unique_section before shared data clause.
3786 2002-03-24 Richard Henderson <rth@redhat.com>
3788 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
3790 2002-03-24 Richard Henderson <rth@redhat.com>
3792 * recog.c (peephole2_optimize): Split blocks when EH insns are
3793 generated in the middle of a block. Do global life update if
3796 2002-03-24 Richard Henderson <rth@redhat.com>
3798 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
3800 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
3803 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
3804 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
3805 (init_dependency_output): Don't make no_output decision here.
3807 2002-03-24 Andrew Cagney <ac131313@redhat.com>
3809 * stmt.c (check_for_full_enumeration_handling): Remove tests of
3810 warn_switch. Update description.
3811 (expand_end_case_type): Call check_for_full_enumeration_handling
3814 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3816 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
3817 (m68hc11_split_move): Call it to see if the source and destination
3818 operands use the same direction auto inc/dec mode, otherwise make the
3819 source an offsetable memory operand and generate an add.
3821 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3823 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
3824 register for operand 2.
3825 ("*subsi3_zero_extendqi"): Likewise.
3826 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
3827 bits so that it is compatible with a pop.
3828 ("*andhi3_gen"): Likewise.
3829 ("xorhi3"): Likewise.
3831 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
3833 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
3835 (cpp_post_options): ... not here.
3837 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
3838 Aldy Hernandez <aldyh@redhat.com>
3840 Removal of separate preprocessor cpp0.
3842 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
3843 cpp0, install-common): Update.
3844 * c-common.c (flag_preprocess_only): New.
3845 (c_common_init): Preprocess for -E.
3846 * c-common.h (flag_preprocess_only): New.
3847 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
3848 * c-objc-common.c (c_init_decl_processing): Exit quickly
3849 for NULL return from c_common_init.
3850 * cpplib.h (cpp_preprocess_file): New.
3851 * cppmain.c (main, general_init, pfile, progname): Remove.
3852 (do_preprocessing): Rename cpp_preprocess_file, don't call
3853 cpp_finish. Don't close stdout here.
3854 (setup_callbacks): Update prototype.
3855 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
3857 * tradcpp.c (main): Ignore -quiet.
3859 * lang-specs.h (default_compilers): Preprocess with cc1obj.
3861 2002-03-24 Richard Henderson <rth@redhat.com>
3863 PR optimization/5742
3864 * machmode.def: Add inner mode field to complex modes.
3865 * config/mips/mips.c (mips_function_value): Always define. Add
3866 new argument to handle libcalls.
3867 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
3868 (FUNCTION_VALUE): Likewise.
3869 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
3870 * config/mips/mips-protos.h: Update.
3872 2002-03-23 Richard Henderson <rth@redhat.com>
3874 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
3875 * config/sparc/sparc-protos.h: Update.
3876 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
3878 2002-03-23 Richard Henderson <rth@redhat.com>
3880 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
3881 _start or _init begins the text segment.
3883 2002-03-23 David Edelsohn <edelsohn@gnu.org>
3885 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
3886 not HOST_WIDEST_INT.
3887 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
3889 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
3892 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
3893 operand argument to output_return_instruction.
3894 * arm.c (arm_print_operand, case 'd'): If the operand is
3895 const_true_rtx then just return.
3896 (arm_print_operand, case 'D'): If the operand is const_true_rtx
3899 2002-03-23 Andrew Cagney <ac131313@redhat.com>
3901 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
3902 (Warning Options): Document -Wswitch-default.
3903 * toplev.c (W_options): Add -Wswitch-default. Update comment on
3905 (warn_switch_default): Define variable.
3906 (warn_switch): Update comment.
3907 * flags.h (warn_switch_default): Declare variable.
3908 (warn_switch): Update comment.
3909 * stmt.c (expand_end_case): Check for and, when
3910 warn_switch_no_default, warn of a missing default case.
3912 2002-03-23 Alan Modra <amodra@bigpond.net.au>
3914 * real.h (N): Special case 128 bit doubles.
3916 * combine.c (simplify_comparison): When widening modes, ignore
3917 sign extension on CONST_INTs.
3919 2002-03-22 Bob Wilson <bob.wilson@acm.org>
3921 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
3922 passed to adjust_address. Fix comment formatting.
3925 2002-03-22 Zack Weinberg <zack@codesourcery.com>
3927 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
3928 Always make REAL_VALUE_TYPE a struct containing an array of
3929 HOST_WIDE_INT, not a double. Tidy up the code deciding how
3930 big it is. Don't declare or use union real_extract.
3932 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
3933 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
3934 (print_operand), config/arm/arm.c (output_move_double),
3935 config/arm/arm.md (consttable_4, consttable_8),
3936 config/romp/romp.c (output_fpops), config/s390/s390.h
3937 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
3938 (xtensa_output_literal): Don't use union real_extract.
3940 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
3941 (sfmode_constant_to_ulong), config/ns32k/merlin.h
3942 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
3943 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
3944 (PRINT_OPERAND): Don't use local version of union
3947 * config/convex/convex.c (check_float_value), config/vax/vax.c
3948 (vax_float_literal), config/m88k/m88k.md (divdf3),
3949 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
3950 config/pdp11/pdp11.c (output_move_quad): Don't do host
3951 arithmetic on target floating point quantities.
3953 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
3954 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
3956 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
3957 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
3959 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
3960 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
3962 * print-rtl.c (print_rtx): Disable code which needs
3963 floating-point emulator.
3964 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
3965 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
3966 depending on HOST_FLOAT_FORMAT to be defined properly.
3968 * config/1750a/1750a.c (get_double, float_label): Delete.
3969 (print_operand): Delete huge commented-out chunk. Use
3970 REAL_VALUE_TO_DECIMAL.
3971 * config/1750a/1750a-protos.h: Delete prototypes of deleted
3973 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
3975 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
3976 Use REAL_VALUE_TO_DECIMAL as ELF version does.
3977 * config/m88k/m88k.c (real_power_of_2_operand,
3978 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
3979 real_extract out of the union; run the input through
3980 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
3981 from that into the union.
3982 * config/pdp11/pdp11.c (output_move_double): Rearrange
3983 parentheses to make automatic indenter happy.
3985 * doc/tm.texi (Cross-compilation): Rename node to "Floating
3986 Point" and rewrite to describe current situation. Also adjust
3987 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
3989 * doc/rtl.texi: Adjust cross reference.
3991 2002-03-22 Bob Wilson <bob.wilson@acm.org>
3993 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
3994 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
3995 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
3996 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
3997 prevent use of sp as a reload register.
3998 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
3999 non_acc_reg_operand.
4000 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
4001 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
4002 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
4003 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
4005 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
4007 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
4008 * cpplex.c (unterminated): Delete.
4009 (parse_string): No string literal may extend over multiple
4010 lines. Suppress the error when preprocessing assembly.
4011 * cppmain.c (scan_translation_unit): Strings are single-line.
4013 * doc/cpp.texi: Update to match.
4015 2002-03-22 Jakub Jelinek <jakub@redhat.com>
4017 PR optimization/5854
4018 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
4020 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
4021 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
4022 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
4023 const0 if scratch register was not allocated.
4024 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
4025 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
4027 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
4028 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
4029 with GEN_INT (...) everywhere. Remove constraints in define_split
4031 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
4032 require scratch register for setting 0 into regs/non-pushable memory.
4034 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
4036 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
4037 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
4039 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
4041 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
4042 * cppinit.c (cpp_create_reader): On by default.
4043 (cpp_handle_option): Handle -W[no-]endif-labels.
4044 (cpp_post_options): Also enable if -pedantic.
4045 * cpplib.c (do_else): Use it.
4046 (do_endif): Likewise.
4047 * doc/cppopts.texi: Document new option.
4048 * doc/invoke.texi: Document new option.
4050 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
4052 * config/i386/i386.c, config/i386/i386.md: Change all occurences
4053 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
4055 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
4057 * flow.c (calculate_global_regs_live): Clear aux fields of
4060 2002-03-22 Jakub Jelinek <jakub@redhat.com>
4062 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
4063 REG or MEM subregs, pass rtx * instead of rtx to it.
4064 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
4065 rtx * instead of rtx to alter_subreg.
4066 * config/m32r/m32r.c (gen_split_move_double): Likewise.
4067 * config/pj/pj.c (pj_output_rval): Likewise.
4069 2002-03-22 Richard Henderson <rth@redhat.com>
4072 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
4073 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
4074 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
4075 (ia64_expand_prologue): Look at int_regs, not words, for number
4076 of incomming int regs.
4078 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
4080 * expr.c (expand_expr): A RESULT_DECL is part of a call.
4082 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
4084 * toplev.c (flag_loop_optimize, flag_crossjumping):
4085 New static variables.
4086 (rest_of_compilation): Conditionalize crossjumping and
4088 (parse_options_and_default_flags): Default loop_optimize and
4090 (lang_independent_options): Add -fcrossjumping and -floop-optimize
4091 * invoke.texi (crossjumping, loop-optimize): Document.
4093 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
4095 * real.c (eiisneg): Move outside #ifdef NANS.
4097 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
4099 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
4100 frequencies match; avoid match on different loop depths.
4101 (try_crossjump_to_bb): Kill tests that no longer brings time
4103 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
4105 (split_edge): Likewise.
4107 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
4110 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
4111 * cfgrtl.c: Include insn-config.h
4112 (split_block) Dirtify block in presence of conditional execution
4114 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
4116 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
4117 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
4118 (function_arg): Constify CUMULATIVE_ARGS.
4119 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
4120 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
4121 (UNITS_PER_DOUBLE): New macro.
4122 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
4123 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
4124 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
4125 fp_regs and stack_words.
4126 (EABI_FLOAT_VARARGS_P): New macro.
4127 * config/mips/mips.c (struct mips_arg_info): New.
4128 (mips_arg_info): New function.
4129 (function_arg_advance): Use it. Add adjustment instructions here
4130 rather than in function_arg.
4131 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
4132 for VOIDmode at the beginning of the function.
4133 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
4134 (function_arg_pass_by_reference): Likewise.
4135 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
4136 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
4137 (mips_va_start): Likewise. Use the new stack_words field of
4138 CUMULATIVE_ARGS to set up overflow area. Reformat.
4139 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
4140 doubles and other types, aligning the overflow pointer for non-doubles
4141 too. Remove some code duplication. Replace hard-coded constants.
4143 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
4145 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
4146 (CLASS_UNITS): Undefine.
4147 (CLASS_MAX_NREGS): Use FP_INC.
4148 * config/mips/mips.c (compute_frame_size): Likewise.
4149 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
4151 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
4153 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
4154 prototype, and handle lexing numbers and identifiers.
4155 (parse_identifier): Update to new form of parse_slow.
4156 (parse_number): Fast path only, use parse_slow otherwise.
4157 (_cpp_lex_direct): Update calls to parse_number.
4159 2002-03-21 DJ Delorie <dj@redhat.com>
4161 * bb-reorder.c (make_reorder_chain_1): Protect against
4162 when redundant edges are omitted.
4163 * predict.c (dump_prediction): Likewise.
4165 2002-03-21 Richard Henderson <rth@redhat.com>
4168 * fixinc/inclhack.def (solaris_stdio_tag): New.
4169 * fixinc/fixincl.x: Regenerate.
4171 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
4174 * c-typeck.c (process_init_element): Flag non-static
4175 initialization of a flexible array member as illegal.
4177 2002-03-22 Alan Modra <amodra@bigpond.net.au>
4179 * config/rs6000/t-linux64: New.
4180 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
4181 t-ppccomm. Use t-rs6000 and t-linux64.
4182 (powerpc64-*-gnu* <tmake_file>): Likewise.
4183 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
4184 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
4185 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
4187 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
4189 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
4190 flag_really_no_inline instead of optimize == 0.
4192 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
4194 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
4196 * flags.h (flag_really_no_inline): New.
4198 * c-common.c (c_common_post_options): Initialize
4199 flag_really_no_inline.
4201 * toplev.c (flag_really_no_inline): New.
4203 2002-03-21 Jakub Jelinek <jakub@redhat.com>
4205 * config/avr/avr.md (length): Fix length computation for
4206 conditional branches.
4208 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
4210 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
4211 sdbout.o, profile.o): Update.
4212 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
4214 * c-common.h (gettags): Move here from tree.h.
4215 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
4216 insert_block, getdecls, kept_level_p, global_bindings_p): New.
4217 * dbxout.c (dbxout_init): Use getdecls langhook.
4218 * expr.c (expand_expr): Use insert_block langhook.
4219 * fold-const.c: Include langhooks.h.
4220 (fold_range_test, fold_binary_op_with_conditional_arg,
4221 fold): Use global_bindings_p langhook.
4222 * integrate.c (expand_inline_function): Use insert_block langhook.
4223 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
4224 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
4225 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
4226 LANG_HOOKS_GETDECLS): New.
4227 (LANG_HOOKS_INITIALIZER): Update.
4228 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
4230 * langhooks.h (struct lang_hooks_for_decls): New.
4231 (struct lang_hooks): Update.
4232 * profile.c: Include langhooks.h.
4233 (output_func_start_profiler): Use new langhooks.
4234 * sdbout.c: Include langhooks.h.
4235 (sdbout_init, sdbout_finish): Use getdecls langhook.
4236 * stmt.c: Include langhooks.h.
4237 (expand_fixup, fixup_gotos): Use new langhooks.
4238 * stor-layout.c: Include langhooks.h.
4239 (variable_size): Use global_bindings_p langhook.
4240 * toplev.c (compile_file): Use getdecls langhook.
4241 * tree-inline.c (remap_block): Use insert_block langhook.
4242 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
4243 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
4245 2002-03-21 Richard Henderson <rth@redhat.com>
4247 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
4248 constants in .data when -fpic.
4250 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4252 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
4255 2002-03-21 Tom Tromey <tromey@redhat.com>
4257 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
4259 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4261 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
4263 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
4265 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
4266 Richard Henderson <rth@redhat.com>
4269 * c-common.c (c_expand_expr): Preserve result of a statement
4270 expression if needed.
4272 2002-03-21 Jakub Jelinek <jakub@redhat.com>
4275 * genrecog.c (maybe_both_true_mode): Remove.
4276 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
4277 * machmode.def (Pmode): Likewise.
4279 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
4281 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
4282 (nonlocal_mentioned_p_1): New function.
4283 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
4284 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
4285 (mark_constant_function): Recognize pure functions.
4286 * rtl.h (global_reg_mentioned_p): New prototype.
4287 * rtlanal.c (global_reg_mentioned_p,
4288 global_reg_mentioned_p_1): New function.
4290 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4292 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
4294 * fixinc/fixincl.x: Regenerate.
4296 2002-03-20 Jason Merrill <jason@redhat.com>
4298 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
4300 2002-03-20 Michael Meissner <meissner@redhat.com>
4302 * doc/invoke.texi (Optimize Options): Document that -O2 sets
4305 2002-03-20 Bob Wilson <bob.wilson@acm.org>
4307 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
4308 ".literal_position" directive before the constant pool.
4310 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4312 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
4313 Add Craig Rodrigues.
4314 Add Brad Lucier to testers.
4316 2002-03-20 Jakub Jelinek <jakub@redhat.com>
4319 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
4321 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
4322 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
4323 instead of insn_extract.
4325 2002-03-20 Jakub Jelinek <jakub@redhat.com>
4328 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
4330 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
4331 stmt if some case has been output.
4333 2002-03-20 Jakub Jelinek <jakub@redhat.com>
4336 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
4337 movsfcc_1, movdfcc_1): Add %O2.
4338 * config/i386/i386.c (print_operand): Handle %ON.
4339 Print . before float condition codes in Sun as cmov syntax.
4340 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
4341 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
4344 2002-03-20 Philip Blundell <pb@nexus.co.uk>
4346 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
4347 return instruction if PC was popped.
4349 2002-03-20 Bob Wilson <bob.wilson@acm.org>
4351 * config/xtensa/xtensa.md: Remove unused type attributes.
4352 (adddi_carry, subddi_carry): Change type attribute to "multi".
4354 2002-03-19 Dale Johannesen <dalej@apple.com>
4356 PR optimization/5999, middle-end/5731
4357 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
4358 multiplications by reciprocals.
4360 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
4362 * Makefile.in: Update.
4363 * c-common.c: Include langhooks.h.
4364 (inline_forbidden_p): Use new hook.
4365 * diagnostic.c: Include langhooks.h.
4366 (format_with_decl, announce_function,
4367 default_print_error_function): Use new hook.
4368 * dwarf2out.c (dwarf2_name): Use new hook.
4369 * function.c: Include langhooks.h.
4370 (init_function_start): Use new hook.
4371 * langhooks-def.h (lhd_decl_printable_name): New.
4372 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
4373 (LANGHOOKS_INITIALIZER): Update.
4374 * langhooks.c (lhd_decl_printable_name): New.
4375 * langhooks.h (struct lang_hooks): New hook.
4376 * toplev.c (decl_name, decl_printable_name): Remove.
4377 (open_dump_file): Use new hook.
4378 (process_options): Remove old hook.
4379 * tree.h (decl_printable_name): Remove.
4381 * objc-act.c (objc_init): Remove old hook.
4382 (objc_printable_name): Export.
4383 * objc-act.h (objc_printable_name): New.
4384 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
4386 2002-03-19 Jim Blandy <jimb@redhat.com>
4388 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
4389 the start_source_file debug hook, not the current line number.
4391 2002-03-19 Richard Henderson <rth@redhat.com>
4393 * flow.c (EH_USES): Provide default.
4394 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
4395 * doc/tm.texi (EH_USES): New.
4397 * config/ia64/ia64.c (ia64_eh_uses): New.
4398 * config/ia64/ia64-protos.h: Update.
4399 * config/ia64/ia64.h (EH_USES): New.
4401 2002-03-19 Richard Henderson <rth@redhat.com>
4403 * varasm.c (output_constant_def): Fix stupid typo.
4405 2002-03-19 Richard Henderson <rth@redhat.com>
4408 * except.c (current_function_has_exception_handlers): New.
4409 * except.h: Declare it.
4410 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
4411 Combine tests that disable all sibcalls for the function.
4413 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
4415 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
4418 2002-03-19 Richard Henderson <rth@redhat.com>
4421 * config/ia64/ia64.c: Revert 2002-03-01 patch.
4422 * config/ia64/ia64.h (INIT_EXPANDERS): New.
4424 2002-03-19 Jim Blandy <jimb@redhat.com>
4426 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
4427 name, even if the replacement list contains no tokens, as required
4430 2002-03-19 Jason Merrill <jason@redhat.com>
4432 * varasm.c (globalize_decl): Get the name from the RTL, not
4433 DECL_ASSEMBLER_NAME.
4435 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
4437 2002-03-19 Bob Wilson <bob.wilson@acm.org>
4439 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
4440 subdi_carry): Define.
4442 2002-03-19 David Edelsohn <edelsohn@gnu.org>
4444 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
4445 about -fpic/-fPIC if extra_warnings set.
4447 2002-03-19 David Edelsohn <edelsohn@gnu.org>
4449 * expr.c (expand_expr): Sign-extend CONST_INT generated from
4450 TREE_STRING_POINTER.
4451 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
4453 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4455 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
4456 in favor of SP if FRAME_POINTER_REQUIRED is false.
4458 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
4460 * emit-rtl.c (gen_int_mode): New function.
4461 * rtl.h: Prototype for it.
4462 * combine.c (make_extraction, simplify_comparison), expmed.c
4463 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
4464 (convert_modes, store_field), optabs.c (expand_fix),
4465 simplify-rtx.c (neg_const_int, simplify_unary_real),
4467 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
4468 Use it instead of GEN_INT (trunc_int_for_mode (...)).
4470 2002-03-19 Jakub Jelinek <jakub@redhat.com>
4473 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
4474 convert_parm_for_inlining.
4475 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
4477 * langhooks-def.h: Likewise.
4478 * objc/objc-lang.c: Likewise.
4479 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
4481 * tree-inline.c (initialize_inlined_parameters):
4482 Call convert_parm_for_inlining lang hook if needed.
4483 * c-typeck.c (c_convert_parm_for_inlining): New function.
4484 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
4486 2002-03-18 Mark Mitchell <mark@codesourcery.com>
4488 * calls.c (precompute_arguments): Do not assume that temporaries
4489 can be destroyed after expanding the argument.
4490 (expand_call): Likewise.
4492 2002-03-15 Eric Christopher <echristo@redhat.com>
4494 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
4495 Fix register preference on last change.
4496 * config/mips/mips.c (mips_return_in_memory): New function.
4497 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
4498 * config/mips/mips-protos.h: Declare.
4499 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
4500 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
4502 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
4504 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
4506 (anddi3, iorsi3): Likewise.
4508 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
4509 use %gprel for symbols that are going to be placed in linkonce
4512 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
4513 RETURN_ADDRESS_POINTER_REGNUM to $ra.
4514 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
4515 not needed. Disregard leaf_function_p().
4516 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
4517 mips16 frame pointer.
4518 * config/mips/mips.md (store ra): Only to small SP offsets.
4519 2001-08-22 Graham Stott <grahams@redhat.com>
4520 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
4521 return a REG rtx for the return address register.
4523 2002-03-18 Bob Wilson <bob.wilson@acm.org>
4525 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
4526 constant-pool addresses as "mode-dependent".
4527 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
4529 2002-03-18 Jakub Jelinek <jakub@redhat.com>
4532 * expr.c (emit_group_load): Use extract_bit_field if
4533 needed for CONCAT arguments.
4535 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
4538 * arm.md (tablejump): Make this a define_expand. For PIC add the
4539 offset to the base of the table.
4540 (thumb_tablejump): Matcher for Thumb tablejump insn.
4541 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
4542 as the difference of two labels.
4543 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4544 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
4546 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
4547 * arm.c (get_jump_table_size): If the table is not in the text
4548 section, return zero.
4550 2002-03-18 Bernd Schmidt <bernds@redhat.com>
4552 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
4554 (arm_reload_out_hi): Use gen_lowpart instead of
4555 gen_rtx_SUBREG to access QImode components.
4556 * config/arm/arm.md: Disable zero_extend split for QImode
4557 subregs in BIG_ENDIAN mode.
4558 (storehi_bigend): Match use of least significant byte.
4559 (storeinthi): Remove extraneous SUBREG.
4560 Add missing construction of operands[2].
4561 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
4562 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
4563 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
4565 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
4567 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
4570 2002-03-17 Richard Henderson <rth@redhat.com>
4572 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
4575 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
4577 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
4578 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
4580 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4582 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
4584 * predict.c (estimate_bb_frequencies): Delete unused variables.
4586 2002-03-17 Richard Henderson <rth@redhat.com>
4588 * config/ia64/ia64.c (ia64_attribute_table): Move before
4589 targetm definition. Make static.
4591 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
4593 * c-common.h (yyparse, c_common_parse_file): New.
4594 * c-lang.c: Include c-common.h.
4595 (LANG_HOOKS_PARSE_FILE): Redefine.
4596 * c-lex.c: Include c-common.h.
4597 (yyparse): Rename c_common_parse_file. Call yyparse.
4598 * c-parse.in (yyparse): Remove macro.
4599 * c-tree.h (yyparse_1): Remove.
4600 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
4601 (LANG_HOOKS_INITIALIZER): Update.
4602 * langhooks.h (struct lang_hoooks): New hook parse_file.
4603 * toplev.c (compile_file): Use parse_file hook.
4604 * tree.h (yyparse): Remove.
4605 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
4607 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
4609 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
4610 float_truncate, not fix.
4611 ("*truncdfsf2_real"): Ditto.
4612 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
4614 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
4616 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
4618 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
4619 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
4620 where appropriate. Make the second reference to
4621 leaf_function_p a function call, as intended. Reindented.
4623 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
4624 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
4626 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
4627 add register to non-constant into sp.
4629 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
4630 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
4631 (mips16_gp_pseudo_rtx): Lose.
4632 (INIT_EXPANDERS): Deleted.
4633 * config/mips/mips.c (mips_init_machine_status): New.
4634 (mips_free_machine_status): New.
4635 (mips_mark_machine_status): New.
4636 (override_options): Set them.
4637 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
4638 (struct machine_function): ... new. Replaced all references.
4639 (mips_add_gc_roots): Don't mark them.
4640 (embedded_pic_fnaddr_reg): New, extracted from...
4641 (embedded_pic_offset): ... here.
4642 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
4645 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
4647 * cppinit.c: Revert -MD removal.
4649 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4651 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
4652 soft registers by default for 68HC12.
4653 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
4654 when compiling with -fomit-frame-pointer.
4655 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
4656 (expand_epilogue): Likewise.
4657 (m68hc11_gen_rotate): Use exg when rotating by 8.
4659 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4661 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
4662 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
4663 (splits): Remove unused add splits.
4664 ("*addhi3_68hc12"): Tune constraints.
4665 ("addhi_sp"): Try to use X instead of Y in all cases and if the
4666 constant fits in 8-bits and D is dead use abx/aby instructions.
4667 ("*addhi3"): Remove extern declaration of ix_reg.
4668 ("*subsi3"): Optimize and provide new split.
4669 ("subhi3"): Cleanup.
4670 ("*subhi3_sp"): Avoid saving X if we know it is dead.
4671 (arith splits): For 68hc12 save the address register on the stack
4672 and do the arithmetic operation with a pop.
4674 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4676 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
4677 allocating QImode in address registers.
4678 ("*movqi_m68hc11"): Likewise.
4680 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
4682 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
4684 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
4686 * cppinit.c (print_help): Display -MD and -MMD.
4687 Don't display usage string. Update assertion syntax and
4689 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
4690 (cpp_handle_option): Update.
4692 2002-03-15 Chris Demetriou <cgd@broadcom.com>
4694 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
4695 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
4696 and define it so that regardless of target CPU size,
4697 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
4698 of "int" rather than "long."
4700 2002-03-15 Richard Henderson <rth@redhat.com>
4702 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
4705 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4707 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
4708 ("tstqi" split): Avoid using memory for tstqi on address register.
4709 (splits): Remove constraints.
4710 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
4711 ("cmpdf", "cmpsf"): Remove since not used.
4712 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
4713 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
4715 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4717 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
4718 ("neghi2"): Tighten constraints.
4719 ("one_cmplsi2"): Optimize and simplify split.
4720 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
4722 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4724 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
4725 and split of AND operation to clear the upper bits.
4726 ("*logicalsi3_zextqi"): Likewise.
4727 ("*logicallhi3_zexthi_ashift8"): Likewise.
4728 ("*logicalsi3_silshr16"): Likewise.
4729 ("logicalsi3_silshl16"): Likewise.
4730 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
4732 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4734 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
4735 (m68hc11_indirect_p): New function.
4736 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
4737 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
4739 (asm_print_register): Likewise.
4740 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
4741 (m68hc11_indirect_p): Declare.
4742 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
4743 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
4744 (TARGET_SWITCHES): New option -mrelax.
4745 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
4747 ("iorsi3", "xorsi3"): Likewise.
4748 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
4749 ("*andhi3_mem"): New to handle destination in memory with bclr
4750 and a scratch register.
4751 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
4752 ("*andhi3_const"): New when operand2 is constant.
4753 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
4754 ("*andhi3_gen"): Cleanup of the old "andhi3".
4755 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
4756 ("xorqi3"): Update constraints.
4758 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4760 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
4761 for reg_equiv_memory_loc when the operand is a register that does
4762 not get a hard register (stack location).
4763 (tst_operand): After reload, accept all memory operand.
4764 (symbolic_memory_operand): Fix detection of symbolic references.
4765 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
4766 accept symbols and any constant.
4768 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4770 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
4771 note on the insn that sets the soft frame register.
4772 (must_parenthesize): ix and iy are also reserved names.
4773 (print_operand_address): One more place where parenthesis are required
4774 to avoid confusion with register names.
4775 (m68hc11_gen_movhi): Allow push of stack pointer.
4776 (m68hc11_check_z_replacement): Fix handling of parallel with a
4778 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
4779 the replacement register is.
4780 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
4781 and D8_REGS classes.
4782 (MODES_TIEABLE_P): All modes are tieable except QImode.
4784 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4786 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
4787 (___subdi3): Likewise.
4788 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
4789 (__map_data_section): Optimize 68hc11 case.
4791 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4793 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
4794 than a shift to avoid adding a register with itself.
4795 (m68hc11_memory_move_cost): Take into account NO_REGS.
4796 (m68hc11_register_move_cost): Update and use memory move cost
4798 (m68hc11_address_cost): Make cost of valid offset not 0 so that
4799 it gives more opportunities to cse to optimize.
4800 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
4801 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
4803 2002-03-15 Mark Mitchell <mark@codesourcery.com>
4805 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
4806 * c-common.def (CLEANUP_STMT): New tree node.
4807 * c-common.h (CLEANUP_DECL): New macro.
4808 (CLEANUP_EXPR): Likewise.
4809 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
4810 * expr.c (expand_expr): Tidy.
4811 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
4812 * tree-inline.c (initialize_inlined_parameters): Clean up
4813 new local variables.
4815 2002-03-15 Jakub Jelinek <jakub@redhat.com>
4818 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
4819 before movrXX only, use reg_overlap_mentioned_p.
4820 Only special case NE if just one insn can be generated.
4822 2002-03-15 Jason Merrill <jason@redhat.com>
4824 * varasm.c (assemble_variable): Call resolve_unique_section before
4825 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
4828 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
4831 * arm.md (split pattern for thumb shiftable immediates): Add comment
4832 explaining non-obvious test.
4834 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
4837 * arm.md (movaddr, movaddr_insn): Delete.
4839 2002-03-15 Jason Merrill <jason@redhat.com>
4841 * toplev.c (wrapup_global_declarations): Clarify variable handling.
4842 -fkeep-static-consts doesn't apply to comdats.
4844 2002-03-14 Richard Henderson <rth@redhat.com>
4846 * c-decl.c: Include c-pragma.h.
4847 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
4848 (finish_function): Tidy.
4849 * c-pragma.c: Include c-common.h.
4850 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
4851 (handle_pragma_weak): Use them.
4852 (init_pragma): Register pending_weaks.
4853 * c-pragma.h (maybe_apply_pragma_weak): Declare.
4854 * print-tree.c (print_node): Print DECL_WEAK.
4855 * varasm.c (mark_weak_decls): Remove.
4856 (remove_from_pending_weak_list): Remove.
4858 (asm_emit_uninitialised): Call globalize_decl for weak commons.
4859 (weak_decls): Make a tree_list.
4860 (declare_weak): Cons weak_decls directly.
4861 (globalize_decl): Remove weak_decls elements directly.
4862 (weak_finish): Simplify weak_decls walk. Don't weaken unused
4863 symbols. Don't pretend to handle aliases.
4864 (init_varasm_once): Update weak_decls registry.
4865 * Makefile.in: Update dependencies.
4867 2002-03-14 Richard Henderson <rth@redhat.com>
4870 * config/ia64/ia64.c: Include tm_p.h last.
4871 (gen_nop_type): Remove duplicate definition.
4872 (cycle_end_fill_slots): Set sched_data for second L slot.
4873 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
4874 (nop_cycles_until): Fix typos.
4876 2002-03-15 Jakub Jelinek <jakub@redhat.com>
4878 PR optimization/5891
4879 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
4881 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
4883 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
4884 descriptors correctly.
4886 2002-03-14 Michael Meissner <meissner@redhat.com>
4888 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
4889 100, allowing MAX_UNROLLED_INSNS to be overridden.
4891 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
4894 * unroll.c (params.h): Include.
4895 (MAX_UNROLLED_INSNS): Delete, now in params.h.
4897 * doc/invoke.texi (--param max-unroll-insns): Document.
4899 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
4901 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
4903 * arm.md: Fix warnings about constraints in peepholes and splits.
4905 2002-03-14 Zack Weinberg <zack@codesourcery.com>
4907 * cpphash.h (struct lexer_state): Remove line_extension member.
4908 * cpplib.c (dequote_string, do_linemarker): New functions.
4909 (linemarker_dir): New data object.
4910 (DIRECTIVE_TABLE): No longer need to interpret #line in
4911 preprocessed source. Delete obsolete comment about return
4913 (end_directive, directive_diagnostics, _cpp_handle_directive):
4914 Don't muck with line_extension.
4915 (directive_diagnostics): No need to issue warnings for
4917 (_cpp_handle_directive): Issue warnings for linemarkers here,
4918 when appropriate. Dispatch linemarkers to do_linemarker, not
4920 (do_line): Code to handle linemarkers split out to do_linemarker.
4921 Convert escape sequences in filename argument, both places.
4923 * cppmacro.c (quote_string): Rename cpp_quote_string and
4924 export. All callers changed.
4925 * cpplib.h (cpp_quote_string): Prototype.
4926 * cppmain.c (print_line): Call cpp_quote_string on to_file
4929 * doc/cpp.texi: Document that escapes are now interpreted in
4930 #line and in linemarkers, and that non-printing characters are
4931 converted to octal escapes when linemarkers are generated.
4933 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
4935 * emit-rtl.c (try_split): Use delete_insns.
4936 * recog.c (split_all_insns): Fix terminating condition.
4938 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
4939 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
4942 * arm.c (arm_output_epilogue): Fix floating-point register save
4943 adjustment when using a frame pointer.
4945 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
4947 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
4948 * config/mips/mips.c (compute_frame_size): Retrofit them here.
4949 (save_restore_insns, mips_expand_epilogue): And here.
4950 (build_mips16_call_stub): And here.
4951 (mips_function_value): Use the new macros to decide whether a single
4952 or complex float can be returned in floating-point registers. Return
4953 a parallel rtx in the complex case.
4955 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
4957 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
4958 call after liveness analysis.
4960 * recog.c (split_insn): Use delete_insn_and_edges.
4962 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
4963 instructions to have branch prediction notes.
4964 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
4966 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
4968 * configure.in: Don't pass -Wno-long-long to a ADA compiler
4969 that doesn't support it.
4970 * configure: Regenerate.
4972 2002-03-13 Jakub Jelinek <jakub@redhat.com>
4975 * config/sparc/sparc.md (normal_branch, inverted_branch,
4976 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
4977 inverted_fp_branch): Adjust calls to output_cbranch.
4978 Set length attribute.
4979 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
4980 output_v9branch. Set length attribute.
4981 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
4983 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
4984 (output_cbranch): Likewise. Handle far branches.
4985 (output_v9branch): Handle far branches.
4986 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
4988 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
4989 noov_compare64_op predicates.
4991 2002-03-13 Jason Merrill <jason@redhat.com>
4993 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
4994 into the function and constify it.
4995 * gthr-dce.h, gthr-solaris.h: Likewise.
4997 2002-03-13 David Edelsohn <edelsohn@gnu.org>
4999 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
5000 * config/rs6000/rs6000.c (rs6000_va_arg): Use
5001 std_expand_builtin_va_arg if not ABI_V4.
5003 2002-03-13 Jason Merrill <jason@redhat.com>
5005 * varasm.c (globalize_decl): New fn.
5006 (assemble_start_function): Use it.
5007 (asm_emit_uninitialized): Use it.
5008 (assemble_alias): Use it.
5009 (assemble_variable): Use it.
5011 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
5013 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
5014 2002-03-12 internal visibility change.
5015 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
5016 visibility into SYMBOL_REF_FLAG.
5018 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
5020 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
5021 VOIDmode operand. Add compile-time optimization for constant results.
5023 2002-03-12 Jason Merrill <jason@redhat.com>
5025 * c-typeck.c (convert_for_assignment): Don't allow conversions
5026 between pointers and references. Only allow lvalues to convert to
5029 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
5031 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
5032 before prologue, to avoid scheduling problems.
5034 2002-03-13 Jakub Jelinek <jakub@redhat.com>
5036 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
5037 (ELIMINABLE_REGS): Add sfp->sp.
5038 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
5040 2002-03-13 Jakub Jelinek <jakub@redhat.com>
5042 PR optimization/5892
5043 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
5045 2002-03-13 Jakub Jelinek <jakub@redhat.com>
5047 * loop.c (basic_induction_var): Don't call convert_modes if mode
5048 classes are different.
5050 2002-03-12 Richard Henderson <rth@redhat.com>
5052 PR optimization/5901
5053 * function.c (reposition_prologue_and_epilogue_notes): Position
5054 the markers after/before the last/first insn not deleted.
5056 2002-03-12 Richard Henderson <rth@redhat.com>
5058 PR optimization/5878
5059 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
5060 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
5061 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5063 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
5064 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
5065 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
5067 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
5068 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
5069 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
5070 also. Don't set it if not flag_pic.
5071 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
5072 to be INVALID_REGNUM when not used.
5074 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
5076 * expmed.c (store_bit_field): Reset alias set for memory.
5077 (extract_bit_field): Same.
5079 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5081 * c-common.c (c_tree_code_type, c_tree_code_length,
5082 c_tree_code_name, add_c_tree_codes): Delete.
5083 * c-common.h (add_c_tree_codes): Delete.
5084 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
5086 * c-objc-common.c (c_objc_common_init): Don't call
5087 add_c_tree_codes, instead set lang_unsafe_for_reeval.
5088 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
5089 objc_tree_code_name, add_objc_tree_codes): Delete.
5090 (objc_init): Don't call add_objc_tree_codes.
5091 * objc/objc-lang.c (tree_code_type, tree_code_length,
5092 tree_code_name): Define.
5093 * toplev.c (lang_independent_init): Don't set
5094 tree_code_length[IDENTIFIER_NODE].
5095 * tree.c (tree_code_type, tree_code_length, tree_code_name):
5096 Delete definitions, moved to language front-ends.
5097 * tree.def (IDENTIFIER_NODE): Hardwire the length.
5098 * tree.h (tree_code_type, tree_code_length, tree_code_name):
5100 (tree_code_length): Change type to unsigned char.
5102 2002-03-12 Richard Henderson <rth@redhat.com>
5104 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
5105 internal visibility change.
5107 2002-03-12 Bob Wilson <bob.wilson@acm.org>
5109 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
5110 validize_mem() instead of change_address to avoid clobbering
5113 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
5115 * c-lex.h (position_after_whitespace): Remove.
5117 2002-03-12 Jakub Jelinek <jakub@redhat.com>
5119 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
5120 (lex_string): Use unsigned char pointers.
5122 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
5124 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
5125 is not a valid memory_operand.
5127 2002-03-12 Bob Wilson <bob.wilson@acm.org>
5129 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
5130 * config/xtensa/lib1funcs.asm: Fix copyright to include
5131 special case for libgcc files.
5132 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
5133 (__divsi3): Likewise.
5134 (__umodsi3): Likewise.
5135 (__modsi3): Likewise.
5136 * config/xtensa/lib2funcs.S: Fix copyright to include
5137 special case for libgcc files.
5139 2002-03-12 Tom Rix <trix@redhat.com>
5141 * collect2.c (resolve_lib_name): Move outside of
5142 OBJECT_FORMAT_COFF ifdef.
5143 (ignore_library): Same.
5145 2002-03-12 Bob Wilson <bob.wilson@acm.org>
5147 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
5149 2002-03-12 Bob Wilson <bob.wilson@acm.org>
5151 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
5152 to function_section before writing out the constant pool.
5154 2002-03-12 David Edelsohn <edelsohn@gnu.org>
5156 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
5158 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
5160 2002-03-12 Alan Modra <amodra@bigpond.net.au>
5162 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
5166 (cmpsi splitter): Likewise.
5167 (modsi3): Fail if <= 0.
5168 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
5169 redundant test when HOST_BITS_PER_WIDE_INT != 32.
5170 (reg_or_sub_cint64_operand): Likewise.
5171 (num_insns_constant_wide): Optimize sign extension.
5172 (rs6000_legitimize_address): Likewise.
5174 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
5176 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5177 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5179 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
5181 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
5182 address calculation.
5184 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
5186 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
5187 scratch register to DImode / TImode.
5188 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
5189 register used does not overlap the target.
5191 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5193 * Makefile.in (debug.o): Depend on debug.h.
5194 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
5195 * debug.c (do_nothing_debug_hooks): Likewise.
5196 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
5197 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
5198 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
5199 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
5200 * dwarfout.c (dwarf_debug_hooks): Likewise.
5201 * integrate.c (output_inline_function): Likewise.
5202 * objc/objc-act.c (synth_module_prologue): Likewise.
5203 * sdbout.c (sdb_debug_hooks): Likewise.
5204 * toplev.c (debug_hooks): Likewise.
5205 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5207 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5209 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
5210 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
5211 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
5212 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
5213 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
5214 * defaults.h (POINTER_SIZE): Define.
5215 * doc/tm.texi (POINTER_SIZE): Document default.
5217 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5219 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
5221 2002-03-11 Richard Henderson <rth@redhat.com>
5223 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
5224 if rebuild_label_notes_after_reload.
5226 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
5228 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
5229 emit pic register load if "internal" visibility.
5230 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
5231 (cris_expand_builtin_va_arg): Do all computations on trees.
5233 2002-03-11 Richard Henderson <rth@redhat.com>
5235 * rtlanal.c: Include recog.h.
5236 (keep_with_call_p): Fix thinko.
5237 * Makefile.in (rtlanal.o): Update dependencies.
5239 2002-03-11 Chris Meyer <cmeyer@gatan.com>
5241 * genflags.c (gen_insn): Use IS_VSPACE.
5242 * genoutput.c (output_insn_data): Likewise.
5243 (process_template): Likewise.
5245 2002-03-11 Richard Henderson <rth@redhat.com>
5247 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
5249 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
5251 * Makefile.in: Update.
5252 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
5253 Update documentation.
5254 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
5255 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
5257 2002-03-11 Zack Weinberg <zack@codesourcery.com>
5259 * Makefile.in: Give texi2pod its input file as a command line
5260 argument, not on stdin.
5262 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
5263 Daniel Berlin <dan@dberlin.org>
5265 C++ alias analysis improvement.
5266 * alias.c (record_component_aliases): Record aliases for base
5269 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
5271 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
5273 2002-03-11 Douglas B Rupp <rupp@gnat.com>
5275 * toplev.c (vms_fopen): Remove, not needed.
5277 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
5279 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
5281 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
5282 for FP, already done later.
5284 * toplev.c (debug_args): Add entry for VMS_DEBUG.
5285 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
5287 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
5289 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
5290 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
5291 LARGEST_EXPONENT_IS_NORMAL for the given mode.
5292 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
5293 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
5294 (ediv, emul, eldexp, esqrt): Likewise.
5295 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
5296 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
5297 (saturate): New function.
5298 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
5299 (make_nan): Use a saturation value instead of a NaN if
5300 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
5301 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
5302 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
5303 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
5304 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
5305 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
5306 !ROUND_TOWARDS_ZERO.
5307 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
5308 (ROUND_TOWARDS_ZERO): Document.
5310 2002-03-11 Andreas Jaeger <aj@suse.de>
5312 * cfg.c (dump_flow_info): Remove unused variable.
5314 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
5316 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
5317 computations on trees.
5319 2002-03-10 Richard Henderson <rth@redhat.com>
5322 * reload.c (copy_replacements_1): New.
5323 (copy_replacements): Use it to recurse through the rtx.
5325 2002-03-10 Richard Henderson <rth@redhat.com>
5327 * loop.c (strength_reduce): Compute number of iterations as
5328 unsigned HOST_WIDE_INT.
5330 2002-03-10 Richard Henderson <rth@redhat.com>
5332 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
5333 to move away from the end of the block.
5335 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
5337 PR preprocessor/5899
5338 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
5340 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5342 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
5344 * attribs.c (decl_attributes): Fix signed/unsigned warning.
5346 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
5348 * config/mmix/mmix.c: Improve comments.
5349 (mmix_target_asm_function_prologue): Drop variable
5350 empty_stack_frame. Don't allocate unused slot above fp.
5351 (mmix_target_asm_function_epilogue): Mirror prologue changes.
5352 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
5353 brace in first column.
5354 (enum reg_class): Ditto.
5355 (FIRST_PARM_OFFSET): Now 0.
5356 (USER_LABEL_PREFIX): Remove #if 0:d definition.
5358 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5360 * combine.c (make_extraction): Fix error in last change.
5362 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5364 * c4x.c (c4x_fp_reglist): Const-ify.
5365 * cris.c (cris_print_operand): Likewise.
5366 * i386.c (ix86_va_arg): Likewise.
5367 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
5368 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
5369 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
5370 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
5371 * mcore.h (regno_reg_class): Likewise.
5372 * mips.c (gen_int_relational): Likewise.
5373 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
5374 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
5375 * pdp11.c (move_costs): Likewise.
5376 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
5377 * s390.c (s390_branch_condition_mnemonic, regclass_map):
5379 * s390.h (regclass_map): Likewise.
5380 * sh.c (shift_amounts): Likewise.
5381 * sh.md (rotlsi3): Likewise.
5383 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
5385 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
5386 (ne0+5): Use new clobber to generate proper shift pattern.
5387 Patch by Michael Matz <matz@kde.org>.
5389 2002-03-09 Andreas Schwab <schwab@suse.de>
5391 * gcc.c (validate_all_switches): Also handle `%W{...}'.
5393 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
5395 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
5397 2002-03-09 Jakub Jelinek <jakub@redhat.com>
5400 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
5401 even for non-representable constants.
5403 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5405 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
5406 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
5407 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
5408 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
5409 (pop_function_context): Compute MAY_SHARE parameter for
5411 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
5412 (gen_mem_addressof): Call fixup_var_refs with new parm.
5414 * combine.c (make_extraction): Don't make extension of CONST_INT.
5416 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
5418 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
5419 in o32 and o64 ABIs.
5420 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
5421 but getting fixed-size structs passed in registers regardless of
5422 padding in o32 and o64 ABIs.
5424 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
5425 offset before loading address of argument passed by transparent
5428 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
5430 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
5432 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
5434 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
5435 marker such that registers after it are saved.
5437 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5439 * sparc.c (arith_4096_operand): Fix error in last change.
5441 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
5443 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
5446 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
5448 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
5451 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
5453 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
5455 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
5457 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
5458 removed; fix return value.
5459 * combine.c (combine_instructions): Dirtify blocks where we failed to
5460 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
5461 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
5463 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5465 * gcse.c (insert_insn_end_bb): Fix typo in last change.
5467 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
5469 * recog.c (peephole2_optimize): Re-distribute EH edges.
5471 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
5473 * expr.c (expand_expr): Use unsave lang hook.
5474 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
5475 (LANG_HOOKS_INITIALIZER): Update.
5476 * langhooks.h (struct lang_hooks): New hook unsave.
5477 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
5478 (unsave_expr_1): Remove unused lang_unsave_expr_now.
5479 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
5480 (unsave_expr_now): Remove.
5481 * tree.h (unsave_expr_now, lang_unsave,
5482 lang_unsave_expr_now): Remove.
5485 2002-03-08 Andreas Jaeger <aj@suse.de>
5487 * flow.c (propagate_block_delete_insn): Remove unused variable.
5489 2002-03-08 Kazu Hirata <kazu@hxi.com>
5491 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
5492 insn length for memory load/store.
5494 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
5496 * doc/install.texi (--with-libiconv-prefix): Document.
5498 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
5500 * doc/sourcebuild.texi: Fix typo.
5502 2002-03-08 Jakub Jelinek <jakub@redhat.com>
5505 * builtins.c (std_expand_builtin_va_arg): Do all computations on
5508 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5510 * rtl.c (copy_most_rtx): Move from here ...
5511 * emit-rtl.c (copy_most_rtx): ... to here.
5513 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
5515 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
5516 SUBTARGET_CPP_SIZE_SPEC.
5517 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
5519 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
5521 2002-03-07 Matt Hiller <hiller@redhat.com>
5523 * gensupport.c (first_dir_md_include): Renamed from include;
5524 change all references.
5525 (last_dir_md_include): Renamed from last_include; change all
5527 (init_md_reader): Unconditionally initialize base_dir whether or
5528 not filename is a relative path.
5530 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
5532 * config/fp-bit.c (_unord_f2): Compile it in even if
5533 US_SOFTWARE_GOFAST is enabled.
5535 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
5536 NULL_RTX. Set all HFmode operations as NULL_RTX.
5537 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
5538 NULL_RTX, try reversing the comparison and the operands.
5540 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
5542 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
5543 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
5546 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
5548 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
5550 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
5552 * basic-block.h (fixup_abnormal_edges): Declare.
5553 * reload1.c (fixup_abnormal_edges): New function.
5554 * reg-stack.c (convert_regs): Use it.
5556 * gcse.c (insert_insn_end_bb): Handle trapping insns.
5558 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
5560 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
5562 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
5563 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
5564 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
5565 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
5566 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
5567 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
5568 unless x and y could be infinite.
5569 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
5570 Check that the common type of both arguments is a real, even for
5571 targets without unordered comparisons. Allow an integer argument
5572 to be compared against a real.
5573 (expand_tree_builtin): Use expand_unordered_cmp.
5574 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
5575 * cse.c (fold_rtx): Likewise. Fix indentation.
5576 * fold-const.c (fold_real_zero_addition_p): New.
5577 (fold): Use it, and the new HONOR_... macros.
5578 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
5579 * jump.c (reversed_comparison_code_parts): After searching for
5580 the true comparison mode, use HONOR_NANS to decide whether it
5581 can be safely reversed.
5582 (reverse_condition_maybe_unordered): Remove IEEE check.
5583 * simplify-rtx.c (simplify_binary_operation): Use the new macros
5584 to decide which simplifications are valid. Allow the following
5585 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
5586 and (a - -b) to (a + b).
5587 (simplify_relational_operation): Use HONOR_NANS.
5588 * doc/tm.texi: Document the MODE_HAS_... macros.
5590 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
5592 * combine.c (simplify_comparison): If simplifying a logical shift
5593 right and compare with constant, force the comparison to unsigned.
5595 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
5597 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
5599 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
5601 (alt_reg_names): Remove % for vrsave.
5603 2002-03-06 Richard Henderson <rth@redhat.com>
5605 PR optimization/5844
5606 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
5607 if used indicates we've already emitted one copy of an operand.
5608 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
5609 (gen_split): Supply a non-null used.
5611 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
5613 * reload1.c (reload): Unshare all rtl after reload is done.
5615 * simplify-rtx.c (simplify_plus_minus): Do not abort,
5616 but simply fail if the expression is too complex to simplify.
5617 (simplify_gen_binary): Handle simplify_plus_minus failures.
5619 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
5621 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
5622 consistently call delete_trivially_dead_insns after CSE and GCSE;
5623 fix DFI_life dumping; do jump threading after liveness; do crossjumping
5624 after liveness2; update comment in last crossjumping.
5625 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
5627 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
5629 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
5630 after completing fast dead code elimination.
5632 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
5635 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
5637 * version.c: Fix misplaced leading blanks on first line.
5639 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
5641 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
5643 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
5645 * cfgcleanup.c (mentions_nonequal_regs): New function.
5646 (thread_jump): Use it.
5647 * toplev.c (rest_of_compilation): Run jump threading after
5650 2002-03-06 Jakub Jelinek <jakub@redhat.com>
5652 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
5655 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
5657 * predict.c (estimate_bb_frequencies): Do not reload the
5658 frequencies from notes.
5660 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
5662 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
5663 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
5665 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
5666 delete_noop_moves): Return indeger.
5667 * flow.c (ndead): New variable.
5668 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
5669 BB argument; update callers.
5670 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
5671 (life_analysis): Do not call purge_all_dead_edges.
5672 (update_life_info): Return number of deleted insns; print statistics.
5673 (update_life_info_in_dirty_blocks): likewise.
5674 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
5675 return number of insns deleted.
5677 * cse.c: Include timevar.h
5678 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
5679 iterate until stabilizes; print statistics; return number of killed
5681 * Makefile.in: (cse.o): Add timevar.h dependency
5682 * rtl.h (delete_trivially_dead_insns): New.
5683 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
5684 * toplev.c (rest_of_compilation): Update callers.
5686 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
5687 (try_optimize_cfg): Do not update liveness.
5688 (cleanup-cfg): Loop until try_optimize_cfg and dead code
5689 removal stabilizes; use delete_trivially_dead_insns.
5691 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
5693 2002-03-05 Zack Weinberg <zack@codesourcery.com>
5695 * cppmain.c (setup_callbacks): Disable #pragma and #ident
5696 callbacks when processing assembly language.
5698 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
5700 * pa.h (ASM_FILE_END): Define.
5701 * som.h (ASM_FILE_END): Delete.
5703 * pa.c (function_arg): Don't pass floats in general registers in
5704 indirect calls if TARGET_ELF32.
5706 2002-03-05 Richard Henderson <rth@redhat.com>
5708 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
5710 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
5712 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
5714 2002-03-05 Jakub Jelinek <jakub@redhat.com>
5716 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
5717 -r command line. Don't hide any symbols if not building
5720 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
5722 * cfg.c (dump_flow_info): Warn about profile mismatches.
5723 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
5724 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
5726 2002-03-05 Jakub Jelinek <jakub@redhat.com>
5728 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
5729 wide volatile memory by parts.
5731 2002-03-05 Jakub Jelinek <jakub@redhat.com>
5733 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
5736 2002-03-05 Richard Henderson <rth@redhat.com>
5738 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
5740 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
5742 * toplev.c (documented_lang_options): Document more
5743 language-specific options.
5744 * doc/invoke.texi (Warning Options): Correct documentation for
5745 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
5746 * c-decl.c (c_decode_option): Use a table to handle warning options.
5748 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
5750 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
5751 parameter to mmix_encode_section_info.
5752 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
5753 relocatably. Always produce ELF, not mmo if linking relocatably.
5754 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
5755 first is non-zero, don't add symbol prefix.
5756 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
5757 prototype accordingly.
5759 2002-03-04 Krister Walfridsson <cato@df.lth.se>
5761 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
5763 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
5765 * configure.in: Increase required makeinfo version to 4.1.
5766 * configure: Regenerate.
5768 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
5770 * .cvsignore: Remove *.info* and genrtl*; these files are generated
5773 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
5775 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
5776 * doc/invoke.texi: Fix @math uses.
5778 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
5780 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
5783 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
5785 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
5786 (powerpc-*-eabisimaltivec*): Same.
5788 * config/rs6000/t-ppcendian: New.
5790 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5792 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
5793 nonimmediate_src_operand and nonimmediate_lsrc_operand to
5794 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
5796 2002-03-03 Richard Henderson <rth@redhat.com>
5798 * toplev.c (rest_of_decl_compilation): Revert last two changes.
5800 2002-03-03 Zack Weinberg <zack@codesourcery.com>
5802 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
5803 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
5804 tree.c, config/m68k/m68k.c:
5805 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
5806 REAL_ARITHMETIC blocks unconditional. Delete some further
5807 #ifdef blocks predicated on REAL_ARITHMETIC.
5808 * flags.h, toplev.c: Delete remaining references to
5811 * doc/invoke.texi: Remove documentation of -fpretend-float.
5812 * doc/tm.texi: Describe the various REAL_* macros as provided by
5813 real.h, not by the target configuration files.
5815 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
5816 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
5817 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
5818 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
5819 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
5820 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
5821 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
5822 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
5823 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
5824 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
5825 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
5826 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
5827 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
5828 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
5829 config/xtensa/xtensa.h:
5830 Do not define, undefine, or mention in comments any of
5831 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
5832 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
5833 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
5834 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
5835 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
5836 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
5837 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
5838 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
5839 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
5841 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5843 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
5844 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
5845 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
5846 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
5847 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
5848 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
5850 * defaults.h (BITS_PER_WORD): Define.
5851 * doc/tm.texi (BITS_PER_WORD): Document default value.
5853 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
5854 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
5855 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
5857 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5859 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
5860 lieu of explicit sizeof/sizeof.
5861 * i386.c (override_options, ix86_init_mmx_sse_builtins,
5862 ix86_expand_builtin): Likewise.
5863 * mips.c (mips_add_gc_roots): Likewise.
5864 * mmix.c (mmix_output_condition): Likewise.
5865 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
5866 altivec_init_builtins): Likewise.
5867 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
5868 * cppexp.c (Nsuff, parse_number): Likewise.
5869 * cppinit.c (builtin_array_end): Likewise.
5870 * gcc.c (n_default_compilers, process_command): Likewise.
5871 * genpreds.c (output_predicate_decls): Likewise.
5872 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
5873 * lcm.c (N_ENTITIES): Likewise.
5874 * stor-layout.c (set_sizetype): Likewise.
5876 2002-03-03 Richard Henderson <rth@redhat.com>
5878 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
5879 for types or labels.
5881 2002-03-03 Richard Henderson <rth@redhat.com>
5883 * c-decl.c (start_decl): Initialized variables are not common.
5885 2002-03-02 Per Bothner <per@bothner.com>
5887 * gcc.c (option_map): Suport new --bootclasspath option.
5888 --CLASSPATH is now just an alias for --classpath.
5890 2002-03-02 Richard Henderson <rth@redhat.com>
5892 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
5893 load if "internal" visibility.
5894 * doc/extend.texi: Document visibility meanings.
5896 2002-03-02 Richard Henderson <rth@redhat.com>
5898 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
5899 to functions as well.
5901 2002-03-02 Richard Henderson <rth@redhat.com>
5903 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
5904 (handle_visibility_attribute): Don't call assemble_visibility.
5905 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
5906 without asmspec. Invoke assemble_alias when needed.
5907 * varasm.c (maybe_assemble_visibility): New.
5908 (assemble_start_function, assemble_variable, assemble_alias): Use it.
5910 2002-03-02 Richard Henderson <rth@redhat.com>
5912 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
5913 invoke ENCODE_SECTION_INFO with first call flag.
5915 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
5916 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
5917 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
5918 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
5919 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
5920 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
5921 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
5922 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
5923 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
5924 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
5925 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
5926 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
5927 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
5928 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
5929 config/mcore/mcore-protos.h, config/mcore/mcore.c,
5930 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
5931 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
5932 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
5933 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
5934 config/sh/sh.h, config/sparc/sparc.h,
5935 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
5936 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
5937 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
5938 FIRST argument. As needed, examine it and do nothing.
5940 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
5941 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
5942 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
5944 * config/arm/t-pe (pe.o): Add dependencies.
5946 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5948 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
5949 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
5950 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
5951 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
5952 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
5953 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
5954 * defaults.h (BITS_PER_UNIT): Define.
5955 * doc/tm.texi (BITS_PER_UNIT): Document default value.
5957 2002-03-02 Kazu Hirata <kazu@hxi.com>
5959 * config/h8300/h8300-protos.h: Add a prototype for
5960 compute_a_shift_length.
5961 * config/h8300/h8300.c (h8300_asm_insn_count): New.
5962 (compute_a_shift_length): Likewise.
5963 (h8300_adjust_insn_length): Do not adjust insn length of shift
5965 * config/h8300/h8300.md (anonymous shift patterns): Use
5966 compute_a_shift_length.
5968 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5970 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
5973 * emit-rtl.c (offset_address): Call update_temp_slot_address.
5975 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5977 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
5978 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
5979 * flags.h (flag_zero_initialized_in_bss): Declare.
5980 * toplev.c (flag_zero_initialized_in_bss): New flag.
5981 (lang_independent_options): Add flag_zero_initialized_in_bss.
5982 * tree.c (initializer_zerop): New function.
5983 * tree.h (initializer_zerop): Declare.
5984 * varasm.c (assemble_variable): If we can emit bss, put zero
5985 initializers in the bss section.
5987 2002-03-02 Alan Modra <amodra@bigpond.net.au>
5989 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
5990 like more than one symbol per .weak directive.
5992 2002-03-01 Richard Henderson <rth@redhat.com>
5994 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
5995 adjust argument_pointer by pretend_args_size.
5996 (ia64_va_start): Adjust va_start address by -pretend_args_size.
5998 2002-03-01 Kazu Hirata <kazu@hxi.com>
6000 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
6002 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
6004 * toplev.c (rest_of_compilation): Delete dead jumptables before
6006 * flow.c (delete_dead_jumptables): Make global.
6007 * rtl.h (delete_dead_jumptables): Declare.
6009 2002-03-01 David Edelsohn <edelsohn@gnu.org>
6011 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
6012 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
6013 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
6015 2002-03-01 Kazu Hirata <kazu@hxi.com>
6017 * config/h8300/h8300-protos.h: Fix formatting.
6018 * config/h8300/h8300.c: Likewise.
6019 * config/h8300/h8300.h: Likewise.
6021 2002-03-01 Kazu Hirata <kazu@hxi.com>
6023 * config/h8300/h8300.c (print_operand): Support 16-bit
6025 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
6027 2002-02-28 Richard Henderson <rth@redhat.com>
6029 * expmed.c (store_bit_field): Prevent generation of CONCATs;
6030 pun complex values as integers; use gen_lowpart instead of
6032 (extract_bit_field): Likewise.
6034 2002-03-01 Alan Modra <amodra@bigpond.net.au>
6035 David Edelsohn <edelsohn@gnu.org>
6037 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
6038 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
6039 (SUPPORTS_WEAK): Likewise.
6040 * output.h (add_weak): Add tree param.
6041 * varasm.c (add_weak): Likewise. Save decl.
6042 (struct weak_syms): Add decl field.
6043 (mark_weak_decls): New function.
6044 (init_varasm_once): ggc_add_root mark_weak_decls.
6045 (assemble_start_function): Use ASM_WEAKEN_DECL.
6046 (assemble_variable): Likewise.
6047 (assemble_alias): Likewise.
6048 (declare_weak): Pass decl to add_weak.
6049 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
6050 (remove_from_pending_weak_list): Declare and define for
6052 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
6053 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
6054 * defaults.h (SUPPORTS_WEAK): Likewise.
6055 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
6056 .weak for code sym. Do emit .size for descriptor sym.
6057 (ASM_DECLARE_FUNCTION_SIZE): Define.
6058 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
6059 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
6060 .lglobl unless TARGET_XCOFF. Formatting fixes.
6061 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
6063 (HANDLE_PRAGMA_WEAK): Remove.
6064 (ASM_WEAKEN_LABEL): Remove.
6065 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
6067 2002-03-01 Jason Merrill <jason@redhat.com>
6069 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
6070 (TARGET_EXPR_CLEANUP): New macro.
6072 2002-02-28 Steve Ellcey <sje@cup.hp.com>
6074 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
6075 to take ptr_extend into account as third type of extension.
6076 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
6077 fields used by SUBREG_PROMOTED_UNSIGNED_P.
6078 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
6079 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
6080 * calls.c (precompute_arguments): Use new macro.
6081 (expand_call): Ditto.
6082 * combine.c (nonzero_bits): Ditto.
6083 (record_promoted_value): Ditto.
6084 * expr.c (store_expr): Ditto.
6085 (expand_expr): Ditto.
6086 * function.c (assign_parms): Ditto.
6088 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
6090 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
6091 override -shared and -shared-libgcc.
6093 2002-02-28 David O'Brien <obrien@FreeBSD.org>
6095 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
6097 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
6100 2002-02-28 Richard Henderson <rth@redhat.com>
6102 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
6103 4 cycle latency from MM producers.
6104 (ia64_internal_sched_reorder): Likewise with pipeline flush.
6106 2002-02-28 Jakub Jelinek <jakub@redhat.com>
6108 * mklibgcc.in: Don't use GNU make extension.
6110 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
6112 * c-parse.in (STATIC): New terminal.
6113 (scspec): New non-terminal. Update productions accordingly.
6114 (program): Remove bogus ifc / end ifc.
6115 (array_declarator): Simplify production using STATIC.
6117 2002-02-28 Jim Meyering <meyering@lucent.com>
6119 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
6120 \a still means TARGET_BELL.
6122 2002-02-28 Richard Henderson <rth@redhat.com>
6124 * haifa-sched.c (sched_emit_insn): New.
6125 (schedule_block): Use last_scheduled_insn to track last insn.
6126 * sched-int.h (sched_emit_insn): Prototype.
6127 * config/ia64/ia64.c (last_issued): Remove.
6128 (ia64_variable_issue): Don't set it.
6129 (nop_cycles_until): Use sched_emit_insn.
6131 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
6133 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
6136 2002-02-28 Kazu Hirata <kazu@hxi.com>
6138 * config/h8300/h8300.c: Fix formatting.
6139 * config/h8300/h8300.h: Likewise.
6141 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
6143 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
6144 which may overwrite the high byte of the frame pointer.
6146 2002-02-28 Bo Thorsen <bo@suse.de>
6148 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
6149 (STARTFILE_SPEC): Add 64 bit files.
6150 (ENDFILE_SPEC): Likewise.
6152 2002-02-28 Jason Merrill <jason@redhat.com>
6154 * c-decl.c (finish_function): Only warn about missing return
6155 statement with -Wreturn-type.
6157 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
6159 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
6161 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
6162 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
6164 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
6166 * basic-block.h (BB_REACHABLE): Renumber.
6167 (BB_DIRTY, BB_NEW): New flags.
6168 (clear_bb_flags): Declare.
6169 (update_life_info_in_dirty_blocks): Declare.
6170 * cfg.c (clear_bb_flags): New function.
6171 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
6172 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
6173 reorder_insns, emit_insn_after): Mark block as dirty.
6174 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
6175 (update_life_info_in_dirty_blocks): New function.
6176 * recog.c (apply_change_group): Dirtify block.
6178 * cse.c (cse_insn): Reorder emitting of jump insn to keep
6180 * gcse.c (delete_null_pointer_checks): Likewise.
6182 * toplev.c (dump_file_index): Move cse2 after bp,
6184 (dump_file_info): Similary.
6185 (rest_of_compilation): Avoid most of CFG rebuilds;
6186 do first if converision after null pointer checks, do cse2
6187 after branch prediction; avoid full liveness rebuild after
6188 initializing subregs.
6189 * invoke.texi (-d options): Document -du, renumber.
6191 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
6192 (notice_new_block): Do not set BB_UPDATE_LIFE.
6193 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
6194 merge_blocks_move_successor_nojumps, merge_blocks,
6195 try_crossjump_to_edge): Likewise.
6196 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
6197 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
6198 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
6199 (merge_of_block): Do not use life_data_ok.
6200 (find_if_case_1): Do not use SET_UPDATE_LIFE.
6201 (if_convert): Use BB_DIRTY mechanizm to update life.
6202 * lcm.c (optimize_mode_switching): Update
6203 update_life_info_in_dirty_blocks
6205 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
6207 * Makefile.in (integrate.o): Update.
6208 * c-decl.c (copy_lang_decl): Rename.
6209 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
6210 * integrate.c: Include langhooks.h.
6211 (copy_decl_for_inlining): Update to use langhook.
6212 * langhooks-def.h (lhd_do_nothing_t,
6213 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
6214 (LANG_HOOKS_INITIALIZER): Update.
6215 * langhooks.c (lhd_do_nothing_t): New.
6216 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
6217 * tree.h (copy_lang_decl): Remove.
6219 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
6221 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
6223 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
6224 POST_DEC, and POST_MODIFY.
6226 2002-02-27 Zack Weinberg <zack@codesourcery.com>
6228 * c-typeck.c (digest_init): Remove unused parameter; all
6231 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
6233 * expmed.c (expand_shift): Correctly test for low part of a
6236 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
6238 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
6239 insn UIDs with insn addresses.
6241 2002-02-27 Zack Weinberg <zack@codesourcery.com>
6243 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
6244 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
6245 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
6246 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
6247 gcc.c, toplev.c: Delete code implementing -traditional mode.
6249 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
6250 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
6251 Document removal of -traditional mode for compilation, and
6252 remove documentation only relevant to that mode.
6254 * config/nextstep.h, config/ptx4.h, config/svr4.h,
6255 config/convex/convex.h, config/d30v/d30v.h,
6256 config/i386/dgux.h, config/i386/osf1elf.h,
6257 config/i386/osfelf.h, config/i386/osfrose.h,
6258 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
6259 config/m68k/hp310.h, config/m88k/dgux.h,
6260 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
6261 config/m88k/m88k.h, config/m88k/openbsd.h,
6262 config/mips/abi64.h, config/mips/osfrose.h,
6263 config/mips/svr4-5.h, config/mips/svr4-t.h,
6264 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
6265 config/stormy16/stormy16.h: Remove all references to
6266 -traditional from target specs. Delete all mention of the
6267 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
6268 delete a couple of commented-out definitions of
6269 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
6272 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
6273 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
6275 2002-02-27 Zack Weinberg <zack@codesourcery.com>
6277 * mklibgcc.in: Don't use \n in a line subject to
6278 interpretation by echo.
6280 2002-02-27 Graham Stott <grahams@redhat.com>
6282 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
6285 * loop.c (prescan_loop): Handle PARALLEL.
6287 * unroll.c (loop_iterations): Return 0 if the add_val for
6290 * final.c (output_operand_lossage): Constify PFX_STR.
6292 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
6294 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
6296 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
6297 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
6299 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
6301 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
6303 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
6305 * cpplex.c (_cpp_lex_token): Handle directives in macro
6307 * cpplib.c (_cpp_handle_directive): Save and restore state
6308 if parsing macro args when entering a directive.
6309 * cppmacro.c (collect_args): No need to handle directives
6311 (enter_macro_context, replace_args): Use the original macro
6312 definition in case it was redefined whilst collecting arguments.
6316 2002-02-26 David Edelsohn <edelsohn@gnu.org>
6318 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
6319 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
6320 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
6322 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
6323 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
6324 (load_toc_v4_PIC_2): Same.
6326 2002-02-26 Alan Modra <amodra@bigpond.net.au>
6328 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
6330 2002-02-26 Richard Henderson <rth@redhat.com>
6332 * config/alpha/alpha.md (ashldi_se): Re-enable.
6334 2002-02-26 Richard Henderson <rth@redhat.com>
6336 * config/alpha/alpha.c (alpha_encode_section_info): Examine
6337 MODULE_LOCAL_P; improve commentary.
6339 2002-02-26 Zack Weinberg <zack@codesourcery.com>
6341 * doc/cpp.texi: Clarify documentation of relationship between
6344 2002-02-26 Kazu Hirata <kazu@hxi.com>
6346 * config/h8300/h8300-protos.h: Update the prototype for
6347 compute_logical_op_length. Add the prototype for
6348 compute_logical_op_cc.
6349 * config/h8300/h8300.c (compute_logical_op_length): Figure out
6351 (compute_logical_op_cc): New.
6352 * config/h8300/h8300.md: Combine all the logical op patterns
6353 in HImode and SImode. Use compute_logical_op_cc.
6355 2002-02-26 Kelley Cook <kelleycook@comcast.net>
6357 * config/i386/i386.c (print_operand): Don't append ATT-style
6358 length suffixs to x87 opcodes when in Intel mode.
6360 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
6362 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
6363 (init_emit_once): Update calls.
6364 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
6365 (init_syntax_once): Prototype.
6367 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
6369 * pa-linux.h (LIB_SPEC): Update definition.
6370 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6372 2002-02-26 Richard Henderson <rth@redhat.com>
6374 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
6375 if we emitted a stop bit.
6377 2002-02-26 Jakub Jelinek <jakub@redhat.com>
6379 * configure.in (libgcc_visibility): Substitute.
6380 * configure: Rebuilt.
6381 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
6382 defined symbols .hidden.
6384 2002-02-26 Jakub Jelinek <jakub@redhat.com>
6386 * attribs.c (c_common_attribute_table): Add visibility.
6387 (handle_visibility_attribute): New function.
6388 * varasm.c (assemble_visibility): New function.
6389 * output.h (assemble_visibility): Add prototype.
6390 * tree.h (MODULE_LOCAL_P): Define.
6391 * crtstuff.c (__dso_handle): Use visibility attribute.
6392 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
6393 for MODULE_LOCAL_P symbols too.
6394 * config/ia64/ia64.c (ia64_encode_section_info): Handle
6395 MODULE_LOCAL_P symbols the same way as local symbols.
6396 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
6397 into .sdata/.sbss by the user.
6398 * doc/extend.texi (Function Attributes): Document visibility
6401 2002-02-26 Jakub Jelinek <jakub@redhat.com>
6404 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
6405 STRING_CST initializer spanning the whole variable without
6407 If expand_expr returned MEM, don't use it.
6409 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
6411 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
6412 generate a die for the lexical block.
6414 2002-02-26 Kazu Hirata <kazu@hxi.com>
6416 * config/h8300/h8300-protos.h: Add a prototype for
6417 compute_logical_op_length.
6418 * config/h8300/h8300.c (compute_logical_op_length): New.
6419 * config/h8300/h8300.md (anonymous logical patterns): Use
6420 compute_logical_op_length for length.
6422 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
6424 * dwarf2out.c (modified_type_die): Do not call type_main_variant
6426 (gen_type_die): Same.
6428 * attribs.c (handle_vector_size_attribute): Set debug information.
6430 2002-02-26 Daniel Egger <degger@fhm.edu>
6432 * config/rs6000/rs6000.md: Swap define_insn attributes to
6433 fix incorrect generation of merge high instructions instead
6436 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
6438 * c-typeck.c (really_start_incremental_init): Use
6439 bitsize_zero_node for vectors.
6441 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
6443 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
6444 ("*set_vrsave_internal"): Same.
6446 2002-02-25 Richard Henderson <rth@redhat.com>
6448 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
6449 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
6451 2002-02-25 Jakub Jelinek <jakub@redhat.com>
6454 * config/i386/i386.c (ix86_return_pops_args): Only pop
6455 fake structure return argument if it was passed on the stack.
6457 2002-02-25 Jason Merrill <jason@redhat.com>
6459 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
6462 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
6464 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
6465 link with shared_name only.
6466 * doc/invoke.texi (Link Options): Document new behavior.
6468 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
6470 * c-typeck.c (push_init_level): Handle vectors.
6472 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
6474 * config/sparc/sparc.c (const64_high_operand): Zero-extend
6475 operands of SPARC_SETHI_P.
6476 (input_operand): Likewise.
6477 (sparc_emit_set_const32): Likewise.
6478 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
6479 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
6480 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
6481 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
6482 (movdi_insn_sp64_vis): Likewise.
6483 (movdi split, movdf split): Use SETHI32.
6484 * doc/md.texi: Document SPARC constraints L, M and N.
6486 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
6488 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
6489 ("*set_vrsave_internal"): use mfspr for Darwin.
6491 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
6492 gen_get_vrsave_internal.
6494 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6496 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
6498 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
6500 * cpplex.c (cpp_interpret_charconst): Get signedness or
6501 otherwise of wide character constants correct.
6502 * cppexp.c (lex): Get signedness of wide charconsts correct.
6504 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6506 * optabs.c (widen_operand): Only call convert_modes for
6507 promoted SUBREG if signedness matches.
6508 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
6510 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
6512 * cpplib.c (glue_header_name): Use local buffer to build up
6515 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
6517 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
6519 2002-02-23 Kazu Hirata <kazu@hxi.com>
6521 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
6522 H8/300[HS] separately.
6523 * config/h8300/h8300.md: Remove the early clobber constraint
6524 from bit field patterns.
6526 2002-02-23 Kazu Hirata <kazu@hxi.com>
6528 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
6530 (mulhisi3): Likewise.
6531 (umulqisi3): Likewise.
6532 (umulhisi3): Likewise.
6534 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
6536 * cppinit.c (output_deps): Correct test for stdout output.
6537 (init_dependency_output): Cure warning.
6539 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6541 * expr.c (store_expr): When converting expression to promoted
6542 equivalent type, allow using SUBREG_REG of TARGET as the target
6543 of the expansion of EXP.
6544 * loop.c (basic_induction_var, case SUBREG): Always look inside.
6545 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
6546 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
6547 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
6548 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
6550 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
6552 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
6553 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
6554 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
6556 2002-02-23 Jakub Jelinek <jakub@redhat.com>
6558 PR optimization/5747
6559 * loop.c (scan_loop): Update reg info if move_movables created new
6562 2002-02-23 David Edelsohn <edelsohn@gnu.org>
6564 * gcc.c (init_gcc_spec): Revert last change.
6566 2002-02-23 David Edelsohn <edelsohn@gnu.org>
6568 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
6569 gpc_reg_operand constraint.
6571 2002-02-23 Alan Modra <amodra@bigpond.net.au>
6573 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
6574 Simplify comparison of `low'.
6575 (add_operand): Fix formatting.
6576 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
6577 (mask_operand): Disallow mask to wrap in 64-bit mode.
6578 (rs6000_stack_info): Remove redundant test setting push_p.
6579 (output_toc): Fix formatting.
6580 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
6581 cc_reg_not_cr0_operand constraint.
6582 (booldi3, boolcdi3 splitters): Same.
6584 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
6586 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
6588 2002-02-22 David Edelsohn <edelsohn@gnu.org>
6590 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
6591 gcc invoked with -shared-libgcc.
6593 2002-02-22 Jakub Jelinek <jakub@redhat.com>
6596 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
6597 decl if any of elements was TREE_USED.
6599 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
6601 * config/sparc/sol2.h: Don't include sys/mman.h.
6602 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
6603 (arith_4096_operand): Don't throw high bits away.
6604 (const64_operand): Take sign extension of CONST_INTs into account.
6605 (const64_high_operand, sparc_emit_set_const32): Likewise.
6606 (GEN_HIGHINT64): Likewise.
6607 (sparc_emit_set_const64_quick1): Likewise.
6608 (const64_is_2insns): Likewise.
6609 (print_operand): Use trunc_int_for_mode for sign extension.
6610 * config/sparc/sparc.h (SMALL_INT32): Likewise.
6611 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
6612 chars. Assume CONST_INT is already properly sign-extended.
6613 (movdi split): Sign-extend each SImode part.
6614 (andsi3 split): Don't mask high bits off, so that result
6615 remains properly sign-extend.
6616 (iorsi3 split): Likewise.
6617 (xorsi3 split): Likewise.
6619 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
6621 * fold-const.c (fold): Fix typo in comments.
6623 2002-02-21 Diego Novillo <dnovillo@redhat.com>
6625 * Makefile.in (langhooks.o): Update dependencies.
6627 2002-02-21 Diego Novillo <dnovillo@redhat.com>
6629 * langhooks.c: Include flags.h.
6631 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
6633 * testsuite/gcc.dg/attr-alwaysinline.c: New.
6635 * c-common.c (c_common_post_options): Set inline trees by
6638 * doc/extend.texi (Function Attributes): Document always_inline
6640 Update documentation about inlining when not optimizing.
6642 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
6644 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
6645 unless DECL_ALWAYS_INLINE.
6647 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
6648 unless DECL_ALWAYS_INLINE.
6649 (c_disregard_inline_limits): Disregard if always_inline set.
6651 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
6652 Disregard if always_inline set.
6653 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
6654 unless DECL_ALWAYS_INLINE.
6656 * attribs.c (handle_always_inline_attribute): New.
6657 (c_common_attribute_table): Add always_inline.
6659 * config/rs6000/altivec.h: Add prototypes for builtins
6660 requiring the always_inline attribute.
6662 2002-02-21 Eric Christopher <echristo@redhat.com>
6664 * expmed.c (store_bit_field): Try to simplify the subreg
6665 before generating a new one when when the mode size of
6666 value is less than maxmode.
6668 2002-02-21 Richard Henderson <rth@redhat.com>
6670 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
6671 than gen_rtx_PLUS to form the sum.
6672 * explow.c (force_reg): Rearrange to not allocate new pseudo
6673 when force_operand returns a register.
6674 * expr.c (expand_assignment): Allow offset_rtx expansion to
6675 return a sum. Do not force addresses into registers.
6676 (expand_expr): Likewise.
6677 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
6678 to canonicalize arithmetic that didn't simpify.
6679 (simplify_plus_minus): New argument force; update
6680 all callers. Don't split CONST unless we can do something with it,
6681 and wouldn't lose the constness of the operands.
6683 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
6684 that we generated earlier.
6686 2002-02-21 Tom Tromey <tromey@redhat.com>
6688 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6689 (output_line_info): Use constant `1', with a long explanatory
6691 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
6693 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
6695 * jump.c (redirect_jump): If old label has no UID, don't try to
6698 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
6700 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
6701 If input is constant, do shifts at compile time.
6703 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
6705 * doc/extend.texi: Fix some more overfull hboxes.
6707 2002-02-21 Jakub Jelinek <jakub@redhat.com>
6709 PR optimization/4994
6710 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
6713 2002-02-21 Jakub Jelinek <jakub@redhat.com>
6716 * expr.h (expand_and): Add mode argument.
6717 * expmed.c (expand_and): Add mode argument.
6718 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
6719 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
6720 * except.c (expand_builtin_extract_return_addr): Likewise.
6721 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
6722 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
6723 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
6724 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
6725 * config/c4x/c4x.md: Use GEN_INT (x) instead of
6726 gen_rtx (CONST_INT, VOIDmode, x).
6728 2002-02-21 Jakub Jelinek <jakub@redhat.com>
6731 * stmt.c (warn_if_unused_value): Move side effects test once more.
6733 2002-02-20 Torbjorn Granlund <tege@swox.com>
6735 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
6736 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
6738 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
6740 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
6741 SUBREG or ZERO_EXTEND.
6743 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
6745 * sh.h (current_function_anonymous_args): Remove.
6746 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
6747 of current_function_varargs and current_function_stdarg is set.
6748 * sh.c (sh_expand_prologue): Check current_function_varargs /
6749 current_function_stdarg / TARGET_SH5 instead of
6750 current_function_anonymous_args.
6752 * sh64.h (TARGET_VERSION): Define.
6754 2002-02-20 David Edelsohn <edelsohn@gnu.org>
6756 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
6757 VRSAVE_REGNO on TARGET_ALTIVEC.
6759 2002-02-20 Alan Modra <amodra@bigpond.net.au>
6761 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
6762 bits of SImode const_int.
6763 (includes_rshift_p): Likewise.
6764 (print_operand): Call mask_operand and mask64_operand with correct
6766 (rs6000_output_function_epilogue): Pad traceback table to word.
6767 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
6768 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
6769 mask64_operand with correct mode.
6770 (FUNCTION_ARG_REGNO_P): Correct parentheses.
6772 2002-02-20 Jakub Jelinek <jakub@redhat.com>
6775 * varasm.c (get_pool_constant_mark): New.
6776 * rtl.h (get_pool_constant_mark): Add prototype.
6777 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
6778 be represented if it has not been output.
6780 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
6782 * combine.c (do_SUBST): Sanity check substitutions of
6783 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
6784 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
6785 CONST_INT into its operand.
6786 (known_cond): Likewise, for ZERO_EXTEND.
6787 * simplify-rtx.c (simplify_unary_operation): Fix condition to
6788 allow for simplification of wide modes. Reject CONST_INTs in
6789 ZERO_EXTEND when their actual mode is not given.
6791 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
6793 * c-decl.c (pushdecl): If no global declaration is found for an
6794 extern declaration in block scope, try a limbo one.
6796 2002-02-20 Jakub Jelinek <jakub@redhat.com>
6799 * c-common.c (pointer_int_sum): Moved from...
6800 * c-typeck.c (pointer_int_sum): ...here.
6801 * c-common.h (pointer_int_sum): Add prototype.
6803 2002-02-20 Jakub Jelinek <jakub@redhat.com>
6806 * c-decl.c (duplicate_decls): Return 0 if issued error about
6809 2002-02-20 Roger Sayle <roger@eyesopen.com>
6810 Jakub Jelinek <jakub@redhat.com>
6813 * tree.c (host_integerp): Ensure that the constant integer is
6814 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
6815 when pos is zero or non-zero respectively. Clarify comment.
6816 * c-format.c (check_format_info_recurse): Fix host_integerp
6817 usage; the pos argument should be zero when assigning to a
6818 signed HOST_WIDE_INT.
6820 2002-02-20 Richard Henderson <rth@redhat.com>
6822 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
6823 of the operand, rather than assuming TImode.
6824 (ix86_expand_binop_builtin): Cope with commutative patterns
6825 using nonimmediate_operand for both operands.
6826 (ix86_expand_timode_binop_builtin): Likewise.
6827 (ix86_expand_store_builtin): Validate operand 1.
6828 (ix86_expand_unop1_builtin): Likewise.
6830 2002-02-20 Philip Blundell <philb@gnu.org>
6833 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
6835 2002-02-20 Richard Henderson <rth@redhat.com>
6838 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
6840 2002-02-20 Tom Tromey <tromey@redhat.com>
6842 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6843 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6844 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6845 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6846 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
6849 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
6851 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
6852 for (const_int 0) in X not just INTVAL.
6854 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
6856 * doc/extend.texi: Avoid or reduce overfull hboxes.
6858 2002-02-20 Diego Novillo <dnovillo@redhat.com>
6860 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
6861 operations if the field does not start at a mode boundary.
6863 2001-02-20 Joel Sherrill <joel@OARcorp.com>
6865 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
6866 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
6867 Also done for -Acpu and -Amachine.
6869 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
6871 * cppinit.c (init_dependency_output): Take deps output file
6872 from -o if none given with -MF. Suppress normal output.
6873 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
6874 * doc/cpp.texi, doc/invoke.texi: Update.
6876 2002-02-19 Zack Weinberg <zack@codesourcery.com>
6878 * toplev.c (output_quoted_string): Write unprintable
6879 characters with octal escapes.
6881 2002-02-19 David Edelsohn <edelsohn@gnu.org>
6883 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
6884 really_call_used[VRSAVE_REGNO] if not Altivec.
6886 2002-02-19 Alan Modra <amodra@bigpond.net.au>
6888 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
6890 (constant_pool_expr_1): Fix formatting.
6891 (rs6000_legitimize_reload_address): Likewise.
6893 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6895 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
6896 now that we have one.
6898 2002-02-19 Zack Weinberg <zack@codesourcery.com>
6900 * tree.h (struct tree_common): Remove aux. Add unused_0 at
6901 end of first block of bitfields (which was only seven bits);
6902 rename dummy to unused_1; remove comment which is no longer true.
6904 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
6906 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
6908 2002-02-19 Philip Blundell <pb@nexus.co.uk>
6911 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
6915 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
6916 arm_is_longcall_p rather than inspecting call-type cookie
6918 (call_value_insn) [TARGET_THUMB]: Likewise.
6920 2002-02-19 Graham Stott <grahams@redhat.com>
6922 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
6924 2002-02-19 David Edelsohn <edelsohn@gnu.org>
6926 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
6927 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
6928 (FP_SAVE_INLINE): Delete.
6930 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
6931 * config/rs6000/eabi.asm: Remove ABI save restore routines.
6932 * config/rs6000/t-ppccomm: Build crtsavres.o.
6933 * config/rs6000/crtsavres.asm: New file.
6935 2002-02-19 Philip Blundell <philb@gnu.org>
6937 * config/arm/arm.c (use_return_insn): Don't reject interrupt
6939 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
6940 (output_return_instruction): Allow interrupt functions to return with
6941 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
6942 (arm_expand_prologue): Subtract 4 before stacking LR in an
6945 2002-02-19 Philip Blundell <pb@nexus.co.uk>
6947 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
6948 decl, not just FUNCTION_DECL.
6949 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
6950 (arm_assemble_integer): Likewise.
6951 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
6954 2002-02-19 matthew green <mrg@eterna.com.au>
6956 * config.gcc (sparc-*-netbsdelf*): Enable target.
6957 (sparc64-*-netbsd*): New target.
6958 * config/sparc/netbsd-elf.h: New file.
6959 * config/sparc/t-netbsd64: New file.
6961 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
6963 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
6965 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
6967 * doc/invoke.texi: explicitly list the style guidelines that
6968 -Weffc++ checks for.
6970 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
6972 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
6974 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
6977 * gcc.c (cpp_unique_options): Treat -o as indicating object file
6978 only if not -E. If -E, pass -o through to the preprocessor.
6980 2002-02-19 Kazu Hirata <kazu@hxi.com>
6982 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
6983 register number with an appropriate macro.
6985 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
6987 * doc/rtl.texi (Constants): Close @code tag.
6989 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
6991 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
6992 ("mmx_uavgv4hi3"): Same.
6993 ("pmulhrwv4hi3"): Same.
6995 * tree-inline.c (walk_tree): Handle vectors.
6997 * c-common.c (constant_expression_warning): Handle vectors.
6998 (overflow_warning): Same.
7000 * sched-deps.c (sched_analyze_2): Handle vectors.
7002 * rtlanal.c (rtx_unstable_p): Handle vectors.
7003 (rtx_varies_p): Same.
7004 (count_occurrences): Same.
7005 (regs_set_between_p): Same.
7006 (modified_between_p): Same.
7007 (modified_in_p): Same.
7008 (volatile_insn_p): Same.
7009 (volatile_refs_p): Same.
7010 (side_effects_p): Same.
7012 (inequality_comparisons_p): Same.
7013 (replace_regs): Same.
7014 (computed_jump_p_1): Same.
7016 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
7018 (inner_mode_array): New.
7019 (copy_rtx): Handle vectors.
7020 (copy_most_rtx): Same.
7021 (rtx_equal_p): Same.
7022 (get_mode_alignment): Adjust for vectors.
7024 * resource.c (mark_referenced_resources): Handle vectors.
7025 (mark_set_resources): Same.
7027 * reload1.c (eliminate_regs): Handle vectors.
7028 (elimination_effects): Same.
7029 (scan_paradoxical_subregs): Same.
7031 * reload.c (subst_reg_equivs): Handle vectors.
7033 * regrename.c (scan_rtx): Handle vectors.
7035 * regclass.c (reg_scan_mark_refs): Handle vectors.
7037 * recog.c (find_single_use_1): Handle vectors.
7039 * local-alloc.c (equiv_init_varies_p): Handle vectors.
7040 (contains_replace_regs): Same.
7041 (memref_referenced_p): Same.
7043 * integrate.c (copy_rtx_and_substitute): Handle vectors.
7044 (subst_constants): Same.
7046 * genattrtab.c (attr_copy_rtx): Handle vectors.
7047 (encode_units_mask): Same.
7048 (clear_struct_flag): Same.
7049 (count_sub_rtxs): Same.
7051 * gcse.c (want_to_gcse_p): Handle vectors.
7052 (oprs_unchanged_p): Same.
7053 (hash_expr_1): Same.
7054 (oprs_not_set_p): Same.
7055 (expr_killed_p): Same.
7056 (compute_transp): Same.
7057 (store_ops_ok): Same.
7059 * function.c (purge_addressof_1): Do not allow paradoxical subregs
7061 (fixup_var_refs_1): Same.
7062 (instantiate_virtual_regs_1): Same.
7064 * fold-const.c (operand_equal_p): Handle vectors.
7066 (rtl_expr_nonnegative_p): Same.
7068 * flow.c (mark_used_regs): Handle vectors.
7070 * df.c (df_uses_record): Handle vectors.
7072 * cselib.c (cselib_subst_to_values): Handle vectors.
7073 (cselib_mem_conflict_p): Same.
7076 * cse.c (canon_reg): Handle vectors.
7078 (cse_process_notes): Same.
7079 (count_reg_usage): Same.
7082 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
7084 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
7086 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
7087 (gen_rtx): Handle CONST_VECTOR.
7088 (gen_const_vector_0): New.
7089 (copy_rtx_if_shared): CONST_VECTORs can be shared.
7090 (reset_used_flags): Same.
7091 (copy_insn_1): Same.
7092 (initializer_constant_valid_p): Handle VECTOR_CST.
7094 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
7096 * doc/rtl.texi (Constants): Document const_vector.
7097 (CONST0_RTX): Update for vectors.
7098 (RTL sharing): Same.
7100 * print-tree.c (print_node): Add case for VECTOR_CST.
7102 * tree.h (TREE_VECTOR_CST_ELTS): New.
7103 (struct tree_vector): New.
7104 (union tree_node): Add vector node.
7105 (build_vector): Add prototype.
7107 * tree.def (VECTOR_CST): New.
7109 * tree.c (build_vector): New.
7111 * expmed.c (make_tree): Handle CONST_VECTOR.
7113 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
7114 (CONST_VECTOR_ELT): New.
7115 (CONST_VECTOR_NUNITS): New.
7117 * machmode.h (GET_MODE_INNER): New.
7118 (DEF_MACHMODE): Accept 8th arg.
7120 * machmode.def: Add 8th argument for vector inner mode.
7121 Add inner vector modes for vectors.
7123 * rtl.def (VEC_CONST): Remove.
7124 (CONST_VECTOR): New.
7126 * expr.c (clear_storage): Allow vectors.
7127 (is_zeros_p): Handle VECTOR_CST.
7129 * varasm.c (output_constant_pool): Handle vectors.
7130 (rtx_const): Add veclo and vechi fields.
7131 (kind): Add RTX_VECTOR.
7132 (decode_rtx_const): Add case for vector.
7134 * config/rs6000/rs6000-protos.h: Add zero_constant.
7136 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
7137 constants. Force easy vector constants into memory.
7138 (easy_vector_constant): New.
7139 (emit_easy_vector_constant): New.
7140 (rs6000_legitimize_reload_address): Do not generate bad reloads on
7143 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
7145 ("altivec_lvxl"): Same.
7146 (altivec_lvebx): Same.
7147 (altivec_lvehx): Same.
7148 (altivec_lvewx): Same.
7149 ("*movv4si_const0"): New.
7150 ("*movv4sf_const0"): New.
7151 ("*movv8hi_const0"): New.
7152 ("*movv16qi_const0"): New.
7154 2002-02-18 Kazu Hirata <kazu@hxi.com>
7156 * config/h8300/h8300.c (notice_update_cc): Use
7159 2002-02-18 Kazu Hirata <kazu@hxi.com>
7161 * config/h8300/h8300.md (divmod patterns): Change the
7162 constraints for operands[1] to register_operand.
7164 2002-02-18 Kazu Hirata <kazu@hxi.com>
7166 * config/h8300/h8300-protos.h: Remove the prototype for
7168 * config/h8300/h8300.c (p_operand): Remove.
7169 * config/h8300/h8300.md: Replace p_operand with
7172 2002-02-18 Philip Blundell <pb@nexus.co.uk>
7174 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
7176 (output_return_instruction): Allow use of LDR to unstack
7177 return addresss even for interrupt handlers or when
7178 interworking. If compiling for ARMv5, use interworking-safe
7179 return instructions by default. Remove duplicated code and
7180 lengthy "strcat" sequences.
7182 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7184 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
7185 (LINK_EH_SPEC): Define.
7186 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
7188 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
7190 * config/s390/s390.c (s390_emit_prologue): Do not set the
7191 frame_related flag for call-clobbered registers.
7193 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
7195 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
7196 (construct_container): Fix handling of SSE operands.
7197 (ix86_expand_builtin): Fix handling of 64bit pointers.
7198 (mmx_maskmovq_rex): New pattern.
7200 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
7202 * regrename.c (kill_set_value): Handle subregs properly.
7204 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
7206 * objc/objc-act.c (handle_impent): Remove leading '*'
7207 from objc_class_name.
7209 2002-02-17 Richard Henderson <rth@redhat.com>
7211 * config/alpha/alpha.c (some_small_symbolic_operand,
7212 some_small_symbolic_operand_1, split_small_symbolic_operand,
7213 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
7214 Handle small SYMBOL_REFs anywhere, not just inside memories.
7215 * config/alpha/alpha-protos.h: Update.
7216 * config/alpha/alpha.h (PREDICATE_CODES): Update.
7217 * config/alpha/alpha.md (small symbolic operand splitter): Update.
7219 2002-02-17 Roland McGrath <roland@frob.com>
7221 * config.gcc (powerpc-*-gnu-gnualtivec*,
7222 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
7223 * config/rs6000/gnu.h: New file.
7224 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
7225 Grok "gnu" in rs6000_abi_name.
7226 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
7227 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
7228 Grok -mcall-gnu analogous to -mcall-linux et al.
7229 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
7230 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
7231 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
7233 2002-02-17 Jakub Jelinek <jakub@redhat.com>
7236 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
7239 2002-02-17 Philipp Thomas <pthomas@suse.de>
7241 * config/cris/cris.h: Undefine STARTFILE_SPEC and
7242 ENDFILE_SPEC before (re)defining them.
7244 2002-02-17 Kazu Hirata <kazu@hxi.com>
7246 * config/h8300/h8300.c: Fix formatting.
7247 * config/h8300/h8300.h: Likewise.
7249 2002-02-17 Philipp Thomas <pthomas@suse.de>
7251 * doc/tm.texi: Explain why empty strings should not be
7252 marked for translation.
7254 2002-02-17 Philipp Thomas <pthomas@suse.de>
7256 * final.c (output_operand_lossage): Changed to accept
7257 printf style arguments. Change calls where necessary.
7258 * output.h (output_operand_lossage): Change declaration
7259 accordingly. Update copyright.
7260 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
7261 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
7262 Update copyright date where necessary.
7264 * config/i386/i386.c (print_operand): Likewise. Remove use of
7267 * config/cris/cris.c (cris_operand_lossage): Likewise.
7268 Rename parameter so that exgettext recognizes it as
7269 translatable message.
7270 (LOSE_AND_RETURN): Rename parameter to msgid.
7272 2002-02-17 Kazu Hirata <kazu@hxi.com>
7274 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
7275 hard coded register number with an appropriate macro.
7276 (HARD_REGNO_MODE_OK): Likewise.
7277 (ARG_POINTER_REGNUM): Likewise.
7278 (STATIC_CHAIN_REGNUM): Likewise.
7279 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
7280 * config/h8300/h8300.md (define_constants): Define more
7283 2002-02-17 Philipp Thomas <pthomas@suse.de>
7285 * config/i386/i386.h: Don't mark empty strings for translation.
7287 2002-02-16 H.J. Lu <hjl@gnu.org>
7289 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
7291 2002-02-16 Zack Weinberg <zack@codesourcery.com>
7293 * cppinit.c (merge_include_chains): Check for brack being
7294 NULL before attempting to merge it with qtail.
7296 2002-02-16 Andrew Cagney <ac131313@redhat.com>
7298 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
7301 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
7303 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
7305 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
7307 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
7308 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
7309 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
7311 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7313 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
7314 now only if !TARGET_FIX.
7315 (*movsi_nt_vms_fix): New pattern.
7317 2002-02-16 Douglas B Rupp <rupp@gnat.com>
7319 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
7320 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
7321 (alpha_sa_mask, alpha_sa_size): Reflect above change.
7322 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
7323 (alpha_start_function, alpha_expand_epilogue): Likewise.
7324 (unicosmk_gen_dsib): Likewise.
7326 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7328 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
7330 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
7332 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
7333 check_and_change_labels, s390_final_chunkify): Delete.
7334 (s390_split_branches, s390_chunkify_pool): New functions.
7335 (s390_function_prologue): Call them.
7337 * config/s390/s390.h (S390_REL_MAX): Delete.
7338 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
7340 * config/s390/s390.md (cjump, icjump, jump): Fix length
7341 attribute calculation.
7344 2002-02-15 David Edelsohn <edelsohn@gnu.org>
7346 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
7347 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
7349 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
7351 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
7352 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
7353 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
7355 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
7357 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
7359 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
7361 * reload.c (find_dummy_reload): Check that an output register
7362 is valid for its mode.
7364 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
7366 * combine.c (known_cond): After replacing the REG of a SUBREG, try
7369 * function.c (assign_parms): Demote promoted argument passed by
7370 transparent reference.
7372 2001-02-14 Joel Sherrill <joel@OARcorp.com>
7374 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
7375 -Acpu() and -Amachine() to eliminate warnings.
7377 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
7379 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
7381 2002-02-14 Kazu Hirata <kazu@hxi.com>
7383 * config/h8300/h8300-protos.h: Update the prototype for
7385 * config/h8300/h8300.c (const_costs): Treat SET as a little
7386 more expensive operation.
7387 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
7388 reference to const_costs.
7390 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
7392 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
7394 2002-02-14 Jakub Jelinek <jakub@redhat.com>
7397 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
7398 use arguments from newtype.
7400 2002-02-13 Eric Christopher <echristo@redhat.com>
7402 * config/mips/mips.c (override_options): Add check for march/mipsX
7403 on the same command line. Fix error message in cpu processing.
7404 Remove architecture and ISA checks.
7406 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
7408 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
7410 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
7412 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
7414 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
7416 ("*movv8hi_internal1"): Same.
7417 ("*movv16qi_internal1"): Same.
7418 ("*movv4sf_internal1"): Same.
7420 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
7421 not push_reload for altivec modes.
7423 2002-02-13 Joel Sherrill <joel@OARcorp.com>
7425 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
7426 all RTEMS targets including removal of #includes from config/*/rtems*.h
7427 file and adding them to tm_file setting. Added xm_defines=POSIX to
7429 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
7430 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
7431 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
7432 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
7433 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
7434 config/m68k/rtemself.h: Ditto.
7435 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
7436 config/mips/rtems64.h: Ditto.
7437 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
7438 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
7440 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
7441 config/sparc/rtemself.h: Ditto.
7442 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
7443 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
7444 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
7446 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
7447 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
7448 target made more similar to i386-elf.
7449 * config/i386/t-rtems-i386: Added soft float support and multilibs.
7450 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
7451 be similar to config/m68k/t-m68kelf.
7452 * gthr-rtems.h: Encapsulate with extern "C" for C++.
7454 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
7456 * regmove.c (kill_value): Handle subregs.
7458 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
7460 * i386.md (mul patterns): Allow memory operand to be first;
7461 add expanders where needed; fix constraints.
7462 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
7463 Allow memory operand to be the first.
7465 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
7468 2002-02-13 Jakub Jelinek <jakub@redhat.com>
7471 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
7474 2002-02-13 Jakub Jelinek <jakub@redhat.com>
7476 PR optimization/5547:
7477 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
7478 all valid IA-32 address modes involving non-scaled %ebx and
7479 GOT/GOTOFF as displacement.
7481 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
7483 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
7484 after emitting ltorg insns.
7486 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
7487 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
7488 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
7489 *abssf2): Fix "op_type" attribute.
7491 2002-02-13 Douglas B Rupp <rupp@gnat.com>
7493 * mkconfig.sh: Avoid using a subshell redirect.
7494 ($output.T): Change to $(output)T.
7495 (ENABLE_NLS): Remove unneeded undef.
7497 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
7498 * config/alpha/x-vms (libsubdir): Define.
7500 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
7501 register frame procedures. Optimize retrieving context.
7503 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
7504 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
7505 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
7507 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7509 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
7510 Make same change as for find_base_value.
7512 2002-02-13 Kazu Hirata <kazu@hxi.com>
7514 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
7515 of QImode and SImode.
7517 2002-02-13 Kazu Hirata <kazu@hxi.com>
7519 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
7520 length computation of movsi.
7521 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
7523 2002-02-13 Kazu Hirata <kazu@hxi.com>
7525 * config/h8300/h8300.md (subqi3): Tighten the predicate for
7526 operands[2] to register_operand.
7528 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
7530 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
7532 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
7534 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
7535 for altivec_lvx* and altivec_stvx*.
7536 ("*movv4si_internal"): Add constraint for loading from GPRs.
7537 ("*movv8hi_internal1"): Same.
7538 ("*movv16qi_internal1"): Same.
7539 ("*movv4sf_internal1"): Same.
7541 * config/rs6000/rs6000.c (altivec_register_operand): New.
7543 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
7544 altivec_register_operand.
7546 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
7548 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
7551 2002-02-13 Stan Shebs <shebs@apple.com>
7553 * c-typeck.c (digest_init): Handle vectors.
7554 (really_start_incremental_init): Same.
7555 (pop_init_level): Same.
7556 (process_init_element): Same.
7558 * varasm.c (output_constant): Same.
7560 * expr.c (clear_storage): Same.
7561 (store_constructor): Same.
7563 2002-02-12 Eric Christopher <echristo@redhat.com>
7565 * explow.c (hard_function_value): Add comment explaining
7566 signed/unsigned comparison.
7568 2002-02-12 Jakub Jelinek <jakub@redhat.com>
7570 * jump.c (never_reached_warning): Add finish argument.
7571 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
7572 real insn after end.
7573 * rtl.h (never_reached_warning): Adjust prototype.
7574 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
7575 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
7576 never_reached_warning.
7578 2002-02-12 Graham Stott <grahams@redhat.com>
7580 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
7582 2002-02-12 Kazu Hirata <kazu@hxi.com>
7584 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
7585 logical shifts on H8/300.
7586 (shift_alg_si): Improve several shifts on H8/300.
7587 (get_shift_alg): Likewise.
7589 2002-02-12 Graham Stott <grahams@redhat.com>
7591 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
7593 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7595 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
7596 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
7598 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
7600 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
7601 non-CONST_INT through default_assemble_integer.
7602 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
7603 <case 8>: Abort for CONST_DOUBLE.
7605 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
7607 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
7609 * config/pa/pa-linux.h (LIB_SPEC): Delete.
7610 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
7612 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
7614 * config/stormy16/stormy16.md (zero_extendqihi2): New.
7616 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
7618 * regrename.c (regrename_optimize): Don't accept a
7619 part-clobbered register if the replaced register is not part
7622 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
7623 take padding into account when computing the argument value.
7625 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
7627 * combine.c (try_combine): Apply substitutions in
7628 CALL_INSN_FUNCTION_USAGE too.
7630 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
7632 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
7633 __builtin_altivec_abs*.
7636 * config/rs6000/rs6000.h (rs6000_builtins): Add
7637 ALTIVEC_BUILTIN_ABS*.
7639 * config/rs6000/altivec.h: Use const char for builtins expecting
7641 (vec_abs): New versions for C and C++.
7644 2002-02-10 Kazu Hirata <kazu@hxi.com>
7646 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
7649 2002-02-10 Kazu Hirata <kazu@hxi.com>
7651 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
7652 constant definition from h8300.md.
7653 (FRAME_POINTER_REGNUM): Likewise.
7654 * config/h8300/h8300.md (define_constants): Add FP_REG.
7656 2002-02-10 Kazu Hirata <kazu@hxi.com>
7658 * config/h8300/h8300.c (print_operand): Remove redundant code.
7660 2002-02-10 Kazu Hirata <kazu@hxi.com>
7662 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
7663 * config/h8300/h8300.c (byte_reg): Make it static.
7665 2002-02-10 Richard Henderson <rth@redhat.com>
7668 * c-typeck.c (incomplete_type_error): Handle flexible array members.
7670 2002-02-10 Richard Henderson <rth@redhat.com>
7673 * tree.c (append_random_chars): Don't abort if main_input_filename
7676 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
7678 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
7680 2002-02-10 Kazu Hirata <kazu@hxi.com>
7682 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
7683 (pushhi1): Likewise.
7685 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
7687 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
7688 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
7690 2002-02-09 David O'Brien <obrien@FreeBSD.org>
7692 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
7694 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
7696 2002-02-09 Kazu Hirata <kazu@hxi.com>
7698 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
7699 a half of an SImode register on H8/300.
7701 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
7703 * i386.md (movdi_2): Add missing '!'.
7705 2002-02-09 Kazu Hirata <kazu@hxi.com>
7707 * config/h8300/h8300.h: Fix formatting. Remove commented-out
7710 2002-02-09 Kazu Hirata <kazu@hxi.com>
7712 * config/h8300/h8300.md (length): Correct the distance valid
7713 for the short branch.
7715 2002-02-09 Kazu Hirata <kazu@hxi.com>
7717 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
7719 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
7721 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
7722 registers in SImode.
7723 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
7726 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
7729 Contribute sh64-elf.
7730 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
7731 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
7732 (sh_cannot_modify_jumps_p): New function.
7733 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
7734 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
7735 (sh_ms_bitfield_layout_p): New function.
7736 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
7737 Zack Weinberg <zack@codesourcery.com>
7738 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
7739 expand_simple_binop instead of expand_binop.
7740 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
7741 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
7742 use of .quad and .uaquad.
7743 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
7744 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
7745 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7746 * config/sh/sh.md (movdi_const, movdi_const_32bit,
7747 movdi_const_16bit): Make sure all CONSTs have modes.
7748 (sym2PIC): Ditto, but by adjusting all callers.
7749 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
7750 if the prologue calls the SHmedia argument decoder or register
7752 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7753 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
7754 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
7755 (sh_expand_epilogue): Don't emit USE of return target register.
7756 (prepare_move_operands): Legitimize DImode PIC addresses.
7757 (sh_media_register_for_return): Skip tr0, used to initialize the
7759 (sh_expand_prologue): Remove explicit USE of return register.
7760 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
7761 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
7762 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
7763 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
7764 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
7766 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
7767 (MOVI_SHORI_BASE_OPERAND_P): New.
7768 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
7769 (EXTRA_CONSTRAINT_T): Define in terms of them.
7770 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
7771 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
7772 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
7773 alternatives supporting TARGET_REGS.
7774 (UNSPEC_GOTPLT): New constant.
7775 (movdi split): Move incrementing of LABEL_NUSES...
7776 (movdi_const, movdi_const_32bit): Here. Use
7777 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
7778 (movdi_const_16bit): New.
7779 (call, call_value) [flag_pic]: Use GOTPLT.
7780 (call_pop, call_value_pop): New expands.
7781 (call_pop_compact, call_pop_rettramp): New insns.
7782 (call_value_pop_compact, call_value_pop_rettramp): New insns.
7783 (sibcall) [flag_pic]: Use GOT.
7784 (builtint_setjmp_receiver): Remove bogus, unused expand.
7785 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
7786 (*pt, *ptb, ptrel): New insns.
7787 (sym2GOT): Handle DImode GOT.
7788 (sym2GOTPLT, symGOTPLT2reg): New expands.
7789 (sym2PIC): New expand.
7790 (shcompact_return_tramp): Use GOTPLT to return trampoline.
7791 (shcompact_return_tramp_i): Use return register explicitly.
7792 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
7793 disable flag_reorder_blocks.
7794 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
7795 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
7796 clobbers, for clarity.
7797 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
7798 restoring of r0 in macl as MAYBE_DEAD.
7799 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
7800 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
7801 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
7802 alter_subreg all over.
7803 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
7804 reload, instead of emitting instructions that would require
7806 (casesi_load_media): Add missing modes.
7807 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
7808 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
7809 as used if the argument decoder is called.
7810 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
7811 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
7812 Pmode, then extend it to DImode if necessary.
7813 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
7814 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
7815 constants in FPU-enabled SHmedia, let them be loaded from memory.
7816 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
7817 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
7818 Adjust whitespace in assembly output templates.
7819 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
7820 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
7821 mode of if_then_else.
7822 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
7823 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
7825 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
7826 Joern Rennecke <amylaar@redhat.com>
7827 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
7828 (SUBTARGET_CPP_PTR_SPEC): New.
7829 (SUBTARGET_CPP_SPEC): Remove.
7830 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
7831 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
7832 Fix typo in previous checkin.
7833 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
7834 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
7835 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
7836 Alexandre Oliva <aoliva@redhat.com>
7837 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
7838 what single FP register can hold for SHmedia target.
7839 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
7840 Alexandre Oliva <aoliva@redhat.com>
7841 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
7842 Do not split into SUBREG.
7843 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
7844 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
7845 and added new functions as specified in SH5 ABI r9.
7846 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
7847 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
7849 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
7850 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
7851 gen_consttable_4 and gen_consttable_8. Emit multiple labels
7852 and consttable_window_ends.
7853 2001-06-03 Graham Stott <grahams@redhat,com>
7854 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
7855 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
7856 * config/sh/sh.c (print_operand): Handle floating-point pair,
7857 vector and matrix registers.
7858 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
7859 vector modes into account.
7860 * config/sh/sh.md (movv2sf): Split move between registers into
7862 (movv4sf, movv16sf): Introduce insns that get split only after
7864 * config/sh/shmedia.h: Fix Copyright dates.
7865 * config/sh/ushmedia.h: Likewise. Move loop counter
7866 declarations into conditionals that uses them.
7867 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
7869 * config/sh/sshmedia.h: Fix Copyright dates.
7870 (sh_media_PUTCFG): Fix constraints.
7871 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
7872 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
7873 ptrmemfunc_vbit_in_delta for SH5.
7874 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
7875 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
7876 * invoke.texi: Likewise.
7877 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
7878 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
7879 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
7880 GCC_pop_shmedia_regs_nofpu): New global symbols.
7881 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
7882 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
7883 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
7884 compact function with nonlocal labels.
7885 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
7886 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
7887 (initial_elimination_offset): Account for their stack space.
7888 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
7889 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
7890 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
7891 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
7892 least one of the operands to be a register.
7893 (movv2sf): Likewise. Renamed to movv2sf_i.
7894 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
7895 prepare_move_operands() before emitting SHmedia insns.
7896 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
7897 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
7898 Don't save nor initialize r12. Don't mis-align the stack.
7899 Pad the code with a nop.
7900 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
7902 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
7903 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
7904 [__SHMEDIA__]: Implement.
7905 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
7906 * config/sh/sh.md: Set latency of `pt' closer to reality.
7907 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
7908 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
7909 Set move, load and store type attributes.
7910 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
7911 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
7913 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
7914 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
7915 * config/sh/sh.c (sh_media_register_for_return): New function.
7916 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
7917 branch-target register.
7918 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
7919 * config/sh/sh.md (return_media_i): Use any call-clobbered
7920 branch-target register.
7921 (return_media): If r18 wasn't copied in the prologue, copy it
7923 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
7924 Clear class FP0_REGS.
7925 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
7927 2001-03-08 DJ Delorie <dj@redhat.com>
7928 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
7929 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
7930 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
7931 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
7932 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
7933 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
7934 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
7935 return value correctly for call_cookie.
7936 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
7937 * config/sh/crt1.asm (start): Modified so as to call
7938 ___setup_argv_and_call_main.
7939 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
7940 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
7942 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
7943 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
7944 (STRIP_NAME_ENCODING): Use it.
7945 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
7946 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
7947 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
7948 prepare_scc_operands().
7949 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
7950 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
7951 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
7952 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
7953 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
7954 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
7955 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
7956 used in shcompact_incoming_args.
7957 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
7959 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
7961 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
7963 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
7964 Simplify. Adjust. Add sanity check.
7965 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
7967 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
7969 (udivsi3, divsi3): Use them.
7970 (force_mode_for_call): New insn.
7971 (call, call_value, sibcall_value): Emit it before SHcompact
7973 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
7974 * config/sh/sh.md (call, call_value, sibcall): Make sure the
7975 call cookie is non-NULL before taking its value.
7976 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
7977 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
7978 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
7979 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
7981 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
7982 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
7983 temporary for stack adjusts. Use MACL and MACH to pass
7984 arguments to shcompact_incoming_args.
7985 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
7987 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
7988 (nested_trampoline): Load static chain address into r1.
7989 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
7990 2001-01-07 Alexandre Oliva <aoliva@redhat.com
7991 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
7992 fp_arith_reg_operand().
7993 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
7994 * config/sh/sh.md (casesi): Sign-extend the first two operands,
7995 and use signed compares for them.
7996 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
7997 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
7998 ones properly aligned.
7999 (find_barrier): Account for extra alignment needed for 8-byte wide
8001 (machine_dependent_reorg): Require a label for the second 4-byte
8002 constant after an 8-byte one.
8003 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
8005 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
8006 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
8007 last_float when switching float modes.
8008 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
8009 auto-increment for general-purpose registers.
8010 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
8012 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
8014 * config/sh/sh.c (sh_builtin_saveregs): Support using all
8015 registers for varargs.
8016 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
8017 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
8018 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
8019 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
8020 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
8021 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
8022 call_cookie accordingly.
8023 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
8024 (SHCOMPACT_BYREF): Likewise.
8025 (SHCOMPACT_FORCE_ON_STACK): New macro.
8026 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
8027 (sh_builtin_saveregs): Likewise.
8028 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8029 shcompact_incoming_args): Use new shift values. Support
8030 sequences of consecutive and non-consecutive pushes/pops.
8031 * config/sh/sh.md (return): Don't explicitly use PR_REG.
8032 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
8033 * config/sh/sh.h (TEXT_SECTION): Define.
8034 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
8035 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
8036 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
8037 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
8038 return values on FPU-enabled SHmedia.
8039 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
8040 FPU-enabled SHmedia.
8041 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
8042 value is returned in a non-FP reg and is not returned by
8044 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
8046 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
8047 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
8048 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
8049 quad-aligned to be passed by callee-copy reference.
8050 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
8051 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
8052 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
8053 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
8054 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
8055 copying low-numbered FP regs to r7 and r8.
8056 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
8057 FP regs to general-purpose regs only if the copy was passed on the
8059 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
8060 copying FP reg to r9.
8061 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
8062 copy FP regs to general-purpose regs only in outgoing calls.
8063 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
8064 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
8066 * config/sh/sh.h (struct sh_args): Document all fields.
8067 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
8068 passed partially on the stack should not consider making
8070 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
8071 stack_regs only for incoming calls. When passing FP args,
8072 make sure there are FP regs available before modifying
8074 (SHCOMPACT_BYREF): Pass double args in general-purpose
8075 registers by reference.
8076 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
8077 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
8078 attempt to generate sibcalls if the caller got any arguments
8080 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
8081 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
8082 to 8-byte boundaries.
8083 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
8084 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
8085 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
8086 stored in the stack.
8087 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
8088 for the offsets to have the ISA bit set.
8089 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
8090 invocation. Use beq instead of bgt to mark end of sequence of
8092 (shcompact_incoming_args): Fix store of r2. Use beq instead of
8093 bgt to mark end of sequence of stores.
8094 * config/sh/sh.c (arith_operand): Don't check whether
8095 CONST_OK_FOR_J for now.
8096 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
8097 instead of long for conversion.
8098 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
8099 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
8100 before passing it to fprintf.
8101 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
8102 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
8103 Call set_fpscr before reading/writing SR.
8104 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
8106 * config/sh/lib1funcs.asm: Add `.align 2' directives before
8108 (FMOVD_WORKS): Define on SH5 with FPU.
8109 (set_fpscr): Define on SH5. Remove separate _fpscr_values
8111 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
8113 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
8114 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
8116 (ia_main_table): Ditto.
8117 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
8118 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8119 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
8120 the definitions from sh.h.
8121 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
8123 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
8124 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
8125 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
8126 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
8127 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
8128 Increment LABEL_NUSES.
8130 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
8132 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
8134 * config/sh/elf.h (SIZE_TYPE): Likewise.
8135 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
8136 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8137 shcompact_incoming_args): Load switch table addresses using
8139 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
8140 (NO_BUILTIN_SIZE_TYPE): Define.
8141 (SIZE_TYPE): Don't define.
8142 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
8143 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
8144 definition of __SH5__=32 for -m5-compact-nofpu.
8145 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
8147 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
8148 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
8149 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
8150 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
8151 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
8152 (INSN_LENGTH_ALIGNMENT): Likewise.
8153 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
8154 * config/sh/sh.md (call, call_value, sibcall): Simplify
8155 copying of non-branch-target register.
8156 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
8157 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
8158 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
8159 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
8160 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
8161 floating-point values as structs.
8162 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
8163 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
8164 general-purpose register.
8165 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
8166 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
8167 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
8168 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
8169 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
8170 (ENCODE_SECTION_INFO): Enclose variables and constants in
8172 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
8173 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
8174 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
8175 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
8176 only for LABEL_REFs. For SYMBOL_REFs, prepend
8177 SH_DATALABEL_ENCODING to the symbol name.
8178 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
8180 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
8181 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
8183 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
8184 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
8185 (DATALABEL_REF_P): Don't require CONST.
8186 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
8188 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
8189 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
8191 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
8192 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
8193 Use shallow_copy_rtx and PUT_MODE to change the mode of
8194 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
8195 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
8196 on SHmedia using GENERAL_REGs.
8197 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
8198 bltu_media_i): Fix reversion of conditions.
8199 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
8200 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
8201 * config/sh/sh.c (output_far_jump): Save r13 in macl.
8202 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
8203 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
8204 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
8205 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
8206 (GCC_nested_trampoline): Likewise.
8207 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
8208 * config/sh/sh.c (gen_datalabel_ref): Define.
8209 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
8210 (INITIALIZE_TRAMPOLINE): Likewise.
8211 (TRAMPOLINE_ADJUST_ADDRESS): Define.
8212 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
8213 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
8214 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
8215 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
8216 (ic_invalidate): Adjust for SH5.
8217 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
8218 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
8220 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
8221 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
8222 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
8223 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
8224 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
8225 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
8226 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
8227 * config/sh/sh.c (target_reg_operand): Match only target-branch
8228 registers and pseudos that aren't virtual registers.
8229 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
8230 Copy operands that don't match target_reg_operand to pseudos.
8231 (call_media, call_value_media, sibcall_media): Use
8232 target_reg_operand instead of target_operand.
8233 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
8234 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
8235 * config/sh/sh.c (target_reg_operand): Match hardware registers
8236 other than branch-target registers.
8237 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
8238 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
8239 (fpscr_values) [SH5 == 32]: Define.
8240 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
8241 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
8242 Handle function addresses coming in SUBREGs.
8243 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
8244 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8245 shcompact_return_trampoline): Use datalabel where appropriate.
8246 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
8247 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
8248 general-purpose register to copy one branch-target register to
8250 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
8251 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
8252 SYMBOL_REFs with VOIDmode.
8253 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
8254 bltu_media_i): New insns.
8255 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
8256 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
8257 (INIT_CUMULATIVE_ARGS): Likewise.
8258 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
8259 * machmode.def (V16SFmode): New mode.
8260 * c-common.c (type_for_mode): Support V2SF and V16SF.
8261 * tree.c (build_common_tree_nodes_2): Likewise.
8262 * tree.h (tree_index): Likewise.
8263 * calls.c (emit_call_1): Take args_so_far. Adjust all
8264 callers. Introduce CALL_POPS_ARGS.
8265 * tm.texi (CALL_POPS_ARGS): Document.
8266 * config/sh/crt1.asm: Implement in SHmedia mode.
8267 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
8268 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
8269 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
8270 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
8271 Implement divsi and udivsi in SHmedia mode. Introduce
8272 SHcompact trampolines.
8273 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
8275 (regno_reg_class): Rewrite.
8276 (fp_reg_names): Remove.
8277 (sh_register_names, sh_additional_register_names): New.
8278 (print_operand): Added `u'. Support SUBREGs in addresses.
8279 Add parentheses around shifted CONSTs.
8280 (output_file_start): Output .mode and .abi directives.
8281 (shiftcosts, addsubcosts, multcosts): Adjust.
8282 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
8283 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
8284 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
8285 bytes, not registers. Take into account the need for the
8286 SHcompact incoming args trampoline. Adjust all callers.
8287 (sh_expand_prologue): Take stack_regs into account. Call
8288 incoming args trampoline. Keep stack aligned as per SH5 ABI.
8289 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
8290 stack aligned as per SH5 ABI.
8291 (sh_builtin_saveregs): Support SH5 ABI.
8292 (sh_build_va_list, sh_va_start): Likewise.
8293 (initial_elimination_offset): Take alignment into account.
8294 Compute location of PR according to the SH5 stack frame.
8295 (arith_reg_operand): Reject branch-target registers.
8296 (shmedia_6bit_operand): New.
8297 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
8298 (target_reg_operand): Match DImode only. Accept SUBREGs.
8299 (target_operand): New.
8300 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
8301 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
8302 SIBCALL_REGS for SHmedia.
8303 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
8304 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
8305 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
8306 (TARGET_SWITCHES): New SH5 flags.
8307 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
8308 VALID_REGISTER_P to disable unsupported registers.
8309 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
8310 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
8311 (FUNCTION_ARG_PADDING): Define.
8312 (FASTEST_ALIGNMENT): Adjust.
8313 (SH_REGISTER_NAMES_INITIALIZER): New.
8314 (sh_register_names): Declare.
8315 (DEBUG_REGISTER_NAMES): Define.
8316 (REGISTER_NAMES): Define based on sh_register_names.
8317 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
8318 (sh_additional_register_names): Declare.
8319 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
8320 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
8321 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
8322 (REGISTER_NATURAL_MODE): Define.
8323 (FIRST_PSEUDO_REGISTER): Adjust.
8324 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
8325 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
8326 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
8327 (VECTOR_MODE_SUPPORTED_P): Define.
8328 (REG_CLASS_CONTENTS): Adjust.
8329 (SMALL_REGISTER_CLASSES): Adjust.
8330 (REG_ALLOC_ORDER): Adjust.
8331 (INDEX_REG_CLASS): Adjust.
8332 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
8333 (CONST_OK_FOR_LETTER_P): Adjust.
8334 (PREFERRED_RELOAD_CLASS): Adjust.
8335 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
8336 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
8337 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
8338 (FIRST_FP_PARM_REG): Adjust.
8339 (CALL_POPS_ARGS): Define.
8340 (FUNCTION_ARG_REGNO_P): Adjust.
8341 (struct sh_args): New fields.
8342 (GET_SH_ARG_CLASS): Adjust.
8343 (INIT_CUMULATIVE_ARGS): Adjust.
8344 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
8345 (FUNCTION_ARG_ADVANCE): Adjust.
8346 (FUNCTION_ARG): Adjust.
8347 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
8348 (FUNCTION_ARG_CALLEE_COPIES): Define.
8349 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
8350 (STRICT_ARGUMENT_NAMING): Define.
8351 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
8352 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
8353 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
8354 (SETUP_INCOMING_VARARGS): Adjust.
8355 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
8356 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
8357 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
8358 (SUBREG_OK_FOR_INDEX_P): Adjust.
8359 (EXTRA_CONSTRAINT_S): Update.
8360 (EXTRA_CONSTRAINT_T): New.
8361 (EXTRA_CONSTRAINT): Adjust.
8362 (GO_IF_LEGITIMATE_INDEX): Adjust.
8363 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
8364 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
8366 (MAX_MOVE_MAX): Define.
8368 (CONST_COSTS): Adjust.
8369 (REGISTER_MOVE_COST): Adjust.
8370 (BRANCH_COST): Adjust.
8371 (TEXT_SECTION_ASM_OP): Adjust.
8372 (DBX_REGISTER_NUMBER): Adjust.
8373 (ASM_OUTPUT_DOUBLE_INT): New.
8374 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
8375 (PREDICATE_CODES): Adjust.
8376 (PROMOTE_MODE): Adjust.
8377 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
8378 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
8379 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
8380 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
8381 (DR0_REG, DR2_REG, DR4_REG): Renumber.
8382 (TR0_REG, TR1_REG, TR2_REG): New.
8383 (XD0_REG): Renumber.
8384 (UNSPEC_COMPACT_ARGS): New.
8385 (type): Added pt and ptabs.
8386 (length): Default to 4 on SHmedia. Default pt length to 12
8387 and 20 on SHmedia32 and SHmedia64, respectively.
8388 (pt): New function unit.
8389 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
8390 Add whitespace between operands of SHmedia instructions.
8392 (adddi3_media, addsi3_media): Adjust constraints.
8393 (subsi3) [SHmedia]: Force operand 1 into a register.
8394 (udivsi3_i1_media, udivsi3_i4_media): New.
8395 (udivsi3): Support SHmedia.
8396 (divsi3_i1_media, divsi3_i4_media): New.
8397 (divsi3): Support SHmedia.
8398 (anddi3, iordi3, xordi3): Adjust constraints.
8399 (zero_extendhidi2, zero_extendqidi2): New.
8400 (extendsidi2, extendhidi2, extendqidi2): New.
8401 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
8402 (pop_e, pop_fpul, pop_4): Likewise.
8403 (movsi_media): Support FP and BT registers.
8404 (movsi_media_nofpu): New. Adjust splits to DImode.
8405 (lduw, ldub): Renamed to zero_extend* above.
8406 (movqi_media): Fix typo.
8407 (movdi_media): Support FP and BT registers.
8408 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
8409 (movdi_const_32bit): New.
8410 (shori_media): Require immediate operand. Use `u' for output.
8411 (movdf_media, movsf_media): Simplified.
8412 (movdf_media_nofpu, movsf_media_nofpu): New.
8413 (movdf, movsf): Adjust
8414 (movv2sf, movv2sf, movv16sf): New.
8415 (beq_media, beq_media_i): Adjust constraints. Don't use
8416 scratch BT register.
8417 (bne_media, bne_media_i): Likewise.
8418 (bgt_media, bgt_media_i): Likewise.
8419 (bge_media, bge_media_i): Likewise.
8420 (bgtu_media, bgtu_media_i): Likewise.
8421 (bgeu_media, bgeu_media_i): Likewise.
8422 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
8423 bunordered): Emit jump insn. Force operands to registers when
8425 (jump_media, jump): Simplify.
8426 (call_compact, call_compact_rettramp): New.
8427 (call_value_compact, call_value_compact_rettramp): New.
8428 (call_media, call_value_media): Simplify.
8429 (sibcall_compact, sibcall_media): New.
8430 (call, call_value): Adjust for SHmedia and SHcompact.
8431 (sibcall, sibcall_value, untyped_call): Likewise.
8432 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
8433 (indirect_jump): Adjust for SHmedia.
8434 (casesi_jump_media): New.
8435 (nop): Re-enable for SHmedia.
8436 (call_site): Restrict to SH1.
8437 (casesi): Adjust for SHmedia.
8438 (casesi_shift_media, casesi_load_media): New.
8439 (return): Explicitly use PR register. Call return trampoline
8441 (return_i): Explicitly use PR register.
8442 (shcompact_return_tramp, shcompact_return_tramp_i): New.
8443 (return_media): Adjust.
8444 (shcompact_incoming_args): New.
8446 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
8447 (movstrsi): Disable on SH5.
8448 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
8449 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
8450 (subsf3, subsf3_media): Likewise.
8451 (mulsf3, mulsf3_media, mac_media): Likewise.
8452 (divsf3, divsf3_media): Likewise.
8453 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
8454 (floatsisf2, fux_truncsfsi2): Likewise.
8455 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
8457 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
8458 (cmpunsf_media, cmpsf): Likewise.
8459 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
8460 (abssf2, abssf2_media): Likewise.
8461 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
8462 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
8463 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
8464 (floatsidf2, fix_truncdfsi2): Likewise.
8465 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
8467 (cmpeqdf_media, cmpgtdf_media): Likewise.
8468 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
8469 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
8470 (absdf2, absdf2_media): Likewise.
8471 (extendsfdf2, extendsfdf2_media): Likewise.
8472 (truncsfdf2, truncsfdf2_media): Likewise.
8473 * config/sh/sh64.h: New file.
8474 * config/sh/t-sh64: New file.
8475 * config/sh/shmedia.h: New file.
8476 * config/sh/ushmedia.h: New file.
8477 * config/sh/sshmedia.h: New file.
8478 * configure.in: Added sh64-*-elf.
8479 * configure: Rebuilt.
8480 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
8481 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
8482 (reg_class_from_letter): Use `b' for TARGET_REGS.
8483 (print_operand): Support `%M', `%m', `AND' and
8484 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
8485 (andcosts): Adjust for SHmedia.
8486 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
8488 (target_reg_operand): New function.
8489 * config/sh/sh-protos.h (target_reg_operand): Declare.
8490 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
8491 FP registers on SH5.
8492 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
8494 (TARGET_REGISTER_P): New macro.
8495 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
8496 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
8497 (EXTRA_CONSTRAINT_S): New macro.
8498 (EXTRA_CONSTRAINT): Adjust.
8499 (FLOAT_TYPE_SIZE): Define to 32.
8500 (Pmode): DImode on SHmedia.
8501 (CONST_COSTS): Adjust for SHmedia literals.
8502 (PREDICATE_CODES): Added target_reg_operand.
8503 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
8504 * config/sh/sh.md: Remove all attrs from SHmedia insns.
8505 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
8506 (cmpdi): Accept SHmedia.
8507 (movdicc_false, movdicc_true): New insns.
8508 (movdicc): New expand.
8509 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
8511 (addsi3_media): Match `S' constraint.
8512 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
8513 (negdi2): Expand for SHmedia.
8514 (one_cmpldi2): New expand.
8515 (zero_extendsidi2): Change from expand to insn.
8516 (extendsidi2): Add constraints.
8517 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
8518 LD/ST address. Fix SI immediate loading split.
8519 (movhi_media, movqi_media, lduw, ldub): New insns.
8520 (movhi, movqi): Accept SHmedia.
8521 (shori_media, movdi_media): Relax input constraints. Split
8523 (movdf_media, movsf_media): New insn. New split to movdi.
8524 (movdf, movsf): Match on SHmedia.
8525 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
8526 bgeu_media): New insns and splits. New insns with `_i' suffix.
8527 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
8528 (bunordered): New expand.
8529 (jump_compact): Renamed from `jump'.
8530 (jump_media): New insn.
8532 (call_media, call_value_media): New insns.
8533 (call, call_value): Adjust.
8534 (indirect_jump_compact): Renamed from `indirect_jump'.
8535 (indirect_jump_media): New insn.
8536 (indirect_jump): New expand.
8537 (untyped_call, return): Accept SHmedia.
8538 (return_media): New insn.
8539 (prologue, epilogue, blockage): Accept SHmedia.
8540 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
8541 (sunordered): New expand.
8542 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
8543 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
8544 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
8545 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
8546 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
8547 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
8548 abssf2_media): New insns.
8549 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
8550 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
8551 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
8552 floatdidf2, floatsidf2_media, fix_truncdfdi2,
8553 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
8554 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
8555 absdf2_media): New insns.
8556 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
8557 (extendsfdf2_media, truncdfsf2_media): New insns.
8558 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
8559 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
8560 * config/sh/sh.h (CONST_OK_FOR_J): Document.
8561 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
8562 * config/sh/sh.md (adddi3): New expand.
8563 (adddi3_media, adddi3z_media): New insns.
8564 (adddi3_compact): Renamed from adddi3.
8565 (addsi3_media): Use add.l r63 to add constant zero.
8566 (subdi3): New expand.
8567 (subdi3_media): New insn.
8568 (subdi3_compact): Renamed from subdi3.
8569 (mulsidi3): New expand.
8570 (mulsidi3_media): New insn.
8571 (mulsidi3_compact): Renamed from mulsidi3.
8572 (umulsidi3): New expand.
8573 (umulsidi3_media): New insn.
8574 (umulsidi3_compact): Renamed from umulsidi3.
8575 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
8576 (ashlsi3, ashrsi3, lshrsi3): Use them.
8577 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
8578 (ashldi3, ashrdi3, lshrdi3): Use them.
8579 (zero_extendsidi2): New expand.
8580 (extendsidi2): New insn.
8581 (movsi_media): New insn. Split to movdi to load constants.
8582 (movsi): Enable for shmedia.
8583 (movdi_media): New insn. Use shori_media to load wide constants.
8584 (short_media): New insn.
8585 (movdi): Enable for shmedia.
8586 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
8587 * config/sh/sh.h (CPP_SPEC): Added `m5'.
8588 (SUBTARGET_CPP_SPEC): Added `!m5'.
8589 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
8590 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
8591 to all other SH variants.
8592 (TARGET_DEFAULT): Set to SH1_BIT.
8593 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
8594 (BITS_PER_WORD): Raise to 64 on shmedia.
8595 (MAX_BITS_PER_WORD): Change to 64.
8596 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
8597 (INT_TYPE_SIZE): Keep as 32.
8598 (UNITS_PER_WORD): Raise to 8 on shmedia.
8599 (MIN_UNITS_PER_WORD): Keep as 4.
8600 (POINTER_SIZE): Raise to 64 on shmedia.
8601 (CONST_OK_FOR_J): New macro.
8602 (CONST_OK_FOR_LETTER_P): Use it.
8603 (processor_type): Add PROCESSOR_SH5.
8604 * config/sh/sh.md: Conditionalize all expands, insns and
8605 splits to TARGET_SH1.
8607 (addsi3_compact): Renamed from...
8608 (addsi3): Now an expand.
8609 (addsi3_media, subsi3_media): New insns.
8610 (subsi3): Don't negate constants with SHmedia.
8612 * hooks.c: New file.
8613 * hooks.h: New file.
8614 * Makefile.in (HOOKS_H): New.
8615 (TARGET_DEF_H): Added $(HOOKS_H).
8616 (OBJS): Added hooks.o.
8617 (cfgcleanup.o, bb-reorder.o): Added target.h.
8618 (hooks.o): Added dependencies.
8619 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
8620 (TARGET_INITIALIZER): this.
8621 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
8622 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
8623 * bb-reorder.c: Include target.h.
8624 (reorder_basic_blocks): Skip if cannot modify jumps.
8625 * cfgcleanup.c: Include target.h.
8626 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
8628 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8630 * config/mips/mips.md (casesi_internal, casesi_internal_di):
8631 Protect jump delay slot instructions with .set noreorder and
8634 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8636 * config/mips/mips.md (casesi_internal_di): Calculate
8637 the index into the target offset table correctly.
8639 2002-02-08 Richard Henderson <rth@redhat.com>
8641 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
8642 * final.c (output_addr_const): Accept and discard SUBREG.
8643 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
8644 mark them unknown instead.
8645 (simplify_subtraction): Handle RTX_UNKNOWN.
8646 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
8648 2002-02-08 David Edelsohn <edelsohn@gnu.org>
8650 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
8652 2002-02-08 Richard Henderson <rth@redhat.com>
8654 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
8656 2002-02-08 Andreas Jaeger <aj@suse.de>
8658 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
8659 * config/i386/t-linux64: New file.
8661 2002-02-08 Jakub Jelinek <jakub@redhat.com>
8663 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
8664 * c-parse.in (compstmt): Clear last_expr_type.
8666 2002-02-07 Richard Henderson <rth@redhat.com>
8668 * loop.c (strength_reduce): Sink final_value when not
8671 2002-02-07 David O'Brien <obrien@FreeBSD.org>
8673 * config/sparc/freebsd.h: Fix mismatched spec {.
8675 2002-02-07 Richard Henderson <rth@redhat.com>
8677 * cfgrtl.c: Include recog.h and insn-config.h.
8678 (keep_with_call_p): Fix general_operand invocation.
8679 * Makefile.in (cfgrtl.o): Update dependencies.
8681 2002-02-07 Kazu Hirata <kazu@hxi.com>
8683 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
8684 comment. Accept HImode only if TARGET_H8300.
8686 2002-02-07 Eric Christopher <echristo@redhat.com>
8688 * config/mips/crtn.asm: Cleanup #ifdefs.
8690 2002-02-07 Eric Christopher <echristo@redhat.com>
8692 * config/mips/crti.asm: Add changes for mips16. mips16 uses
8693 register 7 as RA instead of $31.
8694 * config/mips/crtn.asm: Ditto.
8695 * config/mips/mips.c (mips_move_2words): Add case for
8696 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
8697 (compute_frame_size): Fix typo.
8698 (save_restore_insns): Ditto. Make documentation about using
8699 register $7 as return register more precise.
8700 (mips_expand_epilogue): Fix comment. Add code to work around not
8701 being able to add to the stack pointer directly.
8702 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
8703 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
8706 2002-02-07 Tom Rix <trix@redhat.com>
8708 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
8709 immediates in ldu and stdu DS opcode field.
8710 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
8711 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
8712 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
8714 2002-02-07 Jeff Sturm <jsturm@one-point.com>
8716 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
8717 offset for stack bias.
8719 2002-02-07 H.J. Lu <hjl@gnu.org>
8721 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
8723 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
8725 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
8727 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
8729 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
8730 * i386.c (x86_order_regs_for_local_alloc): New global function.
8731 * i386.h (REG_ALLOC_ORDER): CLeanup.
8732 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
8734 2002-02-07 Richard Henderson <rth@redhat.com>
8736 PR optimization/2463
8737 * alias.c (find_base_value): Recall base values for fixed hard regs.
8738 * loop.c (loop_regs_update): Don't use single_set on non-insns.
8740 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
8742 * config/mips/mips.md (define_delay) [mips16]: Adjust required
8745 2002-02-06 Richard Henderson <rth@redhat.com>
8748 * stmt.c (resolve_operand_name_1): Take more care with mixed
8749 named and unnamed operands.
8751 2002-02-06 Janis Johnson <janis187@us.ibm.com>
8752 Jan Hubicka <jh@suse.cz>
8754 * loop.c (remove_constant_addition): Avoid clobbering a shared
8757 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
8759 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
8760 * config/s390/t-linux64: New file.
8761 * config/s390/libgcc-glibc.ver: New file.
8763 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
8765 * config/s390/linux64.h: Delete file.
8766 * config/s390/s390x.h: New file.
8767 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
8768 as target header file.
8769 * config/s390/linux.h (TARGET_VERSION): Define depending on
8770 DEFAULT_TARGET_64BIT.
8771 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
8772 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
8773 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
8774 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
8775 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
8776 (EXTRA_SPEC): New define.
8777 * config/s390/s390.h (TARGET_VERSION): Define depending on
8778 DEFAULT_TARGET_64BIT.
8779 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
8781 2002-02-06 Jason Merrill <jason@redhat.com>
8783 * c-decl.c (finish_function): Warn about a non-void function with
8784 no return statement and no abnormal exit.
8785 (current_function_returns_abnormally): New variable.
8786 (start_function): Clear it.
8787 (struct c_language_function): Add returns_abnormally.
8788 (push_c_function_context): Save it.
8789 (pop_c_function_context): Restore it.
8790 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
8791 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
8792 an explicit return type.
8793 * c-tree.h: Declare current_function_returns_abnormally.
8794 (C_FUNCTION_IMPLICIT_INT): New macro.
8795 * c-typeck.c (build_function_call): Set it.
8796 (c_expand_return): Set current_function_returns_value even if the
8799 2002-02-06 Jakub Jelinek <jakub@redhat.com>
8802 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
8803 unsafe for reevaluation.
8805 2002-02-06 Jakub Jelinek <jakub@redhat.com>
8808 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
8809 EXPR_STMT, but COMPOUND_STMT, recurse into it.
8811 2002-02-06 Richard Henderson <rth@redhat.com>
8813 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
8814 be a general_operand. Dest for function value must be a pseudo.
8816 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8818 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
8819 as SYMBOL_REFs from the constant pool.
8821 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
8823 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
8824 passed by invisible reference.
8826 2002-02-05 Richard Henderson <rth@redhat.com>
8828 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
8830 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
8832 Implement using "base addresses" in insn operands as default.
8833 * config/mmix/mmix.c (mmix_conditional_register_usage): if
8834 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
8835 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
8836 used to read the rtx value.
8837 (mmix_target_asm_function_epilogue): Fix spacing.
8838 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
8839 (mmix_legitimate_address): Ditto.
8840 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
8841 should be loaded with a GETA insn. Don't allocate needless extra
8842 char for nul termination and fix misleading comment.
8843 (mmix_print_operand_address): Handle constants if
8844 TARGET_BASE_ADDRESSES.
8845 (mmix_output_register_setting): Use base addressing if
8846 TARGET_BASE_ADDRESSES and the number of insns is 3.
8847 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
8848 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
8849 to use R as constraint, add LDA to match s.
8850 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
8851 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
8852 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
8853 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
8854 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
8855 order with other fixed registers.
8856 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
8857 other parameter/call-clobbered registers.
8858 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
8859 -mbase-addresses, -mno-base-addresses.
8860 (MMIX Options): Ditto.
8862 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
8864 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
8866 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
8868 * config/rs6000/altivec.h: Change elem to _S_elem.
8870 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
8872 * config/netbsd.h (WCHAR_TYPE): Define.
8873 (WCHAR_TYPE_SIZE): Ditto.
8875 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
8876 (WCHAR_UNSIGNED): Ditto.
8877 (WCHAR_TYPE_SIZE): Ditto.
8879 * config/arm/netbsd.h: Likewise.
8880 * config/i386/netbsd-elf.h: Likewise.
8881 * config/i386/netbsd.h: Likewise.
8882 * config/m68k/netbsd-elf.h: Likewise.
8883 * config/m68k/netbsd.h: Likewise.
8884 * config/ns32k/netbsd.h: Likewise.
8885 * config/sparc/netbsd.h: Likewise.
8886 * config/vax/netbsd.: Likewise.
8888 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
8890 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
8891 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
8892 (TARGET_INITIALIZER): this.
8893 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
8894 (BITFIELD_NBYTES_LIMITED): Markup fix.
8895 * tree.h (default_ms_bitfield_layout_p): Declare.
8896 (record_layout_info): Added prev_field.
8897 * tree.c (default_ms_bitfield_layout_p): New fn.
8898 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
8899 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
8900 * stor-layout.c: Include target.h.
8901 (start_record_layout): Initialize prev_field.
8902 (place_field): Handle MS bit-field layout, and disregard
8903 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
8904 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
8905 * Makefile.in (stor-layout.o): Adjust dependencies.
8907 2002-02-05 Jason Merrill <jason@redhat.com>
8909 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
8911 2002-02-05 Andreas Jaeger <aj@suse.de>
8913 * crtstuff.c: Fix comments.
8915 2002-02-05 Richard Henderson <rth@redhat.com>
8918 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
8919 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
8922 * config/mips/mips.c (function_arg): Handle TImode.
8923 (function_arg_advance): Likewise.
8925 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8927 * config/rs6000/altivec.h (vec_step_help): Rename to
8930 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8932 * config/rs6000/altivec.h: Fix typos.
8934 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
8936 * config/arm/netbsd.h: Correct a comment.
8938 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8940 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
8941 building void typed builtins.
8943 * config/rs6000/altivec.h (vec_ld*): Fix typos.
8944 (vec_step): Implement for C++.
8946 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8948 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
8950 2002-02-04 Richard Henderson <rth@redhat.com>
8952 * combine.c (nonzero_bits): Re-introduce special case for
8953 sp/fp/ap wrt REGNO_POINTER_ALIGN.
8955 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8957 * doc/extend.texi: Warn about unsupported usage of altivec
8960 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
8961 (altivec_predicate_*): New.
8963 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
8964 Add C++ version of vec_*() functions.
8966 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
8967 (bdesc_2arg): Remove altivec predicates.
8968 (altivec_expand_builtin): Handle predicates.
8969 (altivec_init_builtins): Handle predicates.
8970 (altivec_expand_predicate_builtin): New.
8972 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8974 * pa.c (DO_FRAME_NOTES): Move forward.
8975 (store_reg): Revise handling of frame notes.
8976 (load_reg): Likewise.
8977 (set_reg_plus_d): Likewise.
8978 (hppa_expand_prologue): Likewise.
8979 (hppa_expand_epilogue): Likewise.
8981 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8983 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
8985 2002-02-04 Jakub Jelinek <jakub@redhat.com>
8987 PR c/4475, c++/3780:
8988 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
8989 * c-common.h (SWITCH_TYPE): Define.
8990 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
8991 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
8992 Rename spareness variable to sparseness.
8993 (expand_end_case_type): Renamed from expand_end_case, use orig_type
8994 if non-NULL instead of TREE_TYPE (orig_index).
8995 * tree.h (expand_end_case_type): Renamed from expand_end_case.
8996 (expand_end_case): Define using expand_end_case_type.
8997 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
8998 to expand_end_case_type.
8999 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
9001 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9003 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
9004 (BIGGEST_ALIGNMENT): Change to 128.
9006 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9008 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
9010 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9012 * pa.md (call_internal_reg_64bit): Remove unused variable.
9014 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
9016 * config/arm/arm.h (machine_function): Add uses_anonymous_args
9018 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
9019 * config/arm/arm.c (current_function_anonymous_args): Delete,
9020 replace uses with cfun->machine->uses_anonymous_args.
9021 (arm_reorg): Do not reset uses_anonymous_args.
9023 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
9024 any geenral register.
9026 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
9028 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
9031 2002-02-04 Richard Henderson <rth@redhat.com>
9033 * combine.c (force_to_mode): Remove STACK_BIAS code.
9034 (nonzero_bits): Likewise. Replace sp/fp special case with
9035 REGNO_POINTER_ALIGN.
9037 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
9038 (HARD_FRAME_POINTER_REGNUM): New.
9039 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
9040 (FIXED_REGS, CALL_USED_REGS): Update.
9041 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
9042 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
9043 (HARD_REGNO_NREGS): Update for SFP.
9044 (STACK_POINTER_OFFSET): Include bias here ...
9045 (FIRST_PARM_OFFSET): ... not here.
9046 (STACK_BIAS): Remove.
9047 (INIT_EXPANDERS): New.
9048 (STARTING_FRAME_OFFSET): Do not include bias.
9049 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
9050 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
9051 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
9052 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
9053 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
9054 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
9055 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
9056 (MUST_SAVE_REGISTER): Likewise.
9057 (sparc_flat_function_prologue): Likewise.
9058 (sparc_flat_function_epilogue): Likewise.
9059 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
9060 (sparc_init_modes): SFP is GENERAL_REGS.
9061 (sparc_builtin_saveregs): SFP does not have bias applied.
9063 2002-02-04 Richard Henderson <rth@redhat.com>
9065 * config/alpha/alpha.c (current_function_is_thunk): Don't check
9066 current_function_is_thunk.
9067 (alpha_sa_mask): Distinguish between current_function_is_thunk
9068 called from ASM_OUTPUT_MI_THUNK and not.
9069 (alpha_does_function_need_gp): Thunks always need gp.
9070 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9071 (alpha_output_mi_thunk_osf): New.
9072 * config/alpha/alpha-protos.h: Update.
9073 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
9075 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
9077 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
9078 function types, not when they're taken away.
9080 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
9082 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
9083 CODE_LABEL and jump table when replacing a table jump with a
9086 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9088 * config/s390/s390-protos.h (legitimize_la_operand,
9089 s390_secondary_input_reload_class, s390_plus_operand,
9090 s390_expand_plus_operand): Add prototypes.
9092 config/s390/s390.c (s390_secondary_input_reload_class,
9093 s390_plus_operand, s390_expand_plus_operand): New functions.
9095 (struct s390_address): New member 'pointer'.
9096 (s390_decompose_address): Compute it.
9097 (legitimate_la_operand_p): Use it.
9098 (legitimize_la_operand): New function.
9099 (movti, movdi, movdf splitters): Call it.
9101 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
9102 (PREDICATE_CODES): Add s390_plus_operand.
9104 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
9105 (la_ccclobber): Allow GENERAL_REGS as output operand.
9107 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
9108 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
9109 (*la_64, *la_31, reload_indi, reload_insi): ... these.
9111 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9113 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
9114 register names for regular asm () construct.
9116 2002-02-04 Jakub Jelinek <jakub@redhat.com>
9118 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
9121 2002-02-04 Jakub Jelinek <jakub@redhat.com>
9123 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
9126 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
9128 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
9129 constant pool to be identical by string address and index.
9131 2002-02-04 Anthony Green <green@redhat.com>
9133 * output.h (SECTION_OVERRIDE): Define.
9134 * varasm.c (named_section): Obey SECTION_OVERRIDE.
9136 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
9138 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
9139 by existing arm*-*-netbsd* (a.out) target.
9140 (ns32k-*-netbsdelf*): Likewise.
9141 (sparc-*-netbsdelf*): Likewise.
9142 (vax-*-netbsdelf*): Likewise.
9144 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
9146 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
9147 headers and libobjc headers.
9149 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
9151 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
9152 (_mingw.h): Remove duplicate include.
9154 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
9156 * config.gcc: Set cpu_type to m68k for 68010, as well.
9157 (m68010-*-netbsdelf*): New...
9158 (m68k*-*-netbsdelf*): ...targets.
9159 * config/m68k/netbsd-elf.h: New file.
9161 2002-02-02 Kazu Hirata <kazu@hxi.com>
9163 * config/h8300/h8300.c (hand_list): Move inside function_arg.
9165 2002-02-02 Kazu Hirata <kazu@hxi.com>
9167 * config/h8300/h8300.c (h8_push_ops): Move inside
9169 (h8_pop_ops): Likewise.
9170 (h8_move_ops): Likewise.
9172 2002-02-02 Kazu Hirata <kazu@hxi.com>
9174 * config/h8300/h8300.c (os_task): Make it static.
9175 (monitor): Likewise.
9176 (pragma_saveall): Likewise.
9178 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
9180 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
9181 constant is a valid sign-extension for Pmode.
9183 2002-02-02 Kazu Hirata <kazu@hxi.com>
9185 * config/h8300/h8300.c: Fix formatting.
9187 2002-02-02 Kazu Hirata <kazu@hxi.com>
9189 * config/h8300/h8300.md: Fix formatting.
9191 2002-02-02 Kazu Hirata <kazu@hxi.com>
9193 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
9194 predicates of operands[1]. Split the patterns for each
9197 2002-02-02 Kazu Hirata <kazu@hxi.com>
9199 * config/h8300/h8300.md (xor patterns): Tighten the predicates
9200 of operands[1] to register_operand.
9202 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
9204 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
9205 * cpphash.c (_cpp_init_hashtable): Similarly.
9206 * cppinit.c (cpp_create_reader): Default the signed_char flag.
9207 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
9208 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
9209 (cpp_handle_option): Handle the new options.
9210 * cpplex.c (cpp_interpret_charconst): Use new flag.
9211 * cpplib.h (struct cpp_options): New member signed_char.
9212 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
9213 (cpp_options): Handle -fsigned-char and -funsigned-char.
9214 (static_specs): Remove signed_char_spec.
9215 (do_spec1): Don't handle %c.
9216 * system.h: Poison SIGNED_CHAR_SPEC.
9217 * tradcif.y (yylex): Use flag_signed_char.
9218 * tradcpp.h (flag_signed_char): New.
9219 * tradcpp.c (flag_signed_char): New.
9220 (main): Handle new command-line options.
9221 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
9223 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
9224 * avr/avr.h: Remove old comments.
9225 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
9226 (CC1_SPEC): Pass -fsigned-char if -mic*.
9227 (SIGNED_CHAR_SPEC): Remove.
9229 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
9231 2002-02-01 Eric Christopher <echristo@redhat.com>
9233 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
9234 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
9235 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
9236 (ASM_OUTPUT_REG_POP): Ditto.
9238 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
9240 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
9243 2002-02-02 Jakub Jelinek <jakub@redhat.com>
9245 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
9247 2002-02-02 Jakub Jelinek <jakub@redhat.com>
9250 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
9253 2002-02-01 Janis Johnson <janis187@us.ibm.com>
9255 * cfganal.c: Include tm_p.h.
9256 (keep_with_call_p): Fix the test that determines if a register holds
9257 the return value of a call.
9259 2002-02-01 DJ Delorie <dj@redhat.com>
9261 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
9262 we are given conflicting registers, switch to the other one we
9263 had allocated for us.
9264 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
9265 as TImode so we know when the "other" register is available.
9267 2002-02-01 David O'Brien <obrien@FreeBSD.org>
9269 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
9272 2002-02-01 Janis Johnson <janis187@us.ibm.com>
9274 * cfganal.c (keep_with_call_p): New function.
9275 (flow_call_edges_add): Prevent splitting a block between a call and
9276 a single-set instruction that should be kept in the same block.
9278 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
9280 * doc/install.texi (avr): Update outdated URL.
9282 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
9284 * config/stormy16/stormy16.md (pushqi): New.
9288 (movhi): Remove stack operands.
9290 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
9291 nonimmediate_nonstack_operand.
9292 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
9294 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
9297 2002-01-31 Jason Merrill <jason@redhat.com>
9299 * Makefile.in (c-parse.c): Handle .output file.
9300 * objc/Make-lang.in (objc-parse.c): Likewise.
9302 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
9304 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
9305 the -me[lb] option is given. Don't output the default flag
9308 2002-01-31 Zack Weinberg <zack@codesourcery.com>
9310 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
9311 the primary source file; this has not been done yet.
9312 * c-decl.c (c_expand_body): Reset input_filename from
9313 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
9315 2002-01-31 Kazu Hirata <kazu@hxi.com>
9317 * rtlanal.c (subreg_regno_offset): Do not use
9318 SUBREG_REGNO_OFFSET.
9319 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
9320 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
9322 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
9324 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
9325 version rather than GNATS version in --version output.
9327 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
9329 * ifcvt.c (noce_process_if_block): Make a copy of the destination
9330 when copying back from a temporary.
9332 2002-01-30 Richard Henderson <rth@redhat.com>
9334 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
9335 and new_dest are the same.
9337 2002-01-30 Richard Henderson <rth@redhat.com>
9340 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
9341 * rtl.c (note_insn_name): Update.
9342 * emit-rtl.c (remove_unnecessary_notes): Kill it.
9343 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
9344 to perform loop rotation.
9345 (expand_exit_loop_top_cond): New.
9346 * tree.h (expand_exit_loop_top_cond): Declare it.
9347 * c-semantics.c (genrtl_while_stmt): Use it.
9348 (genrtl_for_stmt): Likewise.
9350 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
9352 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
9353 arguments to 64-bit boundaries on 64-bit ABIs.
9355 2002-01-30 Steve Ellcey <sje@cup.hp.com>
9357 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
9359 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
9361 * c-decl.c (grokdeclarator): Handle type being a typedef for an
9364 2002-01-30 David O'Brien <obrien@FreeBSD.org>
9366 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
9367 * config/sparc/sparc_bi.h: Remove file.
9368 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
9370 2002-01-30 Richard Henderson <rth@redhat.com>
9372 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
9374 2002-01-30 Zack Weinberg <zack@codesourcery.com>
9376 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
9378 2002-01-30 Jason Merrill <jason@redhat.com>
9380 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
9381 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
9382 (reg_save): Use DW_CFA_offset_extended_sf instead.
9384 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
9386 2002-01-29 Jakub Jelinek <jakub@redhat.com>
9388 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
9391 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
9393 * rs6000.md ("*call_value_local32"): Remove constraints.
9394 ("*call_value_local64"): Same.
9395 ("*call_value_indirect_nonlocal_aix32"): Same.
9396 ("*call_value_nonlocal_aix32"): Same.
9397 ("*call_value_indirect_nonlocal_aix64"): Same.
9398 ("*call_value_nonlocal_aix64"): Same.
9399 ("*call_value_nonlocal_sysv"): Same.
9401 2002-01-29 Richard Henderson <rth@redhat.com>
9403 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
9405 2002-01-29 Richard Henderson <rth@redhat.com>
9407 * expr.c (force_operand): Ignore flag_pic for detecting pic
9409 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
9410 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
9411 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
9412 instead of open-coded loop.
9413 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
9414 be fixed when in use.
9416 2002-01-29 Richard Henderson <rth@redhat.com>
9418 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
9419 * sched-rgn.c (propagate_deps): Update them.
9420 * sched-deps.c (sched_analyze_insn): Update them. Flush the
9421 clobbers list when either gets too long.
9423 2002-01-29 Jakub Jelinek <jakub@redhat.com>
9425 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
9426 and INDEX_REGS the same as GENERAL_REGS.
9427 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
9429 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
9431 * tree.c (build_nonstandard_integer_type): Correct prototype.
9433 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
9435 * config/s390/s390.md (movstrsico, movstrdix_64,
9436 movstrsix_31): Remove, replace by ...
9437 (movstrdi_short, movstrsi_short, movstrdi_long,
9438 movstrsi_long): ... these. New.
9439 (movstrdi, movstrsi): Adapt.
9441 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
9442 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
9443 Remove unnecessary CC clobber.
9444 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
9445 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
9447 (divmoddi4): Don't partially initialize TImode register.
9449 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
9451 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
9453 2002-01-29 Richard Henderson <rth@redhat.com>
9455 * flow.c (print_rtl_and_abort): Remove.
9456 (print_rtl_and_abort_fcn): Remove.
9457 (verify_local_live_at_start): Use dump_bb instead.
9458 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
9459 (verify_wide_reg_1): Return 2 on mode test failure.
9461 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
9463 PR c/3325, c/3326, c/2511, c/3347
9464 * c-decl.c (enum_decl_context): Remove BITFIELD.
9465 (grokdeclarator): Take bitfield width as an input.
9466 Ensure bitfields are given the correct type. Perform
9467 bitfield width validation with build_bitfield_integer_type
9468 rather than waiting for finish_struct.
9469 (grok_typename, grok_typename_in_parm_context, start_decl,
9470 push_parmdecl, grokfield, start_function): Update calls to
9472 (build_bitfield_integer_type): New function.
9473 (finish_struct): Move bitfield validation to grokdeclarator
9474 and build_bitfield_integer_type.
9475 * tree.c (build_nonstandard_integer_type): New function.
9476 * tree.h (build_nonstandard_integer_type): New prototype.
9478 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
9480 2002-01-29 Jakub Jelinek <jakub@redhat.com>
9483 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
9484 don't ignore unrecognized -W* options.
9485 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
9486 * cpplib.h (cpp_handle_option): Adjust prototype.
9487 * c-decl.c (c_decode_options): Pass 0 as last argument to
9491 * gcc.c (cpp_unique_options): Split from cpp_options.
9492 (cpp_options): Source cpp_unique_options.
9493 (default_compilers): Use cpp_unique_options instead of cpp_options
9494 when used together with cc1_options.
9495 (static_specs): Add cpp_unique_options.
9496 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
9497 when used together with cc1_options.
9499 2002-01-29 Kazu Hirata <kazu@hxi.com>
9501 * config/h8300/h8300-protos.h: Update the prototype of
9503 * config/h8300/h8300.c (output_a_shift): Remove an unused
9504 argument 'insn'. Remove redundant code.
9505 * config/h8300/h8300.md: Adust to the new prototype of
9508 2002-01-29 Kazu Hirata <kazu@hxi.com>
9510 * config/h8300/h8300-protos.h: Update the prototypes of
9511 emit_a_rotate and expand_a_rotate.
9512 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
9513 first argument to 'enum rtx_code'.
9514 (expand_a_rotate): Likewise.
9516 2002-01-28 Kazu Hirata <kazu@hxi.com>
9518 * config/h8300/h8300-protos.h: Update the prototype of
9520 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
9522 * config/h8300/h8300.md: Adjust to the new prototype.
9524 2002-01-28 Kazu Hirata <kazu@hxi.com>
9526 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
9529 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
9531 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
9532 is a fixed register before returning pic_offset_table_rtx.
9533 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
9534 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
9536 2002-01-28 Jason Merrill <jason@redhat.com>
9538 * dwarf2.h: Sync with src version.
9540 2002-01-28 Paul Koning <pkoning@equallogic.com>
9542 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
9544 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
9545 * doc/extend.texi (__builtin_prefetch): Update documentation:
9546 first argument is now const void ptr.
9548 2002-01-28 Kazu Hirata <kazu@hxi.com>
9550 * config/h8300/h8300-protos.h: Remove an unused prototype.
9552 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
9554 * toplev.c (lang_independent_init): Round up identifier size.
9556 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
9558 * config.gcc: Revert previous change.
9560 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
9562 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
9564 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
9566 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
9567 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
9568 other non-elf netbsd config frags.
9569 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
9570 collect2 will does that.
9571 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
9572 shared-lib frobbing will work.
9574 2002-01-28 Kazu Hirata <kazu@hxi.com>
9576 * config/h8300/h8300.h: Fix formatting.
9577 * config/h8300/h8300.md: Likewise.
9579 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
9581 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
9582 the old, removed AAA_standards fix.
9583 * fixinc/fixincl.x: Rebuilt.
9585 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
9587 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
9588 atexit call in crtbegin, hooked in after call to frame_dummy;
9589 register EH before registering __fini__start.
9591 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
9593 * config/rs6000/altivec.h: Remove spurious semicolons.
9595 2002-01-27 Kazu Hirata <kazu@hxi.com>
9597 * config/h8300/h8300.md: Replace dead bit extraction patterns
9598 with ones that work.
9600 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9602 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
9603 if not STRICT_ALIGNMENT.
9604 * rtl.h (MEM_ALIGN): Likewise.
9606 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
9608 * doc/invoke.texi (-fdump-translation-unit): Revert this
9609 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
9611 2002-01-27 Kazu Hirata <kazu@hxi.com>
9613 * config/h8300/h8300.md (define_constants): New.
9614 (anonymous patterns) Use defined constants appropriately.
9616 2002-01-27 Kazu Hirata <kazu@hxi.com>
9618 * config/h8300/h8300.c (function_arg): Remove redundant code.
9620 2002-01-26 Richard Henderson <rth@redhat.com>
9622 * sched-deps.c (reg_pending_uses_head): New.
9623 (reg_pending_barrier): Rename from reg_pending_sets_all.
9624 (find_insn_list): Don't mark inline.
9625 (find_insn_mem_list): Remove.
9626 (add_dependence_list, add_dependence_list_and_free): New.
9627 (flush_pending_lists): Replace only_write param with separate
9628 for_read and for_write parameters. Update all callers. Use
9629 add_dependence_list_and_free.
9630 (sched_analyze_1): Do not add reg dependencies here; just set
9631 the pending bits. Use add_dependence_list.
9632 (sched_analyze_2): Likewise.
9633 (sched_analyze_insn): Replace schedule_barrier_found with
9634 reg_pending_barrier. Add all dependencies for pending reg
9635 uses, sets, and clobbers.
9636 (sched_analyze): Don't add reg dependencies for calls, just
9637 set pending bits. Use regs_invalidated_by_call. Treat
9638 sched_before_next_call as a normal list, not a fake insn.
9639 (init_deps): No funny init for sched_before_next_call.
9640 (free_deps): Free pending mems lists. Don't zero reg_last.
9641 (init_deps_global): Init reg_pending_uses.
9642 (finish_deps_global): Free it.
9643 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
9644 (find_insn_mem_list): Remove.
9645 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
9646 (propagate_deps): Use them. Zero temp mem lists.
9648 2002-01-26 Richard Henderson <rth@redhat.com>
9650 * Makefile.in (CRTSTUFF_CFLAGS): New.
9651 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
9652 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
9653 crtstuff.c instead of alpha assembly version.
9654 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
9655 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
9656 not FORCE_{INIT,FINI}_SECTION_ALIGN.
9657 (__do_global_dtors_aux): Mark used.
9658 (frame_dummy, __do_global_ctors_aux): Mark used.
9659 (fini_dummy, init_dummy): Remove.
9661 * config/alpha/crtbegin.asm: Remove file.
9662 * config/alpha/crtend.asm: Remove file.
9663 * config/alpha/t-crtbe: Remove file.
9664 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
9665 (LINK_EH_SPEC): New.
9667 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
9668 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
9669 calling constructors.
9670 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
9672 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
9673 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
9674 CRT_END_INIT_DUMMY hack.
9675 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
9676 FORCE_{INIT,FINI}_SECTION_ALIGN.
9678 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
9679 FORCE_{INIT,FINI}_SECTION_ALIGN.
9681 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
9682 invocation sequence.
9683 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
9685 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
9686 (FORCE_CODE_SECTION_ALIGN): New.
9688 2002-01-26 Richard Henderson <rth@redhat.com>
9690 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
9692 2002-01-26 Richard Henderson <rth@redhat.com>
9694 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
9695 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
9697 2002-01-26 Kazu Hirata <kazu@hxi.com>
9699 * config/h8300/h8300.md: Remove bit extraction patterns that
9700 cannot be triggered.
9701 Restrict each bit extraction pattern to a variant on which the
9704 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
9706 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
9708 2002-01-26 Kazu Hirata <kazu@hxi.com>
9710 * config/h8300/h8300.md: Remove bit test patterns that cannot
9712 Restrict each bit test pattern to a variant on which the
9715 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9717 * builtins.c (expand_builtin_strncat): Remove redundant check for
9720 2002-01-25 David O'Brien <obrien@FreeBSD.org>
9722 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
9724 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
9727 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
9729 * dbxout.c (dbxout_init): Use assemble_name rather than just
9730 stripping off the first character.
9731 (dbxout_source_file): Likewise.
9733 2002-01-25 DJ Delorie <dj@redhat.com>
9735 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
9736 using rtx_equal_p, not by comparing pointers.
9738 2002-01-25 Steve Ellcey <sje@cup.hp.com>
9740 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
9741 for PIC_OFFSET_TABLE_REGNUM.
9742 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
9744 2002-01-25 David O'Brien <obrien@FreeBSD.org>
9746 * config.gcc (x86_64-*-freebsd*): New target.
9747 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
9749 (i[34567]86-*-freebsd*): Don't include svr4.h.
9750 * config/i386/freebsd64.h: New file.
9752 2002-01-25 Douglas B Rupp <rupp@gnat.com>
9754 * config/alpha/x-vms (version): Make static.
9756 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
9757 in previous checkin.
9759 * Makefile.in (install-headers-cp): New target.
9760 * config.gcc (alpha-dec-*vms*): Install headers with
9763 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
9765 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
9768 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9770 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
9771 of compare_tree_int.
9772 (expand_builtin_strncat): Likewise.
9773 * c-decl.c (finish_struct): Use tree_low_cst.
9774 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
9775 * tree.c (compare_tree_int): Likewise.
9777 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
9779 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
9780 adjustments even if they are implemented by more than two insns.
9782 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
9784 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
9785 * df.h (struct ref): Kill B.
9786 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
9788 * basic-block.h (PROP_EQUAL_NOTES): New flag.
9789 * flow.c (propagate_one_insn): Use it.
9790 (mark_used_regs): Handle NIL.
9792 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
9794 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
9797 2002-01-25 David Edelsohn <edelsohn@gnu.org>
9799 * rs6000.md (prefetch): Make address V4SI mode so that the address
9800 is restricted to legitimate form for instruction.
9802 2002-01-25 Bob Wilson <bob.wilson@acm.org>
9804 * doc/install.texi (xtensa-*-elf): New target.
9805 (xtensa-*-linux*): New target.
9806 * doc/contrib.texi: Add myself.
9808 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
9810 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
9811 purpose register to hold an SImode (or smaller) value.
9813 2002-01-25 Jakub Jelinek <jakub@redhat.com>
9815 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
9817 * crtstuff.c: Likewise.
9819 2002-01-25 Kazu Hirata <kazu@hxi.com>
9821 * config/h8300/h8300.md (negation patterns): Tighten
9822 predicates to register_operand.
9824 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
9826 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
9829 * builtins.c (expand_builtin_prefetch): Same.
9831 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9833 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
9836 2002-01-24 Kazu Hirata <kazu@hxi.com>
9838 * config/h8300/h8300.c (print_operand): Remove support for
9839 operand character 'A'.
9840 * config/h8300/h8300.md (three anonymous patterns): Replace
9841 operand character 'A' with either 'T' or 'S'.
9843 2002-01-24 Kazu Hirata <kazu@hxi.com>
9845 * config/h8300/h8300.c (print_operand): Remove support for
9846 operand character 'U'.
9848 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
9850 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
9852 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
9854 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
9855 values to be assigned to the stack pointer.
9857 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
9859 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
9860 to const_double needs to be done right for big-endian systems.
9862 2002-01-24 Jason Merrill <jason@redhat.com>
9865 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
9866 to can_throw_internal.
9868 2002-01-23 Richard Henderson <rth@redhat.com>
9870 * fold-const.c (fold): Change UINT_MAX test to check vs precision
9871 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
9873 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9875 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
9876 (symGOT2reg): Use them, then set as GOT value as unchanging.
9877 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
9878 as a temporary, if possible.
9879 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
9880 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
9882 2002-01-23 Kazu Hirata <kazu@hxi.com>
9884 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
9885 accept to accept 0x80 as operands[2].
9887 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9889 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
9891 2002-01-23 Richard Henderson <rth@redhat.com>
9893 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
9895 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
9897 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
9898 (parmlist_or_identifiers_1): Verify that only a parmlist follows
9901 2002-01-23 Richard Henderson <rth@redhat.com>
9903 * expr.c (move_by_pieces_1): Extend size before negation.
9905 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
9906 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
9907 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
9908 * config/m68k/t-m68kelf: Likewise.
9910 2002-01-23 Bob Wilson <bob.wilson@acm.org>
9912 * config/xtensa/elf.h: New file.
9913 * config/xtensa/lib1funcs.asm: New file.
9914 * config/xtensa/lib2funcs.S: New file.
9915 * config/xtensa/linux.h: New file.
9916 * config/xtensa/t-xtensa: New file.
9917 * config/xtensa/xtensa-config.h: New file.
9918 * config/xtensa/xtensa-protos.h: New file.
9919 * config/xtensa/xtensa.c: New file.
9920 * config/xtensa/xtensa.h: New file.
9921 * config/xtensa/xtensa.md: New file.
9922 * config.gcc (xtensa-*-elf*): New target.
9923 (xtensa-*-linux*): New target.
9924 * cse.c (canon_hash): Compare rtx pointers instead of register
9925 numbers. This is required for the Xtensa port.
9926 * integrate.c (copy_insn_list): Handle case where the static
9927 chain is in memory and the memory address has to be copied to
9929 * doc/invoke.texi (Option Summary): Add Xtensa options.
9930 (Xtensa Options): New node.
9931 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
9933 2002-01-23 Zack Weinberg <zack@codesourcery.com>
9935 * diagnostic.c (internal_error): Do ICE suppression only
9936 when ENABLE_CHECKING is not defined.
9938 * c-typeck.c (require_complete_type): Return error_mark_node
9939 if type is error_mark_node.
9941 2002-01-23 Janis Johnson <janis187@us.ibm.com>
9943 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
9944 -Os and issue a warning.
9946 2002-01-23 Zack Weinberg <zack@codesourcery.com>
9948 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
9949 current (lack of) need for host configuration by hand.
9951 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
9952 references. Documentation of some target macros moved from
9953 hostconfig.texi to tm.texi.
9955 2002-01-23 Will Cohen <wcohen@redhat.com>
9957 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
9960 2002-01-23 Kazu Hirata <kazu@hxi.com>
9962 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
9965 2002-01-23 Jason Merrill <jason@redhat.com>
9967 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
9969 * function.c (assign_parms): Don't put args of inline functions
9970 into registers when not optimizing.
9972 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
9974 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
9975 (prologue_use): New pattern.
9976 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
9977 preference to gen_rtx_USE.
9978 (thumb_expand_prologue): Use gen_prologue_use in preference to
9980 (thumb_expand_epilogue): Use gen_prologue_use in preference to
9983 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
9985 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
9987 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
9990 * doc/extend.texi: Correct documentation of __alignof__.
9992 2002-01-22 Zack Weinberg <zack@codesourcery.com>
9994 * params.h: Rename arguments of DEFPARAM so that it will be
9995 recognized as a translation keyword.
9997 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
9999 * extend.texi: Document altivec functions.
10000 Fix N-bit adjectives in X86 builtin documentation.
10002 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
10004 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
10005 auto_inc_dec values.
10007 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
10009 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
10011 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
10013 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
10015 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
10017 2002-01-22 Richard Henderson <rth@redhat.com>
10019 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
10020 copy_insn not copy_rtx.
10022 2002-01-23 Alan Modra <amodra@bigpond.net.au>
10024 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
10025 "nonzero" as that might add "1" bits. Ensure "constop" is
10026 properly sign extened.
10027 (force_to_mode): Tweak for sign extended constop.
10029 2002-01-22 Richard Henderson <rth@redhat.com>
10031 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
10032 for_each_rtx instead of assuming we're already looking at the MEM.
10033 (split_small_symbolic_mem_operand): Likewise.
10034 * config/alpha/alpha.h (PREDICATE_CODES): Update.
10035 * config/alpha/alpha.md (small symbolic memory splitters): Update.
10037 2002-01-22 Richard Henderson <rth@redhat.com>
10039 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
10040 sequence number for the literal.
10041 (divmoddi_internal_er): Likewise.
10043 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
10046 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
10047 in LIBICONV variable.
10048 * configure: Regenerated.
10050 2002-01-22 Krister Walfridsson <cato@df.lth.se>
10052 * dependence.c (build_def_use): Remove array_idx.
10054 * dwarfout.c (last_filename): Remove.
10055 (output_compile_unit_die): Remove last_filename.
10057 2002-01-22 Roger Sayle <roger@eyesopen.com>
10058 Richard Henderson <rth@redhat.com>
10061 * fold-const.c (fold): Optimize unsigned comparisons against
10062 UINT_MAX (and similar unsigned constants).
10064 2002-01-22 Janis Johnson <janis187@us.ibm.com>
10066 * Makefile.in (loop.o): Depend on OPTABS_H.
10067 * loop.c (emit_prefetch_instructions): Check the prefetch operand
10068 against the predicate.
10071 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
10072 for the address operand.
10074 2002-01-22 Richard Henderson <rth@redhat.com>
10076 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
10078 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
10081 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
10082 preprocessor flags.
10084 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
10086 * config.gcc (x86_64-*-netbsd*): New target.
10087 * config/i386/netbsd64.h: New file.
10089 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
10091 * regrename.c (kill_value): Fix typo.
10093 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
10095 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
10097 * config/rs6000/rs6000.h: Same.
10099 * function.c (instantiate_virtual_regs): Remove
10100 STARTING_FRAME_PHASE.
10101 (assign_stack_local_1): Same.
10102 Calculate frame phase.
10104 2002-01-22 Nick Clifton <nickc@redhat.com>
10106 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
10107 variable declaration to outer scope in order to simplify
10109 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
10110 arm_hard_regno_mode_ok.
10111 * config/arm/arm-protos.h: Add a prototype for
10112 arm_hard_regno_mode_ok.
10113 * config/arm/arm.c (soft_df_operand): Remove now redundant
10114 check for DImode values using IP_REGNUM.
10115 (nonimmediate_soft_df_operand): Remove now redundant check for
10116 DImode values using IP_REGNUM.
10117 (arm_hard_regno_mode_ok): New function. New check: make sure
10118 that DImode values are not stored in IP_REGNUM.
10120 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
10122 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
10124 2002-01-22 Jason Merrill <jason@redhat.com>
10126 * c-semantics.c (genrtl_compound_stmt): Only check nesting
10127 consistency if this COMPOUND_STMT is scoped.
10129 2002-01-22 Kazu Hirata <kazu@hxi.com>
10131 * predict.c: Fix formatting.
10132 * print-tree.c: Likewise.
10133 * protoize.c: Likewise.
10134 * real.h: Likewise.
10136 * sbitmap.h: Likewise.
10137 * scan.c: Likewise.
10138 * sched-deps.c: Likewise.
10139 * sched-vis.c: Likewise.
10140 * sdbout.c: Likewise.
10141 * sibcall.c: Likewise.
10143 * ssa-ccp.c: Likewise.
10144 * ssa-dce.c: Likewise.
10145 * stmt.c: Likewise.
10146 * stor-layout.c: Likewise.
10147 * system.h: Likewise.
10149 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10151 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
10152 if fits in bounds of base type.
10154 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
10155 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
10156 (add_bound_info, default): If can't find a context, make a
10158 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
10160 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
10162 * c-typeck.c (parser_build_binary_op): If result from
10163 build_binary_op is ERROR_MARK just return error_mark_node without
10164 further processing.
10166 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
10168 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
10169 Split a.out-specific bits into...
10170 * config/netbsd-aout.h: ...this.
10171 * config/netbsd-elf.h: New file.
10172 * config/alpha/netbsd-elf.h: Remove.
10173 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
10174 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
10175 (STARTFILE_SPEC): Remove redundant definition.
10176 (ENDFILE_SPEC): Likewise.
10177 (LINK_SPEC): Likewise.
10178 (CPP_SPEC): Likewise.
10179 (ASM_SPEC): Likewise.
10180 (LIB_SPEC): Likewise.
10181 (SWITCH_TAKES_ARG): Likewise.
10182 (TARGET_MEM_FUNCTIONS): Likewise.
10183 (CPP_PREDEFINES): Redefine.
10184 (ASM_FINAL_SPEC): Remove redefinition.
10185 (ASM_COMMENT_START): Redefine.
10186 (FUNCTION_PROFILER): Define.
10187 (TARGET_VERSION): Redefine.
10188 Comment and formatting cleanup.
10189 * config/i386/netbsd.h: Include <netbsd-aout.h>.
10190 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
10191 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
10192 big- or little-endian.
10193 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
10194 * config.gcc (*-*-netbsd*): Add definitions common to all
10196 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
10197 gnu_ld definitions. Add netbsd-elf.h to and remove
10198 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
10199 tmake_file, and don't lose previous tmake_file contents.
10200 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
10201 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
10202 gnu_ld definitions. Add netbsd-elf.h to tm_file.
10203 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
10204 (mipsel-*-netbsd*): Rename this to...
10205 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
10206 mips/little.h to tm_file for mips*el-*.
10207 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
10208 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
10209 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
10211 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
10213 * pa-protos.h (reg_before_reload_operand): New function prototype.
10214 * pa.c (reg_before_reload_operand): New function implementation.
10215 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
10216 contraints to "*m".
10218 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10220 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
10222 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
10224 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
10225 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
10226 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
10227 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
10228 (ENDFILE_SPEC): Undefine.
10229 (STARTFILE_SPEC): Redefine for PA.
10231 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10233 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
10235 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
10237 * config.gcc: Add entries to supported PowerPC --with-cpu
10240 2002-01-21 Jakub Jelinek <jakub@redhat.com>
10242 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
10243 true for 64-bit mode only SSE registers in 32-bit mode.
10245 2002-01-21 Kazu Hirata <kazu@hxi.com>
10247 * unwind-dw2.c: Fix formatting.
10248 * unwind-dw2-fde.c: Likewise.
10249 * unwind-dw2-fde.h: Likewise.
10250 * unwind-pe.h: Likewise.
10251 * varasm.c: Likewise.
10252 * varray.h: Likewise.
10254 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
10256 Remove workaround for register stack overwrite bug in mmix.
10257 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
10258 support for TARGET_REG_STACK_FILL_BUG.
10259 * config/mmix/mmix.h: Remove member has_call_without_parameters.
10260 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
10262 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
10263 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
10264 -mno-reg-stack-fill-bug-workaround.
10265 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
10266 machine member has_call_without_parameters.
10267 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
10268 -mreg-stack-fill-bug-workaround and
10269 -mno-reg-stack-fill-bug-workaround.
10270 (MMIX Options): Ditto.
10272 2002-01-21 Kazu Hirata <kazu@hxi.com>
10274 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
10276 Remove redundant code.
10278 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
10280 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
10281 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10282 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10283 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
10284 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
10285 out target macro definitions and non-target-specific comments
10286 mostly taken from old versions of the manual.
10288 2002-01-20 Kazu Hirata <kazu@hxi.com>
10290 * config/h8300/h8300.h: Fix comment formatting.
10291 * config/ia64/aix.h: Likewise.
10292 * config/ia64/ia64-protos.h: Likewise.
10293 * config/ia64/ia64.c: Likewise.
10294 * config/ia64/ia64.h: Likewise.
10295 * config/ia64/ia64intrin.h: Likewise.
10296 * config/ia64/linux.h: Likewise.
10297 * config/ia64/unwind-aix.c: Likewise.
10298 * config/ia64/unwind-ia64.c: Likewise.
10300 2002-01-20 Kazu Hirata <kazu@hxi.com>
10302 * config/h8300/h8300.c: Revise comments about shift code.
10304 2002-01-20 Kazu Hirata <kazu@hxi.com>
10306 * config/h8300/h8300.c (function_arg): Update a comment.
10308 2002-01-20 Kazu Hirata <kazu@hxi.com>
10310 * config/h8300/h8300.md: Update the comments at the beginning
10313 2002-01-20 Kazu Hirata <kazu@hxi.com>
10315 * config/i370/i370.c: Fix comment formatting.
10316 * config/i370/i370.h: Likewise.
10317 * config/i370/i370.md: Likewise.
10318 * config/i370/linux.h: Likewise.
10320 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10322 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
10324 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
10325 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
10326 in incomplete case.
10328 2002-01-20 Graham Stott <grahams@redhat.com>
10330 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
10332 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
10334 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
10336 2002-01-19 Tom Rix <trix@redhat.com>
10338 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
10340 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
10342 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
10344 * function.c (assign_stack_local_1): Adjust x_frame_offset with
10345 STARTING_FRAME_PHASE.
10346 (STARTING_FRAME_PHASE): New.
10347 (instantiate_virtual_regs): Check saneness of
10348 STARTING_FRAME_PHASE.
10350 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
10352 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
10354 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
10356 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
10358 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
10359 be used for bootstrapping GCC 3.0.
10361 2002-01-18 Kazu Hirata <kazu@hxi.com>
10363 * config/h8300/h8300.md: Fix an insn length.
10365 2002-01-18 Kazu Hirata <kazu@hxi.com>
10367 * bitmap.h: Fix comment formatting.
10368 * combine.c: Likewise.
10369 * cppfiles.c: Likewise.
10370 * c-pragma.h: Likewise.
10371 * c-typeck.c: Likewise.
10373 * dwarf2out.c: Likewise.
10374 * function.c: Likewise.
10376 * genattrtab.c: Likewise.
10377 * gthr-win32.h: Likewise.
10378 * haifa-sched.c: Likewise.
10379 * predict.c: Likewise.
10380 * rtlanal.c: Likewise.
10382 * unwind-dw2-fde.h: Likewise.
10383 * unwind-pe.h: Likewise.
10384 * vmsdbgout.c: Likewise.
10386 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10388 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
10389 if type_required and passed decl.
10391 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
10393 * config.gcc (cpu_type): Include altivec.h in powerpc
10397 * config/rs6000/altivec.h: New.
10399 2002-01-17 David Edelsohn <edelsohn@gnu.org>
10401 * doc/install.texi (*-ibm-aix*): Update assembler and exception
10402 handling information.
10403 * doc/trouble.texi (Interoperation): Add libstdc++ information
10405 (Misunderstandings): Add template instantiation and static template
10406 member information for AIX.
10408 2002-01-17 Jason Merrill <jason@redhat.com>
10410 * dbxout.c (dbxout_type): Support const and volatile.
10412 * except.c (add_partial_entry): Remove backwards compatibility code.
10413 (end_protect_partials): Likewise.
10415 2002-01-17 Jakub Jelinek <jakub@redhat.com>
10417 * config/ia64/ia64.md (prologue_use): New.
10418 * config/ia64/ia64.c (ia64_expand_prologue): Use
10419 gen_prologue_use instead of gen_rtx_USE.
10420 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
10421 as CODE_FOR_pred_rel_mutex.
10422 (ia64_sched_reorder2): Likewise.
10424 2002-01-16 Eric Christopher <echristo@redhat.com>
10426 * config/mips/r3900.h: Reformat.
10427 (SUBTARGET_CPP_SIZE_SPEC): Remove.
10428 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
10429 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
10430 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
10431 * config/mips/t-elf: Remove mips3 multilib.
10433 2002-01-16 H.J. Lu <hjl@gnu.org>
10435 * config/mips/linux.h: Include "mips/abi64.h".
10437 2002-01-16 H.J. Lu <hjl@gnu.org>
10439 * config/mips/t-linux: New.
10441 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
10443 * config/mips/linux.h: Don't include "gofast.h".
10444 (INIT_SUBTARGET_OPTABS): Removed.
10446 2002-01-16 Kazu Hirata <kazu@hxi.com>
10448 * config/h8300/h8300-protos.h: Replace emit_a_shift with
10450 * config/h8300/h8300.c: Likewise.
10451 * config/h8300/h8300.md: Likewise.
10453 2002-01-16 Kazu Hirata <kazu@hxi.com>
10455 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
10456 spaces after an opcode name.
10457 (pushqi1_h8300hs): Likewise.
10458 (pushhi1_h8300hs): Likewise.
10460 2002-01-16 Kazu Hirata <kazu@hxi.com>
10462 * doc/extend.texi: Replace "option" with "attribute"
10465 2002-01-16 Jakub Jelinek <jakub@redhat.com>
10467 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
10468 (and:DI () (const_int -8)).
10469 (split_small_symbolic_mem_operand): Split
10470 (mem (and:DI () (const_int -8)).
10472 2002-01-16 Jakub Jelinek <jakub@redhat.com>
10475 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
10476 same way as TYPE_IMUL.
10477 (ultrasparc_sched_reorder): Likewise.
10478 * config/sparc/sparc.md (type): Add comment to update
10479 ultrasparc_sched_reorder when making changes.
10481 2002-01-16 Kazu Hirata <kazu@hxi.com>
10483 * doc/invoke.texi: Change the dump file name of block
10484 reordering pass from 28.bbro to 29.bbro.
10485 Mention -dk option.
10487 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
10489 * i386.md (minsf splitter): Fix pasto.
10491 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
10493 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
10494 to frame pointer initialisation instruction.
10495 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
10496 initialisation instruction.
10497 (soft_df_operand): Do not accept the IP register.
10498 (nonimmediate_soft_df_operand): Do not accept the IP register.
10500 2002-01-16 Jakub Jelinek <jakub@redhat.com>
10503 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
10504 MASK_V8 being both set.
10506 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
10508 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
10509 insn for GOT register; add REG_MAYBE_DEAD notes instead.
10510 config/s390/s390.md (call, call_value): Add GOT register to
10511 CALL_INSN_FUNCTION_USAGE where needed.
10512 (call_exp, call_value_exp): New.
10514 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
10516 * config/arm/arm.c: General formatting tidy up.
10518 2002-01-16 Graham Stott <grahams@redhat.com>
10520 * calls.c (try_to_integrate): Use "(size_t)" intermediate
10521 cast and when casting an integer literal to "rtx" pointer.
10522 (expand_call): Likewise.
10523 * flow.c (try_pre_increment): Likewise.
10524 (find_use_as_address): Likewise.
10525 * integrate.c (expand_iline_function): Likewise.
10526 * regmove.c (try_auto_increment): Likewise.
10528 2002-01-16 Graham Stott <grahams@redhat.com>
10530 * sched-rgn.c (passed): Use sbitmap_free.
10531 (header): Likewise.
10533 (in_queue): Likewise.
10534 (in_stack): Likewise.
10536 2002-01-15 Eric Christopher <echristo@redhat.com>
10538 * flow.c (propagate_one_insn): Change to use fatal_insn.
10540 2002-01-15 Kazu Hirata <kazu@hxi.com>
10542 * expmed.c (extract_fixed_bit_field): Remove unused code.
10543 * system.h: Poison SLOW_ZERO_EXTEND.
10544 * doc/tm.texi: Remove.
10545 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
10546 * config/arm/arm.h: Likewise.
10547 * config/avr/avr.h: Likewise.
10548 * config/clipper/clipper.h: Likewise.
10549 * config/convex/convex.h: Likewise.
10550 * config/d30v/d30v.h: Likewise.
10551 * config/dsp16xx/dsp16xx.h: Likewise.
10552 * config/elxsi/elxsi.h: Likewise.
10553 * config/fr30/fr30.h: Likewise.
10554 * config/h8300/h8300.h: Likewise.
10555 * config/i370/i370.h: Likewise.
10556 * config/i386/i386.h: Likewise.
10557 * config/m68k/m68k.h: Likewise.
10558 * config/mips/mips.h: Likewise.
10559 * config/ns32k/ns32k.h: Likewise.
10560 * config/pdp11/pdp11.h: Likewise.
10561 * config/pj/pj.h: Likewise.
10562 * config/s390/s390.h: Likewise.
10563 * config/sh/sh.h: Likewise.
10564 * config/stormy16/stormy16.h: Likewise.
10565 * config/v850/v850.h: Likewise.
10566 * config/vax/vax.h: Likewise.
10567 * config/we32k/we32k.h: Likewise.
10569 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
10571 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
10572 (altivec_lvsl): Change constraint to b.
10573 (altivec_lvsr): Same.
10574 (altivec_lvebx): Same.
10575 (altivec_lvehx): Same.
10576 (altivec_lvewx): Same.
10577 (altivec_lvxl): Same.
10578 (altivec_lvx): Same.
10579 (altivec_stvx): Add parallel.
10580 (altivec_stvxl): Same.
10581 (altivec_stvehx): Same.
10582 (altivec_stvebx): Same.
10583 (altivec_stvebx): Same.
10585 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
10587 * config.gcc: Change altivec.h to altivec-defs.h.
10589 * config/rs6000/altivec.h: Delete.
10591 * config/rs6000/altivec-defs.h: Add.
10593 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
10595 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
10598 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
10599 less than or equal to eight bytes.
10601 * vax.md (andsi3): Remove constraints and change SET destination
10602 operand type to nonimmediate_operand.
10603 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
10604 when it is a CONST_INT.
10606 2002-01-15 Jason Merrill <jason@redhat.com>
10608 * c-common.def (FILE_STMT): New code.
10609 * c-common.c (statement_code_p): It's a statement.
10610 * c-common.h (stmt_tree_s): Add x_last_filename.
10611 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
10612 (last_expr_filename): New macro.
10613 * c-semantics.c (begin_stmt_tree): Initialize it.
10614 (add_stmt): If the filename changed, also insert a
10616 (expand_stmt): Handle seeing one.
10618 2002-01-15 Eric Christopher <echristo@redhat.com>
10620 * flow.c (propagate_one_insn): Add error message and print out
10621 insn for debugging.
10623 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
10625 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
10626 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
10627 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
10628 TRAMPOLINE_ALIGNMENT.
10629 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
10631 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
10632 PCC_BITFIELD_TYPE_MATTERS.
10633 * config/interix.h (STDC_VALUE): Remove. Use
10634 STDC_0_IN_SYSTEM_HEADERS.
10635 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
10636 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
10637 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
10639 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
10641 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
10642 not work on this platform currently.
10644 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
10646 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
10647 readonly_warning in _().
10649 2002-01-15 Douglas B Rupp <rupp@gnat.com>
10651 * gcc.c (delete_if_ordinary): Backout previous change.
10653 2002-01-15 Kazu Hirata <kazu@hxi.com>
10655 * config/h8300/h8300.c (print_operand): Remove support for
10656 unused operand characters.
10658 * read-rtl.c: Fix formatting.
10659 * real.c: Likewise.
10660 * recog.c: Likewise.
10661 * regclass.c: Likewise.
10662 * regmove.c: Likewise.
10663 * reg-stack.c: Likewise.
10664 * reload1.c: Likewise.
10665 * rtlanal.c: Likewise.
10667 2002-01-15 Kazu Hirata <kazu@hxi.com>
10669 * config/i386/i386.c: Fix formatting.
10671 2002-01-15 Jakub Jelinek <jakub@redhat.com>
10673 * c-typeck.c (process_init_element): Don't save_expr
10674 COMPOUND_LITERAL_EXPR if just its initializer will be used.
10676 2002-01-15 David Edelsohn <edelsohn@gnu.org>
10678 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
10679 emit optional traceback table if optimize_size or TARGET_ELF.
10680 * config/rs6000/rs6000.md (prefetch): New.
10682 2002-01-15 Andreas Jaeger <aj@suse.de>
10684 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
10686 2002-01-15 Kazu Hirata <kazu@hxi.com>
10688 * mips-tfile.c: Fix formatting.
10690 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
10692 * unroll.c (final_reg_note_copy): Fix previous commit.
10694 2002-01-14 Kazu Hirata <kazu@hxi.com>
10696 * config/h8300/h8300-protos.h: Remove the prototype for
10698 * config/h8300/h8300.c (eq_operator): Remove.
10700 2002-01-14 Richard Henderson <rth@redhat.com>
10702 * config/i386/i386.md (prefetch): Tidy.
10703 (prefetch_3dnow): Fix locality operand.
10705 2002-01-14 Richard Henderson <rth@redhat.com>
10707 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
10708 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
10710 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
10712 * reload1.c (reload_combine): Pass reg_sum replacement through
10713 copy_rtx in loop performing multiple changes.
10715 2002-01-14 Jakub Jelinek <jakub@redhat.com>
10717 * except.c (remove_unreachable_regions): New.
10718 (free_eh_status): Clear exception_handler_labels.
10719 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
10720 (find_exception_handler_labels): Don't add the same label more than
10722 (remove_exception_handler_label): Don't die if
10723 find_exception_handler_labels hasn't been called for the current
10726 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
10728 * toplev.c (rest_of_compilation): Rebuild jump labels after
10731 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
10733 * doc/extend.texi: Move documentation of X86 built-in functions
10735 * doc/invoke.texi: From here.
10736 * doc/sourcebuild.texi: Document location of documentation for
10737 machine built-in functions.
10739 2002-01-13 Christopher Faylor <cgf@redhat.com>
10741 * cppfiles.c (TEST_THRESHOLD): New macro.
10742 (SHOULD_MMAP): Ditto.
10743 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
10746 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
10748 * unroll.c (final_reg_note_copy): Properly handle
10750 (unroll_loops): Fix LOOP_CONDITION heuristics.
10752 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
10754 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
10755 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
10757 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
10759 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
10762 2002-01-14 Tom Rix <trix@redhat.com>
10764 * config/rs6000/rs6000.md: Fix typo with sradi.
10766 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
10768 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
10769 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
10770 (clrstrdi, clrstrsi): Adapt callers.
10772 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
10774 (movti splitter): Never use register 0 as base register.
10776 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
10778 * combine.c (simplify_shift_const): Always generate new rtx
10779 for shift expression instead of reusing given expression.
10781 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10783 * config/alpha/alpha.c (alpha_expand_mov): Don't call
10784 alpha_legitimize_address unless mode is Pmode.
10786 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
10788 * doc/md.texi (Modifiers): Document the '*' constraint for the
10791 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
10792 * doc/extend.texi (Function Attributes): 'interrupt' is valid
10795 2002-01-13 Richard Henderson <rth@redhat.com>
10797 * reload.c (find_reloads): Use a hard reg destination as reload reg
10798 for an input reload of the source.
10800 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10802 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
10805 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
10807 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
10808 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
10810 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
10812 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10814 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
10816 2002-01-12 Tom Rix <trix@redhat.com>
10818 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
10821 2002-01-12 Richard Henderson <rth@redhat.com>
10823 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
10825 * doc/invoke.texi: Update Alpha options.
10827 * doc/invoke.texi: Update i386 built-in function lists.
10829 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
10831 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
10832 referencing outside.
10834 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10836 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
10837 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
10838 offsets, and change line folding.
10839 * optabs.c (expand_binop): Remove warnings.
10840 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
10842 2002-01-12 Graham Stott <grahams@redhat.com>
10844 * attribs.c (handle_deprecated_attribute): constify WHAT.
10845 * diagnostic.c (warn_deprecated_use): Add braces, fixes
10846 dangling else warning and constify WHAT.
10847 * except.h (struct function, struct inline_remap): Move
10848 struct tag forward defs before all prototypes.
10849 (duplicate_eh_regions): Whitespace.
10851 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
10853 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
10854 MODE_BASE_REG_CLASS.
10855 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
10857 2002-01-12 Richard Henderson <rth@redhat.com>
10859 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
10860 (ix86_expand_vector_move): New.
10861 (bdesc_2arg): Remove andps, andnps, orps, xorps.
10862 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
10863 Remove old prefetch builtins. Special case the logicals removed above.
10864 (ix86_expand_builtin): Likewise.
10865 (safe_vector_operand): Use V4SFmode, not TImode.
10866 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
10867 (ix86_expand_timode_binop_builtin): New.
10868 * config/i386/i386-protos.h: Update.
10869 * config/i386/i386.h (enum ix86_builtins): Update.
10870 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
10871 Use ix86_expand_vector_move in vector move expanders.
10872 (movti_internal, movti_rex64): Add xorps alternative.
10873 (sse_clrv4sf): Rename and adjust from sse_clrti.
10874 (prefetch): Don't work so hard.
10875 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
10876 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
10877 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
10879 2002-01-11 Richard Henderson <rth@redhat.com>
10881 * config/i386/mmintrin.h: New file.
10882 * config/i386/xmmintrin.h: New file.
10883 * config.gcc (i?86-*-*): Add extra_headers.
10884 * simplify-rtx.c (simplify_unary_operation): Handle saturating
10886 (simplify_binary_operation): Handle saturating arithmetic codes.
10887 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
10888 not the lowpart subreg.
10889 (ix86_expand_builtin): Return a TImode dummy register instead of 0
10891 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
10893 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10895 * conflict.c (conflict_graph_compute): Free regsets when finished.
10896 * ssa.c (compute_coalesced_reg_partition): Likewise.
10898 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10900 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
10901 every where we allocate a register.
10903 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10905 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
10906 * lcm.c (compute_earliest, compute_farthest): Likewise.
10908 2002-01-11 Janis Johnson <janis187@us.ibm.com>
10910 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
10912 2002-01-11 Janis Johnson <janis187@us.ibm.com>
10914 * doc/rtl.texi (Insns): Fix 2 typos.
10916 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
10918 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
10919 options. Use @table @gcctabopt for MMIX options. Add index
10920 entries for MMIX options. Start new paragraph with first
10921 heading of the machine-dependent options.
10923 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
10926 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
10927 * combine.c (force_to_mode): Same.
10928 * reload1.c (clear_reload_reg_in_use): Same.
10930 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
10932 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
10935 2002-01-11 Andreas Jaeger <aj@suse.de>,
10936 Brad Lucier <lucier@math.purdue.edu>
10938 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
10941 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
10943 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
10944 Protect with IN_LIBGCC.
10945 (LINK_EH_SPEC): Add required trailing space.
10947 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
10949 * c-tree.h: Move function declarations so that they are listed
10950 under the filename which contains them.
10951 (check_identifier, finish_decl_top_level,
10952 lookup_name_current_level_global, shadow_record_fields): Remove.
10954 2002-01-11 Andreas Jaeger <aj@suse.de>
10956 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
10959 2002-01-10 Richard Henderson <rth@redhat.com>
10961 * config/alpha/alpha.c (print_operand): Add 'J'.
10962 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
10963 new operand with the sequence number for the lituse. When splitting
10964 the insns, use gen_movdi_er_high_g and generate a sequence number.
10965 (gen_movdi_er_high_g): Print the sequence number if non-zero.
10967 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
10969 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
10970 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
10972 (altivec_expand_builtin): Same.
10973 (altivec_expand_stv_builtin): New.
10975 * config/rs6000/rs6000.h (rs6000_builtins): Same.
10977 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
10978 ("altivec_lvehx"): New.
10979 ("altivec_lvewx"): New.
10980 ("altivec_lvxl"): New.
10981 ("altivec_lvx"): New.
10982 ("altivec_stvx"): New.
10983 ("altivec_stvebx"): New.
10984 ("altivec_stvehx"): New.
10985 ("altivec_stvewx"): New.
10986 ("altivec_stvxl"): New.
10988 2002-01-10 Richard Henderson <rth@redhat.com>
10990 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
10991 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
10992 care not to delete instructions twice.
10994 2002-01-10 Zack Weinberg <zack@codesourcery.com>
10996 * toplev.c: Don't declare environ (it's not used anywhere).
10997 * configure.in: Don't check for declaration of environ.
10998 * config/i386/xm-mingw32.h: Don't #define environ.
10999 * config.in, configure: Regenerate.
11001 2002-01-10 Zack Weinberg <zack@codesourcery.com>
11003 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
11004 * configure: Regenerate.
11006 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
11007 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
11008 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
11010 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
11011 LIMITS_H_TEST here, not in m68k/x-next.
11012 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
11013 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
11015 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
11016 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
11017 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
11019 * config/i386/x-djgpp: Renamed i386/t-djgpp.
11020 * config/m88k/x-dolph: Renamed m88k/t-dolph.
11021 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
11022 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
11023 replacement of quadlib.asm with quadlib.c.
11025 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
11026 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
11027 config/rs6000/xm-beos.h: Delete file.
11029 * config.gcc: Update to match above changes.
11031 2002-01-10 Kazu Hirata <kazu@hxi.com>
11033 * config/h8300/h8300.h: Fix comment typos.
11034 * config/h8300/h8300.md: Likewise.
11035 * config/h8300/lib1funcs.asm: Likewise.
11037 2002-01-10 Dale Johannesen <dalej@apple.com>
11039 PR optimization/5269
11040 * unroll.c (precondition_loop_p): Make *increment be the correct
11041 sign when n_iterations known, to avoid confusing caller.
11043 2002-01-10 Kazu Hirata <kazu@hxi.com>
11045 * doc/extend.texi (deprecated): Fix a typo.
11047 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
11049 * basic-block.h (update_br_prob_note): Declare.
11050 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
11051 (try_forward_edges): Care negative frequencies and update note.
11052 (outgoing_edges_match): Tweek conditional merging heuristics.
11053 (try_crossjump_to_edge): use update_br_prob_note.
11054 * cfglayout.c (fixup_reorder_chain): Likewise.
11055 * cfrtl.c (update_br_prob_note): New.
11056 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
11058 * i386.c (ix86_decompose_address): Return -1 if address contains
11060 (legitimate_address_p): Require ix86_decompose_address to return 1.
11062 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
11063 (cprop_insn): Likewise.
11065 2002-01-10 Kazu Hirata <kazu@hxi.com>
11067 * toplev.c: Fix formatting.
11068 * tree.c: Likewise.
11069 * tree-dump.c: Likewise.
11070 * unroll.c: Likewise.
11071 * unwind-dw2.c: Likewise.
11072 * unwind-dw2-fde.c: Likewise.
11073 * unwind-dw2-fde-glibc.c: Likewise.
11074 * unwind-sjlj.c: Likewise.
11076 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
11078 * doc/invoke.texi: Document PDP-11 options.
11080 2002-01-10 Kazu Hirata <kazu@hxi.com>
11082 * config/h8300/h8300.h: Fix formatting.
11084 2002-01-10 Ira Ruben <ira@apple.com>
11086 Add __attribute__ ((deprecated)).
11087 * extend.texi: Document __attribute__ ((deprecated)).
11088 * invoke.texi: Document -Wno-deprecated-declarations.
11089 * testsuite/g++.dg/other/deprecated.C: New C++ test.
11090 * testsuite/gcc.dg/deprecated.c: New C test.
11091 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
11092 (c_common_attribute_table): Add "deprecated" entry.
11093 (handle_deprecated_attribute): New function.
11094 * c-decl.c (deprecated_states): New enum.
11095 deprecated_state: State of "deprecated" handling.
11096 (start_decl): Set deprecated_state based on attributes.
11097 (grokdeclarator): Test for deprecated uses, propagate attribute.
11098 * c-typeck.c (build_component_ref): Test for deprecated fields.
11099 (build_external_ref): Test for deprecated primaries.
11100 * diagnostic.c (warn_deprecated_use) New function to issue
11101 warnings about __attribute__ ((depricated)) references.
11102 * flags.h (warn_deprecated_decl): Extern declared for
11103 -W[no-]deprecated-declarations option.
11104 * print-tree.c (print_node): Show deprecated flag status.
11105 * toplev.c (warn_deprecated_decl): Defined.
11106 (W_options): Added "deprecated-declaration".
11107 * toplev.h (warn_deprecated_use): Extern declared.
11108 * tree.h (struct tree_common): Define deprecated_flag.
11109 (TREE_DEPRECATED): New macro to access flag.
11110 * cp/call.c (build_call): Test for deprecated calls.
11111 * cp/class.c (add_implicitly_declared_members): Set global
11112 flag to tell grokdeclarator to not issue deprecated warnings.
11113 * cp/cp-tree.h: Add extern for adding_implicit_members.
11114 * cp/decl.c (deprecated_states): New enum.
11115 (start_decl): Set deprecated_state based on attributes.
11116 (grokdeclarator): Test for deprecated uses, propagate attribute.
11117 * cp/lex.c (do_identifier): Test for deprecated primaries.
11118 * cp/typeck.c (build_component_ref): Test for deprecated fields.
11120 2002-01-10 Ira Ruben <ira@apple.com>
11122 Fix to assign attributes to inline member functions.
11123 * cp/decl.c (start_method): Handle attrlist.
11125 2002-01-10 Kazu Hirata <kazu@hxi.com>
11127 * combine.c (expand_field_assignment): Use subreg_lsb().
11129 2002-01-10 David Edelsohn <edelsohn@gnu.org>
11131 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
11132 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
11133 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
11134 Recurse for any operand of AND as long as constant is non-zero.
11136 2002-01-10 Kazu Hirata <kazu@hxi.com>
11138 * config/h8300/h8300.md: Remove constraints from expanders.
11140 2002-01-10 Kazu Hirata <kazu@hxi.com>
11142 * varasm.c: Fix formatting.
11143 * varray.c: Likewise.
11144 * vmsdbgout.c: Likewise.
11145 * xcoffout.c: Likewise.
11147 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
11149 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
11150 update edge probabilities to match.
11152 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
11154 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
11156 * doc/languages.texi, doc/sourcebuild.texi: New files.
11157 * doc/configfiles.texi: Make a subsubsection. Update.
11158 * doc/configterms.texi: Add @node. Remove warning that this isn't
11159 instructions for building GCC.
11160 * doc/makefile.texi: Make a subsection.
11161 * doc/gccint.texi: Update.
11163 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
11165 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
11167 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
11169 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
11171 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
11173 * optabs.c (expand_fix): Look for wider integer modes first.
11175 * i386.md (mov?f): Avoid the fake const double trick for medium
11177 (min?f*/max?f*): Prohibit memory operands for i387 variant.
11178 (fop_df_4): Disable for SSE compilation.
11180 2002-01-10 Graham Stott <grahams@redhat.com>
11182 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
11183 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
11185 2002-01-10 Richard Henderson <rth@redhat.com>
11187 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
11189 2002-01-10 Richard Henderson <rth@redhat.com>
11191 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
11192 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
11194 2002-01-10 Kazu Hirata <kazu@hxi.com>
11196 * combine.c (can_combine_p): Fix a comment typo.
11198 2002-01-09 Zack Weinberg <zack@codesourcery.com>
11200 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
11201 empty list correctly. Change loop index $t to $f for
11202 consistency with rest of Makefile.
11204 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
11206 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
11207 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
11209 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
11210 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
11211 (altivec_init_builtins): Same.
11212 (altivec_expand_unop_builtin): Return NULL_RTX on error.
11213 (altivec_expand_binop_builtin): Same.
11214 (altivec_expand_ternop_builtin): Same.
11217 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
11218 ("altivec_vctuxs"): Fix typo.
11219 ("altivec_vnmsubfp"): Same.
11220 ("altivec_dssall"): New.
11221 ("altivec_mfvscr"): New.
11222 ("altivec_dss"): New.
11223 ("altivec_lvsl"): New.
11224 ("altivec_lvsr"): New.
11225 ("altivec_dstt"): New.
11226 ("altivec_dstst"): New.
11227 ("altivec_dststt"): New.
11228 ("altivec_dst"): New.
11230 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
11231 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
11233 2002-01-09 Richard Henderson <rth@redhat.com>
11235 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
11237 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
11239 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
11241 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
11243 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
11245 2002-01-09 Kazu Hirata <kazu@hxi.com>
11247 * read-rtl.c: Fix formatting.
11248 * real.c: Likewise.
11249 * regclass.c: Likewise.
11250 * regrename.c: Likewise.
11251 * reg-stack.c: Likewise.
11252 * reload1.c: Likewise.
11253 * reload.c: Likewise.
11256 2002-01-09 Kazu Hirata <kazu@hxi.com>
11258 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
11259 to extract items in the expr_list chain.
11261 2002-01-09 Richard Henderson <rth@redhat.com>
11263 * config/vax/vax.c (vax_rtx_cost): Never abort.
11265 * config/vax/vax.h (REAL_ARITHMETIC): Define.
11267 2002-01-09 Jan Hubicka <jh@suse.cz>
11269 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
11271 2002-01-09 Richard Henderson <rth@redhat.com>
11273 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
11274 Unify code from various alternatives.
11276 2002-01-09 Richard Henderson <rth@redhat.com>
11278 * regrename.c (copy_value): Ignore the copy if the source register
11279 is present in the value chain with a narrower mode.
11281 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11283 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
11284 for the c4x target. Also improve layout.
11286 2002-01-09 Richard Henderson <rth@redhat.com>
11288 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
11289 * config/m32r/m32r.md (and ior xor splitters): Swap operands
11290 to match insn patterns.
11292 2002-01-09 Richard Henderson <rth@redhat.com>
11294 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
11295 (copyprop_hardreg_forward_1): Likewise.
11297 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
11299 * pa.md (decrement_and_branch_until_zero): Change predicate for
11300 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
11302 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
11304 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
11305 gets undefined. For Darwin.
11307 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11309 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
11311 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11313 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
11315 2002-01-08 Richard Henderson <rth@redhat.com>
11317 * regrename.c (copy_value): Ignore overlapping copies.
11319 2002-01-08 Richard Henderson <rth@redhat.com>
11321 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
11322 as needed to avoid shared structure.
11324 2002-01-08 Kazu Hirata <kazu@hxi.com>
11326 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
11329 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
11331 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
11332 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
11333 documentation of obsolete macros.
11334 * system.h: Poison these macros.
11335 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
11336 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
11337 config/c4x/c4x.h, config/clipper/clipper.h,
11338 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
11339 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
11340 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
11341 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
11342 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
11343 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
11344 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
11345 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
11346 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
11347 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
11348 config/sparc/sparc.h, config/stormy16/stormy16.h,
11349 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
11350 definitions and commented out definitions of obsolete macros.
11351 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
11352 of MAX_INT_TYPE_SIZE.
11354 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
11356 * config/s390/s390.c (s390_preferred_reload_class): Never
11357 return ADDR_REGS if it isn't a subset of the given class.
11358 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
11359 FP_REGS, but all superclasses as well.
11361 * config/s390/s390.c (s390_function_profiler): Fix thinko.
11363 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
11364 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
11365 must not be a const_int.
11367 2002-01-08 Richard Henderson <rth@redhat.com>
11369 * Makefile.in (toplev.o): Depend on options.h.
11370 (gcc.o): Depend on specs.h.
11372 2002-01-08 Jakub Jelinek <jakub@redhat.com>
11374 * expr.c (store_expr): Convert VOIDmode constants back to target's
11377 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11379 * doc/invoke.texi: Markup gcc as @command. Refer to
11380 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
11381 of http://gcc.gnu.org/thanks.html.
11383 2002-01-08 Dale Johannesen <dalej@apple.com>
11385 * config/rs6000/rs6000.md: Add missing int register
11386 target case to movdf_low.
11388 2002-01-08 Zack Weinberg <zack@codesourcery.com>
11390 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
11391 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
11392 (cppinit.o): Depend on except.h.
11393 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
11394 s-specs): New rules.
11396 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
11397 Don't create specs.h/options.h/gencheck.h here. Remove
11398 unnecessary variable settings from last argument of AC_OUTPUT.
11399 * config.in, configure: Regenerate.
11400 * intl.c: Hardcode package name as "gcc".
11402 * cppinit.c: Include except.h.
11403 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
11405 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
11406 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
11407 (!)USING_SJLJ_EXCEPTIONS.
11408 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
11410 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
11412 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
11413 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
11414 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
11415 documentation of obsolete macros.
11416 * system.h: Poison these macros.
11417 * config/d30v/d30v.h, config/ns32k/encore.h,
11418 config/stormy16/stormy16.h: Remove definitions and commented out
11419 definitions of obsolete macros.
11421 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
11423 * objc/objc-act.c (handle_class_ref): Mark the declaration of
11424 %sobjc_class_ref_%s as used - to prevent unwanted compiler
11427 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
11429 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
11430 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
11431 to insn adjusting stack/frame pointer.
11432 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
11433 accept operands that cause the insn to be non-splittable.
11435 2002-01-08 Graham Stott <grahams@redhat.com>
11437 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
11438 (C_TYPE_FIELDS_VOLATILE): Likewise.
11439 (C_TYPE_BEING_DEFINED): Likewise.
11440 (C_IS_RESERVED_WORD): Likewise.
11441 (C_TYPE_VARIABLE_SIZE): Likewise.
11442 (C_DECL_VARIABLE_SIZE): Likewise.
11443 (C_MISSING_PROTOTYPE_WARNED): Likewise.
11444 (C_SET_EXP_ORIGINAL_CODE): Likewise.
11445 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
11447 (C_DECL_ANTICIPATED): Likewise.
11448 (c_build_type_variant): Add parenthesis.
11450 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
11452 * gcc.c (option_map): Remove --version.
11453 (process_command): Handle -fversion following the GNU Coding
11454 Standards. Partially addresses PR other/704.
11456 2002-01-08 Graham Stott <grahams@redhat.com>
11458 * combine.c (combine_instructions): Fix typo.
11460 2002-01-08 Graham Stott <grahams@redhat.com>
11462 * debug.h: Use "tree" and "rtx" throughout.
11464 * debug.c: Likewise.
11466 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
11468 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
11469 constant pool, use the pool's version of the symbol instead.
11471 2002-01-07 Richard Henderson <rth@redhat.com>
11473 * regrename.c (find_oldest_value_reg): Ignore the value chain if
11474 the original register was copied in a mode with a fewer number of
11475 hard registers than the desired mode.
11476 (copyprop_hardreg_forward_1): Likewise.
11477 (debug_value_data): Fix loop test.
11478 * toplev.c (parse_options_and_default_flags): Reenable
11479 -fcprop-registers at -O1.
11481 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
11483 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
11484 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
11486 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
11489 * config/rs6000/rs6000.md: Add altivec predicate patterns.
11491 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
11493 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
11494 (pa_output_function_prologue): Output local label at the beginning of
11495 the prologue when profiling.
11496 (hppa_profile_hook): Use the local label rather than the function label.
11497 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
11499 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
11501 * config/rs6000/rs6000.c (print_operand): Remove extra space.
11502 (altivec_expand_unop_builtin): Fix thinko.
11503 (altivec_expand_binop_builtin): Same.
11504 (altivec_expand_ternop_builtin): Same.
11505 (altivec_expand_builtin): Same.
11507 2002-01-07 Richard Henderson <rth@redhat.com>
11509 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
11511 2002-01-07 Jason Merrill <jason@redhat.com>
11513 * unwind-dw2.c (execute_cfa_program): Use < again.
11515 2002-01-07 Jakub Jelinek <jakub@redhat.com>
11517 * predict.c (combine_predictions_for_insn): Avoid division by zero.
11519 2002-01-07 Jakub Jelinek <jakub@redhat.com>
11521 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
11522 Don't allow -1 - x -> ~x simplifications in the first pass.
11524 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
11526 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
11528 (altivec_expand_binop_builtin): Same.
11529 (altivec_expand_unop_builtin): Same.
11530 (print_operand): Fix typo.
11531 (bdesc_1arg): Add vupk* variants.
11533 * rs6000.h (rs6000_builtins): Add vupk* enums.
11535 * rs6000.md: Add altivec_vupk* variants.
11537 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
11539 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
11540 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
11541 and last update dates.
11543 2002-01-07 Janis Johnson <janis187@us.ibm.com>
11545 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
11547 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
11549 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
11550 * config/avr/avr.h (CPP_SPEC): Likewise.
11551 (LINK_SPEC): Likewise.
11552 (CRT_BINUTILS_SPECS): Likewise.
11553 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11554 * doc/invoke.texi (AVR Options): Document them.
11556 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
11558 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
11561 2002-01-07 Graham Stott <grahams@redhat.com>
11563 * config/i386/i386.h: Update copyright date.
11564 (HALF_PIC_PTR): Add parenthesis.
11565 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
11566 (CONSTANT_ALIGNMENT): Add parenthesis.
11567 (DATA_ALIGNMENT): Likewise.
11568 (LOCAL_ALIGNMENT): Likewise.
11569 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
11570 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
11571 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
11572 (HARD_REGNO_NREGS): Add paranethesis.
11573 (VALID_SSE_REG_MODE): Whitespace.
11574 (VALID_MMX_REG_MODE): Whitespace.
11575 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
11576 (ix86_hard_regno_mode_ok): Add parenthesis.
11577 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
11578 (RETURN_IN_MEMORY): Whitespace.
11579 (N_REG_CLASSES): Add parenthesis.
11580 (INTEGER_CLASS_P): Add parenthesis and wrap.
11581 (FLOAT_CLASS_P): Likewise.
11582 (SSE_CLASS_P): Likewise.
11583 (MMX_CLASS_P): Likewise.
11584 (MAYBE_INTEGER_CLASS_P): Likewise.
11585 (MAYBE_FLOAT_CLASS_P): Likewise.
11586 (MAYBE_SSE_CLASS_P): Likewise.
11587 (MAYBE_MMX_CLASS_P): Likewise.
11588 (Q_CLASS_P): Likewise.
11589 (GENERAL_REGNO_P): Uppercase macro parameter.
11590 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
11591 (FP_REGNO_P): Likewise.
11592 (ANY_FP_REGNO_P): Uppercase macro parameter.
11593 (SSE_REGNO_P): Likewise.
11594 (SSE_REGNO): Likewise.
11595 (SSE_REG_P): Likewise.
11596 (SSE_FLOAT_MODE_P): Likewise.
11597 (MMX_REGNO_P): Likewise.
11598 (MMX_REG_P):Likewise.
11599 (STACK_REG_P): Likewise.
11600 (NON_STACK_REG_P): Likewise.
11601 (STACK_TOP_P): Likewise.
11602 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
11603 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
11604 (SECONDARY_MEMORY_NEEDED): Likewise.
11605 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
11606 (MD_ASM_CLOBBERS): Whitespace and wrap.
11607 (MUST_PASS_IN_STACK): Whitespace and wrap.
11608 (RETURN_POPS_ARGS): Add parenthesis.
11609 (INIT_CUMULATIVE_ARGS): Likewise.
11610 (FUNCTION_ARG): Likewise.
11611 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
11612 (SETUP_INCOMING_VARARGS): Likewise.
11613 (BUILD_VA_LIST_TYPE): Add parenthesis.
11614 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
11616 (EXPAND_BUILTIN_VA_ARG): Likewise.
11617 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
11618 (INITIALIZE_TRAMPOLINE): Add parenthesis.
11619 (INITIAL_ELIMINATION_OFFSET): Likewise.
11620 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
11621 (REGNO_OK_FOR_BASE_P): Likewise.
11622 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
11623 (REGNO_OK_FOR_DIREG_P): Likewise.
11624 (REG_OK_FOR_INDEX_P): Whitespace.
11625 (REG_OK_FOR_BASE_P): Whitespace.
11626 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
11628 (FIND_BASE_TERM): Fix typo.
11629 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
11630 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
11631 (SYMBOLIC_CONST; Whitespace.
11632 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
11633 (ENCODE_SECTION_INFO): Whitespace.
11634 (FINALIZE_PIC): Remove do { ... } while (0).
11635 (PROMOTE_MODE): Wrap in do { ... } while (0).
11636 (CONST_COSTS): Whitespace.
11637 (RTX_COSTS): Add paramethesis, whitespace and wrap.
11638 (REGISTER_MOVE_COST): Add parenthesis.
11639 (MEMORY_MOVE_COST): Likewise.
11640 (EXTRA_CC_MODES): Whitespace.
11641 (SELECT_CC_MODE): Add parenthesis and whitespace.
11642 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
11643 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
11644 (ASM_OUTPUT_LABEL): Add paramethesis.
11645 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
11646 (ASM_OUTPUT_REG_POP): Likewise.
11647 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
11648 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11650 * config/i386/i386.c: Update copyright.
11651 (CHECK_STACK_LIMIT): Add parenthesis.
11652 (AT_BP): Uppercase macro parameter.
11653 (x86_64_int_parameter_registers): Constify.
11654 (x86_64_int_return_registers): Likewise.
11655 (ix86_compare_op0): Use rtx.
11656 (construct_container): Constify INTREG parameter.
11657 (function_arg): Use rtx.
11659 * diagnostic.h: Update copyright date.
11660 (output_buffer_state): Add parenthesis.
11661 (output_buffer_format_args): Likewise.
11663 * combine.c (combine_instructions): Replace XEXP (links, 0)
11666 2002-01-06 H.J. Lu <hjl@gnu.org>
11668 * cfgcleanup.c (thread_jump): Fix 2 typos.
11670 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
11672 * config.gcc: Add support for --enable-altivec.
11674 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
11676 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
11678 2002-01-06 Jakub Jelinek <jakub@redhat.com>
11680 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
11681 __objc_class_name_*.
11683 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
11685 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
11687 2002-01-06 Richard Henderson <rth@redhat.com>
11689 * reorg.c (emit_delay_sequence): Remove death notes, not merely
11690 nop them out. Increment label reference count for REG_LABEL.
11691 (fill_slots_from_thread): Frob label reference count around
11692 delete_related_insns.
11694 2002-01-05 Richard Henderson <rth@redhat.com>
11696 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
11699 2002-01-05 Richard Henderson <rth@redhat.com>
11701 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
11702 * integrate.c (output_inline_function): Likewise.
11703 * toplev.c (rest_of_compilation): Do it here instead. Move call
11704 to remove_unnecessary_notes after emitting abstract instance.
11705 Force an emitted nested function to have its parent emited as well.
11706 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
11708 (rtl_for_decl_location): Do not look at reload data structures
11709 before reload has run.
11711 2002-01-05 Kazu Hirata <kazu@hxi.com>
11713 * cse.c: Fix formatting.
11714 * dwarf2asm.c: Likewise.
11715 * dwarf2out.c: Likewise.
11716 * explow.c: Likewise.
11717 * expmed.c: Likewise.
11718 * function.c: Likewise.
11719 * gcov.c: Likewise.
11720 * gencheck.c: Likewise.
11721 * genrecog.c: Likewise.
11722 * ggc-common.c: Likewise.
11723 * ggc-page.c: Likewise.
11724 * global.c: Likewise.
11726 2002-01-05 Kazu Hirata <kazu@hxi.com>
11728 * combine.c: Fix formatting.
11730 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
11733 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
11735 2002-01-05 David Edelsohn <edelsohn@gnu.org>
11737 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
11738 as 1 for __powerpc64__ as well.
11740 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
11742 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
11745 2002-01-05 Daniel Berlin <dan@dberlin.org>
11747 * lcm.c: Revert change, due to performance regression it causes on
11748 SPEC because it's slightly more conservative (sigh, I hate
11751 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
11753 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
11755 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
11757 * doc/cppinternals.texi: Update.
11759 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
11761 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
11762 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
11764 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
11765 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
11766 kludge for pre-october-14th mmix versions to handle new-found bug
11767 with PUSHJ/PUSHGO and the register stack.
11768 * config/mmix/mmix.h (struct machine_function): Rename member
11769 has_call_value_without_parameters to has_call_without_parameters.
11770 All referers changed.
11771 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
11772 TARGET_MASK_BRANCH_PREDICT): New macros.
11773 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
11774 -mno-reg-stack-fill-bug-workaround.
11775 * config/mmix/mmix.md ("call"): Set struct machine member
11776 has_call_without_parameters.
11778 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
11780 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
11782 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
11784 * cfgcleanup.c: Include tm_p.h
11785 (mark_effect): Fix handling of hard register; fix handling of SET
11787 2002-01-04 Kazu Hirata <kazu@hxi.com>
11789 * config/h8300/h8300.md (anonymous patterns): Check that
11790 operands are registers before using REGNO on them.
11792 2002-01-03 Roland McGrath <roland@frob.com>
11794 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
11796 2002-01-04 Jakub Jelinek <jakub@redhat.com>
11798 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
11799 * c-common.h (genrtl_expr_stmt_value): Likewise.
11800 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
11801 (expand_expr_stmt_value): Add maybe_last argument.
11802 Don't warn about statement with no effect if it is the last statement
11803 in expression statement.
11804 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
11805 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
11806 expand_expr_stmt_value.
11807 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
11808 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
11809 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
11810 as maybe_last to expand_expr_stmt_value.
11812 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
11814 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
11815 be passed in, do not build it.
11816 (c_begin_if_stmt): New function.
11817 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
11818 * c-common.h (c_expand_start_cond): Update prototype.
11819 (c_begin_if_stmt): Prototype new function.
11820 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
11821 * c-parse.in (if_prefix): Use c_begin_if_stmt,
11822 c_begin_while_stmt and c_finish_while_stmt_cond.
11824 2002-01-04 William Cohen <wcohen@redhat.com>
11826 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
11827 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
11828 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
11829 * config/pa/som.h (ASM_FILE_START): Likewise.
11831 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
11833 * lcm.c: Include df.h.
11834 Add available_transfer_function prototype.
11835 (compute_available): Rework to use iterative dataflow framework.
11836 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
11837 with bb_info in df.h
11838 (available_transfer_function): New function.
11840 * Makefile.in (lcm.o): add df.h to dependencies.
11842 2002-01-04 Richard Henderson <rth@redhat.com>
11844 * config/alpha/alpha.c (some_operand): Accept HIGH.
11845 (input_operand): Likewise; accept simple references to globals.
11846 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
11847 (alpha_const_double_ok_for_letter_p): Likewise.
11848 (alpha_extra_constraint): Likewise.
11849 (alpha_preferred_reload_class): Likewise. Do not force
11850 symbolic constants to memory.
11851 (alpha_legitimate_address_p): Accept simple references
11852 to small_symbolic_operand.
11853 (alpha_legitimize_address): New arg scratch. Be prepared to be
11854 called when no_new_pseudos. Emit simple symbolic references.
11855 Split integers into low, high, and rest.
11856 (alpha_expand_mov): Use alpha_legitimize_address.
11857 (some_small_symbolic_mem_operand): New.
11858 (split_small_symbolic_mem_operand): New.
11859 * config/alpha/alpha-protos.h: Update.
11860 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
11861 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
11862 (EXTRA_CONSTRAINT): Likewise.
11863 (PREFERRED_RELOAD_CLASS): Likewise.
11864 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
11865 (PREDICATE_CODES): Update.
11866 * config/alpha/alpha.md: New post-reload splitters to convert
11867 simplfied symbolic operands to the form that references $29.
11868 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
11869 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
11871 2002-01-03 Richard Henderson <rth@redhat.com>
11873 * local-alloc.c (function_invariant_p): Update commentary.
11875 2002-01-04 H.J. Lu <hjl@gnu.org>
11877 * toplev.c (rest_of_compilation): Fix a typo when calling
11880 2002-01-03 Kazu Hirata <kazu@hxi.com>
11882 * c-common.c: Fix formatting.
11883 * diagnostic.c: Likewise.
11884 * doloop.c: Likewise.
11885 * dwarf2out.c: Likewise.
11887 2002-01-03 Kazu Hirata <kazu@hxi.com>
11889 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
11890 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
11892 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
11894 * cpperror.c: Update comments and copyright.
11895 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
11896 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
11898 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
11900 * collect2.c (main): Use strcmp when testing for "-shared".
11902 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
11904 * cppmacro.c: Don't include intl.h. Update comments.
11905 (new_number_token): Allocate enough buffer for 64-bit unsigned
11906 integers; update prototype.
11907 * cppmain.c: Update comments.
11909 2002-01-03 William Cohen <wcohen@redhat.com>
11911 * function.h (struct function): Add profile.
11912 (current_function_profile): New.
11913 doc/extend.texi: Update documentation.
11914 * final.c (final_start_function): Use current_function_profile
11915 instead of profile_flag.
11916 (profile_after_prologue): Likewise.
11917 * function.c (expand_function_start): Likewise.
11918 (expand_function_start): Likewise.
11919 * config/alpha/alpha.c (direct_call_operand):
11920 (alpha_does_function_need_gp): Likewise.
11921 (alpha_expand_prologue): Likewise.
11922 * config/arm/arm.c (arm_expand_prologue): Likewise.
11923 thumb_expand_prologue: Likewise.
11924 * config/d30v/d30v.c (d30v_stack_info): Likewise.
11925 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
11926 (fr30_expand_prologue): Likewise.
11927 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
11928 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
11929 * config/i386/i386.h (FINALIZE_PIC): Likewise.
11930 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
11931 * config/i960/i960.c (i960_output_function_prologue): Likewise.
11932 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
11933 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
11934 (m32r_expand_prologue): Likewise.
11935 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
11936 (m88k_expand_prologue): Likewise.
11937 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
11938 * config/mips/mips.c (compute_frame_size): Likewise.
11939 (mips_expand_prologue): Likewise.
11940 (mips_can_use_return_insn): Likewise.
11941 * config/pa/elf.h (ASM_FILE_START): Likewise.
11942 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
11943 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
11944 * config/pa/som.h (ASM_FILE_START): Likewise.
11945 * config/romp/romp.c (romp_using_r14): Likewise.
11946 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
11947 (rs6000_stack_info): Likewise.
11948 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11949 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
11950 * config/v850/v850.c (compute_register_save_size): Likewise.
11952 2002-01-03 Jakub Jelinek <jakub@redhat.com>
11954 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
11955 gen_lowpart_common fails, use gen_lowpart_SUBREG.
11957 2002-01-03 Turly O'Connor <turly@apple.com>
11959 * darwin.c (machopic_output_possible_stub_label): Don't generate
11960 stub routines for pseudo-stubs which we've just defined.
11962 2002-01-03 Kazu Hirata <kazu@hxi.com>
11964 * builtins.c: Fix formatting.
11965 * c-typeck.c: Likewise.
11966 * combine.c: Likewise.
11967 * expr.c: Likewise.
11968 * loop.c: Likewise.
11970 2002-01-03 Andreas Schwab <schwab@suse.de>
11972 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
11973 and return true if _cpp_push_next_buffer pushed a new include
11975 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
11976 _cpp_pop_file_buffer did not push a new file.
11977 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
11979 2002-01-02 Eric Christopher <echristo@redhat.com>
11981 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
11982 FIND_REG_INC_NOTE call. Update copyright.
11983 * loop.c (canonicalize_condition): Ditto.
11984 * reorg.c (delete_scheduled_jump): Ditto.
11986 2002-01-03 Kazu Hirata <kazu@hxi.com>
11988 * gcse.c: Fix formatting.
11990 2002-01-03 Graham Stott <grahams@redhat.com>
11992 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
11993 forward defs for struct tags rtx_def, union_tree, rtvec_def
11994 also output corresponding typedefs for rtx, tree, and rtvec.
11996 * system.h: Move forward defs for struct tags rtx_def, union_tree,
11997 rtvec_def along with corresponding typedefs for rtx, tree, and
11998 rtvec to config.h, hconfig.h, tconfig.h.
12000 2002-01-03 Graham Stott <grahams@redhat.com>
12002 * tree.h: Update copyright date.
12003 (IS_EXPR_CODE_CLASS): Add parenthesis.
12004 (TREE_SET_CODE): Add whitespace.
12005 (TREE_CHECK): Add parenthesis.
12006 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
12007 (CST_OR_CONSTRUCTOR_CHECK):
12008 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
12009 (TREE_SYMBOL_REFERENCED): Whitespace.
12010 (INT_CST_LT): Likewise.
12011 (INT_CST_LT_UNSIGNED): Likewise.
12012 (tree_real_cst): Unwrap comment.
12013 (tree_string): Likewise.
12014 (tree_complex): Likewise.
12015 (IDENTIFIER_POINTER): correct cast.
12016 (SAVE_EXPR_CONTEXT): Whitespace.
12017 (EXPR_WFL_FILENAME_NODE): Likewise.
12018 (EXPR_WFL_FILENAME): Remove parenthesis.
12019 (DECL_ORIGIN): Add parenthesis.
12020 (DECL_FROM_INLINE): Use NULL_TREE.
12021 (build_int_2): Whitespace.
12022 (build_type_variant): Add parenthesis.
12024 * gcc/jcf-parse.c: Update copyright date.
12025 (yyparse): Constify resource_filename.
12027 2002-01-03 Graham Stott <grahams@redhat.com>
12029 * rtl.h: Update copyright date.
12030 (RTL_CHECK1): Wrap long line.
12031 (RTL_CHECK2): Likewise.
12032 (RTL_CHECKC1): Wrap long line and whitespace.
12033 (RTL_CHECKC2): Likewise.
12034 (XWINT): Whitespace.
12040 (XBITMAP): Likewise.
12042 (XBBDEF): Likewise.
12044 (X0WINT): Likewise.
12046 (X0UINT): Likewise.
12050 (X0MODE): Likewise.
12051 (X0BITMAP): Likewise.
12052 (X0TREE): Likewise.
12053 (X0BBDEF): Likewise.
12054 (X0ADVFLAGS): Likewise.
12055 (X0CSELIB): Likewise.
12056 (X0MEMATTR): Likewise.
12057 (XCWINT): Likewise.
12059 (XCUINT): Likewise.
12063 (XCMODE): Likewise.
12064 (XCBITMAP): Likewise.
12065 (XCTREE): Likewise.
12066 (XCBBDEF): Likewise.
12067 (XCADVFLAGS): Likewise.
12068 (XCCSELIB): Likewise.
12069 (XC2EXP): Likewise.
12070 (INSN_UID): Likewise.
12071 (PREV_INSN): Likewise.
12072 (PATTERN): Likewise.
12073 (INSN_CODE): Likewise.
12074 (PUT_REG_NOTE_KIND): Likewise.
12075 (CODE_LABEL_NUMBER): Likewise.
12076 (NOTE_SOURCE_FILE): Likewise.
12077 (NOTE_BLOCK): Likewise.
12078 (NOTE_EH_HANDLER): Likewise.
12079 (NOTE_RANGE_INFO): Likewise.
12080 (NOTE_LIVE_INFO): Likewise.
12081 (NOTE_BASIC_BLOCK): Likewise.
12082 (NOTE_EXPECTED_VALUE): Likewise.
12083 (NOTE_LINE_NUMBER): Likewise.
12084 (LABEL_NAME): Likewise.
12085 (LABEL_NUSES): Likewise.
12086 (LABEL_ALTERNATE_NAME): Likewise.
12087 (ADDRESSOF_DECL): Likewise.
12088 (JUMP_LABEL): Likewise.
12089 (LABEL_NEXTREF): Likewise.
12091 (ORIGINAL_REGNO: Likewise.
12092 (HARD_REGISTER_NUM_P): Add parenthesis.
12093 (SUBREG_REG): Whitespace.
12094 (SUBREG_BYTE): Likewise.
12095 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
12096 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
12097 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
12098 (ASM_OPERANDS_INPUT_VEC): Likewise.
12099 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
12100 (ASM_OPERANDS_INPUT): Likewise.
12101 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
12102 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
12103 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
12104 (ASM_OPERANDS_INPUT_MODE): Likewise.
12105 (ASM_OPERANDS_SOURCE_FILE): Likewise.
12106 (ASM_OPERANDS_SOURCE_LINE): Likewise.
12107 (MEM_SET_IN_STRUCT_P): Minor reformat.
12108 (TRAP_CONDITION): Whitespace.
12109 (TRAP_CODE): Likewise.
12110 (COND_EXEC_TEST): Likewise.
12111 (COND_EXEC_CODE): Likewise.
12112 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
12113 (PHI_NODE_P): Add parenthesis.
12114 (plus_constant): Whitespace and add parenthesis.
12116 2002-01-03 Kazu Hirata <kazu@hxi.com>
12118 * config/avr/avr.c: Fix comment typos.
12119 * config/c4x/c4x.md: Likewise.
12120 * config/dsp16xx/dsp16xx.h: Likewise.
12121 * config/dsp16xx/dsp16xx.md: Likewise.
12122 * config/i386/i386.md: Likewise.
12123 * config/ia64/ia64.c: Likewise.
12124 * config/m32r/m32r.h: Likewise.
12125 * config/m68hc11/m68hc11.md: Likewise.
12126 * config/mmix/mmix.c: Likewise.
12127 * config/mn10200/mn10200.c: Likewise.
12128 * config/romp/romp.c: Likewise.
12129 * config/sh/sh.c: Likewise.
12130 * config/stormy16/stormy16.c: Likewise.
12131 * config/stormy16/stormy16.h: Likewise.
12132 * config/stormy16/stormy16.md: Likewise.
12134 2002-01-03 Graham Stott <grahams@redhat.com>
12136 * loop.h: Update copyright date.
12137 (LOOP_MOVABLES): Fix typo.
12138 (LOOP_REGS): Likewise.
12139 (LOOP_IVS): Likewise.
12141 2002-01-03 Graham Stott <grahams@redhat.com>
12143 * cppinit.c: Update copyright date.
12144 Don't include output.h
12145 * Makefile.in: Update copyright date.
12148 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
12151 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
12152 (-pthread) Add to RS/6000 options.
12154 2002-01-02 Kazu Hirata <kazu@hxi.com>
12156 * except.c: Fix comment typos.
12157 * loop.c: Likewise.
12158 * varasm.c: Likewise.
12159 * doc/tm.texi: Fix a typo.
12161 2002-01-02 Jakub Jelinek <jakub@redhat.com>
12163 * c-typeck.c (output_init_element): Allow initializing static storage
12164 duration objects with compound literals.
12166 2002-01-02 Richard Henderson <rth@redhat.com>
12168 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
12171 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12173 * gcc.c (default_compilers): Const-ify.
12174 * mips-tdump.c (stab_names): Likewise.
12175 * mips-tfile.c (map_coff_types, map_coff_storage,
12176 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
12177 pseudo_ops_t, pseudo_ops): Likewise.
12178 * protoize.c (default_include): Likewise
12180 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
12181 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
12182 Add array size in declaration.
12183 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
12184 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
12185 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
12186 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
12187 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
12188 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
12189 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
12190 emtens, make_nan): Const-ify.
12191 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
12192 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
12194 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
12196 * config.gcc (ia64-*-*): Set extra_headers.
12197 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
12198 * config/alpha/t-osf: Remove.
12199 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
12201 2002-01-02 David Edelsohn <edelsohn@gnu.org>
12203 * config/rs6000/t-aix43: Revert previous change.
12205 2002-01-02 Jason Merrill <jason@redhat.com>
12207 * c-decl.c (c_expand_body): Call outlining_inline_function when
12208 emitting an inline function out of line.
12210 2002-01-02 Richard Henderson <rth@redhat.com>
12212 * dwarf2out.c (limbo_die_node): Add created_for member.
12213 (new_die): New argument created_for. Update all callers.
12214 (mark_limbo_die_list): New.
12215 (dwarf2out_init): Register limbo_die_list as a root.
12216 (dwarf2out_finish): Force insert limbo dies into their function
12219 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
12222 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
12224 2002-01-02 Kazu Hirata <kazu@hxi.com>
12226 * config/h8300/fixunssfsi.c: Update copyright.
12229 * config/h8300/h8300.c: Update copyright.
12230 Eliminate warnings.
12232 2002-01-02 Kazu Hirata <kazu@hxi.com>
12234 * config/romp/romp.c: Fix comment formatting.
12235 * config/romp/romp.h: Likewise.
12236 * config/romp/romp.md: Likewise.
12237 * config/s390/s390.c: Likewise.
12238 * config/stormy16/stormy16.c: Likewise.
12239 * config/stormy16/stormy16.h: Likewise.
12241 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
12243 * c-common.h (genrtl_expr_stmt_value): Declare.
12244 * c-semantics.c (genrtl_goto_stmt): Redirect to...
12245 (genrtl_goto_stmt_value): ... this new function. Pass new
12246 argument down to expand_expr_stmt_value, taking
12247 TREE_ADDRESSABLE into account.
12248 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
12249 STMT_EXPR as addressable, i.e., one whose result we want.
12250 * expr.c (expand_expr): Don't save expression statement value
12251 of labeled_blocks or loop_exprs.
12252 * stmt.c (expand_expr_stmt): Redirect to...
12253 (expand_expr_stmt_value): ... this new function. Use new
12254 argument to tell whether to save expression value.
12255 (expand_end_stmt_expr): Reset last_expr_type and
12256 last_expr_value if we don't have either.
12257 * tree-inline.c (declare_return_variable): Mark its use
12258 statement as addressable.
12259 * tree.h: Document new use of TREE_ADDRESSABLE.
12260 (expand_expr_stmt_value): Declare.
12262 2002-01-01 Tom Rix <trix@redhat.com>
12264 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
12265 rs6000_emit_allocate_stack.
12267 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
12269 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
12270 ${srcdir}/ginclude/ to every entry in extra_headers.
12271 * configure: Regenerate.
12272 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
12273 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
12274 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
12275 * ginclude/proto.h: Rename to config/convex/proto.h.
12277 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12279 * attribs.c (handle_vector_size_attribute): Use host_integerp
12280 and tree_int_cst; remove warnings.
12281 * caller-save.c (insert_restore): Add cast to get rid of warning.
12282 (insert_save): Likewise.
12283 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
12284 * regmove.c (find_matches): Add temporary var to kill a warning.
12286 2002-01-01 Douglas B Rupp <rupp@gnat.com>
12288 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
12289 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
12290 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
12291 (vms-dwarf2eh.o): Add Makefile rule.
12292 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
12293 * config/alpha/vms-dwarf2eh.asm: New file.
12295 * gcc.c (delete_if_ordinary): Delete all versions.
12297 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
12299 * config/mmix/mmix.md: Update FIXME to not mention
12301 (MMIX_rJ_REGNUM): New define_constants constant.
12302 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
12303 "*movdicc_real"): Adjust contraints formatting.
12304 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
12305 for branch prediction.
12306 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
12308 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
12309 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
12310 number. Delete related FIXMEs.
12311 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
12312 from number to MMIX_rJ_REGNUM.
12313 (TARGET_MASK_BRANCH_PREDICT): New.
12314 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
12315 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
12316 value. Add -mbranch-predict and -mno-branch-predict.
12317 (TARGET_VERSION): Drop date.
12318 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
12319 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
12320 for finding out global symbols.
12321 (mmix_asm_output_labelref): Revert condition for global symbol.
12322 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
12323 (mmix_print_operand_punct_valid_p): A '+' is valid.
12325 See ChangeLog.6 for earlier changes.