1 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
4 mips. Add two missing commas.
6 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
8 * doc/contrib.texi (Contributors): Update Paolo Carlini's
9 and Benjamin Kosnik's entries.
11 2002-04-29 David S. Miller <davem@redhat.com>
13 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
14 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
15 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
16 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
18 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
20 * combine.c (find_split_point): Use gen_int_mode.
22 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
24 Merging code from dfa-branch:
26 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
28 * genautomata.c (output_reserv_sets): Fix typo.
30 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
32 * genautomata.c (output_reserv_sets): Remove
33 next_cycle_output_flag.
35 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
37 * sched-rgn.c (init_ready_list): Make the DFA code handle
38 USE/CLOBBER insns in the same way as the traditional
40 (new_ready): Similarly..
42 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
44 * haifa-sched.c (schedule_block): Change the DFA state only after
47 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
49 * pa.c (hppa_use_dfa_pipeline_interface): New function.
50 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
51 (override_options): Add PA7300 scheduling support.
52 (pa_adjust_cost): Update various comments. Properly
53 handle anti and output dependencies when using the
55 (pa_issue_rate): Add PA7300 scheduling support.
56 (pa_can_combine_p): Call extract_insn before calling
57 constrain_operands (taken from mainline tree).
58 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
59 * pa.md (cpu attr): Add 7300. Rewrite pipeline
60 descriptions using DFA descriptions. Add PA7300
63 2002-03-30 David S. Miller <davem@redhat.com>
65 Add UltraSPARC-III DFA scheduling support.
66 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
67 Update FP conditional move on register insn patterns to use it, as
69 (define_attr cpu): Add ultrasparc3.
70 (define_attr us3load_type): New, update integer load patterns to
71 set it, as appropriate.
72 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
73 (rest): Add UltraSPARC3 scheduling description.
74 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
75 (PROCESSOR_ULTRASPARC3): New.
76 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
77 ({ASM,CPP}_CPU_SPEC): Likewise.
78 (REGISTER_MOVE_COST): Likewise.
79 (RTX_COSTS): Likewise.
80 * config/sparc/sparc.c (sparc_override_options,
81 sparc_initialize_trampoline, sparc64_initialize_trampoline,
82 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
83 sparc_issue_rate): Likewise.
84 * config/sparc/sol2.h: Likewise.
85 * config/sparc/sol2-sld-64.h: Likewise.
86 * config/sparc/linux64.h: Likewise.
88 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
90 * doc/md.texi: Add comments about usage the latency time for the
91 different dependencies and about case when two or more conditions
92 in different define_insn_reservations returns TRUE for an insn.
94 * doc/md.texi: Add reference for automaton based pipeline
97 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
99 * doc/passes.texi: Add missed information about genattrtab.
101 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
103 * genautomata.c (output_automata_list_transition_code): Check
104 automata_list on NULL.
106 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
108 * genautomata.c (output_insn_code_cases,
109 output_automata_list_min_issue_delay_code,
110 output_automata_list_transition_code,
111 output_automata_list_state_alts_code): Comment the functions.
113 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
115 * genautomata.c (automata_list_el_t): New typedef.
116 (get_free_automata_list_el,free_automata_list_el,
117 free_automata_list, automata_list_hash, automata_list_eq_p,
118 initiate_automata_lists, automata_list_start, automata_list_add,
119 automata_list_finish, finish_automata_lists,
120 output_insn_code_cases, output_automata_list_min_issue_delay_code,
121 output_automata_list_transition_code,
122 output_automata_list_state_alts_code, add_automaton_state,
123 form_important_insn_automata_lists): New functions and prototypes.
124 (insn_reserv_decl): Add members important_automata_list and
126 (ainsn): Add members important_p.
127 (automata_list_el): New structure.
128 (first_free_automata_list_el, current_automata_list,
129 automata_list_table): New global variables.
130 (create_ainsns): Initiate member important_p.
131 (output_internal_min_issue_delay_func): Generate the switch and
132 call output_insn_code_cases.
133 (output_internal_trans_func, output_internal_state_alts_func):
135 (generate): Call initiate_automata_lists.
136 (automaton_states): New global variable.
137 (expand_automata): Call form_important_insn_automata_lists.
138 (write_automata): Call finish_automata_lists.
140 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
142 * genautomata.c (add_excls, add_presence_absence): Check that
143 cpu units in the sets belong the same automaton.
145 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
146 about that cpu units in the sets belong the same automaton.
148 * doc/md.texi: Ditto.
150 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
151 Nitin Gupta <niting@noida.hcltech.com>
153 * config/sh/sh.c (sh_use_dfa_interface): New function.
155 (sh_issue_rate): New Function.
156 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
157 TARGET_SCHED_ISSUE_RATE: define.
159 * config/sh/sh.md: Add DFA based pipeline description for SH4.
161 (define_attr insn_class): New attribute used for DFA
163 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
164 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
165 cmpeqdi_t): Likewise.
167 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
168 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
170 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
172 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
174 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
177 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
179 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
180 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
182 (output_dfa_start_func): Initiate new variable insn_codes_length,
183 (write_automata): Output definition of the new variable.
185 2001-10-02 David S. Miller <davem@redhat.com>
187 * haifa-sched.c (advance_one_cycle): New function.
188 (schedule_block): Use it.
189 (queue_to_ready): Use it, and also make sure to advance the DFA
190 state on all stall cycles, not just those where insn_queue links
193 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
195 * haifa-sched.c (max_issue): Remove last_p argument. Only return
196 non-zero if the highest-priority instruction could be scheduled.
197 (choose_ready): Remove last argument from max_issue call.
199 2001-09-28 David S. Miller <davem@redhat.com>
201 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
202 ultrasparc and 3 for other multi-issue sparcs.
204 2001-09-27 David S. Miller <davem@redhat.com>
206 * config/sparc/sparc.md (cycle_display): New pattern.
207 * config/sparc/sparc.c (sparc_cycle_display): New.
208 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
210 2001-09-25 David S. Miller <davem@redhat.com>
212 Convert all of Sparc scheduling to DFA
213 * config/sparc/sparc.md: Kill all define_function_unit
214 directives and replace with DFA equivalent.
215 * config/sparc/sparc.c (ultrasparc_adjust_cost,
216 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
217 ultra_fpmode_conflict_exists, ultra_find_type,
218 ultra_build_types_avail, ultra_flush_pipeline,
219 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
220 ultrasparc_variable_issue, ultrasparc_sched_init,
221 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
222 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
223 ultra_cur_hist, ultra_cycles_elapsed): Kill.
224 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
225 ultrasparc_store_bypass_p): New.
226 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
229 2001-09-24 David S. Miller <davem@redhat.com>
231 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
232 ready->vec[foo] not ready[foo].
234 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
236 * doc/md.texi: Correct examples for define_insn_reservations
239 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
241 * genautomata.c (create_automata): Print message about creation of
243 (generate): Remove printing meease about creation of
246 2001-09-05 David S. Miller <davem@redhat.com>
248 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
249 * config/sparc/linux64.h: Likewise.
251 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
253 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
254 schedule_block, sched_init, sched_finish): Add missed calls of
255 use_dfa_pipeline_interface.
257 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
260 * sched-vis.c (get_visual_tbl_length): Ditto.
262 2001-08-27 Richard Henderson <rth@redhat.com>
264 * genattr.c (main): Emit state_t even when not doing scheduling.
266 2001-08-27 Richard Henderson <rth@redhat.com>
268 * genautomata.c (expand_automata): Always create a description.
270 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
272 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
273 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
274 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
277 * genattr.c (main): New variable num_insn_reservations. Increase
278 it if there is DEFINE_INSN_RESERVATION. Output automaton based
279 pipeline hazard recognizer interface.
281 * genattrtab.h: New file.
283 * genattrtab.c: Include genattrtab.h.
284 (attr_printf, check_attr_test, make_internal_attr,
285 make_numeric_value): Move protypes into genattrtab.h. Define them
287 (num_dfa_decls): New global variable.
288 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
289 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
290 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
291 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
293 * genautomata.c: New file.
295 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
297 * sched-int.h: (curr_state): Add the external definition for
298 automaton pipeline interface.
299 (haifa_insn_data): Add comments for members blockage and units.
301 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
302 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
303 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
304 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
305 TARGET_SCHED_DFA_POST_CYCLE_INSN,
306 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
307 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
309 (TARGET_SCHED): Use the new macros.
311 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
312 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
313 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
314 dfa_bubble): New members in gcc_target.sched.
316 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
317 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
318 (insn_queue): Redefine it as pointer to array.
319 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
321 (max_insn_queue_index_macro_value): New variable.
322 (curr_state, dfa_state_size, ready_try): New varaibles for
324 (ready_element, ready_remove, max_issue): New function prototypes
325 for automaton interface.
326 (choose_ready): New function prototype.
327 (insn_unit, blockage_range): Add comments.
328 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
329 FUNCTION_UNITS_SIZE == 0.
330 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
331 actual_hazard, potential_hazard): Add comments.
332 (insn_cost): Use cost -1 as undefined value. Remove
333 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
335 (ready_element, ready_remove): New functions for automaton
337 (schedule_insn): Add new code for automaton pipeline interface.
338 (queue_to_ready): Add new code for automaton pipeline interface.
339 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
340 (debug_ready_list): Print newline when the queue is empty.
341 (max_issue): New function for automaton pipeline interface.
342 (choose_ready): New function.
343 (schedule_block): Add new code for automaton pipeline interface.
344 Print ready list before scheduling each insn.
345 (sched_init): Add new code for automaton pipeline interface.
346 Initiate insn cost by -1.
347 (sched_finish): Free the current automaton state and finalize
348 automaton pipeline interface.
350 * sched-rgn.c: Include target.h.
351 (init_ready_list, new_ready, debug_dependencies): Add new code for
352 automaton pipeline interface.
354 * sched-vis.c: Include target.h.
355 (get_visual_tbl_length): Add code for automaton interface.
356 (target_units, print_block_visualization): Add comments.
358 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
359 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
360 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
361 (getruntime.o, genautomata.o): New entries.
362 (genattrtab.o): Add new dependency file genattrtab.h.
363 (genattrtab): Add new dependencies. Link it with `libm.a'.
364 (getruntime.o, hashtab.o): New entries for canadian cross.
366 * doc/md.texi: Description of automaton based model.
368 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
370 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
371 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
372 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
373 TARGET_SCHED_DFA_POST_CYCLE_INSN,
374 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
375 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
376 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
378 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
379 MAX_DFA_ISSUE_RATE): New macro descriptions.
381 * doc/contrib.texi: Add dfa based scheduler contribution.
383 * doc/gcc.texi: Add more information about genattrtab.
385 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
387 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
388 adjust_address_nv call.
390 2002-04-29 Janis Johnson <janis187@us.ibm.com>
392 * doc/install.texi (Testing): Provide additional information, and
393 a stronger encouragement, for running the testsuites.
395 2002-04-29 DJ Delorie <dj@redhat.com>
397 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
400 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
402 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
403 Solaris 2 <widec.h> if missing.
404 * fixinc/fixincl.x: Regenerate.
405 * fixinc/tests/base/widec.h: New file.
407 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
409 * toplev.c (f_options): Add "profile" switch so that
410 -fno-profile can be used to disable -p.
412 2002-04-29 Bernd Schmidt <bernds@redhat.com>
414 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
416 * tree.c (build_common_tree_nodes_2): Likewise.
417 * tree.h (enum tree_index): Likewise.
418 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
420 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
422 (init_mmx_sse_builtins): Initialize SSE2 builtins.
423 (ix86_expand_builtin): Add support for SSE2 builtins.
424 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
425 (VALID_SSE_REG_MODE): Use it.
426 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
427 (enum ix86_builtins): Add SSE2 builtins.
428 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
429 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
430 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
431 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
432 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
433 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
434 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
435 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
436 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
437 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
438 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
439 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
440 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
441 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
442 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
443 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
444 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
445 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
446 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
447 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
448 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
449 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
450 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
451 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
452 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
453 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
454 lfence_insn): New patterns.
455 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
456 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
458 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
460 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
462 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
464 * doc/contrib.texi (Contributors): Add Paolo Carlini and
466 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
467 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
468 and CPU instead of cpu.
470 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
472 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
474 (lang_independent_options): Add -fif-conversion, -fif-conversion2
475 (rest_of_compilation): Do if conversion only when asked for.
476 (parse_options_and_default_flags): Set new variables to 1 for -O1
477 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
479 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
481 * i386.c (dbx64_register_map): Fix typo.
483 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
485 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
486 real_one_half, real_bb_freq_max): New static variables.
487 (debug_profile_bbauxs): Kill.
488 (process_note_predictions): Kill unused variable.
489 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
491 (propagate_freq): Use REAL_ARITHMETICS.
492 (estimate_bb_frequencies): Likevise; init new static variables.
493 * Makefile.in (predict.o): Add dependency on real.h
495 2002-04-28 David S. Miller <davem@redhat.com>
498 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
499 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
500 several {reads,writes} instead.
501 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
504 2002-04-27 David S. Miller <davem@redhat.com>
507 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
510 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
511 including signal.h and sys/ucontext.h, not needed.
513 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
515 * varasm.c (output_constant_def): Correct test for not calling
516 ENCODE_SECTION_INFO for INTEGER_CST.
518 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
520 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
521 keep most cases as function eval_token.
522 (eval_token): New function.
523 (_cpp_parse_expr): Read token here for improved diagnostics.
524 Don't use op_as_text. Detect bad ':' here.
525 (reduce): Don't detect bad ':' here.
526 (op_as_text): Remove.
527 * cpphash.h (_cpp_test_assertion): Change prototype.
528 * cpplib.c (_cpp_test_assertion): Change prototype.
530 2002-04-28 Richard Henderson <rth@redhat.com>
533 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
534 (ggc_mark_rtx_children): New.
536 2002-04-28 Jakub Jelinek <jakub@redhat.com>
539 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
540 after call peepholes for UltraSPARC.
541 (call + jump 64-bit peepholes): Remove.
543 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
546 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
547 result as temporary value.
549 2002-04-28 Jakub Jelinek <jakub@redhat.com>
552 * toplev.c (rest_of_compilation): Only run regrename and copy
553 propagation if optimizing.
555 2002-04-28 Jakub Jelinek <jakub@redhat.com>
558 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
559 register of REGNO_DECL (i).
560 * Makefile.in (reload1.o): Add $(TREE_H).
562 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
564 * cppexp.c (lex): Update to use state.skip_eval.
565 (struct op): Remove prio and flags members.
566 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
567 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
568 (LEFT_ASSOC): New macro.
569 (optab): New table of operator priorities and flags.
571 (_cpp_parse_expr): Clean up logic. Return bool. Use a
572 malloc-ed parser stack.
573 (reduce): New; reduce the operator stack.
574 (_cpp_expand_op_stack): Expand the operator stack as necessary.
575 * cpphash.h (struct op): Predeclare.
576 (struct cpp_reader): New members op_stack, op_limit.
577 (struct lexer_state): New member skip_eval.
578 (_cpp_parse_expr): Update.
579 (_cpp_expand_op_stack): New.
580 * cpplib.c (do_if): Update.
581 * cppinit.c (cpp_create_reader): Create op stack.
582 (cpp_destroy): And destroy it.
583 * cpplib.h (CPP_LAST_CPP_OP): Correct.
584 (TTYPE_TABLE): Correct.
586 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
589 * c-decl.c (duplicate_decls): Call merge_weak.
590 * c-pragma.c (apply_pragma_weak): Warn about misuse.
591 * output.h (merge_weak): Prototype merge_weak.
592 * varasm.c (merge_weak): New function.
593 (declare_weak): Make sure we don't give an error on VAR_DECLs.
594 Mark RTL with SYMBOL_REF_WEAK.
596 2002-04-27 Kurt Garloff <garloff@suse.de>
598 * tree-inline.c (inlinable_function_p): Improve heuristics
599 by using a smoother function to cut down allowable inlinable size.
600 * param.def: Add parameters max-inline-insns-single,
601 max-inline-slope, min-inline-insns that determine the exact
602 shape of the above function.
605 2002-04-26 Richard Henderson <rth@redhat.com>
607 * c-parse.in (malloced_yyss, malloced_yyvs): New.
608 (yyoverflow): Re-add. Set them.
609 (free_parser_stacks): New.
610 * c-common.h: Declare it.
611 * c-lex.c (c_common_parse_file): Call it.
613 2002-04-26 Richard Henderson <rth@redhat.com>
615 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
618 2002-04-26 Eric Christopher <echristo@redhat.com>
621 * config/mips/mips.c (mips_issue_rate): Define. New function.
622 (TARGET_SCHED_ISSUE_RATE): Use.
624 2002-04-25 David S. Miller <davem@redhat.com>
627 * reorg.c (optimize_skip): Do not allow exception causing
628 instructions to be considered for delay slots.
629 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
630 (relax_delay_slots): Do not try to consider exception causing
631 instructions as redundant.
633 2002-04-26 Richard Henderson <rth@redhat.com>
636 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
638 2002-04-26 Mark Mitchell <mark@codesourcery.com>
641 * config/i386/i386.md (untyped_call): Return the value in a float
642 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
645 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
647 * tree.c (tree_int_cst_lt): Compare constants whose types differ
648 in unsigned-ness correctly.
650 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
652 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
653 portable runtime model.
655 2002-04-26 Richard Henderson <rth@redhat.com>
657 * c-parse.in (yyoverflow): Revert.
659 2002-04-26 David Edelsohn <edelsohn@gnu.org>
660 Richard Henderson <rth@redhat.com>
662 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
663 result as temporary value.
665 2002-04-26 Richard Henderson <rth@redhat.com>
668 * c-common.c (fix_string_type): Split out of ...
669 (combine_strings): ... here. Take a varray, not a tree list.
670 (c_expand_builtin_printf): Use fix_string_type.
671 * c-common.h: Update decls.
672 * c-parse.in (string): Remove. Update all uses to use STRING
673 instead, and not call combine_strings.
676 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
677 (build_asm_stmt): Likewise.
678 * objc/objc-act.c (my_build_string): Use fix_string_type.
679 (build_objc_string_object): Build varray for combine_strings.
681 2002-04-26 Bo Thorsen <bo@suse.co.uk>
683 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
686 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
688 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
689 (HAVE_NO_R_OPERAND): Remove.
690 (HAVE_VALUE): Remove.
691 (op_to_prio): Update.
692 (UNARY): Don't alter flags.
693 (_cpp_parse_expr): want_value used to indicate whether
694 a number or unary operator is expected next. Distinguish
695 unary and binary +/-.
696 (op_as_text): Update for unary operators.
698 2002-04-25 Richard Henderson <rth@redhat.com>
701 * c-parse.in (yyoverflow): New.
703 2002-04-25 Richard Henderson <rth@redhat.com>
706 * c-common.c (shorten_compare): Simplfy conditions leading to
707 the generation of a warning.
709 2002-04-25 Richard Henderson <rth@redhat.com>
712 * expmed.c (extract_bit_field): Fall through to generic code rather
713 than aborting on subreg special case.
715 2002-04-25 David S. Miller <davem@redhat.com>
717 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
720 2002-04-25 Steve Christiansen <smc@us.ibm.com>
722 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
724 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
726 * c-decl.c (grokdeclarator): Remove outdated ??? note
727 on invalid declaration of flexible array members.
729 2002-04-25 Richard Henderson <rth@redhat.com>
731 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
733 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
735 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
736 needed by the compiler, even if they are used as global regs.
738 2002-04-25 Matt Hiller <hiller@redhat.com>
740 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
742 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
743 of the corresponding functions.
744 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
747 2002-04-25 Matt Hiller <hiller@redhat.com>
749 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
751 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
752 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
753 registers, adjust comment accordingly.
754 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
755 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
756 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
757 for coprocessor registers.
758 (ADDITIONAL_REGISTER_NAMES): Include
759 ALL_COP_ADDITIONAL_REGISTER_NAMES.
761 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
762 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
763 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
764 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
765 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
767 (mips_char_to_class): Adjust comment to include coprocessor
770 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
772 (mips_reg_names, mips_regno_to_class): Include coprocessor
774 (mips_sw_reg_names): Ditto, make non-static.
775 (mips_move_1word): Handle moves to and from coprocessor registers.
776 (mips_move_2words): Handle moves to and from coprocessor
778 (mips_class_max_nregs, mips_register_move_cost): Handle
779 coprocessor register classes.
780 (override_options): Initialize mips_char_to_class and
781 mips_hard_regno_mode_ok properly for coprocessor registers.
783 * config/mips/mips.md (movdi_internal, movdi_internal2,
784 movsi_internal1, movsi_internal2): Add constraint-sets for
785 coprocessor registers.
786 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
787 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
789 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
790 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
792 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
793 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
795 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
796 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
799 * doc/tm.texi: Document feature.
801 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
803 * integrate.c (function_attribute_inlinable_p): Simplify.
804 Check the table pointer is not NULL.
806 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
808 * doc/c-tree.texi: Fix typo in introduction.
810 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
812 * c-common.h (c_common_parse_file): Update.
813 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
814 * c-lex.c (YYDEBUG): Get from c-lex.h.
815 (c_common_parse_file): Update.
816 * c-lex.h (YYDEBUG, yydebug): New.
817 * c-parse.in (YYDEBUG): Get from c-lex.h.
818 (c_set_yydebug): Remove.
819 * c-tree.h (c_set_yydebug): Remove.
820 * langhooks-def.h (lhd_do_nothing_i): New.
821 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
822 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
823 * langhooks.c (lhd_do_nothing_i): New.
824 (lhd_set_yydebug): Remove.
825 * langhooks.h (struct lang_hooks): Update.
826 * toplev.c (set_yydebug): New.
827 (compile_file): Update call to parse_file hook.
828 (decode_d_option): Update.
830 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
832 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
834 * loop.c (load_mems): Don't change the interface of called functions.
836 * calls.c (expand_call): Take current_function_pretend_args_size
837 into account when setting argblock for sibcalls.
839 2002-04-24 Matt Hiller <hiller@redhat.com>
841 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
844 * cpplex.c (skip_line_comment): Process comment one multibyte
845 character at a time rather than one char at a time, if
847 (parse_string): Process string one multibyte character at a time
848 rather than one char at a time, if appropriate.
849 * c-lex.c (lex_string): Lex and copy multibyte strings
851 * cpplib.h (cppchar_t): Change to unsigned.
853 2002-04-24 Richard Henderson <rth@redhat.com>
856 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
859 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
861 * sh.c (sh_va_arg): If argument was passed by reference,
862 dereference the pointer.
864 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
866 * sh.md (divsi3_i4_media): Use match_operand for input values
867 rather than hard registers.
868 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
869 unnecessarily through hard registers. Keep copies of pseudo
870 registers outside of the libcall sequence.
872 * sh.md (casesi_shift_media): Add modes.
874 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
877 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
879 * attribs.c (c_common_attribute_table): Move table and handlers
881 (format_attribute_table, lang_attribute_table,
882 lang_attribute_common): Remove.
883 (init_attributes): Replace NULL pointers with pointers to the
885 (handle_packed_attribute, handle_nocommon_attribute,
886 handle_common_attribute, handle_noreturn_attribute,
887 handle_noinline_attribute, handle_always_inline_attribute,
888 handle_used_attribute, handle_unused_attribute,
889 handle_const_attribute, handle_transparent_union_attribute,
890 handle_constructor_attribute, handle_destructor_attribute,
891 handle_mode_attribute, handle_section_attribute,
892 handle_aligned_attribute, handle_weak_attribute,
893 handle_alias_attribute, handle_visibility_attribute,
894 handle_no_instrument_function_attribute, handle_malloc_attribute,
895 handle_no_limit_stack_attribute, handle_pure_attribute,
896 handle_deprecated_attribute, handle_vector_size_attribute,
897 vector_size_helper): Move to c-common.c.
898 * c-common.c (c_common_attribute_table,
899 handle_packed_attribute, handle_nocommon_attribute,
900 handle_common_attribute, handle_noreturn_attribute,
901 handle_noinline_attribute, handle_always_inline_attribute,
902 handle_used_attribute, handle_unused_attribute,
903 handle_const_attribute, handle_transparent_union_attribute,
904 handle_constructor_attribute, handle_destructor_attribute,
905 handle_mode_attribute, handle_section_attribute,
906 handle_aligned_attribute, handle_weak_attribute,
907 handle_alias_attribute, handle_visibility_attribute,
908 handle_no_instrument_function_attribute, handle_malloc_attribute,
909 handle_no_limit_stack_attribute, handle_pure_attribute,
910 handle_deprecated_attribute, handle_vector_size_attribute,
911 vector_size_helper): Move from attribs.c.
912 * c-common.h (c_common_attribute_table,
913 c_common_format_attribute_table): New.
914 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
915 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
916 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
917 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
918 (LANG_HOOKS_INITIALIZER): Update.
919 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
920 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
921 * target.h: Update comment.
922 * tree.c (default_target_attribute_table): Remove.
923 * tree.h (default_target_attribute_table, format_attribute_table,
924 lang_attribute_table, lang_attribute_common): Remove.
926 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
927 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
929 2002-04-24 Jason Merrill <jason@redhat.com>
931 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
932 * dwarf2out.c (dwarf_attr_name): Support it.
933 (gen_array_type_die): Emit it.
934 (lookup_type_die): No special handling for VECTOR_TYPE.
935 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
937 2002-04-24 Richard Henderson <rth@redhat.com>
939 * config/mips/mips.md (movdi_usd): Renumber.
941 2002-04-24 David S. Miller <davem@redhat.com>
944 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
945 32-bit Sparc and current_function_returns_struct is true.
947 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
949 * loop.c (canonicalize_condition): Use gen_int_mode.
951 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
953 * config/rs6000/altivec.h: Cleanup file. Add non individual
997 (vec_lde): Add vector float variant.
1002 (vec_vmhaddshs): New.
1024 (vec_vmladduhm): New.
1025 (vec_vmhraddshs): New.
1027 (vec_vmsummbm): New.
1028 (vec_vmsumuhm): New.
1029 (vec_vmsumshm): New.
1030 (vec_vmsumuhs): New.
1031 (vec_vmsumshs): New.
1040 (vec_vnmsubfp): New.
1058 (vec_vrsqrtefp): New.
1069 (vec_vspltisb): New.
1070 (vec_vspltish): New.
1071 (vec_vspltisw): New.
1096 (vec_vsum4ubs): New.
1097 (vec_vsum4sbs): New.
1098 (vec_vsum4shs): New.
1099 (vec_vsum2sws): New.
1110 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
1113 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
1114 added literals from substracted literals.
1115 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
1116 (fold) [associate]: Preserve MINUS_EXPR if needed.
1118 2002-04-23 Zack Weinberg <zack@codesourcery.com>
1120 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
1123 2002-04-23 Tom Tromey <tromey@redhat.com>
1125 * gcc.c: Added --resource. For PR java/6314.
1127 2002-04-23 David O'Brien <obrien@FreeBSD.org>
1129 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
1130 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
1133 2002-04-23 David O'Brien <obrien@FreeBSD.org>
1135 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
1137 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
1139 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
1141 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
1142 (ix86_expand_clrstr): Fix typo.
1143 * loop.c (gen_load_of_final_value): New.
1144 (loop_givs_rescan, strength_reduce, check_dbra_loop):
1147 2002-04-23 Roger Sayle <roger@eyesopen.com>
1149 * builtins.c (builtin_memset_gen_str): New function.
1150 (expand_builtin_memset): Optimize the case of constant length, but
1153 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
1155 * config/rs6000/altivec.h (vec_step): Remove extraneous
1157 (vec_ctu): Cast return.
1159 2002-04-23 Alan Modra <amodra@bigpond.net.au>
1162 * function.h: (struct function): Add profile_label_no field.
1163 (current_function_profile_label_no): Define.
1164 * function.c: (profile_label_no): New static var.
1165 (expand_function_start): Increment it, and copy to
1166 current_function_profile_label_no.
1167 * output.h (profile_label_no): Delete.
1168 * final.c (profile_label_no): Delete.
1169 (profile_function): Use current_function_profile_label_no.
1170 (final_end_function): Don't increment profile_label_no here.
1171 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
1172 profile_label_no with current_function_profile_label_no.
1173 * config/pa/pa.c (current_function_number): Delete.
1174 (pa_output_function_prologue): Don't output profile label here.
1175 (hppa_profile_hook): Use label_no param rather than
1176 current_function_number.
1177 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
1178 * config/pa/pa.h: .. here.
1179 (FUNCTION_PROFILER): Output profile label here.
1181 2002-04-22 Eric Christopher <echristo@redhat.com>
1183 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
1184 patch of 2002-04-09 due to binutils issues.
1185 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
1187 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
1189 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
1190 constraint to 'o' for m=r and r=m alternatives.
1191 ("*movv8hi_internal1"): Same.
1192 ("*movv16qi_internal1"): Same.
1193 ("*movv4sf_internal1"): Same.
1195 2002-04-22 Janis Johnson <janis187@us.ibm.com>
1197 * rtl.h (RTX_FLAG): New macro.
1198 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
1199 * final.c (alter_subreg): Use macro to access rtx flag.
1200 * integrate.c (copy_rtx_and_substitute): Use new access macro.
1201 * print-rtl.c (print_rtx): Use new access macro.
1203 * cse.c (insert): Check rtx code before accessing flag.
1205 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
1206 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
1207 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
1208 convert_const_symbol_ref, make_canonical, make_alternative_compare,
1209 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
1210 simplify_test_exp, optimize_attrs, simplify_by_exploding,
1211 find_and_mark_used_attributes, unmark_used_attributes,
1212 add_values_to_cover, simplify_with_current_value,
1213 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
1214 copy_rtx_unchanging, main): Use new access macros.
1216 2002-04-22 Tom Rix <trix@redhat.com>
1218 * expmed.c (init_expmed): Generate shifted constant once.
1220 2002-04-22 Zack Weinberg <zack@codesourcery.com>
1222 * c-lex.c (lex_charconst): Call convert to get constant in
1223 proper type; don't just smash the type field.
1226 * config.gcc: Add list of obsolete configurations. Disallow
1227 building these without --enable-obsolete.
1228 * doc/install.texi: Document --enable-obsolete and obsoletion
1229 policy. Mention obsoletion of individual targets in
1232 2002-04-22 Richard Henderson <rth@redhat.com>
1234 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
1236 2002-04-22 Mark Mitchell <mark@codesourcery.com>
1239 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
1240 (walk_fixup_memory_subreg): Likewise.
1241 (fixup_var_refs_insn): Adjust accordingly.
1242 (fixup_var_refs_1): Likewise.
1244 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
1246 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
1247 LIBPATH_ARCH64_SPEC): Define.
1248 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
1249 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
1250 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
1251 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
1253 2002-04-22 Joel Sherrill <joel@OARcorp.com>
1255 * gthr-rtems.h: Correct prototypes to remove warnings.
1257 2002-04-22 Richard Henderson <rth@redhat.com>
1260 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
1262 * gcse.c (free_insn_expr_list_list): New.
1263 (clear_modify_mem_tables): Use it. Fix bit set usage.
1264 (canon_list_insert): Use EXPR_LISTs for expressions.
1265 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
1267 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
1269 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
1270 file change and include code to _cpp_pop_buffer.
1271 * cpphash.h (struct pending_option): Predeclare.
1272 (struct cpp_reader): New member next_include_file.
1273 (_cpp_pop_file_buffer): Update.
1274 (_cpp_push_next_buffer): Update, rename.
1275 * cppinit.c (cpp_destroy): Free include chain and pending here.
1276 (cpp_finish_options): Simplify.
1277 (_cpp_push_next_buffer): Rename and clean up.
1278 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
1280 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
1282 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
1284 * config/rs6000/altivec.h (vec_xor): Add variant for both args
1285 being vector signed int.
1287 (vec_xor): Add variant for both args being vector signed char.
1288 Remove redundant variant.
1291 2002-04-21 David S. Miller <davem@redhat.com>
1293 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
1294 compare mode in output RTL.
1296 2002-04-22 David Edelsohn <edelsohn@gnu.org>
1298 * config/rs6000/rs6000.c (rs6000_override_options): Correct
1299 style and formatting of previous patch.
1301 2002-04-22 Alan Modra <amodra@bigpond.net.au>
1303 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
1304 flag_pic for ABI_AIX.
1306 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
1308 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
1309 * cppfiles.c (read_include_file): Similarly.
1310 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
1311 uxstrdup ustrchr, ufputs): Similarly.
1312 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
1313 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
1314 cpp_ideq, parse_identifier, parse_number): Similarly.
1315 * cpplib.c (struct directive, dequote_string, D, run_directive,
1316 cpp_push_buffer): Similarly.
1317 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
1318 _cpp_create_definition, check_trad_stringification,
1319 cpp_macro_definition): Similarly.
1321 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
1323 * cppmacro.c (funlike_invocation_p): Don't step back
1326 2002-04-21 David Edelsohn <edelsohn@gnu.org>
1328 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
1331 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
1333 * doc/invoke.texi: Remove Chill references.
1334 * doc/gcc.texi: Update last modified date.
1336 2002-04-20 Kazu Hirata <kazu@hxi.com>
1338 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
1339 push and pop. Replace add.l with add.w.
1341 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
1343 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
1344 multiply instructions for H8/300H case.
1346 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
1348 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
1349 Bum three instructions from each routine.
1351 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
1353 * Makefile.in: Update.
1354 * decl.c (push_c_function_context, pop_c_function_context,
1355 mark_c_function_context): Rename for consistency.
1356 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
1357 * c-tree.h (push_c_function_context, pop_c_function_context,
1358 mark_c_function_context): Rename for consistency.
1359 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1360 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
1361 * function.c (init_lang_status, save_lang_status,
1362 restore_lang_status, mark_lang_status, free_lang_status):
1363 Move to langhooks.h.
1364 (push_function_context_to, pop_function_context_from,
1365 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
1367 * function.h (init_lang_status, save_lang_status,
1368 restore_lang_status, mark_lang_status, free_lang_status):
1369 Move to langhooks.h.
1370 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
1371 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
1372 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
1373 LANG_HOOKS_FUNCTION_INITIALIZER): New.
1374 (LANG_HOOKS_INITIALIZER): Update.
1375 (lhd_do_nothing_f): New.
1376 * langhooks.h (struct lang_hooks_for_functions): New.
1377 (struct lang_hooks): New hooks.
1378 * langhooks.c (lhd_do_nothing_f): New.
1380 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1381 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
1383 2002-04-19 David S. Miller <davem@redhat.com>
1385 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
1386 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
1388 2002-04-19 Jakub Jelinek <jakub@redhat.com>
1390 PR optimization/3756
1391 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
1392 x = ((int) y < 0) ? cst1 : cst2.
1394 2002-04-19 Jakub Jelinek <jakub@redhat.com>
1397 * function.c: Reapply patch for c/6358.
1398 (expand_function_end): Copy decl_rtl's mode, not
1399 current_function_return_rtx mode.
1401 2002-04-19 Joel Sherrill <joel@OARcorp.com>
1403 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
1406 2002-04-19 Tom Tromey <tromey@redhat.com>
1408 * doc/install.texi (Specific): Update status of Solaris 2.8.
1411 2002-04-19 Andreas Schwab <schwab@suse.de>
1413 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
1414 (PUT_REAL): Restore old definition.
1416 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
1417 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1419 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
1420 binutils 2.11.2 and higher generate smaller binaries than Sun's
1423 2002-04-19 Mark Mitchell <mark@codesourcery.com>
1426 * toplev.c (rest_of_compilation): Do not defer functions for which
1427 TREE_SYMBOL_REFERENCED has already been set.
1429 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
1431 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
1434 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
1436 * builtins.c: Include langhooks.h.
1437 (lang_type_promotes_to): Remove.
1438 (expand_builtin_va_arg): Use new hook.
1439 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
1440 (simple_type_promotes_to): Move to c-typeck.c.
1441 * c-common.h (simple_type_promotes_to): Remove.
1442 * c-decl.c (duplicate_decls, grokdeclarator): Update.
1443 * c-format.c: Include langhooks.h.
1444 (check_format_types): Update.
1445 * c-tree.h (c_type_promotes_to): New.
1446 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
1447 (type_lists_compatible_p): Update.
1448 * langhooks-def.h (lhd_type_promotes_to): New.
1449 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
1450 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
1451 * langhooks.c (lhd_type_promotes_to): New.
1452 * langhooks.h (struct lang_hooks_for_types): New hook.
1453 * tree.h (lang_type_promotes_to): Remove.
1455 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
1457 2002-04-18 Richard Henderson <rth@redhat.com>
1459 * function.c: Revert patch for c/6358.
1461 2002-04-18 Richard Henderson <rth@redhat.com>
1463 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
1464 blocks. Handle multiple references to the TRAP block. Handle
1465 non-adjacent THEN and OTHER blocks.
1467 2002-04-18 Richard Henderson <rth@redhat.com>
1469 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
1470 crash with no type for by-mode libcalls.
1472 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
1474 2002-04-18 Bob Wilson <bob.wilson@acm.org>
1476 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
1477 __xtensa_nonlocal_goto): Use a syscall instructions to flush
1478 the register windows.
1480 2002-04-18 Zack Weinberg <zack@codesourcery.com>
1482 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
1483 appropriate. Document need for extended precision even when
1484 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
1485 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
1486 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
1487 instead of relying on later syntax error when REAL_WIDTH > 5.
1488 * real.c: Define NE based only on whether or not we have a
1489 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
1490 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
1491 define GET_REAL and PUT_REAL as simple memcpy operations; no
1492 need to byteswap or round.
1493 Use #error instead of #ifdef-ing out the entire file, for
1494 prompt error detection.
1496 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
1498 2002-04-18 David S. Miller <davem@redhat.com>
1500 * config/sparc/sparc.h (BRANCH_COST): Define.
1502 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
1505 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
1507 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
1508 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
1509 propagate_block calls after relaxation loop using new variable
1510 stabilized_prop_flags.
1512 2002-04-18 Richard Henderson <rth@redhat.com>
1514 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
1515 (ia64_va_arg): Expect variable sized types by reference.
1516 * config/ia64/ia64-protos.h: Update.
1517 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
1518 ia64_function_arg_pass_by_reference.
1520 2002-04-18 Richard Henderson <rth@redhat.com>
1522 * ifcvt.c: Include except.h.
1523 (block_has_only_trap): Break out from find_cond_trap.
1524 (find_cond_trap): Use it. Always delete the trap block.
1525 (merge_if_block): Allow then block null. Be less simplistic about
1526 what insns can end a block.
1527 * Makefile.in (ifcvt.o): Depend on except.h.
1529 * config/ia64/ia64.md (trap, conditional_trap): New.
1531 2002-04-18 Jakub Jelinek <jakub@redhat.com>
1534 * function.c (assign_parms): Assign hard current_function_return_rtx
1536 (expand_function_end): ...not here.
1538 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
1540 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
1541 * c-tree.h (c_incomplete_type_error): New.
1542 * c-typeck.c (require_complete_type, build_component_ref): Update.
1543 (incomplete_type_error): Rename.
1544 * langhooks-def.h (lhd_incomplete_type_error): New.
1545 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
1546 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
1547 * langhooks.c (lhd_incomplete_type_error): New.
1548 * langhooks.h (struct lang_hooks_for_types): New hook.
1549 * tree.c (size_in_bytes): Use new hook.
1550 * tree.h (incomplete_type_error): Remove.
1552 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
1554 2002-04-18 Zack Weinberg <zack@codesourcery.com>
1556 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
1557 TARGET_FLOAT_FORMAT blocks.
1559 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1561 * doc/install.texi (Downloading the source): Do not mention Chill
1562 any longer, but mention Ada.
1563 (Configuration): Do not mention Chill any longer.
1565 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
1567 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
1569 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
1571 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
1574 2002-04-18 Jakub Jelinek <jakub@redhat.com>
1576 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
1577 instead of unsigned_type.
1579 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
1581 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
1582 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
1585 2002-04-18 Bernd Schmidt <bernds@redhat.com>
1587 * attribs.c (vector_type_node_list): New static variable.
1588 (handle_vector_size_attribute): Use it to avoid generating a
1589 new type node each time we are called.
1591 * combine.c (subst): Avoid trying to make a vector mode subreg of
1592 an integer constant.
1593 (gen_lowpart_for_combine): Likewise.
1595 2002-04-18 Roger Sayle <roger@eyesopen.com>
1596 Jakub Jelinek <jakub@redhat.com>
1598 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
1599 for integer constant c (if x has unsigned type or sign bit is not
1600 set in c). This folds the zero/sign extension into the bit-wise and
1603 2002-04-18 Jakub Jelinek <jakub@redhat.com>
1606 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
1609 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
1611 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
1613 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
1615 * gcc.c (read_specs): Detect and fail if an attempt is made to
1616 rename a spec string to an already existing string.
1618 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1620 * config/s390/s390.c (legitimize_pic_address): Do not generate
1621 illegal address constant without CONST.
1623 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1625 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
1626 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1628 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1630 PR optimization/6305
1631 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
1632 to make sure previous reloads are taken into account. Generate
1633 better code if one operand is an in-range immediate constant.
1635 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
1637 * doc/install.texi (Building): libgcj requires GNU make.
1639 2002-04-17 Jakub Jelinek <jakub@redhat.com>
1642 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
1643 even if hard quad and register is not floating.
1644 (movtf reg<-mem split): Disallow splitting if hard quad and
1645 register is floating.
1646 (movtf mem<-reg split): Likewise.
1647 * config/sparc/sparc.c (fp_register_operand): New predicate.
1648 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
1650 2002-04-17 Zack Weinberg <zack@codesourcery.com>
1652 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
1653 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
1654 (unprotoize.o): Ditto. Build from protoize.c. Define
1655 UNPROTOIZE on command line.
1656 * protoize.c: Include cppdefault.h. Delete include_defaults.
1657 (in_system_include_dir): Use cpp_include_defaults (defined in
1659 * unprotoize.c: Delete file.
1661 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
1663 * config/rs6000/altivec.h (vec_ld): Add array variants.
1667 2002-04-17 Alan Matsuoka <alanm@redhat.com>
1668 Aldy Hernandez <aldyh@redhat.com>
1670 * config/rs6000/altivec.h: Define __ALTIVEC__.
1677 Add parentheses to all macro arguments.
1679 2002-04-16 Richard Henderson <rth@redhat.com>
1682 * except.c (remove_eh_handler): Insert inner regions at beginning
1683 of sibling chain. Refactor expressions.
1685 2002-04-16 Richard Henderson <rth@redhat.com>
1687 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
1688 * config/sparc/sol2-gas-bi.h: New file.
1689 * config.gcc (sparc*-solaris): Add it as needed.
1690 * configure.in (AS_SPARC64_FLAG): Remove check.
1691 * config.in, configure: Regenerate.
1693 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
1695 2002-04-16 Richard Henderson <rth@redhat.com>
1697 * config/mips/mips.c (override_options): Don't override N32 for
1701 * config/mips/mips.md (can_delay): Split out of existing define_delays.
1702 (HILO_delay): Set can_delay false.
1704 2002-04-16 Dale Johannesen <dalej@apple.com>
1706 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
1707 instruction addresses.
1708 (rs6000_output_function_epilogue): Likewise.
1710 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
1712 * c-parse.in (poplevel, compstmt_start,
1713 compstmt_primary_start): Add ending ';', in accordance
1716 2002-04-16 Richard Henderson <rth@redhat.com>
1718 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
1719 Adjust tm_file order to get TARGET_DEFAULT set properly.
1720 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
1721 * doc/install.texi (sparc-solaris): Update.
1723 2002-04-16 Dale Johannesen <dalej@apple.com>
1725 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
1726 comparison operands do not match each other or if modes of
1727 conditions do not match result.
1729 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
1732 * config/s390/s390.md (mulsidi3): Set both subregs of the
1735 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
1737 * config/rs6000/altivec.h (vec_addc): Type check.
1739 2002-04-16 Jakub Jelinek <jakub@redhat.com>
1742 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
1744 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
1746 2002-04-15 Richard Henderson <rth@redhat.com>
1748 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
1749 call_really_used_regs too.
1751 2002-04-15 Richard Henderson <rth@redhat.com>
1753 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
1755 2002-04-15 David S. Miller <davem@redhat.com>
1757 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
1760 2002-04-16 Jakub Jelinek <jakub@redhat.com>
1763 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
1764 CONST_VECTOR is { 0, ... 0 }.
1766 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
1768 * doc/install.texi (Installing GCC: Configuration): Clarify
1769 the only supported ways to configure gcc.
1771 2002-04-15 Roland McGrath <roland@frob.com>
1773 * config.gcc (alpha*-*-gnu*): New target configuration.
1774 * config/alpha/gnu.h: New file for it.
1775 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
1777 2002-04-16 Mark Mitchell <mark@codesourcery.com>
1779 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
1780 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
1781 * tree.h (expand_start_stmt_expr): Update prototype.
1782 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
1783 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
1784 on the STMT_EXPR created for the inline function.
1786 2002-04-15 Richard Henderson <rth@redhat.com>
1788 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
1789 config/i386/linux-aout.h, config/i386/linux-oldld.h,
1790 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
1791 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
1792 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
1793 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
1794 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
1795 Define __gnu_linux__, not gnu_linux.
1796 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
1798 2002-04-15 Mark Mitchell <mark@codesourcery.com>
1800 Remove Chill front end.
1801 * gcc.c (default_compilers): Remove Chill entries.
1802 * ch: Remove directory.
1803 * doc/frontends.texi: Remove information about Chill.
1804 * doc/sourcebuild.texi: Likewise.
1805 * doc/standards.texi: Likewise.
1807 2002-04-15 Douglas B Rupp <rupp@gnat.com>
1809 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
1810 (LONGLONG_STANDALONE): Define.
1812 2002-04-15 David S. Miller <davem@redhat.com>
1814 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
1815 Call emit_library_call with LCT_NORMAL.
1816 (sparc_initialize_trampoline): Use LCT_foo instead of
1817 magic constant in emit_library_call invocations.
1818 (sparc64_initialize_trampoline): Likewise.
1819 (sparc_profile_hook): Likewise.
1820 * config/sparc/sparc.md: Likewise.
1822 * config/sparc/sparc.c (sparc_extra_constraint_check):
1823 Fix type of argument 'c'.
1824 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
1827 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
1829 * diagnostic.h (output_buffer_state): Redefine.
1830 (output_format_decoder): New macro.
1831 (output_prefixing_rule): Likewise.
1832 (output_line_cutoff): Likewise.
1833 (diagnostic_format_decoder): Adjust.
1834 (diagnostic_prefixing_rule): Likewise.
1835 (diagnostic_line_cutoff): Likewise.
1836 (diagnostic_state): Likewise.
1837 (diagnostic_kind_count): Likewise.
1838 (diagnostic_buffer): Now a macro.
1840 * diagnostic.c (diagnostic_buffer): Remove definition.
1841 (output_is_line_wrapping): Adjust.
1842 (set_real_maximum_length): Likewise.
1843 (output_set_maximum_length): Likewise.
1844 (init_output_buffer): Likewise.
1845 (lhd_print_error_function): Likewise.
1846 (output_do_verbatim): Likewise.
1848 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
1850 * cpperror.c (print_location): Don't print include chain
1852 (cpp_begin_message): Update to use DL_ macros.
1853 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
1854 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
1855 cpp_notice, cpp_notice_from_errno): Remove.
1856 (cpp_error, cpp_error_with_line): Update to take a diagnostic
1859 * cppexp.c (CPP_ICE): Remove.
1860 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
1861 lex, integer_overflow, _cpp_parse_expr): Update.
1862 * cppfiles.c (read_include_file, find_include_file,
1863 handle_missing_header, _cpp_read_file, remap_filename): Update.
1864 * cpphash.h (enum error_type): Remove.
1865 (_cpp_begin_message): Update.
1866 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
1867 cpp_handle_option, cpp_post_options): Update.
1868 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
1869 skip_whitespace, parse_identifier, parse_slow, parse_string,
1870 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
1871 cpp_interpret_charconst): Update.
1872 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
1873 lex_macro_node, do_undef, glue_header_name, parse_include,
1874 do_include_common, read_flag, do_line, do_linemarker, do_ident,
1875 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
1876 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
1877 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
1878 _cpp_pop_buffer, do_diagnostic): Update.
1879 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
1880 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
1881 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
1882 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
1883 cpp_notice, cpp_notice_from_errno): Remove.
1884 (cpp_error, cpp_error_with_line): Update to take a diagnostic
1887 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
1888 collect_args, enter_macro_context, save_parameter, parse_params,
1889 _cpp_create_definition, check_trad_stringification,
1890 cpp_macro_definition): Update.
1891 * cppmain.c (cpp_preprocess_file): Update.
1892 * fix-header.c (read_scan_file): Update.
1894 2002-04-14 Andreas Schwab <schwab@suse.de>
1896 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
1898 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
1900 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
1902 2002-04-13 Mark Mitchell <mark@codesourcery.com>
1904 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
1907 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
1909 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
1911 2002-04-13 Joel Sherrill <joel@OARcorp.com>
1913 * config/sparc/t-elf: Enable v8 multilibs. Impacts
1914 sparc-elf and sparc-rtems targets.
1916 2002-04-13 Mark Mitchell <mark@codesourcery.com>
1918 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
1919 defined, and __gnu_hurd__ wherever __GNU__ is defined.
1920 * arm/linux-elf.h: Likewise.
1921 * cris/aout.h: Likewise.
1922 * cris/linux.h: Likewise.
1923 * i370/linux.h: Likewise.
1924 * i386/gnu.h: Likewise.
1925 * i386/linux-aout.h: Likewise.
1926 * i386/linux-oldld.h: Likewise.
1927 * i386/linux.h: Likewise.
1928 * i386/linux64.h: Likewise.
1929 * ia64/linux.h: Likewise.
1930 * m68k/linux-aout.h: Likewise.
1931 * m68k/linux.h: Likewise.
1932 * mips/linux.h: Likewise.
1933 * pa/pa-linux.h: Likewise.
1934 * pj/linux.h: Likewise.
1935 * rs6000/sysv4.h: Likewise.
1936 * s390/linux.h: Likewise.
1937 * sh/linux.h: Likewise.
1938 * sparc/linux-aout.h: Likewise.
1939 * sparc/linux.h: Likewise.
1940 * sparc/linux64.h: Likewise.
1941 * xtensa/linux.h: Likewise.
1943 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
1945 * stmt.c (check_unique_operand_names): Expect operand names to
1946 be strings rather than identifiers. Use simple_cst_equal to
1948 (resolve_operand_name_1): Make same identifier to string change here.
1949 * c-parse.in (asm_operand): Convert a named operand into a string.
1950 * cp/parse.y (asm_operand): Likewise.
1952 2002-04-13 Andreas Schwab <schwab@suse.de>
1954 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
1956 2002-04-12 Mark Mitchell <mark@codesourcery.com>
1958 Revert these changes:
1960 2002-04-06 Mark Mitchell <mark@codesourcery.com>
1963 * stor-layout.c (layout_decl): Reset the RTL for the decl.
1965 2002-04-12 Richard Henderson <rth@redhat.com>
1967 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
1968 (sparc*-*-solaris): Clean up header files.
1969 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
1970 and plan on generating 64-bit code.
1971 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
1972 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
1973 * config/sparc/sol2-sld-64.h: Rename ...
1974 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
1975 for AS_SPARC64_FLAG not defined.
1976 * config/sparc/sol2-gld-bi.h: New.
1977 * config/sparc/sol2-sld.h: Remove.
1978 * config/sparc/sol26-sld.h: New.
1979 * config/sparc/sol2.h: Tidy comments.
1980 * doc/install.texi: Document sparc-solaris configury changes.
1982 2002-04-12 Richard Henderson <rth@redhat.com>
1984 * recog.c (offsettable_address_p): Match the logic in adjust_address.
1986 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
1987 in 64-bit mode only. Use only for 32-bit or MEDLOW.
1989 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1991 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
1993 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
1995 * pa.c (pa_can_combine_p): Call extract_insn before calling
1998 2002-04-12 Douglas B Rupp <rupp@gnat.com>
2000 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
2001 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
2002 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
2003 (CPP_PREDEFINES): Handle __declspec.
2004 * config/i386/t-interix (USER_H): Remove.
2006 2002-04-12 DJ Delorie <dj@redhat.com>
2008 * integrate.c (compare_blocks): Make comparisons safe for when
2009 sizeof(int) < sizeof(char *).
2010 (find_block): Likewise.
2012 2002-04-12 Jan Hubicka <jh@suse.cz>
2013 David Edelsohn <edelsohn@gnu.org>
2015 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
2017 (symbol_ref_operand): New.
2018 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
2019 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
2021 2002-04-12 Andreas Schwab <schwab@suse.de>
2023 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
2024 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
2025 overrides the definition in config/svr4.h.
2027 2002-04-12 Eric Norum <eric.norum@usask.ca>
2029 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
2030 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
2031 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
2032 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
2033 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
2034 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
2035 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
2036 definitions to config/rtems.h and make the targets more similar.
2038 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2040 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
2041 POINTERS_EXTEND_UNSIGNED.
2042 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
2043 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
2045 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
2048 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
2050 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
2051 depends on TARGET_SHMEDIA, not TARGET_SH5.
2053 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
2055 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
2056 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
2058 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
2060 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
2063 2002-04-12 Andreas Schwab <schwab@suse.de>
2065 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
2067 2002-04-12 Richard Henderson <rth@redhat.com>
2070 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
2072 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
2073 modes spanning multiple hard regs.
2075 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
2077 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
2079 * pa.c (pa_output_function_prologue): Don't accumulate the total
2080 number of code bytes when using TARGET_64BIT, or gas, SOM and not
2081 the portable runtime.
2082 (output_deferred_plabels): Handle 64bit plabels.
2083 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
2084 generating pic code using the GAS assembler for object formats that
2085 are not SOM (ie., ELF32 and ELF64).
2086 (output_millicode_call): Check attribute type if attribute length is 28.
2087 Likewise use $PIC_pcrel$0. Only call get_attr_length and
2088 dbr_sequence_length once.
2089 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
2090 dbr_sequence_length once.
2091 * pa.h (TARGET_SOM): Define if not defined.
2092 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
2093 with GAS and not SOM.
2094 (jump, call_internal_reg, call_value_internal_reg): Likewise.
2095 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
2097 2002-04-11 David O'Brien <obrien@FreeBSD.org>
2099 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
2100 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
2101 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
2102 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
2103 elfos.h and dbxelf.h values are fine now.
2104 * config/i386/freebsd.h, config/alpha/freebsd.h
2105 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
2107 2002-04-11 David O'Brien <obrien@FreeBSD.org>
2109 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
2110 or set Acpu or Amachine. Reformat.
2111 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2113 (LINK_SPEC): Do not need to undef.
2114 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
2115 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
2116 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2118 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
2119 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
2120 (LINK_SPEC): Do not need to undef.
2121 (DONT_USE_BUILTIN_SETJMP): Do not define.
2122 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
2123 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
2124 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
2125 Remove trailing spaces.
2126 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
2127 __ELF__, or set Acpu or Amachine. Reformat.
2128 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2131 2002-04-11 David O'Brien <obrien@FreeBSD.org>
2133 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
2134 all other *-*-freebsd* targets.
2136 2002-04-11 Richard Henderson <rth@redhat.com>
2138 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
2140 2002-04-11 David O'Brien <obrien@FreeBSD.org>
2142 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
2143 Include {cpu}/{cpu}.h thru tm_file.
2144 (alpha*-*-linux*ecoff): Remove target.
2145 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
2146 (LINK_SPEC): Remove, is not OS independent.
2147 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
2148 (LINK_SPEC): Do not need to #undef any longer.
2149 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
2151 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
2153 (LINK_SPEC): Moved here from alpha/elf.h.
2154 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
2156 * config/alpha/linux-ecoff.h: Remove.
2157 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
2158 (CPP_SPEC): Define _POSIX_SOURCE as needed.
2159 (CPP_SUBTARGET_SPEC): Do not define.
2160 (LINK_SPEC): Do not need to #undef any longer.
2161 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
2162 * config/alpha/vms.h: Likewise.
2164 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
2166 * doc/extend.texi: Remove old claim that typedefs cannot have
2167 an alignment attribute.
2169 2002-04-11 Jakub Jelinek <jakub@redhat.com>
2171 PR optimization/6177
2172 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
2173 bitpos is 0 and bitsize CONCAT size.
2175 2002-04-11 Jakub Jelinek <jakub@redhat.com>
2178 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
2180 2002-04-10 David O'Brien <obrien@FreeBSD.org>
2182 * config/alpha/freebsd.h: Minor reformatting.
2183 (CPP_SPEC): Define ELF and add cpp_subtarget.
2184 (ASM_SPEC): No longer needed.
2186 2002-04-11 Richard Henderson <rth@redhat.com>
2188 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
2189 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
2190 (dimode mem/zero splitter): New.
2192 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
2194 * config/cris/cris.c (cris_override_options): Tweak error message
2195 for PIC not implemented.
2197 * config/cris/cris.h: Tweak comments related to parameter-passing.
2199 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
2201 2002-04-10 Richard Henderson <rth@redhat.com>
2203 * except.c (add_ehl_entry): Allow duplicates after landing pad
2206 2002-04-10 David Edelsohn <edelsohn@gnu.org>
2208 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
2210 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
2212 * c-decl.c (c_init_decl_processing): Move generation of
2213 decls for g77_integer_type_node and friends from here ...
2214 * c-common.c (c_common_nodes_and_builtins): ... to here.
2216 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
2218 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
2219 is only used as frame pointer when frame_pointer_needed is true.
2221 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
2224 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
2225 for the fact that the pool entry uses two words.
2226 (movdf_hard_insn): Similarly. Also, ADR instruction can span
2228 (movdf_soft_insn): Similarly.
2229 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
2230 for the fact that the pool entry uses three words.
2232 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
2234 * config/mips/mips.c (mips_va_arg): When using the struct version
2235 of the EABI va_list, allow arguments in the register save area to
2236 take up less room than a stack argument.
2238 2002-04-10 Richard Henderson <rth@redhat.com>
2240 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
2241 if EXPAND_INITIALIZER.
2243 2002-04-09 Richard Henderson <rth@redhat.com>
2245 * config/alpha/alpha.md (movdi_er_maybe_g): New.
2246 * config/alpha/alpha.c (alpha_expand_mov): Use it.
2248 2002-04-10 Alan Modra <amodra@bigpond.net.au>
2250 PR optimization/6233
2251 * rtlanal.c (pure_call_p): New function.
2252 * rtl.h (pure_call_p): Declare.
2253 * loop.c (prescan_loop): Use it to set has_nonconst_call.
2254 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
2256 2002-04-09 Eric Christopher <echristo@redhat.com>
2258 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
2259 information to .comm directive.
2261 2002-04-09 Richard Henderson <rth@redhat.com>
2264 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
2266 2002-04-09 Richard Henderson <rth@redhat.com>
2268 * basic-block.h (flow_delete_block_noexpunge): Declare.
2269 (expunge_block_nocompact): Declare.
2270 * cfg.c (expunge_block_nocompact): Split out from ...
2271 (expunge_block): ... here.
2272 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
2273 (flow_delete_block_noexpunge): Split out from ...
2274 (flow_delete_block): ... here.
2275 * cfgcleanup.c (delete_unreachable_blocks): Compact while
2276 removing dead blocks.
2277 * except.c (exception_handler_labels): Remove.
2278 (exception_handler_label_map): New.
2279 (struct eh_region): Add aka member.
2280 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
2281 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
2282 (for_each_eh_label, for_each_eh_label_1): New.
2283 (init_eh): Register exception_handler_label_map.
2284 (free_eh_status): Use free_region.
2285 (find_exception_handler_labels): Use the map, not the list.
2286 (remove_exception_handler_label): Likewise.
2287 (maybe_remove_eh_handler): Likewise.
2288 (remove_eh_handler): Use the region aka bitmap.
2289 * except.h (exception_handler_labels): Remove.
2290 (for_each_eh_label): Declare.
2291 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
2292 * loop.c (invalidate_loops_containing_label): New.
2293 (find_and_verify_loops): Use it. Use for_each_eh_label.
2294 * sched-rgn.c (is_cfg_nonregular): Use
2295 current_function_has_exception_handlers.
2297 2002-04-09 Richard Henderson <rth@redhat.com>
2299 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
2300 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
2301 Do not return changed status.
2302 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
2303 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
2304 New functions that do return changed status.
2305 * sbitmap.h: Update decls.
2306 * gcse.c, lcm.c: Use _cg functions as needed.
2308 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
2310 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
2311 (sh64-*-elf*, sh-*-rtemself*): Likewise.
2312 * config/sh/embed_bb.c: New file.
2313 * config/sh/embed-elf.h: New file.
2314 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
2315 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
2316 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
2318 (SUBTARGET_CPP_PTR_SPEC): Don't define.
2319 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
2320 Add subtarget_asm_endian_spec.
2321 (ASM_SPEC): Use subtarget_asm_endian_spec.
2322 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
2323 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
2324 (WCHAR_UNSIGNED): Define.
2325 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
2326 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
2327 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
2329 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
2330 (sh_adjust_cost): Likewise.
2331 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
2333 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
2334 (WCHAR_TYPE_SIZE): Likewise.
2335 (ASM_SPEC): Use subtarget_asm_endian_spec.
2336 (SH_ELF_WCHAR_TYPE): #undef/ #define.
2337 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
2338 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
2339 (MAX_WCHAR_TYPE_SIZE): Don't #define .
2340 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
2341 (USER_LABEL_PREFIX): Don't #undef /#define .
2342 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
2343 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
2344 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
2345 (ASM_SPEC): Likewise.
2346 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
2347 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
2348 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
2349 (LIB2FUNCS_EXTRA): Define.
2350 * t-sh64 (LIB2FUNCS_EXTRA): Define.
2351 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
2352 (LIB1ASMFUNCS_CACHE): Define.
2353 (LIB2FUNCS_EXTRA): Redefine empty.
2355 2002-04-08 Richard Henderson <rth@redhat.com>
2357 * reorg.c (get_branch_condition): Use reversed_comparison_code.
2359 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2361 * config/m68hc11/larith.asm (__map_data_section): Fix condition
2362 and optimize for size.
2363 (__do_global_ctors): Fix pointer comparison.
2364 (__do_global_dtors): Likewise.
2366 2002-04-09 David S. Miller <davem@redhat.com>
2368 * config/sparc/sparc.c (sparc_extra_constraint_check): New
2369 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
2370 allow reloading pseudos.
2371 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
2372 * config/sparc/sparc-protos.h: Declare it.
2374 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
2375 unsigned comparison warning.
2376 (output_restore_regs): Mark leaf_function as unused.
2378 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2380 * expr.c (is_aligning_offset): New function.
2381 (expand_expr, case COMPONENT_EXPR): Call it.
2383 2002-04-08 David S. Miller <davem@redhat.com>
2386 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
2388 Make init_priority work on Sparc when using GNU ld.
2389 * config/sparc/linux.h, config/sparc/linux64.h,
2390 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
2391 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
2392 * config/sparc/sol2-gld.h: New file to do the same.
2393 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
2394 sparc/sol2-gld.h to tm_file.
2396 PR optimization/4328
2397 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
2398 * doc/md.texi: Document it.
2399 * config/sparc/sparc.md (movdi_insn_sp64_novis,
2400 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
2401 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
2402 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
2403 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
2405 2002-04-08 Andreas Jaeger <aj@suse.de>
2407 * stmt.c (expand_asm_operands): Revert last patch from Richard
2410 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2412 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
2413 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
2415 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2417 * doc/contrib.texi (Contributors): Add David O'Brien.
2419 2002-04-08 Alan Modra <amodra@bigpond.net.au>
2421 * configure.in (auto-build.h): Use target_alias and build_alias
2422 when running configure.
2423 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
2424 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
2425 * configure: Regenerate.
2427 2002-04-07 David S. Miller <davem@redhat.com>
2429 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
2431 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
2434 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
2435 generating 32-bit pic code.
2437 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
2439 * cppinit.c (cpp_create_reader): Initialize
2440 discard_comments_in_macro_exp.
2441 (COMMAND_LINE_OPTIONS): Add "-CC" option.
2442 (cpp_handle_option): Handle "-CC" option.
2443 * cpplex.c (save_comment): If saving a C++ comment in
2444 a directive, convert it to a C comment.
2445 (_cpp_lex_direct): Pass second comment start character to
2446 save_comment to indicate comment type.
2447 * cpplib.c (_cpp_handle_directive): If processing
2448 a "#define" directive and discard_comments_in_macro_exp
2449 is false, re-enable saving of comments.
2450 (lex_macro_node): If discard_comments_in_macro_exp is false,
2451 discard any comments before the macro identifier.
2452 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
2454 * cppmacro.c (cpp_get_token): If expanding a macro while
2455 processing a directive, discard any comments we might encounter.
2456 (parse_params): If discard_comments_in_macro_exp is false,
2457 ignore comments in the macro parameter list.
2458 * gcc.c (cpp_unique_options): Add "-CC" option.
2459 (option_map): Map "--comments-in-macros" to "-CC".
2460 * doc/cppopts.texi: Document "-CC" option.
2461 * f/lang-specs.h: Add "-CC" option.
2462 * testsuite/gcc.dg/cpp/maccom1.c: New test.
2463 * testsuite/gcc.dg/cpp/maccom2.c: New test.
2464 * testsuite/gcc.dg/cpp/maccom3.c: New test.
2465 * testsuite/gcc.dg/cpp/maccom4.c: New test.
2466 * testsuite/gcc.dg/cpp/maccom5.c: New test.
2467 * testsuite/gcc.dg/cpp/maccom6.c: New test.
2469 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2472 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
2474 2002-04-06 Mark Mitchell <mark@codesourcery.com>
2477 * stor-layout.c (layout_decl): Reset the RTL for the decl.
2480 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
2481 RTX_UNCHANGING_P for the functions arguments when a tail call
2484 2002-04-06 Jason Merrill <jason@redhat.com>
2486 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
2487 (parse_options_and_default_flags): Set them appropriately.
2488 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
2490 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
2492 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
2495 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
2498 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
2499 types come in by-reference. Fix typo in comment.
2501 2002-04-05 David S. Miller <davem@redhat.com>
2503 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
2504 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
2505 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
2506 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
2508 2002-04-05 David S. Miller <davem@redhat.com>
2510 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
2511 are not going to emit return instructions, emit at least a nop
2512 for the sake of sane backtraces.
2514 2002-04-05 Richard Henderson <rth@redhat.com>
2516 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
2518 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
2520 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
2522 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
2524 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
2525 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
2526 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
2528 2002-04-05 Andreas Schwab <schwab@suse.de>
2530 * c-convert.c: Include c-common.h.
2531 * Makefile.in (c-convert.o): Updated.
2533 2002-04-05 Jakub Jelinek <jakub@redhat.com>
2535 * mklibgcc.in: Use separate libgcc.map for each multilib.
2536 * Makefile.in (distclean): Don't remove libgcc.map here.
2538 2002-04-05 Jakub Jelinek <jakub@redhat.com>
2540 * Makefile.in (s-mlib): Handle --disable-multilib by separate
2541 genmultilib invocation.
2543 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
2545 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
2546 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
2547 to num_gprs for symmetry.
2548 * config/mips/mips.c: Adjust accordingly.
2550 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
2552 * c-common.c (truthvalue_conversion): Rename, update.
2553 * c-common.h (c_common_truthvalue_conversion): New.
2554 * c-convert.c (convert): Update.
2555 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
2556 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
2557 * c-typeck.c (build_binary_op, build_unary_op,
2558 build_conditional_expr): Update.
2559 * fold-const.c (constant_boolean_node, fold): Use langhook.
2560 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
2561 * langhooks.h (struct lang_hooks): New hook.
2562 * stmt.c (expand_decl_cleanup): Use langhook.
2563 * tree.h (truthvalue_conversion): Remove.
2565 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
2567 2002-04-05 Alan Modra <amodra@bigpond.net.au>
2569 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
2570 Add rules to make null object file.
2572 2002-04-04 Jim Blandy <jimb@redhat.com>
2574 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
2575 macro formal parameter names.
2577 2002-04-04 David S. Miller <davem@redhat.com>
2579 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
2581 2002-04-04 Richard Henderson <rth@redhat.com>
2584 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
2585 Support copies into and out of memory. Don't accept allows_reg
2586 and allows_mem as gospel.
2588 2002-04-04 Richard Henderson <rth@redhat.com>
2591 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
2592 (write_dependence_p): Likewise.
2594 2002-04-04 Richard Henderson <rth@redhat.com>
2596 * predict.c (estimate_bb_frequencies): Do frequency calculation
2597 with a volatile temporary.
2599 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
2601 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
2603 2002-04-04 Jakub Jelinek <jakub@redhat.com>
2606 * final.c (final_start_function): Don't bump profile_label_no here...
2607 (final_end_function): ...but here.
2609 2002-04-04 Jakub Jelinek <jakub@redhat.com>
2611 * config/sparc/sparc.md (pic): New attribute.
2612 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
2614 (split after do_builtin_setjmp_setup): New.
2616 2002-04-04 Jakub Jelinek <jakub@redhat.com>
2619 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
2622 2002-04-04 Jakub Jelinek <jakub@redhat.com>
2624 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
2625 UNITS_PER_WORD for zero sized aggregates.
2627 2002-04-03 David S. Miller <davem@redhat.com>
2629 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
2630 one-character spec for this, just use %(link_gcc_c_sequence).
2632 2002-04-03 David S. Miller <davem@redhat.com>
2634 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
2637 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
2639 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
2640 (DWARF_FRAME_RETURN_COLUMN): Move.
2641 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2642 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
2643 * pa.c (except.h, predict.h): Include.
2645 (store_reg_modify, set_reg_plus_d): Revise prototypes.
2646 (output_ascii): Add cast.
2647 (store_reg_modify): Revise to add frame notes.
2648 (set_reg_plus_d): Likewise.
2649 (compute_frame_size): Include space for eh data registers in frame if
2650 the current function calls eh_return.
2651 (hppa_expand_prologue): Ensure register %r2 is saved if the current
2652 function calls eh_return. Save eh data registers if the current
2653 function calls eh_return. Fix code to add frame notes. Emit
2654 blockage to prevent insns with frame notes being scheduled in the
2655 delay slot of calls.
2656 (hppa_expand_epilogue): Restore eh data registers and do final stack
2657 adjustment if the current function calls eh_return. Don't add frame
2659 (output_call): Revise for change in length of call insn. Don't do
2660 return pointer adjustment for an unconditional jump in the delay slot
2661 of a call when using frame notes.
2662 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
2663 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
2664 (ARG_POINTER_CFA_OFFSET): Define.
2665 * pa.md (return_external_pic): New pattern.
2666 (prologue): Correct formatting. Use return_external_pic if current
2667 function calls eh_return.
2668 (call_internal_symref, call_value_internal_symref,
2669 sibcall_internal_symref, sibcall_value_internal_symref): Change default
2670 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
2672 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
2674 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
2675 list of targets to check using "nop" insn.
2676 * configure: Rebuilt.
2678 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2680 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
2682 2002-04-03 David S. Miller <davem@redhat.com>
2684 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
2685 library sequence passed to the linker.
2686 (LINK_COMMAND_SPEC): Use it.
2687 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
2688 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
2689 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2691 2002-04-03 Jason Merrill <jason@redhat.com>
2693 * except.c (struct eh_status): Remove protect_list.
2694 (begin_protect_partials, end_protect_partials): Remove.
2695 (add_partial_entry): Remove.
2696 * except.h: Remove prototypes.
2698 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
2699 expand_decl_cleanup_eh.
2702 * tree.h (CLEANUP_EH_ONLY): New macro.
2703 * stmt.c (expand_decl_cleanup_eh): New fn.
2704 (expand_cleanups): Check CLEANUP_EH_ONLY.
2705 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
2706 Use expand_decl_cleanup_eh.
2707 (expand_stmt): Adjust.
2708 * c-common.h: Adjust prototype.
2710 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
2712 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
2713 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
2714 (cris_target_asm_function_epilogue): Ditto.
2715 (cris_initial_frame_pointer_offset): Ditto.
2716 (cris_simple_epilogue): Ditto.
2717 (cris_expand_builtin_va_arg): Variable-size types come in
2720 2002-04-03 David S. Miller <davem@redhat.com>
2722 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
2724 (set_fast_math): Correct 'fsr' type.
2726 2002-04-03 Richard Henderson <rth@redhat.com>
2729 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
2730 * toplev.c (check_global_declarations): Use it.
2731 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
2732 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2733 (LANG_HOOKS_DECLS): Add it.
2734 * langhooks.c (lhd_warn_unused_global_decl): New.
2735 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2736 * c-objc-common.c (c_warn_unused_global_decl): New.
2737 * c-tree.h (c_warn_unused_global_decl): Declare.
2738 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2740 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
2742 * langhooks-def.h (lhd_set_decl_assembler_name,
2743 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
2744 (LANG_HOOKS_INITIALIZER): Update.
2745 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
2746 * langhooks.h (struct lang_hooks): New hook.
2747 * tree.c (set_decl_assembler_name): Move to langhooks.c.
2748 (lang_set_decl_assembler_name): Remove.
2749 (init_obstacks): Don't set hook.
2750 (decl_assembler_name): New function.
2751 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
2752 (decl_assembler_name): New.
2753 (lang_set_decl_assembler_name): Remove.
2755 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2757 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
2758 works properly with .hidden symbols.
2759 * configure: Rebuilt.
2760 * config.in: Rebuilt.
2761 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
2762 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
2763 properly with .hidden symbols.
2765 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2768 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
2771 2002-04-03 Richard Henderson <rth@redhat.com>
2774 * sched-rgn.c (sets_likely_spilled): New.
2775 (sets_likely_spilled_1): New.
2776 (add_branch_dependences): Use it.
2778 2002-04-02 Richard Henderson <rth@redhat.com>
2781 * loop.h (LOOP_FIRST_PASS): New.
2782 * loop.c (strength_reduce): Mind it when deciding to unroll.
2783 * toplev.c (rest_of_compilation): Set it.
2785 2002-04-02 David S. Miller <davem@redhat.com>
2787 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
2788 mems_ok_for_ldd_peep when the order of the loads being examined
2790 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
2791 existing comment to increase comprehension of this situation.
2793 2002-04-02 Zack Weinberg <zack@codesourcery.com>
2795 * config/sh/sh.md: Don't use union real_extract.
2797 2002-04-02 Richard Henderson <rth@redhat.com>
2799 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
2801 2002-04-02 David O'Brien <obrien@FreeBSD.org>
2803 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
2804 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
2805 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
2806 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
2807 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
2808 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
2809 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
2810 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
2811 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
2812 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
2813 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
2814 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
2815 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
2816 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
2817 Include as many configury headers via tm_file as possible. This
2818 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
2819 * config/openbsd-oldgas.h: New file.
2820 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
2821 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
2822 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
2823 config/i386/i386-coff.h, config/i386/i386-interix.h,
2824 config/i386/iscdbx.h, config/i386/linux-aout.h,
2825 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
2826 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
2827 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
2828 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
2829 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
2830 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
2831 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
2832 config/i386/vxi386.h: Do not directly include configury headers.
2833 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
2834 Directly include configury headers that are no longer automatically
2835 included by the above headers.
2836 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
2837 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
2838 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
2839 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
2840 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
2841 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
2842 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
2843 (TARGET_VERSION): Define.
2844 * config/i386/beos-elf.h, config/i386/freebsd.h,
2845 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
2846 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
2847 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
2848 config/i386/sco5.h, config/i386/sysv4.h
2849 (TARGET_VERSION): Do not need to protect.
2850 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
2851 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
2852 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
2853 config/i386/i386-interix.h, config/i386/linux-aout.h,
2854 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
2855 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
2856 (YES_UNDERSCORES): Do not define - not needed.
2857 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
2858 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
2859 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
2860 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
2861 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
2862 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
2863 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
2864 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
2866 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
2867 Richard Henderson <rth@redhat.com>
2870 * function.c (assign_temp): Accept either type or decl argument.
2871 Detect variables whose size is too large to fit into an integer.
2872 * stmt.c (expand_decl): Pass the decl, not the type.
2874 2002-04-02 David O'Brien <obrien@FreeBSD.org>
2876 * protoize.c: Match include directory usage with cppdefault.c.
2878 2002-04-03 Jeffrey A Law (law@redhat.com)
2879 Hans-Peter Nilsson <hp@bitrange.com>
2881 * combine.c (simplify_comparison): Avoid narrowing a comparison
2882 with a paradoxical subreg when doing so would drop signficant bits.
2884 2002-04-02 Steve Ellcey <sje@cup.hp.com>
2886 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
2887 if POINTERS_EXTEND_UNSIGNED is defined.
2889 2002-04-02 Richard Henderson <rth@redhat.com>
2892 * local-alloc.c (contains_replace_regs): LO_SUM may contain
2895 2002-04-02 Richard Henderson <rth@redhat.com>
2897 * doc/standards.texi: Document required freestanding libc entry points.
2899 2002-04-02 Alan Modra <amodra@bigpond.net.au>
2901 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
2902 associated splitter. Remove MQ constraint.
2903 (ctrdi_internal4): Correct CCmode clobber.
2905 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
2907 * milli64.S ($$dyncall): New function.
2908 * t-linux (LIB1ASMFUNCS): Revise module list.
2909 (LIB1ASMSRC): Use pa/milli64.S.
2911 2002-04-02 Richard Henderson <rth@redhat.com>
2913 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
2914 rename solaris_sys_varargs_h.
2916 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2918 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
2919 the same mode as its component.
2921 2002-04-02 Richard Henderson <rth@redhat.com>
2924 * final.c (this_is_asm_operands): Export.
2925 * output.h (this_is_asm_operands): Declare.
2926 * config/i386/i386.c (print_operand): Error odd asm operands.
2928 2002-04-02 Richard Henderson <rth@redhat.com>
2931 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
2933 2002-04-01 Richard Henderson <rth@redhat.com>
2936 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
2937 * fixinc/fixincl.x: Rebuild.
2939 2002-04-01 Richard Henderson <rth@redhat.com>
2941 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
2942 (atomic_alloc, atomic_free): New.
2943 (SIZE, MASK_FOR, PTR_IN): New.
2944 (emergency_reg_state, emergency_reg_state_free): New.
2945 (emergency_labeled_state, emergency_labeled_state_free): New.
2946 (reg_state_alloced, labeled_state_alloced): New.
2947 (alloc_reg_state, free_reg_state): New.
2948 (alloc_label_state, free_label_state, free_label_states): New.
2949 (push, pop, dup_state_stack, free_state_stack): Use them.
2950 (desc_label_state): Likewise.
2951 (uw_frame_state_for): Free label states and state stack.
2952 (uw_update_reg_address): Eliminate warnings.
2954 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
2956 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
2957 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
2959 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
2961 * c-decl.c (grokdeclarator): Update.
2962 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
2963 * c-tree.h (c_mark_addressable): New.
2964 * c-typeck.c (default_function_array_conversion, build_unary_op,
2965 build_array_ref, convert_for_assignment): Update.
2966 (mark_addressable): Rename.
2967 * calls.c (try_to_integrate, expand_call): Use langhook.
2968 * expr.c (expand_expr): Use langhook.
2969 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
2970 * langhooks.h (struct lang_hooks): New hook.
2971 * stmt.c (expand_asm_operands): Use langhook.
2972 * tree.h (mark_addressable): Remove.
2974 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
2976 2002-04-01 Bob Wilson <bob.wilson@acm.org>
2978 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
2981 2002-04-01 Bob Wilson <bob.wilson@acm.org>
2983 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
2984 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
2986 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
2988 * c-common.c (unsigned_conversion_warning, convert_and_check,
2989 unsigned_type, signed_type, shorten_compare,
2990 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
2991 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
2992 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
2994 * c-decl.c (grokdeclarator): Update.
2995 * c-format.c (check_format_types): Update.
2996 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
2997 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
2998 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
2999 * convert.c (convert_to_integer): Use new hooks.
3000 * expmed.c (make_tree): Use new hooks.
3001 * expr.c (store_expr): Use new hooks.
3002 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
3003 all_ones_mask_p, unextend, fold): Use new hooks.
3004 * langhooks.h (struct lang_hooks_for_types): New hooks.
3005 * tree.h (signed_or_unsigned_type, signed_type,
3006 unsigned_type): Remove.
3008 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
3009 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
3011 2002-03-31 Richard Henderson <rth@redhat.com>
3013 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
3014 (desc_frgr_mem): Fix reference to f16-f31.
3016 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3018 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
3019 RTVEC_ELT): Const-ify.
3020 * varray.h (VARRAY_CHECK): Const-ify.
3021 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
3022 ggc_mark_rtvec, ggc_mark): Const-ify.
3024 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
3026 * diagnostic.c: Include langhooks-def.h.
3027 * Makefile.in (diagnostic.o): Update.
3029 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
3031 * c-common.c (c_unsafe_for_reeval): Rename.
3032 * c-common.h (c_unsafe_for_reeval): Rename.
3033 * c-decl.c (finish_incomplete_decl): Rename.
3034 (c_init_decl_processing): Don't set langhook.
3035 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
3036 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3037 * c-objc-common.c (c_objc_common_init): Don't set langhook.
3038 * c-tree.h (finish_incomplete_decl): Rename.
3039 * langhooks-def.h (lhd_unsafe_for_reeval): New.
3040 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
3041 (LANG_HOOKS_INITIALIZER): Update.
3042 * langhooks.c (lhd_unsafe_For_reeval): New.
3043 * langhooks.h (struct langhooks): New hooks.
3044 * toplev.c (incomplete_decl_finalize_hook): Remove.
3045 (wrapup_global_declarations): Update.
3046 * tree.c (lang_unsafe_for_reeval): Remove.
3047 (unsafe_for_reeval): Update.
3048 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
3051 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
3052 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3054 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
3056 * diagnostic.c (print_error_function): Remove.
3057 (default_print_error_function): Rename.
3058 (report_error_function): Update.
3059 * diagnostic.h (print_error_function): Remove.
3060 (default_print_error_function): Remove.
3061 * langhooks-def.h (struct diagnostic_context): Predeclare.
3062 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
3063 (LANG_HOOKS_INITIALIZER): Update.
3064 * langhooks.h (struct diagnostic context): Predeclare.
3065 (struct lang_hooks): New hook.
3067 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3069 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
3070 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
3072 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
3073 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
3074 of PIC_OFFSET_TABLE_REGNUM thruout.
3075 * config/rs6000/rs6000.md: Likewise.
3076 * config/rs6000/darwin.h: Likewise.
3078 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3080 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
3081 unsigned HOST_WIDE_INT, not unsigned int.
3083 2002-03-31 Jakub Jelinek <jakub@redhat.com>
3085 PR middle-end/6096, middle-end/6098, middle-end/6099
3086 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
3088 (fill_slots_from_thread): Likewise.
3090 2002-03-31 Jakub Jelinek <jakub@redhat.com>
3092 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
3093 floating fields in float regs.
3094 (function_arg_record_value_2): Likewise.
3096 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
3098 * config/mmix/mmix.md (define_constants): Remove misleading
3099 FIXME. Add MMIX_fp_rO_OFFSET.
3100 ("nonlocal_goto_receiver"): Don't have stack-frame address of
3101 saved rO as part of the pattern. Remove FIXME.
3102 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
3103 here, at output-time.
3105 2002-03-31 Jakub Jelinek <jakub@redhat.com>
3108 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
3110 (output_v9branch): Likewise.
3112 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
3114 * gcc.c: Revert previous patch for now.
3115 * config/i386/djgpp.h: Likewise.
3117 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
3119 * config/mmix/crti.asm (_init): Register _fini with atexit.
3120 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
3122 2002-03-31 Richard Henderson <rth@redhat.com>
3125 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
3126 (ASM_OUTPUT_DEF_FROM_DECLS): New.
3128 2002-03-31 Richard Henderson <rth@redhat.com>
3130 * libgcc2.c (__bb_exit_func): Make static.
3132 * config/alpha/alpha.md (trap): New.
3134 2002-03-31 Richard Henderson <rth@redhat.com>
3136 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
3137 promoted argument types; build trap.
3138 (expand_builtin_trap): New.
3139 (expand_builtin): Use it.
3140 * stmt.c (expand_nl_goto_receivers): Likewise.
3141 * expr.h (expand_builtin_trap): Declare.
3142 * libfuncs.h (LTI_abort, abort_libfunc): New.
3143 * optabs.c (init_optabs): Init abort_libfunc.
3145 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
3147 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
3148 (LINK_COMMAND_SPEC): ... from here.
3149 (init_gcc_specs): Duplicate it here too, omitting
3150 shared_name in the second copy.
3151 (init_spec): Test for duplicate
3152 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
3154 2002-03-30 David S. Miller <davem@redhat.com>
3156 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3157 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
3159 2002-03-30 Roger Sayle <roger@eyesopen.com>
3160 Richard Henderson <rth@redhat.com>
3162 * regmove.c (combine_stack_adjustments_for_block): Avoid
3163 emitting a stack adjustment of zero bytes. Let delete_insn
3166 2002-03-30 Richard Henderson <rth@redhat.com>
3168 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
3169 (sparc_emitting_epilogue): New.
3170 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
3171 * config/sparc/sparc-protos.h: Update.
3172 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
3173 (TARGET_SWITCHES): Update.
3174 * config/sparc/sparc.md (return): Remove.
3175 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
3176 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
3177 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
3178 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
3179 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
3180 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
3181 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
3182 Remove MASK_EPILOGUE.
3183 * doc/invoke.texi: Update.
3185 2002-03-30 Daniel Berlin <dan@dberlin.org>
3187 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
3188 CPP will start the file for us.
3190 2002-03-30 Richard Henderson <rth@redhat.com>
3193 * config/ia64/ia64.c (group_barrier_needed_p): Special case
3194 prologue_allocate_stack.
3195 (ia64_single_set): Use insn codes for recognition of special
3196 cases, not rtl matching.
3197 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
3199 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
3201 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
3203 2002-03-30 Richard Henderson <rth@redhat.com>
3206 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
3207 or -fomit-frame-pointer with profiling.
3208 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3209 (FUNCTION_PROFILER): Do nothing.
3210 (PROFILE_HOOK): New.
3211 * config/sparc/sparc.c (sparc_override_options): Don't check
3212 code models for profiling.
3213 (sparc_function_profiler): Remove.
3214 (sparc_profile_hook): New.
3215 * config/sparc/sparc-protos.h: Update.
3217 2002-03-30 Jakub Jelinek <jakub@redhat.com>
3219 PR optimization/6086
3220 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
3221 of SUBREG of volatile MEM or because the MEM was mode dependent,
3222 return CLOBBER instead of unmodified SUBREG.
3224 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
3226 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
3227 when not optimizing.
3229 * toplev.c (rest_of_compilation): Cann mark_constant_function
3230 only when optimizing.
3232 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
3235 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
3236 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
3237 (try_optimize_cfg): clear all AUX fields.
3239 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
3240 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
3241 (ix86_address_cost): Be prepared for SUBREGed registers.
3242 (legitimate_address_p): Accept SUBREGed registers.
3244 2002-03-29 Richard Henderson <rth@redhat.com>
3247 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
3249 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3251 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
3252 for aggregate and TFmode types.
3254 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
3256 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
3258 2002-03-29 Richard Henderson <rth@redhat.com>
3261 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
3262 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
3264 2002-03-29 Richard Henderson <rth@redhat.com>
3267 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
3268 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
3269 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
3270 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
3272 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
3274 2002-03-29 Dale Johannesen <dalej@apple.com>
3276 * loop.c (combine_movables): Do allow combination of pseudos.
3278 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
3280 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
3281 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
3282 No functional change except ...
3283 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
3284 * doc/install.texi (*-*-freebsd*): Document port configuration.
3286 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
3288 * Makefile.in (convert.o, calls.o, expmed.o): Update.
3289 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
3291 * builtin-types.def (BT_PTRMODE): Update.
3292 * c-common.c (type_for_size): Rename c_common_type_for_size.
3293 (type_for_mode): Similarly.
3294 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
3296 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
3297 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
3298 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
3300 * c-typeck.c (common_type, comptypes, default_conversion):
3302 * calls.c: Include langhooks.h.
3303 (emit_library_call_value_1): Use new hooks. Avoid redundant
3305 * convert.c: Include langhooks.h
3306 (convert_to_pointer, convert_to_integer): Use new hooks.
3307 * except.c (init_eh): Similarly.
3308 * expmed.c: Include langhooks.h.
3309 (expand_mult_add): Use new hooks.
3310 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
3311 try_casesi): Similarly.
3312 * fold-const.c (optimize_bit_field_compare, make_range,
3313 decode_field_reference, fold_truthop, fold): Similarly.
3314 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
3315 put_var_into_stack): Similarly.
3316 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
3317 LANG_HOOKS_TYPE_FOR_SIZE): New.
3318 (LANG_HOOKS_TYPES_INITIALIZER): Update.
3319 * langhooks.h (lang_hooks_for_types): New hooks.
3320 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
3321 * tree.c (get_unwidened, get_narrower): Similarly.
3322 * tree.h (type_for_mode, type_for_size): Remove.
3323 * varasm.c (force_const_mem): Use new hooks.
3324 * utils2.c (nonbinary_modular_operation): Update.
3326 * objc-act.c (handle_impent): Update.
3327 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
3330 2002-03-29 Steve Ellcey <sje@cup.hp.com>
3332 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
3333 * config/ia64/ia64.c (basereg_operand): New.
3334 * config/ia64/ia64-protos.h (basereg_operand): Declare.
3335 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
3337 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
3339 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
3340 unwind information when frame_pointer_needed.
3341 (mmix_assemble_integer): Tweak wording in comment.
3343 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
3345 * Makefile.in (except.o): Update.
3346 * except.c: Include langhooks.h.
3347 (init_eh): Use langhook.
3348 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
3349 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
3350 (LANG_HOOKS_INITIALIZER): Update.
3351 * langhooks.h (lang_hooks_for_types): New.
3352 (struct lang_hooks): Add it.
3353 * tree.c (make_lang_type_fn, make_lang_type): Remove.
3354 * tree.h (make_lang_type_fn, make_lang_type): Remove.
3356 * alpha/alpha.c: Include langhooks.h.
3357 (alpha_build_va_list): Use langhook.
3358 * d30v/d30v.c: Include langhooks.h.
3359 (d30v_build_va_list): Use langhook.
3360 * i386/i386.c: Include langhooks.h.
3361 (ix86_build_va_list): Use langhook.
3362 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
3363 * s390/s390.c: Include langhooks.h.
3364 (s390_build_va_list): Use langhook.
3365 * stormy16/stormy16.c: Include langhooks.h.
3366 (stormy16_build_va_list): Use langhook.
3368 2002-03-29 Jakub Jelinek <jakub@redhat.com>
3371 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
3373 (length): Compute variable length for branches/calls/jumps here.
3374 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
3375 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
3376 define branch_type attribute.
3377 (divsi3_sp32): Maximum length is 6 not 7.
3378 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
3379 call_address_untyped_struct_value_sp32,
3380 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
3381 * config/sparc/sparc.c (empty_delay_slot): New function.
3382 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
3383 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
3385 2002-03-29 Jakub Jelinek <jakub@redhat.com>
3387 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
3388 nonzero_bits if not needed.
3389 (nonzero_bits) [XOR]: Likewise.
3390 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
3391 reg_last_set_mode and mode are both MODE_INT, but not equal.
3392 (record_value_for_reg): Compute reg_last_set_nonzero_bits
3393 in nonzero_bits_mode for MODE_INT modes.
3395 2002-03-28 Richard Henderson <rth@redhat.com>
3398 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
3399 to GAS. Correct drift between alternatives.
3401 2002-03-28 Richard Henderson <rth@redhat.com>
3404 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
3406 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
3408 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
3409 emulation to the linker.
3411 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
3413 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
3414 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
3416 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
3418 * combine.c (simplify_and_const_int): Make sure to apply mask
3419 when force_to_mode returns a constant integer. PR3311.
3421 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
3423 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
3425 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3427 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
3428 and Objective-C Dialect Options.
3430 2002-03-28 Richard Henderson <rth@redhat.com>
3432 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
3433 comparison should be done vs !=0 not >0 return code. Tidy cases.
3435 2002-03-28 Richard Henderson <rth@redhat.com>
3437 * c-decl.c (finish_function): New arg can_defer_p. Pass it
3438 on to c_expand_body.
3439 * c-tree.h (finish_function): Update decl.
3440 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
3442 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
3444 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
3446 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
3448 * rtlanal.c: Include flags.h
3449 (may_trap_p): Do not mark FP operations if trapping
3450 if !flag_trapping_math
3451 * Makefile.in (rtlanal.o): Add dependency on flag.h
3452 * ifcvt.c (noce_operand_ok): Avoid the lameness.
3454 2002-03-27 Zack Weinberg <zack@codesourcery.com>
3456 * mips.md: Use dconst1, not 1.0, as first argument of
3457 REAL_VALUE_LDEXP. Don't use union real_extract.
3459 2002-03-28 Alan Modra <amodra@bigpond.net.au>
3461 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
3462 rather than $target. Heed program_prefix and
3463 program_transform_name. Search for gas in cross-compiler case too.
3464 "test -x" rather than "test -f".
3465 (gcc_cv_ld): Likewise.
3466 (gcc_cv_nm): Heed program_prefix and program_transform_name.
3467 (gcc_cv_objdump): Likewise.
3468 * configure: Regenerate.
3470 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
3472 * Makefile.in (attribs.o): Update.
3473 * attribs.c: Include langhooks.h.
3474 (decl_attributes): Use langhook.
3475 * c-decl.c (insert_default_attributes): Rename.
3476 * c-tree.h (c_insert_default_attributes): New.
3477 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
3478 (LANG_HOOKS_INITIALIZER): Update.
3479 * langhooks.h (struct lang_hooks): New hook.
3480 * tree.h (insert_default_attributes): Remove.
3482 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
3484 2002-03-27 Andreas Schwab <schwab@suse.de>
3486 * config/i386/i386.c (classify_argument): Also check for
3489 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3491 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
3494 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
3496 * i960.md (ret): Set PC.
3497 (nonlocal_goto): Fix expander.
3498 * builtins.c (epxand_builin_longjmp): Check that we've emitted
3501 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
3503 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
3506 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3508 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
3509 assigning to BLOCK_FOR_INSN directly.
3511 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
3513 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
3515 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
3517 * c-common.c (c_expand_expr): Fix prototype.
3518 * c-common.h (c_expand_expr): Always declare, update.
3519 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
3520 * c-objc-common.c (c_objc_common_init): No global hook.
3521 * expr.c (expand_expr): Use langhook.
3522 * expr.h (enum expand_modifier): Conditionally declare.
3523 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
3524 (LANG_HOOKS_INITIALIZER): Update.
3525 * langhooks.c (lhd_expand_expr): New.
3526 * langhooks.h (struct lang_hooks): New hook.
3527 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
3528 (lang_independent_init): Don't default hook.
3530 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
3532 2002-03-27 Richard Henderson <rth@redhat.com>
3535 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
3536 TARGET_CONST_GP. Simplify conditions.
3538 2002-03-27 Richard Henderson <rth@redhat.com>
3540 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
3541 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
3542 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
3544 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
3546 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
3547 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
3548 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
3549 Remove unnecessary masks.
3550 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
3551 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
3552 -mwindows, -mdll switches and their negations.
3554 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
3556 * gcc-common.c (lang_mark_false_label_stack): Remove.
3557 * ggc.h (lang_mark_false_label_stack): Similarly.
3559 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
3561 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
3563 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
3564 or __rtems_ is defined.
3566 2002-03-26 Richard Henderson <rth@redhat.com>
3568 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
3569 if a non-trivial load was emitted.
3570 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
3571 in high+extra+low case.
3573 2002-03-26 Richard Henderson <rth@redhat.com>
3575 * config.gcc (sparc*-solaris): Use float_format=sparc.
3577 2002-03-26 Richard Henderson <rth@redhat.com>
3579 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
3580 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
3581 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
3582 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
3583 (WINT_TYPE_SIZE): Fix at 32.
3585 2002-03-26 Richard Henderson <rth@redhat.com>
3587 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
3588 until after eh landing pad generation.
3589 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
3590 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
3592 2002-03-26 Richard Henderson <rth@redhat.com>
3594 * expr.h (ADD_PARM_SIZE): One more convert for INC.
3596 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
3598 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
3599 and warning switches.
3600 (cc1_options): Likewise.
3602 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
3604 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
3605 Restore more of the signal context. Set no_reg_stack_frame.
3606 * config/ia64/unwind-ia64.c (unw_state_record):
3607 Add no_reg_stack_frame, comments.
3608 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
3609 (uw_update_context): Adjust bsp when unwinding from leaf,
3610 but not signal frame.
3612 2002-03-26 David Edelsohn <edelsohn@gnu.org>
3614 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
3616 2002-03-26 Bob Wilson <bob.wilson@acm.org>
3618 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
3620 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
3623 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
3624 "Add a pool_range attribute", which was lost during the ARM/Thumb
3627 2002-03-26 Bob Wilson <bob.wilson@acm.org>
3629 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
3630 a register into the MAC16 accumulator.
3632 2002-03-26 Andrew Cagney <ac131313@redhat.com>
3634 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
3635 (Warning Options): Document -Wswitch-enum.
3636 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
3638 (warn_switch_enum): Define variables.
3639 * flags.h (warn_switch_enum): Declare variables.
3640 * stmt.c (expand_end_case_type): When warn_switch_enum /
3641 -Wswitch-enum, perform switch checks.
3644 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
3646 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
3647 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
3648 (reload_muladdsi_compare0_scratch): Delete.
3650 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
3652 * doc/install.texi (*-*-freebsd*): Update.
3654 2002-03-26 Richard Henderson <rth@redhat.com>
3656 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
3657 (SUB_PARM_SIZE): Cast DEC to ssizetype.
3659 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
3660 types from the normal argument frame.
3662 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
3663 variable sized objects by reference.
3664 (sparc_va_arg): Receive them by reference too.
3666 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
3668 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
3669 code to not restoring global registers.
3671 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
3673 * Makefile.in (ggc-common.o): Update.
3674 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
3675 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
3676 * c-tree.h (c_mark_tree): New.
3677 * ggc-common.c: Include langhooks.h.
3678 (gcc_mark_trees): Use new langhook.
3679 * ggc-callbacks.c: Delete file.
3680 * ggc.h (lang_mark_tree): Remove.
3681 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
3682 (LANG_HOOKS_INITIALIZER): Update.
3683 * langhooks.h (struct lang_hooks): New hook.
3685 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
3687 2002-03-25 Zack Weinberg <zack@codesourcery.com>
3689 * doc/cpp.texi: Exclude entire Top node from printed manual.
3690 Move option index after directive index. Insert page breaks
3691 before GFDL and concept index. Index environment variables
3692 with command line options.
3693 * doc/cppenv.texi: Use @vtable for environment variable list.
3694 Add paragraph explaining semantics of empty elements in path
3695 variables. Exclude a cross-reference to Fishkill from the
3696 manpage. Remove an unnecessary cross-reference of the entry
3697 right above the referer. Don't use @anchor in text that goes
3699 * doc/cppopts.texi: Cross-reference the environment variables
3700 section, not the specific environment variable, for consistency.
3702 2002-03-25 Richard Henderson <rth@redhat.com>
3704 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
3705 anywhere in the block. Don't refer to insns that have been
3706 removed from the chain. Iterate backward through the new insns.
3707 Don't refer to edges that have been removed.
3709 2002-03-26 Alan Modra <amodra@bigpond.net.au>
3711 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
3712 test for overflow of constant.
3714 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
3717 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
3718 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
3719 these patterns on arm_archv4.
3721 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
3723 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
3726 2002-03-25 Zack Weinberg <zack@codesourcery.com>
3728 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
3729 float_handled, float_handler, float_signal, set_float_handler,
3730 and do_float_handler. Set handler for SIGFPE to crash_signal.
3731 * toplev.h: Don't prototype do_float_handler.
3733 * c-lex.c: Fold parse_float into lex_number. Make warning
3734 about portability of hex float constants more informative, and
3735 don't issue it on top of a syntax error.
3736 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
3738 * real.h: Define REAL_VALUE_ABS here...
3739 * simplify-rtx.c: ... not here. Fold check_fold_consts,
3740 simplify_unary_real, simplify_binary_real, and
3741 simplify_binary_is2orm1 into their callers.
3742 * tree.c: Fold build_real_from_int_cst_1 into caller.
3744 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
3746 * tsystem.h: Include float.h here...
3747 * libgcc2.c: ... not here.
3749 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
3751 Fixes for: PR bootstrap/3591, target/5676
3752 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
3753 defined. Do not disable exceptions or rtti.
3754 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
3755 mcore.h. Disable exceptions and rtti, since they are not
3758 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
3760 * c-decl.c (maybe_build_cleanup): Remove.
3761 * expr.c (expand_expr): Use langhook.
3762 * langhooks-def.h (lhd_return_null_tree,
3763 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
3764 (LANGHOOKS_INITIALIZER): Update.
3765 * langhooks.c (lhd_return_null_tree): New.
3766 * langhooks.h (struct lang_hooks): New hook.
3767 * tree-inline.c (initialize_inlined_parameters): Use langhook.
3768 * tree.h (maybe_build_cleanup): Remove.
3770 2002-03-25 Jakub Jelinek <jakub@redhat.com>
3772 * regrename.c (build_def_use): Move recog_memoized
3773 before extract_insn.
3775 2002-03-25 Jakub Jelinek <jakub@redhat.com>
3778 * expr.c (emit_group_store): Handle storing into CONCAT.
3780 2002-03-25 Jakub Jelinek <jakub@redhat.com>
3782 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
3783 corresponding MATCH_DUP.
3785 2002-03-24 Richard Henderson <rth@redhat.com>
3787 * unroll.c (unroll_loop): Zero label_map.
3789 * gcse.c: Include except.h.
3790 * Makefile.in (gcse.o): Update.
3792 2002-03-24 Richard Henderson <rth@redhat.com>
3794 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
3795 Do resolve_unique_section before shared data clause.
3797 2002-03-24 Richard Henderson <rth@redhat.com>
3799 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
3801 2002-03-24 Richard Henderson <rth@redhat.com>
3803 * recog.c (peephole2_optimize): Split blocks when EH insns are
3804 generated in the middle of a block. Do global life update if
3807 2002-03-24 Richard Henderson <rth@redhat.com>
3809 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
3811 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
3814 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
3815 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
3816 (init_dependency_output): Don't make no_output decision here.
3818 2002-03-24 Andrew Cagney <ac131313@redhat.com>
3820 * stmt.c (check_for_full_enumeration_handling): Remove tests of
3821 warn_switch. Update description.
3822 (expand_end_case_type): Call check_for_full_enumeration_handling
3825 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3827 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
3828 (m68hc11_split_move): Call it to see if the source and destination
3829 operands use the same direction auto inc/dec mode, otherwise make the
3830 source an offsetable memory operand and generate an add.
3832 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3834 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
3835 register for operand 2.
3836 ("*subsi3_zero_extendqi"): Likewise.
3837 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
3838 bits so that it is compatible with a pop.
3839 ("*andhi3_gen"): Likewise.
3840 ("xorhi3"): Likewise.
3842 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
3844 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
3846 (cpp_post_options): ... not here.
3848 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
3849 Aldy Hernandez <aldyh@redhat.com>
3851 Removal of separate preprocessor cpp0.
3853 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
3854 cpp0, install-common): Update.
3855 * c-common.c (flag_preprocess_only): New.
3856 (c_common_init): Preprocess for -E.
3857 * c-common.h (flag_preprocess_only): New.
3858 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
3859 * c-objc-common.c (c_init_decl_processing): Exit quickly
3860 for NULL return from c_common_init.
3861 * cpplib.h (cpp_preprocess_file): New.
3862 * cppmain.c (main, general_init, pfile, progname): Remove.
3863 (do_preprocessing): Rename cpp_preprocess_file, don't call
3864 cpp_finish. Don't close stdout here.
3865 (setup_callbacks): Update prototype.
3866 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
3868 * tradcpp.c (main): Ignore -quiet.
3870 * lang-specs.h (default_compilers): Preprocess with cc1obj.
3872 2002-03-24 Richard Henderson <rth@redhat.com>
3874 PR optimization/5742
3875 * machmode.def: Add inner mode field to complex modes.
3876 * config/mips/mips.c (mips_function_value): Always define. Add
3877 new argument to handle libcalls.
3878 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
3879 (FUNCTION_VALUE): Likewise.
3880 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
3881 * config/mips/mips-protos.h: Update.
3883 2002-03-23 Richard Henderson <rth@redhat.com>
3885 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
3886 * config/sparc/sparc-protos.h: Update.
3887 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
3889 2002-03-23 Richard Henderson <rth@redhat.com>
3891 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
3892 _start or _init begins the text segment.
3894 2002-03-23 David Edelsohn <edelsohn@gnu.org>
3896 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
3897 not HOST_WIDEST_INT.
3898 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
3900 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
3903 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
3904 operand argument to output_return_instruction.
3905 * arm.c (arm_print_operand, case 'd'): If the operand is
3906 const_true_rtx then just return.
3907 (arm_print_operand, case 'D'): If the operand is const_true_rtx
3910 2002-03-23 Andrew Cagney <ac131313@redhat.com>
3912 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
3913 (Warning Options): Document -Wswitch-default.
3914 * toplev.c (W_options): Add -Wswitch-default. Update comment on
3916 (warn_switch_default): Define variable.
3917 (warn_switch): Update comment.
3918 * flags.h (warn_switch_default): Declare variable.
3919 (warn_switch): Update comment.
3920 * stmt.c (expand_end_case): Check for and, when
3921 warn_switch_no_default, warn of a missing default case.
3923 2002-03-23 Alan Modra <amodra@bigpond.net.au>
3925 * real.h (N): Special case 128 bit doubles.
3927 * combine.c (simplify_comparison): When widening modes, ignore
3928 sign extension on CONST_INTs.
3930 2002-03-22 Bob Wilson <bob.wilson@acm.org>
3932 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
3933 passed to adjust_address. Fix comment formatting.
3936 2002-03-22 Zack Weinberg <zack@codesourcery.com>
3938 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
3939 Always make REAL_VALUE_TYPE a struct containing an array of
3940 HOST_WIDE_INT, not a double. Tidy up the code deciding how
3941 big it is. Don't declare or use union real_extract.
3943 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
3944 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
3945 (print_operand), config/arm/arm.c (output_move_double),
3946 config/arm/arm.md (consttable_4, consttable_8),
3947 config/romp/romp.c (output_fpops), config/s390/s390.h
3948 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
3949 (xtensa_output_literal): Don't use union real_extract.
3951 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
3952 (sfmode_constant_to_ulong), config/ns32k/merlin.h
3953 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
3954 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
3955 (PRINT_OPERAND): Don't use local version of union
3958 * config/convex/convex.c (check_float_value), config/vax/vax.c
3959 (vax_float_literal), config/m88k/m88k.md (divdf3),
3960 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
3961 config/pdp11/pdp11.c (output_move_quad): Don't do host
3962 arithmetic on target floating point quantities.
3964 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
3965 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
3967 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
3968 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
3970 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
3971 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
3973 * print-rtl.c (print_rtx): Disable code which needs
3974 floating-point emulator.
3975 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
3976 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
3977 depending on HOST_FLOAT_FORMAT to be defined properly.
3979 * config/1750a/1750a.c (get_double, float_label): Delete.
3980 (print_operand): Delete huge commented-out chunk. Use
3981 REAL_VALUE_TO_DECIMAL.
3982 * config/1750a/1750a-protos.h: Delete prototypes of deleted
3984 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
3986 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
3987 Use REAL_VALUE_TO_DECIMAL as ELF version does.
3988 * config/m88k/m88k.c (real_power_of_2_operand,
3989 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
3990 real_extract out of the union; run the input through
3991 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
3992 from that into the union.
3993 * config/pdp11/pdp11.c (output_move_double): Rearrange
3994 parentheses to make automatic indenter happy.
3996 * doc/tm.texi (Cross-compilation): Rename node to "Floating
3997 Point" and rewrite to describe current situation. Also adjust
3998 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
4000 * doc/rtl.texi: Adjust cross reference.
4002 2002-03-22 Bob Wilson <bob.wilson@acm.org>
4004 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
4005 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
4006 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
4007 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
4008 prevent use of sp as a reload register.
4009 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
4010 non_acc_reg_operand.
4011 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
4012 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
4013 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
4014 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
4016 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
4018 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
4019 * cpplex.c (unterminated): Delete.
4020 (parse_string): No string literal may extend over multiple
4021 lines. Suppress the error when preprocessing assembly.
4022 * cppmain.c (scan_translation_unit): Strings are single-line.
4024 * doc/cpp.texi: Update to match.
4026 2002-03-22 Jakub Jelinek <jakub@redhat.com>
4028 PR optimization/5854
4029 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
4031 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
4032 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
4033 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
4034 const0 if scratch register was not allocated.
4035 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
4036 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
4038 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
4039 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
4040 with GEN_INT (...) everywhere. Remove constraints in define_split
4042 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
4043 require scratch register for setting 0 into regs/non-pushable memory.
4045 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
4047 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
4048 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
4050 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
4052 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
4053 * cppinit.c (cpp_create_reader): On by default.
4054 (cpp_handle_option): Handle -W[no-]endif-labels.
4055 (cpp_post_options): Also enable if -pedantic.
4056 * cpplib.c (do_else): Use it.
4057 (do_endif): Likewise.
4058 * doc/cppopts.texi: Document new option.
4059 * doc/invoke.texi: Document new option.
4061 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
4063 * config/i386/i386.c, config/i386/i386.md: Change all occurences
4064 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
4066 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
4068 * flow.c (calculate_global_regs_live): Clear aux fields of
4071 2002-03-22 Jakub Jelinek <jakub@redhat.com>
4073 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
4074 REG or MEM subregs, pass rtx * instead of rtx to it.
4075 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
4076 rtx * instead of rtx to alter_subreg.
4077 * config/m32r/m32r.c (gen_split_move_double): Likewise.
4078 * config/pj/pj.c (pj_output_rval): Likewise.
4080 2002-03-22 Richard Henderson <rth@redhat.com>
4083 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
4084 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
4085 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
4086 (ia64_expand_prologue): Look at int_regs, not words, for number
4087 of incomming int regs.
4089 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
4091 * expr.c (expand_expr): A RESULT_DECL is part of a call.
4093 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
4095 * toplev.c (flag_loop_optimize, flag_crossjumping):
4096 New static variables.
4097 (rest_of_compilation): Conditionalize crossjumping and
4099 (parse_options_and_default_flags): Default loop_optimize and
4101 (lang_independent_options): Add -fcrossjumping and -floop-optimize
4102 * invoke.texi (crossjumping, loop-optimize): Document.
4104 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
4106 * real.c (eiisneg): Move outside #ifdef NANS.
4108 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
4110 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
4111 frequencies match; avoid match on different loop depths.
4112 (try_crossjump_to_bb): Kill tests that no longer brings time
4114 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
4116 (split_edge): Likewise.
4118 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
4121 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
4122 * cfgrtl.c: Include insn-config.h
4123 (split_block) Dirtify block in presence of conditional execution
4125 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
4127 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
4128 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
4129 (function_arg): Constify CUMULATIVE_ARGS.
4130 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
4131 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
4132 (UNITS_PER_DOUBLE): New macro.
4133 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
4134 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
4135 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
4136 fp_regs and stack_words.
4137 (EABI_FLOAT_VARARGS_P): New macro.
4138 * config/mips/mips.c (struct mips_arg_info): New.
4139 (mips_arg_info): New function.
4140 (function_arg_advance): Use it. Add adjustment instructions here
4141 rather than in function_arg.
4142 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
4143 for VOIDmode at the beginning of the function.
4144 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
4145 (function_arg_pass_by_reference): Likewise.
4146 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
4147 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
4148 (mips_va_start): Likewise. Use the new stack_words field of
4149 CUMULATIVE_ARGS to set up overflow area. Reformat.
4150 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
4151 doubles and other types, aligning the overflow pointer for non-doubles
4152 too. Remove some code duplication. Replace hard-coded constants.
4154 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
4156 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
4157 (CLASS_UNITS): Undefine.
4158 (CLASS_MAX_NREGS): Use FP_INC.
4159 * config/mips/mips.c (compute_frame_size): Likewise.
4160 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
4162 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
4164 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
4165 prototype, and handle lexing numbers and identifiers.
4166 (parse_identifier): Update to new form of parse_slow.
4167 (parse_number): Fast path only, use parse_slow otherwise.
4168 (_cpp_lex_direct): Update calls to parse_number.
4170 2002-03-21 DJ Delorie <dj@redhat.com>
4172 * bb-reorder.c (make_reorder_chain_1): Protect against
4173 when redundant edges are omitted.
4174 * predict.c (dump_prediction): Likewise.
4176 2002-03-21 Richard Henderson <rth@redhat.com>
4179 * fixinc/inclhack.def (solaris_stdio_tag): New.
4180 * fixinc/fixincl.x: Regenerate.
4182 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
4185 * c-typeck.c (process_init_element): Flag non-static
4186 initialization of a flexible array member as illegal.
4188 2002-03-22 Alan Modra <amodra@bigpond.net.au>
4190 * config/rs6000/t-linux64: New.
4191 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
4192 t-ppccomm. Use t-rs6000 and t-linux64.
4193 (powerpc64-*-gnu* <tmake_file>): Likewise.
4194 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
4195 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
4196 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
4198 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
4200 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
4201 flag_really_no_inline instead of optimize == 0.
4203 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
4205 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
4207 * flags.h (flag_really_no_inline): New.
4209 * c-common.c (c_common_post_options): Initialize
4210 flag_really_no_inline.
4212 * toplev.c (flag_really_no_inline): New.
4214 2002-03-21 Jakub Jelinek <jakub@redhat.com>
4216 * config/avr/avr.md (length): Fix length computation for
4217 conditional branches.
4219 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
4221 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
4222 sdbout.o, profile.o): Update.
4223 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
4225 * c-common.h (gettags): Move here from tree.h.
4226 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
4227 insert_block, getdecls, kept_level_p, global_bindings_p): New.
4228 * dbxout.c (dbxout_init): Use getdecls langhook.
4229 * expr.c (expand_expr): Use insert_block langhook.
4230 * fold-const.c: Include langhooks.h.
4231 (fold_range_test, fold_binary_op_with_conditional_arg,
4232 fold): Use global_bindings_p langhook.
4233 * integrate.c (expand_inline_function): Use insert_block langhook.
4234 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
4235 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
4236 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
4237 LANG_HOOKS_GETDECLS): New.
4238 (LANG_HOOKS_INITIALIZER): Update.
4239 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
4241 * langhooks.h (struct lang_hooks_for_decls): New.
4242 (struct lang_hooks): Update.
4243 * profile.c: Include langhooks.h.
4244 (output_func_start_profiler): Use new langhooks.
4245 * sdbout.c: Include langhooks.h.
4246 (sdbout_init, sdbout_finish): Use getdecls langhook.
4247 * stmt.c: Include langhooks.h.
4248 (expand_fixup, fixup_gotos): Use new langhooks.
4249 * stor-layout.c: Include langhooks.h.
4250 (variable_size): Use global_bindings_p langhook.
4251 * toplev.c (compile_file): Use getdecls langhook.
4252 * tree-inline.c (remap_block): Use insert_block langhook.
4253 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
4254 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
4256 2002-03-21 Richard Henderson <rth@redhat.com>
4258 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
4259 constants in .data when -fpic.
4261 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4263 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
4266 2002-03-21 Tom Tromey <tromey@redhat.com>
4268 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
4270 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4272 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
4274 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
4276 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
4277 Richard Henderson <rth@redhat.com>
4280 * c-common.c (c_expand_expr): Preserve result of a statement
4281 expression if needed.
4283 2002-03-21 Jakub Jelinek <jakub@redhat.com>
4286 * genrecog.c (maybe_both_true_mode): Remove.
4287 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
4288 * machmode.def (Pmode): Likewise.
4290 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
4292 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
4293 (nonlocal_mentioned_p_1): New function.
4294 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
4295 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
4296 (mark_constant_function): Recognize pure functions.
4297 * rtl.h (global_reg_mentioned_p): New prototype.
4298 * rtlanal.c (global_reg_mentioned_p,
4299 global_reg_mentioned_p_1): New function.
4301 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4303 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
4305 * fixinc/fixincl.x: Regenerate.
4307 2002-03-20 Jason Merrill <jason@redhat.com>
4309 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
4311 2002-03-20 Michael Meissner <meissner@redhat.com>
4313 * doc/invoke.texi (Optimize Options): Document that -O2 sets
4316 2002-03-20 Bob Wilson <bob.wilson@acm.org>
4318 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
4319 ".literal_position" directive before the constant pool.
4321 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4323 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
4324 Add Craig Rodrigues.
4325 Add Brad Lucier to testers.
4327 2002-03-20 Jakub Jelinek <jakub@redhat.com>
4330 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
4332 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
4333 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
4334 instead of insn_extract.
4336 2002-03-20 Jakub Jelinek <jakub@redhat.com>
4339 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
4341 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
4342 stmt if some case has been output.
4344 2002-03-20 Jakub Jelinek <jakub@redhat.com>
4347 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
4348 movsfcc_1, movdfcc_1): Add %O2.
4349 * config/i386/i386.c (print_operand): Handle %ON.
4350 Print . before float condition codes in Sun as cmov syntax.
4351 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
4352 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
4355 2002-03-20 Philip Blundell <pb@nexus.co.uk>
4357 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
4358 return instruction if PC was popped.
4360 2002-03-20 Bob Wilson <bob.wilson@acm.org>
4362 * config/xtensa/xtensa.md: Remove unused type attributes.
4363 (adddi_carry, subddi_carry): Change type attribute to "multi".
4365 2002-03-19 Dale Johannesen <dalej@apple.com>
4367 PR optimization/5999, middle-end/5731
4368 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
4369 multiplications by reciprocals.
4371 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
4373 * Makefile.in: Update.
4374 * c-common.c: Include langhooks.h.
4375 (inline_forbidden_p): Use new hook.
4376 * diagnostic.c: Include langhooks.h.
4377 (format_with_decl, announce_function,
4378 default_print_error_function): Use new hook.
4379 * dwarf2out.c (dwarf2_name): Use new hook.
4380 * function.c: Include langhooks.h.
4381 (init_function_start): Use new hook.
4382 * langhooks-def.h (lhd_decl_printable_name): New.
4383 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
4384 (LANGHOOKS_INITIALIZER): Update.
4385 * langhooks.c (lhd_decl_printable_name): New.
4386 * langhooks.h (struct lang_hooks): New hook.
4387 * toplev.c (decl_name, decl_printable_name): Remove.
4388 (open_dump_file): Use new hook.
4389 (process_options): Remove old hook.
4390 * tree.h (decl_printable_name): Remove.
4392 * objc-act.c (objc_init): Remove old hook.
4393 (objc_printable_name): Export.
4394 * objc-act.h (objc_printable_name): New.
4395 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
4397 2002-03-19 Jim Blandy <jimb@redhat.com>
4399 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
4400 the start_source_file debug hook, not the current line number.
4402 2002-03-19 Richard Henderson <rth@redhat.com>
4404 * flow.c (EH_USES): Provide default.
4405 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
4406 * doc/tm.texi (EH_USES): New.
4408 * config/ia64/ia64.c (ia64_eh_uses): New.
4409 * config/ia64/ia64-protos.h: Update.
4410 * config/ia64/ia64.h (EH_USES): New.
4412 2002-03-19 Richard Henderson <rth@redhat.com>
4414 * varasm.c (output_constant_def): Fix stupid typo.
4416 2002-03-19 Richard Henderson <rth@redhat.com>
4419 * except.c (current_function_has_exception_handlers): New.
4420 * except.h: Declare it.
4421 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
4422 Combine tests that disable all sibcalls for the function.
4424 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
4426 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
4429 2002-03-19 Richard Henderson <rth@redhat.com>
4432 * config/ia64/ia64.c: Revert 2002-03-01 patch.
4433 * config/ia64/ia64.h (INIT_EXPANDERS): New.
4435 2002-03-19 Jim Blandy <jimb@redhat.com>
4437 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
4438 name, even if the replacement list contains no tokens, as required
4441 2002-03-19 Jason Merrill <jason@redhat.com>
4443 * varasm.c (globalize_decl): Get the name from the RTL, not
4444 DECL_ASSEMBLER_NAME.
4446 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
4448 2002-03-19 Bob Wilson <bob.wilson@acm.org>
4450 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
4451 subdi_carry): Define.
4453 2002-03-19 David Edelsohn <edelsohn@gnu.org>
4455 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
4456 about -fpic/-fPIC if extra_warnings set.
4458 2002-03-19 David Edelsohn <edelsohn@gnu.org>
4460 * expr.c (expand_expr): Sign-extend CONST_INT generated from
4461 TREE_STRING_POINTER.
4462 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
4464 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4466 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
4467 in favor of SP if FRAME_POINTER_REQUIRED is false.
4469 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
4471 * emit-rtl.c (gen_int_mode): New function.
4472 * rtl.h: Prototype for it.
4473 * combine.c (make_extraction, simplify_comparison), expmed.c
4474 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
4475 (convert_modes, store_field), optabs.c (expand_fix),
4476 simplify-rtx.c (neg_const_int, simplify_unary_real),
4478 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
4479 Use it instead of GEN_INT (trunc_int_for_mode (...)).
4481 2002-03-19 Jakub Jelinek <jakub@redhat.com>
4484 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
4485 convert_parm_for_inlining.
4486 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
4488 * langhooks-def.h: Likewise.
4489 * objc/objc-lang.c: Likewise.
4490 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
4492 * tree-inline.c (initialize_inlined_parameters):
4493 Call convert_parm_for_inlining lang hook if needed.
4494 * c-typeck.c (c_convert_parm_for_inlining): New function.
4495 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
4497 2002-03-18 Mark Mitchell <mark@codesourcery.com>
4499 * calls.c (precompute_arguments): Do not assume that temporaries
4500 can be destroyed after expanding the argument.
4501 (expand_call): Likewise.
4503 2002-03-15 Eric Christopher <echristo@redhat.com>
4505 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
4506 Fix register preference on last change.
4507 * config/mips/mips.c (mips_return_in_memory): New function.
4508 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
4509 * config/mips/mips-protos.h: Declare.
4510 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
4511 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
4513 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
4515 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
4517 (anddi3, iorsi3): Likewise.
4519 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
4520 use %gprel for symbols that are going to be placed in linkonce
4523 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
4524 RETURN_ADDRESS_POINTER_REGNUM to $ra.
4525 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
4526 not needed. Disregard leaf_function_p().
4527 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
4528 mips16 frame pointer.
4529 * config/mips/mips.md (store ra): Only to small SP offsets.
4530 2001-08-22 Graham Stott <grahams@redhat.com>
4531 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
4532 return a REG rtx for the return address register.
4534 2002-03-18 Bob Wilson <bob.wilson@acm.org>
4536 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
4537 constant-pool addresses as "mode-dependent".
4538 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
4540 2002-03-18 Jakub Jelinek <jakub@redhat.com>
4543 * expr.c (emit_group_load): Use extract_bit_field if
4544 needed for CONCAT arguments.
4546 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
4549 * arm.md (tablejump): Make this a define_expand. For PIC add the
4550 offset to the base of the table.
4551 (thumb_tablejump): Matcher for Thumb tablejump insn.
4552 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
4553 as the difference of two labels.
4554 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4555 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
4557 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
4558 * arm.c (get_jump_table_size): If the table is not in the text
4559 section, return zero.
4561 2002-03-18 Bernd Schmidt <bernds@redhat.com>
4563 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
4565 (arm_reload_out_hi): Use gen_lowpart instead of
4566 gen_rtx_SUBREG to access QImode components.
4567 * config/arm/arm.md: Disable zero_extend split for QImode
4568 subregs in BIG_ENDIAN mode.
4569 (storehi_bigend): Match use of least significant byte.
4570 (storeinthi): Remove extraneous SUBREG.
4571 Add missing construction of operands[2].
4572 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
4573 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
4574 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
4576 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
4578 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
4581 2002-03-17 Richard Henderson <rth@redhat.com>
4583 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
4586 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
4588 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
4589 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
4591 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4593 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
4595 * predict.c (estimate_bb_frequencies): Delete unused variables.
4597 2002-03-17 Richard Henderson <rth@redhat.com>
4599 * config/ia64/ia64.c (ia64_attribute_table): Move before
4600 targetm definition. Make static.
4602 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
4604 * c-common.h (yyparse, c_common_parse_file): New.
4605 * c-lang.c: Include c-common.h.
4606 (LANG_HOOKS_PARSE_FILE): Redefine.
4607 * c-lex.c: Include c-common.h.
4608 (yyparse): Rename c_common_parse_file. Call yyparse.
4609 * c-parse.in (yyparse): Remove macro.
4610 * c-tree.h (yyparse_1): Remove.
4611 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
4612 (LANG_HOOKS_INITIALIZER): Update.
4613 * langhooks.h (struct lang_hoooks): New hook parse_file.
4614 * toplev.c (compile_file): Use parse_file hook.
4615 * tree.h (yyparse): Remove.
4616 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
4618 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
4620 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
4621 float_truncate, not fix.
4622 ("*truncdfsf2_real"): Ditto.
4623 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
4625 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
4627 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
4629 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
4630 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
4631 where appropriate. Make the second reference to
4632 leaf_function_p a function call, as intended. Reindented.
4634 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
4635 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
4637 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
4638 add register to non-constant into sp.
4640 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
4641 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
4642 (mips16_gp_pseudo_rtx): Lose.
4643 (INIT_EXPANDERS): Deleted.
4644 * config/mips/mips.c (mips_init_machine_status): New.
4645 (mips_free_machine_status): New.
4646 (mips_mark_machine_status): New.
4647 (override_options): Set them.
4648 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
4649 (struct machine_function): ... new. Replaced all references.
4650 (mips_add_gc_roots): Don't mark them.
4651 (embedded_pic_fnaddr_reg): New, extracted from...
4652 (embedded_pic_offset): ... here.
4653 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
4656 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
4658 * cppinit.c: Revert -MD removal.
4660 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4662 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
4663 soft registers by default for 68HC12.
4664 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
4665 when compiling with -fomit-frame-pointer.
4666 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
4667 (expand_epilogue): Likewise.
4668 (m68hc11_gen_rotate): Use exg when rotating by 8.
4670 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4672 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
4673 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
4674 (splits): Remove unused add splits.
4675 ("*addhi3_68hc12"): Tune constraints.
4676 ("addhi_sp"): Try to use X instead of Y in all cases and if the
4677 constant fits in 8-bits and D is dead use abx/aby instructions.
4678 ("*addhi3"): Remove extern declaration of ix_reg.
4679 ("*subsi3"): Optimize and provide new split.
4680 ("subhi3"): Cleanup.
4681 ("*subhi3_sp"): Avoid saving X if we know it is dead.
4682 (arith splits): For 68hc12 save the address register on the stack
4683 and do the arithmetic operation with a pop.
4685 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4687 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
4688 allocating QImode in address registers.
4689 ("*movqi_m68hc11"): Likewise.
4691 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
4693 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
4695 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
4697 * cppinit.c (print_help): Display -MD and -MMD.
4698 Don't display usage string. Update assertion syntax and
4700 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
4701 (cpp_handle_option): Update.
4703 2002-03-15 Chris Demetriou <cgd@broadcom.com>
4705 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
4706 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
4707 and define it so that regardless of target CPU size,
4708 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
4709 of "int" rather than "long."
4711 2002-03-15 Richard Henderson <rth@redhat.com>
4713 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
4716 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4718 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
4719 ("tstqi" split): Avoid using memory for tstqi on address register.
4720 (splits): Remove constraints.
4721 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
4722 ("cmpdf", "cmpsf"): Remove since not used.
4723 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
4724 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
4726 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4728 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
4729 ("neghi2"): Tighten constraints.
4730 ("one_cmplsi2"): Optimize and simplify split.
4731 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
4733 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4735 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
4736 and split of AND operation to clear the upper bits.
4737 ("*logicalsi3_zextqi"): Likewise.
4738 ("*logicallhi3_zexthi_ashift8"): Likewise.
4739 ("*logicalsi3_silshr16"): Likewise.
4740 ("logicalsi3_silshl16"): Likewise.
4741 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
4743 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4745 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
4746 (m68hc11_indirect_p): New function.
4747 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
4748 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
4750 (asm_print_register): Likewise.
4751 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
4752 (m68hc11_indirect_p): Declare.
4753 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
4754 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
4755 (TARGET_SWITCHES): New option -mrelax.
4756 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
4758 ("iorsi3", "xorsi3"): Likewise.
4759 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
4760 ("*andhi3_mem"): New to handle destination in memory with bclr
4761 and a scratch register.
4762 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
4763 ("*andhi3_const"): New when operand2 is constant.
4764 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
4765 ("*andhi3_gen"): Cleanup of the old "andhi3".
4766 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
4767 ("xorqi3"): Update constraints.
4769 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4771 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
4772 for reg_equiv_memory_loc when the operand is a register that does
4773 not get a hard register (stack location).
4774 (tst_operand): After reload, accept all memory operand.
4775 (symbolic_memory_operand): Fix detection of symbolic references.
4776 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
4777 accept symbols and any constant.
4779 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4781 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
4782 note on the insn that sets the soft frame register.
4783 (must_parenthesize): ix and iy are also reserved names.
4784 (print_operand_address): One more place where parenthesis are required
4785 to avoid confusion with register names.
4786 (m68hc11_gen_movhi): Allow push of stack pointer.
4787 (m68hc11_check_z_replacement): Fix handling of parallel with a
4789 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
4790 the replacement register is.
4791 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
4792 and D8_REGS classes.
4793 (MODES_TIEABLE_P): All modes are tieable except QImode.
4795 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4797 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
4798 (___subdi3): Likewise.
4799 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
4800 (__map_data_section): Optimize 68hc11 case.
4802 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4804 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
4805 than a shift to avoid adding a register with itself.
4806 (m68hc11_memory_move_cost): Take into account NO_REGS.
4807 (m68hc11_register_move_cost): Update and use memory move cost
4809 (m68hc11_address_cost): Make cost of valid offset not 0 so that
4810 it gives more opportunities to cse to optimize.
4811 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
4812 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
4814 2002-03-15 Mark Mitchell <mark@codesourcery.com>
4816 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
4817 * c-common.def (CLEANUP_STMT): New tree node.
4818 * c-common.h (CLEANUP_DECL): New macro.
4819 (CLEANUP_EXPR): Likewise.
4820 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
4821 * expr.c (expand_expr): Tidy.
4822 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
4823 * tree-inline.c (initialize_inlined_parameters): Clean up
4824 new local variables.
4826 2002-03-15 Jakub Jelinek <jakub@redhat.com>
4829 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
4830 before movrXX only, use reg_overlap_mentioned_p.
4831 Only special case NE if just one insn can be generated.
4833 2002-03-15 Jason Merrill <jason@redhat.com>
4835 * varasm.c (assemble_variable): Call resolve_unique_section before
4836 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
4839 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
4842 * arm.md (split pattern for thumb shiftable immediates): Add comment
4843 explaining non-obvious test.
4845 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
4848 * arm.md (movaddr, movaddr_insn): Delete.
4850 2002-03-15 Jason Merrill <jason@redhat.com>
4852 * toplev.c (wrapup_global_declarations): Clarify variable handling.
4853 -fkeep-static-consts doesn't apply to comdats.
4855 2002-03-14 Richard Henderson <rth@redhat.com>
4857 * c-decl.c: Include c-pragma.h.
4858 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
4859 (finish_function): Tidy.
4860 * c-pragma.c: Include c-common.h.
4861 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
4862 (handle_pragma_weak): Use them.
4863 (init_pragma): Register pending_weaks.
4864 * c-pragma.h (maybe_apply_pragma_weak): Declare.
4865 * print-tree.c (print_node): Print DECL_WEAK.
4866 * varasm.c (mark_weak_decls): Remove.
4867 (remove_from_pending_weak_list): Remove.
4869 (asm_emit_uninitialised): Call globalize_decl for weak commons.
4870 (weak_decls): Make a tree_list.
4871 (declare_weak): Cons weak_decls directly.
4872 (globalize_decl): Remove weak_decls elements directly.
4873 (weak_finish): Simplify weak_decls walk. Don't weaken unused
4874 symbols. Don't pretend to handle aliases.
4875 (init_varasm_once): Update weak_decls registry.
4876 * Makefile.in: Update dependencies.
4878 2002-03-14 Richard Henderson <rth@redhat.com>
4881 * config/ia64/ia64.c: Include tm_p.h last.
4882 (gen_nop_type): Remove duplicate definition.
4883 (cycle_end_fill_slots): Set sched_data for second L slot.
4884 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
4885 (nop_cycles_until): Fix typos.
4887 2002-03-15 Jakub Jelinek <jakub@redhat.com>
4889 PR optimization/5891
4890 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
4892 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
4894 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
4895 descriptors correctly.
4897 2002-03-14 Michael Meissner <meissner@redhat.com>
4899 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
4900 100, allowing MAX_UNROLLED_INSNS to be overridden.
4902 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
4905 * unroll.c (params.h): Include.
4906 (MAX_UNROLLED_INSNS): Delete, now in params.h.
4908 * doc/invoke.texi (--param max-unroll-insns): Document.
4910 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
4912 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
4914 * arm.md: Fix warnings about constraints in peepholes and splits.
4916 2002-03-14 Zack Weinberg <zack@codesourcery.com>
4918 * cpphash.h (struct lexer_state): Remove line_extension member.
4919 * cpplib.c (dequote_string, do_linemarker): New functions.
4920 (linemarker_dir): New data object.
4921 (DIRECTIVE_TABLE): No longer need to interpret #line in
4922 preprocessed source. Delete obsolete comment about return
4924 (end_directive, directive_diagnostics, _cpp_handle_directive):
4925 Don't muck with line_extension.
4926 (directive_diagnostics): No need to issue warnings for
4928 (_cpp_handle_directive): Issue warnings for linemarkers here,
4929 when appropriate. Dispatch linemarkers to do_linemarker, not
4931 (do_line): Code to handle linemarkers split out to do_linemarker.
4932 Convert escape sequences in filename argument, both places.
4934 * cppmacro.c (quote_string): Rename cpp_quote_string and
4935 export. All callers changed.
4936 * cpplib.h (cpp_quote_string): Prototype.
4937 * cppmain.c (print_line): Call cpp_quote_string on to_file
4940 * doc/cpp.texi: Document that escapes are now interpreted in
4941 #line and in linemarkers, and that non-printing characters are
4942 converted to octal escapes when linemarkers are generated.
4944 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
4946 * emit-rtl.c (try_split): Use delete_insns.
4947 * recog.c (split_all_insns): Fix terminating condition.
4949 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
4950 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
4953 * arm.c (arm_output_epilogue): Fix floating-point register save
4954 adjustment when using a frame pointer.
4956 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
4958 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
4959 * config/mips/mips.c (compute_frame_size): Retrofit them here.
4960 (save_restore_insns, mips_expand_epilogue): And here.
4961 (build_mips16_call_stub): And here.
4962 (mips_function_value): Use the new macros to decide whether a single
4963 or complex float can be returned in floating-point registers. Return
4964 a parallel rtx in the complex case.
4966 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
4968 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
4969 call after liveness analysis.
4971 * recog.c (split_insn): Use delete_insn_and_edges.
4973 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
4974 instructions to have branch prediction notes.
4975 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
4977 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
4979 * configure.in: Don't pass -Wno-long-long to a ADA compiler
4980 that doesn't support it.
4981 * configure: Regenerate.
4983 2002-03-13 Jakub Jelinek <jakub@redhat.com>
4986 * config/sparc/sparc.md (normal_branch, inverted_branch,
4987 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
4988 inverted_fp_branch): Adjust calls to output_cbranch.
4989 Set length attribute.
4990 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
4991 output_v9branch. Set length attribute.
4992 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
4994 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
4995 (output_cbranch): Likewise. Handle far branches.
4996 (output_v9branch): Handle far branches.
4997 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
4999 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
5000 noov_compare64_op predicates.
5002 2002-03-13 Jason Merrill <jason@redhat.com>
5004 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
5005 into the function and constify it.
5006 * gthr-dce.h, gthr-solaris.h: Likewise.
5008 2002-03-13 David Edelsohn <edelsohn@gnu.org>
5010 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
5011 * config/rs6000/rs6000.c (rs6000_va_arg): Use
5012 std_expand_builtin_va_arg if not ABI_V4.
5014 2002-03-13 Jason Merrill <jason@redhat.com>
5016 * varasm.c (globalize_decl): New fn.
5017 (assemble_start_function): Use it.
5018 (asm_emit_uninitialized): Use it.
5019 (assemble_alias): Use it.
5020 (assemble_variable): Use it.
5022 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
5024 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
5025 2002-03-12 internal visibility change.
5026 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
5027 visibility into SYMBOL_REF_FLAG.
5029 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
5031 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
5032 VOIDmode operand. Add compile-time optimization for constant results.
5034 2002-03-12 Jason Merrill <jason@redhat.com>
5036 * c-typeck.c (convert_for_assignment): Don't allow conversions
5037 between pointers and references. Only allow lvalues to convert to
5040 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
5042 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
5043 before prologue, to avoid scheduling problems.
5045 2002-03-13 Jakub Jelinek <jakub@redhat.com>
5047 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
5048 (ELIMINABLE_REGS): Add sfp->sp.
5049 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
5051 2002-03-13 Jakub Jelinek <jakub@redhat.com>
5053 PR optimization/5892
5054 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
5056 2002-03-13 Jakub Jelinek <jakub@redhat.com>
5058 * loop.c (basic_induction_var): Don't call convert_modes if mode
5059 classes are different.
5061 2002-03-12 Richard Henderson <rth@redhat.com>
5063 PR optimization/5901
5064 * function.c (reposition_prologue_and_epilogue_notes): Position
5065 the markers after/before the last/first insn not deleted.
5067 2002-03-12 Richard Henderson <rth@redhat.com>
5069 PR optimization/5878
5070 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
5071 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
5072 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5074 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
5075 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
5076 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
5078 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
5079 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
5080 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
5081 also. Don't set it if not flag_pic.
5082 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
5083 to be INVALID_REGNUM when not used.
5085 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
5087 * expmed.c (store_bit_field): Reset alias set for memory.
5088 (extract_bit_field): Same.
5090 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5092 * c-common.c (c_tree_code_type, c_tree_code_length,
5093 c_tree_code_name, add_c_tree_codes): Delete.
5094 * c-common.h (add_c_tree_codes): Delete.
5095 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
5097 * c-objc-common.c (c_objc_common_init): Don't call
5098 add_c_tree_codes, instead set lang_unsafe_for_reeval.
5099 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
5100 objc_tree_code_name, add_objc_tree_codes): Delete.
5101 (objc_init): Don't call add_objc_tree_codes.
5102 * objc/objc-lang.c (tree_code_type, tree_code_length,
5103 tree_code_name): Define.
5104 * toplev.c (lang_independent_init): Don't set
5105 tree_code_length[IDENTIFIER_NODE].
5106 * tree.c (tree_code_type, tree_code_length, tree_code_name):
5107 Delete definitions, moved to language front-ends.
5108 * tree.def (IDENTIFIER_NODE): Hardwire the length.
5109 * tree.h (tree_code_type, tree_code_length, tree_code_name):
5111 (tree_code_length): Change type to unsigned char.
5113 2002-03-12 Richard Henderson <rth@redhat.com>
5115 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
5116 internal visibility change.
5118 2002-03-12 Bob Wilson <bob.wilson@acm.org>
5120 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
5121 validize_mem() instead of change_address to avoid clobbering
5124 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
5126 * c-lex.h (position_after_whitespace): Remove.
5128 2002-03-12 Jakub Jelinek <jakub@redhat.com>
5130 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
5131 (lex_string): Use unsigned char pointers.
5133 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
5135 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
5136 is not a valid memory_operand.
5138 2002-03-12 Bob Wilson <bob.wilson@acm.org>
5140 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
5141 * config/xtensa/lib1funcs.asm: Fix copyright to include
5142 special case for libgcc files.
5143 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
5144 (__divsi3): Likewise.
5145 (__umodsi3): Likewise.
5146 (__modsi3): Likewise.
5147 * config/xtensa/lib2funcs.S: Fix copyright to include
5148 special case for libgcc files.
5150 2002-03-12 Tom Rix <trix@redhat.com>
5152 * collect2.c (resolve_lib_name): Move outside of
5153 OBJECT_FORMAT_COFF ifdef.
5154 (ignore_library): Same.
5156 2002-03-12 Bob Wilson <bob.wilson@acm.org>
5158 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
5160 2002-03-12 Bob Wilson <bob.wilson@acm.org>
5162 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
5163 to function_section before writing out the constant pool.
5165 2002-03-12 David Edelsohn <edelsohn@gnu.org>
5167 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
5169 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
5171 2002-03-12 Alan Modra <amodra@bigpond.net.au>
5173 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
5177 (cmpsi splitter): Likewise.
5178 (modsi3): Fail if <= 0.
5179 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
5180 redundant test when HOST_BITS_PER_WIDE_INT != 32.
5181 (reg_or_sub_cint64_operand): Likewise.
5182 (num_insns_constant_wide): Optimize sign extension.
5183 (rs6000_legitimize_address): Likewise.
5185 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
5187 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5188 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5190 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
5192 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
5193 address calculation.
5195 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
5197 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
5198 scratch register to DImode / TImode.
5199 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
5200 register used does not overlap the target.
5202 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5204 * Makefile.in (debug.o): Depend on debug.h.
5205 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
5206 * debug.c (do_nothing_debug_hooks): Likewise.
5207 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
5208 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
5209 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
5210 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
5211 * dwarfout.c (dwarf_debug_hooks): Likewise.
5212 * integrate.c (output_inline_function): Likewise.
5213 * objc/objc-act.c (synth_module_prologue): Likewise.
5214 * sdbout.c (sdb_debug_hooks): Likewise.
5215 * toplev.c (debug_hooks): Likewise.
5216 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5218 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5220 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
5221 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
5222 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
5223 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
5224 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
5225 * defaults.h (POINTER_SIZE): Define.
5226 * doc/tm.texi (POINTER_SIZE): Document default.
5228 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5230 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
5232 2002-03-11 Richard Henderson <rth@redhat.com>
5234 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
5235 if rebuild_label_notes_after_reload.
5237 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
5239 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
5240 emit pic register load if "internal" visibility.
5241 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
5242 (cris_expand_builtin_va_arg): Do all computations on trees.
5244 2002-03-11 Richard Henderson <rth@redhat.com>
5246 * rtlanal.c: Include recog.h.
5247 (keep_with_call_p): Fix thinko.
5248 * Makefile.in (rtlanal.o): Update dependencies.
5250 2002-03-11 Chris Meyer <cmeyer@gatan.com>
5252 * genflags.c (gen_insn): Use IS_VSPACE.
5253 * genoutput.c (output_insn_data): Likewise.
5254 (process_template): Likewise.
5256 2002-03-11 Richard Henderson <rth@redhat.com>
5258 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
5260 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
5262 * Makefile.in: Update.
5263 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
5264 Update documentation.
5265 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
5266 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
5268 2002-03-11 Zack Weinberg <zack@codesourcery.com>
5270 * Makefile.in: Give texi2pod its input file as a command line
5271 argument, not on stdin.
5273 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
5274 Daniel Berlin <dan@dberlin.org>
5276 C++ alias analysis improvement.
5277 * alias.c (record_component_aliases): Record aliases for base
5280 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
5282 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
5284 2002-03-11 Douglas B Rupp <rupp@gnat.com>
5286 * toplev.c (vms_fopen): Remove, not needed.
5288 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
5290 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
5292 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
5293 for FP, already done later.
5295 * toplev.c (debug_args): Add entry for VMS_DEBUG.
5296 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
5298 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
5300 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
5301 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
5302 LARGEST_EXPONENT_IS_NORMAL for the given mode.
5303 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
5304 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
5305 (ediv, emul, eldexp, esqrt): Likewise.
5306 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
5307 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
5308 (saturate): New function.
5309 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
5310 (make_nan): Use a saturation value instead of a NaN if
5311 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
5312 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
5313 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
5314 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
5315 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
5316 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
5317 !ROUND_TOWARDS_ZERO.
5318 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
5319 (ROUND_TOWARDS_ZERO): Document.
5321 2002-03-11 Andreas Jaeger <aj@suse.de>
5323 * cfg.c (dump_flow_info): Remove unused variable.
5325 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
5327 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
5328 computations on trees.
5330 2002-03-10 Richard Henderson <rth@redhat.com>
5333 * reload.c (copy_replacements_1): New.
5334 (copy_replacements): Use it to recurse through the rtx.
5336 2002-03-10 Richard Henderson <rth@redhat.com>
5338 * loop.c (strength_reduce): Compute number of iterations as
5339 unsigned HOST_WIDE_INT.
5341 2002-03-10 Richard Henderson <rth@redhat.com>
5343 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
5344 to move away from the end of the block.
5346 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
5348 PR preprocessor/5899
5349 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
5351 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5353 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
5355 * attribs.c (decl_attributes): Fix signed/unsigned warning.
5357 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
5359 * config/mmix/mmix.c: Improve comments.
5360 (mmix_target_asm_function_prologue): Drop variable
5361 empty_stack_frame. Don't allocate unused slot above fp.
5362 (mmix_target_asm_function_epilogue): Mirror prologue changes.
5363 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
5364 brace in first column.
5365 (enum reg_class): Ditto.
5366 (FIRST_PARM_OFFSET): Now 0.
5367 (USER_LABEL_PREFIX): Remove #if 0:d definition.
5369 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5371 * combine.c (make_extraction): Fix error in last change.
5373 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5375 * c4x.c (c4x_fp_reglist): Const-ify.
5376 * cris.c (cris_print_operand): Likewise.
5377 * i386.c (ix86_va_arg): Likewise.
5378 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
5379 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
5380 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
5381 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
5382 * mcore.h (regno_reg_class): Likewise.
5383 * mips.c (gen_int_relational): Likewise.
5384 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
5385 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
5386 * pdp11.c (move_costs): Likewise.
5387 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
5388 * s390.c (s390_branch_condition_mnemonic, regclass_map):
5390 * s390.h (regclass_map): Likewise.
5391 * sh.c (shift_amounts): Likewise.
5392 * sh.md (rotlsi3): Likewise.
5394 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
5396 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
5397 (ne0+5): Use new clobber to generate proper shift pattern.
5398 Patch by Michael Matz <matz@kde.org>.
5400 2002-03-09 Andreas Schwab <schwab@suse.de>
5402 * gcc.c (validate_all_switches): Also handle `%W{...}'.
5404 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
5406 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
5408 2002-03-09 Jakub Jelinek <jakub@redhat.com>
5411 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
5412 even for non-representable constants.
5414 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5416 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
5417 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
5418 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
5419 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
5420 (pop_function_context): Compute MAY_SHARE parameter for
5422 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
5423 (gen_mem_addressof): Call fixup_var_refs with new parm.
5425 * combine.c (make_extraction): Don't make extension of CONST_INT.
5427 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
5429 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
5430 in o32 and o64 ABIs.
5431 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
5432 but getting fixed-size structs passed in registers regardless of
5433 padding in o32 and o64 ABIs.
5435 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
5436 offset before loading address of argument passed by transparent
5439 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
5441 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
5443 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
5445 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
5446 marker such that registers after it are saved.
5448 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5450 * sparc.c (arith_4096_operand): Fix error in last change.
5452 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
5454 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
5457 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
5459 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
5462 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
5464 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
5466 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
5468 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
5469 removed; fix return value.
5470 * combine.c (combine_instructions): Dirtify blocks where we failed to
5471 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
5472 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
5474 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5476 * gcse.c (insert_insn_end_bb): Fix typo in last change.
5478 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
5480 * recog.c (peephole2_optimize): Re-distribute EH edges.
5482 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
5484 * expr.c (expand_expr): Use unsave lang hook.
5485 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
5486 (LANG_HOOKS_INITIALIZER): Update.
5487 * langhooks.h (struct lang_hooks): New hook unsave.
5488 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
5489 (unsave_expr_1): Remove unused lang_unsave_expr_now.
5490 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
5491 (unsave_expr_now): Remove.
5492 * tree.h (unsave_expr_now, lang_unsave,
5493 lang_unsave_expr_now): Remove.
5496 2002-03-08 Andreas Jaeger <aj@suse.de>
5498 * flow.c (propagate_block_delete_insn): Remove unused variable.
5500 2002-03-08 Kazu Hirata <kazu@hxi.com>
5502 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
5503 insn length for memory load/store.
5505 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
5507 * doc/install.texi (--with-libiconv-prefix): Document.
5509 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
5511 * doc/sourcebuild.texi: Fix typo.
5513 2002-03-08 Jakub Jelinek <jakub@redhat.com>
5516 * builtins.c (std_expand_builtin_va_arg): Do all computations on
5519 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5521 * rtl.c (copy_most_rtx): Move from here ...
5522 * emit-rtl.c (copy_most_rtx): ... to here.
5524 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
5526 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
5527 SUBTARGET_CPP_SIZE_SPEC.
5528 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
5530 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
5532 2002-03-07 Matt Hiller <hiller@redhat.com>
5534 * gensupport.c (first_dir_md_include): Renamed from include;
5535 change all references.
5536 (last_dir_md_include): Renamed from last_include; change all
5538 (init_md_reader): Unconditionally initialize base_dir whether or
5539 not filename is a relative path.
5541 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
5543 * config/fp-bit.c (_unord_f2): Compile it in even if
5544 US_SOFTWARE_GOFAST is enabled.
5546 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
5547 NULL_RTX. Set all HFmode operations as NULL_RTX.
5548 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
5549 NULL_RTX, try reversing the comparison and the operands.
5551 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
5553 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
5554 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
5557 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
5559 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
5561 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
5563 * basic-block.h (fixup_abnormal_edges): Declare.
5564 * reload1.c (fixup_abnormal_edges): New function.
5565 * reg-stack.c (convert_regs): Use it.
5567 * gcse.c (insert_insn_end_bb): Handle trapping insns.
5569 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
5571 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
5573 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
5574 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
5575 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
5576 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
5577 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
5578 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
5579 unless x and y could be infinite.
5580 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
5581 Check that the common type of both arguments is a real, even for
5582 targets without unordered comparisons. Allow an integer argument
5583 to be compared against a real.
5584 (expand_tree_builtin): Use expand_unordered_cmp.
5585 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
5586 * cse.c (fold_rtx): Likewise. Fix indentation.
5587 * fold-const.c (fold_real_zero_addition_p): New.
5588 (fold): Use it, and the new HONOR_... macros.
5589 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
5590 * jump.c (reversed_comparison_code_parts): After searching for
5591 the true comparison mode, use HONOR_NANS to decide whether it
5592 can be safely reversed.
5593 (reverse_condition_maybe_unordered): Remove IEEE check.
5594 * simplify-rtx.c (simplify_binary_operation): Use the new macros
5595 to decide which simplifications are valid. Allow the following
5596 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
5597 and (a - -b) to (a + b).
5598 (simplify_relational_operation): Use HONOR_NANS.
5599 * doc/tm.texi: Document the MODE_HAS_... macros.
5601 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
5603 * combine.c (simplify_comparison): If simplifying a logical shift
5604 right and compare with constant, force the comparison to unsigned.
5606 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
5608 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
5610 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
5612 (alt_reg_names): Remove % for vrsave.
5614 2002-03-06 Richard Henderson <rth@redhat.com>
5616 PR optimization/5844
5617 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
5618 if used indicates we've already emitted one copy of an operand.
5619 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
5620 (gen_split): Supply a non-null used.
5622 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
5624 * reload1.c (reload): Unshare all rtl after reload is done.
5626 * simplify-rtx.c (simplify_plus_minus): Do not abort,
5627 but simply fail if the expression is too complex to simplify.
5628 (simplify_gen_binary): Handle simplify_plus_minus failures.
5630 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
5632 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
5633 consistently call delete_trivially_dead_insns after CSE and GCSE;
5634 fix DFI_life dumping; do jump threading after liveness; do crossjumping
5635 after liveness2; update comment in last crossjumping.
5636 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
5638 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
5640 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
5641 after completing fast dead code elimination.
5643 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
5646 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
5648 * version.c: Fix misplaced leading blanks on first line.
5650 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
5652 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
5654 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
5656 * cfgcleanup.c (mentions_nonequal_regs): New function.
5657 (thread_jump): Use it.
5658 * toplev.c (rest_of_compilation): Run jump threading after
5661 2002-03-06 Jakub Jelinek <jakub@redhat.com>
5663 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
5666 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
5668 * predict.c (estimate_bb_frequencies): Do not reload the
5669 frequencies from notes.
5671 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
5673 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
5674 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
5676 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
5677 delete_noop_moves): Return indeger.
5678 * flow.c (ndead): New variable.
5679 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
5680 BB argument; update callers.
5681 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
5682 (life_analysis): Do not call purge_all_dead_edges.
5683 (update_life_info): Return number of deleted insns; print statistics.
5684 (update_life_info_in_dirty_blocks): likewise.
5685 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
5686 return number of insns deleted.
5688 * cse.c: Include timevar.h
5689 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
5690 iterate until stabilizes; print statistics; return number of killed
5692 * Makefile.in: (cse.o): Add timevar.h dependency
5693 * rtl.h (delete_trivially_dead_insns): New.
5694 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
5695 * toplev.c (rest_of_compilation): Update callers.
5697 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
5698 (try_optimize_cfg): Do not update liveness.
5699 (cleanup-cfg): Loop until try_optimize_cfg and dead code
5700 removal stabilizes; use delete_trivially_dead_insns.
5702 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
5704 2002-03-05 Zack Weinberg <zack@codesourcery.com>
5706 * cppmain.c (setup_callbacks): Disable #pragma and #ident
5707 callbacks when processing assembly language.
5709 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
5711 * pa.h (ASM_FILE_END): Define.
5712 * som.h (ASM_FILE_END): Delete.
5714 * pa.c (function_arg): Don't pass floats in general registers in
5715 indirect calls if TARGET_ELF32.
5717 2002-03-05 Richard Henderson <rth@redhat.com>
5719 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
5721 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
5723 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
5725 2002-03-05 Jakub Jelinek <jakub@redhat.com>
5727 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
5728 -r command line. Don't hide any symbols if not building
5731 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
5733 * cfg.c (dump_flow_info): Warn about profile mismatches.
5734 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
5735 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
5737 2002-03-05 Jakub Jelinek <jakub@redhat.com>
5739 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
5740 wide volatile memory by parts.
5742 2002-03-05 Jakub Jelinek <jakub@redhat.com>
5744 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
5747 2002-03-05 Richard Henderson <rth@redhat.com>
5749 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
5751 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
5753 * toplev.c (documented_lang_options): Document more
5754 language-specific options.
5755 * doc/invoke.texi (Warning Options): Correct documentation for
5756 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
5757 * c-decl.c (c_decode_option): Use a table to handle warning options.
5759 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
5761 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
5762 parameter to mmix_encode_section_info.
5763 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
5764 relocatably. Always produce ELF, not mmo if linking relocatably.
5765 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
5766 first is non-zero, don't add symbol prefix.
5767 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
5768 prototype accordingly.
5770 2002-03-04 Krister Walfridsson <cato@df.lth.se>
5772 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
5774 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
5776 * configure.in: Increase required makeinfo version to 4.1.
5777 * configure: Regenerate.
5779 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
5781 * .cvsignore: Remove *.info* and genrtl*; these files are generated
5784 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
5786 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
5787 * doc/invoke.texi: Fix @math uses.
5789 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
5791 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
5794 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
5796 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
5797 (powerpc-*-eabisimaltivec*): Same.
5799 * config/rs6000/t-ppcendian: New.
5801 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5803 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
5804 nonimmediate_src_operand and nonimmediate_lsrc_operand to
5805 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
5807 2002-03-03 Richard Henderson <rth@redhat.com>
5809 * toplev.c (rest_of_decl_compilation): Revert last two changes.
5811 2002-03-03 Zack Weinberg <zack@codesourcery.com>
5813 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
5814 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
5815 tree.c, config/m68k/m68k.c:
5816 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
5817 REAL_ARITHMETIC blocks unconditional. Delete some further
5818 #ifdef blocks predicated on REAL_ARITHMETIC.
5819 * flags.h, toplev.c: Delete remaining references to
5822 * doc/invoke.texi: Remove documentation of -fpretend-float.
5823 * doc/tm.texi: Describe the various REAL_* macros as provided by
5824 real.h, not by the target configuration files.
5826 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
5827 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
5828 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
5829 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
5830 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
5831 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
5832 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
5833 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
5834 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
5835 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
5836 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
5837 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
5838 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
5839 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
5840 config/xtensa/xtensa.h:
5841 Do not define, undefine, or mention in comments any of
5842 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
5843 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
5844 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
5845 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
5846 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
5847 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
5848 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
5849 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
5850 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
5852 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5854 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
5855 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
5856 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
5857 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
5858 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
5859 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
5861 * defaults.h (BITS_PER_WORD): Define.
5862 * doc/tm.texi (BITS_PER_WORD): Document default value.
5864 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
5865 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
5866 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
5868 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5870 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
5871 lieu of explicit sizeof/sizeof.
5872 * i386.c (override_options, ix86_init_mmx_sse_builtins,
5873 ix86_expand_builtin): Likewise.
5874 * mips.c (mips_add_gc_roots): Likewise.
5875 * mmix.c (mmix_output_condition): Likewise.
5876 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
5877 altivec_init_builtins): Likewise.
5878 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
5879 * cppexp.c (Nsuff, parse_number): Likewise.
5880 * cppinit.c (builtin_array_end): Likewise.
5881 * gcc.c (n_default_compilers, process_command): Likewise.
5882 * genpreds.c (output_predicate_decls): Likewise.
5883 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
5884 * lcm.c (N_ENTITIES): Likewise.
5885 * stor-layout.c (set_sizetype): Likewise.
5887 2002-03-03 Richard Henderson <rth@redhat.com>
5889 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
5890 for types or labels.
5892 2002-03-03 Richard Henderson <rth@redhat.com>
5894 * c-decl.c (start_decl): Initialized variables are not common.
5896 2002-03-02 Per Bothner <per@bothner.com>
5898 * gcc.c (option_map): Suport new --bootclasspath option.
5899 --CLASSPATH is now just an alias for --classpath.
5901 2002-03-02 Richard Henderson <rth@redhat.com>
5903 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
5904 load if "internal" visibility.
5905 * doc/extend.texi: Document visibility meanings.
5907 2002-03-02 Richard Henderson <rth@redhat.com>
5909 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
5910 to functions as well.
5912 2002-03-02 Richard Henderson <rth@redhat.com>
5914 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
5915 (handle_visibility_attribute): Don't call assemble_visibility.
5916 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
5917 without asmspec. Invoke assemble_alias when needed.
5918 * varasm.c (maybe_assemble_visibility): New.
5919 (assemble_start_function, assemble_variable, assemble_alias): Use it.
5921 2002-03-02 Richard Henderson <rth@redhat.com>
5923 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
5924 invoke ENCODE_SECTION_INFO with first call flag.
5926 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
5927 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
5928 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
5929 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
5930 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
5931 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
5932 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
5933 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
5934 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
5935 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
5936 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
5937 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
5938 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
5939 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
5940 config/mcore/mcore-protos.h, config/mcore/mcore.c,
5941 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
5942 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
5943 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
5944 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
5945 config/sh/sh.h, config/sparc/sparc.h,
5946 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
5947 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
5948 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
5949 FIRST argument. As needed, examine it and do nothing.
5951 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
5952 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
5953 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
5955 * config/arm/t-pe (pe.o): Add dependencies.
5957 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5959 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
5960 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
5961 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
5962 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
5963 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
5964 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
5965 * defaults.h (BITS_PER_UNIT): Define.
5966 * doc/tm.texi (BITS_PER_UNIT): Document default value.
5968 2002-03-02 Kazu Hirata <kazu@hxi.com>
5970 * config/h8300/h8300-protos.h: Add a prototype for
5971 compute_a_shift_length.
5972 * config/h8300/h8300.c (h8300_asm_insn_count): New.
5973 (compute_a_shift_length): Likewise.
5974 (h8300_adjust_insn_length): Do not adjust insn length of shift
5976 * config/h8300/h8300.md (anonymous shift patterns): Use
5977 compute_a_shift_length.
5979 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5981 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
5984 * emit-rtl.c (offset_address): Call update_temp_slot_address.
5986 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5988 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
5989 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
5990 * flags.h (flag_zero_initialized_in_bss): Declare.
5991 * toplev.c (flag_zero_initialized_in_bss): New flag.
5992 (lang_independent_options): Add flag_zero_initialized_in_bss.
5993 * tree.c (initializer_zerop): New function.
5994 * tree.h (initializer_zerop): Declare.
5995 * varasm.c (assemble_variable): If we can emit bss, put zero
5996 initializers in the bss section.
5998 2002-03-02 Alan Modra <amodra@bigpond.net.au>
6000 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
6001 like more than one symbol per .weak directive.
6003 2002-03-01 Richard Henderson <rth@redhat.com>
6005 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
6006 adjust argument_pointer by pretend_args_size.
6007 (ia64_va_start): Adjust va_start address by -pretend_args_size.
6009 2002-03-01 Kazu Hirata <kazu@hxi.com>
6011 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
6013 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
6015 * toplev.c (rest_of_compilation): Delete dead jumptables before
6017 * flow.c (delete_dead_jumptables): Make global.
6018 * rtl.h (delete_dead_jumptables): Declare.
6020 2002-03-01 David Edelsohn <edelsohn@gnu.org>
6022 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
6023 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
6024 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
6026 2002-03-01 Kazu Hirata <kazu@hxi.com>
6028 * config/h8300/h8300-protos.h: Fix formatting.
6029 * config/h8300/h8300.c: Likewise.
6030 * config/h8300/h8300.h: Likewise.
6032 2002-03-01 Kazu Hirata <kazu@hxi.com>
6034 * config/h8300/h8300.c (print_operand): Support 16-bit
6036 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
6038 2002-02-28 Richard Henderson <rth@redhat.com>
6040 * expmed.c (store_bit_field): Prevent generation of CONCATs;
6041 pun complex values as integers; use gen_lowpart instead of
6043 (extract_bit_field): Likewise.
6045 2002-03-01 Alan Modra <amodra@bigpond.net.au>
6046 David Edelsohn <edelsohn@gnu.org>
6048 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
6049 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
6050 (SUPPORTS_WEAK): Likewise.
6051 * output.h (add_weak): Add tree param.
6052 * varasm.c (add_weak): Likewise. Save decl.
6053 (struct weak_syms): Add decl field.
6054 (mark_weak_decls): New function.
6055 (init_varasm_once): ggc_add_root mark_weak_decls.
6056 (assemble_start_function): Use ASM_WEAKEN_DECL.
6057 (assemble_variable): Likewise.
6058 (assemble_alias): Likewise.
6059 (declare_weak): Pass decl to add_weak.
6060 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
6061 (remove_from_pending_weak_list): Declare and define for
6063 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
6064 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
6065 * defaults.h (SUPPORTS_WEAK): Likewise.
6066 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
6067 .weak for code sym. Do emit .size for descriptor sym.
6068 (ASM_DECLARE_FUNCTION_SIZE): Define.
6069 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
6070 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
6071 .lglobl unless TARGET_XCOFF. Formatting fixes.
6072 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
6074 (HANDLE_PRAGMA_WEAK): Remove.
6075 (ASM_WEAKEN_LABEL): Remove.
6076 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
6078 2002-03-01 Jason Merrill <jason@redhat.com>
6080 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
6081 (TARGET_EXPR_CLEANUP): New macro.
6083 2002-02-28 Steve Ellcey <sje@cup.hp.com>
6085 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
6086 to take ptr_extend into account as third type of extension.
6087 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
6088 fields used by SUBREG_PROMOTED_UNSIGNED_P.
6089 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
6090 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
6091 * calls.c (precompute_arguments): Use new macro.
6092 (expand_call): Ditto.
6093 * combine.c (nonzero_bits): Ditto.
6094 (record_promoted_value): Ditto.
6095 * expr.c (store_expr): Ditto.
6096 (expand_expr): Ditto.
6097 * function.c (assign_parms): Ditto.
6099 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
6101 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
6102 override -shared and -shared-libgcc.
6104 2002-02-28 David O'Brien <obrien@FreeBSD.org>
6106 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
6108 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
6111 2002-02-28 Richard Henderson <rth@redhat.com>
6113 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
6114 4 cycle latency from MM producers.
6115 (ia64_internal_sched_reorder): Likewise with pipeline flush.
6117 2002-02-28 Jakub Jelinek <jakub@redhat.com>
6119 * mklibgcc.in: Don't use GNU make extension.
6121 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
6123 * c-parse.in (STATIC): New terminal.
6124 (scspec): New non-terminal. Update productions accordingly.
6125 (program): Remove bogus ifc / end ifc.
6126 (array_declarator): Simplify production using STATIC.
6128 2002-02-28 Jim Meyering <meyering@lucent.com>
6130 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
6131 \a still means TARGET_BELL.
6133 2002-02-28 Richard Henderson <rth@redhat.com>
6135 * haifa-sched.c (sched_emit_insn): New.
6136 (schedule_block): Use last_scheduled_insn to track last insn.
6137 * sched-int.h (sched_emit_insn): Prototype.
6138 * config/ia64/ia64.c (last_issued): Remove.
6139 (ia64_variable_issue): Don't set it.
6140 (nop_cycles_until): Use sched_emit_insn.
6142 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
6144 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
6147 2002-02-28 Kazu Hirata <kazu@hxi.com>
6149 * config/h8300/h8300.c: Fix formatting.
6150 * config/h8300/h8300.h: Likewise.
6152 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
6154 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
6155 which may overwrite the high byte of the frame pointer.
6157 2002-02-28 Bo Thorsen <bo@suse.de>
6159 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
6160 (STARTFILE_SPEC): Add 64 bit files.
6161 (ENDFILE_SPEC): Likewise.
6163 2002-02-28 Jason Merrill <jason@redhat.com>
6165 * c-decl.c (finish_function): Only warn about missing return
6166 statement with -Wreturn-type.
6168 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
6170 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
6172 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
6173 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
6175 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
6177 * basic-block.h (BB_REACHABLE): Renumber.
6178 (BB_DIRTY, BB_NEW): New flags.
6179 (clear_bb_flags): Declare.
6180 (update_life_info_in_dirty_blocks): Declare.
6181 * cfg.c (clear_bb_flags): New function.
6182 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
6183 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
6184 reorder_insns, emit_insn_after): Mark block as dirty.
6185 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
6186 (update_life_info_in_dirty_blocks): New function.
6187 * recog.c (apply_change_group): Dirtify block.
6189 * cse.c (cse_insn): Reorder emitting of jump insn to keep
6191 * gcse.c (delete_null_pointer_checks): Likewise.
6193 * toplev.c (dump_file_index): Move cse2 after bp,
6195 (dump_file_info): Similary.
6196 (rest_of_compilation): Avoid most of CFG rebuilds;
6197 do first if converision after null pointer checks, do cse2
6198 after branch prediction; avoid full liveness rebuild after
6199 initializing subregs.
6200 * invoke.texi (-d options): Document -du, renumber.
6202 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
6203 (notice_new_block): Do not set BB_UPDATE_LIFE.
6204 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
6205 merge_blocks_move_successor_nojumps, merge_blocks,
6206 try_crossjump_to_edge): Likewise.
6207 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
6208 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
6209 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
6210 (merge_of_block): Do not use life_data_ok.
6211 (find_if_case_1): Do not use SET_UPDATE_LIFE.
6212 (if_convert): Use BB_DIRTY mechanizm to update life.
6213 * lcm.c (optimize_mode_switching): Update
6214 update_life_info_in_dirty_blocks
6216 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
6218 * Makefile.in (integrate.o): Update.
6219 * c-decl.c (copy_lang_decl): Rename.
6220 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
6221 * integrate.c: Include langhooks.h.
6222 (copy_decl_for_inlining): Update to use langhook.
6223 * langhooks-def.h (lhd_do_nothing_t,
6224 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
6225 (LANG_HOOKS_INITIALIZER): Update.
6226 * langhooks.c (lhd_do_nothing_t): New.
6227 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
6228 * tree.h (copy_lang_decl): Remove.
6230 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
6232 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
6234 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
6235 POST_DEC, and POST_MODIFY.
6237 2002-02-27 Zack Weinberg <zack@codesourcery.com>
6239 * c-typeck.c (digest_init): Remove unused parameter; all
6242 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
6244 * expmed.c (expand_shift): Correctly test for low part of a
6247 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
6249 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
6250 insn UIDs with insn addresses.
6252 2002-02-27 Zack Weinberg <zack@codesourcery.com>
6254 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
6255 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
6256 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
6257 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
6258 gcc.c, toplev.c: Delete code implementing -traditional mode.
6260 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
6261 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
6262 Document removal of -traditional mode for compilation, and
6263 remove documentation only relevant to that mode.
6265 * config/nextstep.h, config/ptx4.h, config/svr4.h,
6266 config/convex/convex.h, config/d30v/d30v.h,
6267 config/i386/dgux.h, config/i386/osf1elf.h,
6268 config/i386/osfelf.h, config/i386/osfrose.h,
6269 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
6270 config/m68k/hp310.h, config/m88k/dgux.h,
6271 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
6272 config/m88k/m88k.h, config/m88k/openbsd.h,
6273 config/mips/abi64.h, config/mips/osfrose.h,
6274 config/mips/svr4-5.h, config/mips/svr4-t.h,
6275 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
6276 config/stormy16/stormy16.h: Remove all references to
6277 -traditional from target specs. Delete all mention of the
6278 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
6279 delete a couple of commented-out definitions of
6280 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
6283 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
6284 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
6286 2002-02-27 Zack Weinberg <zack@codesourcery.com>
6288 * mklibgcc.in: Don't use \n in a line subject to
6289 interpretation by echo.
6291 2002-02-27 Graham Stott <grahams@redhat.com>
6293 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
6296 * loop.c (prescan_loop): Handle PARALLEL.
6298 * unroll.c (loop_iterations): Return 0 if the add_val for
6301 * final.c (output_operand_lossage): Constify PFX_STR.
6303 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
6305 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
6307 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
6308 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
6310 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
6312 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
6314 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
6316 * cpplex.c (_cpp_lex_token): Handle directives in macro
6318 * cpplib.c (_cpp_handle_directive): Save and restore state
6319 if parsing macro args when entering a directive.
6320 * cppmacro.c (collect_args): No need to handle directives
6322 (enter_macro_context, replace_args): Use the original macro
6323 definition in case it was redefined whilst collecting arguments.
6327 2002-02-26 David Edelsohn <edelsohn@gnu.org>
6329 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
6330 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
6331 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
6333 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
6334 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
6335 (load_toc_v4_PIC_2): Same.
6337 2002-02-26 Alan Modra <amodra@bigpond.net.au>
6339 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
6341 2002-02-26 Richard Henderson <rth@redhat.com>
6343 * config/alpha/alpha.md (ashldi_se): Re-enable.
6345 2002-02-26 Richard Henderson <rth@redhat.com>
6347 * config/alpha/alpha.c (alpha_encode_section_info): Examine
6348 MODULE_LOCAL_P; improve commentary.
6350 2002-02-26 Zack Weinberg <zack@codesourcery.com>
6352 * doc/cpp.texi: Clarify documentation of relationship between
6355 2002-02-26 Kazu Hirata <kazu@hxi.com>
6357 * config/h8300/h8300-protos.h: Update the prototype for
6358 compute_logical_op_length. Add the prototype for
6359 compute_logical_op_cc.
6360 * config/h8300/h8300.c (compute_logical_op_length): Figure out
6362 (compute_logical_op_cc): New.
6363 * config/h8300/h8300.md: Combine all the logical op patterns
6364 in HImode and SImode. Use compute_logical_op_cc.
6366 2002-02-26 Kelley Cook <kelleycook@comcast.net>
6368 * config/i386/i386.c (print_operand): Don't append ATT-style
6369 length suffixs to x87 opcodes when in Intel mode.
6371 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
6373 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
6374 (init_emit_once): Update calls.
6375 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
6376 (init_syntax_once): Prototype.
6378 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
6380 * pa-linux.h (LIB_SPEC): Update definition.
6381 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6383 2002-02-26 Richard Henderson <rth@redhat.com>
6385 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
6386 if we emitted a stop bit.
6388 2002-02-26 Jakub Jelinek <jakub@redhat.com>
6390 * configure.in (libgcc_visibility): Substitute.
6391 * configure: Rebuilt.
6392 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
6393 defined symbols .hidden.
6395 2002-02-26 Jakub Jelinek <jakub@redhat.com>
6397 * attribs.c (c_common_attribute_table): Add visibility.
6398 (handle_visibility_attribute): New function.
6399 * varasm.c (assemble_visibility): New function.
6400 * output.h (assemble_visibility): Add prototype.
6401 * tree.h (MODULE_LOCAL_P): Define.
6402 * crtstuff.c (__dso_handle): Use visibility attribute.
6403 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
6404 for MODULE_LOCAL_P symbols too.
6405 * config/ia64/ia64.c (ia64_encode_section_info): Handle
6406 MODULE_LOCAL_P symbols the same way as local symbols.
6407 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
6408 into .sdata/.sbss by the user.
6409 * doc/extend.texi (Function Attributes): Document visibility
6412 2002-02-26 Jakub Jelinek <jakub@redhat.com>
6415 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
6416 STRING_CST initializer spanning the whole variable without
6418 If expand_expr returned MEM, don't use it.
6420 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
6422 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
6423 generate a die for the lexical block.
6425 2002-02-26 Kazu Hirata <kazu@hxi.com>
6427 * config/h8300/h8300-protos.h: Add a prototype for
6428 compute_logical_op_length.
6429 * config/h8300/h8300.c (compute_logical_op_length): New.
6430 * config/h8300/h8300.md (anonymous logical patterns): Use
6431 compute_logical_op_length for length.
6433 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
6435 * dwarf2out.c (modified_type_die): Do not call type_main_variant
6437 (gen_type_die): Same.
6439 * attribs.c (handle_vector_size_attribute): Set debug information.
6441 2002-02-26 Daniel Egger <degger@fhm.edu>
6443 * config/rs6000/rs6000.md: Swap define_insn attributes to
6444 fix incorrect generation of merge high instructions instead
6447 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
6449 * c-typeck.c (really_start_incremental_init): Use
6450 bitsize_zero_node for vectors.
6452 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
6454 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
6455 ("*set_vrsave_internal"): Same.
6457 2002-02-25 Richard Henderson <rth@redhat.com>
6459 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
6460 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
6462 2002-02-25 Jakub Jelinek <jakub@redhat.com>
6465 * config/i386/i386.c (ix86_return_pops_args): Only pop
6466 fake structure return argument if it was passed on the stack.
6468 2002-02-25 Jason Merrill <jason@redhat.com>
6470 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
6473 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
6475 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
6476 link with shared_name only.
6477 * doc/invoke.texi (Link Options): Document new behavior.
6479 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
6481 * c-typeck.c (push_init_level): Handle vectors.
6483 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
6485 * config/sparc/sparc.c (const64_high_operand): Zero-extend
6486 operands of SPARC_SETHI_P.
6487 (input_operand): Likewise.
6488 (sparc_emit_set_const32): Likewise.
6489 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
6490 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
6491 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
6492 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
6493 (movdi_insn_sp64_vis): Likewise.
6494 (movdi split, movdf split): Use SETHI32.
6495 * doc/md.texi: Document SPARC constraints L, M and N.
6497 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
6499 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
6500 ("*set_vrsave_internal"): use mfspr for Darwin.
6502 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
6503 gen_get_vrsave_internal.
6505 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6507 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
6509 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
6511 * cpplex.c (cpp_interpret_charconst): Get signedness or
6512 otherwise of wide character constants correct.
6513 * cppexp.c (lex): Get signedness of wide charconsts correct.
6515 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6517 * optabs.c (widen_operand): Only call convert_modes for
6518 promoted SUBREG if signedness matches.
6519 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
6521 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
6523 * cpplib.c (glue_header_name): Use local buffer to build up
6526 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
6528 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
6530 2002-02-23 Kazu Hirata <kazu@hxi.com>
6532 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
6533 H8/300[HS] separately.
6534 * config/h8300/h8300.md: Remove the early clobber constraint
6535 from bit field patterns.
6537 2002-02-23 Kazu Hirata <kazu@hxi.com>
6539 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
6541 (mulhisi3): Likewise.
6542 (umulqisi3): Likewise.
6543 (umulhisi3): Likewise.
6545 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
6547 * cppinit.c (output_deps): Correct test for stdout output.
6548 (init_dependency_output): Cure warning.
6550 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6552 * expr.c (store_expr): When converting expression to promoted
6553 equivalent type, allow using SUBREG_REG of TARGET as the target
6554 of the expansion of EXP.
6555 * loop.c (basic_induction_var, case SUBREG): Always look inside.
6556 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
6557 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
6558 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
6559 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
6561 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
6563 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
6564 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
6565 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
6567 2002-02-23 Jakub Jelinek <jakub@redhat.com>
6569 PR optimization/5747
6570 * loop.c (scan_loop): Update reg info if move_movables created new
6573 2002-02-23 David Edelsohn <edelsohn@gnu.org>
6575 * gcc.c (init_gcc_spec): Revert last change.
6577 2002-02-23 David Edelsohn <edelsohn@gnu.org>
6579 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
6580 gpc_reg_operand constraint.
6582 2002-02-23 Alan Modra <amodra@bigpond.net.au>
6584 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
6585 Simplify comparison of `low'.
6586 (add_operand): Fix formatting.
6587 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
6588 (mask_operand): Disallow mask to wrap in 64-bit mode.
6589 (rs6000_stack_info): Remove redundant test setting push_p.
6590 (output_toc): Fix formatting.
6591 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
6592 cc_reg_not_cr0_operand constraint.
6593 (booldi3, boolcdi3 splitters): Same.
6595 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
6597 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
6599 2002-02-22 David Edelsohn <edelsohn@gnu.org>
6601 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
6602 gcc invoked with -shared-libgcc.
6604 2002-02-22 Jakub Jelinek <jakub@redhat.com>
6607 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
6608 decl if any of elements was TREE_USED.
6610 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
6612 * config/sparc/sol2.h: Don't include sys/mman.h.
6613 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
6614 (arith_4096_operand): Don't throw high bits away.
6615 (const64_operand): Take sign extension of CONST_INTs into account.
6616 (const64_high_operand, sparc_emit_set_const32): Likewise.
6617 (GEN_HIGHINT64): Likewise.
6618 (sparc_emit_set_const64_quick1): Likewise.
6619 (const64_is_2insns): Likewise.
6620 (print_operand): Use trunc_int_for_mode for sign extension.
6621 * config/sparc/sparc.h (SMALL_INT32): Likewise.
6622 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
6623 chars. Assume CONST_INT is already properly sign-extended.
6624 (movdi split): Sign-extend each SImode part.
6625 (andsi3 split): Don't mask high bits off, so that result
6626 remains properly sign-extend.
6627 (iorsi3 split): Likewise.
6628 (xorsi3 split): Likewise.
6630 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
6632 * fold-const.c (fold): Fix typo in comments.
6634 2002-02-21 Diego Novillo <dnovillo@redhat.com>
6636 * Makefile.in (langhooks.o): Update dependencies.
6638 2002-02-21 Diego Novillo <dnovillo@redhat.com>
6640 * langhooks.c: Include flags.h.
6642 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
6644 * testsuite/gcc.dg/attr-alwaysinline.c: New.
6646 * c-common.c (c_common_post_options): Set inline trees by
6649 * doc/extend.texi (Function Attributes): Document always_inline
6651 Update documentation about inlining when not optimizing.
6653 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
6655 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
6656 unless DECL_ALWAYS_INLINE.
6658 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
6659 unless DECL_ALWAYS_INLINE.
6660 (c_disregard_inline_limits): Disregard if always_inline set.
6662 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
6663 Disregard if always_inline set.
6664 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
6665 unless DECL_ALWAYS_INLINE.
6667 * attribs.c (handle_always_inline_attribute): New.
6668 (c_common_attribute_table): Add always_inline.
6670 * config/rs6000/altivec.h: Add prototypes for builtins
6671 requiring the always_inline attribute.
6673 2002-02-21 Eric Christopher <echristo@redhat.com>
6675 * expmed.c (store_bit_field): Try to simplify the subreg
6676 before generating a new one when when the mode size of
6677 value is less than maxmode.
6679 2002-02-21 Richard Henderson <rth@redhat.com>
6681 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
6682 than gen_rtx_PLUS to form the sum.
6683 * explow.c (force_reg): Rearrange to not allocate new pseudo
6684 when force_operand returns a register.
6685 * expr.c (expand_assignment): Allow offset_rtx expansion to
6686 return a sum. Do not force addresses into registers.
6687 (expand_expr): Likewise.
6688 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
6689 to canonicalize arithmetic that didn't simpify.
6690 (simplify_plus_minus): New argument force; update
6691 all callers. Don't split CONST unless we can do something with it,
6692 and wouldn't lose the constness of the operands.
6694 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
6695 that we generated earlier.
6697 2002-02-21 Tom Tromey <tromey@redhat.com>
6699 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6700 (output_line_info): Use constant `1', with a long explanatory
6702 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
6704 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
6706 * jump.c (redirect_jump): If old label has no UID, don't try to
6709 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
6711 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
6712 If input is constant, do shifts at compile time.
6714 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
6716 * doc/extend.texi: Fix some more overfull hboxes.
6718 2002-02-21 Jakub Jelinek <jakub@redhat.com>
6720 PR optimization/4994
6721 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
6724 2002-02-21 Jakub Jelinek <jakub@redhat.com>
6727 * expr.h (expand_and): Add mode argument.
6728 * expmed.c (expand_and): Add mode argument.
6729 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
6730 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
6731 * except.c (expand_builtin_extract_return_addr): Likewise.
6732 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
6733 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
6734 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
6735 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
6736 * config/c4x/c4x.md: Use GEN_INT (x) instead of
6737 gen_rtx (CONST_INT, VOIDmode, x).
6739 2002-02-21 Jakub Jelinek <jakub@redhat.com>
6742 * stmt.c (warn_if_unused_value): Move side effects test once more.
6744 2002-02-20 Torbjorn Granlund <tege@swox.com>
6746 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
6747 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
6749 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
6751 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
6752 SUBREG or ZERO_EXTEND.
6754 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
6756 * sh.h (current_function_anonymous_args): Remove.
6757 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
6758 of current_function_varargs and current_function_stdarg is set.
6759 * sh.c (sh_expand_prologue): Check current_function_varargs /
6760 current_function_stdarg / TARGET_SH5 instead of
6761 current_function_anonymous_args.
6763 * sh64.h (TARGET_VERSION): Define.
6765 2002-02-20 David Edelsohn <edelsohn@gnu.org>
6767 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
6768 VRSAVE_REGNO on TARGET_ALTIVEC.
6770 2002-02-20 Alan Modra <amodra@bigpond.net.au>
6772 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
6773 bits of SImode const_int.
6774 (includes_rshift_p): Likewise.
6775 (print_operand): Call mask_operand and mask64_operand with correct
6777 (rs6000_output_function_epilogue): Pad traceback table to word.
6778 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
6779 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
6780 mask64_operand with correct mode.
6781 (FUNCTION_ARG_REGNO_P): Correct parentheses.
6783 2002-02-20 Jakub Jelinek <jakub@redhat.com>
6786 * varasm.c (get_pool_constant_mark): New.
6787 * rtl.h (get_pool_constant_mark): Add prototype.
6788 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
6789 be represented if it has not been output.
6791 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
6793 * combine.c (do_SUBST): Sanity check substitutions of
6794 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
6795 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
6796 CONST_INT into its operand.
6797 (known_cond): Likewise, for ZERO_EXTEND.
6798 * simplify-rtx.c (simplify_unary_operation): Fix condition to
6799 allow for simplification of wide modes. Reject CONST_INTs in
6800 ZERO_EXTEND when their actual mode is not given.
6802 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
6804 * c-decl.c (pushdecl): If no global declaration is found for an
6805 extern declaration in block scope, try a limbo one.
6807 2002-02-20 Jakub Jelinek <jakub@redhat.com>
6810 * c-common.c (pointer_int_sum): Moved from...
6811 * c-typeck.c (pointer_int_sum): ...here.
6812 * c-common.h (pointer_int_sum): Add prototype.
6814 2002-02-20 Jakub Jelinek <jakub@redhat.com>
6817 * c-decl.c (duplicate_decls): Return 0 if issued error about
6820 2002-02-20 Roger Sayle <roger@eyesopen.com>
6821 Jakub Jelinek <jakub@redhat.com>
6824 * tree.c (host_integerp): Ensure that the constant integer is
6825 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
6826 when pos is zero or non-zero respectively. Clarify comment.
6827 * c-format.c (check_format_info_recurse): Fix host_integerp
6828 usage; the pos argument should be zero when assigning to a
6829 signed HOST_WIDE_INT.
6831 2002-02-20 Richard Henderson <rth@redhat.com>
6833 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
6834 of the operand, rather than assuming TImode.
6835 (ix86_expand_binop_builtin): Cope with commutative patterns
6836 using nonimmediate_operand for both operands.
6837 (ix86_expand_timode_binop_builtin): Likewise.
6838 (ix86_expand_store_builtin): Validate operand 1.
6839 (ix86_expand_unop1_builtin): Likewise.
6841 2002-02-20 Philip Blundell <philb@gnu.org>
6844 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
6846 2002-02-20 Richard Henderson <rth@redhat.com>
6849 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
6851 2002-02-20 Tom Tromey <tromey@redhat.com>
6853 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6854 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6855 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6856 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6857 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
6860 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
6862 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
6863 for (const_int 0) in X not just INTVAL.
6865 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
6867 * doc/extend.texi: Avoid or reduce overfull hboxes.
6869 2002-02-20 Diego Novillo <dnovillo@redhat.com>
6871 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
6872 operations if the field does not start at a mode boundary.
6874 2001-02-20 Joel Sherrill <joel@OARcorp.com>
6876 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
6877 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
6878 Also done for -Acpu and -Amachine.
6880 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
6882 * cppinit.c (init_dependency_output): Take deps output file
6883 from -o if none given with -MF. Suppress normal output.
6884 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
6885 * doc/cpp.texi, doc/invoke.texi: Update.
6887 2002-02-19 Zack Weinberg <zack@codesourcery.com>
6889 * toplev.c (output_quoted_string): Write unprintable
6890 characters with octal escapes.
6892 2002-02-19 David Edelsohn <edelsohn@gnu.org>
6894 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
6895 really_call_used[VRSAVE_REGNO] if not Altivec.
6897 2002-02-19 Alan Modra <amodra@bigpond.net.au>
6899 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
6901 (constant_pool_expr_1): Fix formatting.
6902 (rs6000_legitimize_reload_address): Likewise.
6904 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6906 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
6907 now that we have one.
6909 2002-02-19 Zack Weinberg <zack@codesourcery.com>
6911 * tree.h (struct tree_common): Remove aux. Add unused_0 at
6912 end of first block of bitfields (which was only seven bits);
6913 rename dummy to unused_1; remove comment which is no longer true.
6915 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
6917 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
6919 2002-02-19 Philip Blundell <pb@nexus.co.uk>
6922 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
6926 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
6927 arm_is_longcall_p rather than inspecting call-type cookie
6929 (call_value_insn) [TARGET_THUMB]: Likewise.
6931 2002-02-19 Graham Stott <grahams@redhat.com>
6933 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
6935 2002-02-19 David Edelsohn <edelsohn@gnu.org>
6937 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
6938 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
6939 (FP_SAVE_INLINE): Delete.
6941 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
6942 * config/rs6000/eabi.asm: Remove ABI save restore routines.
6943 * config/rs6000/t-ppccomm: Build crtsavres.o.
6944 * config/rs6000/crtsavres.asm: New file.
6946 2002-02-19 Philip Blundell <philb@gnu.org>
6948 * config/arm/arm.c (use_return_insn): Don't reject interrupt
6950 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
6951 (output_return_instruction): Allow interrupt functions to return with
6952 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
6953 (arm_expand_prologue): Subtract 4 before stacking LR in an
6956 2002-02-19 Philip Blundell <pb@nexus.co.uk>
6958 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
6959 decl, not just FUNCTION_DECL.
6960 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
6961 (arm_assemble_integer): Likewise.
6962 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
6965 2002-02-19 matthew green <mrg@eterna.com.au>
6967 * config.gcc (sparc-*-netbsdelf*): Enable target.
6968 (sparc64-*-netbsd*): New target.
6969 * config/sparc/netbsd-elf.h: New file.
6970 * config/sparc/t-netbsd64: New file.
6972 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
6974 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
6976 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
6978 * doc/invoke.texi: explicitly list the style guidelines that
6979 -Weffc++ checks for.
6981 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
6983 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
6985 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
6988 * gcc.c (cpp_unique_options): Treat -o as indicating object file
6989 only if not -E. If -E, pass -o through to the preprocessor.
6991 2002-02-19 Kazu Hirata <kazu@hxi.com>
6993 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
6994 register number with an appropriate macro.
6996 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
6998 * doc/rtl.texi (Constants): Close @code tag.
7000 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
7002 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
7003 ("mmx_uavgv4hi3"): Same.
7004 ("pmulhrwv4hi3"): Same.
7006 * tree-inline.c (walk_tree): Handle vectors.
7008 * c-common.c (constant_expression_warning): Handle vectors.
7009 (overflow_warning): Same.
7011 * sched-deps.c (sched_analyze_2): Handle vectors.
7013 * rtlanal.c (rtx_unstable_p): Handle vectors.
7014 (rtx_varies_p): Same.
7015 (count_occurrences): Same.
7016 (regs_set_between_p): Same.
7017 (modified_between_p): Same.
7018 (modified_in_p): Same.
7019 (volatile_insn_p): Same.
7020 (volatile_refs_p): Same.
7021 (side_effects_p): Same.
7023 (inequality_comparisons_p): Same.
7024 (replace_regs): Same.
7025 (computed_jump_p_1): Same.
7027 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
7029 (inner_mode_array): New.
7030 (copy_rtx): Handle vectors.
7031 (copy_most_rtx): Same.
7032 (rtx_equal_p): Same.
7033 (get_mode_alignment): Adjust for vectors.
7035 * resource.c (mark_referenced_resources): Handle vectors.
7036 (mark_set_resources): Same.
7038 * reload1.c (eliminate_regs): Handle vectors.
7039 (elimination_effects): Same.
7040 (scan_paradoxical_subregs): Same.
7042 * reload.c (subst_reg_equivs): Handle vectors.
7044 * regrename.c (scan_rtx): Handle vectors.
7046 * regclass.c (reg_scan_mark_refs): Handle vectors.
7048 * recog.c (find_single_use_1): Handle vectors.
7050 * local-alloc.c (equiv_init_varies_p): Handle vectors.
7051 (contains_replace_regs): Same.
7052 (memref_referenced_p): Same.
7054 * integrate.c (copy_rtx_and_substitute): Handle vectors.
7055 (subst_constants): Same.
7057 * genattrtab.c (attr_copy_rtx): Handle vectors.
7058 (encode_units_mask): Same.
7059 (clear_struct_flag): Same.
7060 (count_sub_rtxs): Same.
7062 * gcse.c (want_to_gcse_p): Handle vectors.
7063 (oprs_unchanged_p): Same.
7064 (hash_expr_1): Same.
7065 (oprs_not_set_p): Same.
7066 (expr_killed_p): Same.
7067 (compute_transp): Same.
7068 (store_ops_ok): Same.
7070 * function.c (purge_addressof_1): Do not allow paradoxical subregs
7072 (fixup_var_refs_1): Same.
7073 (instantiate_virtual_regs_1): Same.
7075 * fold-const.c (operand_equal_p): Handle vectors.
7077 (rtl_expr_nonnegative_p): Same.
7079 * flow.c (mark_used_regs): Handle vectors.
7081 * df.c (df_uses_record): Handle vectors.
7083 * cselib.c (cselib_subst_to_values): Handle vectors.
7084 (cselib_mem_conflict_p): Same.
7087 * cse.c (canon_reg): Handle vectors.
7089 (cse_process_notes): Same.
7090 (count_reg_usage): Same.
7093 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
7095 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
7097 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
7098 (gen_rtx): Handle CONST_VECTOR.
7099 (gen_const_vector_0): New.
7100 (copy_rtx_if_shared): CONST_VECTORs can be shared.
7101 (reset_used_flags): Same.
7102 (copy_insn_1): Same.
7103 (initializer_constant_valid_p): Handle VECTOR_CST.
7105 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
7107 * doc/rtl.texi (Constants): Document const_vector.
7108 (CONST0_RTX): Update for vectors.
7109 (RTL sharing): Same.
7111 * print-tree.c (print_node): Add case for VECTOR_CST.
7113 * tree.h (TREE_VECTOR_CST_ELTS): New.
7114 (struct tree_vector): New.
7115 (union tree_node): Add vector node.
7116 (build_vector): Add prototype.
7118 * tree.def (VECTOR_CST): New.
7120 * tree.c (build_vector): New.
7122 * expmed.c (make_tree): Handle CONST_VECTOR.
7124 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
7125 (CONST_VECTOR_ELT): New.
7126 (CONST_VECTOR_NUNITS): New.
7128 * machmode.h (GET_MODE_INNER): New.
7129 (DEF_MACHMODE): Accept 8th arg.
7131 * machmode.def: Add 8th argument for vector inner mode.
7132 Add inner vector modes for vectors.
7134 * rtl.def (VEC_CONST): Remove.
7135 (CONST_VECTOR): New.
7137 * expr.c (clear_storage): Allow vectors.
7138 (is_zeros_p): Handle VECTOR_CST.
7140 * varasm.c (output_constant_pool): Handle vectors.
7141 (rtx_const): Add veclo and vechi fields.
7142 (kind): Add RTX_VECTOR.
7143 (decode_rtx_const): Add case for vector.
7145 * config/rs6000/rs6000-protos.h: Add zero_constant.
7147 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
7148 constants. Force easy vector constants into memory.
7149 (easy_vector_constant): New.
7150 (emit_easy_vector_constant): New.
7151 (rs6000_legitimize_reload_address): Do not generate bad reloads on
7154 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
7156 ("altivec_lvxl"): Same.
7157 (altivec_lvebx): Same.
7158 (altivec_lvehx): Same.
7159 (altivec_lvewx): Same.
7160 ("*movv4si_const0"): New.
7161 ("*movv4sf_const0"): New.
7162 ("*movv8hi_const0"): New.
7163 ("*movv16qi_const0"): New.
7165 2002-02-18 Kazu Hirata <kazu@hxi.com>
7167 * config/h8300/h8300.c (notice_update_cc): Use
7170 2002-02-18 Kazu Hirata <kazu@hxi.com>
7172 * config/h8300/h8300.md (divmod patterns): Change the
7173 constraints for operands[1] to register_operand.
7175 2002-02-18 Kazu Hirata <kazu@hxi.com>
7177 * config/h8300/h8300-protos.h: Remove the prototype for
7179 * config/h8300/h8300.c (p_operand): Remove.
7180 * config/h8300/h8300.md: Replace p_operand with
7183 2002-02-18 Philip Blundell <pb@nexus.co.uk>
7185 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
7187 (output_return_instruction): Allow use of LDR to unstack
7188 return addresss even for interrupt handlers or when
7189 interworking. If compiling for ARMv5, use interworking-safe
7190 return instructions by default. Remove duplicated code and
7191 lengthy "strcat" sequences.
7193 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7195 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
7196 (LINK_EH_SPEC): Define.
7197 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
7199 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
7201 * config/s390/s390.c (s390_emit_prologue): Do not set the
7202 frame_related flag for call-clobbered registers.
7204 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
7206 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
7207 (construct_container): Fix handling of SSE operands.
7208 (ix86_expand_builtin): Fix handling of 64bit pointers.
7209 (mmx_maskmovq_rex): New pattern.
7211 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
7213 * regrename.c (kill_set_value): Handle subregs properly.
7215 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
7217 * objc/objc-act.c (handle_impent): Remove leading '*'
7218 from objc_class_name.
7220 2002-02-17 Richard Henderson <rth@redhat.com>
7222 * config/alpha/alpha.c (some_small_symbolic_operand,
7223 some_small_symbolic_operand_1, split_small_symbolic_operand,
7224 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
7225 Handle small SYMBOL_REFs anywhere, not just inside memories.
7226 * config/alpha/alpha-protos.h: Update.
7227 * config/alpha/alpha.h (PREDICATE_CODES): Update.
7228 * config/alpha/alpha.md (small symbolic operand splitter): Update.
7230 2002-02-17 Roland McGrath <roland@frob.com>
7232 * config.gcc (powerpc-*-gnu-gnualtivec*,
7233 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
7234 * config/rs6000/gnu.h: New file.
7235 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
7236 Grok "gnu" in rs6000_abi_name.
7237 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
7238 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
7239 Grok -mcall-gnu analogous to -mcall-linux et al.
7240 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
7241 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
7242 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
7244 2002-02-17 Jakub Jelinek <jakub@redhat.com>
7247 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
7250 2002-02-17 Philipp Thomas <pthomas@suse.de>
7252 * config/cris/cris.h: Undefine STARTFILE_SPEC and
7253 ENDFILE_SPEC before (re)defining them.
7255 2002-02-17 Kazu Hirata <kazu@hxi.com>
7257 * config/h8300/h8300.c: Fix formatting.
7258 * config/h8300/h8300.h: Likewise.
7260 2002-02-17 Philipp Thomas <pthomas@suse.de>
7262 * doc/tm.texi: Explain why empty strings should not be
7263 marked for translation.
7265 2002-02-17 Philipp Thomas <pthomas@suse.de>
7267 * final.c (output_operand_lossage): Changed to accept
7268 printf style arguments. Change calls where necessary.
7269 * output.h (output_operand_lossage): Change declaration
7270 accordingly. Update copyright.
7271 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
7272 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
7273 Update copyright date where necessary.
7275 * config/i386/i386.c (print_operand): Likewise. Remove use of
7278 * config/cris/cris.c (cris_operand_lossage): Likewise.
7279 Rename parameter so that exgettext recognizes it as
7280 translatable message.
7281 (LOSE_AND_RETURN): Rename parameter to msgid.
7283 2002-02-17 Kazu Hirata <kazu@hxi.com>
7285 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
7286 hard coded register number with an appropriate macro.
7287 (HARD_REGNO_MODE_OK): Likewise.
7288 (ARG_POINTER_REGNUM): Likewise.
7289 (STATIC_CHAIN_REGNUM): Likewise.
7290 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
7291 * config/h8300/h8300.md (define_constants): Define more
7294 2002-02-17 Philipp Thomas <pthomas@suse.de>
7296 * config/i386/i386.h: Don't mark empty strings for translation.
7298 2002-02-16 H.J. Lu <hjl@gnu.org>
7300 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
7302 2002-02-16 Zack Weinberg <zack@codesourcery.com>
7304 * cppinit.c (merge_include_chains): Check for brack being
7305 NULL before attempting to merge it with qtail.
7307 2002-02-16 Andrew Cagney <ac131313@redhat.com>
7309 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
7312 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
7314 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
7316 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
7318 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
7319 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
7320 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
7322 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7324 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
7325 now only if !TARGET_FIX.
7326 (*movsi_nt_vms_fix): New pattern.
7328 2002-02-16 Douglas B Rupp <rupp@gnat.com>
7330 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
7331 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
7332 (alpha_sa_mask, alpha_sa_size): Reflect above change.
7333 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
7334 (alpha_start_function, alpha_expand_epilogue): Likewise.
7335 (unicosmk_gen_dsib): Likewise.
7337 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7339 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
7341 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
7343 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
7344 check_and_change_labels, s390_final_chunkify): Delete.
7345 (s390_split_branches, s390_chunkify_pool): New functions.
7346 (s390_function_prologue): Call them.
7348 * config/s390/s390.h (S390_REL_MAX): Delete.
7349 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
7351 * config/s390/s390.md (cjump, icjump, jump): Fix length
7352 attribute calculation.
7355 2002-02-15 David Edelsohn <edelsohn@gnu.org>
7357 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
7358 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
7360 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
7362 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
7363 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
7364 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
7366 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
7368 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
7370 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
7372 * reload.c (find_dummy_reload): Check that an output register
7373 is valid for its mode.
7375 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
7377 * combine.c (known_cond): After replacing the REG of a SUBREG, try
7380 * function.c (assign_parms): Demote promoted argument passed by
7381 transparent reference.
7383 2001-02-14 Joel Sherrill <joel@OARcorp.com>
7385 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
7386 -Acpu() and -Amachine() to eliminate warnings.
7388 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
7390 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
7392 2002-02-14 Kazu Hirata <kazu@hxi.com>
7394 * config/h8300/h8300-protos.h: Update the prototype for
7396 * config/h8300/h8300.c (const_costs): Treat SET as a little
7397 more expensive operation.
7398 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
7399 reference to const_costs.
7401 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
7403 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
7405 2002-02-14 Jakub Jelinek <jakub@redhat.com>
7408 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
7409 use arguments from newtype.
7411 2002-02-13 Eric Christopher <echristo@redhat.com>
7413 * config/mips/mips.c (override_options): Add check for march/mipsX
7414 on the same command line. Fix error message in cpu processing.
7415 Remove architecture and ISA checks.
7417 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
7419 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
7421 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
7423 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
7425 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
7427 ("*movv8hi_internal1"): Same.
7428 ("*movv16qi_internal1"): Same.
7429 ("*movv4sf_internal1"): Same.
7431 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
7432 not push_reload for altivec modes.
7434 2002-02-13 Joel Sherrill <joel@OARcorp.com>
7436 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
7437 all RTEMS targets including removal of #includes from config/*/rtems*.h
7438 file and adding them to tm_file setting. Added xm_defines=POSIX to
7440 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
7441 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
7442 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
7443 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
7444 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
7445 config/m68k/rtemself.h: Ditto.
7446 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
7447 config/mips/rtems64.h: Ditto.
7448 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
7449 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
7451 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
7452 config/sparc/rtemself.h: Ditto.
7453 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
7454 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
7455 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
7457 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
7458 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
7459 target made more similar to i386-elf.
7460 * config/i386/t-rtems-i386: Added soft float support and multilibs.
7461 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
7462 be similar to config/m68k/t-m68kelf.
7463 * gthr-rtems.h: Encapsulate with extern "C" for C++.
7465 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
7467 * regmove.c (kill_value): Handle subregs.
7469 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
7471 * i386.md (mul patterns): Allow memory operand to be first;
7472 add expanders where needed; fix constraints.
7473 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
7474 Allow memory operand to be the first.
7476 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
7479 2002-02-13 Jakub Jelinek <jakub@redhat.com>
7482 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
7485 2002-02-13 Jakub Jelinek <jakub@redhat.com>
7487 PR optimization/5547:
7488 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
7489 all valid IA-32 address modes involving non-scaled %ebx and
7490 GOT/GOTOFF as displacement.
7492 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
7494 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
7495 after emitting ltorg insns.
7497 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
7498 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
7499 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
7500 *abssf2): Fix "op_type" attribute.
7502 2002-02-13 Douglas B Rupp <rupp@gnat.com>
7504 * mkconfig.sh: Avoid using a subshell redirect.
7505 ($output.T): Change to $(output)T.
7506 (ENABLE_NLS): Remove unneeded undef.
7508 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
7509 * config/alpha/x-vms (libsubdir): Define.
7511 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
7512 register frame procedures. Optimize retrieving context.
7514 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
7515 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
7516 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
7518 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7520 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
7521 Make same change as for find_base_value.
7523 2002-02-13 Kazu Hirata <kazu@hxi.com>
7525 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
7526 of QImode and SImode.
7528 2002-02-13 Kazu Hirata <kazu@hxi.com>
7530 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
7531 length computation of movsi.
7532 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
7534 2002-02-13 Kazu Hirata <kazu@hxi.com>
7536 * config/h8300/h8300.md (subqi3): Tighten the predicate for
7537 operands[2] to register_operand.
7539 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
7541 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
7543 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
7545 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
7546 for altivec_lvx* and altivec_stvx*.
7547 ("*movv4si_internal"): Add constraint for loading from GPRs.
7548 ("*movv8hi_internal1"): Same.
7549 ("*movv16qi_internal1"): Same.
7550 ("*movv4sf_internal1"): Same.
7552 * config/rs6000/rs6000.c (altivec_register_operand): New.
7554 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
7555 altivec_register_operand.
7557 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
7559 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
7562 2002-02-13 Stan Shebs <shebs@apple.com>
7564 * c-typeck.c (digest_init): Handle vectors.
7565 (really_start_incremental_init): Same.
7566 (pop_init_level): Same.
7567 (process_init_element): Same.
7569 * varasm.c (output_constant): Same.
7571 * expr.c (clear_storage): Same.
7572 (store_constructor): Same.
7574 2002-02-12 Eric Christopher <echristo@redhat.com>
7576 * explow.c (hard_function_value): Add comment explaining
7577 signed/unsigned comparison.
7579 2002-02-12 Jakub Jelinek <jakub@redhat.com>
7581 * jump.c (never_reached_warning): Add finish argument.
7582 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
7583 real insn after end.
7584 * rtl.h (never_reached_warning): Adjust prototype.
7585 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
7586 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
7587 never_reached_warning.
7589 2002-02-12 Graham Stott <grahams@redhat.com>
7591 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
7593 2002-02-12 Kazu Hirata <kazu@hxi.com>
7595 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
7596 logical shifts on H8/300.
7597 (shift_alg_si): Improve several shifts on H8/300.
7598 (get_shift_alg): Likewise.
7600 2002-02-12 Graham Stott <grahams@redhat.com>
7602 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
7604 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7606 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
7607 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
7609 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
7611 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
7612 non-CONST_INT through default_assemble_integer.
7613 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
7614 <case 8>: Abort for CONST_DOUBLE.
7616 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
7618 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
7620 * config/pa/pa-linux.h (LIB_SPEC): Delete.
7621 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
7623 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
7625 * config/stormy16/stormy16.md (zero_extendqihi2): New.
7627 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
7629 * regrename.c (regrename_optimize): Don't accept a
7630 part-clobbered register if the replaced register is not part
7633 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
7634 take padding into account when computing the argument value.
7636 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
7638 * combine.c (try_combine): Apply substitutions in
7639 CALL_INSN_FUNCTION_USAGE too.
7641 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
7643 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
7644 __builtin_altivec_abs*.
7647 * config/rs6000/rs6000.h (rs6000_builtins): Add
7648 ALTIVEC_BUILTIN_ABS*.
7650 * config/rs6000/altivec.h: Use const char for builtins expecting
7652 (vec_abs): New versions for C and C++.
7655 2002-02-10 Kazu Hirata <kazu@hxi.com>
7657 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
7660 2002-02-10 Kazu Hirata <kazu@hxi.com>
7662 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
7663 constant definition from h8300.md.
7664 (FRAME_POINTER_REGNUM): Likewise.
7665 * config/h8300/h8300.md (define_constants): Add FP_REG.
7667 2002-02-10 Kazu Hirata <kazu@hxi.com>
7669 * config/h8300/h8300.c (print_operand): Remove redundant code.
7671 2002-02-10 Kazu Hirata <kazu@hxi.com>
7673 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
7674 * config/h8300/h8300.c (byte_reg): Make it static.
7676 2002-02-10 Richard Henderson <rth@redhat.com>
7679 * c-typeck.c (incomplete_type_error): Handle flexible array members.
7681 2002-02-10 Richard Henderson <rth@redhat.com>
7684 * tree.c (append_random_chars): Don't abort if main_input_filename
7687 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
7689 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
7691 2002-02-10 Kazu Hirata <kazu@hxi.com>
7693 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
7694 (pushhi1): Likewise.
7696 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
7698 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
7699 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
7701 2002-02-09 David O'Brien <obrien@FreeBSD.org>
7703 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
7705 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
7707 2002-02-09 Kazu Hirata <kazu@hxi.com>
7709 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
7710 a half of an SImode register on H8/300.
7712 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
7714 * i386.md (movdi_2): Add missing '!'.
7716 2002-02-09 Kazu Hirata <kazu@hxi.com>
7718 * config/h8300/h8300.h: Fix formatting. Remove commented-out
7721 2002-02-09 Kazu Hirata <kazu@hxi.com>
7723 * config/h8300/h8300.md (length): Correct the distance valid
7724 for the short branch.
7726 2002-02-09 Kazu Hirata <kazu@hxi.com>
7728 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
7730 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
7732 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
7733 registers in SImode.
7734 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
7737 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
7740 Contribute sh64-elf.
7741 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
7742 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
7743 (sh_cannot_modify_jumps_p): New function.
7744 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
7745 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
7746 (sh_ms_bitfield_layout_p): New function.
7747 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
7748 Zack Weinberg <zack@codesourcery.com>
7749 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
7750 expand_simple_binop instead of expand_binop.
7751 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
7752 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
7753 use of .quad and .uaquad.
7754 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
7755 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
7756 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7757 * config/sh/sh.md (movdi_const, movdi_const_32bit,
7758 movdi_const_16bit): Make sure all CONSTs have modes.
7759 (sym2PIC): Ditto, but by adjusting all callers.
7760 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
7761 if the prologue calls the SHmedia argument decoder or register
7763 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7764 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
7765 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
7766 (sh_expand_epilogue): Don't emit USE of return target register.
7767 (prepare_move_operands): Legitimize DImode PIC addresses.
7768 (sh_media_register_for_return): Skip tr0, used to initialize the
7770 (sh_expand_prologue): Remove explicit USE of return register.
7771 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
7772 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
7773 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
7774 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
7775 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
7777 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
7778 (MOVI_SHORI_BASE_OPERAND_P): New.
7779 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
7780 (EXTRA_CONSTRAINT_T): Define in terms of them.
7781 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
7782 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
7783 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
7784 alternatives supporting TARGET_REGS.
7785 (UNSPEC_GOTPLT): New constant.
7786 (movdi split): Move incrementing of LABEL_NUSES...
7787 (movdi_const, movdi_const_32bit): Here. Use
7788 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
7789 (movdi_const_16bit): New.
7790 (call, call_value) [flag_pic]: Use GOTPLT.
7791 (call_pop, call_value_pop): New expands.
7792 (call_pop_compact, call_pop_rettramp): New insns.
7793 (call_value_pop_compact, call_value_pop_rettramp): New insns.
7794 (sibcall) [flag_pic]: Use GOT.
7795 (builtint_setjmp_receiver): Remove bogus, unused expand.
7796 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
7797 (*pt, *ptb, ptrel): New insns.
7798 (sym2GOT): Handle DImode GOT.
7799 (sym2GOTPLT, symGOTPLT2reg): New expands.
7800 (sym2PIC): New expand.
7801 (shcompact_return_tramp): Use GOTPLT to return trampoline.
7802 (shcompact_return_tramp_i): Use return register explicitly.
7803 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
7804 disable flag_reorder_blocks.
7805 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
7806 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
7807 clobbers, for clarity.
7808 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
7809 restoring of r0 in macl as MAYBE_DEAD.
7810 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
7811 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
7812 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
7813 alter_subreg all over.
7814 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
7815 reload, instead of emitting instructions that would require
7817 (casesi_load_media): Add missing modes.
7818 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
7819 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
7820 as used if the argument decoder is called.
7821 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
7822 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
7823 Pmode, then extend it to DImode if necessary.
7824 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
7825 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
7826 constants in FPU-enabled SHmedia, let them be loaded from memory.
7827 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
7828 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
7829 Adjust whitespace in assembly output templates.
7830 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
7831 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
7832 mode of if_then_else.
7833 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
7834 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
7836 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
7837 Joern Rennecke <amylaar@redhat.com>
7838 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
7839 (SUBTARGET_CPP_PTR_SPEC): New.
7840 (SUBTARGET_CPP_SPEC): Remove.
7841 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
7842 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
7843 Fix typo in previous checkin.
7844 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
7845 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
7846 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
7847 Alexandre Oliva <aoliva@redhat.com>
7848 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
7849 what single FP register can hold for SHmedia target.
7850 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
7851 Alexandre Oliva <aoliva@redhat.com>
7852 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
7853 Do not split into SUBREG.
7854 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
7855 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
7856 and added new functions as specified in SH5 ABI r9.
7857 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
7858 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
7860 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
7861 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
7862 gen_consttable_4 and gen_consttable_8. Emit multiple labels
7863 and consttable_window_ends.
7864 2001-06-03 Graham Stott <grahams@redhat,com>
7865 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
7866 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
7867 * config/sh/sh.c (print_operand): Handle floating-point pair,
7868 vector and matrix registers.
7869 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
7870 vector modes into account.
7871 * config/sh/sh.md (movv2sf): Split move between registers into
7873 (movv4sf, movv16sf): Introduce insns that get split only after
7875 * config/sh/shmedia.h: Fix Copyright dates.
7876 * config/sh/ushmedia.h: Likewise. Move loop counter
7877 declarations into conditionals that uses them.
7878 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
7880 * config/sh/sshmedia.h: Fix Copyright dates.
7881 (sh_media_PUTCFG): Fix constraints.
7882 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
7883 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
7884 ptrmemfunc_vbit_in_delta for SH5.
7885 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
7886 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
7887 * invoke.texi: Likewise.
7888 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
7889 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
7890 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
7891 GCC_pop_shmedia_regs_nofpu): New global symbols.
7892 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
7893 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
7894 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
7895 compact function with nonlocal labels.
7896 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
7897 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
7898 (initial_elimination_offset): Account for their stack space.
7899 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
7900 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
7901 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
7902 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
7903 least one of the operands to be a register.
7904 (movv2sf): Likewise. Renamed to movv2sf_i.
7905 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
7906 prepare_move_operands() before emitting SHmedia insns.
7907 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
7908 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
7909 Don't save nor initialize r12. Don't mis-align the stack.
7910 Pad the code with a nop.
7911 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
7913 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
7914 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
7915 [__SHMEDIA__]: Implement.
7916 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
7917 * config/sh/sh.md: Set latency of `pt' closer to reality.
7918 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
7919 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
7920 Set move, load and store type attributes.
7921 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
7922 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
7924 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
7925 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
7926 * config/sh/sh.c (sh_media_register_for_return): New function.
7927 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
7928 branch-target register.
7929 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
7930 * config/sh/sh.md (return_media_i): Use any call-clobbered
7931 branch-target register.
7932 (return_media): If r18 wasn't copied in the prologue, copy it
7934 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
7935 Clear class FP0_REGS.
7936 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
7938 2001-03-08 DJ Delorie <dj@redhat.com>
7939 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
7940 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
7941 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
7942 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
7943 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
7944 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
7945 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
7946 return value correctly for call_cookie.
7947 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
7948 * config/sh/crt1.asm (start): Modified so as to call
7949 ___setup_argv_and_call_main.
7950 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
7951 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
7953 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
7954 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
7955 (STRIP_NAME_ENCODING): Use it.
7956 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
7957 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
7958 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
7959 prepare_scc_operands().
7960 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
7961 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
7962 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
7963 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
7964 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
7965 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
7966 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
7967 used in shcompact_incoming_args.
7968 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
7970 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
7972 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
7974 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
7975 Simplify. Adjust. Add sanity check.
7976 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
7978 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
7980 (udivsi3, divsi3): Use them.
7981 (force_mode_for_call): New insn.
7982 (call, call_value, sibcall_value): Emit it before SHcompact
7984 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
7985 * config/sh/sh.md (call, call_value, sibcall): Make sure the
7986 call cookie is non-NULL before taking its value.
7987 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
7988 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
7989 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
7990 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
7992 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
7993 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
7994 temporary for stack adjusts. Use MACL and MACH to pass
7995 arguments to shcompact_incoming_args.
7996 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
7998 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
7999 (nested_trampoline): Load static chain address into r1.
8000 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
8001 2001-01-07 Alexandre Oliva <aoliva@redhat.com
8002 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
8003 fp_arith_reg_operand().
8004 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
8005 * config/sh/sh.md (casesi): Sign-extend the first two operands,
8006 and use signed compares for them.
8007 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
8008 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
8009 ones properly aligned.
8010 (find_barrier): Account for extra alignment needed for 8-byte wide
8012 (machine_dependent_reorg): Require a label for the second 4-byte
8013 constant after an 8-byte one.
8014 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
8016 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
8017 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
8018 last_float when switching float modes.
8019 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
8020 auto-increment for general-purpose registers.
8021 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
8023 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
8025 * config/sh/sh.c (sh_builtin_saveregs): Support using all
8026 registers for varargs.
8027 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
8028 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
8029 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
8030 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
8031 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
8032 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
8033 call_cookie accordingly.
8034 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
8035 (SHCOMPACT_BYREF): Likewise.
8036 (SHCOMPACT_FORCE_ON_STACK): New macro.
8037 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
8038 (sh_builtin_saveregs): Likewise.
8039 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8040 shcompact_incoming_args): Use new shift values. Support
8041 sequences of consecutive and non-consecutive pushes/pops.
8042 * config/sh/sh.md (return): Don't explicitly use PR_REG.
8043 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
8044 * config/sh/sh.h (TEXT_SECTION): Define.
8045 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
8046 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
8047 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
8048 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
8049 return values on FPU-enabled SHmedia.
8050 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
8051 FPU-enabled SHmedia.
8052 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
8053 value is returned in a non-FP reg and is not returned by
8055 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
8057 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
8058 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
8059 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
8060 quad-aligned to be passed by callee-copy reference.
8061 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
8062 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
8063 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
8064 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
8065 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
8066 copying low-numbered FP regs to r7 and r8.
8067 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
8068 FP regs to general-purpose regs only if the copy was passed on the
8070 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
8071 copying FP reg to r9.
8072 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
8073 copy FP regs to general-purpose regs only in outgoing calls.
8074 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
8075 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
8077 * config/sh/sh.h (struct sh_args): Document all fields.
8078 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
8079 passed partially on the stack should not consider making
8081 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
8082 stack_regs only for incoming calls. When passing FP args,
8083 make sure there are FP regs available before modifying
8085 (SHCOMPACT_BYREF): Pass double args in general-purpose
8086 registers by reference.
8087 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
8088 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
8089 attempt to generate sibcalls if the caller got any arguments
8091 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
8092 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
8093 to 8-byte boundaries.
8094 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
8095 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
8096 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
8097 stored in the stack.
8098 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
8099 for the offsets to have the ISA bit set.
8100 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
8101 invocation. Use beq instead of bgt to mark end of sequence of
8103 (shcompact_incoming_args): Fix store of r2. Use beq instead of
8104 bgt to mark end of sequence of stores.
8105 * config/sh/sh.c (arith_operand): Don't check whether
8106 CONST_OK_FOR_J for now.
8107 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
8108 instead of long for conversion.
8109 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
8110 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
8111 before passing it to fprintf.
8112 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
8113 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
8114 Call set_fpscr before reading/writing SR.
8115 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
8117 * config/sh/lib1funcs.asm: Add `.align 2' directives before
8119 (FMOVD_WORKS): Define on SH5 with FPU.
8120 (set_fpscr): Define on SH5. Remove separate _fpscr_values
8122 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
8124 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
8125 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
8127 (ia_main_table): Ditto.
8128 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
8129 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8130 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
8131 the definitions from sh.h.
8132 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
8134 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
8135 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
8136 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
8137 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
8138 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
8139 Increment LABEL_NUSES.
8141 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
8143 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
8145 * config/sh/elf.h (SIZE_TYPE): Likewise.
8146 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
8147 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8148 shcompact_incoming_args): Load switch table addresses using
8150 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
8151 (NO_BUILTIN_SIZE_TYPE): Define.
8152 (SIZE_TYPE): Don't define.
8153 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
8154 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
8155 definition of __SH5__=32 for -m5-compact-nofpu.
8156 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
8158 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
8159 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
8160 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
8161 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
8162 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
8163 (INSN_LENGTH_ALIGNMENT): Likewise.
8164 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
8165 * config/sh/sh.md (call, call_value, sibcall): Simplify
8166 copying of non-branch-target register.
8167 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
8168 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
8169 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
8170 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
8171 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
8172 floating-point values as structs.
8173 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
8174 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
8175 general-purpose register.
8176 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
8177 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
8178 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
8179 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
8180 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
8181 (ENCODE_SECTION_INFO): Enclose variables and constants in
8183 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
8184 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
8185 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
8186 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
8187 only for LABEL_REFs. For SYMBOL_REFs, prepend
8188 SH_DATALABEL_ENCODING to the symbol name.
8189 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
8191 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
8192 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
8194 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
8195 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
8196 (DATALABEL_REF_P): Don't require CONST.
8197 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
8199 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
8200 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
8202 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
8203 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
8204 Use shallow_copy_rtx and PUT_MODE to change the mode of
8205 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
8206 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
8207 on SHmedia using GENERAL_REGs.
8208 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
8209 bltu_media_i): Fix reversion of conditions.
8210 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
8211 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
8212 * config/sh/sh.c (output_far_jump): Save r13 in macl.
8213 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
8214 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
8215 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
8216 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
8217 (GCC_nested_trampoline): Likewise.
8218 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
8219 * config/sh/sh.c (gen_datalabel_ref): Define.
8220 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
8221 (INITIALIZE_TRAMPOLINE): Likewise.
8222 (TRAMPOLINE_ADJUST_ADDRESS): Define.
8223 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
8224 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
8225 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
8226 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
8227 (ic_invalidate): Adjust for SH5.
8228 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
8229 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
8231 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
8232 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
8233 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
8234 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
8235 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
8236 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
8237 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
8238 * config/sh/sh.c (target_reg_operand): Match only target-branch
8239 registers and pseudos that aren't virtual registers.
8240 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
8241 Copy operands that don't match target_reg_operand to pseudos.
8242 (call_media, call_value_media, sibcall_media): Use
8243 target_reg_operand instead of target_operand.
8244 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
8245 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
8246 * config/sh/sh.c (target_reg_operand): Match hardware registers
8247 other than branch-target registers.
8248 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
8249 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
8250 (fpscr_values) [SH5 == 32]: Define.
8251 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
8252 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
8253 Handle function addresses coming in SUBREGs.
8254 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
8255 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8256 shcompact_return_trampoline): Use datalabel where appropriate.
8257 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
8258 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
8259 general-purpose register to copy one branch-target register to
8261 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
8262 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
8263 SYMBOL_REFs with VOIDmode.
8264 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
8265 bltu_media_i): New insns.
8266 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
8267 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
8268 (INIT_CUMULATIVE_ARGS): Likewise.
8269 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
8270 * machmode.def (V16SFmode): New mode.
8271 * c-common.c (type_for_mode): Support V2SF and V16SF.
8272 * tree.c (build_common_tree_nodes_2): Likewise.
8273 * tree.h (tree_index): Likewise.
8274 * calls.c (emit_call_1): Take args_so_far. Adjust all
8275 callers. Introduce CALL_POPS_ARGS.
8276 * tm.texi (CALL_POPS_ARGS): Document.
8277 * config/sh/crt1.asm: Implement in SHmedia mode.
8278 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
8279 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
8280 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
8281 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
8282 Implement divsi and udivsi in SHmedia mode. Introduce
8283 SHcompact trampolines.
8284 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
8286 (regno_reg_class): Rewrite.
8287 (fp_reg_names): Remove.
8288 (sh_register_names, sh_additional_register_names): New.
8289 (print_operand): Added `u'. Support SUBREGs in addresses.
8290 Add parentheses around shifted CONSTs.
8291 (output_file_start): Output .mode and .abi directives.
8292 (shiftcosts, addsubcosts, multcosts): Adjust.
8293 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
8294 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
8295 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
8296 bytes, not registers. Take into account the need for the
8297 SHcompact incoming args trampoline. Adjust all callers.
8298 (sh_expand_prologue): Take stack_regs into account. Call
8299 incoming args trampoline. Keep stack aligned as per SH5 ABI.
8300 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
8301 stack aligned as per SH5 ABI.
8302 (sh_builtin_saveregs): Support SH5 ABI.
8303 (sh_build_va_list, sh_va_start): Likewise.
8304 (initial_elimination_offset): Take alignment into account.
8305 Compute location of PR according to the SH5 stack frame.
8306 (arith_reg_operand): Reject branch-target registers.
8307 (shmedia_6bit_operand): New.
8308 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
8309 (target_reg_operand): Match DImode only. Accept SUBREGs.
8310 (target_operand): New.
8311 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
8312 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
8313 SIBCALL_REGS for SHmedia.
8314 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
8315 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
8316 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
8317 (TARGET_SWITCHES): New SH5 flags.
8318 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
8319 VALID_REGISTER_P to disable unsupported registers.
8320 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
8321 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
8322 (FUNCTION_ARG_PADDING): Define.
8323 (FASTEST_ALIGNMENT): Adjust.
8324 (SH_REGISTER_NAMES_INITIALIZER): New.
8325 (sh_register_names): Declare.
8326 (DEBUG_REGISTER_NAMES): Define.
8327 (REGISTER_NAMES): Define based on sh_register_names.
8328 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
8329 (sh_additional_register_names): Declare.
8330 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
8331 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
8332 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
8333 (REGISTER_NATURAL_MODE): Define.
8334 (FIRST_PSEUDO_REGISTER): Adjust.
8335 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
8336 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
8337 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
8338 (VECTOR_MODE_SUPPORTED_P): Define.
8339 (REG_CLASS_CONTENTS): Adjust.
8340 (SMALL_REGISTER_CLASSES): Adjust.
8341 (REG_ALLOC_ORDER): Adjust.
8342 (INDEX_REG_CLASS): Adjust.
8343 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
8344 (CONST_OK_FOR_LETTER_P): Adjust.
8345 (PREFERRED_RELOAD_CLASS): Adjust.
8346 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
8347 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
8348 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
8349 (FIRST_FP_PARM_REG): Adjust.
8350 (CALL_POPS_ARGS): Define.
8351 (FUNCTION_ARG_REGNO_P): Adjust.
8352 (struct sh_args): New fields.
8353 (GET_SH_ARG_CLASS): Adjust.
8354 (INIT_CUMULATIVE_ARGS): Adjust.
8355 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
8356 (FUNCTION_ARG_ADVANCE): Adjust.
8357 (FUNCTION_ARG): Adjust.
8358 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
8359 (FUNCTION_ARG_CALLEE_COPIES): Define.
8360 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
8361 (STRICT_ARGUMENT_NAMING): Define.
8362 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
8363 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
8364 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
8365 (SETUP_INCOMING_VARARGS): Adjust.
8366 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
8367 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
8368 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
8369 (SUBREG_OK_FOR_INDEX_P): Adjust.
8370 (EXTRA_CONSTRAINT_S): Update.
8371 (EXTRA_CONSTRAINT_T): New.
8372 (EXTRA_CONSTRAINT): Adjust.
8373 (GO_IF_LEGITIMATE_INDEX): Adjust.
8374 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
8375 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
8377 (MAX_MOVE_MAX): Define.
8379 (CONST_COSTS): Adjust.
8380 (REGISTER_MOVE_COST): Adjust.
8381 (BRANCH_COST): Adjust.
8382 (TEXT_SECTION_ASM_OP): Adjust.
8383 (DBX_REGISTER_NUMBER): Adjust.
8384 (ASM_OUTPUT_DOUBLE_INT): New.
8385 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
8386 (PREDICATE_CODES): Adjust.
8387 (PROMOTE_MODE): Adjust.
8388 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
8389 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
8390 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
8391 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
8392 (DR0_REG, DR2_REG, DR4_REG): Renumber.
8393 (TR0_REG, TR1_REG, TR2_REG): New.
8394 (XD0_REG): Renumber.
8395 (UNSPEC_COMPACT_ARGS): New.
8396 (type): Added pt and ptabs.
8397 (length): Default to 4 on SHmedia. Default pt length to 12
8398 and 20 on SHmedia32 and SHmedia64, respectively.
8399 (pt): New function unit.
8400 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
8401 Add whitespace between operands of SHmedia instructions.
8403 (adddi3_media, addsi3_media): Adjust constraints.
8404 (subsi3) [SHmedia]: Force operand 1 into a register.
8405 (udivsi3_i1_media, udivsi3_i4_media): New.
8406 (udivsi3): Support SHmedia.
8407 (divsi3_i1_media, divsi3_i4_media): New.
8408 (divsi3): Support SHmedia.
8409 (anddi3, iordi3, xordi3): Adjust constraints.
8410 (zero_extendhidi2, zero_extendqidi2): New.
8411 (extendsidi2, extendhidi2, extendqidi2): New.
8412 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
8413 (pop_e, pop_fpul, pop_4): Likewise.
8414 (movsi_media): Support FP and BT registers.
8415 (movsi_media_nofpu): New. Adjust splits to DImode.
8416 (lduw, ldub): Renamed to zero_extend* above.
8417 (movqi_media): Fix typo.
8418 (movdi_media): Support FP and BT registers.
8419 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
8420 (movdi_const_32bit): New.
8421 (shori_media): Require immediate operand. Use `u' for output.
8422 (movdf_media, movsf_media): Simplified.
8423 (movdf_media_nofpu, movsf_media_nofpu): New.
8424 (movdf, movsf): Adjust
8425 (movv2sf, movv2sf, movv16sf): New.
8426 (beq_media, beq_media_i): Adjust constraints. Don't use
8427 scratch BT register.
8428 (bne_media, bne_media_i): Likewise.
8429 (bgt_media, bgt_media_i): Likewise.
8430 (bge_media, bge_media_i): Likewise.
8431 (bgtu_media, bgtu_media_i): Likewise.
8432 (bgeu_media, bgeu_media_i): Likewise.
8433 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
8434 bunordered): Emit jump insn. Force operands to registers when
8436 (jump_media, jump): Simplify.
8437 (call_compact, call_compact_rettramp): New.
8438 (call_value_compact, call_value_compact_rettramp): New.
8439 (call_media, call_value_media): Simplify.
8440 (sibcall_compact, sibcall_media): New.
8441 (call, call_value): Adjust for SHmedia and SHcompact.
8442 (sibcall, sibcall_value, untyped_call): Likewise.
8443 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
8444 (indirect_jump): Adjust for SHmedia.
8445 (casesi_jump_media): New.
8446 (nop): Re-enable for SHmedia.
8447 (call_site): Restrict to SH1.
8448 (casesi): Adjust for SHmedia.
8449 (casesi_shift_media, casesi_load_media): New.
8450 (return): Explicitly use PR register. Call return trampoline
8452 (return_i): Explicitly use PR register.
8453 (shcompact_return_tramp, shcompact_return_tramp_i): New.
8454 (return_media): Adjust.
8455 (shcompact_incoming_args): New.
8457 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
8458 (movstrsi): Disable on SH5.
8459 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
8460 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
8461 (subsf3, subsf3_media): Likewise.
8462 (mulsf3, mulsf3_media, mac_media): Likewise.
8463 (divsf3, divsf3_media): Likewise.
8464 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
8465 (floatsisf2, fux_truncsfsi2): Likewise.
8466 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
8468 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
8469 (cmpunsf_media, cmpsf): Likewise.
8470 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
8471 (abssf2, abssf2_media): Likewise.
8472 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
8473 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
8474 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
8475 (floatsidf2, fix_truncdfsi2): Likewise.
8476 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
8478 (cmpeqdf_media, cmpgtdf_media): Likewise.
8479 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
8480 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
8481 (absdf2, absdf2_media): Likewise.
8482 (extendsfdf2, extendsfdf2_media): Likewise.
8483 (truncsfdf2, truncsfdf2_media): Likewise.
8484 * config/sh/sh64.h: New file.
8485 * config/sh/t-sh64: New file.
8486 * config/sh/shmedia.h: New file.
8487 * config/sh/ushmedia.h: New file.
8488 * config/sh/sshmedia.h: New file.
8489 * configure.in: Added sh64-*-elf.
8490 * configure: Rebuilt.
8491 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
8492 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
8493 (reg_class_from_letter): Use `b' for TARGET_REGS.
8494 (print_operand): Support `%M', `%m', `AND' and
8495 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
8496 (andcosts): Adjust for SHmedia.
8497 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
8499 (target_reg_operand): New function.
8500 * config/sh/sh-protos.h (target_reg_operand): Declare.
8501 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
8502 FP registers on SH5.
8503 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
8505 (TARGET_REGISTER_P): New macro.
8506 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
8507 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
8508 (EXTRA_CONSTRAINT_S): New macro.
8509 (EXTRA_CONSTRAINT): Adjust.
8510 (FLOAT_TYPE_SIZE): Define to 32.
8511 (Pmode): DImode on SHmedia.
8512 (CONST_COSTS): Adjust for SHmedia literals.
8513 (PREDICATE_CODES): Added target_reg_operand.
8514 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
8515 * config/sh/sh.md: Remove all attrs from SHmedia insns.
8516 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
8517 (cmpdi): Accept SHmedia.
8518 (movdicc_false, movdicc_true): New insns.
8519 (movdicc): New expand.
8520 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
8522 (addsi3_media): Match `S' constraint.
8523 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
8524 (negdi2): Expand for SHmedia.
8525 (one_cmpldi2): New expand.
8526 (zero_extendsidi2): Change from expand to insn.
8527 (extendsidi2): Add constraints.
8528 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
8529 LD/ST address. Fix SI immediate loading split.
8530 (movhi_media, movqi_media, lduw, ldub): New insns.
8531 (movhi, movqi): Accept SHmedia.
8532 (shori_media, movdi_media): Relax input constraints. Split
8534 (movdf_media, movsf_media): New insn. New split to movdi.
8535 (movdf, movsf): Match on SHmedia.
8536 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
8537 bgeu_media): New insns and splits. New insns with `_i' suffix.
8538 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
8539 (bunordered): New expand.
8540 (jump_compact): Renamed from `jump'.
8541 (jump_media): New insn.
8543 (call_media, call_value_media): New insns.
8544 (call, call_value): Adjust.
8545 (indirect_jump_compact): Renamed from `indirect_jump'.
8546 (indirect_jump_media): New insn.
8547 (indirect_jump): New expand.
8548 (untyped_call, return): Accept SHmedia.
8549 (return_media): New insn.
8550 (prologue, epilogue, blockage): Accept SHmedia.
8551 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
8552 (sunordered): New expand.
8553 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
8554 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
8555 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
8556 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
8557 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
8558 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
8559 abssf2_media): New insns.
8560 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
8561 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
8562 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
8563 floatdidf2, floatsidf2_media, fix_truncdfdi2,
8564 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
8565 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
8566 absdf2_media): New insns.
8567 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
8568 (extendsfdf2_media, truncdfsf2_media): New insns.
8569 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
8570 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
8571 * config/sh/sh.h (CONST_OK_FOR_J): Document.
8572 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
8573 * config/sh/sh.md (adddi3): New expand.
8574 (adddi3_media, adddi3z_media): New insns.
8575 (adddi3_compact): Renamed from adddi3.
8576 (addsi3_media): Use add.l r63 to add constant zero.
8577 (subdi3): New expand.
8578 (subdi3_media): New insn.
8579 (subdi3_compact): Renamed from subdi3.
8580 (mulsidi3): New expand.
8581 (mulsidi3_media): New insn.
8582 (mulsidi3_compact): Renamed from mulsidi3.
8583 (umulsidi3): New expand.
8584 (umulsidi3_media): New insn.
8585 (umulsidi3_compact): Renamed from umulsidi3.
8586 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
8587 (ashlsi3, ashrsi3, lshrsi3): Use them.
8588 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
8589 (ashldi3, ashrdi3, lshrdi3): Use them.
8590 (zero_extendsidi2): New expand.
8591 (extendsidi2): New insn.
8592 (movsi_media): New insn. Split to movdi to load constants.
8593 (movsi): Enable for shmedia.
8594 (movdi_media): New insn. Use shori_media to load wide constants.
8595 (short_media): New insn.
8596 (movdi): Enable for shmedia.
8597 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
8598 * config/sh/sh.h (CPP_SPEC): Added `m5'.
8599 (SUBTARGET_CPP_SPEC): Added `!m5'.
8600 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
8601 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
8602 to all other SH variants.
8603 (TARGET_DEFAULT): Set to SH1_BIT.
8604 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
8605 (BITS_PER_WORD): Raise to 64 on shmedia.
8606 (MAX_BITS_PER_WORD): Change to 64.
8607 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
8608 (INT_TYPE_SIZE): Keep as 32.
8609 (UNITS_PER_WORD): Raise to 8 on shmedia.
8610 (MIN_UNITS_PER_WORD): Keep as 4.
8611 (POINTER_SIZE): Raise to 64 on shmedia.
8612 (CONST_OK_FOR_J): New macro.
8613 (CONST_OK_FOR_LETTER_P): Use it.
8614 (processor_type): Add PROCESSOR_SH5.
8615 * config/sh/sh.md: Conditionalize all expands, insns and
8616 splits to TARGET_SH1.
8618 (addsi3_compact): Renamed from...
8619 (addsi3): Now an expand.
8620 (addsi3_media, subsi3_media): New insns.
8621 (subsi3): Don't negate constants with SHmedia.
8623 * hooks.c: New file.
8624 * hooks.h: New file.
8625 * Makefile.in (HOOKS_H): New.
8626 (TARGET_DEF_H): Added $(HOOKS_H).
8627 (OBJS): Added hooks.o.
8628 (cfgcleanup.o, bb-reorder.o): Added target.h.
8629 (hooks.o): Added dependencies.
8630 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
8631 (TARGET_INITIALIZER): this.
8632 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
8633 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
8634 * bb-reorder.c: Include target.h.
8635 (reorder_basic_blocks): Skip if cannot modify jumps.
8636 * cfgcleanup.c: Include target.h.
8637 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
8639 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8641 * config/mips/mips.md (casesi_internal, casesi_internal_di):
8642 Protect jump delay slot instructions with .set noreorder and
8645 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8647 * config/mips/mips.md (casesi_internal_di): Calculate
8648 the index into the target offset table correctly.
8650 2002-02-08 Richard Henderson <rth@redhat.com>
8652 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
8653 * final.c (output_addr_const): Accept and discard SUBREG.
8654 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
8655 mark them unknown instead.
8656 (simplify_subtraction): Handle RTX_UNKNOWN.
8657 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
8659 2002-02-08 David Edelsohn <edelsohn@gnu.org>
8661 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
8663 2002-02-08 Richard Henderson <rth@redhat.com>
8665 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
8667 2002-02-08 Andreas Jaeger <aj@suse.de>
8669 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
8670 * config/i386/t-linux64: New file.
8672 2002-02-08 Jakub Jelinek <jakub@redhat.com>
8674 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
8675 * c-parse.in (compstmt): Clear last_expr_type.
8677 2002-02-07 Richard Henderson <rth@redhat.com>
8679 * loop.c (strength_reduce): Sink final_value when not
8682 2002-02-07 David O'Brien <obrien@FreeBSD.org>
8684 * config/sparc/freebsd.h: Fix mismatched spec {.
8686 2002-02-07 Richard Henderson <rth@redhat.com>
8688 * cfgrtl.c: Include recog.h and insn-config.h.
8689 (keep_with_call_p): Fix general_operand invocation.
8690 * Makefile.in (cfgrtl.o): Update dependencies.
8692 2002-02-07 Kazu Hirata <kazu@hxi.com>
8694 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
8695 comment. Accept HImode only if TARGET_H8300.
8697 2002-02-07 Eric Christopher <echristo@redhat.com>
8699 * config/mips/crtn.asm: Cleanup #ifdefs.
8701 2002-02-07 Eric Christopher <echristo@redhat.com>
8703 * config/mips/crti.asm: Add changes for mips16. mips16 uses
8704 register 7 as RA instead of $31.
8705 * config/mips/crtn.asm: Ditto.
8706 * config/mips/mips.c (mips_move_2words): Add case for
8707 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
8708 (compute_frame_size): Fix typo.
8709 (save_restore_insns): Ditto. Make documentation about using
8710 register $7 as return register more precise.
8711 (mips_expand_epilogue): Fix comment. Add code to work around not
8712 being able to add to the stack pointer directly.
8713 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
8714 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
8717 2002-02-07 Tom Rix <trix@redhat.com>
8719 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
8720 immediates in ldu and stdu DS opcode field.
8721 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
8722 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
8723 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
8725 2002-02-07 Jeff Sturm <jsturm@one-point.com>
8727 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
8728 offset for stack bias.
8730 2002-02-07 H.J. Lu <hjl@gnu.org>
8732 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
8734 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
8736 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
8738 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
8740 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
8741 * i386.c (x86_order_regs_for_local_alloc): New global function.
8742 * i386.h (REG_ALLOC_ORDER): CLeanup.
8743 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
8745 2002-02-07 Richard Henderson <rth@redhat.com>
8747 PR optimization/2463
8748 * alias.c (find_base_value): Recall base values for fixed hard regs.
8749 * loop.c (loop_regs_update): Don't use single_set on non-insns.
8751 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
8753 * config/mips/mips.md (define_delay) [mips16]: Adjust required
8756 2002-02-06 Richard Henderson <rth@redhat.com>
8759 * stmt.c (resolve_operand_name_1): Take more care with mixed
8760 named and unnamed operands.
8762 2002-02-06 Janis Johnson <janis187@us.ibm.com>
8763 Jan Hubicka <jh@suse.cz>
8765 * loop.c (remove_constant_addition): Avoid clobbering a shared
8768 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
8770 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
8771 * config/s390/t-linux64: New file.
8772 * config/s390/libgcc-glibc.ver: New file.
8774 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
8776 * config/s390/linux64.h: Delete file.
8777 * config/s390/s390x.h: New file.
8778 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
8779 as target header file.
8780 * config/s390/linux.h (TARGET_VERSION): Define depending on
8781 DEFAULT_TARGET_64BIT.
8782 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
8783 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
8784 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
8785 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
8786 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
8787 (EXTRA_SPEC): New define.
8788 * config/s390/s390.h (TARGET_VERSION): Define depending on
8789 DEFAULT_TARGET_64BIT.
8790 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
8792 2002-02-06 Jason Merrill <jason@redhat.com>
8794 * c-decl.c (finish_function): Warn about a non-void function with
8795 no return statement and no abnormal exit.
8796 (current_function_returns_abnormally): New variable.
8797 (start_function): Clear it.
8798 (struct c_language_function): Add returns_abnormally.
8799 (push_c_function_context): Save it.
8800 (pop_c_function_context): Restore it.
8801 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
8802 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
8803 an explicit return type.
8804 * c-tree.h: Declare current_function_returns_abnormally.
8805 (C_FUNCTION_IMPLICIT_INT): New macro.
8806 * c-typeck.c (build_function_call): Set it.
8807 (c_expand_return): Set current_function_returns_value even if the
8810 2002-02-06 Jakub Jelinek <jakub@redhat.com>
8813 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
8814 unsafe for reevaluation.
8816 2002-02-06 Jakub Jelinek <jakub@redhat.com>
8819 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
8820 EXPR_STMT, but COMPOUND_STMT, recurse into it.
8822 2002-02-06 Richard Henderson <rth@redhat.com>
8824 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
8825 be a general_operand. Dest for function value must be a pseudo.
8827 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8829 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
8830 as SYMBOL_REFs from the constant pool.
8832 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
8834 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
8835 passed by invisible reference.
8837 2002-02-05 Richard Henderson <rth@redhat.com>
8839 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
8841 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
8843 Implement using "base addresses" in insn operands as default.
8844 * config/mmix/mmix.c (mmix_conditional_register_usage): if
8845 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
8846 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
8847 used to read the rtx value.
8848 (mmix_target_asm_function_epilogue): Fix spacing.
8849 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
8850 (mmix_legitimate_address): Ditto.
8851 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
8852 should be loaded with a GETA insn. Don't allocate needless extra
8853 char for nul termination and fix misleading comment.
8854 (mmix_print_operand_address): Handle constants if
8855 TARGET_BASE_ADDRESSES.
8856 (mmix_output_register_setting): Use base addressing if
8857 TARGET_BASE_ADDRESSES and the number of insns is 3.
8858 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
8859 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
8860 to use R as constraint, add LDA to match s.
8861 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
8862 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
8863 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
8864 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
8865 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
8866 order with other fixed registers.
8867 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
8868 other parameter/call-clobbered registers.
8869 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
8870 -mbase-addresses, -mno-base-addresses.
8871 (MMIX Options): Ditto.
8873 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
8875 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
8877 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
8879 * config/rs6000/altivec.h: Change elem to _S_elem.
8881 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
8883 * config/netbsd.h (WCHAR_TYPE): Define.
8884 (WCHAR_TYPE_SIZE): Ditto.
8886 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
8887 (WCHAR_UNSIGNED): Ditto.
8888 (WCHAR_TYPE_SIZE): Ditto.
8890 * config/arm/netbsd.h: Likewise.
8891 * config/i386/netbsd-elf.h: Likewise.
8892 * config/i386/netbsd.h: Likewise.
8893 * config/m68k/netbsd-elf.h: Likewise.
8894 * config/m68k/netbsd.h: Likewise.
8895 * config/ns32k/netbsd.h: Likewise.
8896 * config/sparc/netbsd.h: Likewise.
8897 * config/vax/netbsd.: Likewise.
8899 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
8901 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
8902 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
8903 (TARGET_INITIALIZER): this.
8904 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
8905 (BITFIELD_NBYTES_LIMITED): Markup fix.
8906 * tree.h (default_ms_bitfield_layout_p): Declare.
8907 (record_layout_info): Added prev_field.
8908 * tree.c (default_ms_bitfield_layout_p): New fn.
8909 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
8910 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
8911 * stor-layout.c: Include target.h.
8912 (start_record_layout): Initialize prev_field.
8913 (place_field): Handle MS bit-field layout, and disregard
8914 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
8915 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
8916 * Makefile.in (stor-layout.o): Adjust dependencies.
8918 2002-02-05 Jason Merrill <jason@redhat.com>
8920 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
8922 2002-02-05 Andreas Jaeger <aj@suse.de>
8924 * crtstuff.c: Fix comments.
8926 2002-02-05 Richard Henderson <rth@redhat.com>
8929 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
8930 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
8933 * config/mips/mips.c (function_arg): Handle TImode.
8934 (function_arg_advance): Likewise.
8936 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8938 * config/rs6000/altivec.h (vec_step_help): Rename to
8941 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8943 * config/rs6000/altivec.h: Fix typos.
8945 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
8947 * config/arm/netbsd.h: Correct a comment.
8949 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8951 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
8952 building void typed builtins.
8954 * config/rs6000/altivec.h (vec_ld*): Fix typos.
8955 (vec_step): Implement for C++.
8957 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8959 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
8961 2002-02-04 Richard Henderson <rth@redhat.com>
8963 * combine.c (nonzero_bits): Re-introduce special case for
8964 sp/fp/ap wrt REGNO_POINTER_ALIGN.
8966 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8968 * doc/extend.texi: Warn about unsupported usage of altivec
8971 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
8972 (altivec_predicate_*): New.
8974 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
8975 Add C++ version of vec_*() functions.
8977 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
8978 (bdesc_2arg): Remove altivec predicates.
8979 (altivec_expand_builtin): Handle predicates.
8980 (altivec_init_builtins): Handle predicates.
8981 (altivec_expand_predicate_builtin): New.
8983 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8985 * pa.c (DO_FRAME_NOTES): Move forward.
8986 (store_reg): Revise handling of frame notes.
8987 (load_reg): Likewise.
8988 (set_reg_plus_d): Likewise.
8989 (hppa_expand_prologue): Likewise.
8990 (hppa_expand_epilogue): Likewise.
8992 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8994 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
8996 2002-02-04 Jakub Jelinek <jakub@redhat.com>
8998 PR c/4475, c++/3780:
8999 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
9000 * c-common.h (SWITCH_TYPE): Define.
9001 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
9002 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
9003 Rename spareness variable to sparseness.
9004 (expand_end_case_type): Renamed from expand_end_case, use orig_type
9005 if non-NULL instead of TREE_TYPE (orig_index).
9006 * tree.h (expand_end_case_type): Renamed from expand_end_case.
9007 (expand_end_case): Define using expand_end_case_type.
9008 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
9009 to expand_end_case_type.
9010 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
9012 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9014 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
9015 (BIGGEST_ALIGNMENT): Change to 128.
9017 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9019 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
9021 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9023 * pa.md (call_internal_reg_64bit): Remove unused variable.
9025 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
9027 * config/arm/arm.h (machine_function): Add uses_anonymous_args
9029 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
9030 * config/arm/arm.c (current_function_anonymous_args): Delete,
9031 replace uses with cfun->machine->uses_anonymous_args.
9032 (arm_reorg): Do not reset uses_anonymous_args.
9034 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
9035 any geenral register.
9037 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
9039 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
9042 2002-02-04 Richard Henderson <rth@redhat.com>
9044 * combine.c (force_to_mode): Remove STACK_BIAS code.
9045 (nonzero_bits): Likewise. Replace sp/fp special case with
9046 REGNO_POINTER_ALIGN.
9048 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
9049 (HARD_FRAME_POINTER_REGNUM): New.
9050 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
9051 (FIXED_REGS, CALL_USED_REGS): Update.
9052 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
9053 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
9054 (HARD_REGNO_NREGS): Update for SFP.
9055 (STACK_POINTER_OFFSET): Include bias here ...
9056 (FIRST_PARM_OFFSET): ... not here.
9057 (STACK_BIAS): Remove.
9058 (INIT_EXPANDERS): New.
9059 (STARTING_FRAME_OFFSET): Do not include bias.
9060 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
9061 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
9062 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
9063 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
9064 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
9065 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
9066 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
9067 (MUST_SAVE_REGISTER): Likewise.
9068 (sparc_flat_function_prologue): Likewise.
9069 (sparc_flat_function_epilogue): Likewise.
9070 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
9071 (sparc_init_modes): SFP is GENERAL_REGS.
9072 (sparc_builtin_saveregs): SFP does not have bias applied.
9074 2002-02-04 Richard Henderson <rth@redhat.com>
9076 * config/alpha/alpha.c (current_function_is_thunk): Don't check
9077 current_function_is_thunk.
9078 (alpha_sa_mask): Distinguish between current_function_is_thunk
9079 called from ASM_OUTPUT_MI_THUNK and not.
9080 (alpha_does_function_need_gp): Thunks always need gp.
9081 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9082 (alpha_output_mi_thunk_osf): New.
9083 * config/alpha/alpha-protos.h: Update.
9084 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
9086 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
9088 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
9089 function types, not when they're taken away.
9091 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
9093 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
9094 CODE_LABEL and jump table when replacing a table jump with a
9097 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9099 * config/s390/s390-protos.h (legitimize_la_operand,
9100 s390_secondary_input_reload_class, s390_plus_operand,
9101 s390_expand_plus_operand): Add prototypes.
9103 config/s390/s390.c (s390_secondary_input_reload_class,
9104 s390_plus_operand, s390_expand_plus_operand): New functions.
9106 (struct s390_address): New member 'pointer'.
9107 (s390_decompose_address): Compute it.
9108 (legitimate_la_operand_p): Use it.
9109 (legitimize_la_operand): New function.
9110 (movti, movdi, movdf splitters): Call it.
9112 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
9113 (PREDICATE_CODES): Add s390_plus_operand.
9115 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
9116 (la_ccclobber): Allow GENERAL_REGS as output operand.
9118 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
9119 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
9120 (*la_64, *la_31, reload_indi, reload_insi): ... these.
9122 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9124 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
9125 register names for regular asm () construct.
9127 2002-02-04 Jakub Jelinek <jakub@redhat.com>
9129 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
9132 2002-02-04 Jakub Jelinek <jakub@redhat.com>
9134 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
9137 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
9139 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
9140 constant pool to be identical by string address and index.
9142 2002-02-04 Anthony Green <green@redhat.com>
9144 * output.h (SECTION_OVERRIDE): Define.
9145 * varasm.c (named_section): Obey SECTION_OVERRIDE.
9147 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
9149 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
9150 by existing arm*-*-netbsd* (a.out) target.
9151 (ns32k-*-netbsdelf*): Likewise.
9152 (sparc-*-netbsdelf*): Likewise.
9153 (vax-*-netbsdelf*): Likewise.
9155 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
9157 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
9158 headers and libobjc headers.
9160 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
9162 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
9163 (_mingw.h): Remove duplicate include.
9165 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
9167 * config.gcc: Set cpu_type to m68k for 68010, as well.
9168 (m68010-*-netbsdelf*): New...
9169 (m68k*-*-netbsdelf*): ...targets.
9170 * config/m68k/netbsd-elf.h: New file.
9172 2002-02-02 Kazu Hirata <kazu@hxi.com>
9174 * config/h8300/h8300.c (hand_list): Move inside function_arg.
9176 2002-02-02 Kazu Hirata <kazu@hxi.com>
9178 * config/h8300/h8300.c (h8_push_ops): Move inside
9180 (h8_pop_ops): Likewise.
9181 (h8_move_ops): Likewise.
9183 2002-02-02 Kazu Hirata <kazu@hxi.com>
9185 * config/h8300/h8300.c (os_task): Make it static.
9186 (monitor): Likewise.
9187 (pragma_saveall): Likewise.
9189 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
9191 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
9192 constant is a valid sign-extension for Pmode.
9194 2002-02-02 Kazu Hirata <kazu@hxi.com>
9196 * config/h8300/h8300.c: Fix formatting.
9198 2002-02-02 Kazu Hirata <kazu@hxi.com>
9200 * config/h8300/h8300.md: Fix formatting.
9202 2002-02-02 Kazu Hirata <kazu@hxi.com>
9204 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
9205 predicates of operands[1]. Split the patterns for each
9208 2002-02-02 Kazu Hirata <kazu@hxi.com>
9210 * config/h8300/h8300.md (xor patterns): Tighten the predicates
9211 of operands[1] to register_operand.
9213 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
9215 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
9216 * cpphash.c (_cpp_init_hashtable): Similarly.
9217 * cppinit.c (cpp_create_reader): Default the signed_char flag.
9218 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
9219 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
9220 (cpp_handle_option): Handle the new options.
9221 * cpplex.c (cpp_interpret_charconst): Use new flag.
9222 * cpplib.h (struct cpp_options): New member signed_char.
9223 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
9224 (cpp_options): Handle -fsigned-char and -funsigned-char.
9225 (static_specs): Remove signed_char_spec.
9226 (do_spec1): Don't handle %c.
9227 * system.h: Poison SIGNED_CHAR_SPEC.
9228 * tradcif.y (yylex): Use flag_signed_char.
9229 * tradcpp.h (flag_signed_char): New.
9230 * tradcpp.c (flag_signed_char): New.
9231 (main): Handle new command-line options.
9232 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
9234 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
9235 * avr/avr.h: Remove old comments.
9236 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
9237 (CC1_SPEC): Pass -fsigned-char if -mic*.
9238 (SIGNED_CHAR_SPEC): Remove.
9240 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
9242 2002-02-01 Eric Christopher <echristo@redhat.com>
9244 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
9245 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
9246 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
9247 (ASM_OUTPUT_REG_POP): Ditto.
9249 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
9251 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
9254 2002-02-02 Jakub Jelinek <jakub@redhat.com>
9256 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
9258 2002-02-02 Jakub Jelinek <jakub@redhat.com>
9261 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
9264 2002-02-01 Janis Johnson <janis187@us.ibm.com>
9266 * cfganal.c: Include tm_p.h.
9267 (keep_with_call_p): Fix the test that determines if a register holds
9268 the return value of a call.
9270 2002-02-01 DJ Delorie <dj@redhat.com>
9272 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
9273 we are given conflicting registers, switch to the other one we
9274 had allocated for us.
9275 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
9276 as TImode so we know when the "other" register is available.
9278 2002-02-01 David O'Brien <obrien@FreeBSD.org>
9280 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
9283 2002-02-01 Janis Johnson <janis187@us.ibm.com>
9285 * cfganal.c (keep_with_call_p): New function.
9286 (flow_call_edges_add): Prevent splitting a block between a call and
9287 a single-set instruction that should be kept in the same block.
9289 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
9291 * doc/install.texi (avr): Update outdated URL.
9293 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
9295 * config/stormy16/stormy16.md (pushqi): New.
9299 (movhi): Remove stack operands.
9301 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
9302 nonimmediate_nonstack_operand.
9303 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
9305 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
9308 2002-01-31 Jason Merrill <jason@redhat.com>
9310 * Makefile.in (c-parse.c): Handle .output file.
9311 * objc/Make-lang.in (objc-parse.c): Likewise.
9313 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
9315 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
9316 the -me[lb] option is given. Don't output the default flag
9319 2002-01-31 Zack Weinberg <zack@codesourcery.com>
9321 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
9322 the primary source file; this has not been done yet.
9323 * c-decl.c (c_expand_body): Reset input_filename from
9324 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
9326 2002-01-31 Kazu Hirata <kazu@hxi.com>
9328 * rtlanal.c (subreg_regno_offset): Do not use
9329 SUBREG_REGNO_OFFSET.
9330 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
9331 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
9333 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
9335 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
9336 version rather than GNATS version in --version output.
9338 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
9340 * ifcvt.c (noce_process_if_block): Make a copy of the destination
9341 when copying back from a temporary.
9343 2002-01-30 Richard Henderson <rth@redhat.com>
9345 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
9346 and new_dest are the same.
9348 2002-01-30 Richard Henderson <rth@redhat.com>
9351 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
9352 * rtl.c (note_insn_name): Update.
9353 * emit-rtl.c (remove_unnecessary_notes): Kill it.
9354 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
9355 to perform loop rotation.
9356 (expand_exit_loop_top_cond): New.
9357 * tree.h (expand_exit_loop_top_cond): Declare it.
9358 * c-semantics.c (genrtl_while_stmt): Use it.
9359 (genrtl_for_stmt): Likewise.
9361 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
9363 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
9364 arguments to 64-bit boundaries on 64-bit ABIs.
9366 2002-01-30 Steve Ellcey <sje@cup.hp.com>
9368 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
9370 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
9372 * c-decl.c (grokdeclarator): Handle type being a typedef for an
9375 2002-01-30 David O'Brien <obrien@FreeBSD.org>
9377 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
9378 * config/sparc/sparc_bi.h: Remove file.
9379 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
9381 2002-01-30 Richard Henderson <rth@redhat.com>
9383 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
9385 2002-01-30 Zack Weinberg <zack@codesourcery.com>
9387 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
9389 2002-01-30 Jason Merrill <jason@redhat.com>
9391 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
9392 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
9393 (reg_save): Use DW_CFA_offset_extended_sf instead.
9395 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
9397 2002-01-29 Jakub Jelinek <jakub@redhat.com>
9399 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
9402 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
9404 * rs6000.md ("*call_value_local32"): Remove constraints.
9405 ("*call_value_local64"): Same.
9406 ("*call_value_indirect_nonlocal_aix32"): Same.
9407 ("*call_value_nonlocal_aix32"): Same.
9408 ("*call_value_indirect_nonlocal_aix64"): Same.
9409 ("*call_value_nonlocal_aix64"): Same.
9410 ("*call_value_nonlocal_sysv"): Same.
9412 2002-01-29 Richard Henderson <rth@redhat.com>
9414 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
9416 2002-01-29 Richard Henderson <rth@redhat.com>
9418 * expr.c (force_operand): Ignore flag_pic for detecting pic
9420 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
9421 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
9422 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
9423 instead of open-coded loop.
9424 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
9425 be fixed when in use.
9427 2002-01-29 Richard Henderson <rth@redhat.com>
9429 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
9430 * sched-rgn.c (propagate_deps): Update them.
9431 * sched-deps.c (sched_analyze_insn): Update them. Flush the
9432 clobbers list when either gets too long.
9434 2002-01-29 Jakub Jelinek <jakub@redhat.com>
9436 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
9437 and INDEX_REGS the same as GENERAL_REGS.
9438 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
9440 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
9442 * tree.c (build_nonstandard_integer_type): Correct prototype.
9444 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
9446 * config/s390/s390.md (movstrsico, movstrdix_64,
9447 movstrsix_31): Remove, replace by ...
9448 (movstrdi_short, movstrsi_short, movstrdi_long,
9449 movstrsi_long): ... these. New.
9450 (movstrdi, movstrsi): Adapt.
9452 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
9453 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
9454 Remove unnecessary CC clobber.
9455 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
9456 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
9458 (divmoddi4): Don't partially initialize TImode register.
9460 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
9462 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
9464 2002-01-29 Richard Henderson <rth@redhat.com>
9466 * flow.c (print_rtl_and_abort): Remove.
9467 (print_rtl_and_abort_fcn): Remove.
9468 (verify_local_live_at_start): Use dump_bb instead.
9469 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
9470 (verify_wide_reg_1): Return 2 on mode test failure.
9472 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
9474 PR c/3325, c/3326, c/2511, c/3347
9475 * c-decl.c (enum_decl_context): Remove BITFIELD.
9476 (grokdeclarator): Take bitfield width as an input.
9477 Ensure bitfields are given the correct type. Perform
9478 bitfield width validation with build_bitfield_integer_type
9479 rather than waiting for finish_struct.
9480 (grok_typename, grok_typename_in_parm_context, start_decl,
9481 push_parmdecl, grokfield, start_function): Update calls to
9483 (build_bitfield_integer_type): New function.
9484 (finish_struct): Move bitfield validation to grokdeclarator
9485 and build_bitfield_integer_type.
9486 * tree.c (build_nonstandard_integer_type): New function.
9487 * tree.h (build_nonstandard_integer_type): New prototype.
9489 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
9491 2002-01-29 Jakub Jelinek <jakub@redhat.com>
9494 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
9495 don't ignore unrecognized -W* options.
9496 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
9497 * cpplib.h (cpp_handle_option): Adjust prototype.
9498 * c-decl.c (c_decode_options): Pass 0 as last argument to
9502 * gcc.c (cpp_unique_options): Split from cpp_options.
9503 (cpp_options): Source cpp_unique_options.
9504 (default_compilers): Use cpp_unique_options instead of cpp_options
9505 when used together with cc1_options.
9506 (static_specs): Add cpp_unique_options.
9507 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
9508 when used together with cc1_options.
9510 2002-01-29 Kazu Hirata <kazu@hxi.com>
9512 * config/h8300/h8300-protos.h: Update the prototype of
9514 * config/h8300/h8300.c (output_a_shift): Remove an unused
9515 argument 'insn'. Remove redundant code.
9516 * config/h8300/h8300.md: Adust to the new prototype of
9519 2002-01-29 Kazu Hirata <kazu@hxi.com>
9521 * config/h8300/h8300-protos.h: Update the prototypes of
9522 emit_a_rotate and expand_a_rotate.
9523 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
9524 first argument to 'enum rtx_code'.
9525 (expand_a_rotate): Likewise.
9527 2002-01-28 Kazu Hirata <kazu@hxi.com>
9529 * config/h8300/h8300-protos.h: Update the prototype of
9531 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
9533 * config/h8300/h8300.md: Adjust to the new prototype.
9535 2002-01-28 Kazu Hirata <kazu@hxi.com>
9537 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
9540 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
9542 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
9543 is a fixed register before returning pic_offset_table_rtx.
9544 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
9545 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
9547 2002-01-28 Jason Merrill <jason@redhat.com>
9549 * dwarf2.h: Sync with src version.
9551 2002-01-28 Paul Koning <pkoning@equallogic.com>
9553 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
9555 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
9556 * doc/extend.texi (__builtin_prefetch): Update documentation:
9557 first argument is now const void ptr.
9559 2002-01-28 Kazu Hirata <kazu@hxi.com>
9561 * config/h8300/h8300-protos.h: Remove an unused prototype.
9563 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
9565 * toplev.c (lang_independent_init): Round up identifier size.
9567 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
9569 * config.gcc: Revert previous change.
9571 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
9573 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
9575 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
9577 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
9578 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
9579 other non-elf netbsd config frags.
9580 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
9581 collect2 will does that.
9582 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
9583 shared-lib frobbing will work.
9585 2002-01-28 Kazu Hirata <kazu@hxi.com>
9587 * config/h8300/h8300.h: Fix formatting.
9588 * config/h8300/h8300.md: Likewise.
9590 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
9592 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
9593 the old, removed AAA_standards fix.
9594 * fixinc/fixincl.x: Rebuilt.
9596 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
9598 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
9599 atexit call in crtbegin, hooked in after call to frame_dummy;
9600 register EH before registering __fini__start.
9602 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
9604 * config/rs6000/altivec.h: Remove spurious semicolons.
9606 2002-01-27 Kazu Hirata <kazu@hxi.com>
9608 * config/h8300/h8300.md: Replace dead bit extraction patterns
9609 with ones that work.
9611 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9613 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
9614 if not STRICT_ALIGNMENT.
9615 * rtl.h (MEM_ALIGN): Likewise.
9617 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
9619 * doc/invoke.texi (-fdump-translation-unit): Revert this
9620 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
9622 2002-01-27 Kazu Hirata <kazu@hxi.com>
9624 * config/h8300/h8300.md (define_constants): New.
9625 (anonymous patterns) Use defined constants appropriately.
9627 2002-01-27 Kazu Hirata <kazu@hxi.com>
9629 * config/h8300/h8300.c (function_arg): Remove redundant code.
9631 2002-01-26 Richard Henderson <rth@redhat.com>
9633 * sched-deps.c (reg_pending_uses_head): New.
9634 (reg_pending_barrier): Rename from reg_pending_sets_all.
9635 (find_insn_list): Don't mark inline.
9636 (find_insn_mem_list): Remove.
9637 (add_dependence_list, add_dependence_list_and_free): New.
9638 (flush_pending_lists): Replace only_write param with separate
9639 for_read and for_write parameters. Update all callers. Use
9640 add_dependence_list_and_free.
9641 (sched_analyze_1): Do not add reg dependencies here; just set
9642 the pending bits. Use add_dependence_list.
9643 (sched_analyze_2): Likewise.
9644 (sched_analyze_insn): Replace schedule_barrier_found with
9645 reg_pending_barrier. Add all dependencies for pending reg
9646 uses, sets, and clobbers.
9647 (sched_analyze): Don't add reg dependencies for calls, just
9648 set pending bits. Use regs_invalidated_by_call. Treat
9649 sched_before_next_call as a normal list, not a fake insn.
9650 (init_deps): No funny init for sched_before_next_call.
9651 (free_deps): Free pending mems lists. Don't zero reg_last.
9652 (init_deps_global): Init reg_pending_uses.
9653 (finish_deps_global): Free it.
9654 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
9655 (find_insn_mem_list): Remove.
9656 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
9657 (propagate_deps): Use them. Zero temp mem lists.
9659 2002-01-26 Richard Henderson <rth@redhat.com>
9661 * Makefile.in (CRTSTUFF_CFLAGS): New.
9662 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
9663 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
9664 crtstuff.c instead of alpha assembly version.
9665 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
9666 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
9667 not FORCE_{INIT,FINI}_SECTION_ALIGN.
9668 (__do_global_dtors_aux): Mark used.
9669 (frame_dummy, __do_global_ctors_aux): Mark used.
9670 (fini_dummy, init_dummy): Remove.
9672 * config/alpha/crtbegin.asm: Remove file.
9673 * config/alpha/crtend.asm: Remove file.
9674 * config/alpha/t-crtbe: Remove file.
9675 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
9676 (LINK_EH_SPEC): New.
9678 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
9679 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
9680 calling constructors.
9681 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
9683 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
9684 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
9685 CRT_END_INIT_DUMMY hack.
9686 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
9687 FORCE_{INIT,FINI}_SECTION_ALIGN.
9689 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
9690 FORCE_{INIT,FINI}_SECTION_ALIGN.
9692 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
9693 invocation sequence.
9694 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
9696 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
9697 (FORCE_CODE_SECTION_ALIGN): New.
9699 2002-01-26 Richard Henderson <rth@redhat.com>
9701 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
9703 2002-01-26 Richard Henderson <rth@redhat.com>
9705 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
9706 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
9708 2002-01-26 Kazu Hirata <kazu@hxi.com>
9710 * config/h8300/h8300.md: Remove bit extraction patterns that
9711 cannot be triggered.
9712 Restrict each bit extraction pattern to a variant on which the
9715 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
9717 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
9719 2002-01-26 Kazu Hirata <kazu@hxi.com>
9721 * config/h8300/h8300.md: Remove bit test patterns that cannot
9723 Restrict each bit test pattern to a variant on which the
9726 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9728 * builtins.c (expand_builtin_strncat): Remove redundant check for
9731 2002-01-25 David O'Brien <obrien@FreeBSD.org>
9733 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
9735 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
9738 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
9740 * dbxout.c (dbxout_init): Use assemble_name rather than just
9741 stripping off the first character.
9742 (dbxout_source_file): Likewise.
9744 2002-01-25 DJ Delorie <dj@redhat.com>
9746 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
9747 using rtx_equal_p, not by comparing pointers.
9749 2002-01-25 Steve Ellcey <sje@cup.hp.com>
9751 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
9752 for PIC_OFFSET_TABLE_REGNUM.
9753 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
9755 2002-01-25 David O'Brien <obrien@FreeBSD.org>
9757 * config.gcc (x86_64-*-freebsd*): New target.
9758 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
9760 (i[34567]86-*-freebsd*): Don't include svr4.h.
9761 * config/i386/freebsd64.h: New file.
9763 2002-01-25 Douglas B Rupp <rupp@gnat.com>
9765 * config/alpha/x-vms (version): Make static.
9767 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
9768 in previous checkin.
9770 * Makefile.in (install-headers-cp): New target.
9771 * config.gcc (alpha-dec-*vms*): Install headers with
9774 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
9776 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
9779 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9781 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
9782 of compare_tree_int.
9783 (expand_builtin_strncat): Likewise.
9784 * c-decl.c (finish_struct): Use tree_low_cst.
9785 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
9786 * tree.c (compare_tree_int): Likewise.
9788 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
9790 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
9791 adjustments even if they are implemented by more than two insns.
9793 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
9795 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
9796 * df.h (struct ref): Kill B.
9797 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
9799 * basic-block.h (PROP_EQUAL_NOTES): New flag.
9800 * flow.c (propagate_one_insn): Use it.
9801 (mark_used_regs): Handle NIL.
9803 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
9805 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
9808 2002-01-25 David Edelsohn <edelsohn@gnu.org>
9810 * rs6000.md (prefetch): Make address V4SI mode so that the address
9811 is restricted to legitimate form for instruction.
9813 2002-01-25 Bob Wilson <bob.wilson@acm.org>
9815 * doc/install.texi (xtensa-*-elf): New target.
9816 (xtensa-*-linux*): New target.
9817 * doc/contrib.texi: Add myself.
9819 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
9821 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
9822 purpose register to hold an SImode (or smaller) value.
9824 2002-01-25 Jakub Jelinek <jakub@redhat.com>
9826 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
9828 * crtstuff.c: Likewise.
9830 2002-01-25 Kazu Hirata <kazu@hxi.com>
9832 * config/h8300/h8300.md (negation patterns): Tighten
9833 predicates to register_operand.
9835 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
9837 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
9840 * builtins.c (expand_builtin_prefetch): Same.
9842 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9844 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
9847 2002-01-24 Kazu Hirata <kazu@hxi.com>
9849 * config/h8300/h8300.c (print_operand): Remove support for
9850 operand character 'A'.
9851 * config/h8300/h8300.md (three anonymous patterns): Replace
9852 operand character 'A' with either 'T' or 'S'.
9854 2002-01-24 Kazu Hirata <kazu@hxi.com>
9856 * config/h8300/h8300.c (print_operand): Remove support for
9857 operand character 'U'.
9859 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
9861 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
9863 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
9865 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
9866 values to be assigned to the stack pointer.
9868 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
9870 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
9871 to const_double needs to be done right for big-endian systems.
9873 2002-01-24 Jason Merrill <jason@redhat.com>
9876 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
9877 to can_throw_internal.
9879 2002-01-23 Richard Henderson <rth@redhat.com>
9881 * fold-const.c (fold): Change UINT_MAX test to check vs precision
9882 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
9884 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9886 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
9887 (symGOT2reg): Use them, then set as GOT value as unchanging.
9888 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
9889 as a temporary, if possible.
9890 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
9891 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
9893 2002-01-23 Kazu Hirata <kazu@hxi.com>
9895 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
9896 accept to accept 0x80 as operands[2].
9898 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9900 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
9902 2002-01-23 Richard Henderson <rth@redhat.com>
9904 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
9906 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
9908 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
9909 (parmlist_or_identifiers_1): Verify that only a parmlist follows
9912 2002-01-23 Richard Henderson <rth@redhat.com>
9914 * expr.c (move_by_pieces_1): Extend size before negation.
9916 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
9917 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
9918 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
9919 * config/m68k/t-m68kelf: Likewise.
9921 2002-01-23 Bob Wilson <bob.wilson@acm.org>
9923 * config/xtensa/elf.h: New file.
9924 * config/xtensa/lib1funcs.asm: New file.
9925 * config/xtensa/lib2funcs.S: New file.
9926 * config/xtensa/linux.h: New file.
9927 * config/xtensa/t-xtensa: New file.
9928 * config/xtensa/xtensa-config.h: New file.
9929 * config/xtensa/xtensa-protos.h: New file.
9930 * config/xtensa/xtensa.c: New file.
9931 * config/xtensa/xtensa.h: New file.
9932 * config/xtensa/xtensa.md: New file.
9933 * config.gcc (xtensa-*-elf*): New target.
9934 (xtensa-*-linux*): New target.
9935 * cse.c (canon_hash): Compare rtx pointers instead of register
9936 numbers. This is required for the Xtensa port.
9937 * integrate.c (copy_insn_list): Handle case where the static
9938 chain is in memory and the memory address has to be copied to
9940 * doc/invoke.texi (Option Summary): Add Xtensa options.
9941 (Xtensa Options): New node.
9942 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
9944 2002-01-23 Zack Weinberg <zack@codesourcery.com>
9946 * diagnostic.c (internal_error): Do ICE suppression only
9947 when ENABLE_CHECKING is not defined.
9949 * c-typeck.c (require_complete_type): Return error_mark_node
9950 if type is error_mark_node.
9952 2002-01-23 Janis Johnson <janis187@us.ibm.com>
9954 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
9955 -Os and issue a warning.
9957 2002-01-23 Zack Weinberg <zack@codesourcery.com>
9959 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
9960 current (lack of) need for host configuration by hand.
9962 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
9963 references. Documentation of some target macros moved from
9964 hostconfig.texi to tm.texi.
9966 2002-01-23 Will Cohen <wcohen@redhat.com>
9968 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
9971 2002-01-23 Kazu Hirata <kazu@hxi.com>
9973 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
9976 2002-01-23 Jason Merrill <jason@redhat.com>
9978 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
9980 * function.c (assign_parms): Don't put args of inline functions
9981 into registers when not optimizing.
9983 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
9985 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
9986 (prologue_use): New pattern.
9987 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
9988 preference to gen_rtx_USE.
9989 (thumb_expand_prologue): Use gen_prologue_use in preference to
9991 (thumb_expand_epilogue): Use gen_prologue_use in preference to
9994 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
9996 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
9998 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
10001 * doc/extend.texi: Correct documentation of __alignof__.
10003 2002-01-22 Zack Weinberg <zack@codesourcery.com>
10005 * params.h: Rename arguments of DEFPARAM so that it will be
10006 recognized as a translation keyword.
10008 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
10010 * extend.texi: Document altivec functions.
10011 Fix N-bit adjectives in X86 builtin documentation.
10013 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
10015 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
10016 auto_inc_dec values.
10018 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
10020 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
10022 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
10024 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
10026 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
10028 2002-01-22 Richard Henderson <rth@redhat.com>
10030 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
10031 copy_insn not copy_rtx.
10033 2002-01-23 Alan Modra <amodra@bigpond.net.au>
10035 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
10036 "nonzero" as that might add "1" bits. Ensure "constop" is
10037 properly sign extened.
10038 (force_to_mode): Tweak for sign extended constop.
10040 2002-01-22 Richard Henderson <rth@redhat.com>
10042 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
10043 for_each_rtx instead of assuming we're already looking at the MEM.
10044 (split_small_symbolic_mem_operand): Likewise.
10045 * config/alpha/alpha.h (PREDICATE_CODES): Update.
10046 * config/alpha/alpha.md (small symbolic memory splitters): Update.
10048 2002-01-22 Richard Henderson <rth@redhat.com>
10050 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
10051 sequence number for the literal.
10052 (divmoddi_internal_er): Likewise.
10054 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
10057 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
10058 in LIBICONV variable.
10059 * configure: Regenerated.
10061 2002-01-22 Krister Walfridsson <cato@df.lth.se>
10063 * dependence.c (build_def_use): Remove array_idx.
10065 * dwarfout.c (last_filename): Remove.
10066 (output_compile_unit_die): Remove last_filename.
10068 2002-01-22 Roger Sayle <roger@eyesopen.com>
10069 Richard Henderson <rth@redhat.com>
10072 * fold-const.c (fold): Optimize unsigned comparisons against
10073 UINT_MAX (and similar unsigned constants).
10075 2002-01-22 Janis Johnson <janis187@us.ibm.com>
10077 * Makefile.in (loop.o): Depend on OPTABS_H.
10078 * loop.c (emit_prefetch_instructions): Check the prefetch operand
10079 against the predicate.
10082 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
10083 for the address operand.
10085 2002-01-22 Richard Henderson <rth@redhat.com>
10087 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
10089 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
10092 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
10093 preprocessor flags.
10095 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
10097 * config.gcc (x86_64-*-netbsd*): New target.
10098 * config/i386/netbsd64.h: New file.
10100 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
10102 * regrename.c (kill_value): Fix typo.
10104 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
10106 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
10108 * config/rs6000/rs6000.h: Same.
10110 * function.c (instantiate_virtual_regs): Remove
10111 STARTING_FRAME_PHASE.
10112 (assign_stack_local_1): Same.
10113 Calculate frame phase.
10115 2002-01-22 Nick Clifton <nickc@redhat.com>
10117 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
10118 variable declaration to outer scope in order to simplify
10120 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
10121 arm_hard_regno_mode_ok.
10122 * config/arm/arm-protos.h: Add a prototype for
10123 arm_hard_regno_mode_ok.
10124 * config/arm/arm.c (soft_df_operand): Remove now redundant
10125 check for DImode values using IP_REGNUM.
10126 (nonimmediate_soft_df_operand): Remove now redundant check for
10127 DImode values using IP_REGNUM.
10128 (arm_hard_regno_mode_ok): New function. New check: make sure
10129 that DImode values are not stored in IP_REGNUM.
10131 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
10133 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
10135 2002-01-22 Jason Merrill <jason@redhat.com>
10137 * c-semantics.c (genrtl_compound_stmt): Only check nesting
10138 consistency if this COMPOUND_STMT is scoped.
10140 2002-01-22 Kazu Hirata <kazu@hxi.com>
10142 * predict.c: Fix formatting.
10143 * print-tree.c: Likewise.
10144 * protoize.c: Likewise.
10145 * real.h: Likewise.
10147 * sbitmap.h: Likewise.
10148 * scan.c: Likewise.
10149 * sched-deps.c: Likewise.
10150 * sched-vis.c: Likewise.
10151 * sdbout.c: Likewise.
10152 * sibcall.c: Likewise.
10154 * ssa-ccp.c: Likewise.
10155 * ssa-dce.c: Likewise.
10156 * stmt.c: Likewise.
10157 * stor-layout.c: Likewise.
10158 * system.h: Likewise.
10160 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10162 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
10163 if fits in bounds of base type.
10165 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
10166 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
10167 (add_bound_info, default): If can't find a context, make a
10169 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
10171 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
10173 * c-typeck.c (parser_build_binary_op): If result from
10174 build_binary_op is ERROR_MARK just return error_mark_node without
10175 further processing.
10177 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
10179 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
10180 Split a.out-specific bits into...
10181 * config/netbsd-aout.h: ...this.
10182 * config/netbsd-elf.h: New file.
10183 * config/alpha/netbsd-elf.h: Remove.
10184 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
10185 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
10186 (STARTFILE_SPEC): Remove redundant definition.
10187 (ENDFILE_SPEC): Likewise.
10188 (LINK_SPEC): Likewise.
10189 (CPP_SPEC): Likewise.
10190 (ASM_SPEC): Likewise.
10191 (LIB_SPEC): Likewise.
10192 (SWITCH_TAKES_ARG): Likewise.
10193 (TARGET_MEM_FUNCTIONS): Likewise.
10194 (CPP_PREDEFINES): Redefine.
10195 (ASM_FINAL_SPEC): Remove redefinition.
10196 (ASM_COMMENT_START): Redefine.
10197 (FUNCTION_PROFILER): Define.
10198 (TARGET_VERSION): Redefine.
10199 Comment and formatting cleanup.
10200 * config/i386/netbsd.h: Include <netbsd-aout.h>.
10201 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
10202 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
10203 big- or little-endian.
10204 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
10205 * config.gcc (*-*-netbsd*): Add definitions common to all
10207 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
10208 gnu_ld definitions. Add netbsd-elf.h to and remove
10209 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
10210 tmake_file, and don't lose previous tmake_file contents.
10211 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
10212 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
10213 gnu_ld definitions. Add netbsd-elf.h to tm_file.
10214 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
10215 (mipsel-*-netbsd*): Rename this to...
10216 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
10217 mips/little.h to tm_file for mips*el-*.
10218 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
10219 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
10220 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
10222 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
10224 * pa-protos.h (reg_before_reload_operand): New function prototype.
10225 * pa.c (reg_before_reload_operand): New function implementation.
10226 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
10227 contraints to "*m".
10229 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10231 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
10233 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
10235 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
10236 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
10237 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
10238 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
10239 (ENDFILE_SPEC): Undefine.
10240 (STARTFILE_SPEC): Redefine for PA.
10242 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10244 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
10246 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
10248 * config.gcc: Add entries to supported PowerPC --with-cpu
10251 2002-01-21 Jakub Jelinek <jakub@redhat.com>
10253 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
10254 true for 64-bit mode only SSE registers in 32-bit mode.
10256 2002-01-21 Kazu Hirata <kazu@hxi.com>
10258 * unwind-dw2.c: Fix formatting.
10259 * unwind-dw2-fde.c: Likewise.
10260 * unwind-dw2-fde.h: Likewise.
10261 * unwind-pe.h: Likewise.
10262 * varasm.c: Likewise.
10263 * varray.h: Likewise.
10265 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
10267 Remove workaround for register stack overwrite bug in mmix.
10268 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
10269 support for TARGET_REG_STACK_FILL_BUG.
10270 * config/mmix/mmix.h: Remove member has_call_without_parameters.
10271 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
10273 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
10274 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
10275 -mno-reg-stack-fill-bug-workaround.
10276 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
10277 machine member has_call_without_parameters.
10278 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
10279 -mreg-stack-fill-bug-workaround and
10280 -mno-reg-stack-fill-bug-workaround.
10281 (MMIX Options): Ditto.
10283 2002-01-21 Kazu Hirata <kazu@hxi.com>
10285 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
10287 Remove redundant code.
10289 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
10291 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
10292 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10293 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10294 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
10295 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
10296 out target macro definitions and non-target-specific comments
10297 mostly taken from old versions of the manual.
10299 2002-01-20 Kazu Hirata <kazu@hxi.com>
10301 * config/h8300/h8300.h: Fix comment formatting.
10302 * config/ia64/aix.h: Likewise.
10303 * config/ia64/ia64-protos.h: Likewise.
10304 * config/ia64/ia64.c: Likewise.
10305 * config/ia64/ia64.h: Likewise.
10306 * config/ia64/ia64intrin.h: Likewise.
10307 * config/ia64/linux.h: Likewise.
10308 * config/ia64/unwind-aix.c: Likewise.
10309 * config/ia64/unwind-ia64.c: Likewise.
10311 2002-01-20 Kazu Hirata <kazu@hxi.com>
10313 * config/h8300/h8300.c: Revise comments about shift code.
10315 2002-01-20 Kazu Hirata <kazu@hxi.com>
10317 * config/h8300/h8300.c (function_arg): Update a comment.
10319 2002-01-20 Kazu Hirata <kazu@hxi.com>
10321 * config/h8300/h8300.md: Update the comments at the beginning
10324 2002-01-20 Kazu Hirata <kazu@hxi.com>
10326 * config/i370/i370.c: Fix comment formatting.
10327 * config/i370/i370.h: Likewise.
10328 * config/i370/i370.md: Likewise.
10329 * config/i370/linux.h: Likewise.
10331 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10333 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
10335 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
10336 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
10337 in incomplete case.
10339 2002-01-20 Graham Stott <grahams@redhat.com>
10341 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
10343 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
10345 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
10347 2002-01-19 Tom Rix <trix@redhat.com>
10349 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
10351 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
10353 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
10355 * function.c (assign_stack_local_1): Adjust x_frame_offset with
10356 STARTING_FRAME_PHASE.
10357 (STARTING_FRAME_PHASE): New.
10358 (instantiate_virtual_regs): Check saneness of
10359 STARTING_FRAME_PHASE.
10361 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
10363 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
10365 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
10367 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
10369 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
10370 be used for bootstrapping GCC 3.0.
10372 2002-01-18 Kazu Hirata <kazu@hxi.com>
10374 * config/h8300/h8300.md: Fix an insn length.
10376 2002-01-18 Kazu Hirata <kazu@hxi.com>
10378 * bitmap.h: Fix comment formatting.
10379 * combine.c: Likewise.
10380 * cppfiles.c: Likewise.
10381 * c-pragma.h: Likewise.
10382 * c-typeck.c: Likewise.
10384 * dwarf2out.c: Likewise.
10385 * function.c: Likewise.
10387 * genattrtab.c: Likewise.
10388 * gthr-win32.h: Likewise.
10389 * haifa-sched.c: Likewise.
10390 * predict.c: Likewise.
10391 * rtlanal.c: Likewise.
10393 * unwind-dw2-fde.h: Likewise.
10394 * unwind-pe.h: Likewise.
10395 * vmsdbgout.c: Likewise.
10397 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10399 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
10400 if type_required and passed decl.
10402 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
10404 * config.gcc (cpu_type): Include altivec.h in powerpc
10408 * config/rs6000/altivec.h: New.
10410 2002-01-17 David Edelsohn <edelsohn@gnu.org>
10412 * doc/install.texi (*-ibm-aix*): Update assembler and exception
10413 handling information.
10414 * doc/trouble.texi (Interoperation): Add libstdc++ information
10416 (Misunderstandings): Add template instantiation and static template
10417 member information for AIX.
10419 2002-01-17 Jason Merrill <jason@redhat.com>
10421 * dbxout.c (dbxout_type): Support const and volatile.
10423 * except.c (add_partial_entry): Remove backwards compatibility code.
10424 (end_protect_partials): Likewise.
10426 2002-01-17 Jakub Jelinek <jakub@redhat.com>
10428 * config/ia64/ia64.md (prologue_use): New.
10429 * config/ia64/ia64.c (ia64_expand_prologue): Use
10430 gen_prologue_use instead of gen_rtx_USE.
10431 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
10432 as CODE_FOR_pred_rel_mutex.
10433 (ia64_sched_reorder2): Likewise.
10435 2002-01-16 Eric Christopher <echristo@redhat.com>
10437 * config/mips/r3900.h: Reformat.
10438 (SUBTARGET_CPP_SIZE_SPEC): Remove.
10439 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
10440 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
10441 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
10442 * config/mips/t-elf: Remove mips3 multilib.
10444 2002-01-16 H.J. Lu <hjl@gnu.org>
10446 * config/mips/linux.h: Include "mips/abi64.h".
10448 2002-01-16 H.J. Lu <hjl@gnu.org>
10450 * config/mips/t-linux: New.
10452 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
10454 * config/mips/linux.h: Don't include "gofast.h".
10455 (INIT_SUBTARGET_OPTABS): Removed.
10457 2002-01-16 Kazu Hirata <kazu@hxi.com>
10459 * config/h8300/h8300-protos.h: Replace emit_a_shift with
10461 * config/h8300/h8300.c: Likewise.
10462 * config/h8300/h8300.md: Likewise.
10464 2002-01-16 Kazu Hirata <kazu@hxi.com>
10466 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
10467 spaces after an opcode name.
10468 (pushqi1_h8300hs): Likewise.
10469 (pushhi1_h8300hs): Likewise.
10471 2002-01-16 Kazu Hirata <kazu@hxi.com>
10473 * doc/extend.texi: Replace "option" with "attribute"
10476 2002-01-16 Jakub Jelinek <jakub@redhat.com>
10478 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
10479 (and:DI () (const_int -8)).
10480 (split_small_symbolic_mem_operand): Split
10481 (mem (and:DI () (const_int -8)).
10483 2002-01-16 Jakub Jelinek <jakub@redhat.com>
10486 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
10487 same way as TYPE_IMUL.
10488 (ultrasparc_sched_reorder): Likewise.
10489 * config/sparc/sparc.md (type): Add comment to update
10490 ultrasparc_sched_reorder when making changes.
10492 2002-01-16 Kazu Hirata <kazu@hxi.com>
10494 * doc/invoke.texi: Change the dump file name of block
10495 reordering pass from 28.bbro to 29.bbro.
10496 Mention -dk option.
10498 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
10500 * i386.md (minsf splitter): Fix pasto.
10502 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
10504 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
10505 to frame pointer initialisation instruction.
10506 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
10507 initialisation instruction.
10508 (soft_df_operand): Do not accept the IP register.
10509 (nonimmediate_soft_df_operand): Do not accept the IP register.
10511 2002-01-16 Jakub Jelinek <jakub@redhat.com>
10514 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
10515 MASK_V8 being both set.
10517 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
10519 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
10520 insn for GOT register; add REG_MAYBE_DEAD notes instead.
10521 config/s390/s390.md (call, call_value): Add GOT register to
10522 CALL_INSN_FUNCTION_USAGE where needed.
10523 (call_exp, call_value_exp): New.
10525 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
10527 * config/arm/arm.c: General formatting tidy up.
10529 2002-01-16 Graham Stott <grahams@redhat.com>
10531 * calls.c (try_to_integrate): Use "(size_t)" intermediate
10532 cast and when casting an integer literal to "rtx" pointer.
10533 (expand_call): Likewise.
10534 * flow.c (try_pre_increment): Likewise.
10535 (find_use_as_address): Likewise.
10536 * integrate.c (expand_iline_function): Likewise.
10537 * regmove.c (try_auto_increment): Likewise.
10539 2002-01-16 Graham Stott <grahams@redhat.com>
10541 * sched-rgn.c (passed): Use sbitmap_free.
10542 (header): Likewise.
10544 (in_queue): Likewise.
10545 (in_stack): Likewise.
10547 2002-01-15 Eric Christopher <echristo@redhat.com>
10549 * flow.c (propagate_one_insn): Change to use fatal_insn.
10551 2002-01-15 Kazu Hirata <kazu@hxi.com>
10553 * expmed.c (extract_fixed_bit_field): Remove unused code.
10554 * system.h: Poison SLOW_ZERO_EXTEND.
10555 * doc/tm.texi: Remove.
10556 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
10557 * config/arm/arm.h: Likewise.
10558 * config/avr/avr.h: Likewise.
10559 * config/clipper/clipper.h: Likewise.
10560 * config/convex/convex.h: Likewise.
10561 * config/d30v/d30v.h: Likewise.
10562 * config/dsp16xx/dsp16xx.h: Likewise.
10563 * config/elxsi/elxsi.h: Likewise.
10564 * config/fr30/fr30.h: Likewise.
10565 * config/h8300/h8300.h: Likewise.
10566 * config/i370/i370.h: Likewise.
10567 * config/i386/i386.h: Likewise.
10568 * config/m68k/m68k.h: Likewise.
10569 * config/mips/mips.h: Likewise.
10570 * config/ns32k/ns32k.h: Likewise.
10571 * config/pdp11/pdp11.h: Likewise.
10572 * config/pj/pj.h: Likewise.
10573 * config/s390/s390.h: Likewise.
10574 * config/sh/sh.h: Likewise.
10575 * config/stormy16/stormy16.h: Likewise.
10576 * config/v850/v850.h: Likewise.
10577 * config/vax/vax.h: Likewise.
10578 * config/we32k/we32k.h: Likewise.
10580 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
10582 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
10583 (altivec_lvsl): Change constraint to b.
10584 (altivec_lvsr): Same.
10585 (altivec_lvebx): Same.
10586 (altivec_lvehx): Same.
10587 (altivec_lvewx): Same.
10588 (altivec_lvxl): Same.
10589 (altivec_lvx): Same.
10590 (altivec_stvx): Add parallel.
10591 (altivec_stvxl): Same.
10592 (altivec_stvehx): Same.
10593 (altivec_stvebx): Same.
10594 (altivec_stvebx): Same.
10596 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
10598 * config.gcc: Change altivec.h to altivec-defs.h.
10600 * config/rs6000/altivec.h: Delete.
10602 * config/rs6000/altivec-defs.h: Add.
10604 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
10606 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
10609 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
10610 less than or equal to eight bytes.
10612 * vax.md (andsi3): Remove constraints and change SET destination
10613 operand type to nonimmediate_operand.
10614 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
10615 when it is a CONST_INT.
10617 2002-01-15 Jason Merrill <jason@redhat.com>
10619 * c-common.def (FILE_STMT): New code.
10620 * c-common.c (statement_code_p): It's a statement.
10621 * c-common.h (stmt_tree_s): Add x_last_filename.
10622 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
10623 (last_expr_filename): New macro.
10624 * c-semantics.c (begin_stmt_tree): Initialize it.
10625 (add_stmt): If the filename changed, also insert a
10627 (expand_stmt): Handle seeing one.
10629 2002-01-15 Eric Christopher <echristo@redhat.com>
10631 * flow.c (propagate_one_insn): Add error message and print out
10632 insn for debugging.
10634 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
10636 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
10637 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
10638 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
10639 TRAMPOLINE_ALIGNMENT.
10640 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
10642 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
10643 PCC_BITFIELD_TYPE_MATTERS.
10644 * config/interix.h (STDC_VALUE): Remove. Use
10645 STDC_0_IN_SYSTEM_HEADERS.
10646 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
10647 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
10648 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
10650 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
10652 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
10653 not work on this platform currently.
10655 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
10657 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
10658 readonly_warning in _().
10660 2002-01-15 Douglas B Rupp <rupp@gnat.com>
10662 * gcc.c (delete_if_ordinary): Backout previous change.
10664 2002-01-15 Kazu Hirata <kazu@hxi.com>
10666 * config/h8300/h8300.c (print_operand): Remove support for
10667 unused operand characters.
10669 * read-rtl.c: Fix formatting.
10670 * real.c: Likewise.
10671 * recog.c: Likewise.
10672 * regclass.c: Likewise.
10673 * regmove.c: Likewise.
10674 * reg-stack.c: Likewise.
10675 * reload1.c: Likewise.
10676 * rtlanal.c: Likewise.
10678 2002-01-15 Kazu Hirata <kazu@hxi.com>
10680 * config/i386/i386.c: Fix formatting.
10682 2002-01-15 Jakub Jelinek <jakub@redhat.com>
10684 * c-typeck.c (process_init_element): Don't save_expr
10685 COMPOUND_LITERAL_EXPR if just its initializer will be used.
10687 2002-01-15 David Edelsohn <edelsohn@gnu.org>
10689 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
10690 emit optional traceback table if optimize_size or TARGET_ELF.
10691 * config/rs6000/rs6000.md (prefetch): New.
10693 2002-01-15 Andreas Jaeger <aj@suse.de>
10695 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
10697 2002-01-15 Kazu Hirata <kazu@hxi.com>
10699 * mips-tfile.c: Fix formatting.
10701 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
10703 * unroll.c (final_reg_note_copy): Fix previous commit.
10705 2002-01-14 Kazu Hirata <kazu@hxi.com>
10707 * config/h8300/h8300-protos.h: Remove the prototype for
10709 * config/h8300/h8300.c (eq_operator): Remove.
10711 2002-01-14 Richard Henderson <rth@redhat.com>
10713 * config/i386/i386.md (prefetch): Tidy.
10714 (prefetch_3dnow): Fix locality operand.
10716 2002-01-14 Richard Henderson <rth@redhat.com>
10718 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
10719 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
10721 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
10723 * reload1.c (reload_combine): Pass reg_sum replacement through
10724 copy_rtx in loop performing multiple changes.
10726 2002-01-14 Jakub Jelinek <jakub@redhat.com>
10728 * except.c (remove_unreachable_regions): New.
10729 (free_eh_status): Clear exception_handler_labels.
10730 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
10731 (find_exception_handler_labels): Don't add the same label more than
10733 (remove_exception_handler_label): Don't die if
10734 find_exception_handler_labels hasn't been called for the current
10737 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
10739 * toplev.c (rest_of_compilation): Rebuild jump labels after
10742 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
10744 * doc/extend.texi: Move documentation of X86 built-in functions
10746 * doc/invoke.texi: From here.
10747 * doc/sourcebuild.texi: Document location of documentation for
10748 machine built-in functions.
10750 2002-01-13 Christopher Faylor <cgf@redhat.com>
10752 * cppfiles.c (TEST_THRESHOLD): New macro.
10753 (SHOULD_MMAP): Ditto.
10754 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
10757 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
10759 * unroll.c (final_reg_note_copy): Properly handle
10761 (unroll_loops): Fix LOOP_CONDITION heuristics.
10763 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
10765 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
10766 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
10768 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
10770 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
10773 2002-01-14 Tom Rix <trix@redhat.com>
10775 * config/rs6000/rs6000.md: Fix typo with sradi.
10777 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
10779 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
10780 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
10781 (clrstrdi, clrstrsi): Adapt callers.
10783 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
10785 (movti splitter): Never use register 0 as base register.
10787 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
10789 * combine.c (simplify_shift_const): Always generate new rtx
10790 for shift expression instead of reusing given expression.
10792 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10794 * config/alpha/alpha.c (alpha_expand_mov): Don't call
10795 alpha_legitimize_address unless mode is Pmode.
10797 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
10799 * doc/md.texi (Modifiers): Document the '*' constraint for the
10802 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
10803 * doc/extend.texi (Function Attributes): 'interrupt' is valid
10806 2002-01-13 Richard Henderson <rth@redhat.com>
10808 * reload.c (find_reloads): Use a hard reg destination as reload reg
10809 for an input reload of the source.
10811 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10813 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
10816 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
10818 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
10819 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
10821 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
10823 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10825 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
10827 2002-01-12 Tom Rix <trix@redhat.com>
10829 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
10832 2002-01-12 Richard Henderson <rth@redhat.com>
10834 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
10836 * doc/invoke.texi: Update Alpha options.
10838 * doc/invoke.texi: Update i386 built-in function lists.
10840 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
10842 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
10843 referencing outside.
10845 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10847 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
10848 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
10849 offsets, and change line folding.
10850 * optabs.c (expand_binop): Remove warnings.
10851 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
10853 2002-01-12 Graham Stott <grahams@redhat.com>
10855 * attribs.c (handle_deprecated_attribute): constify WHAT.
10856 * diagnostic.c (warn_deprecated_use): Add braces, fixes
10857 dangling else warning and constify WHAT.
10858 * except.h (struct function, struct inline_remap): Move
10859 struct tag forward defs before all prototypes.
10860 (duplicate_eh_regions): Whitespace.
10862 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
10864 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
10865 MODE_BASE_REG_CLASS.
10866 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
10868 2002-01-12 Richard Henderson <rth@redhat.com>
10870 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
10871 (ix86_expand_vector_move): New.
10872 (bdesc_2arg): Remove andps, andnps, orps, xorps.
10873 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
10874 Remove old prefetch builtins. Special case the logicals removed above.
10875 (ix86_expand_builtin): Likewise.
10876 (safe_vector_operand): Use V4SFmode, not TImode.
10877 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
10878 (ix86_expand_timode_binop_builtin): New.
10879 * config/i386/i386-protos.h: Update.
10880 * config/i386/i386.h (enum ix86_builtins): Update.
10881 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
10882 Use ix86_expand_vector_move in vector move expanders.
10883 (movti_internal, movti_rex64): Add xorps alternative.
10884 (sse_clrv4sf): Rename and adjust from sse_clrti.
10885 (prefetch): Don't work so hard.
10886 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
10887 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
10888 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
10890 2002-01-11 Richard Henderson <rth@redhat.com>
10892 * config/i386/mmintrin.h: New file.
10893 * config/i386/xmmintrin.h: New file.
10894 * config.gcc (i?86-*-*): Add extra_headers.
10895 * simplify-rtx.c (simplify_unary_operation): Handle saturating
10897 (simplify_binary_operation): Handle saturating arithmetic codes.
10898 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
10899 not the lowpart subreg.
10900 (ix86_expand_builtin): Return a TImode dummy register instead of 0
10902 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
10904 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10906 * conflict.c (conflict_graph_compute): Free regsets when finished.
10907 * ssa.c (compute_coalesced_reg_partition): Likewise.
10909 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10911 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
10912 every where we allocate a register.
10914 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10916 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
10917 * lcm.c (compute_earliest, compute_farthest): Likewise.
10919 2002-01-11 Janis Johnson <janis187@us.ibm.com>
10921 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
10923 2002-01-11 Janis Johnson <janis187@us.ibm.com>
10925 * doc/rtl.texi (Insns): Fix 2 typos.
10927 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
10929 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
10930 options. Use @table @gcctabopt for MMIX options. Add index
10931 entries for MMIX options. Start new paragraph with first
10932 heading of the machine-dependent options.
10934 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
10937 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
10938 * combine.c (force_to_mode): Same.
10939 * reload1.c (clear_reload_reg_in_use): Same.
10941 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
10943 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
10946 2002-01-11 Andreas Jaeger <aj@suse.de>,
10947 Brad Lucier <lucier@math.purdue.edu>
10949 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
10952 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
10954 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
10955 Protect with IN_LIBGCC.
10956 (LINK_EH_SPEC): Add required trailing space.
10958 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
10960 * c-tree.h: Move function declarations so that they are listed
10961 under the filename which contains them.
10962 (check_identifier, finish_decl_top_level,
10963 lookup_name_current_level_global, shadow_record_fields): Remove.
10965 2002-01-11 Andreas Jaeger <aj@suse.de>
10967 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
10970 2002-01-10 Richard Henderson <rth@redhat.com>
10972 * config/alpha/alpha.c (print_operand): Add 'J'.
10973 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
10974 new operand with the sequence number for the lituse. When splitting
10975 the insns, use gen_movdi_er_high_g and generate a sequence number.
10976 (gen_movdi_er_high_g): Print the sequence number if non-zero.
10978 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
10980 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
10981 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
10983 (altivec_expand_builtin): Same.
10984 (altivec_expand_stv_builtin): New.
10986 * config/rs6000/rs6000.h (rs6000_builtins): Same.
10988 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
10989 ("altivec_lvehx"): New.
10990 ("altivec_lvewx"): New.
10991 ("altivec_lvxl"): New.
10992 ("altivec_lvx"): New.
10993 ("altivec_stvx"): New.
10994 ("altivec_stvebx"): New.
10995 ("altivec_stvehx"): New.
10996 ("altivec_stvewx"): New.
10997 ("altivec_stvxl"): New.
10999 2002-01-10 Richard Henderson <rth@redhat.com>
11001 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
11002 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
11003 care not to delete instructions twice.
11005 2002-01-10 Zack Weinberg <zack@codesourcery.com>
11007 * toplev.c: Don't declare environ (it's not used anywhere).
11008 * configure.in: Don't check for declaration of environ.
11009 * config/i386/xm-mingw32.h: Don't #define environ.
11010 * config.in, configure: Regenerate.
11012 2002-01-10 Zack Weinberg <zack@codesourcery.com>
11014 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
11015 * configure: Regenerate.
11017 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
11018 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
11019 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
11021 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
11022 LIMITS_H_TEST here, not in m68k/x-next.
11023 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
11024 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
11026 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
11027 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
11028 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
11030 * config/i386/x-djgpp: Renamed i386/t-djgpp.
11031 * config/m88k/x-dolph: Renamed m88k/t-dolph.
11032 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
11033 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
11034 replacement of quadlib.asm with quadlib.c.
11036 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
11037 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
11038 config/rs6000/xm-beos.h: Delete file.
11040 * config.gcc: Update to match above changes.
11042 2002-01-10 Kazu Hirata <kazu@hxi.com>
11044 * config/h8300/h8300.h: Fix comment typos.
11045 * config/h8300/h8300.md: Likewise.
11046 * config/h8300/lib1funcs.asm: Likewise.
11048 2002-01-10 Dale Johannesen <dalej@apple.com>
11050 PR optimization/5269
11051 * unroll.c (precondition_loop_p): Make *increment be the correct
11052 sign when n_iterations known, to avoid confusing caller.
11054 2002-01-10 Kazu Hirata <kazu@hxi.com>
11056 * doc/extend.texi (deprecated): Fix a typo.
11058 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
11060 * basic-block.h (update_br_prob_note): Declare.
11061 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
11062 (try_forward_edges): Care negative frequencies and update note.
11063 (outgoing_edges_match): Tweek conditional merging heuristics.
11064 (try_crossjump_to_edge): use update_br_prob_note.
11065 * cfglayout.c (fixup_reorder_chain): Likewise.
11066 * cfrtl.c (update_br_prob_note): New.
11067 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
11069 * i386.c (ix86_decompose_address): Return -1 if address contains
11071 (legitimate_address_p): Require ix86_decompose_address to return 1.
11073 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
11074 (cprop_insn): Likewise.
11076 2002-01-10 Kazu Hirata <kazu@hxi.com>
11078 * toplev.c: Fix formatting.
11079 * tree.c: Likewise.
11080 * tree-dump.c: Likewise.
11081 * unroll.c: Likewise.
11082 * unwind-dw2.c: Likewise.
11083 * unwind-dw2-fde.c: Likewise.
11084 * unwind-dw2-fde-glibc.c: Likewise.
11085 * unwind-sjlj.c: Likewise.
11087 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
11089 * doc/invoke.texi: Document PDP-11 options.
11091 2002-01-10 Kazu Hirata <kazu@hxi.com>
11093 * config/h8300/h8300.h: Fix formatting.
11095 2002-01-10 Ira Ruben <ira@apple.com>
11097 Add __attribute__ ((deprecated)).
11098 * extend.texi: Document __attribute__ ((deprecated)).
11099 * invoke.texi: Document -Wno-deprecated-declarations.
11100 * testsuite/g++.dg/other/deprecated.C: New C++ test.
11101 * testsuite/gcc.dg/deprecated.c: New C test.
11102 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
11103 (c_common_attribute_table): Add "deprecated" entry.
11104 (handle_deprecated_attribute): New function.
11105 * c-decl.c (deprecated_states): New enum.
11106 deprecated_state: State of "deprecated" handling.
11107 (start_decl): Set deprecated_state based on attributes.
11108 (grokdeclarator): Test for deprecated uses, propagate attribute.
11109 * c-typeck.c (build_component_ref): Test for deprecated fields.
11110 (build_external_ref): Test for deprecated primaries.
11111 * diagnostic.c (warn_deprecated_use) New function to issue
11112 warnings about __attribute__ ((depricated)) references.
11113 * flags.h (warn_deprecated_decl): Extern declared for
11114 -W[no-]deprecated-declarations option.
11115 * print-tree.c (print_node): Show deprecated flag status.
11116 * toplev.c (warn_deprecated_decl): Defined.
11117 (W_options): Added "deprecated-declaration".
11118 * toplev.h (warn_deprecated_use): Extern declared.
11119 * tree.h (struct tree_common): Define deprecated_flag.
11120 (TREE_DEPRECATED): New macro to access flag.
11121 * cp/call.c (build_call): Test for deprecated calls.
11122 * cp/class.c (add_implicitly_declared_members): Set global
11123 flag to tell grokdeclarator to not issue deprecated warnings.
11124 * cp/cp-tree.h: Add extern for adding_implicit_members.
11125 * cp/decl.c (deprecated_states): New enum.
11126 (start_decl): Set deprecated_state based on attributes.
11127 (grokdeclarator): Test for deprecated uses, propagate attribute.
11128 * cp/lex.c (do_identifier): Test for deprecated primaries.
11129 * cp/typeck.c (build_component_ref): Test for deprecated fields.
11131 2002-01-10 Ira Ruben <ira@apple.com>
11133 Fix to assign attributes to inline member functions.
11134 * cp/decl.c (start_method): Handle attrlist.
11136 2002-01-10 Kazu Hirata <kazu@hxi.com>
11138 * combine.c (expand_field_assignment): Use subreg_lsb().
11140 2002-01-10 David Edelsohn <edelsohn@gnu.org>
11142 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
11143 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
11144 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
11145 Recurse for any operand of AND as long as constant is non-zero.
11147 2002-01-10 Kazu Hirata <kazu@hxi.com>
11149 * config/h8300/h8300.md: Remove constraints from expanders.
11151 2002-01-10 Kazu Hirata <kazu@hxi.com>
11153 * varasm.c: Fix formatting.
11154 * varray.c: Likewise.
11155 * vmsdbgout.c: Likewise.
11156 * xcoffout.c: Likewise.
11158 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
11160 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
11161 update edge probabilities to match.
11163 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
11165 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
11167 * doc/languages.texi, doc/sourcebuild.texi: New files.
11168 * doc/configfiles.texi: Make a subsubsection. Update.
11169 * doc/configterms.texi: Add @node. Remove warning that this isn't
11170 instructions for building GCC.
11171 * doc/makefile.texi: Make a subsection.
11172 * doc/gccint.texi: Update.
11174 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
11176 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
11178 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
11180 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
11182 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
11184 * optabs.c (expand_fix): Look for wider integer modes first.
11186 * i386.md (mov?f): Avoid the fake const double trick for medium
11188 (min?f*/max?f*): Prohibit memory operands for i387 variant.
11189 (fop_df_4): Disable for SSE compilation.
11191 2002-01-10 Graham Stott <grahams@redhat.com>
11193 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
11194 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
11196 2002-01-10 Richard Henderson <rth@redhat.com>
11198 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
11200 2002-01-10 Richard Henderson <rth@redhat.com>
11202 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
11203 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
11205 2002-01-10 Kazu Hirata <kazu@hxi.com>
11207 * combine.c (can_combine_p): Fix a comment typo.
11209 2002-01-09 Zack Weinberg <zack@codesourcery.com>
11211 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
11212 empty list correctly. Change loop index $t to $f for
11213 consistency with rest of Makefile.
11215 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
11217 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
11218 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
11220 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
11221 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
11222 (altivec_init_builtins): Same.
11223 (altivec_expand_unop_builtin): Return NULL_RTX on error.
11224 (altivec_expand_binop_builtin): Same.
11225 (altivec_expand_ternop_builtin): Same.
11228 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
11229 ("altivec_vctuxs"): Fix typo.
11230 ("altivec_vnmsubfp"): Same.
11231 ("altivec_dssall"): New.
11232 ("altivec_mfvscr"): New.
11233 ("altivec_dss"): New.
11234 ("altivec_lvsl"): New.
11235 ("altivec_lvsr"): New.
11236 ("altivec_dstt"): New.
11237 ("altivec_dstst"): New.
11238 ("altivec_dststt"): New.
11239 ("altivec_dst"): New.
11241 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
11242 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
11244 2002-01-09 Richard Henderson <rth@redhat.com>
11246 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
11248 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
11250 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
11252 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
11254 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
11256 2002-01-09 Kazu Hirata <kazu@hxi.com>
11258 * read-rtl.c: Fix formatting.
11259 * real.c: Likewise.
11260 * regclass.c: Likewise.
11261 * regrename.c: Likewise.
11262 * reg-stack.c: Likewise.
11263 * reload1.c: Likewise.
11264 * reload.c: Likewise.
11267 2002-01-09 Kazu Hirata <kazu@hxi.com>
11269 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
11270 to extract items in the expr_list chain.
11272 2002-01-09 Richard Henderson <rth@redhat.com>
11274 * config/vax/vax.c (vax_rtx_cost): Never abort.
11276 * config/vax/vax.h (REAL_ARITHMETIC): Define.
11278 2002-01-09 Jan Hubicka <jh@suse.cz>
11280 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
11282 2002-01-09 Richard Henderson <rth@redhat.com>
11284 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
11285 Unify code from various alternatives.
11287 2002-01-09 Richard Henderson <rth@redhat.com>
11289 * regrename.c (copy_value): Ignore the copy if the source register
11290 is present in the value chain with a narrower mode.
11292 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11294 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
11295 for the c4x target. Also improve layout.
11297 2002-01-09 Richard Henderson <rth@redhat.com>
11299 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
11300 * config/m32r/m32r.md (and ior xor splitters): Swap operands
11301 to match insn patterns.
11303 2002-01-09 Richard Henderson <rth@redhat.com>
11305 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
11306 (copyprop_hardreg_forward_1): Likewise.
11308 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
11310 * pa.md (decrement_and_branch_until_zero): Change predicate for
11311 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
11313 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
11315 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
11316 gets undefined. For Darwin.
11318 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11320 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
11322 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11324 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
11326 2002-01-08 Richard Henderson <rth@redhat.com>
11328 * regrename.c (copy_value): Ignore overlapping copies.
11330 2002-01-08 Richard Henderson <rth@redhat.com>
11332 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
11333 as needed to avoid shared structure.
11335 2002-01-08 Kazu Hirata <kazu@hxi.com>
11337 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
11340 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
11342 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
11343 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
11344 documentation of obsolete macros.
11345 * system.h: Poison these macros.
11346 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
11347 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
11348 config/c4x/c4x.h, config/clipper/clipper.h,
11349 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
11350 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
11351 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
11352 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
11353 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
11354 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
11355 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
11356 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
11357 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
11358 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
11359 config/sparc/sparc.h, config/stormy16/stormy16.h,
11360 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
11361 definitions and commented out definitions of obsolete macros.
11362 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
11363 of MAX_INT_TYPE_SIZE.
11365 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
11367 * config/s390/s390.c (s390_preferred_reload_class): Never
11368 return ADDR_REGS if it isn't a subset of the given class.
11369 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
11370 FP_REGS, but all superclasses as well.
11372 * config/s390/s390.c (s390_function_profiler): Fix thinko.
11374 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
11375 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
11376 must not be a const_int.
11378 2002-01-08 Richard Henderson <rth@redhat.com>
11380 * Makefile.in (toplev.o): Depend on options.h.
11381 (gcc.o): Depend on specs.h.
11383 2002-01-08 Jakub Jelinek <jakub@redhat.com>
11385 * expr.c (store_expr): Convert VOIDmode constants back to target's
11388 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11390 * doc/invoke.texi: Markup gcc as @command. Refer to
11391 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
11392 of http://gcc.gnu.org/thanks.html.
11394 2002-01-08 Dale Johannesen <dalej@apple.com>
11396 * config/rs6000/rs6000.md: Add missing int register
11397 target case to movdf_low.
11399 2002-01-08 Zack Weinberg <zack@codesourcery.com>
11401 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
11402 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
11403 (cppinit.o): Depend on except.h.
11404 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
11405 s-specs): New rules.
11407 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
11408 Don't create specs.h/options.h/gencheck.h here. Remove
11409 unnecessary variable settings from last argument of AC_OUTPUT.
11410 * config.in, configure: Regenerate.
11411 * intl.c: Hardcode package name as "gcc".
11413 * cppinit.c: Include except.h.
11414 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
11416 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
11417 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
11418 (!)USING_SJLJ_EXCEPTIONS.
11419 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
11421 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
11423 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
11424 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
11425 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
11426 documentation of obsolete macros.
11427 * system.h: Poison these macros.
11428 * config/d30v/d30v.h, config/ns32k/encore.h,
11429 config/stormy16/stormy16.h: Remove definitions and commented out
11430 definitions of obsolete macros.
11432 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
11434 * objc/objc-act.c (handle_class_ref): Mark the declaration of
11435 %sobjc_class_ref_%s as used - to prevent unwanted compiler
11438 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
11440 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
11441 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
11442 to insn adjusting stack/frame pointer.
11443 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
11444 accept operands that cause the insn to be non-splittable.
11446 2002-01-08 Graham Stott <grahams@redhat.com>
11448 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
11449 (C_TYPE_FIELDS_VOLATILE): Likewise.
11450 (C_TYPE_BEING_DEFINED): Likewise.
11451 (C_IS_RESERVED_WORD): Likewise.
11452 (C_TYPE_VARIABLE_SIZE): Likewise.
11453 (C_DECL_VARIABLE_SIZE): Likewise.
11454 (C_MISSING_PROTOTYPE_WARNED): Likewise.
11455 (C_SET_EXP_ORIGINAL_CODE): Likewise.
11456 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
11458 (C_DECL_ANTICIPATED): Likewise.
11459 (c_build_type_variant): Add parenthesis.
11461 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
11463 * gcc.c (option_map): Remove --version.
11464 (process_command): Handle -fversion following the GNU Coding
11465 Standards. Partially addresses PR other/704.
11467 2002-01-08 Graham Stott <grahams@redhat.com>
11469 * combine.c (combine_instructions): Fix typo.
11471 2002-01-08 Graham Stott <grahams@redhat.com>
11473 * debug.h: Use "tree" and "rtx" throughout.
11475 * debug.c: Likewise.
11477 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
11479 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
11480 constant pool, use the pool's version of the symbol instead.
11482 2002-01-07 Richard Henderson <rth@redhat.com>
11484 * regrename.c (find_oldest_value_reg): Ignore the value chain if
11485 the original register was copied in a mode with a fewer number of
11486 hard registers than the desired mode.
11487 (copyprop_hardreg_forward_1): Likewise.
11488 (debug_value_data): Fix loop test.
11489 * toplev.c (parse_options_and_default_flags): Reenable
11490 -fcprop-registers at -O1.
11492 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
11494 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
11495 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
11497 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
11500 * config/rs6000/rs6000.md: Add altivec predicate patterns.
11502 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
11504 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
11505 (pa_output_function_prologue): Output local label at the beginning of
11506 the prologue when profiling.
11507 (hppa_profile_hook): Use the local label rather than the function label.
11508 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
11510 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
11512 * config/rs6000/rs6000.c (print_operand): Remove extra space.
11513 (altivec_expand_unop_builtin): Fix thinko.
11514 (altivec_expand_binop_builtin): Same.
11515 (altivec_expand_ternop_builtin): Same.
11516 (altivec_expand_builtin): Same.
11518 2002-01-07 Richard Henderson <rth@redhat.com>
11520 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
11522 2002-01-07 Jason Merrill <jason@redhat.com>
11524 * unwind-dw2.c (execute_cfa_program): Use < again.
11526 2002-01-07 Jakub Jelinek <jakub@redhat.com>
11528 * predict.c (combine_predictions_for_insn): Avoid division by zero.
11530 2002-01-07 Jakub Jelinek <jakub@redhat.com>
11532 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
11533 Don't allow -1 - x -> ~x simplifications in the first pass.
11535 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
11537 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
11539 (altivec_expand_binop_builtin): Same.
11540 (altivec_expand_unop_builtin): Same.
11541 (print_operand): Fix typo.
11542 (bdesc_1arg): Add vupk* variants.
11544 * rs6000.h (rs6000_builtins): Add vupk* enums.
11546 * rs6000.md: Add altivec_vupk* variants.
11548 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
11550 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
11551 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
11552 and last update dates.
11554 2002-01-07 Janis Johnson <janis187@us.ibm.com>
11556 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
11558 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
11560 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
11561 * config/avr/avr.h (CPP_SPEC): Likewise.
11562 (LINK_SPEC): Likewise.
11563 (CRT_BINUTILS_SPECS): Likewise.
11564 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11565 * doc/invoke.texi (AVR Options): Document them.
11567 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
11569 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
11572 2002-01-07 Graham Stott <grahams@redhat.com>
11574 * config/i386/i386.h: Update copyright date.
11575 (HALF_PIC_PTR): Add parenthesis.
11576 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
11577 (CONSTANT_ALIGNMENT): Add parenthesis.
11578 (DATA_ALIGNMENT): Likewise.
11579 (LOCAL_ALIGNMENT): Likewise.
11580 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
11581 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
11582 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
11583 (HARD_REGNO_NREGS): Add paranethesis.
11584 (VALID_SSE_REG_MODE): Whitespace.
11585 (VALID_MMX_REG_MODE): Whitespace.
11586 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
11587 (ix86_hard_regno_mode_ok): Add parenthesis.
11588 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
11589 (RETURN_IN_MEMORY): Whitespace.
11590 (N_REG_CLASSES): Add parenthesis.
11591 (INTEGER_CLASS_P): Add parenthesis and wrap.
11592 (FLOAT_CLASS_P): Likewise.
11593 (SSE_CLASS_P): Likewise.
11594 (MMX_CLASS_P): Likewise.
11595 (MAYBE_INTEGER_CLASS_P): Likewise.
11596 (MAYBE_FLOAT_CLASS_P): Likewise.
11597 (MAYBE_SSE_CLASS_P): Likewise.
11598 (MAYBE_MMX_CLASS_P): Likewise.
11599 (Q_CLASS_P): Likewise.
11600 (GENERAL_REGNO_P): Uppercase macro parameter.
11601 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
11602 (FP_REGNO_P): Likewise.
11603 (ANY_FP_REGNO_P): Uppercase macro parameter.
11604 (SSE_REGNO_P): Likewise.
11605 (SSE_REGNO): Likewise.
11606 (SSE_REG_P): Likewise.
11607 (SSE_FLOAT_MODE_P): Likewise.
11608 (MMX_REGNO_P): Likewise.
11609 (MMX_REG_P):Likewise.
11610 (STACK_REG_P): Likewise.
11611 (NON_STACK_REG_P): Likewise.
11612 (STACK_TOP_P): Likewise.
11613 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
11614 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
11615 (SECONDARY_MEMORY_NEEDED): Likewise.
11616 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
11617 (MD_ASM_CLOBBERS): Whitespace and wrap.
11618 (MUST_PASS_IN_STACK): Whitespace and wrap.
11619 (RETURN_POPS_ARGS): Add parenthesis.
11620 (INIT_CUMULATIVE_ARGS): Likewise.
11621 (FUNCTION_ARG): Likewise.
11622 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
11623 (SETUP_INCOMING_VARARGS): Likewise.
11624 (BUILD_VA_LIST_TYPE): Add parenthesis.
11625 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
11627 (EXPAND_BUILTIN_VA_ARG): Likewise.
11628 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
11629 (INITIALIZE_TRAMPOLINE): Add parenthesis.
11630 (INITIAL_ELIMINATION_OFFSET): Likewise.
11631 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
11632 (REGNO_OK_FOR_BASE_P): Likewise.
11633 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
11634 (REGNO_OK_FOR_DIREG_P): Likewise.
11635 (REG_OK_FOR_INDEX_P): Whitespace.
11636 (REG_OK_FOR_BASE_P): Whitespace.
11637 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
11639 (FIND_BASE_TERM): Fix typo.
11640 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
11641 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
11642 (SYMBOLIC_CONST; Whitespace.
11643 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
11644 (ENCODE_SECTION_INFO): Whitespace.
11645 (FINALIZE_PIC): Remove do { ... } while (0).
11646 (PROMOTE_MODE): Wrap in do { ... } while (0).
11647 (CONST_COSTS): Whitespace.
11648 (RTX_COSTS): Add paramethesis, whitespace and wrap.
11649 (REGISTER_MOVE_COST): Add parenthesis.
11650 (MEMORY_MOVE_COST): Likewise.
11651 (EXTRA_CC_MODES): Whitespace.
11652 (SELECT_CC_MODE): Add parenthesis and whitespace.
11653 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
11654 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
11655 (ASM_OUTPUT_LABEL): Add paramethesis.
11656 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
11657 (ASM_OUTPUT_REG_POP): Likewise.
11658 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
11659 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11661 * config/i386/i386.c: Update copyright.
11662 (CHECK_STACK_LIMIT): Add parenthesis.
11663 (AT_BP): Uppercase macro parameter.
11664 (x86_64_int_parameter_registers): Constify.
11665 (x86_64_int_return_registers): Likewise.
11666 (ix86_compare_op0): Use rtx.
11667 (construct_container): Constify INTREG parameter.
11668 (function_arg): Use rtx.
11670 * diagnostic.h: Update copyright date.
11671 (output_buffer_state): Add parenthesis.
11672 (output_buffer_format_args): Likewise.
11674 * combine.c (combine_instructions): Replace XEXP (links, 0)
11677 2002-01-06 H.J. Lu <hjl@gnu.org>
11679 * cfgcleanup.c (thread_jump): Fix 2 typos.
11681 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
11683 * config.gcc: Add support for --enable-altivec.
11685 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
11687 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
11689 2002-01-06 Jakub Jelinek <jakub@redhat.com>
11691 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
11692 __objc_class_name_*.
11694 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
11696 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
11698 2002-01-06 Richard Henderson <rth@redhat.com>
11700 * reorg.c (emit_delay_sequence): Remove death notes, not merely
11701 nop them out. Increment label reference count for REG_LABEL.
11702 (fill_slots_from_thread): Frob label reference count around
11703 delete_related_insns.
11705 2002-01-05 Richard Henderson <rth@redhat.com>
11707 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
11710 2002-01-05 Richard Henderson <rth@redhat.com>
11712 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
11713 * integrate.c (output_inline_function): Likewise.
11714 * toplev.c (rest_of_compilation): Do it here instead. Move call
11715 to remove_unnecessary_notes after emitting abstract instance.
11716 Force an emitted nested function to have its parent emited as well.
11717 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
11719 (rtl_for_decl_location): Do not look at reload data structures
11720 before reload has run.
11722 2002-01-05 Kazu Hirata <kazu@hxi.com>
11724 * cse.c: Fix formatting.
11725 * dwarf2asm.c: Likewise.
11726 * dwarf2out.c: Likewise.
11727 * explow.c: Likewise.
11728 * expmed.c: Likewise.
11729 * function.c: Likewise.
11730 * gcov.c: Likewise.
11731 * gencheck.c: Likewise.
11732 * genrecog.c: Likewise.
11733 * ggc-common.c: Likewise.
11734 * ggc-page.c: Likewise.
11735 * global.c: Likewise.
11737 2002-01-05 Kazu Hirata <kazu@hxi.com>
11739 * combine.c: Fix formatting.
11741 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
11744 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
11746 2002-01-05 David Edelsohn <edelsohn@gnu.org>
11748 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
11749 as 1 for __powerpc64__ as well.
11751 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
11753 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
11756 2002-01-05 Daniel Berlin <dan@dberlin.org>
11758 * lcm.c: Revert change, due to performance regression it causes on
11759 SPEC because it's slightly more conservative (sigh, I hate
11762 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
11764 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
11766 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
11768 * doc/cppinternals.texi: Update.
11770 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
11772 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
11773 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
11775 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
11776 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
11777 kludge for pre-october-14th mmix versions to handle new-found bug
11778 with PUSHJ/PUSHGO and the register stack.
11779 * config/mmix/mmix.h (struct machine_function): Rename member
11780 has_call_value_without_parameters to has_call_without_parameters.
11781 All referers changed.
11782 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
11783 TARGET_MASK_BRANCH_PREDICT): New macros.
11784 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
11785 -mno-reg-stack-fill-bug-workaround.
11786 * config/mmix/mmix.md ("call"): Set struct machine member
11787 has_call_without_parameters.
11789 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
11791 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
11793 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
11795 * cfgcleanup.c: Include tm_p.h
11796 (mark_effect): Fix handling of hard register; fix handling of SET
11798 2002-01-04 Kazu Hirata <kazu@hxi.com>
11800 * config/h8300/h8300.md (anonymous patterns): Check that
11801 operands are registers before using REGNO on them.
11803 2002-01-03 Roland McGrath <roland@frob.com>
11805 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
11807 2002-01-04 Jakub Jelinek <jakub@redhat.com>
11809 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
11810 * c-common.h (genrtl_expr_stmt_value): Likewise.
11811 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
11812 (expand_expr_stmt_value): Add maybe_last argument.
11813 Don't warn about statement with no effect if it is the last statement
11814 in expression statement.
11815 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
11816 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
11817 expand_expr_stmt_value.
11818 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
11819 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
11820 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
11821 as maybe_last to expand_expr_stmt_value.
11823 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
11825 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
11826 be passed in, do not build it.
11827 (c_begin_if_stmt): New function.
11828 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
11829 * c-common.h (c_expand_start_cond): Update prototype.
11830 (c_begin_if_stmt): Prototype new function.
11831 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
11832 * c-parse.in (if_prefix): Use c_begin_if_stmt,
11833 c_begin_while_stmt and c_finish_while_stmt_cond.
11835 2002-01-04 William Cohen <wcohen@redhat.com>
11837 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
11838 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
11839 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
11840 * config/pa/som.h (ASM_FILE_START): Likewise.
11842 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
11844 * lcm.c: Include df.h.
11845 Add available_transfer_function prototype.
11846 (compute_available): Rework to use iterative dataflow framework.
11847 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
11848 with bb_info in df.h
11849 (available_transfer_function): New function.
11851 * Makefile.in (lcm.o): add df.h to dependencies.
11853 2002-01-04 Richard Henderson <rth@redhat.com>
11855 * config/alpha/alpha.c (some_operand): Accept HIGH.
11856 (input_operand): Likewise; accept simple references to globals.
11857 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
11858 (alpha_const_double_ok_for_letter_p): Likewise.
11859 (alpha_extra_constraint): Likewise.
11860 (alpha_preferred_reload_class): Likewise. Do not force
11861 symbolic constants to memory.
11862 (alpha_legitimate_address_p): Accept simple references
11863 to small_symbolic_operand.
11864 (alpha_legitimize_address): New arg scratch. Be prepared to be
11865 called when no_new_pseudos. Emit simple symbolic references.
11866 Split integers into low, high, and rest.
11867 (alpha_expand_mov): Use alpha_legitimize_address.
11868 (some_small_symbolic_mem_operand): New.
11869 (split_small_symbolic_mem_operand): New.
11870 * config/alpha/alpha-protos.h: Update.
11871 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
11872 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
11873 (EXTRA_CONSTRAINT): Likewise.
11874 (PREFERRED_RELOAD_CLASS): Likewise.
11875 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
11876 (PREDICATE_CODES): Update.
11877 * config/alpha/alpha.md: New post-reload splitters to convert
11878 simplfied symbolic operands to the form that references $29.
11879 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
11880 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
11882 2002-01-03 Richard Henderson <rth@redhat.com>
11884 * local-alloc.c (function_invariant_p): Update commentary.
11886 2002-01-04 H.J. Lu <hjl@gnu.org>
11888 * toplev.c (rest_of_compilation): Fix a typo when calling
11891 2002-01-03 Kazu Hirata <kazu@hxi.com>
11893 * c-common.c: Fix formatting.
11894 * diagnostic.c: Likewise.
11895 * doloop.c: Likewise.
11896 * dwarf2out.c: Likewise.
11898 2002-01-03 Kazu Hirata <kazu@hxi.com>
11900 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
11901 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
11903 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
11905 * cpperror.c: Update comments and copyright.
11906 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
11907 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
11909 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
11911 * collect2.c (main): Use strcmp when testing for "-shared".
11913 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
11915 * cppmacro.c: Don't include intl.h. Update comments.
11916 (new_number_token): Allocate enough buffer for 64-bit unsigned
11917 integers; update prototype.
11918 * cppmain.c: Update comments.
11920 2002-01-03 William Cohen <wcohen@redhat.com>
11922 * function.h (struct function): Add profile.
11923 (current_function_profile): New.
11924 doc/extend.texi: Update documentation.
11925 * final.c (final_start_function): Use current_function_profile
11926 instead of profile_flag.
11927 (profile_after_prologue): Likewise.
11928 * function.c (expand_function_start): Likewise.
11929 (expand_function_start): Likewise.
11930 * config/alpha/alpha.c (direct_call_operand):
11931 (alpha_does_function_need_gp): Likewise.
11932 (alpha_expand_prologue): Likewise.
11933 * config/arm/arm.c (arm_expand_prologue): Likewise.
11934 thumb_expand_prologue: Likewise.
11935 * config/d30v/d30v.c (d30v_stack_info): Likewise.
11936 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
11937 (fr30_expand_prologue): Likewise.
11938 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
11939 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
11940 * config/i386/i386.h (FINALIZE_PIC): Likewise.
11941 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
11942 * config/i960/i960.c (i960_output_function_prologue): Likewise.
11943 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
11944 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
11945 (m32r_expand_prologue): Likewise.
11946 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
11947 (m88k_expand_prologue): Likewise.
11948 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
11949 * config/mips/mips.c (compute_frame_size): Likewise.
11950 (mips_expand_prologue): Likewise.
11951 (mips_can_use_return_insn): Likewise.
11952 * config/pa/elf.h (ASM_FILE_START): Likewise.
11953 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
11954 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
11955 * config/pa/som.h (ASM_FILE_START): Likewise.
11956 * config/romp/romp.c (romp_using_r14): Likewise.
11957 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
11958 (rs6000_stack_info): Likewise.
11959 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11960 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
11961 * config/v850/v850.c (compute_register_save_size): Likewise.
11963 2002-01-03 Jakub Jelinek <jakub@redhat.com>
11965 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
11966 gen_lowpart_common fails, use gen_lowpart_SUBREG.
11968 2002-01-03 Turly O'Connor <turly@apple.com>
11970 * darwin.c (machopic_output_possible_stub_label): Don't generate
11971 stub routines for pseudo-stubs which we've just defined.
11973 2002-01-03 Kazu Hirata <kazu@hxi.com>
11975 * builtins.c: Fix formatting.
11976 * c-typeck.c: Likewise.
11977 * combine.c: Likewise.
11978 * expr.c: Likewise.
11979 * loop.c: Likewise.
11981 2002-01-03 Andreas Schwab <schwab@suse.de>
11983 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
11984 and return true if _cpp_push_next_buffer pushed a new include
11986 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
11987 _cpp_pop_file_buffer did not push a new file.
11988 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
11990 2002-01-02 Eric Christopher <echristo@redhat.com>
11992 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
11993 FIND_REG_INC_NOTE call. Update copyright.
11994 * loop.c (canonicalize_condition): Ditto.
11995 * reorg.c (delete_scheduled_jump): Ditto.
11997 2002-01-03 Kazu Hirata <kazu@hxi.com>
11999 * gcse.c: Fix formatting.
12001 2002-01-03 Graham Stott <grahams@redhat.com>
12003 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
12004 forward defs for struct tags rtx_def, union_tree, rtvec_def
12005 also output corresponding typedefs for rtx, tree, and rtvec.
12007 * system.h: Move forward defs for struct tags rtx_def, union_tree,
12008 rtvec_def along with corresponding typedefs for rtx, tree, and
12009 rtvec to config.h, hconfig.h, tconfig.h.
12011 2002-01-03 Graham Stott <grahams@redhat.com>
12013 * tree.h: Update copyright date.
12014 (IS_EXPR_CODE_CLASS): Add parenthesis.
12015 (TREE_SET_CODE): Add whitespace.
12016 (TREE_CHECK): Add parenthesis.
12017 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
12018 (CST_OR_CONSTRUCTOR_CHECK):
12019 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
12020 (TREE_SYMBOL_REFERENCED): Whitespace.
12021 (INT_CST_LT): Likewise.
12022 (INT_CST_LT_UNSIGNED): Likewise.
12023 (tree_real_cst): Unwrap comment.
12024 (tree_string): Likewise.
12025 (tree_complex): Likewise.
12026 (IDENTIFIER_POINTER): correct cast.
12027 (SAVE_EXPR_CONTEXT): Whitespace.
12028 (EXPR_WFL_FILENAME_NODE): Likewise.
12029 (EXPR_WFL_FILENAME): Remove parenthesis.
12030 (DECL_ORIGIN): Add parenthesis.
12031 (DECL_FROM_INLINE): Use NULL_TREE.
12032 (build_int_2): Whitespace.
12033 (build_type_variant): Add parenthesis.
12035 * gcc/jcf-parse.c: Update copyright date.
12036 (yyparse): Constify resource_filename.
12038 2002-01-03 Graham Stott <grahams@redhat.com>
12040 * rtl.h: Update copyright date.
12041 (RTL_CHECK1): Wrap long line.
12042 (RTL_CHECK2): Likewise.
12043 (RTL_CHECKC1): Wrap long line and whitespace.
12044 (RTL_CHECKC2): Likewise.
12045 (XWINT): Whitespace.
12051 (XBITMAP): Likewise.
12053 (XBBDEF): Likewise.
12055 (X0WINT): Likewise.
12057 (X0UINT): Likewise.
12061 (X0MODE): Likewise.
12062 (X0BITMAP): Likewise.
12063 (X0TREE): Likewise.
12064 (X0BBDEF): Likewise.
12065 (X0ADVFLAGS): Likewise.
12066 (X0CSELIB): Likewise.
12067 (X0MEMATTR): Likewise.
12068 (XCWINT): Likewise.
12070 (XCUINT): Likewise.
12074 (XCMODE): Likewise.
12075 (XCBITMAP): Likewise.
12076 (XCTREE): Likewise.
12077 (XCBBDEF): Likewise.
12078 (XCADVFLAGS): Likewise.
12079 (XCCSELIB): Likewise.
12080 (XC2EXP): Likewise.
12081 (INSN_UID): Likewise.
12082 (PREV_INSN): Likewise.
12083 (PATTERN): Likewise.
12084 (INSN_CODE): Likewise.
12085 (PUT_REG_NOTE_KIND): Likewise.
12086 (CODE_LABEL_NUMBER): Likewise.
12087 (NOTE_SOURCE_FILE): Likewise.
12088 (NOTE_BLOCK): Likewise.
12089 (NOTE_EH_HANDLER): Likewise.
12090 (NOTE_RANGE_INFO): Likewise.
12091 (NOTE_LIVE_INFO): Likewise.
12092 (NOTE_BASIC_BLOCK): Likewise.
12093 (NOTE_EXPECTED_VALUE): Likewise.
12094 (NOTE_LINE_NUMBER): Likewise.
12095 (LABEL_NAME): Likewise.
12096 (LABEL_NUSES): Likewise.
12097 (LABEL_ALTERNATE_NAME): Likewise.
12098 (ADDRESSOF_DECL): Likewise.
12099 (JUMP_LABEL): Likewise.
12100 (LABEL_NEXTREF): Likewise.
12102 (ORIGINAL_REGNO: Likewise.
12103 (HARD_REGISTER_NUM_P): Add parenthesis.
12104 (SUBREG_REG): Whitespace.
12105 (SUBREG_BYTE): Likewise.
12106 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
12107 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
12108 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
12109 (ASM_OPERANDS_INPUT_VEC): Likewise.
12110 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
12111 (ASM_OPERANDS_INPUT): Likewise.
12112 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
12113 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
12114 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
12115 (ASM_OPERANDS_INPUT_MODE): Likewise.
12116 (ASM_OPERANDS_SOURCE_FILE): Likewise.
12117 (ASM_OPERANDS_SOURCE_LINE): Likewise.
12118 (MEM_SET_IN_STRUCT_P): Minor reformat.
12119 (TRAP_CONDITION): Whitespace.
12120 (TRAP_CODE): Likewise.
12121 (COND_EXEC_TEST): Likewise.
12122 (COND_EXEC_CODE): Likewise.
12123 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
12124 (PHI_NODE_P): Add parenthesis.
12125 (plus_constant): Whitespace and add parenthesis.
12127 2002-01-03 Kazu Hirata <kazu@hxi.com>
12129 * config/avr/avr.c: Fix comment typos.
12130 * config/c4x/c4x.md: Likewise.
12131 * config/dsp16xx/dsp16xx.h: Likewise.
12132 * config/dsp16xx/dsp16xx.md: Likewise.
12133 * config/i386/i386.md: Likewise.
12134 * config/ia64/ia64.c: Likewise.
12135 * config/m32r/m32r.h: Likewise.
12136 * config/m68hc11/m68hc11.md: Likewise.
12137 * config/mmix/mmix.c: Likewise.
12138 * config/mn10200/mn10200.c: Likewise.
12139 * config/romp/romp.c: Likewise.
12140 * config/sh/sh.c: Likewise.
12141 * config/stormy16/stormy16.c: Likewise.
12142 * config/stormy16/stormy16.h: Likewise.
12143 * config/stormy16/stormy16.md: Likewise.
12145 2002-01-03 Graham Stott <grahams@redhat.com>
12147 * loop.h: Update copyright date.
12148 (LOOP_MOVABLES): Fix typo.
12149 (LOOP_REGS): Likewise.
12150 (LOOP_IVS): Likewise.
12152 2002-01-03 Graham Stott <grahams@redhat.com>
12154 * cppinit.c: Update copyright date.
12155 Don't include output.h
12156 * Makefile.in: Update copyright date.
12159 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
12162 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
12163 (-pthread) Add to RS/6000 options.
12165 2002-01-02 Kazu Hirata <kazu@hxi.com>
12167 * except.c: Fix comment typos.
12168 * loop.c: Likewise.
12169 * varasm.c: Likewise.
12170 * doc/tm.texi: Fix a typo.
12172 2002-01-02 Jakub Jelinek <jakub@redhat.com>
12174 * c-typeck.c (output_init_element): Allow initializing static storage
12175 duration objects with compound literals.
12177 2002-01-02 Richard Henderson <rth@redhat.com>
12179 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
12182 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12184 * gcc.c (default_compilers): Const-ify.
12185 * mips-tdump.c (stab_names): Likewise.
12186 * mips-tfile.c (map_coff_types, map_coff_storage,
12187 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
12188 pseudo_ops_t, pseudo_ops): Likewise.
12189 * protoize.c (default_include): Likewise
12191 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
12192 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
12193 Add array size in declaration.
12194 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
12195 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
12196 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
12197 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
12198 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
12199 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
12200 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
12201 emtens, make_nan): Const-ify.
12202 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
12203 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
12205 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
12207 * config.gcc (ia64-*-*): Set extra_headers.
12208 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
12209 * config/alpha/t-osf: Remove.
12210 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
12212 2002-01-02 David Edelsohn <edelsohn@gnu.org>
12214 * config/rs6000/t-aix43: Revert previous change.
12216 2002-01-02 Jason Merrill <jason@redhat.com>
12218 * c-decl.c (c_expand_body): Call outlining_inline_function when
12219 emitting an inline function out of line.
12221 2002-01-02 Richard Henderson <rth@redhat.com>
12223 * dwarf2out.c (limbo_die_node): Add created_for member.
12224 (new_die): New argument created_for. Update all callers.
12225 (mark_limbo_die_list): New.
12226 (dwarf2out_init): Register limbo_die_list as a root.
12227 (dwarf2out_finish): Force insert limbo dies into their function
12230 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
12233 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
12235 2002-01-02 Kazu Hirata <kazu@hxi.com>
12237 * config/h8300/fixunssfsi.c: Update copyright.
12240 * config/h8300/h8300.c: Update copyright.
12241 Eliminate warnings.
12243 2002-01-02 Kazu Hirata <kazu@hxi.com>
12245 * config/romp/romp.c: Fix comment formatting.
12246 * config/romp/romp.h: Likewise.
12247 * config/romp/romp.md: Likewise.
12248 * config/s390/s390.c: Likewise.
12249 * config/stormy16/stormy16.c: Likewise.
12250 * config/stormy16/stormy16.h: Likewise.
12252 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
12254 * c-common.h (genrtl_expr_stmt_value): Declare.
12255 * c-semantics.c (genrtl_goto_stmt): Redirect to...
12256 (genrtl_goto_stmt_value): ... this new function. Pass new
12257 argument down to expand_expr_stmt_value, taking
12258 TREE_ADDRESSABLE into account.
12259 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
12260 STMT_EXPR as addressable, i.e., one whose result we want.
12261 * expr.c (expand_expr): Don't save expression statement value
12262 of labeled_blocks or loop_exprs.
12263 * stmt.c (expand_expr_stmt): Redirect to...
12264 (expand_expr_stmt_value): ... this new function. Use new
12265 argument to tell whether to save expression value.
12266 (expand_end_stmt_expr): Reset last_expr_type and
12267 last_expr_value if we don't have either.
12268 * tree-inline.c (declare_return_variable): Mark its use
12269 statement as addressable.
12270 * tree.h: Document new use of TREE_ADDRESSABLE.
12271 (expand_expr_stmt_value): Declare.
12273 2002-01-01 Tom Rix <trix@redhat.com>
12275 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
12276 rs6000_emit_allocate_stack.
12278 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
12280 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
12281 ${srcdir}/ginclude/ to every entry in extra_headers.
12282 * configure: Regenerate.
12283 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
12284 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
12285 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
12286 * ginclude/proto.h: Rename to config/convex/proto.h.
12288 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12290 * attribs.c (handle_vector_size_attribute): Use host_integerp
12291 and tree_int_cst; remove warnings.
12292 * caller-save.c (insert_restore): Add cast to get rid of warning.
12293 (insert_save): Likewise.
12294 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
12295 * regmove.c (find_matches): Add temporary var to kill a warning.
12297 2002-01-01 Douglas B Rupp <rupp@gnat.com>
12299 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
12300 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
12301 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
12302 (vms-dwarf2eh.o): Add Makefile rule.
12303 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
12304 * config/alpha/vms-dwarf2eh.asm: New file.
12306 * gcc.c (delete_if_ordinary): Delete all versions.
12308 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
12310 * config/mmix/mmix.md: Update FIXME to not mention
12312 (MMIX_rJ_REGNUM): New define_constants constant.
12313 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
12314 "*movdicc_real"): Adjust contraints formatting.
12315 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
12316 for branch prediction.
12317 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
12319 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
12320 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
12321 number. Delete related FIXMEs.
12322 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
12323 from number to MMIX_rJ_REGNUM.
12324 (TARGET_MASK_BRANCH_PREDICT): New.
12325 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
12326 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
12327 value. Add -mbranch-predict and -mno-branch-predict.
12328 (TARGET_VERSION): Drop date.
12329 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
12330 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
12331 for finding out global symbols.
12332 (mmix_asm_output_labelref): Revert condition for global symbol.
12333 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
12334 (mmix_print_operand_punct_valid_p): A '+' is valid.
12336 See ChangeLog.6 for earlier changes.