1 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
3 * gcc.dg/altivec-7.c: New.
5 * config/rs6000/altivec.h: Cleanup.
7 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
9 * doc/invoke.texi (Option Summary): Add -mvrsave=.
10 (RS/6000 and PowerPC Options): Document -mvrsave=.
12 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
13 (rs6000_altivec_vrsave_string): Same.
14 (rs6000_override_options): Call rs6000_parse_vrsave_option.
15 (rs6000_parse_vrsave_option): New.
16 (rs6000_stack_info): Only generate vrsave instructions when
17 TARGET_ALTIVEC_VRSAVE.
19 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
20 (rs6000_altivec_vrsave_string): Define extern.
21 (rs6000_altivec_vrsave): Same.
22 (TARGET_ALTIVEC_VRSAVE): New.
24 2002-04-30 Richard Henderson <rth@redhat.com>
27 * toplev.c (rest_of_compilation): Don't run cross-jump before
30 2002-04-30 Tom Rix <trix@redhat.com>
32 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
33 check which_alternative.
35 2002-04-30 Kazu Hirata <kazu@hxi.com>
37 * cpplex.c: Fix comment formatting.
38 * function.c: Likewise.
39 * integrate.c: Likewise.
40 * regrename.c: Likewise.
41 * sibcall.c: Likewise.
42 * simplify-rtx.c: Likewise.
43 * tree-inline.c: Likewise.
45 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
47 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
48 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
49 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
50 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
51 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
52 * pa/x-ada: New file. Define ADA_CFLAGS.
54 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
56 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
57 from MMIX_LAST_REGISTER_FILE_REGNUM.
58 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
59 (struct machine_function): New member highest_saved_stack_register
60 previously static variable in mmix.c.
61 (MACHINE_DEPENDENT_REORG): Define.
62 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
63 (MMIX_OUTPUT_REGNO): New.
64 (mmix_target_asm_function_prologue): Move calculation of last used
65 saved-stack-register into...
66 (mmix_machine_dependent_reorg): New function. Update to also handle
68 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
69 register names, simplify somewhat by new variable regno.
70 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
72 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
73 emitting register names.
74 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
75 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
77 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
80 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
82 2002-04-30 Richard Henderson <rth@redhat.com>
84 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
85 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
86 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
87 emit_tfmode_cvt): New.
88 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
89 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
90 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
91 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
92 * config/sparc/sparc-protos.h: Update.
94 2002-04-30 Janis Johnson <janis187@us.ibm.com>
96 * install.texi (Final install): Add to the list of info to include
97 in a report of a successful bootstrap, and add link to 3.1 list.
99 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
101 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
102 (mode): Add vector modes
103 (i387): Kill attribute.
104 (unit): New attribute.
105 (length_immediate): Grok new types.
106 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
108 (memory): Handle MMX/SSE properly.
109 (scheduling descriptions): Kill uses of fop1.
110 (sse, mmx, fp patterns): Set type and mode properly.
112 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@cygnus.com)
114 * pa.c (override_options): Default to PA8000 scheduling.
115 * doc/invoke.texi (HP-PA options): Mention newly added 7300
116 scheduling parameter.
118 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
119 handling of double precision multiplies.
121 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
122 fpdiv and fpsqrt instructions.
123 (7200 & 7300 scheduling): Fix typo in handling of
124 store-load and store-store penalties.
126 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
128 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
129 mips. Add two missing commas.
131 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
133 * doc/contrib.texi (Contributors): Update Paolo Carlini's
134 and Benjamin Kosnik's entries.
136 2002-04-29 David S. Miller <davem@redhat.com>
138 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
139 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
140 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
141 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
143 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
145 * combine.c (find_split_point): Use gen_int_mode.
147 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
149 Merging code from dfa-branch:
151 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
153 * genautomata.c (output_reserv_sets): Fix typo.
155 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
157 * genautomata.c (output_reserv_sets): Remove
158 next_cycle_output_flag.
160 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
162 * sched-rgn.c (init_ready_list): Make the DFA code handle
163 USE/CLOBBER insns in the same way as the traditional
165 (new_ready): Similarly..
167 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
169 * haifa-sched.c (schedule_block): Change the DFA state only after
172 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
174 * pa.c (hppa_use_dfa_pipeline_interface): New function.
175 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
176 (override_options): Add PA7300 scheduling support.
177 (pa_adjust_cost): Update various comments. Properly
178 handle anti and output dependencies when using the
180 (pa_issue_rate): Add PA7300 scheduling support.
181 (pa_can_combine_p): Call extract_insn before calling
182 constrain_operands (taken from mainline tree).
183 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
184 * pa.md (cpu attr): Add 7300. Rewrite pipeline
185 descriptions using DFA descriptions. Add PA7300
188 2002-03-30 David S. Miller <davem@redhat.com>
190 Add UltraSPARC-III DFA scheduling support.
191 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
192 Update FP conditional move on register insn patterns to use it, as
194 (define_attr cpu): Add ultrasparc3.
195 (define_attr us3load_type): New, update integer load patterns to
196 set it, as appropriate.
197 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
198 (rest): Add UltraSPARC3 scheduling description.
199 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
200 (PROCESSOR_ULTRASPARC3): New.
201 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
202 ({ASM,CPP}_CPU_SPEC): Likewise.
203 (REGISTER_MOVE_COST): Likewise.
204 (RTX_COSTS): Likewise.
205 * config/sparc/sparc.c (sparc_override_options,
206 sparc_initialize_trampoline, sparc64_initialize_trampoline,
207 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
208 sparc_issue_rate): Likewise.
209 * config/sparc/sol2.h: Likewise.
210 * config/sparc/sol2-sld-64.h: Likewise.
211 * config/sparc/linux64.h: Likewise.
213 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
215 * doc/md.texi: Add comments about usage the latency time for the
216 different dependencies and about case when two or more conditions
217 in different define_insn_reservations returns TRUE for an insn.
219 * doc/md.texi: Add reference for automaton based pipeline
222 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
224 * doc/passes.texi: Add missed information about genattrtab.
226 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
228 * genautomata.c (output_automata_list_transition_code): Check
229 automata_list on NULL.
231 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
233 * genautomata.c (output_insn_code_cases,
234 output_automata_list_min_issue_delay_code,
235 output_automata_list_transition_code,
236 output_automata_list_state_alts_code): Comment the functions.
238 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
240 * genautomata.c (automata_list_el_t): New typedef.
241 (get_free_automata_list_el,free_automata_list_el,
242 free_automata_list, automata_list_hash, automata_list_eq_p,
243 initiate_automata_lists, automata_list_start, automata_list_add,
244 automata_list_finish, finish_automata_lists,
245 output_insn_code_cases, output_automata_list_min_issue_delay_code,
246 output_automata_list_transition_code,
247 output_automata_list_state_alts_code, add_automaton_state,
248 form_important_insn_automata_lists): New functions and prototypes.
249 (insn_reserv_decl): Add members important_automata_list and
251 (ainsn): Add members important_p.
252 (automata_list_el): New structure.
253 (first_free_automata_list_el, current_automata_list,
254 automata_list_table): New global variables.
255 (create_ainsns): Initiate member important_p.
256 (output_internal_min_issue_delay_func): Generate the switch and
257 call output_insn_code_cases.
258 (output_internal_trans_func, output_internal_state_alts_func):
260 (generate): Call initiate_automata_lists.
261 (automaton_states): New global variable.
262 (expand_automata): Call form_important_insn_automata_lists.
263 (write_automata): Call finish_automata_lists.
265 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
267 * genautomata.c (add_excls, add_presence_absence): Check that
268 cpu units in the sets belong the same automaton.
270 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
271 about that cpu units in the sets belong the same automaton.
273 * doc/md.texi: Ditto.
275 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
276 Nitin Gupta <niting@noida.hcltech.com>
278 * config/sh/sh.c (sh_use_dfa_interface): New function.
280 (sh_issue_rate): New Function.
281 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
282 TARGET_SCHED_ISSUE_RATE: define.
284 * config/sh/sh.md: Add DFA based pipeline description for SH4.
286 (define_attr insn_class): New attribute used for DFA
288 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
289 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
290 cmpeqdi_t): Likewise.
292 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
293 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
295 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
297 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
299 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
302 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
304 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
305 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
307 (output_dfa_start_func): Initiate new variable insn_codes_length,
308 (write_automata): Output definition of the new variable.
310 2001-10-02 David S. Miller <davem@redhat.com>
312 * haifa-sched.c (advance_one_cycle): New function.
313 (schedule_block): Use it.
314 (queue_to_ready): Use it, and also make sure to advance the DFA
315 state on all stall cycles, not just those where insn_queue links
318 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
320 * haifa-sched.c (max_issue): Remove last_p argument. Only return
321 non-zero if the highest-priority instruction could be scheduled.
322 (choose_ready): Remove last argument from max_issue call.
324 2001-09-28 David S. Miller <davem@redhat.com>
326 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
327 ultrasparc and 3 for other multi-issue sparcs.
329 2001-09-27 David S. Miller <davem@redhat.com>
331 * config/sparc/sparc.md (cycle_display): New pattern.
332 * config/sparc/sparc.c (sparc_cycle_display): New.
333 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
335 2001-09-25 David S. Miller <davem@redhat.com>
337 Convert all of Sparc scheduling to DFA
338 * config/sparc/sparc.md: Kill all define_function_unit
339 directives and replace with DFA equivalent.
340 * config/sparc/sparc.c (ultrasparc_adjust_cost,
341 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
342 ultra_fpmode_conflict_exists, ultra_find_type,
343 ultra_build_types_avail, ultra_flush_pipeline,
344 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
345 ultrasparc_variable_issue, ultrasparc_sched_init,
346 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
347 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
348 ultra_cur_hist, ultra_cycles_elapsed): Kill.
349 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
350 ultrasparc_store_bypass_p): New.
351 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
354 2001-09-24 David S. Miller <davem@redhat.com>
356 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
357 ready->vec[foo] not ready[foo].
359 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
361 * doc/md.texi: Correct examples for define_insn_reservations
364 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
366 * genautomata.c (create_automata): Print message about creation of
368 (generate): Remove printing meease about creation of
371 2001-09-05 David S. Miller <davem@redhat.com>
373 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
374 * config/sparc/linux64.h: Likewise.
376 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
378 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
379 schedule_block, sched_init, sched_finish): Add missed calls of
380 use_dfa_pipeline_interface.
382 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
385 * sched-vis.c (get_visual_tbl_length): Ditto.
387 2001-08-27 Richard Henderson <rth@redhat.com>
389 * genattr.c (main): Emit state_t even when not doing scheduling.
391 2001-08-27 Richard Henderson <rth@redhat.com>
393 * genautomata.c (expand_automata): Always create a description.
395 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
397 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
398 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
399 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
402 * genattr.c (main): New variable num_insn_reservations. Increase
403 it if there is DEFINE_INSN_RESERVATION. Output automaton based
404 pipeline hazard recognizer interface.
406 * genattrtab.h: New file.
408 * genattrtab.c: Include genattrtab.h.
409 (attr_printf, check_attr_test, make_internal_attr,
410 make_numeric_value): Move protypes into genattrtab.h. Define them
412 (num_dfa_decls): New global variable.
413 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
414 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
415 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
416 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
418 * genautomata.c: New file.
420 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
422 * sched-int.h: (curr_state): Add the external definition for
423 automaton pipeline interface.
424 (haifa_insn_data): Add comments for members blockage and units.
426 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
427 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
428 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
429 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
430 TARGET_SCHED_DFA_POST_CYCLE_INSN,
431 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
432 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
434 (TARGET_SCHED): Use the new macros.
436 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
437 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
438 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
439 dfa_bubble): New members in gcc_target.sched.
441 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
442 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
443 (insn_queue): Redefine it as pointer to array.
444 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
446 (max_insn_queue_index_macro_value): New variable.
447 (curr_state, dfa_state_size, ready_try): New varaibles for
449 (ready_element, ready_remove, max_issue): New function prototypes
450 for automaton interface.
451 (choose_ready): New function prototype.
452 (insn_unit, blockage_range): Add comments.
453 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
454 FUNCTION_UNITS_SIZE == 0.
455 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
456 actual_hazard, potential_hazard): Add comments.
457 (insn_cost): Use cost -1 as undefined value. Remove
458 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
460 (ready_element, ready_remove): New functions for automaton
462 (schedule_insn): Add new code for automaton pipeline interface.
463 (queue_to_ready): Add new code for automaton pipeline interface.
464 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
465 (debug_ready_list): Print newline when the queue is empty.
466 (max_issue): New function for automaton pipeline interface.
467 (choose_ready): New function.
468 (schedule_block): Add new code for automaton pipeline interface.
469 Print ready list before scheduling each insn.
470 (sched_init): Add new code for automaton pipeline interface.
471 Initiate insn cost by -1.
472 (sched_finish): Free the current automaton state and finalize
473 automaton pipeline interface.
475 * sched-rgn.c: Include target.h.
476 (init_ready_list, new_ready, debug_dependencies): Add new code for
477 automaton pipeline interface.
479 * sched-vis.c: Include target.h.
480 (get_visual_tbl_length): Add code for automaton interface.
481 (target_units, print_block_visualization): Add comments.
483 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
484 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
485 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
486 (getruntime.o, genautomata.o): New entries.
487 (genattrtab.o): Add new dependency file genattrtab.h.
488 (genattrtab): Add new dependencies. Link it with `libm.a'.
489 (getruntime.o, hashtab.o): New entries for canadian cross.
491 * doc/md.texi: Description of automaton based model.
493 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
495 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
496 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
497 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
498 TARGET_SCHED_DFA_POST_CYCLE_INSN,
499 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
500 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
501 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
503 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
504 MAX_DFA_ISSUE_RATE): New macro descriptions.
506 * doc/contrib.texi: Add dfa based scheduler contribution.
508 * doc/gcc.texi: Add more information about genattrtab.
510 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
512 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
513 adjust_address_nv call.
515 2002-04-29 Janis Johnson <janis187@us.ibm.com>
517 * doc/install.texi (Testing): Provide additional information, and
518 a stronger encouragement, for running the testsuites.
520 2002-04-29 DJ Delorie <dj@redhat.com>
522 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
525 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
527 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
528 Solaris 2 <widec.h> if missing.
529 * fixinc/fixincl.x: Regenerate.
530 * fixinc/tests/base/widec.h: New file.
532 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
534 * toplev.c (f_options): Add "profile" switch so that
535 -fno-profile can be used to disable -p.
537 2002-04-29 Bernd Schmidt <bernds@redhat.com>
539 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
541 * tree.c (build_common_tree_nodes_2): Likewise.
542 * tree.h (enum tree_index): Likewise.
543 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
545 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
547 (init_mmx_sse_builtins): Initialize SSE2 builtins.
548 (ix86_expand_builtin): Add support for SSE2 builtins.
549 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
550 (VALID_SSE_REG_MODE): Use it.
551 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
552 (enum ix86_builtins): Add SSE2 builtins.
553 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
554 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
555 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
556 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
557 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
558 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
559 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
560 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
561 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
562 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
563 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
564 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
565 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
566 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
567 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
568 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
569 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
570 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
571 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
572 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
573 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
574 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
575 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
576 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
577 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
578 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
579 lfence_insn): New patterns.
580 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
581 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
583 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
585 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
587 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
589 * doc/contrib.texi (Contributors): Add Paolo Carlini and
591 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
592 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
593 and CPU instead of cpu.
595 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
597 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
599 (lang_independent_options): Add -fif-conversion, -fif-conversion2
600 (rest_of_compilation): Do if conversion only when asked for.
601 (parse_options_and_default_flags): Set new variables to 1 for -O1
602 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
604 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
606 * i386.c (dbx64_register_map): Fix typo.
608 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
610 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
611 real_one_half, real_bb_freq_max): New static variables.
612 (debug_profile_bbauxs): Kill.
613 (process_note_predictions): Kill unused variable.
614 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
616 (propagate_freq): Use REAL_ARITHMETICS.
617 (estimate_bb_frequencies): Likevise; init new static variables.
618 * Makefile.in (predict.o): Add dependency on real.h
620 2002-04-28 David S. Miller <davem@redhat.com>
623 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
624 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
625 several {reads,writes} instead.
626 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
629 2002-04-27 David S. Miller <davem@redhat.com>
632 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
635 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
636 including signal.h and sys/ucontext.h, not needed.
638 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
640 * varasm.c (output_constant_def): Correct test for not calling
641 ENCODE_SECTION_INFO for INTEGER_CST.
643 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
645 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
646 keep most cases as function eval_token.
647 (eval_token): New function.
648 (_cpp_parse_expr): Read token here for improved diagnostics.
649 Don't use op_as_text. Detect bad ':' here.
650 (reduce): Don't detect bad ':' here.
651 (op_as_text): Remove.
652 * cpphash.h (_cpp_test_assertion): Change prototype.
653 * cpplib.c (_cpp_test_assertion): Change prototype.
655 2002-04-28 Richard Henderson <rth@redhat.com>
658 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
659 (ggc_mark_rtx_children): New.
661 2002-04-28 Jakub Jelinek <jakub@redhat.com>
664 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
665 after call peepholes for UltraSPARC.
666 (call + jump 64-bit peepholes): Remove.
668 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
671 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
672 result as temporary value.
674 2002-04-28 Jakub Jelinek <jakub@redhat.com>
677 * toplev.c (rest_of_compilation): Only run regrename and copy
678 propagation if optimizing.
680 2002-04-28 Jakub Jelinek <jakub@redhat.com>
683 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
684 register of REGNO_DECL (i).
685 * Makefile.in (reload1.o): Add $(TREE_H).
687 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
689 * cppexp.c (lex): Update to use state.skip_eval.
690 (struct op): Remove prio and flags members.
691 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
692 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
693 (LEFT_ASSOC): New macro.
694 (optab): New table of operator priorities and flags.
696 (_cpp_parse_expr): Clean up logic. Return bool. Use a
697 malloc-ed parser stack.
698 (reduce): New; reduce the operator stack.
699 (_cpp_expand_op_stack): Expand the operator stack as necessary.
700 * cpphash.h (struct op): Predeclare.
701 (struct cpp_reader): New members op_stack, op_limit.
702 (struct lexer_state): New member skip_eval.
703 (_cpp_parse_expr): Update.
704 (_cpp_expand_op_stack): New.
705 * cpplib.c (do_if): Update.
706 * cppinit.c (cpp_create_reader): Create op stack.
707 (cpp_destroy): And destroy it.
708 * cpplib.h (CPP_LAST_CPP_OP): Correct.
709 (TTYPE_TABLE): Correct.
711 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
714 * c-decl.c (duplicate_decls): Call merge_weak.
715 * c-pragma.c (apply_pragma_weak): Warn about misuse.
716 * output.h (merge_weak): Prototype merge_weak.
717 * varasm.c (merge_weak): New function.
718 (declare_weak): Make sure we don't give an error on VAR_DECLs.
719 Mark RTL with SYMBOL_REF_WEAK.
721 2002-04-27 Kurt Garloff <garloff@suse.de>
723 * tree-inline.c (inlinable_function_p): Improve heuristics
724 by using a smoother function to cut down allowable inlinable size.
725 * param.def: Add parameters max-inline-insns-single,
726 max-inline-slope, min-inline-insns that determine the exact
727 shape of the above function.
730 2002-04-26 Richard Henderson <rth@redhat.com>
732 * c-parse.in (malloced_yyss, malloced_yyvs): New.
733 (yyoverflow): Re-add. Set them.
734 (free_parser_stacks): New.
735 * c-common.h: Declare it.
736 * c-lex.c (c_common_parse_file): Call it.
738 2002-04-26 Richard Henderson <rth@redhat.com>
740 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
743 2002-04-26 Eric Christopher <echristo@redhat.com>
746 * config/mips/mips.c (mips_issue_rate): Define. New function.
747 (TARGET_SCHED_ISSUE_RATE): Use.
749 2002-04-25 David S. Miller <davem@redhat.com>
752 * reorg.c (optimize_skip): Do not allow exception causing
753 instructions to be considered for delay slots.
754 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
755 (relax_delay_slots): Do not try to consider exception causing
756 instructions as redundant.
758 2002-04-26 Richard Henderson <rth@redhat.com>
761 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
763 2002-04-26 Mark Mitchell <mark@codesourcery.com>
766 * config/i386/i386.md (untyped_call): Return the value in a float
767 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
770 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
772 * tree.c (tree_int_cst_lt): Compare constants whose types differ
773 in unsigned-ness correctly.
775 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
777 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
778 portable runtime model.
780 2002-04-26 Richard Henderson <rth@redhat.com>
782 * c-parse.in (yyoverflow): Revert.
784 2002-04-26 David Edelsohn <edelsohn@gnu.org>
785 Richard Henderson <rth@redhat.com>
787 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
788 result as temporary value.
790 2002-04-26 Richard Henderson <rth@redhat.com>
793 * c-common.c (fix_string_type): Split out of ...
794 (combine_strings): ... here. Take a varray, not a tree list.
795 (c_expand_builtin_printf): Use fix_string_type.
796 * c-common.h: Update decls.
797 * c-parse.in (string): Remove. Update all uses to use STRING
798 instead, and not call combine_strings.
801 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
802 (build_asm_stmt): Likewise.
803 * objc/objc-act.c (my_build_string): Use fix_string_type.
804 (build_objc_string_object): Build varray for combine_strings.
806 2002-04-26 Bo Thorsen <bo@suse.co.uk>
808 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
811 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
813 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
814 (HAVE_NO_R_OPERAND): Remove.
815 (HAVE_VALUE): Remove.
816 (op_to_prio): Update.
817 (UNARY): Don't alter flags.
818 (_cpp_parse_expr): want_value used to indicate whether
819 a number or unary operator is expected next. Distinguish
820 unary and binary +/-.
821 (op_as_text): Update for unary operators.
823 2002-04-25 Richard Henderson <rth@redhat.com>
826 * c-parse.in (yyoverflow): New.
828 2002-04-25 Richard Henderson <rth@redhat.com>
831 * c-common.c (shorten_compare): Simplfy conditions leading to
832 the generation of a warning.
834 2002-04-25 Richard Henderson <rth@redhat.com>
837 * expmed.c (extract_bit_field): Fall through to generic code rather
838 than aborting on subreg special case.
840 2002-04-25 David S. Miller <davem@redhat.com>
842 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
845 2002-04-25 Steve Christiansen <smc@us.ibm.com>
847 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
849 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
851 * c-decl.c (grokdeclarator): Remove outdated ??? note
852 on invalid declaration of flexible array members.
854 2002-04-25 Richard Henderson <rth@redhat.com>
856 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
858 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
860 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
861 needed by the compiler, even if they are used as global regs.
863 2002-04-25 Matt Hiller <hiller@redhat.com>
865 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
867 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
868 of the corresponding functions.
869 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
872 2002-04-25 Matt Hiller <hiller@redhat.com>
874 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
876 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
877 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
878 registers, adjust comment accordingly.
879 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
880 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
881 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
882 for coprocessor registers.
883 (ADDITIONAL_REGISTER_NAMES): Include
884 ALL_COP_ADDITIONAL_REGISTER_NAMES.
886 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
887 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
888 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
889 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
890 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
892 (mips_char_to_class): Adjust comment to include coprocessor
895 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
897 (mips_reg_names, mips_regno_to_class): Include coprocessor
899 (mips_sw_reg_names): Ditto, make non-static.
900 (mips_move_1word): Handle moves to and from coprocessor registers.
901 (mips_move_2words): Handle moves to and from coprocessor
903 (mips_class_max_nregs, mips_register_move_cost): Handle
904 coprocessor register classes.
905 (override_options): Initialize mips_char_to_class and
906 mips_hard_regno_mode_ok properly for coprocessor registers.
908 * config/mips/mips.md (movdi_internal, movdi_internal2,
909 movsi_internal1, movsi_internal2): Add constraint-sets for
910 coprocessor registers.
911 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
912 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
914 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
915 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
917 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
918 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
920 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
921 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
924 * doc/tm.texi: Document feature.
926 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
928 * integrate.c (function_attribute_inlinable_p): Simplify.
929 Check the table pointer is not NULL.
931 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
933 * doc/c-tree.texi: Fix typo in introduction.
935 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
937 * c-common.h (c_common_parse_file): Update.
938 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
939 * c-lex.c (YYDEBUG): Get from c-lex.h.
940 (c_common_parse_file): Update.
941 * c-lex.h (YYDEBUG, yydebug): New.
942 * c-parse.in (YYDEBUG): Get from c-lex.h.
943 (c_set_yydebug): Remove.
944 * c-tree.h (c_set_yydebug): Remove.
945 * langhooks-def.h (lhd_do_nothing_i): New.
946 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
947 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
948 * langhooks.c (lhd_do_nothing_i): New.
949 (lhd_set_yydebug): Remove.
950 * langhooks.h (struct lang_hooks): Update.
951 * toplev.c (set_yydebug): New.
952 (compile_file): Update call to parse_file hook.
953 (decode_d_option): Update.
955 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
957 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
959 * loop.c (load_mems): Don't change the interface of called functions.
961 * calls.c (expand_call): Take current_function_pretend_args_size
962 into account when setting argblock for sibcalls.
964 2002-04-24 Matt Hiller <hiller@redhat.com>
966 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
969 * cpplex.c (skip_line_comment): Process comment one multibyte
970 character at a time rather than one char at a time, if
972 (parse_string): Process string one multibyte character at a time
973 rather than one char at a time, if appropriate.
974 * c-lex.c (lex_string): Lex and copy multibyte strings
976 * cpplib.h (cppchar_t): Change to unsigned.
978 2002-04-24 Richard Henderson <rth@redhat.com>
981 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
984 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
986 * sh.c (sh_va_arg): If argument was passed by reference,
987 dereference the pointer.
989 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
991 * sh.md (divsi3_i4_media): Use match_operand for input values
992 rather than hard registers.
993 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
994 unnecessarily through hard registers. Keep copies of pseudo
995 registers outside of the libcall sequence.
997 * sh.md (casesi_shift_media): Add modes.
999 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
1002 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
1004 * attribs.c (c_common_attribute_table): Move table and handlers
1006 (format_attribute_table, lang_attribute_table,
1007 lang_attribute_common): Remove.
1008 (init_attributes): Replace NULL pointers with pointers to the
1010 (handle_packed_attribute, handle_nocommon_attribute,
1011 handle_common_attribute, handle_noreturn_attribute,
1012 handle_noinline_attribute, handle_always_inline_attribute,
1013 handle_used_attribute, handle_unused_attribute,
1014 handle_const_attribute, handle_transparent_union_attribute,
1015 handle_constructor_attribute, handle_destructor_attribute,
1016 handle_mode_attribute, handle_section_attribute,
1017 handle_aligned_attribute, handle_weak_attribute,
1018 handle_alias_attribute, handle_visibility_attribute,
1019 handle_no_instrument_function_attribute, handle_malloc_attribute,
1020 handle_no_limit_stack_attribute, handle_pure_attribute,
1021 handle_deprecated_attribute, handle_vector_size_attribute,
1022 vector_size_helper): Move to c-common.c.
1023 * c-common.c (c_common_attribute_table,
1024 handle_packed_attribute, handle_nocommon_attribute,
1025 handle_common_attribute, handle_noreturn_attribute,
1026 handle_noinline_attribute, handle_always_inline_attribute,
1027 handle_used_attribute, handle_unused_attribute,
1028 handle_const_attribute, handle_transparent_union_attribute,
1029 handle_constructor_attribute, handle_destructor_attribute,
1030 handle_mode_attribute, handle_section_attribute,
1031 handle_aligned_attribute, handle_weak_attribute,
1032 handle_alias_attribute, handle_visibility_attribute,
1033 handle_no_instrument_function_attribute, handle_malloc_attribute,
1034 handle_no_limit_stack_attribute, handle_pure_attribute,
1035 handle_deprecated_attribute, handle_vector_size_attribute,
1036 vector_size_helper): Move from attribs.c.
1037 * c-common.h (c_common_attribute_table,
1038 c_common_format_attribute_table): New.
1039 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
1040 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
1041 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
1042 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
1043 (LANG_HOOKS_INITIALIZER): Update.
1044 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
1045 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
1046 * target.h: Update comment.
1047 * tree.c (default_target_attribute_table): Remove.
1048 * tree.h (default_target_attribute_table, format_attribute_table,
1049 lang_attribute_table, lang_attribute_common): Remove.
1051 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
1052 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
1054 2002-04-24 Jason Merrill <jason@redhat.com>
1056 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
1057 * dwarf2out.c (dwarf_attr_name): Support it.
1058 (gen_array_type_die): Emit it.
1059 (lookup_type_die): No special handling for VECTOR_TYPE.
1060 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
1062 2002-04-24 Richard Henderson <rth@redhat.com>
1064 * config/mips/mips.md (movdi_usd): Renumber.
1066 2002-04-24 David S. Miller <davem@redhat.com>
1069 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
1070 32-bit Sparc and current_function_returns_struct is true.
1072 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
1074 * loop.c (canonicalize_condition): Use gen_int_mode.
1076 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
1078 * config/rs6000/altivec.h: Cleanup file. Add non individual
1100 (vec_vcmpequb): New.
1101 (vec_vcmpequh): New.
1102 (vec_vcmpequw): New.
1103 (vec_vcmpeqfp): New.
1104 (vec_vcmpgefp): New.
1105 (vec_vcmpgtub): New.
1106 (vec_vcmpgtsb): New.
1107 (vec_vcmpgtuh): New.
1108 (vec_vcmpgtsh): New.
1109 (vec_vcmpgtuw): New.
1110 (vec_vcmpgtsw): New.
1111 (vec_vcmpgtfp): New.
1112 (vec_vcmpgefp): New.
1117 (vec_vexptefp): New.
1122 (vec_lde): Add vector float variant.
1127 (vec_vmhaddshs): New.
1149 (vec_vmladduhm): New.
1150 (vec_vmhraddshs): New.
1152 (vec_vmsummbm): New.
1153 (vec_vmsumuhm): New.
1154 (vec_vmsumshm): New.
1155 (vec_vmsumuhs): New.
1156 (vec_vmsumshs): New.
1165 (vec_vnmsubfp): New.
1183 (vec_vrsqrtefp): New.
1194 (vec_vspltisb): New.
1195 (vec_vspltish): New.
1196 (vec_vspltisw): New.
1221 (vec_vsum4ubs): New.
1222 (vec_vsum4sbs): New.
1223 (vec_vsum4shs): New.
1224 (vec_vsum2sws): New.
1235 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
1238 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
1239 added literals from substracted literals.
1240 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
1241 (fold) [associate]: Preserve MINUS_EXPR if needed.
1243 2002-04-23 Zack Weinberg <zack@codesourcery.com>
1245 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
1248 2002-04-23 Tom Tromey <tromey@redhat.com>
1250 * gcc.c: Added --resource. For PR java/6314.
1252 2002-04-23 David O'Brien <obrien@FreeBSD.org>
1254 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
1255 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
1258 2002-04-23 David O'Brien <obrien@FreeBSD.org>
1260 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
1262 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
1264 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
1266 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
1267 (ix86_expand_clrstr): Fix typo.
1268 * loop.c (gen_load_of_final_value): New.
1269 (loop_givs_rescan, strength_reduce, check_dbra_loop):
1272 2002-04-23 Roger Sayle <roger@eyesopen.com>
1274 * builtins.c (builtin_memset_gen_str): New function.
1275 (expand_builtin_memset): Optimize the case of constant length, but
1278 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
1280 * config/rs6000/altivec.h (vec_step): Remove extraneous
1282 (vec_ctu): Cast return.
1284 2002-04-23 Alan Modra <amodra@bigpond.net.au>
1287 * function.h: (struct function): Add profile_label_no field.
1288 (current_function_profile_label_no): Define.
1289 * function.c: (profile_label_no): New static var.
1290 (expand_function_start): Increment it, and copy to
1291 current_function_profile_label_no.
1292 * output.h (profile_label_no): Delete.
1293 * final.c (profile_label_no): Delete.
1294 (profile_function): Use current_function_profile_label_no.
1295 (final_end_function): Don't increment profile_label_no here.
1296 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
1297 profile_label_no with current_function_profile_label_no.
1298 * config/pa/pa.c (current_function_number): Delete.
1299 (pa_output_function_prologue): Don't output profile label here.
1300 (hppa_profile_hook): Use label_no param rather than
1301 current_function_number.
1302 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
1303 * config/pa/pa.h: .. here.
1304 (FUNCTION_PROFILER): Output profile label here.
1306 2002-04-22 Eric Christopher <echristo@redhat.com>
1308 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
1309 patch of 2002-04-09 due to binutils issues.
1310 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
1312 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
1314 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
1315 constraint to 'o' for m=r and r=m alternatives.
1316 ("*movv8hi_internal1"): Same.
1317 ("*movv16qi_internal1"): Same.
1318 ("*movv4sf_internal1"): Same.
1320 2002-04-22 Janis Johnson <janis187@us.ibm.com>
1322 * rtl.h (RTX_FLAG): New macro.
1323 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
1324 * final.c (alter_subreg): Use macro to access rtx flag.
1325 * integrate.c (copy_rtx_and_substitute): Use new access macro.
1326 * print-rtl.c (print_rtx): Use new access macro.
1328 * cse.c (insert): Check rtx code before accessing flag.
1330 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
1331 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
1332 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
1333 convert_const_symbol_ref, make_canonical, make_alternative_compare,
1334 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
1335 simplify_test_exp, optimize_attrs, simplify_by_exploding,
1336 find_and_mark_used_attributes, unmark_used_attributes,
1337 add_values_to_cover, simplify_with_current_value,
1338 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
1339 copy_rtx_unchanging, main): Use new access macros.
1341 2002-04-22 Tom Rix <trix@redhat.com>
1343 * expmed.c (init_expmed): Generate shifted constant once.
1345 2002-04-22 Zack Weinberg <zack@codesourcery.com>
1347 * c-lex.c (lex_charconst): Call convert to get constant in
1348 proper type; don't just smash the type field.
1351 * config.gcc: Add list of obsolete configurations. Disallow
1352 building these without --enable-obsolete.
1353 * doc/install.texi: Document --enable-obsolete and obsoletion
1354 policy. Mention obsoletion of individual targets in
1357 2002-04-22 Richard Henderson <rth@redhat.com>
1359 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
1361 2002-04-22 Mark Mitchell <mark@codesourcery.com>
1364 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
1365 (walk_fixup_memory_subreg): Likewise.
1366 (fixup_var_refs_insn): Adjust accordingly.
1367 (fixup_var_refs_1): Likewise.
1369 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
1371 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
1372 LIBPATH_ARCH64_SPEC): Define.
1373 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
1374 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
1375 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
1376 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
1378 2002-04-22 Joel Sherrill <joel@OARcorp.com>
1380 * gthr-rtems.h: Correct prototypes to remove warnings.
1382 2002-04-22 Richard Henderson <rth@redhat.com>
1385 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
1387 * gcse.c (free_insn_expr_list_list): New.
1388 (clear_modify_mem_tables): Use it. Fix bit set usage.
1389 (canon_list_insert): Use EXPR_LISTs for expressions.
1390 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
1392 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
1394 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
1395 file change and include code to _cpp_pop_buffer.
1396 * cpphash.h (struct pending_option): Predeclare.
1397 (struct cpp_reader): New member next_include_file.
1398 (_cpp_pop_file_buffer): Update.
1399 (_cpp_push_next_buffer): Update, rename.
1400 * cppinit.c (cpp_destroy): Free include chain and pending here.
1401 (cpp_finish_options): Simplify.
1402 (_cpp_push_next_buffer): Rename and clean up.
1403 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
1405 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
1407 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
1409 * config/rs6000/altivec.h (vec_xor): Add variant for both args
1410 being vector signed int.
1412 (vec_xor): Add variant for both args being vector signed char.
1413 Remove redundant variant.
1416 2002-04-21 David S. Miller <davem@redhat.com>
1418 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
1419 compare mode in output RTL.
1421 2002-04-22 David Edelsohn <edelsohn@gnu.org>
1423 * config/rs6000/rs6000.c (rs6000_override_options): Correct
1424 style and formatting of previous patch.
1426 2002-04-22 Alan Modra <amodra@bigpond.net.au>
1428 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
1429 flag_pic for ABI_AIX.
1431 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
1433 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
1434 * cppfiles.c (read_include_file): Similarly.
1435 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
1436 uxstrdup ustrchr, ufputs): Similarly.
1437 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
1438 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
1439 cpp_ideq, parse_identifier, parse_number): Similarly.
1440 * cpplib.c (struct directive, dequote_string, D, run_directive,
1441 cpp_push_buffer): Similarly.
1442 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
1443 _cpp_create_definition, check_trad_stringification,
1444 cpp_macro_definition): Similarly.
1446 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
1448 * cppmacro.c (funlike_invocation_p): Don't step back
1451 2002-04-21 David Edelsohn <edelsohn@gnu.org>
1453 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
1456 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
1458 * doc/invoke.texi: Remove Chill references.
1459 * doc/gcc.texi: Update last modified date.
1461 2002-04-20 Kazu Hirata <kazu@hxi.com>
1463 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
1464 push and pop. Replace add.l with add.w.
1466 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
1468 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
1469 multiply instructions for H8/300H case.
1471 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
1473 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
1474 Bum three instructions from each routine.
1476 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
1478 * Makefile.in: Update.
1479 * decl.c (push_c_function_context, pop_c_function_context,
1480 mark_c_function_context): Rename for consistency.
1481 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
1482 * c-tree.h (push_c_function_context, pop_c_function_context,
1483 mark_c_function_context): Rename for consistency.
1484 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1485 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
1486 * function.c (init_lang_status, save_lang_status,
1487 restore_lang_status, mark_lang_status, free_lang_status):
1488 Move to langhooks.h.
1489 (push_function_context_to, pop_function_context_from,
1490 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
1492 * function.h (init_lang_status, save_lang_status,
1493 restore_lang_status, mark_lang_status, free_lang_status):
1494 Move to langhooks.h.
1495 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
1496 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
1497 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
1498 LANG_HOOKS_FUNCTION_INITIALIZER): New.
1499 (LANG_HOOKS_INITIALIZER): Update.
1500 (lhd_do_nothing_f): New.
1501 * langhooks.h (struct lang_hooks_for_functions): New.
1502 (struct lang_hooks): New hooks.
1503 * langhooks.c (lhd_do_nothing_f): New.
1505 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1506 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
1508 2002-04-19 David S. Miller <davem@redhat.com>
1510 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
1511 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
1513 2002-04-19 Jakub Jelinek <jakub@redhat.com>
1515 PR optimization/3756
1516 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
1517 x = ((int) y < 0) ? cst1 : cst2.
1519 2002-04-19 Jakub Jelinek <jakub@redhat.com>
1522 * function.c: Reapply patch for c/6358.
1523 (expand_function_end): Copy decl_rtl's mode, not
1524 current_function_return_rtx mode.
1526 2002-04-19 Joel Sherrill <joel@OARcorp.com>
1528 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
1531 2002-04-19 Tom Tromey <tromey@redhat.com>
1533 * doc/install.texi (Specific): Update status of Solaris 2.8.
1536 2002-04-19 Andreas Schwab <schwab@suse.de>
1538 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
1539 (PUT_REAL): Restore old definition.
1541 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
1542 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1544 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
1545 binutils 2.11.2 and higher generate smaller binaries than Sun's
1548 2002-04-19 Mark Mitchell <mark@codesourcery.com>
1551 * toplev.c (rest_of_compilation): Do not defer functions for which
1552 TREE_SYMBOL_REFERENCED has already been set.
1554 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
1556 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
1559 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
1561 * builtins.c: Include langhooks.h.
1562 (lang_type_promotes_to): Remove.
1563 (expand_builtin_va_arg): Use new hook.
1564 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
1565 (simple_type_promotes_to): Move to c-typeck.c.
1566 * c-common.h (simple_type_promotes_to): Remove.
1567 * c-decl.c (duplicate_decls, grokdeclarator): Update.
1568 * c-format.c: Include langhooks.h.
1569 (check_format_types): Update.
1570 * c-tree.h (c_type_promotes_to): New.
1571 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
1572 (type_lists_compatible_p): Update.
1573 * langhooks-def.h (lhd_type_promotes_to): New.
1574 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
1575 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
1576 * langhooks.c (lhd_type_promotes_to): New.
1577 * langhooks.h (struct lang_hooks_for_types): New hook.
1578 * tree.h (lang_type_promotes_to): Remove.
1580 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
1582 2002-04-18 Richard Henderson <rth@redhat.com>
1584 * function.c: Revert patch for c/6358.
1586 2002-04-18 Richard Henderson <rth@redhat.com>
1588 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
1589 blocks. Handle multiple references to the TRAP block. Handle
1590 non-adjacent THEN and OTHER blocks.
1592 2002-04-18 Richard Henderson <rth@redhat.com>
1594 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
1595 crash with no type for by-mode libcalls.
1597 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
1599 2002-04-18 Bob Wilson <bob.wilson@acm.org>
1601 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
1602 __xtensa_nonlocal_goto): Use a syscall instructions to flush
1603 the register windows.
1605 2002-04-18 Zack Weinberg <zack@codesourcery.com>
1607 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
1608 appropriate. Document need for extended precision even when
1609 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
1610 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
1611 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
1612 instead of relying on later syntax error when REAL_WIDTH > 5.
1613 * real.c: Define NE based only on whether or not we have a
1614 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
1615 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
1616 define GET_REAL and PUT_REAL as simple memcpy operations; no
1617 need to byteswap or round.
1618 Use #error instead of #ifdef-ing out the entire file, for
1619 prompt error detection.
1621 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
1623 2002-04-18 David S. Miller <davem@redhat.com>
1625 * config/sparc/sparc.h (BRANCH_COST): Define.
1627 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
1630 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
1632 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
1633 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
1634 propagate_block calls after relaxation loop using new variable
1635 stabilized_prop_flags.
1637 2002-04-18 Richard Henderson <rth@redhat.com>
1639 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
1640 (ia64_va_arg): Expect variable sized types by reference.
1641 * config/ia64/ia64-protos.h: Update.
1642 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
1643 ia64_function_arg_pass_by_reference.
1645 2002-04-18 Richard Henderson <rth@redhat.com>
1647 * ifcvt.c: Include except.h.
1648 (block_has_only_trap): Break out from find_cond_trap.
1649 (find_cond_trap): Use it. Always delete the trap block.
1650 (merge_if_block): Allow then block null. Be less simplistic about
1651 what insns can end a block.
1652 * Makefile.in (ifcvt.o): Depend on except.h.
1654 * config/ia64/ia64.md (trap, conditional_trap): New.
1656 2002-04-18 Jakub Jelinek <jakub@redhat.com>
1659 * function.c (assign_parms): Assign hard current_function_return_rtx
1661 (expand_function_end): ...not here.
1663 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
1665 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
1666 * c-tree.h (c_incomplete_type_error): New.
1667 * c-typeck.c (require_complete_type, build_component_ref): Update.
1668 (incomplete_type_error): Rename.
1669 * langhooks-def.h (lhd_incomplete_type_error): New.
1670 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
1671 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
1672 * langhooks.c (lhd_incomplete_type_error): New.
1673 * langhooks.h (struct lang_hooks_for_types): New hook.
1674 * tree.c (size_in_bytes): Use new hook.
1675 * tree.h (incomplete_type_error): Remove.
1677 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
1679 2002-04-18 Zack Weinberg <zack@codesourcery.com>
1681 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
1682 TARGET_FLOAT_FORMAT blocks.
1684 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1686 * doc/install.texi (Downloading the source): Do not mention Chill
1687 any longer, but mention Ada.
1688 (Configuration): Do not mention Chill any longer.
1690 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
1692 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
1694 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
1696 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
1699 2002-04-18 Jakub Jelinek <jakub@redhat.com>
1701 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
1702 instead of unsigned_type.
1704 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
1706 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
1707 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
1710 2002-04-18 Bernd Schmidt <bernds@redhat.com>
1712 * attribs.c (vector_type_node_list): New static variable.
1713 (handle_vector_size_attribute): Use it to avoid generating a
1714 new type node each time we are called.
1716 * combine.c (subst): Avoid trying to make a vector mode subreg of
1717 an integer constant.
1718 (gen_lowpart_for_combine): Likewise.
1720 2002-04-18 Roger Sayle <roger@eyesopen.com>
1721 Jakub Jelinek <jakub@redhat.com>
1723 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
1724 for integer constant c (if x has unsigned type or sign bit is not
1725 set in c). This folds the zero/sign extension into the bit-wise and
1728 2002-04-18 Jakub Jelinek <jakub@redhat.com>
1731 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
1734 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
1736 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
1738 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
1740 * gcc.c (read_specs): Detect and fail if an attempt is made to
1741 rename a spec string to an already existing string.
1743 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1745 * config/s390/s390.c (legitimize_pic_address): Do not generate
1746 illegal address constant without CONST.
1748 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1750 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
1751 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1753 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1755 PR optimization/6305
1756 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
1757 to make sure previous reloads are taken into account. Generate
1758 better code if one operand is an in-range immediate constant.
1760 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
1762 * doc/install.texi (Building): libgcj requires GNU make.
1764 2002-04-17 Jakub Jelinek <jakub@redhat.com>
1767 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
1768 even if hard quad and register is not floating.
1769 (movtf reg<-mem split): Disallow splitting if hard quad and
1770 register is floating.
1771 (movtf mem<-reg split): Likewise.
1772 * config/sparc/sparc.c (fp_register_operand): New predicate.
1773 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
1775 2002-04-17 Zack Weinberg <zack@codesourcery.com>
1777 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
1778 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
1779 (unprotoize.o): Ditto. Build from protoize.c. Define
1780 UNPROTOIZE on command line.
1781 * protoize.c: Include cppdefault.h. Delete include_defaults.
1782 (in_system_include_dir): Use cpp_include_defaults (defined in
1784 * unprotoize.c: Delete file.
1786 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
1788 * config/rs6000/altivec.h (vec_ld): Add array variants.
1792 2002-04-17 Alan Matsuoka <alanm@redhat.com>
1793 Aldy Hernandez <aldyh@redhat.com>
1795 * config/rs6000/altivec.h: Define __ALTIVEC__.
1802 Add parentheses to all macro arguments.
1804 2002-04-16 Richard Henderson <rth@redhat.com>
1807 * except.c (remove_eh_handler): Insert inner regions at beginning
1808 of sibling chain. Refactor expressions.
1810 2002-04-16 Richard Henderson <rth@redhat.com>
1812 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
1813 * config/sparc/sol2-gas-bi.h: New file.
1814 * config.gcc (sparc*-solaris): Add it as needed.
1815 * configure.in (AS_SPARC64_FLAG): Remove check.
1816 * config.in, configure: Regenerate.
1818 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
1820 2002-04-16 Richard Henderson <rth@redhat.com>
1822 * config/mips/mips.c (override_options): Don't override N32 for
1826 * config/mips/mips.md (can_delay): Split out of existing define_delays.
1827 (HILO_delay): Set can_delay false.
1829 2002-04-16 Dale Johannesen <dalej@apple.com>
1831 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
1832 instruction addresses.
1833 (rs6000_output_function_epilogue): Likewise.
1835 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
1837 * c-parse.in (poplevel, compstmt_start,
1838 compstmt_primary_start): Add ending ';', in accordance
1841 2002-04-16 Richard Henderson <rth@redhat.com>
1843 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
1844 Adjust tm_file order to get TARGET_DEFAULT set properly.
1845 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
1846 * doc/install.texi (sparc-solaris): Update.
1848 2002-04-16 Dale Johannesen <dalej@apple.com>
1850 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
1851 comparison operands do not match each other or if modes of
1852 conditions do not match result.
1854 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
1857 * config/s390/s390.md (mulsidi3): Set both subregs of the
1860 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
1862 * config/rs6000/altivec.h (vec_addc): Type check.
1864 2002-04-16 Jakub Jelinek <jakub@redhat.com>
1867 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
1869 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
1871 2002-04-15 Richard Henderson <rth@redhat.com>
1873 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
1874 call_really_used_regs too.
1876 2002-04-15 Richard Henderson <rth@redhat.com>
1878 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
1880 2002-04-15 David S. Miller <davem@redhat.com>
1882 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
1885 2002-04-16 Jakub Jelinek <jakub@redhat.com>
1888 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
1889 CONST_VECTOR is { 0, ... 0 }.
1891 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
1893 * doc/install.texi (Installing GCC: Configuration): Clarify
1894 the only supported ways to configure gcc.
1896 2002-04-15 Roland McGrath <roland@frob.com>
1898 * config.gcc (alpha*-*-gnu*): New target configuration.
1899 * config/alpha/gnu.h: New file for it.
1900 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
1902 2002-04-16 Mark Mitchell <mark@codesourcery.com>
1904 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
1905 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
1906 * tree.h (expand_start_stmt_expr): Update prototype.
1907 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
1908 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
1909 on the STMT_EXPR created for the inline function.
1911 2002-04-15 Richard Henderson <rth@redhat.com>
1913 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
1914 config/i386/linux-aout.h, config/i386/linux-oldld.h,
1915 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
1916 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
1917 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
1918 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
1919 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
1920 Define __gnu_linux__, not gnu_linux.
1921 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
1923 2002-04-15 Mark Mitchell <mark@codesourcery.com>
1925 Remove Chill front end.
1926 * gcc.c (default_compilers): Remove Chill entries.
1927 * ch: Remove directory.
1928 * doc/frontends.texi: Remove information about Chill.
1929 * doc/sourcebuild.texi: Likewise.
1930 * doc/standards.texi: Likewise.
1932 2002-04-15 Douglas B Rupp <rupp@gnat.com>
1934 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
1935 (LONGLONG_STANDALONE): Define.
1937 2002-04-15 David S. Miller <davem@redhat.com>
1939 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
1940 Call emit_library_call with LCT_NORMAL.
1941 (sparc_initialize_trampoline): Use LCT_foo instead of
1942 magic constant in emit_library_call invocations.
1943 (sparc64_initialize_trampoline): Likewise.
1944 (sparc_profile_hook): Likewise.
1945 * config/sparc/sparc.md: Likewise.
1947 * config/sparc/sparc.c (sparc_extra_constraint_check):
1948 Fix type of argument 'c'.
1949 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
1952 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
1954 * diagnostic.h (output_buffer_state): Redefine.
1955 (output_format_decoder): New macro.
1956 (output_prefixing_rule): Likewise.
1957 (output_line_cutoff): Likewise.
1958 (diagnostic_format_decoder): Adjust.
1959 (diagnostic_prefixing_rule): Likewise.
1960 (diagnostic_line_cutoff): Likewise.
1961 (diagnostic_state): Likewise.
1962 (diagnostic_kind_count): Likewise.
1963 (diagnostic_buffer): Now a macro.
1965 * diagnostic.c (diagnostic_buffer): Remove definition.
1966 (output_is_line_wrapping): Adjust.
1967 (set_real_maximum_length): Likewise.
1968 (output_set_maximum_length): Likewise.
1969 (init_output_buffer): Likewise.
1970 (lhd_print_error_function): Likewise.
1971 (output_do_verbatim): Likewise.
1973 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
1975 * cpperror.c (print_location): Don't print include chain
1977 (cpp_begin_message): Update to use DL_ macros.
1978 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
1979 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
1980 cpp_notice, cpp_notice_from_errno): Remove.
1981 (cpp_error, cpp_error_with_line): Update to take a diagnostic
1984 * cppexp.c (CPP_ICE): Remove.
1985 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
1986 lex, integer_overflow, _cpp_parse_expr): Update.
1987 * cppfiles.c (read_include_file, find_include_file,
1988 handle_missing_header, _cpp_read_file, remap_filename): Update.
1989 * cpphash.h (enum error_type): Remove.
1990 (_cpp_begin_message): Update.
1991 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
1992 cpp_handle_option, cpp_post_options): Update.
1993 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
1994 skip_whitespace, parse_identifier, parse_slow, parse_string,
1995 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
1996 cpp_interpret_charconst): Update.
1997 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
1998 lex_macro_node, do_undef, glue_header_name, parse_include,
1999 do_include_common, read_flag, do_line, do_linemarker, do_ident,
2000 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
2001 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
2002 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
2003 _cpp_pop_buffer, do_diagnostic): Update.
2004 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
2005 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
2006 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
2007 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
2008 cpp_notice, cpp_notice_from_errno): Remove.
2009 (cpp_error, cpp_error_with_line): Update to take a diagnostic
2012 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
2013 collect_args, enter_macro_context, save_parameter, parse_params,
2014 _cpp_create_definition, check_trad_stringification,
2015 cpp_macro_definition): Update.
2016 * cppmain.c (cpp_preprocess_file): Update.
2017 * fix-header.c (read_scan_file): Update.
2019 2002-04-14 Andreas Schwab <schwab@suse.de>
2021 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
2023 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
2025 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
2027 2002-04-13 Mark Mitchell <mark@codesourcery.com>
2029 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
2032 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
2034 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
2036 2002-04-13 Joel Sherrill <joel@OARcorp.com>
2038 * config/sparc/t-elf: Enable v8 multilibs. Impacts
2039 sparc-elf and sparc-rtems targets.
2041 2002-04-13 Mark Mitchell <mark@codesourcery.com>
2043 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
2044 defined, and __gnu_hurd__ wherever __GNU__ is defined.
2045 * arm/linux-elf.h: Likewise.
2046 * cris/aout.h: Likewise.
2047 * cris/linux.h: Likewise.
2048 * i370/linux.h: Likewise.
2049 * i386/gnu.h: Likewise.
2050 * i386/linux-aout.h: Likewise.
2051 * i386/linux-oldld.h: Likewise.
2052 * i386/linux.h: Likewise.
2053 * i386/linux64.h: Likewise.
2054 * ia64/linux.h: Likewise.
2055 * m68k/linux-aout.h: Likewise.
2056 * m68k/linux.h: Likewise.
2057 * mips/linux.h: Likewise.
2058 * pa/pa-linux.h: Likewise.
2059 * pj/linux.h: Likewise.
2060 * rs6000/sysv4.h: Likewise.
2061 * s390/linux.h: Likewise.
2062 * sh/linux.h: Likewise.
2063 * sparc/linux-aout.h: Likewise.
2064 * sparc/linux.h: Likewise.
2065 * sparc/linux64.h: Likewise.
2066 * xtensa/linux.h: Likewise.
2068 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
2070 * stmt.c (check_unique_operand_names): Expect operand names to
2071 be strings rather than identifiers. Use simple_cst_equal to
2073 (resolve_operand_name_1): Make same identifier to string change here.
2074 * c-parse.in (asm_operand): Convert a named operand into a string.
2075 * cp/parse.y (asm_operand): Likewise.
2077 2002-04-13 Andreas Schwab <schwab@suse.de>
2079 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
2081 2002-04-12 Mark Mitchell <mark@codesourcery.com>
2083 Revert these changes:
2085 2002-04-06 Mark Mitchell <mark@codesourcery.com>
2088 * stor-layout.c (layout_decl): Reset the RTL for the decl.
2090 2002-04-12 Richard Henderson <rth@redhat.com>
2092 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
2093 (sparc*-*-solaris): Clean up header files.
2094 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
2095 and plan on generating 64-bit code.
2096 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
2097 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
2098 * config/sparc/sol2-sld-64.h: Rename ...
2099 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
2100 for AS_SPARC64_FLAG not defined.
2101 * config/sparc/sol2-gld-bi.h: New.
2102 * config/sparc/sol2-sld.h: Remove.
2103 * config/sparc/sol26-sld.h: New.
2104 * config/sparc/sol2.h: Tidy comments.
2105 * doc/install.texi: Document sparc-solaris configury changes.
2107 2002-04-12 Richard Henderson <rth@redhat.com>
2109 * recog.c (offsettable_address_p): Match the logic in adjust_address.
2111 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
2112 in 64-bit mode only. Use only for 32-bit or MEDLOW.
2114 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2116 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
2118 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
2120 * pa.c (pa_can_combine_p): Call extract_insn before calling
2123 2002-04-12 Douglas B Rupp <rupp@gnat.com>
2125 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
2126 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
2127 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
2128 (CPP_PREDEFINES): Handle __declspec.
2129 * config/i386/t-interix (USER_H): Remove.
2131 2002-04-12 DJ Delorie <dj@redhat.com>
2133 * integrate.c (compare_blocks): Make comparisons safe for when
2134 sizeof(int) < sizeof(char *).
2135 (find_block): Likewise.
2137 2002-04-12 Jan Hubicka <jh@suse.cz>
2138 David Edelsohn <edelsohn@gnu.org>
2140 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
2142 (symbol_ref_operand): New.
2143 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
2144 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
2146 2002-04-12 Andreas Schwab <schwab@suse.de>
2148 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
2149 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
2150 overrides the definition in config/svr4.h.
2152 2002-04-12 Eric Norum <eric.norum@usask.ca>
2154 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
2155 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
2156 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
2157 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
2158 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
2159 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
2160 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
2161 definitions to config/rtems.h and make the targets more similar.
2163 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2165 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
2166 POINTERS_EXTEND_UNSIGNED.
2167 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
2168 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
2170 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
2173 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
2175 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
2176 depends on TARGET_SHMEDIA, not TARGET_SH5.
2178 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
2180 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
2181 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
2183 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
2185 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
2188 2002-04-12 Andreas Schwab <schwab@suse.de>
2190 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
2192 2002-04-12 Richard Henderson <rth@redhat.com>
2195 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
2197 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
2198 modes spanning multiple hard regs.
2200 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
2202 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
2204 * pa.c (pa_output_function_prologue): Don't accumulate the total
2205 number of code bytes when using TARGET_64BIT, or gas, SOM and not
2206 the portable runtime.
2207 (output_deferred_plabels): Handle 64bit plabels.
2208 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
2209 generating pic code using the GAS assembler for object formats that
2210 are not SOM (ie., ELF32 and ELF64).
2211 (output_millicode_call): Check attribute type if attribute length is 28.
2212 Likewise use $PIC_pcrel$0. Only call get_attr_length and
2213 dbr_sequence_length once.
2214 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
2215 dbr_sequence_length once.
2216 * pa.h (TARGET_SOM): Define if not defined.
2217 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
2218 with GAS and not SOM.
2219 (jump, call_internal_reg, call_value_internal_reg): Likewise.
2220 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
2222 2002-04-11 David O'Brien <obrien@FreeBSD.org>
2224 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
2225 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
2226 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
2227 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
2228 elfos.h and dbxelf.h values are fine now.
2229 * config/i386/freebsd.h, config/alpha/freebsd.h
2230 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
2232 2002-04-11 David O'Brien <obrien@FreeBSD.org>
2234 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
2235 or set Acpu or Amachine. Reformat.
2236 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2238 (LINK_SPEC): Do not need to undef.
2239 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
2240 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
2241 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2243 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
2244 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
2245 (LINK_SPEC): Do not need to undef.
2246 (DONT_USE_BUILTIN_SETJMP): Do not define.
2247 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
2248 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
2249 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
2250 Remove trailing spaces.
2251 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
2252 __ELF__, or set Acpu or Amachine. Reformat.
2253 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
2256 2002-04-11 David O'Brien <obrien@FreeBSD.org>
2258 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
2259 all other *-*-freebsd* targets.
2261 2002-04-11 Richard Henderson <rth@redhat.com>
2263 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
2265 2002-04-11 David O'Brien <obrien@FreeBSD.org>
2267 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
2268 Include {cpu}/{cpu}.h thru tm_file.
2269 (alpha*-*-linux*ecoff): Remove target.
2270 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
2271 (LINK_SPEC): Remove, is not OS independent.
2272 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
2273 (LINK_SPEC): Do not need to #undef any longer.
2274 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
2276 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
2278 (LINK_SPEC): Moved here from alpha/elf.h.
2279 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
2281 * config/alpha/linux-ecoff.h: Remove.
2282 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
2283 (CPP_SPEC): Define _POSIX_SOURCE as needed.
2284 (CPP_SUBTARGET_SPEC): Do not define.
2285 (LINK_SPEC): Do not need to #undef any longer.
2286 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
2287 * config/alpha/vms.h: Likewise.
2289 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
2291 * doc/extend.texi: Remove old claim that typedefs cannot have
2292 an alignment attribute.
2294 2002-04-11 Jakub Jelinek <jakub@redhat.com>
2296 PR optimization/6177
2297 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
2298 bitpos is 0 and bitsize CONCAT size.
2300 2002-04-11 Jakub Jelinek <jakub@redhat.com>
2303 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
2305 2002-04-10 David O'Brien <obrien@FreeBSD.org>
2307 * config/alpha/freebsd.h: Minor reformatting.
2308 (CPP_SPEC): Define ELF and add cpp_subtarget.
2309 (ASM_SPEC): No longer needed.
2311 2002-04-11 Richard Henderson <rth@redhat.com>
2313 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
2314 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
2315 (dimode mem/zero splitter): New.
2317 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
2319 * config/cris/cris.c (cris_override_options): Tweak error message
2320 for PIC not implemented.
2322 * config/cris/cris.h: Tweak comments related to parameter-passing.
2324 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
2326 2002-04-10 Richard Henderson <rth@redhat.com>
2328 * except.c (add_ehl_entry): Allow duplicates after landing pad
2331 2002-04-10 David Edelsohn <edelsohn@gnu.org>
2333 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
2335 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
2337 * c-decl.c (c_init_decl_processing): Move generation of
2338 decls for g77_integer_type_node and friends from here ...
2339 * c-common.c (c_common_nodes_and_builtins): ... to here.
2341 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
2343 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
2344 is only used as frame pointer when frame_pointer_needed is true.
2346 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
2349 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
2350 for the fact that the pool entry uses two words.
2351 (movdf_hard_insn): Similarly. Also, ADR instruction can span
2353 (movdf_soft_insn): Similarly.
2354 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
2355 for the fact that the pool entry uses three words.
2357 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
2359 * config/mips/mips.c (mips_va_arg): When using the struct version
2360 of the EABI va_list, allow arguments in the register save area to
2361 take up less room than a stack argument.
2363 2002-04-10 Richard Henderson <rth@redhat.com>
2365 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
2366 if EXPAND_INITIALIZER.
2368 2002-04-09 Richard Henderson <rth@redhat.com>
2370 * config/alpha/alpha.md (movdi_er_maybe_g): New.
2371 * config/alpha/alpha.c (alpha_expand_mov): Use it.
2373 2002-04-10 Alan Modra <amodra@bigpond.net.au>
2375 PR optimization/6233
2376 * rtlanal.c (pure_call_p): New function.
2377 * rtl.h (pure_call_p): Declare.
2378 * loop.c (prescan_loop): Use it to set has_nonconst_call.
2379 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
2381 2002-04-09 Eric Christopher <echristo@redhat.com>
2383 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
2384 information to .comm directive.
2386 2002-04-09 Richard Henderson <rth@redhat.com>
2389 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
2391 2002-04-09 Richard Henderson <rth@redhat.com>
2393 * basic-block.h (flow_delete_block_noexpunge): Declare.
2394 (expunge_block_nocompact): Declare.
2395 * cfg.c (expunge_block_nocompact): Split out from ...
2396 (expunge_block): ... here.
2397 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
2398 (flow_delete_block_noexpunge): Split out from ...
2399 (flow_delete_block): ... here.
2400 * cfgcleanup.c (delete_unreachable_blocks): Compact while
2401 removing dead blocks.
2402 * except.c (exception_handler_labels): Remove.
2403 (exception_handler_label_map): New.
2404 (struct eh_region): Add aka member.
2405 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
2406 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
2407 (for_each_eh_label, for_each_eh_label_1): New.
2408 (init_eh): Register exception_handler_label_map.
2409 (free_eh_status): Use free_region.
2410 (find_exception_handler_labels): Use the map, not the list.
2411 (remove_exception_handler_label): Likewise.
2412 (maybe_remove_eh_handler): Likewise.
2413 (remove_eh_handler): Use the region aka bitmap.
2414 * except.h (exception_handler_labels): Remove.
2415 (for_each_eh_label): Declare.
2416 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
2417 * loop.c (invalidate_loops_containing_label): New.
2418 (find_and_verify_loops): Use it. Use for_each_eh_label.
2419 * sched-rgn.c (is_cfg_nonregular): Use
2420 current_function_has_exception_handlers.
2422 2002-04-09 Richard Henderson <rth@redhat.com>
2424 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
2425 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
2426 Do not return changed status.
2427 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
2428 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
2429 New functions that do return changed status.
2430 * sbitmap.h: Update decls.
2431 * gcse.c, lcm.c: Use _cg functions as needed.
2433 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
2435 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
2436 (sh64-*-elf*, sh-*-rtemself*): Likewise.
2437 * config/sh/embed_bb.c: New file.
2438 * config/sh/embed-elf.h: New file.
2439 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
2440 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
2441 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
2443 (SUBTARGET_CPP_PTR_SPEC): Don't define.
2444 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
2445 Add subtarget_asm_endian_spec.
2446 (ASM_SPEC): Use subtarget_asm_endian_spec.
2447 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
2448 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
2449 (WCHAR_UNSIGNED): Define.
2450 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
2451 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
2452 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
2454 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
2455 (sh_adjust_cost): Likewise.
2456 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
2458 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
2459 (WCHAR_TYPE_SIZE): Likewise.
2460 (ASM_SPEC): Use subtarget_asm_endian_spec.
2461 (SH_ELF_WCHAR_TYPE): #undef/ #define.
2462 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
2463 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
2464 (MAX_WCHAR_TYPE_SIZE): Don't #define .
2465 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
2466 (USER_LABEL_PREFIX): Don't #undef /#define .
2467 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
2468 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
2469 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
2470 (ASM_SPEC): Likewise.
2471 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
2472 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
2473 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
2474 (LIB2FUNCS_EXTRA): Define.
2475 * t-sh64 (LIB2FUNCS_EXTRA): Define.
2476 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
2477 (LIB1ASMFUNCS_CACHE): Define.
2478 (LIB2FUNCS_EXTRA): Redefine empty.
2480 2002-04-08 Richard Henderson <rth@redhat.com>
2482 * reorg.c (get_branch_condition): Use reversed_comparison_code.
2484 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2486 * config/m68hc11/larith.asm (__map_data_section): Fix condition
2487 and optimize for size.
2488 (__do_global_ctors): Fix pointer comparison.
2489 (__do_global_dtors): Likewise.
2491 2002-04-09 David S. Miller <davem@redhat.com>
2493 * config/sparc/sparc.c (sparc_extra_constraint_check): New
2494 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
2495 allow reloading pseudos.
2496 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
2497 * config/sparc/sparc-protos.h: Declare it.
2499 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
2500 unsigned comparison warning.
2501 (output_restore_regs): Mark leaf_function as unused.
2503 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2505 * expr.c (is_aligning_offset): New function.
2506 (expand_expr, case COMPONENT_EXPR): Call it.
2508 2002-04-08 David S. Miller <davem@redhat.com>
2511 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
2513 Make init_priority work on Sparc when using GNU ld.
2514 * config/sparc/linux.h, config/sparc/linux64.h,
2515 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
2516 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
2517 * config/sparc/sol2-gld.h: New file to do the same.
2518 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
2519 sparc/sol2-gld.h to tm_file.
2521 PR optimization/4328
2522 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
2523 * doc/md.texi: Document it.
2524 * config/sparc/sparc.md (movdi_insn_sp64_novis,
2525 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
2526 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
2527 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
2528 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
2530 2002-04-08 Andreas Jaeger <aj@suse.de>
2532 * stmt.c (expand_asm_operands): Revert last patch from Richard
2535 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2537 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
2538 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
2540 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2542 * doc/contrib.texi (Contributors): Add David O'Brien.
2544 2002-04-08 Alan Modra <amodra@bigpond.net.au>
2546 * configure.in (auto-build.h): Use target_alias and build_alias
2547 when running configure.
2548 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
2549 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
2550 * configure: Regenerate.
2552 2002-04-07 David S. Miller <davem@redhat.com>
2554 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
2556 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
2559 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
2560 generating 32-bit pic code.
2562 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
2564 * cppinit.c (cpp_create_reader): Initialize
2565 discard_comments_in_macro_exp.
2566 (COMMAND_LINE_OPTIONS): Add "-CC" option.
2567 (cpp_handle_option): Handle "-CC" option.
2568 * cpplex.c (save_comment): If saving a C++ comment in
2569 a directive, convert it to a C comment.
2570 (_cpp_lex_direct): Pass second comment start character to
2571 save_comment to indicate comment type.
2572 * cpplib.c (_cpp_handle_directive): If processing
2573 a "#define" directive and discard_comments_in_macro_exp
2574 is false, re-enable saving of comments.
2575 (lex_macro_node): If discard_comments_in_macro_exp is false,
2576 discard any comments before the macro identifier.
2577 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
2579 * cppmacro.c (cpp_get_token): If expanding a macro while
2580 processing a directive, discard any comments we might encounter.
2581 (parse_params): If discard_comments_in_macro_exp is false,
2582 ignore comments in the macro parameter list.
2583 * gcc.c (cpp_unique_options): Add "-CC" option.
2584 (option_map): Map "--comments-in-macros" to "-CC".
2585 * doc/cppopts.texi: Document "-CC" option.
2586 * f/lang-specs.h: Add "-CC" option.
2587 * testsuite/gcc.dg/cpp/maccom1.c: New test.
2588 * testsuite/gcc.dg/cpp/maccom2.c: New test.
2589 * testsuite/gcc.dg/cpp/maccom3.c: New test.
2590 * testsuite/gcc.dg/cpp/maccom4.c: New test.
2591 * testsuite/gcc.dg/cpp/maccom5.c: New test.
2592 * testsuite/gcc.dg/cpp/maccom6.c: New test.
2594 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2597 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
2599 2002-04-06 Mark Mitchell <mark@codesourcery.com>
2602 * stor-layout.c (layout_decl): Reset the RTL for the decl.
2605 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
2606 RTX_UNCHANGING_P for the functions arguments when a tail call
2609 2002-04-06 Jason Merrill <jason@redhat.com>
2611 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
2612 (parse_options_and_default_flags): Set them appropriately.
2613 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
2615 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
2617 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
2620 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
2623 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
2624 types come in by-reference. Fix typo in comment.
2626 2002-04-05 David S. Miller <davem@redhat.com>
2628 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
2629 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
2630 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
2631 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
2633 2002-04-05 David S. Miller <davem@redhat.com>
2635 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
2636 are not going to emit return instructions, emit at least a nop
2637 for the sake of sane backtraces.
2639 2002-04-05 Richard Henderson <rth@redhat.com>
2641 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
2643 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
2645 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
2647 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
2649 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
2650 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
2651 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
2653 2002-04-05 Andreas Schwab <schwab@suse.de>
2655 * c-convert.c: Include c-common.h.
2656 * Makefile.in (c-convert.o): Updated.
2658 2002-04-05 Jakub Jelinek <jakub@redhat.com>
2660 * mklibgcc.in: Use separate libgcc.map for each multilib.
2661 * Makefile.in (distclean): Don't remove libgcc.map here.
2663 2002-04-05 Jakub Jelinek <jakub@redhat.com>
2665 * Makefile.in (s-mlib): Handle --disable-multilib by separate
2666 genmultilib invocation.
2668 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
2670 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
2671 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
2672 to num_gprs for symmetry.
2673 * config/mips/mips.c: Adjust accordingly.
2675 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
2677 * c-common.c (truthvalue_conversion): Rename, update.
2678 * c-common.h (c_common_truthvalue_conversion): New.
2679 * c-convert.c (convert): Update.
2680 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
2681 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
2682 * c-typeck.c (build_binary_op, build_unary_op,
2683 build_conditional_expr): Update.
2684 * fold-const.c (constant_boolean_node, fold): Use langhook.
2685 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
2686 * langhooks.h (struct lang_hooks): New hook.
2687 * stmt.c (expand_decl_cleanup): Use langhook.
2688 * tree.h (truthvalue_conversion): Remove.
2690 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
2692 2002-04-05 Alan Modra <amodra@bigpond.net.au>
2694 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
2695 Add rules to make null object file.
2697 2002-04-04 Jim Blandy <jimb@redhat.com>
2699 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
2700 macro formal parameter names.
2702 2002-04-04 David S. Miller <davem@redhat.com>
2704 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
2706 2002-04-04 Richard Henderson <rth@redhat.com>
2709 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
2710 Support copies into and out of memory. Don't accept allows_reg
2711 and allows_mem as gospel.
2713 2002-04-04 Richard Henderson <rth@redhat.com>
2716 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
2717 (write_dependence_p): Likewise.
2719 2002-04-04 Richard Henderson <rth@redhat.com>
2721 * predict.c (estimate_bb_frequencies): Do frequency calculation
2722 with a volatile temporary.
2724 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
2726 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
2728 2002-04-04 Jakub Jelinek <jakub@redhat.com>
2731 * final.c (final_start_function): Don't bump profile_label_no here...
2732 (final_end_function): ...but here.
2734 2002-04-04 Jakub Jelinek <jakub@redhat.com>
2736 * config/sparc/sparc.md (pic): New attribute.
2737 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
2739 (split after do_builtin_setjmp_setup): New.
2741 2002-04-04 Jakub Jelinek <jakub@redhat.com>
2744 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
2747 2002-04-04 Jakub Jelinek <jakub@redhat.com>
2749 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
2750 UNITS_PER_WORD for zero sized aggregates.
2752 2002-04-03 David S. Miller <davem@redhat.com>
2754 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
2755 one-character spec for this, just use %(link_gcc_c_sequence).
2757 2002-04-03 David S. Miller <davem@redhat.com>
2759 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
2762 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
2764 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
2765 (DWARF_FRAME_RETURN_COLUMN): Move.
2766 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2767 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
2768 * pa.c (except.h, predict.h): Include.
2770 (store_reg_modify, set_reg_plus_d): Revise prototypes.
2771 (output_ascii): Add cast.
2772 (store_reg_modify): Revise to add frame notes.
2773 (set_reg_plus_d): Likewise.
2774 (compute_frame_size): Include space for eh data registers in frame if
2775 the current function calls eh_return.
2776 (hppa_expand_prologue): Ensure register %r2 is saved if the current
2777 function calls eh_return. Save eh data registers if the current
2778 function calls eh_return. Fix code to add frame notes. Emit
2779 blockage to prevent insns with frame notes being scheduled in the
2780 delay slot of calls.
2781 (hppa_expand_epilogue): Restore eh data registers and do final stack
2782 adjustment if the current function calls eh_return. Don't add frame
2784 (output_call): Revise for change in length of call insn. Don't do
2785 return pointer adjustment for an unconditional jump in the delay slot
2786 of a call when using frame notes.
2787 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
2788 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
2789 (ARG_POINTER_CFA_OFFSET): Define.
2790 * pa.md (return_external_pic): New pattern.
2791 (prologue): Correct formatting. Use return_external_pic if current
2792 function calls eh_return.
2793 (call_internal_symref, call_value_internal_symref,
2794 sibcall_internal_symref, sibcall_value_internal_symref): Change default
2795 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
2797 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
2799 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
2800 list of targets to check using "nop" insn.
2801 * configure: Rebuilt.
2803 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2805 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
2807 2002-04-03 David S. Miller <davem@redhat.com>
2809 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
2810 library sequence passed to the linker.
2811 (LINK_COMMAND_SPEC): Use it.
2812 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
2813 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
2814 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2816 2002-04-03 Jason Merrill <jason@redhat.com>
2818 * except.c (struct eh_status): Remove protect_list.
2819 (begin_protect_partials, end_protect_partials): Remove.
2820 (add_partial_entry): Remove.
2821 * except.h: Remove prototypes.
2823 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
2824 expand_decl_cleanup_eh.
2827 * tree.h (CLEANUP_EH_ONLY): New macro.
2828 * stmt.c (expand_decl_cleanup_eh): New fn.
2829 (expand_cleanups): Check CLEANUP_EH_ONLY.
2830 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
2831 Use expand_decl_cleanup_eh.
2832 (expand_stmt): Adjust.
2833 * c-common.h: Adjust prototype.
2835 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
2837 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
2838 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
2839 (cris_target_asm_function_epilogue): Ditto.
2840 (cris_initial_frame_pointer_offset): Ditto.
2841 (cris_simple_epilogue): Ditto.
2842 (cris_expand_builtin_va_arg): Variable-size types come in
2845 2002-04-03 David S. Miller <davem@redhat.com>
2847 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
2849 (set_fast_math): Correct 'fsr' type.
2851 2002-04-03 Richard Henderson <rth@redhat.com>
2854 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
2855 * toplev.c (check_global_declarations): Use it.
2856 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
2857 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2858 (LANG_HOOKS_DECLS): Add it.
2859 * langhooks.c (lhd_warn_unused_global_decl): New.
2860 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2861 * c-objc-common.c (c_warn_unused_global_decl): New.
2862 * c-tree.h (c_warn_unused_global_decl): Declare.
2863 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2865 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
2867 * langhooks-def.h (lhd_set_decl_assembler_name,
2868 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
2869 (LANG_HOOKS_INITIALIZER): Update.
2870 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
2871 * langhooks.h (struct lang_hooks): New hook.
2872 * tree.c (set_decl_assembler_name): Move to langhooks.c.
2873 (lang_set_decl_assembler_name): Remove.
2874 (init_obstacks): Don't set hook.
2875 (decl_assembler_name): New function.
2876 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
2877 (decl_assembler_name): New.
2878 (lang_set_decl_assembler_name): Remove.
2880 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2882 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
2883 works properly with .hidden symbols.
2884 * configure: Rebuilt.
2885 * config.in: Rebuilt.
2886 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
2887 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
2888 properly with .hidden symbols.
2890 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2893 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
2896 2002-04-03 Richard Henderson <rth@redhat.com>
2899 * sched-rgn.c (sets_likely_spilled): New.
2900 (sets_likely_spilled_1): New.
2901 (add_branch_dependences): Use it.
2903 2002-04-02 Richard Henderson <rth@redhat.com>
2906 * loop.h (LOOP_FIRST_PASS): New.
2907 * loop.c (strength_reduce): Mind it when deciding to unroll.
2908 * toplev.c (rest_of_compilation): Set it.
2910 2002-04-02 David S. Miller <davem@redhat.com>
2912 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
2913 mems_ok_for_ldd_peep when the order of the loads being examined
2915 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
2916 existing comment to increase comprehension of this situation.
2918 2002-04-02 Zack Weinberg <zack@codesourcery.com>
2920 * config/sh/sh.md: Don't use union real_extract.
2922 2002-04-02 Richard Henderson <rth@redhat.com>
2924 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
2926 2002-04-02 David O'Brien <obrien@FreeBSD.org>
2928 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
2929 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
2930 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
2931 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
2932 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
2933 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
2934 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
2935 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
2936 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
2937 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
2938 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
2939 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
2940 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
2941 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
2942 Include as many configury headers via tm_file as possible. This
2943 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
2944 * config/openbsd-oldgas.h: New file.
2945 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
2946 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
2947 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
2948 config/i386/i386-coff.h, config/i386/i386-interix.h,
2949 config/i386/iscdbx.h, config/i386/linux-aout.h,
2950 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
2951 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
2952 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
2953 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
2954 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
2955 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
2956 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
2957 config/i386/vxi386.h: Do not directly include configury headers.
2958 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
2959 Directly include configury headers that are no longer automatically
2960 included by the above headers.
2961 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
2962 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
2963 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
2964 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
2965 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
2966 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
2967 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
2968 (TARGET_VERSION): Define.
2969 * config/i386/beos-elf.h, config/i386/freebsd.h,
2970 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
2971 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
2972 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
2973 config/i386/sco5.h, config/i386/sysv4.h
2974 (TARGET_VERSION): Do not need to protect.
2975 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
2976 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
2977 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
2978 config/i386/i386-interix.h, config/i386/linux-aout.h,
2979 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
2980 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
2981 (YES_UNDERSCORES): Do not define - not needed.
2982 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
2983 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
2984 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
2985 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
2986 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
2987 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
2988 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
2989 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
2991 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
2992 Richard Henderson <rth@redhat.com>
2995 * function.c (assign_temp): Accept either type or decl argument.
2996 Detect variables whose size is too large to fit into an integer.
2997 * stmt.c (expand_decl): Pass the decl, not the type.
2999 2002-04-02 David O'Brien <obrien@FreeBSD.org>
3001 * protoize.c: Match include directory usage with cppdefault.c.
3003 2002-04-03 Jeffrey A Law (law@redhat.com)
3004 Hans-Peter Nilsson <hp@bitrange.com>
3006 * combine.c (simplify_comparison): Avoid narrowing a comparison
3007 with a paradoxical subreg when doing so would drop signficant bits.
3009 2002-04-02 Steve Ellcey <sje@cup.hp.com>
3011 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
3012 if POINTERS_EXTEND_UNSIGNED is defined.
3014 2002-04-02 Richard Henderson <rth@redhat.com>
3017 * local-alloc.c (contains_replace_regs): LO_SUM may contain
3020 2002-04-02 Richard Henderson <rth@redhat.com>
3022 * doc/standards.texi: Document required freestanding libc entry points.
3024 2002-04-02 Alan Modra <amodra@bigpond.net.au>
3026 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
3027 associated splitter. Remove MQ constraint.
3028 (ctrdi_internal4): Correct CCmode clobber.
3030 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
3032 * milli64.S ($$dyncall): New function.
3033 * t-linux (LIB1ASMFUNCS): Revise module list.
3034 (LIB1ASMSRC): Use pa/milli64.S.
3036 2002-04-02 Richard Henderson <rth@redhat.com>
3038 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
3039 rename solaris_sys_varargs_h.
3041 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3043 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
3044 the same mode as its component.
3046 2002-04-02 Richard Henderson <rth@redhat.com>
3049 * final.c (this_is_asm_operands): Export.
3050 * output.h (this_is_asm_operands): Declare.
3051 * config/i386/i386.c (print_operand): Error odd asm operands.
3053 2002-04-02 Richard Henderson <rth@redhat.com>
3056 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
3058 2002-04-01 Richard Henderson <rth@redhat.com>
3061 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
3062 * fixinc/fixincl.x: Rebuild.
3064 2002-04-01 Richard Henderson <rth@redhat.com>
3066 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
3067 (atomic_alloc, atomic_free): New.
3068 (SIZE, MASK_FOR, PTR_IN): New.
3069 (emergency_reg_state, emergency_reg_state_free): New.
3070 (emergency_labeled_state, emergency_labeled_state_free): New.
3071 (reg_state_alloced, labeled_state_alloced): New.
3072 (alloc_reg_state, free_reg_state): New.
3073 (alloc_label_state, free_label_state, free_label_states): New.
3074 (push, pop, dup_state_stack, free_state_stack): Use them.
3075 (desc_label_state): Likewise.
3076 (uw_frame_state_for): Free label states and state stack.
3077 (uw_update_reg_address): Eliminate warnings.
3079 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
3081 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
3082 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
3084 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
3086 * c-decl.c (grokdeclarator): Update.
3087 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
3088 * c-tree.h (c_mark_addressable): New.
3089 * c-typeck.c (default_function_array_conversion, build_unary_op,
3090 build_array_ref, convert_for_assignment): Update.
3091 (mark_addressable): Rename.
3092 * calls.c (try_to_integrate, expand_call): Use langhook.
3093 * expr.c (expand_expr): Use langhook.
3094 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
3095 * langhooks.h (struct lang_hooks): New hook.
3096 * stmt.c (expand_asm_operands): Use langhook.
3097 * tree.h (mark_addressable): Remove.
3099 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
3101 2002-04-01 Bob Wilson <bob.wilson@acm.org>
3103 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
3106 2002-04-01 Bob Wilson <bob.wilson@acm.org>
3108 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
3109 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
3111 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
3113 * c-common.c (unsigned_conversion_warning, convert_and_check,
3114 unsigned_type, signed_type, shorten_compare,
3115 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
3116 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
3117 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
3119 * c-decl.c (grokdeclarator): Update.
3120 * c-format.c (check_format_types): Update.
3121 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
3122 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
3123 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
3124 * convert.c (convert_to_integer): Use new hooks.
3125 * expmed.c (make_tree): Use new hooks.
3126 * expr.c (store_expr): Use new hooks.
3127 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
3128 all_ones_mask_p, unextend, fold): Use new hooks.
3129 * langhooks.h (struct lang_hooks_for_types): New hooks.
3130 * tree.h (signed_or_unsigned_type, signed_type,
3131 unsigned_type): Remove.
3133 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
3134 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
3136 2002-03-31 Richard Henderson <rth@redhat.com>
3138 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
3139 (desc_frgr_mem): Fix reference to f16-f31.
3141 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3143 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
3144 RTVEC_ELT): Const-ify.
3145 * varray.h (VARRAY_CHECK): Const-ify.
3146 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
3147 ggc_mark_rtvec, ggc_mark): Const-ify.
3149 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
3151 * diagnostic.c: Include langhooks-def.h.
3152 * Makefile.in (diagnostic.o): Update.
3154 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
3156 * c-common.c (c_unsafe_for_reeval): Rename.
3157 * c-common.h (c_unsafe_for_reeval): Rename.
3158 * c-decl.c (finish_incomplete_decl): Rename.
3159 (c_init_decl_processing): Don't set langhook.
3160 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
3161 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3162 * c-objc-common.c (c_objc_common_init): Don't set langhook.
3163 * c-tree.h (finish_incomplete_decl): Rename.
3164 * langhooks-def.h (lhd_unsafe_for_reeval): New.
3165 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
3166 (LANG_HOOKS_INITIALIZER): Update.
3167 * langhooks.c (lhd_unsafe_For_reeval): New.
3168 * langhooks.h (struct langhooks): New hooks.
3169 * toplev.c (incomplete_decl_finalize_hook): Remove.
3170 (wrapup_global_declarations): Update.
3171 * tree.c (lang_unsafe_for_reeval): Remove.
3172 (unsafe_for_reeval): Update.
3173 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
3176 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
3177 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
3179 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
3181 * diagnostic.c (print_error_function): Remove.
3182 (default_print_error_function): Rename.
3183 (report_error_function): Update.
3184 * diagnostic.h (print_error_function): Remove.
3185 (default_print_error_function): Remove.
3186 * langhooks-def.h (struct diagnostic_context): Predeclare.
3187 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
3188 (LANG_HOOKS_INITIALIZER): Update.
3189 * langhooks.h (struct diagnostic context): Predeclare.
3190 (struct lang_hooks): New hook.
3192 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3194 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
3195 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
3197 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
3198 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
3199 of PIC_OFFSET_TABLE_REGNUM thruout.
3200 * config/rs6000/rs6000.md: Likewise.
3201 * config/rs6000/darwin.h: Likewise.
3203 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3205 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
3206 unsigned HOST_WIDE_INT, not unsigned int.
3208 2002-03-31 Jakub Jelinek <jakub@redhat.com>
3210 PR middle-end/6096, middle-end/6098, middle-end/6099
3211 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
3213 (fill_slots_from_thread): Likewise.
3215 2002-03-31 Jakub Jelinek <jakub@redhat.com>
3217 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
3218 floating fields in float regs.
3219 (function_arg_record_value_2): Likewise.
3221 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
3223 * config/mmix/mmix.md (define_constants): Remove misleading
3224 FIXME. Add MMIX_fp_rO_OFFSET.
3225 ("nonlocal_goto_receiver"): Don't have stack-frame address of
3226 saved rO as part of the pattern. Remove FIXME.
3227 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
3228 here, at output-time.
3230 2002-03-31 Jakub Jelinek <jakub@redhat.com>
3233 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
3235 (output_v9branch): Likewise.
3237 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
3239 * gcc.c: Revert previous patch for now.
3240 * config/i386/djgpp.h: Likewise.
3242 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
3244 * config/mmix/crti.asm (_init): Register _fini with atexit.
3245 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
3247 2002-03-31 Richard Henderson <rth@redhat.com>
3250 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
3251 (ASM_OUTPUT_DEF_FROM_DECLS): New.
3253 2002-03-31 Richard Henderson <rth@redhat.com>
3255 * libgcc2.c (__bb_exit_func): Make static.
3257 * config/alpha/alpha.md (trap): New.
3259 2002-03-31 Richard Henderson <rth@redhat.com>
3261 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
3262 promoted argument types; build trap.
3263 (expand_builtin_trap): New.
3264 (expand_builtin): Use it.
3265 * stmt.c (expand_nl_goto_receivers): Likewise.
3266 * expr.h (expand_builtin_trap): Declare.
3267 * libfuncs.h (LTI_abort, abort_libfunc): New.
3268 * optabs.c (init_optabs): Init abort_libfunc.
3270 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
3272 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
3273 (LINK_COMMAND_SPEC): ... from here.
3274 (init_gcc_specs): Duplicate it here too, omitting
3275 shared_name in the second copy.
3276 (init_spec): Test for duplicate
3277 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
3279 2002-03-30 David S. Miller <davem@redhat.com>
3281 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3282 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
3284 2002-03-30 Roger Sayle <roger@eyesopen.com>
3285 Richard Henderson <rth@redhat.com>
3287 * regmove.c (combine_stack_adjustments_for_block): Avoid
3288 emitting a stack adjustment of zero bytes. Let delete_insn
3291 2002-03-30 Richard Henderson <rth@redhat.com>
3293 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
3294 (sparc_emitting_epilogue): New.
3295 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
3296 * config/sparc/sparc-protos.h: Update.
3297 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
3298 (TARGET_SWITCHES): Update.
3299 * config/sparc/sparc.md (return): Remove.
3300 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
3301 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
3302 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
3303 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
3304 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
3305 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
3306 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
3307 Remove MASK_EPILOGUE.
3308 * doc/invoke.texi: Update.
3310 2002-03-30 Daniel Berlin <dan@dberlin.org>
3312 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
3313 CPP will start the file for us.
3315 2002-03-30 Richard Henderson <rth@redhat.com>
3318 * config/ia64/ia64.c (group_barrier_needed_p): Special case
3319 prologue_allocate_stack.
3320 (ia64_single_set): Use insn codes for recognition of special
3321 cases, not rtl matching.
3322 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
3324 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
3326 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
3328 2002-03-30 Richard Henderson <rth@redhat.com>
3331 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
3332 or -fomit-frame-pointer with profiling.
3333 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3334 (FUNCTION_PROFILER): Do nothing.
3335 (PROFILE_HOOK): New.
3336 * config/sparc/sparc.c (sparc_override_options): Don't check
3337 code models for profiling.
3338 (sparc_function_profiler): Remove.
3339 (sparc_profile_hook): New.
3340 * config/sparc/sparc-protos.h: Update.
3342 2002-03-30 Jakub Jelinek <jakub@redhat.com>
3344 PR optimization/6086
3345 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
3346 of SUBREG of volatile MEM or because the MEM was mode dependent,
3347 return CLOBBER instead of unmodified SUBREG.
3349 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
3351 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
3352 when not optimizing.
3354 * toplev.c (rest_of_compilation): Cann mark_constant_function
3355 only when optimizing.
3357 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
3360 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
3361 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
3362 (try_optimize_cfg): clear all AUX fields.
3364 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
3365 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
3366 (ix86_address_cost): Be prepared for SUBREGed registers.
3367 (legitimate_address_p): Accept SUBREGed registers.
3369 2002-03-29 Richard Henderson <rth@redhat.com>
3372 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
3374 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3376 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
3377 for aggregate and TFmode types.
3379 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
3381 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
3383 2002-03-29 Richard Henderson <rth@redhat.com>
3386 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
3387 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
3389 2002-03-29 Richard Henderson <rth@redhat.com>
3392 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
3393 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
3394 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
3395 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
3397 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
3399 2002-03-29 Dale Johannesen <dalej@apple.com>
3401 * loop.c (combine_movables): Do allow combination of pseudos.
3403 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
3405 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
3406 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
3407 No functional change except ...
3408 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
3409 * doc/install.texi (*-*-freebsd*): Document port configuration.
3411 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
3413 * Makefile.in (convert.o, calls.o, expmed.o): Update.
3414 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
3416 * builtin-types.def (BT_PTRMODE): Update.
3417 * c-common.c (type_for_size): Rename c_common_type_for_size.
3418 (type_for_mode): Similarly.
3419 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
3421 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
3422 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
3423 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
3425 * c-typeck.c (common_type, comptypes, default_conversion):
3427 * calls.c: Include langhooks.h.
3428 (emit_library_call_value_1): Use new hooks. Avoid redundant
3430 * convert.c: Include langhooks.h
3431 (convert_to_pointer, convert_to_integer): Use new hooks.
3432 * except.c (init_eh): Similarly.
3433 * expmed.c: Include langhooks.h.
3434 (expand_mult_add): Use new hooks.
3435 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
3436 try_casesi): Similarly.
3437 * fold-const.c (optimize_bit_field_compare, make_range,
3438 decode_field_reference, fold_truthop, fold): Similarly.
3439 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
3440 put_var_into_stack): Similarly.
3441 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
3442 LANG_HOOKS_TYPE_FOR_SIZE): New.
3443 (LANG_HOOKS_TYPES_INITIALIZER): Update.
3444 * langhooks.h (lang_hooks_for_types): New hooks.
3445 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
3446 * tree.c (get_unwidened, get_narrower): Similarly.
3447 * tree.h (type_for_mode, type_for_size): Remove.
3448 * varasm.c (force_const_mem): Use new hooks.
3449 * utils2.c (nonbinary_modular_operation): Update.
3451 * objc-act.c (handle_impent): Update.
3452 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
3455 2002-03-29 Steve Ellcey <sje@cup.hp.com>
3457 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
3458 * config/ia64/ia64.c (basereg_operand): New.
3459 * config/ia64/ia64-protos.h (basereg_operand): Declare.
3460 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
3462 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
3464 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
3465 unwind information when frame_pointer_needed.
3466 (mmix_assemble_integer): Tweak wording in comment.
3468 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
3470 * Makefile.in (except.o): Update.
3471 * except.c: Include langhooks.h.
3472 (init_eh): Use langhook.
3473 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
3474 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
3475 (LANG_HOOKS_INITIALIZER): Update.
3476 * langhooks.h (lang_hooks_for_types): New.
3477 (struct lang_hooks): Add it.
3478 * tree.c (make_lang_type_fn, make_lang_type): Remove.
3479 * tree.h (make_lang_type_fn, make_lang_type): Remove.
3481 * alpha/alpha.c: Include langhooks.h.
3482 (alpha_build_va_list): Use langhook.
3483 * d30v/d30v.c: Include langhooks.h.
3484 (d30v_build_va_list): Use langhook.
3485 * i386/i386.c: Include langhooks.h.
3486 (ix86_build_va_list): Use langhook.
3487 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
3488 * s390/s390.c: Include langhooks.h.
3489 (s390_build_va_list): Use langhook.
3490 * stormy16/stormy16.c: Include langhooks.h.
3491 (stormy16_build_va_list): Use langhook.
3493 2002-03-29 Jakub Jelinek <jakub@redhat.com>
3496 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
3498 (length): Compute variable length for branches/calls/jumps here.
3499 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
3500 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
3501 define branch_type attribute.
3502 (divsi3_sp32): Maximum length is 6 not 7.
3503 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
3504 call_address_untyped_struct_value_sp32,
3505 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
3506 * config/sparc/sparc.c (empty_delay_slot): New function.
3507 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
3508 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
3510 2002-03-29 Jakub Jelinek <jakub@redhat.com>
3512 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
3513 nonzero_bits if not needed.
3514 (nonzero_bits) [XOR]: Likewise.
3515 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
3516 reg_last_set_mode and mode are both MODE_INT, but not equal.
3517 (record_value_for_reg): Compute reg_last_set_nonzero_bits
3518 in nonzero_bits_mode for MODE_INT modes.
3520 2002-03-28 Richard Henderson <rth@redhat.com>
3523 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
3524 to GAS. Correct drift between alternatives.
3526 2002-03-28 Richard Henderson <rth@redhat.com>
3529 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
3531 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
3533 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
3534 emulation to the linker.
3536 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
3538 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
3539 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
3541 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
3543 * combine.c (simplify_and_const_int): Make sure to apply mask
3544 when force_to_mode returns a constant integer. PR3311.
3546 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
3548 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
3550 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3552 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
3553 and Objective-C Dialect Options.
3555 2002-03-28 Richard Henderson <rth@redhat.com>
3557 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
3558 comparison should be done vs !=0 not >0 return code. Tidy cases.
3560 2002-03-28 Richard Henderson <rth@redhat.com>
3562 * c-decl.c (finish_function): New arg can_defer_p. Pass it
3563 on to c_expand_body.
3564 * c-tree.h (finish_function): Update decl.
3565 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
3567 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
3569 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
3571 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
3573 * rtlanal.c: Include flags.h
3574 (may_trap_p): Do not mark FP operations if trapping
3575 if !flag_trapping_math
3576 * Makefile.in (rtlanal.o): Add dependency on flag.h
3577 * ifcvt.c (noce_operand_ok): Avoid the lameness.
3579 2002-03-27 Zack Weinberg <zack@codesourcery.com>
3581 * mips.md: Use dconst1, not 1.0, as first argument of
3582 REAL_VALUE_LDEXP. Don't use union real_extract.
3584 2002-03-28 Alan Modra <amodra@bigpond.net.au>
3586 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
3587 rather than $target. Heed program_prefix and
3588 program_transform_name. Search for gas in cross-compiler case too.
3589 "test -x" rather than "test -f".
3590 (gcc_cv_ld): Likewise.
3591 (gcc_cv_nm): Heed program_prefix and program_transform_name.
3592 (gcc_cv_objdump): Likewise.
3593 * configure: Regenerate.
3595 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
3597 * Makefile.in (attribs.o): Update.
3598 * attribs.c: Include langhooks.h.
3599 (decl_attributes): Use langhook.
3600 * c-decl.c (insert_default_attributes): Rename.
3601 * c-tree.h (c_insert_default_attributes): New.
3602 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
3603 (LANG_HOOKS_INITIALIZER): Update.
3604 * langhooks.h (struct lang_hooks): New hook.
3605 * tree.h (insert_default_attributes): Remove.
3607 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
3609 2002-03-27 Andreas Schwab <schwab@suse.de>
3611 * config/i386/i386.c (classify_argument): Also check for
3614 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3616 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
3619 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
3621 * i960.md (ret): Set PC.
3622 (nonlocal_goto): Fix expander.
3623 * builtins.c (epxand_builin_longjmp): Check that we've emitted
3626 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
3628 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
3631 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3633 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
3634 assigning to BLOCK_FOR_INSN directly.
3636 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
3638 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
3640 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
3642 * c-common.c (c_expand_expr): Fix prototype.
3643 * c-common.h (c_expand_expr): Always declare, update.
3644 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
3645 * c-objc-common.c (c_objc_common_init): No global hook.
3646 * expr.c (expand_expr): Use langhook.
3647 * expr.h (enum expand_modifier): Conditionally declare.
3648 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
3649 (LANG_HOOKS_INITIALIZER): Update.
3650 * langhooks.c (lhd_expand_expr): New.
3651 * langhooks.h (struct lang_hooks): New hook.
3652 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
3653 (lang_independent_init): Don't default hook.
3655 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
3657 2002-03-27 Richard Henderson <rth@redhat.com>
3660 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
3661 TARGET_CONST_GP. Simplify conditions.
3663 2002-03-27 Richard Henderson <rth@redhat.com>
3665 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
3666 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
3667 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
3669 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
3671 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
3672 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
3673 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
3674 Remove unnecessary masks.
3675 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
3676 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
3677 -mwindows, -mdll switches and their negations.
3679 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
3681 * gcc-common.c (lang_mark_false_label_stack): Remove.
3682 * ggc.h (lang_mark_false_label_stack): Similarly.
3684 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
3686 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
3688 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
3689 or __rtems_ is defined.
3691 2002-03-26 Richard Henderson <rth@redhat.com>
3693 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
3694 if a non-trivial load was emitted.
3695 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
3696 in high+extra+low case.
3698 2002-03-26 Richard Henderson <rth@redhat.com>
3700 * config.gcc (sparc*-solaris): Use float_format=sparc.
3702 2002-03-26 Richard Henderson <rth@redhat.com>
3704 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
3705 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
3706 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
3707 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
3708 (WINT_TYPE_SIZE): Fix at 32.
3710 2002-03-26 Richard Henderson <rth@redhat.com>
3712 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
3713 until after eh landing pad generation.
3714 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
3715 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
3717 2002-03-26 Richard Henderson <rth@redhat.com>
3719 * expr.h (ADD_PARM_SIZE): One more convert for INC.
3721 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
3723 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
3724 and warning switches.
3725 (cc1_options): Likewise.
3727 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
3729 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
3730 Restore more of the signal context. Set no_reg_stack_frame.
3731 * config/ia64/unwind-ia64.c (unw_state_record):
3732 Add no_reg_stack_frame, comments.
3733 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
3734 (uw_update_context): Adjust bsp when unwinding from leaf,
3735 but not signal frame.
3737 2002-03-26 David Edelsohn <edelsohn@gnu.org>
3739 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
3741 2002-03-26 Bob Wilson <bob.wilson@acm.org>
3743 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
3745 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
3748 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
3749 "Add a pool_range attribute", which was lost during the ARM/Thumb
3752 2002-03-26 Bob Wilson <bob.wilson@acm.org>
3754 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
3755 a register into the MAC16 accumulator.
3757 2002-03-26 Andrew Cagney <ac131313@redhat.com>
3759 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
3760 (Warning Options): Document -Wswitch-enum.
3761 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
3763 (warn_switch_enum): Define variables.
3764 * flags.h (warn_switch_enum): Declare variables.
3765 * stmt.c (expand_end_case_type): When warn_switch_enum /
3766 -Wswitch-enum, perform switch checks.
3769 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
3771 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
3772 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
3773 (reload_muladdsi_compare0_scratch): Delete.
3775 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
3777 * doc/install.texi (*-*-freebsd*): Update.
3779 2002-03-26 Richard Henderson <rth@redhat.com>
3781 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
3782 (SUB_PARM_SIZE): Cast DEC to ssizetype.
3784 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
3785 types from the normal argument frame.
3787 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
3788 variable sized objects by reference.
3789 (sparc_va_arg): Receive them by reference too.
3791 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
3793 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
3794 code to not restoring global registers.
3796 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
3798 * Makefile.in (ggc-common.o): Update.
3799 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
3800 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
3801 * c-tree.h (c_mark_tree): New.
3802 * ggc-common.c: Include langhooks.h.
3803 (gcc_mark_trees): Use new langhook.
3804 * ggc-callbacks.c: Delete file.
3805 * ggc.h (lang_mark_tree): Remove.
3806 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
3807 (LANG_HOOKS_INITIALIZER): Update.
3808 * langhooks.h (struct lang_hooks): New hook.
3810 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
3812 2002-03-25 Zack Weinberg <zack@codesourcery.com>
3814 * doc/cpp.texi: Exclude entire Top node from printed manual.
3815 Move option index after directive index. Insert page breaks
3816 before GFDL and concept index. Index environment variables
3817 with command line options.
3818 * doc/cppenv.texi: Use @vtable for environment variable list.
3819 Add paragraph explaining semantics of empty elements in path
3820 variables. Exclude a cross-reference to Fishkill from the
3821 manpage. Remove an unnecessary cross-reference of the entry
3822 right above the referer. Don't use @anchor in text that goes
3824 * doc/cppopts.texi: Cross-reference the environment variables
3825 section, not the specific environment variable, for consistency.
3827 2002-03-25 Richard Henderson <rth@redhat.com>
3829 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
3830 anywhere in the block. Don't refer to insns that have been
3831 removed from the chain. Iterate backward through the new insns.
3832 Don't refer to edges that have been removed.
3834 2002-03-26 Alan Modra <amodra@bigpond.net.au>
3836 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
3837 test for overflow of constant.
3839 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
3842 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
3843 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
3844 these patterns on arm_archv4.
3846 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
3848 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
3851 2002-03-25 Zack Weinberg <zack@codesourcery.com>
3853 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
3854 float_handled, float_handler, float_signal, set_float_handler,
3855 and do_float_handler. Set handler for SIGFPE to crash_signal.
3856 * toplev.h: Don't prototype do_float_handler.
3858 * c-lex.c: Fold parse_float into lex_number. Make warning
3859 about portability of hex float constants more informative, and
3860 don't issue it on top of a syntax error.
3861 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
3863 * real.h: Define REAL_VALUE_ABS here...
3864 * simplify-rtx.c: ... not here. Fold check_fold_consts,
3865 simplify_unary_real, simplify_binary_real, and
3866 simplify_binary_is2orm1 into their callers.
3867 * tree.c: Fold build_real_from_int_cst_1 into caller.
3869 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
3871 * tsystem.h: Include float.h here...
3872 * libgcc2.c: ... not here.
3874 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
3876 Fixes for: PR bootstrap/3591, target/5676
3877 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
3878 defined. Do not disable exceptions or rtti.
3879 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
3880 mcore.h. Disable exceptions and rtti, since they are not
3883 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
3885 * c-decl.c (maybe_build_cleanup): Remove.
3886 * expr.c (expand_expr): Use langhook.
3887 * langhooks-def.h (lhd_return_null_tree,
3888 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
3889 (LANGHOOKS_INITIALIZER): Update.
3890 * langhooks.c (lhd_return_null_tree): New.
3891 * langhooks.h (struct lang_hooks): New hook.
3892 * tree-inline.c (initialize_inlined_parameters): Use langhook.
3893 * tree.h (maybe_build_cleanup): Remove.
3895 2002-03-25 Jakub Jelinek <jakub@redhat.com>
3897 * regrename.c (build_def_use): Move recog_memoized
3898 before extract_insn.
3900 2002-03-25 Jakub Jelinek <jakub@redhat.com>
3903 * expr.c (emit_group_store): Handle storing into CONCAT.
3905 2002-03-25 Jakub Jelinek <jakub@redhat.com>
3907 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
3908 corresponding MATCH_DUP.
3910 2002-03-24 Richard Henderson <rth@redhat.com>
3912 * unroll.c (unroll_loop): Zero label_map.
3914 * gcse.c: Include except.h.
3915 * Makefile.in (gcse.o): Update.
3917 2002-03-24 Richard Henderson <rth@redhat.com>
3919 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
3920 Do resolve_unique_section before shared data clause.
3922 2002-03-24 Richard Henderson <rth@redhat.com>
3924 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
3926 2002-03-24 Richard Henderson <rth@redhat.com>
3928 * recog.c (peephole2_optimize): Split blocks when EH insns are
3929 generated in the middle of a block. Do global life update if
3932 2002-03-24 Richard Henderson <rth@redhat.com>
3934 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
3936 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
3939 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
3940 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
3941 (init_dependency_output): Don't make no_output decision here.
3943 2002-03-24 Andrew Cagney <ac131313@redhat.com>
3945 * stmt.c (check_for_full_enumeration_handling): Remove tests of
3946 warn_switch. Update description.
3947 (expand_end_case_type): Call check_for_full_enumeration_handling
3950 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3952 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
3953 (m68hc11_split_move): Call it to see if the source and destination
3954 operands use the same direction auto inc/dec mode, otherwise make the
3955 source an offsetable memory operand and generate an add.
3957 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3959 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
3960 register for operand 2.
3961 ("*subsi3_zero_extendqi"): Likewise.
3962 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
3963 bits so that it is compatible with a pop.
3964 ("*andhi3_gen"): Likewise.
3965 ("xorhi3"): Likewise.
3967 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
3969 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
3971 (cpp_post_options): ... not here.
3973 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
3974 Aldy Hernandez <aldyh@redhat.com>
3976 Removal of separate preprocessor cpp0.
3978 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
3979 cpp0, install-common): Update.
3980 * c-common.c (flag_preprocess_only): New.
3981 (c_common_init): Preprocess for -E.
3982 * c-common.h (flag_preprocess_only): New.
3983 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
3984 * c-objc-common.c (c_init_decl_processing): Exit quickly
3985 for NULL return from c_common_init.
3986 * cpplib.h (cpp_preprocess_file): New.
3987 * cppmain.c (main, general_init, pfile, progname): Remove.
3988 (do_preprocessing): Rename cpp_preprocess_file, don't call
3989 cpp_finish. Don't close stdout here.
3990 (setup_callbacks): Update prototype.
3991 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
3993 * tradcpp.c (main): Ignore -quiet.
3995 * lang-specs.h (default_compilers): Preprocess with cc1obj.
3997 2002-03-24 Richard Henderson <rth@redhat.com>
3999 PR optimization/5742
4000 * machmode.def: Add inner mode field to complex modes.
4001 * config/mips/mips.c (mips_function_value): Always define. Add
4002 new argument to handle libcalls.
4003 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
4004 (FUNCTION_VALUE): Likewise.
4005 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
4006 * config/mips/mips-protos.h: Update.
4008 2002-03-23 Richard Henderson <rth@redhat.com>
4010 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
4011 * config/sparc/sparc-protos.h: Update.
4012 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
4014 2002-03-23 Richard Henderson <rth@redhat.com>
4016 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
4017 _start or _init begins the text segment.
4019 2002-03-23 David Edelsohn <edelsohn@gnu.org>
4021 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
4022 not HOST_WIDEST_INT.
4023 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
4025 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
4028 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
4029 operand argument to output_return_instruction.
4030 * arm.c (arm_print_operand, case 'd'): If the operand is
4031 const_true_rtx then just return.
4032 (arm_print_operand, case 'D'): If the operand is const_true_rtx
4035 2002-03-23 Andrew Cagney <ac131313@redhat.com>
4037 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
4038 (Warning Options): Document -Wswitch-default.
4039 * toplev.c (W_options): Add -Wswitch-default. Update comment on
4041 (warn_switch_default): Define variable.
4042 (warn_switch): Update comment.
4043 * flags.h (warn_switch_default): Declare variable.
4044 (warn_switch): Update comment.
4045 * stmt.c (expand_end_case): Check for and, when
4046 warn_switch_no_default, warn of a missing default case.
4048 2002-03-23 Alan Modra <amodra@bigpond.net.au>
4050 * real.h (N): Special case 128 bit doubles.
4052 * combine.c (simplify_comparison): When widening modes, ignore
4053 sign extension on CONST_INTs.
4055 2002-03-22 Bob Wilson <bob.wilson@acm.org>
4057 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
4058 passed to adjust_address. Fix comment formatting.
4061 2002-03-22 Zack Weinberg <zack@codesourcery.com>
4063 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
4064 Always make REAL_VALUE_TYPE a struct containing an array of
4065 HOST_WIDE_INT, not a double. Tidy up the code deciding how
4066 big it is. Don't declare or use union real_extract.
4068 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
4069 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
4070 (print_operand), config/arm/arm.c (output_move_double),
4071 config/arm/arm.md (consttable_4, consttable_8),
4072 config/romp/romp.c (output_fpops), config/s390/s390.h
4073 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
4074 (xtensa_output_literal): Don't use union real_extract.
4076 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
4077 (sfmode_constant_to_ulong), config/ns32k/merlin.h
4078 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
4079 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
4080 (PRINT_OPERAND): Don't use local version of union
4083 * config/convex/convex.c (check_float_value), config/vax/vax.c
4084 (vax_float_literal), config/m88k/m88k.md (divdf3),
4085 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
4086 config/pdp11/pdp11.c (output_move_quad): Don't do host
4087 arithmetic on target floating point quantities.
4089 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
4090 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
4092 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
4093 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
4095 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
4096 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
4098 * print-rtl.c (print_rtx): Disable code which needs
4099 floating-point emulator.
4100 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
4101 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
4102 depending on HOST_FLOAT_FORMAT to be defined properly.
4104 * config/1750a/1750a.c (get_double, float_label): Delete.
4105 (print_operand): Delete huge commented-out chunk. Use
4106 REAL_VALUE_TO_DECIMAL.
4107 * config/1750a/1750a-protos.h: Delete prototypes of deleted
4109 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
4111 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
4112 Use REAL_VALUE_TO_DECIMAL as ELF version does.
4113 * config/m88k/m88k.c (real_power_of_2_operand,
4114 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
4115 real_extract out of the union; run the input through
4116 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
4117 from that into the union.
4118 * config/pdp11/pdp11.c (output_move_double): Rearrange
4119 parentheses to make automatic indenter happy.
4121 * doc/tm.texi (Cross-compilation): Rename node to "Floating
4122 Point" and rewrite to describe current situation. Also adjust
4123 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
4125 * doc/rtl.texi: Adjust cross reference.
4127 2002-03-22 Bob Wilson <bob.wilson@acm.org>
4129 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
4130 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
4131 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
4132 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
4133 prevent use of sp as a reload register.
4134 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
4135 non_acc_reg_operand.
4136 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
4137 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
4138 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
4139 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
4141 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
4143 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
4144 * cpplex.c (unterminated): Delete.
4145 (parse_string): No string literal may extend over multiple
4146 lines. Suppress the error when preprocessing assembly.
4147 * cppmain.c (scan_translation_unit): Strings are single-line.
4149 * doc/cpp.texi: Update to match.
4151 2002-03-22 Jakub Jelinek <jakub@redhat.com>
4153 PR optimization/5854
4154 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
4156 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
4157 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
4158 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
4159 const0 if scratch register was not allocated.
4160 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
4161 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
4163 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
4164 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
4165 with GEN_INT (...) everywhere. Remove constraints in define_split
4167 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
4168 require scratch register for setting 0 into regs/non-pushable memory.
4170 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
4172 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
4173 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
4175 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
4177 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
4178 * cppinit.c (cpp_create_reader): On by default.
4179 (cpp_handle_option): Handle -W[no-]endif-labels.
4180 (cpp_post_options): Also enable if -pedantic.
4181 * cpplib.c (do_else): Use it.
4182 (do_endif): Likewise.
4183 * doc/cppopts.texi: Document new option.
4184 * doc/invoke.texi: Document new option.
4186 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
4188 * config/i386/i386.c, config/i386/i386.md: Change all occurences
4189 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
4191 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
4193 * flow.c (calculate_global_regs_live): Clear aux fields of
4196 2002-03-22 Jakub Jelinek <jakub@redhat.com>
4198 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
4199 REG or MEM subregs, pass rtx * instead of rtx to it.
4200 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
4201 rtx * instead of rtx to alter_subreg.
4202 * config/m32r/m32r.c (gen_split_move_double): Likewise.
4203 * config/pj/pj.c (pj_output_rval): Likewise.
4205 2002-03-22 Richard Henderson <rth@redhat.com>
4208 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
4209 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
4210 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
4211 (ia64_expand_prologue): Look at int_regs, not words, for number
4212 of incomming int regs.
4214 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
4216 * expr.c (expand_expr): A RESULT_DECL is part of a call.
4218 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
4220 * toplev.c (flag_loop_optimize, flag_crossjumping):
4221 New static variables.
4222 (rest_of_compilation): Conditionalize crossjumping and
4224 (parse_options_and_default_flags): Default loop_optimize and
4226 (lang_independent_options): Add -fcrossjumping and -floop-optimize
4227 * invoke.texi (crossjumping, loop-optimize): Document.
4229 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
4231 * real.c (eiisneg): Move outside #ifdef NANS.
4233 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
4235 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
4236 frequencies match; avoid match on different loop depths.
4237 (try_crossjump_to_bb): Kill tests that no longer brings time
4239 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
4241 (split_edge): Likewise.
4243 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
4246 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
4247 * cfgrtl.c: Include insn-config.h
4248 (split_block) Dirtify block in presence of conditional execution
4250 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
4252 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
4253 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
4254 (function_arg): Constify CUMULATIVE_ARGS.
4255 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
4256 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
4257 (UNITS_PER_DOUBLE): New macro.
4258 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
4259 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
4260 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
4261 fp_regs and stack_words.
4262 (EABI_FLOAT_VARARGS_P): New macro.
4263 * config/mips/mips.c (struct mips_arg_info): New.
4264 (mips_arg_info): New function.
4265 (function_arg_advance): Use it. Add adjustment instructions here
4266 rather than in function_arg.
4267 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
4268 for VOIDmode at the beginning of the function.
4269 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
4270 (function_arg_pass_by_reference): Likewise.
4271 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
4272 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
4273 (mips_va_start): Likewise. Use the new stack_words field of
4274 CUMULATIVE_ARGS to set up overflow area. Reformat.
4275 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
4276 doubles and other types, aligning the overflow pointer for non-doubles
4277 too. Remove some code duplication. Replace hard-coded constants.
4279 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
4281 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
4282 (CLASS_UNITS): Undefine.
4283 (CLASS_MAX_NREGS): Use FP_INC.
4284 * config/mips/mips.c (compute_frame_size): Likewise.
4285 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
4287 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
4289 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
4290 prototype, and handle lexing numbers and identifiers.
4291 (parse_identifier): Update to new form of parse_slow.
4292 (parse_number): Fast path only, use parse_slow otherwise.
4293 (_cpp_lex_direct): Update calls to parse_number.
4295 2002-03-21 DJ Delorie <dj@redhat.com>
4297 * bb-reorder.c (make_reorder_chain_1): Protect against
4298 when redundant edges are omitted.
4299 * predict.c (dump_prediction): Likewise.
4301 2002-03-21 Richard Henderson <rth@redhat.com>
4304 * fixinc/inclhack.def (solaris_stdio_tag): New.
4305 * fixinc/fixincl.x: Regenerate.
4307 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
4310 * c-typeck.c (process_init_element): Flag non-static
4311 initialization of a flexible array member as illegal.
4313 2002-03-22 Alan Modra <amodra@bigpond.net.au>
4315 * config/rs6000/t-linux64: New.
4316 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
4317 t-ppccomm. Use t-rs6000 and t-linux64.
4318 (powerpc64-*-gnu* <tmake_file>): Likewise.
4319 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
4320 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
4321 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
4323 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
4325 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
4326 flag_really_no_inline instead of optimize == 0.
4328 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
4330 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
4332 * flags.h (flag_really_no_inline): New.
4334 * c-common.c (c_common_post_options): Initialize
4335 flag_really_no_inline.
4337 * toplev.c (flag_really_no_inline): New.
4339 2002-03-21 Jakub Jelinek <jakub@redhat.com>
4341 * config/avr/avr.md (length): Fix length computation for
4342 conditional branches.
4344 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
4346 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
4347 sdbout.o, profile.o): Update.
4348 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
4350 * c-common.h (gettags): Move here from tree.h.
4351 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
4352 insert_block, getdecls, kept_level_p, global_bindings_p): New.
4353 * dbxout.c (dbxout_init): Use getdecls langhook.
4354 * expr.c (expand_expr): Use insert_block langhook.
4355 * fold-const.c: Include langhooks.h.
4356 (fold_range_test, fold_binary_op_with_conditional_arg,
4357 fold): Use global_bindings_p langhook.
4358 * integrate.c (expand_inline_function): Use insert_block langhook.
4359 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
4360 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
4361 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
4362 LANG_HOOKS_GETDECLS): New.
4363 (LANG_HOOKS_INITIALIZER): Update.
4364 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
4366 * langhooks.h (struct lang_hooks_for_decls): New.
4367 (struct lang_hooks): Update.
4368 * profile.c: Include langhooks.h.
4369 (output_func_start_profiler): Use new langhooks.
4370 * sdbout.c: Include langhooks.h.
4371 (sdbout_init, sdbout_finish): Use getdecls langhook.
4372 * stmt.c: Include langhooks.h.
4373 (expand_fixup, fixup_gotos): Use new langhooks.
4374 * stor-layout.c: Include langhooks.h.
4375 (variable_size): Use global_bindings_p langhook.
4376 * toplev.c (compile_file): Use getdecls langhook.
4377 * tree-inline.c (remap_block): Use insert_block langhook.
4378 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
4379 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
4381 2002-03-21 Richard Henderson <rth@redhat.com>
4383 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
4384 constants in .data when -fpic.
4386 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4388 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
4391 2002-03-21 Tom Tromey <tromey@redhat.com>
4393 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
4395 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4397 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
4399 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
4401 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
4402 Richard Henderson <rth@redhat.com>
4405 * c-common.c (c_expand_expr): Preserve result of a statement
4406 expression if needed.
4408 2002-03-21 Jakub Jelinek <jakub@redhat.com>
4411 * genrecog.c (maybe_both_true_mode): Remove.
4412 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
4413 * machmode.def (Pmode): Likewise.
4415 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
4417 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
4418 (nonlocal_mentioned_p_1): New function.
4419 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
4420 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
4421 (mark_constant_function): Recognize pure functions.
4422 * rtl.h (global_reg_mentioned_p): New prototype.
4423 * rtlanal.c (global_reg_mentioned_p,
4424 global_reg_mentioned_p_1): New function.
4426 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4428 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
4430 * fixinc/fixincl.x: Regenerate.
4432 2002-03-20 Jason Merrill <jason@redhat.com>
4434 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
4436 2002-03-20 Michael Meissner <meissner@redhat.com>
4438 * doc/invoke.texi (Optimize Options): Document that -O2 sets
4441 2002-03-20 Bob Wilson <bob.wilson@acm.org>
4443 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
4444 ".literal_position" directive before the constant pool.
4446 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4448 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
4449 Add Craig Rodrigues.
4450 Add Brad Lucier to testers.
4452 2002-03-20 Jakub Jelinek <jakub@redhat.com>
4455 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
4457 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
4458 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
4459 instead of insn_extract.
4461 2002-03-20 Jakub Jelinek <jakub@redhat.com>
4464 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
4466 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
4467 stmt if some case has been output.
4469 2002-03-20 Jakub Jelinek <jakub@redhat.com>
4472 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
4473 movsfcc_1, movdfcc_1): Add %O2.
4474 * config/i386/i386.c (print_operand): Handle %ON.
4475 Print . before float condition codes in Sun as cmov syntax.
4476 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
4477 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
4480 2002-03-20 Philip Blundell <pb@nexus.co.uk>
4482 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
4483 return instruction if PC was popped.
4485 2002-03-20 Bob Wilson <bob.wilson@acm.org>
4487 * config/xtensa/xtensa.md: Remove unused type attributes.
4488 (adddi_carry, subddi_carry): Change type attribute to "multi".
4490 2002-03-19 Dale Johannesen <dalej@apple.com>
4492 PR optimization/5999, middle-end/5731
4493 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
4494 multiplications by reciprocals.
4496 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
4498 * Makefile.in: Update.
4499 * c-common.c: Include langhooks.h.
4500 (inline_forbidden_p): Use new hook.
4501 * diagnostic.c: Include langhooks.h.
4502 (format_with_decl, announce_function,
4503 default_print_error_function): Use new hook.
4504 * dwarf2out.c (dwarf2_name): Use new hook.
4505 * function.c: Include langhooks.h.
4506 (init_function_start): Use new hook.
4507 * langhooks-def.h (lhd_decl_printable_name): New.
4508 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
4509 (LANGHOOKS_INITIALIZER): Update.
4510 * langhooks.c (lhd_decl_printable_name): New.
4511 * langhooks.h (struct lang_hooks): New hook.
4512 * toplev.c (decl_name, decl_printable_name): Remove.
4513 (open_dump_file): Use new hook.
4514 (process_options): Remove old hook.
4515 * tree.h (decl_printable_name): Remove.
4517 * objc-act.c (objc_init): Remove old hook.
4518 (objc_printable_name): Export.
4519 * objc-act.h (objc_printable_name): New.
4520 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
4522 2002-03-19 Jim Blandy <jimb@redhat.com>
4524 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
4525 the start_source_file debug hook, not the current line number.
4527 2002-03-19 Richard Henderson <rth@redhat.com>
4529 * flow.c (EH_USES): Provide default.
4530 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
4531 * doc/tm.texi (EH_USES): New.
4533 * config/ia64/ia64.c (ia64_eh_uses): New.
4534 * config/ia64/ia64-protos.h: Update.
4535 * config/ia64/ia64.h (EH_USES): New.
4537 2002-03-19 Richard Henderson <rth@redhat.com>
4539 * varasm.c (output_constant_def): Fix stupid typo.
4541 2002-03-19 Richard Henderson <rth@redhat.com>
4544 * except.c (current_function_has_exception_handlers): New.
4545 * except.h: Declare it.
4546 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
4547 Combine tests that disable all sibcalls for the function.
4549 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
4551 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
4554 2002-03-19 Richard Henderson <rth@redhat.com>
4557 * config/ia64/ia64.c: Revert 2002-03-01 patch.
4558 * config/ia64/ia64.h (INIT_EXPANDERS): New.
4560 2002-03-19 Jim Blandy <jimb@redhat.com>
4562 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
4563 name, even if the replacement list contains no tokens, as required
4566 2002-03-19 Jason Merrill <jason@redhat.com>
4568 * varasm.c (globalize_decl): Get the name from the RTL, not
4569 DECL_ASSEMBLER_NAME.
4571 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
4573 2002-03-19 Bob Wilson <bob.wilson@acm.org>
4575 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
4576 subdi_carry): Define.
4578 2002-03-19 David Edelsohn <edelsohn@gnu.org>
4580 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
4581 about -fpic/-fPIC if extra_warnings set.
4583 2002-03-19 David Edelsohn <edelsohn@gnu.org>
4585 * expr.c (expand_expr): Sign-extend CONST_INT generated from
4586 TREE_STRING_POINTER.
4587 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
4589 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4591 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
4592 in favor of SP if FRAME_POINTER_REQUIRED is false.
4594 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
4596 * emit-rtl.c (gen_int_mode): New function.
4597 * rtl.h: Prototype for it.
4598 * combine.c (make_extraction, simplify_comparison), expmed.c
4599 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
4600 (convert_modes, store_field), optabs.c (expand_fix),
4601 simplify-rtx.c (neg_const_int, simplify_unary_real),
4603 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
4604 Use it instead of GEN_INT (trunc_int_for_mode (...)).
4606 2002-03-19 Jakub Jelinek <jakub@redhat.com>
4609 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
4610 convert_parm_for_inlining.
4611 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
4613 * langhooks-def.h: Likewise.
4614 * objc/objc-lang.c: Likewise.
4615 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
4617 * tree-inline.c (initialize_inlined_parameters):
4618 Call convert_parm_for_inlining lang hook if needed.
4619 * c-typeck.c (c_convert_parm_for_inlining): New function.
4620 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
4622 2002-03-18 Mark Mitchell <mark@codesourcery.com>
4624 * calls.c (precompute_arguments): Do not assume that temporaries
4625 can be destroyed after expanding the argument.
4626 (expand_call): Likewise.
4628 2002-03-15 Eric Christopher <echristo@redhat.com>
4630 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
4631 Fix register preference on last change.
4632 * config/mips/mips.c (mips_return_in_memory): New function.
4633 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
4634 * config/mips/mips-protos.h: Declare.
4635 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
4636 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
4638 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
4640 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
4642 (anddi3, iorsi3): Likewise.
4644 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
4645 use %gprel for symbols that are going to be placed in linkonce
4648 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
4649 RETURN_ADDRESS_POINTER_REGNUM to $ra.
4650 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
4651 not needed. Disregard leaf_function_p().
4652 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
4653 mips16 frame pointer.
4654 * config/mips/mips.md (store ra): Only to small SP offsets.
4655 2001-08-22 Graham Stott <grahams@redhat.com>
4656 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
4657 return a REG rtx for the return address register.
4659 2002-03-18 Bob Wilson <bob.wilson@acm.org>
4661 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
4662 constant-pool addresses as "mode-dependent".
4663 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
4665 2002-03-18 Jakub Jelinek <jakub@redhat.com>
4668 * expr.c (emit_group_load): Use extract_bit_field if
4669 needed for CONCAT arguments.
4671 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
4674 * arm.md (tablejump): Make this a define_expand. For PIC add the
4675 offset to the base of the table.
4676 (thumb_tablejump): Matcher for Thumb tablejump insn.
4677 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
4678 as the difference of two labels.
4679 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4680 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
4682 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
4683 * arm.c (get_jump_table_size): If the table is not in the text
4684 section, return zero.
4686 2002-03-18 Bernd Schmidt <bernds@redhat.com>
4688 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
4690 (arm_reload_out_hi): Use gen_lowpart instead of
4691 gen_rtx_SUBREG to access QImode components.
4692 * config/arm/arm.md: Disable zero_extend split for QImode
4693 subregs in BIG_ENDIAN mode.
4694 (storehi_bigend): Match use of least significant byte.
4695 (storeinthi): Remove extraneous SUBREG.
4696 Add missing construction of operands[2].
4697 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
4698 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
4699 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
4701 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
4703 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
4706 2002-03-17 Richard Henderson <rth@redhat.com>
4708 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
4711 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
4713 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
4714 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
4716 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4718 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
4720 * predict.c (estimate_bb_frequencies): Delete unused variables.
4722 2002-03-17 Richard Henderson <rth@redhat.com>
4724 * config/ia64/ia64.c (ia64_attribute_table): Move before
4725 targetm definition. Make static.
4727 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
4729 * c-common.h (yyparse, c_common_parse_file): New.
4730 * c-lang.c: Include c-common.h.
4731 (LANG_HOOKS_PARSE_FILE): Redefine.
4732 * c-lex.c: Include c-common.h.
4733 (yyparse): Rename c_common_parse_file. Call yyparse.
4734 * c-parse.in (yyparse): Remove macro.
4735 * c-tree.h (yyparse_1): Remove.
4736 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
4737 (LANG_HOOKS_INITIALIZER): Update.
4738 * langhooks.h (struct lang_hoooks): New hook parse_file.
4739 * toplev.c (compile_file): Use parse_file hook.
4740 * tree.h (yyparse): Remove.
4741 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
4743 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
4745 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
4746 float_truncate, not fix.
4747 ("*truncdfsf2_real"): Ditto.
4748 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
4750 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
4752 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
4754 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
4755 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
4756 where appropriate. Make the second reference to
4757 leaf_function_p a function call, as intended. Reindented.
4759 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
4760 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
4762 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
4763 add register to non-constant into sp.
4765 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
4766 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
4767 (mips16_gp_pseudo_rtx): Lose.
4768 (INIT_EXPANDERS): Deleted.
4769 * config/mips/mips.c (mips_init_machine_status): New.
4770 (mips_free_machine_status): New.
4771 (mips_mark_machine_status): New.
4772 (override_options): Set them.
4773 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
4774 (struct machine_function): ... new. Replaced all references.
4775 (mips_add_gc_roots): Don't mark them.
4776 (embedded_pic_fnaddr_reg): New, extracted from...
4777 (embedded_pic_offset): ... here.
4778 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
4781 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
4783 * cppinit.c: Revert -MD removal.
4785 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4787 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
4788 soft registers by default for 68HC12.
4789 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
4790 when compiling with -fomit-frame-pointer.
4791 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
4792 (expand_epilogue): Likewise.
4793 (m68hc11_gen_rotate): Use exg when rotating by 8.
4795 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4797 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
4798 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
4799 (splits): Remove unused add splits.
4800 ("*addhi3_68hc12"): Tune constraints.
4801 ("addhi_sp"): Try to use X instead of Y in all cases and if the
4802 constant fits in 8-bits and D is dead use abx/aby instructions.
4803 ("*addhi3"): Remove extern declaration of ix_reg.
4804 ("*subsi3"): Optimize and provide new split.
4805 ("subhi3"): Cleanup.
4806 ("*subhi3_sp"): Avoid saving X if we know it is dead.
4807 (arith splits): For 68hc12 save the address register on the stack
4808 and do the arithmetic operation with a pop.
4810 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4812 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
4813 allocating QImode in address registers.
4814 ("*movqi_m68hc11"): Likewise.
4816 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
4818 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
4820 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
4822 * cppinit.c (print_help): Display -MD and -MMD.
4823 Don't display usage string. Update assertion syntax and
4825 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
4826 (cpp_handle_option): Update.
4828 2002-03-15 Chris Demetriou <cgd@broadcom.com>
4830 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
4831 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
4832 and define it so that regardless of target CPU size,
4833 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
4834 of "int" rather than "long."
4836 2002-03-15 Richard Henderson <rth@redhat.com>
4838 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
4841 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4843 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
4844 ("tstqi" split): Avoid using memory for tstqi on address register.
4845 (splits): Remove constraints.
4846 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
4847 ("cmpdf", "cmpsf"): Remove since not used.
4848 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
4849 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
4851 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4853 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
4854 ("neghi2"): Tighten constraints.
4855 ("one_cmplsi2"): Optimize and simplify split.
4856 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
4858 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4860 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
4861 and split of AND operation to clear the upper bits.
4862 ("*logicalsi3_zextqi"): Likewise.
4863 ("*logicallhi3_zexthi_ashift8"): Likewise.
4864 ("*logicalsi3_silshr16"): Likewise.
4865 ("logicalsi3_silshl16"): Likewise.
4866 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
4868 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4870 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
4871 (m68hc11_indirect_p): New function.
4872 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
4873 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
4875 (asm_print_register): Likewise.
4876 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
4877 (m68hc11_indirect_p): Declare.
4878 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
4879 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
4880 (TARGET_SWITCHES): New option -mrelax.
4881 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
4883 ("iorsi3", "xorsi3"): Likewise.
4884 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
4885 ("*andhi3_mem"): New to handle destination in memory with bclr
4886 and a scratch register.
4887 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
4888 ("*andhi3_const"): New when operand2 is constant.
4889 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
4890 ("*andhi3_gen"): Cleanup of the old "andhi3".
4891 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
4892 ("xorqi3"): Update constraints.
4894 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4896 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
4897 for reg_equiv_memory_loc when the operand is a register that does
4898 not get a hard register (stack location).
4899 (tst_operand): After reload, accept all memory operand.
4900 (symbolic_memory_operand): Fix detection of symbolic references.
4901 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
4902 accept symbols and any constant.
4904 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4906 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
4907 note on the insn that sets the soft frame register.
4908 (must_parenthesize): ix and iy are also reserved names.
4909 (print_operand_address): One more place where parenthesis are required
4910 to avoid confusion with register names.
4911 (m68hc11_gen_movhi): Allow push of stack pointer.
4912 (m68hc11_check_z_replacement): Fix handling of parallel with a
4914 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
4915 the replacement register is.
4916 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
4917 and D8_REGS classes.
4918 (MODES_TIEABLE_P): All modes are tieable except QImode.
4920 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4922 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
4923 (___subdi3): Likewise.
4924 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
4925 (__map_data_section): Optimize 68hc11 case.
4927 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4929 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
4930 than a shift to avoid adding a register with itself.
4931 (m68hc11_memory_move_cost): Take into account NO_REGS.
4932 (m68hc11_register_move_cost): Update and use memory move cost
4934 (m68hc11_address_cost): Make cost of valid offset not 0 so that
4935 it gives more opportunities to cse to optimize.
4936 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
4937 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
4939 2002-03-15 Mark Mitchell <mark@codesourcery.com>
4941 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
4942 * c-common.def (CLEANUP_STMT): New tree node.
4943 * c-common.h (CLEANUP_DECL): New macro.
4944 (CLEANUP_EXPR): Likewise.
4945 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
4946 * expr.c (expand_expr): Tidy.
4947 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
4948 * tree-inline.c (initialize_inlined_parameters): Clean up
4949 new local variables.
4951 2002-03-15 Jakub Jelinek <jakub@redhat.com>
4954 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
4955 before movrXX only, use reg_overlap_mentioned_p.
4956 Only special case NE if just one insn can be generated.
4958 2002-03-15 Jason Merrill <jason@redhat.com>
4960 * varasm.c (assemble_variable): Call resolve_unique_section before
4961 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
4964 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
4967 * arm.md (split pattern for thumb shiftable immediates): Add comment
4968 explaining non-obvious test.
4970 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
4973 * arm.md (movaddr, movaddr_insn): Delete.
4975 2002-03-15 Jason Merrill <jason@redhat.com>
4977 * toplev.c (wrapup_global_declarations): Clarify variable handling.
4978 -fkeep-static-consts doesn't apply to comdats.
4980 2002-03-14 Richard Henderson <rth@redhat.com>
4982 * c-decl.c: Include c-pragma.h.
4983 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
4984 (finish_function): Tidy.
4985 * c-pragma.c: Include c-common.h.
4986 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
4987 (handle_pragma_weak): Use them.
4988 (init_pragma): Register pending_weaks.
4989 * c-pragma.h (maybe_apply_pragma_weak): Declare.
4990 * print-tree.c (print_node): Print DECL_WEAK.
4991 * varasm.c (mark_weak_decls): Remove.
4992 (remove_from_pending_weak_list): Remove.
4994 (asm_emit_uninitialised): Call globalize_decl for weak commons.
4995 (weak_decls): Make a tree_list.
4996 (declare_weak): Cons weak_decls directly.
4997 (globalize_decl): Remove weak_decls elements directly.
4998 (weak_finish): Simplify weak_decls walk. Don't weaken unused
4999 symbols. Don't pretend to handle aliases.
5000 (init_varasm_once): Update weak_decls registry.
5001 * Makefile.in: Update dependencies.
5003 2002-03-14 Richard Henderson <rth@redhat.com>
5006 * config/ia64/ia64.c: Include tm_p.h last.
5007 (gen_nop_type): Remove duplicate definition.
5008 (cycle_end_fill_slots): Set sched_data for second L slot.
5009 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
5010 (nop_cycles_until): Fix typos.
5012 2002-03-15 Jakub Jelinek <jakub@redhat.com>
5014 PR optimization/5891
5015 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
5017 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
5019 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
5020 descriptors correctly.
5022 2002-03-14 Michael Meissner <meissner@redhat.com>
5024 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
5025 100, allowing MAX_UNROLLED_INSNS to be overridden.
5027 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
5030 * unroll.c (params.h): Include.
5031 (MAX_UNROLLED_INSNS): Delete, now in params.h.
5033 * doc/invoke.texi (--param max-unroll-insns): Document.
5035 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
5037 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
5039 * arm.md: Fix warnings about constraints in peepholes and splits.
5041 2002-03-14 Zack Weinberg <zack@codesourcery.com>
5043 * cpphash.h (struct lexer_state): Remove line_extension member.
5044 * cpplib.c (dequote_string, do_linemarker): New functions.
5045 (linemarker_dir): New data object.
5046 (DIRECTIVE_TABLE): No longer need to interpret #line in
5047 preprocessed source. Delete obsolete comment about return
5049 (end_directive, directive_diagnostics, _cpp_handle_directive):
5050 Don't muck with line_extension.
5051 (directive_diagnostics): No need to issue warnings for
5053 (_cpp_handle_directive): Issue warnings for linemarkers here,
5054 when appropriate. Dispatch linemarkers to do_linemarker, not
5056 (do_line): Code to handle linemarkers split out to do_linemarker.
5057 Convert escape sequences in filename argument, both places.
5059 * cppmacro.c (quote_string): Rename cpp_quote_string and
5060 export. All callers changed.
5061 * cpplib.h (cpp_quote_string): Prototype.
5062 * cppmain.c (print_line): Call cpp_quote_string on to_file
5065 * doc/cpp.texi: Document that escapes are now interpreted in
5066 #line and in linemarkers, and that non-printing characters are
5067 converted to octal escapes when linemarkers are generated.
5069 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
5071 * emit-rtl.c (try_split): Use delete_insns.
5072 * recog.c (split_all_insns): Fix terminating condition.
5074 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
5075 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
5078 * arm.c (arm_output_epilogue): Fix floating-point register save
5079 adjustment when using a frame pointer.
5081 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
5083 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
5084 * config/mips/mips.c (compute_frame_size): Retrofit them here.
5085 (save_restore_insns, mips_expand_epilogue): And here.
5086 (build_mips16_call_stub): And here.
5087 (mips_function_value): Use the new macros to decide whether a single
5088 or complex float can be returned in floating-point registers. Return
5089 a parallel rtx in the complex case.
5091 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
5093 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
5094 call after liveness analysis.
5096 * recog.c (split_insn): Use delete_insn_and_edges.
5098 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
5099 instructions to have branch prediction notes.
5100 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
5102 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
5104 * configure.in: Don't pass -Wno-long-long to a ADA compiler
5105 that doesn't support it.
5106 * configure: Regenerate.
5108 2002-03-13 Jakub Jelinek <jakub@redhat.com>
5111 * config/sparc/sparc.md (normal_branch, inverted_branch,
5112 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
5113 inverted_fp_branch): Adjust calls to output_cbranch.
5114 Set length attribute.
5115 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
5116 output_v9branch. Set length attribute.
5117 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
5119 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
5120 (output_cbranch): Likewise. Handle far branches.
5121 (output_v9branch): Handle far branches.
5122 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
5124 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
5125 noov_compare64_op predicates.
5127 2002-03-13 Jason Merrill <jason@redhat.com>
5129 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
5130 into the function and constify it.
5131 * gthr-dce.h, gthr-solaris.h: Likewise.
5133 2002-03-13 David Edelsohn <edelsohn@gnu.org>
5135 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
5136 * config/rs6000/rs6000.c (rs6000_va_arg): Use
5137 std_expand_builtin_va_arg if not ABI_V4.
5139 2002-03-13 Jason Merrill <jason@redhat.com>
5141 * varasm.c (globalize_decl): New fn.
5142 (assemble_start_function): Use it.
5143 (asm_emit_uninitialized): Use it.
5144 (assemble_alias): Use it.
5145 (assemble_variable): Use it.
5147 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
5149 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
5150 2002-03-12 internal visibility change.
5151 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
5152 visibility into SYMBOL_REF_FLAG.
5154 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
5156 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
5157 VOIDmode operand. Add compile-time optimization for constant results.
5159 2002-03-12 Jason Merrill <jason@redhat.com>
5161 * c-typeck.c (convert_for_assignment): Don't allow conversions
5162 between pointers and references. Only allow lvalues to convert to
5165 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
5167 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
5168 before prologue, to avoid scheduling problems.
5170 2002-03-13 Jakub Jelinek <jakub@redhat.com>
5172 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
5173 (ELIMINABLE_REGS): Add sfp->sp.
5174 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
5176 2002-03-13 Jakub Jelinek <jakub@redhat.com>
5178 PR optimization/5892
5179 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
5181 2002-03-13 Jakub Jelinek <jakub@redhat.com>
5183 * loop.c (basic_induction_var): Don't call convert_modes if mode
5184 classes are different.
5186 2002-03-12 Richard Henderson <rth@redhat.com>
5188 PR optimization/5901
5189 * function.c (reposition_prologue_and_epilogue_notes): Position
5190 the markers after/before the last/first insn not deleted.
5192 2002-03-12 Richard Henderson <rth@redhat.com>
5194 PR optimization/5878
5195 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
5196 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
5197 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5199 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
5200 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
5201 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
5203 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
5204 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
5205 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
5206 also. Don't set it if not flag_pic.
5207 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
5208 to be INVALID_REGNUM when not used.
5210 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
5212 * expmed.c (store_bit_field): Reset alias set for memory.
5213 (extract_bit_field): Same.
5215 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5217 * c-common.c (c_tree_code_type, c_tree_code_length,
5218 c_tree_code_name, add_c_tree_codes): Delete.
5219 * c-common.h (add_c_tree_codes): Delete.
5220 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
5222 * c-objc-common.c (c_objc_common_init): Don't call
5223 add_c_tree_codes, instead set lang_unsafe_for_reeval.
5224 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
5225 objc_tree_code_name, add_objc_tree_codes): Delete.
5226 (objc_init): Don't call add_objc_tree_codes.
5227 * objc/objc-lang.c (tree_code_type, tree_code_length,
5228 tree_code_name): Define.
5229 * toplev.c (lang_independent_init): Don't set
5230 tree_code_length[IDENTIFIER_NODE].
5231 * tree.c (tree_code_type, tree_code_length, tree_code_name):
5232 Delete definitions, moved to language front-ends.
5233 * tree.def (IDENTIFIER_NODE): Hardwire the length.
5234 * tree.h (tree_code_type, tree_code_length, tree_code_name):
5236 (tree_code_length): Change type to unsigned char.
5238 2002-03-12 Richard Henderson <rth@redhat.com>
5240 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
5241 internal visibility change.
5243 2002-03-12 Bob Wilson <bob.wilson@acm.org>
5245 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
5246 validize_mem() instead of change_address to avoid clobbering
5249 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
5251 * c-lex.h (position_after_whitespace): Remove.
5253 2002-03-12 Jakub Jelinek <jakub@redhat.com>
5255 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
5256 (lex_string): Use unsigned char pointers.
5258 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
5260 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
5261 is not a valid memory_operand.
5263 2002-03-12 Bob Wilson <bob.wilson@acm.org>
5265 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
5266 * config/xtensa/lib1funcs.asm: Fix copyright to include
5267 special case for libgcc files.
5268 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
5269 (__divsi3): Likewise.
5270 (__umodsi3): Likewise.
5271 (__modsi3): Likewise.
5272 * config/xtensa/lib2funcs.S: Fix copyright to include
5273 special case for libgcc files.
5275 2002-03-12 Tom Rix <trix@redhat.com>
5277 * collect2.c (resolve_lib_name): Move outside of
5278 OBJECT_FORMAT_COFF ifdef.
5279 (ignore_library): Same.
5281 2002-03-12 Bob Wilson <bob.wilson@acm.org>
5283 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
5285 2002-03-12 Bob Wilson <bob.wilson@acm.org>
5287 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
5288 to function_section before writing out the constant pool.
5290 2002-03-12 David Edelsohn <edelsohn@gnu.org>
5292 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
5294 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
5296 2002-03-12 Alan Modra <amodra@bigpond.net.au>
5298 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
5302 (cmpsi splitter): Likewise.
5303 (modsi3): Fail if <= 0.
5304 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
5305 redundant test when HOST_BITS_PER_WIDE_INT != 32.
5306 (reg_or_sub_cint64_operand): Likewise.
5307 (num_insns_constant_wide): Optimize sign extension.
5308 (rs6000_legitimize_address): Likewise.
5310 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
5312 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5313 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5315 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
5317 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
5318 address calculation.
5320 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
5322 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
5323 scratch register to DImode / TImode.
5324 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
5325 register used does not overlap the target.
5327 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5329 * Makefile.in (debug.o): Depend on debug.h.
5330 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
5331 * debug.c (do_nothing_debug_hooks): Likewise.
5332 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
5333 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
5334 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
5335 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
5336 * dwarfout.c (dwarf_debug_hooks): Likewise.
5337 * integrate.c (output_inline_function): Likewise.
5338 * objc/objc-act.c (synth_module_prologue): Likewise.
5339 * sdbout.c (sdb_debug_hooks): Likewise.
5340 * toplev.c (debug_hooks): Likewise.
5341 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5343 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5345 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
5346 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
5347 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
5348 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
5349 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
5350 * defaults.h (POINTER_SIZE): Define.
5351 * doc/tm.texi (POINTER_SIZE): Document default.
5353 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5355 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
5357 2002-03-11 Richard Henderson <rth@redhat.com>
5359 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
5360 if rebuild_label_notes_after_reload.
5362 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
5364 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
5365 emit pic register load if "internal" visibility.
5366 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
5367 (cris_expand_builtin_va_arg): Do all computations on trees.
5369 2002-03-11 Richard Henderson <rth@redhat.com>
5371 * rtlanal.c: Include recog.h.
5372 (keep_with_call_p): Fix thinko.
5373 * Makefile.in (rtlanal.o): Update dependencies.
5375 2002-03-11 Chris Meyer <cmeyer@gatan.com>
5377 * genflags.c (gen_insn): Use IS_VSPACE.
5378 * genoutput.c (output_insn_data): Likewise.
5379 (process_template): Likewise.
5381 2002-03-11 Richard Henderson <rth@redhat.com>
5383 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
5385 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
5387 * Makefile.in: Update.
5388 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
5389 Update documentation.
5390 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
5391 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
5393 2002-03-11 Zack Weinberg <zack@codesourcery.com>
5395 * Makefile.in: Give texi2pod its input file as a command line
5396 argument, not on stdin.
5398 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
5399 Daniel Berlin <dan@dberlin.org>
5401 C++ alias analysis improvement.
5402 * alias.c (record_component_aliases): Record aliases for base
5405 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
5407 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
5409 2002-03-11 Douglas B Rupp <rupp@gnat.com>
5411 * toplev.c (vms_fopen): Remove, not needed.
5413 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
5415 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
5417 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
5418 for FP, already done later.
5420 * toplev.c (debug_args): Add entry for VMS_DEBUG.
5421 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
5423 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
5425 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
5426 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
5427 LARGEST_EXPONENT_IS_NORMAL for the given mode.
5428 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
5429 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
5430 (ediv, emul, eldexp, esqrt): Likewise.
5431 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
5432 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
5433 (saturate): New function.
5434 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
5435 (make_nan): Use a saturation value instead of a NaN if
5436 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
5437 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
5438 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
5439 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
5440 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
5441 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
5442 !ROUND_TOWARDS_ZERO.
5443 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
5444 (ROUND_TOWARDS_ZERO): Document.
5446 2002-03-11 Andreas Jaeger <aj@suse.de>
5448 * cfg.c (dump_flow_info): Remove unused variable.
5450 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
5452 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
5453 computations on trees.
5455 2002-03-10 Richard Henderson <rth@redhat.com>
5458 * reload.c (copy_replacements_1): New.
5459 (copy_replacements): Use it to recurse through the rtx.
5461 2002-03-10 Richard Henderson <rth@redhat.com>
5463 * loop.c (strength_reduce): Compute number of iterations as
5464 unsigned HOST_WIDE_INT.
5466 2002-03-10 Richard Henderson <rth@redhat.com>
5468 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
5469 to move away from the end of the block.
5471 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
5473 PR preprocessor/5899
5474 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
5476 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5478 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
5480 * attribs.c (decl_attributes): Fix signed/unsigned warning.
5482 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
5484 * config/mmix/mmix.c: Improve comments.
5485 (mmix_target_asm_function_prologue): Drop variable
5486 empty_stack_frame. Don't allocate unused slot above fp.
5487 (mmix_target_asm_function_epilogue): Mirror prologue changes.
5488 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
5489 brace in first column.
5490 (enum reg_class): Ditto.
5491 (FIRST_PARM_OFFSET): Now 0.
5492 (USER_LABEL_PREFIX): Remove #if 0:d definition.
5494 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5496 * combine.c (make_extraction): Fix error in last change.
5498 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5500 * c4x.c (c4x_fp_reglist): Const-ify.
5501 * cris.c (cris_print_operand): Likewise.
5502 * i386.c (ix86_va_arg): Likewise.
5503 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
5504 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
5505 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
5506 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
5507 * mcore.h (regno_reg_class): Likewise.
5508 * mips.c (gen_int_relational): Likewise.
5509 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
5510 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
5511 * pdp11.c (move_costs): Likewise.
5512 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
5513 * s390.c (s390_branch_condition_mnemonic, regclass_map):
5515 * s390.h (regclass_map): Likewise.
5516 * sh.c (shift_amounts): Likewise.
5517 * sh.md (rotlsi3): Likewise.
5519 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
5521 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
5522 (ne0+5): Use new clobber to generate proper shift pattern.
5523 Patch by Michael Matz <matz@kde.org>.
5525 2002-03-09 Andreas Schwab <schwab@suse.de>
5527 * gcc.c (validate_all_switches): Also handle `%W{...}'.
5529 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
5531 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
5533 2002-03-09 Jakub Jelinek <jakub@redhat.com>
5536 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
5537 even for non-representable constants.
5539 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5541 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
5542 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
5543 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
5544 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
5545 (pop_function_context): Compute MAY_SHARE parameter for
5547 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
5548 (gen_mem_addressof): Call fixup_var_refs with new parm.
5550 * combine.c (make_extraction): Don't make extension of CONST_INT.
5552 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
5554 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
5555 in o32 and o64 ABIs.
5556 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
5557 but getting fixed-size structs passed in registers regardless of
5558 padding in o32 and o64 ABIs.
5560 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
5561 offset before loading address of argument passed by transparent
5564 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
5566 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
5568 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
5570 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
5571 marker such that registers after it are saved.
5573 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5575 * sparc.c (arith_4096_operand): Fix error in last change.
5577 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
5579 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
5582 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
5584 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
5587 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
5589 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
5591 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
5593 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
5594 removed; fix return value.
5595 * combine.c (combine_instructions): Dirtify blocks where we failed to
5596 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
5597 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
5599 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5601 * gcse.c (insert_insn_end_bb): Fix typo in last change.
5603 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
5605 * recog.c (peephole2_optimize): Re-distribute EH edges.
5607 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
5609 * expr.c (expand_expr): Use unsave lang hook.
5610 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
5611 (LANG_HOOKS_INITIALIZER): Update.
5612 * langhooks.h (struct lang_hooks): New hook unsave.
5613 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
5614 (unsave_expr_1): Remove unused lang_unsave_expr_now.
5615 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
5616 (unsave_expr_now): Remove.
5617 * tree.h (unsave_expr_now, lang_unsave,
5618 lang_unsave_expr_now): Remove.
5621 2002-03-08 Andreas Jaeger <aj@suse.de>
5623 * flow.c (propagate_block_delete_insn): Remove unused variable.
5625 2002-03-08 Kazu Hirata <kazu@hxi.com>
5627 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
5628 insn length for memory load/store.
5630 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
5632 * doc/install.texi (--with-libiconv-prefix): Document.
5634 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
5636 * doc/sourcebuild.texi: Fix typo.
5638 2002-03-08 Jakub Jelinek <jakub@redhat.com>
5641 * builtins.c (std_expand_builtin_va_arg): Do all computations on
5644 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5646 * rtl.c (copy_most_rtx): Move from here ...
5647 * emit-rtl.c (copy_most_rtx): ... to here.
5649 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
5651 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
5652 SUBTARGET_CPP_SIZE_SPEC.
5653 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
5655 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
5657 2002-03-07 Matt Hiller <hiller@redhat.com>
5659 * gensupport.c (first_dir_md_include): Renamed from include;
5660 change all references.
5661 (last_dir_md_include): Renamed from last_include; change all
5663 (init_md_reader): Unconditionally initialize base_dir whether or
5664 not filename is a relative path.
5666 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
5668 * config/fp-bit.c (_unord_f2): Compile it in even if
5669 US_SOFTWARE_GOFAST is enabled.
5671 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
5672 NULL_RTX. Set all HFmode operations as NULL_RTX.
5673 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
5674 NULL_RTX, try reversing the comparison and the operands.
5676 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
5678 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
5679 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
5682 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
5684 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
5686 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
5688 * basic-block.h (fixup_abnormal_edges): Declare.
5689 * reload1.c (fixup_abnormal_edges): New function.
5690 * reg-stack.c (convert_regs): Use it.
5692 * gcse.c (insert_insn_end_bb): Handle trapping insns.
5694 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
5696 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
5698 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
5699 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
5700 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
5701 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
5702 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
5703 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
5704 unless x and y could be infinite.
5705 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
5706 Check that the common type of both arguments is a real, even for
5707 targets without unordered comparisons. Allow an integer argument
5708 to be compared against a real.
5709 (expand_tree_builtin): Use expand_unordered_cmp.
5710 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
5711 * cse.c (fold_rtx): Likewise. Fix indentation.
5712 * fold-const.c (fold_real_zero_addition_p): New.
5713 (fold): Use it, and the new HONOR_... macros.
5714 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
5715 * jump.c (reversed_comparison_code_parts): After searching for
5716 the true comparison mode, use HONOR_NANS to decide whether it
5717 can be safely reversed.
5718 (reverse_condition_maybe_unordered): Remove IEEE check.
5719 * simplify-rtx.c (simplify_binary_operation): Use the new macros
5720 to decide which simplifications are valid. Allow the following
5721 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
5722 and (a - -b) to (a + b).
5723 (simplify_relational_operation): Use HONOR_NANS.
5724 * doc/tm.texi: Document the MODE_HAS_... macros.
5726 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
5728 * combine.c (simplify_comparison): If simplifying a logical shift
5729 right and compare with constant, force the comparison to unsigned.
5731 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
5733 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
5735 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
5737 (alt_reg_names): Remove % for vrsave.
5739 2002-03-06 Richard Henderson <rth@redhat.com>
5741 PR optimization/5844
5742 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
5743 if used indicates we've already emitted one copy of an operand.
5744 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
5745 (gen_split): Supply a non-null used.
5747 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
5749 * reload1.c (reload): Unshare all rtl after reload is done.
5751 * simplify-rtx.c (simplify_plus_minus): Do not abort,
5752 but simply fail if the expression is too complex to simplify.
5753 (simplify_gen_binary): Handle simplify_plus_minus failures.
5755 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
5757 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
5758 consistently call delete_trivially_dead_insns after CSE and GCSE;
5759 fix DFI_life dumping; do jump threading after liveness; do crossjumping
5760 after liveness2; update comment in last crossjumping.
5761 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
5763 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
5765 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
5766 after completing fast dead code elimination.
5768 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
5771 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
5773 * version.c: Fix misplaced leading blanks on first line.
5775 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
5777 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
5779 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
5781 * cfgcleanup.c (mentions_nonequal_regs): New function.
5782 (thread_jump): Use it.
5783 * toplev.c (rest_of_compilation): Run jump threading after
5786 2002-03-06 Jakub Jelinek <jakub@redhat.com>
5788 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
5791 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
5793 * predict.c (estimate_bb_frequencies): Do not reload the
5794 frequencies from notes.
5796 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
5798 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
5799 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
5801 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
5802 delete_noop_moves): Return indeger.
5803 * flow.c (ndead): New variable.
5804 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
5805 BB argument; update callers.
5806 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
5807 (life_analysis): Do not call purge_all_dead_edges.
5808 (update_life_info): Return number of deleted insns; print statistics.
5809 (update_life_info_in_dirty_blocks): likewise.
5810 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
5811 return number of insns deleted.
5813 * cse.c: Include timevar.h
5814 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
5815 iterate until stabilizes; print statistics; return number of killed
5817 * Makefile.in: (cse.o): Add timevar.h dependency
5818 * rtl.h (delete_trivially_dead_insns): New.
5819 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
5820 * toplev.c (rest_of_compilation): Update callers.
5822 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
5823 (try_optimize_cfg): Do not update liveness.
5824 (cleanup-cfg): Loop until try_optimize_cfg and dead code
5825 removal stabilizes; use delete_trivially_dead_insns.
5827 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
5829 2002-03-05 Zack Weinberg <zack@codesourcery.com>
5831 * cppmain.c (setup_callbacks): Disable #pragma and #ident
5832 callbacks when processing assembly language.
5834 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
5836 * pa.h (ASM_FILE_END): Define.
5837 * som.h (ASM_FILE_END): Delete.
5839 * pa.c (function_arg): Don't pass floats in general registers in
5840 indirect calls if TARGET_ELF32.
5842 2002-03-05 Richard Henderson <rth@redhat.com>
5844 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
5846 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
5848 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
5850 2002-03-05 Jakub Jelinek <jakub@redhat.com>
5852 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
5853 -r command line. Don't hide any symbols if not building
5856 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
5858 * cfg.c (dump_flow_info): Warn about profile mismatches.
5859 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
5860 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
5862 2002-03-05 Jakub Jelinek <jakub@redhat.com>
5864 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
5865 wide volatile memory by parts.
5867 2002-03-05 Jakub Jelinek <jakub@redhat.com>
5869 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
5872 2002-03-05 Richard Henderson <rth@redhat.com>
5874 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
5876 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
5878 * toplev.c (documented_lang_options): Document more
5879 language-specific options.
5880 * doc/invoke.texi (Warning Options): Correct documentation for
5881 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
5882 * c-decl.c (c_decode_option): Use a table to handle warning options.
5884 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
5886 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
5887 parameter to mmix_encode_section_info.
5888 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
5889 relocatably. Always produce ELF, not mmo if linking relocatably.
5890 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
5891 first is non-zero, don't add symbol prefix.
5892 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
5893 prototype accordingly.
5895 2002-03-04 Krister Walfridsson <cato@df.lth.se>
5897 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
5899 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
5901 * configure.in: Increase required makeinfo version to 4.1.
5902 * configure: Regenerate.
5904 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
5906 * .cvsignore: Remove *.info* and genrtl*; these files are generated
5909 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
5911 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
5912 * doc/invoke.texi: Fix @math uses.
5914 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
5916 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
5919 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
5921 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
5922 (powerpc-*-eabisimaltivec*): Same.
5924 * config/rs6000/t-ppcendian: New.
5926 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5928 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
5929 nonimmediate_src_operand and nonimmediate_lsrc_operand to
5930 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
5932 2002-03-03 Richard Henderson <rth@redhat.com>
5934 * toplev.c (rest_of_decl_compilation): Revert last two changes.
5936 2002-03-03 Zack Weinberg <zack@codesourcery.com>
5938 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
5939 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
5940 tree.c, config/m68k/m68k.c:
5941 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
5942 REAL_ARITHMETIC blocks unconditional. Delete some further
5943 #ifdef blocks predicated on REAL_ARITHMETIC.
5944 * flags.h, toplev.c: Delete remaining references to
5947 * doc/invoke.texi: Remove documentation of -fpretend-float.
5948 * doc/tm.texi: Describe the various REAL_* macros as provided by
5949 real.h, not by the target configuration files.
5951 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
5952 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
5953 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
5954 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
5955 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
5956 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
5957 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
5958 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
5959 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
5960 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
5961 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
5962 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
5963 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
5964 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
5965 config/xtensa/xtensa.h:
5966 Do not define, undefine, or mention in comments any of
5967 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
5968 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
5969 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
5970 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
5971 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
5972 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
5973 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
5974 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
5975 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
5977 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5979 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
5980 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
5981 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
5982 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
5983 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
5984 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
5986 * defaults.h (BITS_PER_WORD): Define.
5987 * doc/tm.texi (BITS_PER_WORD): Document default value.
5989 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
5990 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
5991 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
5993 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5995 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
5996 lieu of explicit sizeof/sizeof.
5997 * i386.c (override_options, ix86_init_mmx_sse_builtins,
5998 ix86_expand_builtin): Likewise.
5999 * mips.c (mips_add_gc_roots): Likewise.
6000 * mmix.c (mmix_output_condition): Likewise.
6001 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
6002 altivec_init_builtins): Likewise.
6003 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
6004 * cppexp.c (Nsuff, parse_number): Likewise.
6005 * cppinit.c (builtin_array_end): Likewise.
6006 * gcc.c (n_default_compilers, process_command): Likewise.
6007 * genpreds.c (output_predicate_decls): Likewise.
6008 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
6009 * lcm.c (N_ENTITIES): Likewise.
6010 * stor-layout.c (set_sizetype): Likewise.
6012 2002-03-03 Richard Henderson <rth@redhat.com>
6014 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
6015 for types or labels.
6017 2002-03-03 Richard Henderson <rth@redhat.com>
6019 * c-decl.c (start_decl): Initialized variables are not common.
6021 2002-03-02 Per Bothner <per@bothner.com>
6023 * gcc.c (option_map): Suport new --bootclasspath option.
6024 --CLASSPATH is now just an alias for --classpath.
6026 2002-03-02 Richard Henderson <rth@redhat.com>
6028 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
6029 load if "internal" visibility.
6030 * doc/extend.texi: Document visibility meanings.
6032 2002-03-02 Richard Henderson <rth@redhat.com>
6034 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
6035 to functions as well.
6037 2002-03-02 Richard Henderson <rth@redhat.com>
6039 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
6040 (handle_visibility_attribute): Don't call assemble_visibility.
6041 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
6042 without asmspec. Invoke assemble_alias when needed.
6043 * varasm.c (maybe_assemble_visibility): New.
6044 (assemble_start_function, assemble_variable, assemble_alias): Use it.
6046 2002-03-02 Richard Henderson <rth@redhat.com>
6048 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
6049 invoke ENCODE_SECTION_INFO with first call flag.
6051 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
6052 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
6053 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
6054 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
6055 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
6056 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
6057 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
6058 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
6059 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
6060 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
6061 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
6062 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
6063 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
6064 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
6065 config/mcore/mcore-protos.h, config/mcore/mcore.c,
6066 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
6067 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
6068 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
6069 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
6070 config/sh/sh.h, config/sparc/sparc.h,
6071 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
6072 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
6073 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
6074 FIRST argument. As needed, examine it and do nothing.
6076 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
6077 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
6078 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
6080 * config/arm/t-pe (pe.o): Add dependencies.
6082 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6084 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
6085 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
6086 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
6087 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
6088 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
6089 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
6090 * defaults.h (BITS_PER_UNIT): Define.
6091 * doc/tm.texi (BITS_PER_UNIT): Document default value.
6093 2002-03-02 Kazu Hirata <kazu@hxi.com>
6095 * config/h8300/h8300-protos.h: Add a prototype for
6096 compute_a_shift_length.
6097 * config/h8300/h8300.c (h8300_asm_insn_count): New.
6098 (compute_a_shift_length): Likewise.
6099 (h8300_adjust_insn_length): Do not adjust insn length of shift
6101 * config/h8300/h8300.md (anonymous shift patterns): Use
6102 compute_a_shift_length.
6104 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6106 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
6109 * emit-rtl.c (offset_address): Call update_temp_slot_address.
6111 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6113 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
6114 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
6115 * flags.h (flag_zero_initialized_in_bss): Declare.
6116 * toplev.c (flag_zero_initialized_in_bss): New flag.
6117 (lang_independent_options): Add flag_zero_initialized_in_bss.
6118 * tree.c (initializer_zerop): New function.
6119 * tree.h (initializer_zerop): Declare.
6120 * varasm.c (assemble_variable): If we can emit bss, put zero
6121 initializers in the bss section.
6123 2002-03-02 Alan Modra <amodra@bigpond.net.au>
6125 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
6126 like more than one symbol per .weak directive.
6128 2002-03-01 Richard Henderson <rth@redhat.com>
6130 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
6131 adjust argument_pointer by pretend_args_size.
6132 (ia64_va_start): Adjust va_start address by -pretend_args_size.
6134 2002-03-01 Kazu Hirata <kazu@hxi.com>
6136 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
6138 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
6140 * toplev.c (rest_of_compilation): Delete dead jumptables before
6142 * flow.c (delete_dead_jumptables): Make global.
6143 * rtl.h (delete_dead_jumptables): Declare.
6145 2002-03-01 David Edelsohn <edelsohn@gnu.org>
6147 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
6148 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
6149 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
6151 2002-03-01 Kazu Hirata <kazu@hxi.com>
6153 * config/h8300/h8300-protos.h: Fix formatting.
6154 * config/h8300/h8300.c: Likewise.
6155 * config/h8300/h8300.h: Likewise.
6157 2002-03-01 Kazu Hirata <kazu@hxi.com>
6159 * config/h8300/h8300.c (print_operand): Support 16-bit
6161 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
6163 2002-02-28 Richard Henderson <rth@redhat.com>
6165 * expmed.c (store_bit_field): Prevent generation of CONCATs;
6166 pun complex values as integers; use gen_lowpart instead of
6168 (extract_bit_field): Likewise.
6170 2002-03-01 Alan Modra <amodra@bigpond.net.au>
6171 David Edelsohn <edelsohn@gnu.org>
6173 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
6174 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
6175 (SUPPORTS_WEAK): Likewise.
6176 * output.h (add_weak): Add tree param.
6177 * varasm.c (add_weak): Likewise. Save decl.
6178 (struct weak_syms): Add decl field.
6179 (mark_weak_decls): New function.
6180 (init_varasm_once): ggc_add_root mark_weak_decls.
6181 (assemble_start_function): Use ASM_WEAKEN_DECL.
6182 (assemble_variable): Likewise.
6183 (assemble_alias): Likewise.
6184 (declare_weak): Pass decl to add_weak.
6185 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
6186 (remove_from_pending_weak_list): Declare and define for
6188 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
6189 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
6190 * defaults.h (SUPPORTS_WEAK): Likewise.
6191 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
6192 .weak for code sym. Do emit .size for descriptor sym.
6193 (ASM_DECLARE_FUNCTION_SIZE): Define.
6194 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
6195 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
6196 .lglobl unless TARGET_XCOFF. Formatting fixes.
6197 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
6199 (HANDLE_PRAGMA_WEAK): Remove.
6200 (ASM_WEAKEN_LABEL): Remove.
6201 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
6203 2002-03-01 Jason Merrill <jason@redhat.com>
6205 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
6206 (TARGET_EXPR_CLEANUP): New macro.
6208 2002-02-28 Steve Ellcey <sje@cup.hp.com>
6210 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
6211 to take ptr_extend into account as third type of extension.
6212 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
6213 fields used by SUBREG_PROMOTED_UNSIGNED_P.
6214 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
6215 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
6216 * calls.c (precompute_arguments): Use new macro.
6217 (expand_call): Ditto.
6218 * combine.c (nonzero_bits): Ditto.
6219 (record_promoted_value): Ditto.
6220 * expr.c (store_expr): Ditto.
6221 (expand_expr): Ditto.
6222 * function.c (assign_parms): Ditto.
6224 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
6226 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
6227 override -shared and -shared-libgcc.
6229 2002-02-28 David O'Brien <obrien@FreeBSD.org>
6231 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
6233 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
6236 2002-02-28 Richard Henderson <rth@redhat.com>
6238 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
6239 4 cycle latency from MM producers.
6240 (ia64_internal_sched_reorder): Likewise with pipeline flush.
6242 2002-02-28 Jakub Jelinek <jakub@redhat.com>
6244 * mklibgcc.in: Don't use GNU make extension.
6246 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
6248 * c-parse.in (STATIC): New terminal.
6249 (scspec): New non-terminal. Update productions accordingly.
6250 (program): Remove bogus ifc / end ifc.
6251 (array_declarator): Simplify production using STATIC.
6253 2002-02-28 Jim Meyering <meyering@lucent.com>
6255 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
6256 \a still means TARGET_BELL.
6258 2002-02-28 Richard Henderson <rth@redhat.com>
6260 * haifa-sched.c (sched_emit_insn): New.
6261 (schedule_block): Use last_scheduled_insn to track last insn.
6262 * sched-int.h (sched_emit_insn): Prototype.
6263 * config/ia64/ia64.c (last_issued): Remove.
6264 (ia64_variable_issue): Don't set it.
6265 (nop_cycles_until): Use sched_emit_insn.
6267 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
6269 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
6272 2002-02-28 Kazu Hirata <kazu@hxi.com>
6274 * config/h8300/h8300.c: Fix formatting.
6275 * config/h8300/h8300.h: Likewise.
6277 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
6279 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
6280 which may overwrite the high byte of the frame pointer.
6282 2002-02-28 Bo Thorsen <bo@suse.de>
6284 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
6285 (STARTFILE_SPEC): Add 64 bit files.
6286 (ENDFILE_SPEC): Likewise.
6288 2002-02-28 Jason Merrill <jason@redhat.com>
6290 * c-decl.c (finish_function): Only warn about missing return
6291 statement with -Wreturn-type.
6293 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
6295 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
6297 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
6298 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
6300 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
6302 * basic-block.h (BB_REACHABLE): Renumber.
6303 (BB_DIRTY, BB_NEW): New flags.
6304 (clear_bb_flags): Declare.
6305 (update_life_info_in_dirty_blocks): Declare.
6306 * cfg.c (clear_bb_flags): New function.
6307 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
6308 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
6309 reorder_insns, emit_insn_after): Mark block as dirty.
6310 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
6311 (update_life_info_in_dirty_blocks): New function.
6312 * recog.c (apply_change_group): Dirtify block.
6314 * cse.c (cse_insn): Reorder emitting of jump insn to keep
6316 * gcse.c (delete_null_pointer_checks): Likewise.
6318 * toplev.c (dump_file_index): Move cse2 after bp,
6320 (dump_file_info): Similary.
6321 (rest_of_compilation): Avoid most of CFG rebuilds;
6322 do first if converision after null pointer checks, do cse2
6323 after branch prediction; avoid full liveness rebuild after
6324 initializing subregs.
6325 * invoke.texi (-d options): Document -du, renumber.
6327 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
6328 (notice_new_block): Do not set BB_UPDATE_LIFE.
6329 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
6330 merge_blocks_move_successor_nojumps, merge_blocks,
6331 try_crossjump_to_edge): Likewise.
6332 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
6333 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
6334 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
6335 (merge_of_block): Do not use life_data_ok.
6336 (find_if_case_1): Do not use SET_UPDATE_LIFE.
6337 (if_convert): Use BB_DIRTY mechanizm to update life.
6338 * lcm.c (optimize_mode_switching): Update
6339 update_life_info_in_dirty_blocks
6341 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
6343 * Makefile.in (integrate.o): Update.
6344 * c-decl.c (copy_lang_decl): Rename.
6345 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
6346 * integrate.c: Include langhooks.h.
6347 (copy_decl_for_inlining): Update to use langhook.
6348 * langhooks-def.h (lhd_do_nothing_t,
6349 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
6350 (LANG_HOOKS_INITIALIZER): Update.
6351 * langhooks.c (lhd_do_nothing_t): New.
6352 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
6353 * tree.h (copy_lang_decl): Remove.
6355 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
6357 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
6359 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
6360 POST_DEC, and POST_MODIFY.
6362 2002-02-27 Zack Weinberg <zack@codesourcery.com>
6364 * c-typeck.c (digest_init): Remove unused parameter; all
6367 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
6369 * expmed.c (expand_shift): Correctly test for low part of a
6372 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
6374 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
6375 insn UIDs with insn addresses.
6377 2002-02-27 Zack Weinberg <zack@codesourcery.com>
6379 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
6380 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
6381 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
6382 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
6383 gcc.c, toplev.c: Delete code implementing -traditional mode.
6385 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
6386 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
6387 Document removal of -traditional mode for compilation, and
6388 remove documentation only relevant to that mode.
6390 * config/nextstep.h, config/ptx4.h, config/svr4.h,
6391 config/convex/convex.h, config/d30v/d30v.h,
6392 config/i386/dgux.h, config/i386/osf1elf.h,
6393 config/i386/osfelf.h, config/i386/osfrose.h,
6394 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
6395 config/m68k/hp310.h, config/m88k/dgux.h,
6396 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
6397 config/m88k/m88k.h, config/m88k/openbsd.h,
6398 config/mips/abi64.h, config/mips/osfrose.h,
6399 config/mips/svr4-5.h, config/mips/svr4-t.h,
6400 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
6401 config/stormy16/stormy16.h: Remove all references to
6402 -traditional from target specs. Delete all mention of the
6403 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
6404 delete a couple of commented-out definitions of
6405 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
6408 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
6409 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
6411 2002-02-27 Zack Weinberg <zack@codesourcery.com>
6413 * mklibgcc.in: Don't use \n in a line subject to
6414 interpretation by echo.
6416 2002-02-27 Graham Stott <grahams@redhat.com>
6418 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
6421 * loop.c (prescan_loop): Handle PARALLEL.
6423 * unroll.c (loop_iterations): Return 0 if the add_val for
6426 * final.c (output_operand_lossage): Constify PFX_STR.
6428 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
6430 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
6432 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
6433 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
6435 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
6437 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
6439 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
6441 * cpplex.c (_cpp_lex_token): Handle directives in macro
6443 * cpplib.c (_cpp_handle_directive): Save and restore state
6444 if parsing macro args when entering a directive.
6445 * cppmacro.c (collect_args): No need to handle directives
6447 (enter_macro_context, replace_args): Use the original macro
6448 definition in case it was redefined whilst collecting arguments.
6452 2002-02-26 David Edelsohn <edelsohn@gnu.org>
6454 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
6455 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
6456 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
6458 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
6459 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
6460 (load_toc_v4_PIC_2): Same.
6462 2002-02-26 Alan Modra <amodra@bigpond.net.au>
6464 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
6466 2002-02-26 Richard Henderson <rth@redhat.com>
6468 * config/alpha/alpha.md (ashldi_se): Re-enable.
6470 2002-02-26 Richard Henderson <rth@redhat.com>
6472 * config/alpha/alpha.c (alpha_encode_section_info): Examine
6473 MODULE_LOCAL_P; improve commentary.
6475 2002-02-26 Zack Weinberg <zack@codesourcery.com>
6477 * doc/cpp.texi: Clarify documentation of relationship between
6480 2002-02-26 Kazu Hirata <kazu@hxi.com>
6482 * config/h8300/h8300-protos.h: Update the prototype for
6483 compute_logical_op_length. Add the prototype for
6484 compute_logical_op_cc.
6485 * config/h8300/h8300.c (compute_logical_op_length): Figure out
6487 (compute_logical_op_cc): New.
6488 * config/h8300/h8300.md: Combine all the logical op patterns
6489 in HImode and SImode. Use compute_logical_op_cc.
6491 2002-02-26 Kelley Cook <kelleycook@comcast.net>
6493 * config/i386/i386.c (print_operand): Don't append ATT-style
6494 length suffixs to x87 opcodes when in Intel mode.
6496 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
6498 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
6499 (init_emit_once): Update calls.
6500 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
6501 (init_syntax_once): Prototype.
6503 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
6505 * pa-linux.h (LIB_SPEC): Update definition.
6506 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6508 2002-02-26 Richard Henderson <rth@redhat.com>
6510 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
6511 if we emitted a stop bit.
6513 2002-02-26 Jakub Jelinek <jakub@redhat.com>
6515 * configure.in (libgcc_visibility): Substitute.
6516 * configure: Rebuilt.
6517 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
6518 defined symbols .hidden.
6520 2002-02-26 Jakub Jelinek <jakub@redhat.com>
6522 * attribs.c (c_common_attribute_table): Add visibility.
6523 (handle_visibility_attribute): New function.
6524 * varasm.c (assemble_visibility): New function.
6525 * output.h (assemble_visibility): Add prototype.
6526 * tree.h (MODULE_LOCAL_P): Define.
6527 * crtstuff.c (__dso_handle): Use visibility attribute.
6528 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
6529 for MODULE_LOCAL_P symbols too.
6530 * config/ia64/ia64.c (ia64_encode_section_info): Handle
6531 MODULE_LOCAL_P symbols the same way as local symbols.
6532 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
6533 into .sdata/.sbss by the user.
6534 * doc/extend.texi (Function Attributes): Document visibility
6537 2002-02-26 Jakub Jelinek <jakub@redhat.com>
6540 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
6541 STRING_CST initializer spanning the whole variable without
6543 If expand_expr returned MEM, don't use it.
6545 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
6547 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
6548 generate a die for the lexical block.
6550 2002-02-26 Kazu Hirata <kazu@hxi.com>
6552 * config/h8300/h8300-protos.h: Add a prototype for
6553 compute_logical_op_length.
6554 * config/h8300/h8300.c (compute_logical_op_length): New.
6555 * config/h8300/h8300.md (anonymous logical patterns): Use
6556 compute_logical_op_length for length.
6558 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
6560 * dwarf2out.c (modified_type_die): Do not call type_main_variant
6562 (gen_type_die): Same.
6564 * attribs.c (handle_vector_size_attribute): Set debug information.
6566 2002-02-26 Daniel Egger <degger@fhm.edu>
6568 * config/rs6000/rs6000.md: Swap define_insn attributes to
6569 fix incorrect generation of merge high instructions instead
6572 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
6574 * c-typeck.c (really_start_incremental_init): Use
6575 bitsize_zero_node for vectors.
6577 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
6579 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
6580 ("*set_vrsave_internal"): Same.
6582 2002-02-25 Richard Henderson <rth@redhat.com>
6584 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
6585 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
6587 2002-02-25 Jakub Jelinek <jakub@redhat.com>
6590 * config/i386/i386.c (ix86_return_pops_args): Only pop
6591 fake structure return argument if it was passed on the stack.
6593 2002-02-25 Jason Merrill <jason@redhat.com>
6595 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
6598 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
6600 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
6601 link with shared_name only.
6602 * doc/invoke.texi (Link Options): Document new behavior.
6604 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
6606 * c-typeck.c (push_init_level): Handle vectors.
6608 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
6610 * config/sparc/sparc.c (const64_high_operand): Zero-extend
6611 operands of SPARC_SETHI_P.
6612 (input_operand): Likewise.
6613 (sparc_emit_set_const32): Likewise.
6614 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
6615 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
6616 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
6617 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
6618 (movdi_insn_sp64_vis): Likewise.
6619 (movdi split, movdf split): Use SETHI32.
6620 * doc/md.texi: Document SPARC constraints L, M and N.
6622 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
6624 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
6625 ("*set_vrsave_internal"): use mfspr for Darwin.
6627 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
6628 gen_get_vrsave_internal.
6630 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6632 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
6634 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
6636 * cpplex.c (cpp_interpret_charconst): Get signedness or
6637 otherwise of wide character constants correct.
6638 * cppexp.c (lex): Get signedness of wide charconsts correct.
6640 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6642 * optabs.c (widen_operand): Only call convert_modes for
6643 promoted SUBREG if signedness matches.
6644 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
6646 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
6648 * cpplib.c (glue_header_name): Use local buffer to build up
6651 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
6653 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
6655 2002-02-23 Kazu Hirata <kazu@hxi.com>
6657 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
6658 H8/300[HS] separately.
6659 * config/h8300/h8300.md: Remove the early clobber constraint
6660 from bit field patterns.
6662 2002-02-23 Kazu Hirata <kazu@hxi.com>
6664 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
6666 (mulhisi3): Likewise.
6667 (umulqisi3): Likewise.
6668 (umulhisi3): Likewise.
6670 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
6672 * cppinit.c (output_deps): Correct test for stdout output.
6673 (init_dependency_output): Cure warning.
6675 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6677 * expr.c (store_expr): When converting expression to promoted
6678 equivalent type, allow using SUBREG_REG of TARGET as the target
6679 of the expansion of EXP.
6680 * loop.c (basic_induction_var, case SUBREG): Always look inside.
6681 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
6682 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
6683 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
6684 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
6686 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
6688 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
6689 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
6690 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
6692 2002-02-23 Jakub Jelinek <jakub@redhat.com>
6694 PR optimization/5747
6695 * loop.c (scan_loop): Update reg info if move_movables created new
6698 2002-02-23 David Edelsohn <edelsohn@gnu.org>
6700 * gcc.c (init_gcc_spec): Revert last change.
6702 2002-02-23 David Edelsohn <edelsohn@gnu.org>
6704 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
6705 gpc_reg_operand constraint.
6707 2002-02-23 Alan Modra <amodra@bigpond.net.au>
6709 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
6710 Simplify comparison of `low'.
6711 (add_operand): Fix formatting.
6712 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
6713 (mask_operand): Disallow mask to wrap in 64-bit mode.
6714 (rs6000_stack_info): Remove redundant test setting push_p.
6715 (output_toc): Fix formatting.
6716 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
6717 cc_reg_not_cr0_operand constraint.
6718 (booldi3, boolcdi3 splitters): Same.
6720 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
6722 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
6724 2002-02-22 David Edelsohn <edelsohn@gnu.org>
6726 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
6727 gcc invoked with -shared-libgcc.
6729 2002-02-22 Jakub Jelinek <jakub@redhat.com>
6732 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
6733 decl if any of elements was TREE_USED.
6735 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
6737 * config/sparc/sol2.h: Don't include sys/mman.h.
6738 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
6739 (arith_4096_operand): Don't throw high bits away.
6740 (const64_operand): Take sign extension of CONST_INTs into account.
6741 (const64_high_operand, sparc_emit_set_const32): Likewise.
6742 (GEN_HIGHINT64): Likewise.
6743 (sparc_emit_set_const64_quick1): Likewise.
6744 (const64_is_2insns): Likewise.
6745 (print_operand): Use trunc_int_for_mode for sign extension.
6746 * config/sparc/sparc.h (SMALL_INT32): Likewise.
6747 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
6748 chars. Assume CONST_INT is already properly sign-extended.
6749 (movdi split): Sign-extend each SImode part.
6750 (andsi3 split): Don't mask high bits off, so that result
6751 remains properly sign-extend.
6752 (iorsi3 split): Likewise.
6753 (xorsi3 split): Likewise.
6755 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
6757 * fold-const.c (fold): Fix typo in comments.
6759 2002-02-21 Diego Novillo <dnovillo@redhat.com>
6761 * Makefile.in (langhooks.o): Update dependencies.
6763 2002-02-21 Diego Novillo <dnovillo@redhat.com>
6765 * langhooks.c: Include flags.h.
6767 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
6769 * testsuite/gcc.dg/attr-alwaysinline.c: New.
6771 * c-common.c (c_common_post_options): Set inline trees by
6774 * doc/extend.texi (Function Attributes): Document always_inline
6776 Update documentation about inlining when not optimizing.
6778 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
6780 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
6781 unless DECL_ALWAYS_INLINE.
6783 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
6784 unless DECL_ALWAYS_INLINE.
6785 (c_disregard_inline_limits): Disregard if always_inline set.
6787 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
6788 Disregard if always_inline set.
6789 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
6790 unless DECL_ALWAYS_INLINE.
6792 * attribs.c (handle_always_inline_attribute): New.
6793 (c_common_attribute_table): Add always_inline.
6795 * config/rs6000/altivec.h: Add prototypes for builtins
6796 requiring the always_inline attribute.
6798 2002-02-21 Eric Christopher <echristo@redhat.com>
6800 * expmed.c (store_bit_field): Try to simplify the subreg
6801 before generating a new one when when the mode size of
6802 value is less than maxmode.
6804 2002-02-21 Richard Henderson <rth@redhat.com>
6806 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
6807 than gen_rtx_PLUS to form the sum.
6808 * explow.c (force_reg): Rearrange to not allocate new pseudo
6809 when force_operand returns a register.
6810 * expr.c (expand_assignment): Allow offset_rtx expansion to
6811 return a sum. Do not force addresses into registers.
6812 (expand_expr): Likewise.
6813 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
6814 to canonicalize arithmetic that didn't simpify.
6815 (simplify_plus_minus): New argument force; update
6816 all callers. Don't split CONST unless we can do something with it,
6817 and wouldn't lose the constness of the operands.
6819 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
6820 that we generated earlier.
6822 2002-02-21 Tom Tromey <tromey@redhat.com>
6824 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6825 (output_line_info): Use constant `1', with a long explanatory
6827 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
6829 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
6831 * jump.c (redirect_jump): If old label has no UID, don't try to
6834 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
6836 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
6837 If input is constant, do shifts at compile time.
6839 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
6841 * doc/extend.texi: Fix some more overfull hboxes.
6843 2002-02-21 Jakub Jelinek <jakub@redhat.com>
6845 PR optimization/4994
6846 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
6849 2002-02-21 Jakub Jelinek <jakub@redhat.com>
6852 * expr.h (expand_and): Add mode argument.
6853 * expmed.c (expand_and): Add mode argument.
6854 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
6855 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
6856 * except.c (expand_builtin_extract_return_addr): Likewise.
6857 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
6858 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
6859 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
6860 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
6861 * config/c4x/c4x.md: Use GEN_INT (x) instead of
6862 gen_rtx (CONST_INT, VOIDmode, x).
6864 2002-02-21 Jakub Jelinek <jakub@redhat.com>
6867 * stmt.c (warn_if_unused_value): Move side effects test once more.
6869 2002-02-20 Torbjorn Granlund <tege@swox.com>
6871 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
6872 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
6874 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
6876 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
6877 SUBREG or ZERO_EXTEND.
6879 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
6881 * sh.h (current_function_anonymous_args): Remove.
6882 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
6883 of current_function_varargs and current_function_stdarg is set.
6884 * sh.c (sh_expand_prologue): Check current_function_varargs /
6885 current_function_stdarg / TARGET_SH5 instead of
6886 current_function_anonymous_args.
6888 * sh64.h (TARGET_VERSION): Define.
6890 2002-02-20 David Edelsohn <edelsohn@gnu.org>
6892 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
6893 VRSAVE_REGNO on TARGET_ALTIVEC.
6895 2002-02-20 Alan Modra <amodra@bigpond.net.au>
6897 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
6898 bits of SImode const_int.
6899 (includes_rshift_p): Likewise.
6900 (print_operand): Call mask_operand and mask64_operand with correct
6902 (rs6000_output_function_epilogue): Pad traceback table to word.
6903 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
6904 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
6905 mask64_operand with correct mode.
6906 (FUNCTION_ARG_REGNO_P): Correct parentheses.
6908 2002-02-20 Jakub Jelinek <jakub@redhat.com>
6911 * varasm.c (get_pool_constant_mark): New.
6912 * rtl.h (get_pool_constant_mark): Add prototype.
6913 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
6914 be represented if it has not been output.
6916 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
6918 * combine.c (do_SUBST): Sanity check substitutions of
6919 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
6920 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
6921 CONST_INT into its operand.
6922 (known_cond): Likewise, for ZERO_EXTEND.
6923 * simplify-rtx.c (simplify_unary_operation): Fix condition to
6924 allow for simplification of wide modes. Reject CONST_INTs in
6925 ZERO_EXTEND when their actual mode is not given.
6927 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
6929 * c-decl.c (pushdecl): If no global declaration is found for an
6930 extern declaration in block scope, try a limbo one.
6932 2002-02-20 Jakub Jelinek <jakub@redhat.com>
6935 * c-common.c (pointer_int_sum): Moved from...
6936 * c-typeck.c (pointer_int_sum): ...here.
6937 * c-common.h (pointer_int_sum): Add prototype.
6939 2002-02-20 Jakub Jelinek <jakub@redhat.com>
6942 * c-decl.c (duplicate_decls): Return 0 if issued error about
6945 2002-02-20 Roger Sayle <roger@eyesopen.com>
6946 Jakub Jelinek <jakub@redhat.com>
6949 * tree.c (host_integerp): Ensure that the constant integer is
6950 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
6951 when pos is zero or non-zero respectively. Clarify comment.
6952 * c-format.c (check_format_info_recurse): Fix host_integerp
6953 usage; the pos argument should be zero when assigning to a
6954 signed HOST_WIDE_INT.
6956 2002-02-20 Richard Henderson <rth@redhat.com>
6958 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
6959 of the operand, rather than assuming TImode.
6960 (ix86_expand_binop_builtin): Cope with commutative patterns
6961 using nonimmediate_operand for both operands.
6962 (ix86_expand_timode_binop_builtin): Likewise.
6963 (ix86_expand_store_builtin): Validate operand 1.
6964 (ix86_expand_unop1_builtin): Likewise.
6966 2002-02-20 Philip Blundell <philb@gnu.org>
6969 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
6971 2002-02-20 Richard Henderson <rth@redhat.com>
6974 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
6976 2002-02-20 Tom Tromey <tromey@redhat.com>
6978 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6979 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6980 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6981 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6982 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
6985 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
6987 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
6988 for (const_int 0) in X not just INTVAL.
6990 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
6992 * doc/extend.texi: Avoid or reduce overfull hboxes.
6994 2002-02-20 Diego Novillo <dnovillo@redhat.com>
6996 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
6997 operations if the field does not start at a mode boundary.
6999 2001-02-20 Joel Sherrill <joel@OARcorp.com>
7001 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
7002 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
7003 Also done for -Acpu and -Amachine.
7005 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
7007 * cppinit.c (init_dependency_output): Take deps output file
7008 from -o if none given with -MF. Suppress normal output.
7009 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
7010 * doc/cpp.texi, doc/invoke.texi: Update.
7012 2002-02-19 Zack Weinberg <zack@codesourcery.com>
7014 * toplev.c (output_quoted_string): Write unprintable
7015 characters with octal escapes.
7017 2002-02-19 David Edelsohn <edelsohn@gnu.org>
7019 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
7020 really_call_used[VRSAVE_REGNO] if not Altivec.
7022 2002-02-19 Alan Modra <amodra@bigpond.net.au>
7024 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
7026 (constant_pool_expr_1): Fix formatting.
7027 (rs6000_legitimize_reload_address): Likewise.
7029 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7031 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
7032 now that we have one.
7034 2002-02-19 Zack Weinberg <zack@codesourcery.com>
7036 * tree.h (struct tree_common): Remove aux. Add unused_0 at
7037 end of first block of bitfields (which was only seven bits);
7038 rename dummy to unused_1; remove comment which is no longer true.
7040 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
7042 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
7044 2002-02-19 Philip Blundell <pb@nexus.co.uk>
7047 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
7051 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
7052 arm_is_longcall_p rather than inspecting call-type cookie
7054 (call_value_insn) [TARGET_THUMB]: Likewise.
7056 2002-02-19 Graham Stott <grahams@redhat.com>
7058 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
7060 2002-02-19 David Edelsohn <edelsohn@gnu.org>
7062 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
7063 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
7064 (FP_SAVE_INLINE): Delete.
7066 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
7067 * config/rs6000/eabi.asm: Remove ABI save restore routines.
7068 * config/rs6000/t-ppccomm: Build crtsavres.o.
7069 * config/rs6000/crtsavres.asm: New file.
7071 2002-02-19 Philip Blundell <philb@gnu.org>
7073 * config/arm/arm.c (use_return_insn): Don't reject interrupt
7075 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
7076 (output_return_instruction): Allow interrupt functions to return with
7077 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
7078 (arm_expand_prologue): Subtract 4 before stacking LR in an
7081 2002-02-19 Philip Blundell <pb@nexus.co.uk>
7083 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
7084 decl, not just FUNCTION_DECL.
7085 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
7086 (arm_assemble_integer): Likewise.
7087 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
7090 2002-02-19 matthew green <mrg@eterna.com.au>
7092 * config.gcc (sparc-*-netbsdelf*): Enable target.
7093 (sparc64-*-netbsd*): New target.
7094 * config/sparc/netbsd-elf.h: New file.
7095 * config/sparc/t-netbsd64: New file.
7097 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
7099 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
7101 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
7103 * doc/invoke.texi: explicitly list the style guidelines that
7104 -Weffc++ checks for.
7106 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
7108 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
7110 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
7113 * gcc.c (cpp_unique_options): Treat -o as indicating object file
7114 only if not -E. If -E, pass -o through to the preprocessor.
7116 2002-02-19 Kazu Hirata <kazu@hxi.com>
7118 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
7119 register number with an appropriate macro.
7121 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
7123 * doc/rtl.texi (Constants): Close @code tag.
7125 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
7127 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
7128 ("mmx_uavgv4hi3"): Same.
7129 ("pmulhrwv4hi3"): Same.
7131 * tree-inline.c (walk_tree): Handle vectors.
7133 * c-common.c (constant_expression_warning): Handle vectors.
7134 (overflow_warning): Same.
7136 * sched-deps.c (sched_analyze_2): Handle vectors.
7138 * rtlanal.c (rtx_unstable_p): Handle vectors.
7139 (rtx_varies_p): Same.
7140 (count_occurrences): Same.
7141 (regs_set_between_p): Same.
7142 (modified_between_p): Same.
7143 (modified_in_p): Same.
7144 (volatile_insn_p): Same.
7145 (volatile_refs_p): Same.
7146 (side_effects_p): Same.
7148 (inequality_comparisons_p): Same.
7149 (replace_regs): Same.
7150 (computed_jump_p_1): Same.
7152 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
7154 (inner_mode_array): New.
7155 (copy_rtx): Handle vectors.
7156 (copy_most_rtx): Same.
7157 (rtx_equal_p): Same.
7158 (get_mode_alignment): Adjust for vectors.
7160 * resource.c (mark_referenced_resources): Handle vectors.
7161 (mark_set_resources): Same.
7163 * reload1.c (eliminate_regs): Handle vectors.
7164 (elimination_effects): Same.
7165 (scan_paradoxical_subregs): Same.
7167 * reload.c (subst_reg_equivs): Handle vectors.
7169 * regrename.c (scan_rtx): Handle vectors.
7171 * regclass.c (reg_scan_mark_refs): Handle vectors.
7173 * recog.c (find_single_use_1): Handle vectors.
7175 * local-alloc.c (equiv_init_varies_p): Handle vectors.
7176 (contains_replace_regs): Same.
7177 (memref_referenced_p): Same.
7179 * integrate.c (copy_rtx_and_substitute): Handle vectors.
7180 (subst_constants): Same.
7182 * genattrtab.c (attr_copy_rtx): Handle vectors.
7183 (encode_units_mask): Same.
7184 (clear_struct_flag): Same.
7185 (count_sub_rtxs): Same.
7187 * gcse.c (want_to_gcse_p): Handle vectors.
7188 (oprs_unchanged_p): Same.
7189 (hash_expr_1): Same.
7190 (oprs_not_set_p): Same.
7191 (expr_killed_p): Same.
7192 (compute_transp): Same.
7193 (store_ops_ok): Same.
7195 * function.c (purge_addressof_1): Do not allow paradoxical subregs
7197 (fixup_var_refs_1): Same.
7198 (instantiate_virtual_regs_1): Same.
7200 * fold-const.c (operand_equal_p): Handle vectors.
7202 (rtl_expr_nonnegative_p): Same.
7204 * flow.c (mark_used_regs): Handle vectors.
7206 * df.c (df_uses_record): Handle vectors.
7208 * cselib.c (cselib_subst_to_values): Handle vectors.
7209 (cselib_mem_conflict_p): Same.
7212 * cse.c (canon_reg): Handle vectors.
7214 (cse_process_notes): Same.
7215 (count_reg_usage): Same.
7218 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
7220 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
7222 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
7223 (gen_rtx): Handle CONST_VECTOR.
7224 (gen_const_vector_0): New.
7225 (copy_rtx_if_shared): CONST_VECTORs can be shared.
7226 (reset_used_flags): Same.
7227 (copy_insn_1): Same.
7228 (initializer_constant_valid_p): Handle VECTOR_CST.
7230 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
7232 * doc/rtl.texi (Constants): Document const_vector.
7233 (CONST0_RTX): Update for vectors.
7234 (RTL sharing): Same.
7236 * print-tree.c (print_node): Add case for VECTOR_CST.
7238 * tree.h (TREE_VECTOR_CST_ELTS): New.
7239 (struct tree_vector): New.
7240 (union tree_node): Add vector node.
7241 (build_vector): Add prototype.
7243 * tree.def (VECTOR_CST): New.
7245 * tree.c (build_vector): New.
7247 * expmed.c (make_tree): Handle CONST_VECTOR.
7249 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
7250 (CONST_VECTOR_ELT): New.
7251 (CONST_VECTOR_NUNITS): New.
7253 * machmode.h (GET_MODE_INNER): New.
7254 (DEF_MACHMODE): Accept 8th arg.
7256 * machmode.def: Add 8th argument for vector inner mode.
7257 Add inner vector modes for vectors.
7259 * rtl.def (VEC_CONST): Remove.
7260 (CONST_VECTOR): New.
7262 * expr.c (clear_storage): Allow vectors.
7263 (is_zeros_p): Handle VECTOR_CST.
7265 * varasm.c (output_constant_pool): Handle vectors.
7266 (rtx_const): Add veclo and vechi fields.
7267 (kind): Add RTX_VECTOR.
7268 (decode_rtx_const): Add case for vector.
7270 * config/rs6000/rs6000-protos.h: Add zero_constant.
7272 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
7273 constants. Force easy vector constants into memory.
7274 (easy_vector_constant): New.
7275 (emit_easy_vector_constant): New.
7276 (rs6000_legitimize_reload_address): Do not generate bad reloads on
7279 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
7281 ("altivec_lvxl"): Same.
7282 (altivec_lvebx): Same.
7283 (altivec_lvehx): Same.
7284 (altivec_lvewx): Same.
7285 ("*movv4si_const0"): New.
7286 ("*movv4sf_const0"): New.
7287 ("*movv8hi_const0"): New.
7288 ("*movv16qi_const0"): New.
7290 2002-02-18 Kazu Hirata <kazu@hxi.com>
7292 * config/h8300/h8300.c (notice_update_cc): Use
7295 2002-02-18 Kazu Hirata <kazu@hxi.com>
7297 * config/h8300/h8300.md (divmod patterns): Change the
7298 constraints for operands[1] to register_operand.
7300 2002-02-18 Kazu Hirata <kazu@hxi.com>
7302 * config/h8300/h8300-protos.h: Remove the prototype for
7304 * config/h8300/h8300.c (p_operand): Remove.
7305 * config/h8300/h8300.md: Replace p_operand with
7308 2002-02-18 Philip Blundell <pb@nexus.co.uk>
7310 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
7312 (output_return_instruction): Allow use of LDR to unstack
7313 return addresss even for interrupt handlers or when
7314 interworking. If compiling for ARMv5, use interworking-safe
7315 return instructions by default. Remove duplicated code and
7316 lengthy "strcat" sequences.
7318 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7320 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
7321 (LINK_EH_SPEC): Define.
7322 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
7324 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
7326 * config/s390/s390.c (s390_emit_prologue): Do not set the
7327 frame_related flag for call-clobbered registers.
7329 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
7331 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
7332 (construct_container): Fix handling of SSE operands.
7333 (ix86_expand_builtin): Fix handling of 64bit pointers.
7334 (mmx_maskmovq_rex): New pattern.
7336 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
7338 * regrename.c (kill_set_value): Handle subregs properly.
7340 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
7342 * objc/objc-act.c (handle_impent): Remove leading '*'
7343 from objc_class_name.
7345 2002-02-17 Richard Henderson <rth@redhat.com>
7347 * config/alpha/alpha.c (some_small_symbolic_operand,
7348 some_small_symbolic_operand_1, split_small_symbolic_operand,
7349 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
7350 Handle small SYMBOL_REFs anywhere, not just inside memories.
7351 * config/alpha/alpha-protos.h: Update.
7352 * config/alpha/alpha.h (PREDICATE_CODES): Update.
7353 * config/alpha/alpha.md (small symbolic operand splitter): Update.
7355 2002-02-17 Roland McGrath <roland@frob.com>
7357 * config.gcc (powerpc-*-gnu-gnualtivec*,
7358 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
7359 * config/rs6000/gnu.h: New file.
7360 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
7361 Grok "gnu" in rs6000_abi_name.
7362 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
7363 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
7364 Grok -mcall-gnu analogous to -mcall-linux et al.
7365 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
7366 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
7367 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
7369 2002-02-17 Jakub Jelinek <jakub@redhat.com>
7372 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
7375 2002-02-17 Philipp Thomas <pthomas@suse.de>
7377 * config/cris/cris.h: Undefine STARTFILE_SPEC and
7378 ENDFILE_SPEC before (re)defining them.
7380 2002-02-17 Kazu Hirata <kazu@hxi.com>
7382 * config/h8300/h8300.c: Fix formatting.
7383 * config/h8300/h8300.h: Likewise.
7385 2002-02-17 Philipp Thomas <pthomas@suse.de>
7387 * doc/tm.texi: Explain why empty strings should not be
7388 marked for translation.
7390 2002-02-17 Philipp Thomas <pthomas@suse.de>
7392 * final.c (output_operand_lossage): Changed to accept
7393 printf style arguments. Change calls where necessary.
7394 * output.h (output_operand_lossage): Change declaration
7395 accordingly. Update copyright.
7396 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
7397 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
7398 Update copyright date where necessary.
7400 * config/i386/i386.c (print_operand): Likewise. Remove use of
7403 * config/cris/cris.c (cris_operand_lossage): Likewise.
7404 Rename parameter so that exgettext recognizes it as
7405 translatable message.
7406 (LOSE_AND_RETURN): Rename parameter to msgid.
7408 2002-02-17 Kazu Hirata <kazu@hxi.com>
7410 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
7411 hard coded register number with an appropriate macro.
7412 (HARD_REGNO_MODE_OK): Likewise.
7413 (ARG_POINTER_REGNUM): Likewise.
7414 (STATIC_CHAIN_REGNUM): Likewise.
7415 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
7416 * config/h8300/h8300.md (define_constants): Define more
7419 2002-02-17 Philipp Thomas <pthomas@suse.de>
7421 * config/i386/i386.h: Don't mark empty strings for translation.
7423 2002-02-16 H.J. Lu <hjl@gnu.org>
7425 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
7427 2002-02-16 Zack Weinberg <zack@codesourcery.com>
7429 * cppinit.c (merge_include_chains): Check for brack being
7430 NULL before attempting to merge it with qtail.
7432 2002-02-16 Andrew Cagney <ac131313@redhat.com>
7434 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
7437 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
7439 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
7441 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
7443 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
7444 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
7445 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
7447 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7449 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
7450 now only if !TARGET_FIX.
7451 (*movsi_nt_vms_fix): New pattern.
7453 2002-02-16 Douglas B Rupp <rupp@gnat.com>
7455 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
7456 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
7457 (alpha_sa_mask, alpha_sa_size): Reflect above change.
7458 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
7459 (alpha_start_function, alpha_expand_epilogue): Likewise.
7460 (unicosmk_gen_dsib): Likewise.
7462 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7464 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
7466 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
7468 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
7469 check_and_change_labels, s390_final_chunkify): Delete.
7470 (s390_split_branches, s390_chunkify_pool): New functions.
7471 (s390_function_prologue): Call them.
7473 * config/s390/s390.h (S390_REL_MAX): Delete.
7474 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
7476 * config/s390/s390.md (cjump, icjump, jump): Fix length
7477 attribute calculation.
7480 2002-02-15 David Edelsohn <edelsohn@gnu.org>
7482 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
7483 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
7485 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
7487 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
7488 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
7489 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
7491 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
7493 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
7495 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
7497 * reload.c (find_dummy_reload): Check that an output register
7498 is valid for its mode.
7500 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
7502 * combine.c (known_cond): After replacing the REG of a SUBREG, try
7505 * function.c (assign_parms): Demote promoted argument passed by
7506 transparent reference.
7508 2001-02-14 Joel Sherrill <joel@OARcorp.com>
7510 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
7511 -Acpu() and -Amachine() to eliminate warnings.
7513 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
7515 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
7517 2002-02-14 Kazu Hirata <kazu@hxi.com>
7519 * config/h8300/h8300-protos.h: Update the prototype for
7521 * config/h8300/h8300.c (const_costs): Treat SET as a little
7522 more expensive operation.
7523 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
7524 reference to const_costs.
7526 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
7528 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
7530 2002-02-14 Jakub Jelinek <jakub@redhat.com>
7533 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
7534 use arguments from newtype.
7536 2002-02-13 Eric Christopher <echristo@redhat.com>
7538 * config/mips/mips.c (override_options): Add check for march/mipsX
7539 on the same command line. Fix error message in cpu processing.
7540 Remove architecture and ISA checks.
7542 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
7544 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
7546 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
7548 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
7550 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
7552 ("*movv8hi_internal1"): Same.
7553 ("*movv16qi_internal1"): Same.
7554 ("*movv4sf_internal1"): Same.
7556 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
7557 not push_reload for altivec modes.
7559 2002-02-13 Joel Sherrill <joel@OARcorp.com>
7561 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
7562 all RTEMS targets including removal of #includes from config/*/rtems*.h
7563 file and adding them to tm_file setting. Added xm_defines=POSIX to
7565 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
7566 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
7567 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
7568 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
7569 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
7570 config/m68k/rtemself.h: Ditto.
7571 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
7572 config/mips/rtems64.h: Ditto.
7573 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
7574 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
7576 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
7577 config/sparc/rtemself.h: Ditto.
7578 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
7579 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
7580 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
7582 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
7583 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
7584 target made more similar to i386-elf.
7585 * config/i386/t-rtems-i386: Added soft float support and multilibs.
7586 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
7587 be similar to config/m68k/t-m68kelf.
7588 * gthr-rtems.h: Encapsulate with extern "C" for C++.
7590 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
7592 * regmove.c (kill_value): Handle subregs.
7594 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
7596 * i386.md (mul patterns): Allow memory operand to be first;
7597 add expanders where needed; fix constraints.
7598 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
7599 Allow memory operand to be the first.
7601 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
7604 2002-02-13 Jakub Jelinek <jakub@redhat.com>
7607 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
7610 2002-02-13 Jakub Jelinek <jakub@redhat.com>
7612 PR optimization/5547:
7613 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
7614 all valid IA-32 address modes involving non-scaled %ebx and
7615 GOT/GOTOFF as displacement.
7617 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
7619 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
7620 after emitting ltorg insns.
7622 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
7623 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
7624 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
7625 *abssf2): Fix "op_type" attribute.
7627 2002-02-13 Douglas B Rupp <rupp@gnat.com>
7629 * mkconfig.sh: Avoid using a subshell redirect.
7630 ($output.T): Change to $(output)T.
7631 (ENABLE_NLS): Remove unneeded undef.
7633 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
7634 * config/alpha/x-vms (libsubdir): Define.
7636 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
7637 register frame procedures. Optimize retrieving context.
7639 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
7640 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
7641 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
7643 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7645 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
7646 Make same change as for find_base_value.
7648 2002-02-13 Kazu Hirata <kazu@hxi.com>
7650 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
7651 of QImode and SImode.
7653 2002-02-13 Kazu Hirata <kazu@hxi.com>
7655 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
7656 length computation of movsi.
7657 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
7659 2002-02-13 Kazu Hirata <kazu@hxi.com>
7661 * config/h8300/h8300.md (subqi3): Tighten the predicate for
7662 operands[2] to register_operand.
7664 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
7666 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
7668 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
7670 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
7671 for altivec_lvx* and altivec_stvx*.
7672 ("*movv4si_internal"): Add constraint for loading from GPRs.
7673 ("*movv8hi_internal1"): Same.
7674 ("*movv16qi_internal1"): Same.
7675 ("*movv4sf_internal1"): Same.
7677 * config/rs6000/rs6000.c (altivec_register_operand): New.
7679 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
7680 altivec_register_operand.
7682 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
7684 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
7687 2002-02-13 Stan Shebs <shebs@apple.com>
7689 * c-typeck.c (digest_init): Handle vectors.
7690 (really_start_incremental_init): Same.
7691 (pop_init_level): Same.
7692 (process_init_element): Same.
7694 * varasm.c (output_constant): Same.
7696 * expr.c (clear_storage): Same.
7697 (store_constructor): Same.
7699 2002-02-12 Eric Christopher <echristo@redhat.com>
7701 * explow.c (hard_function_value): Add comment explaining
7702 signed/unsigned comparison.
7704 2002-02-12 Jakub Jelinek <jakub@redhat.com>
7706 * jump.c (never_reached_warning): Add finish argument.
7707 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
7708 real insn after end.
7709 * rtl.h (never_reached_warning): Adjust prototype.
7710 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
7711 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
7712 never_reached_warning.
7714 2002-02-12 Graham Stott <grahams@redhat.com>
7716 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
7718 2002-02-12 Kazu Hirata <kazu@hxi.com>
7720 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
7721 logical shifts on H8/300.
7722 (shift_alg_si): Improve several shifts on H8/300.
7723 (get_shift_alg): Likewise.
7725 2002-02-12 Graham Stott <grahams@redhat.com>
7727 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
7729 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7731 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
7732 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
7734 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
7736 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
7737 non-CONST_INT through default_assemble_integer.
7738 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
7739 <case 8>: Abort for CONST_DOUBLE.
7741 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
7743 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
7745 * config/pa/pa-linux.h (LIB_SPEC): Delete.
7746 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
7748 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
7750 * config/stormy16/stormy16.md (zero_extendqihi2): New.
7752 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
7754 * regrename.c (regrename_optimize): Don't accept a
7755 part-clobbered register if the replaced register is not part
7758 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
7759 take padding into account when computing the argument value.
7761 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
7763 * combine.c (try_combine): Apply substitutions in
7764 CALL_INSN_FUNCTION_USAGE too.
7766 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
7768 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
7769 __builtin_altivec_abs*.
7772 * config/rs6000/rs6000.h (rs6000_builtins): Add
7773 ALTIVEC_BUILTIN_ABS*.
7775 * config/rs6000/altivec.h: Use const char for builtins expecting
7777 (vec_abs): New versions for C and C++.
7780 2002-02-10 Kazu Hirata <kazu@hxi.com>
7782 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
7785 2002-02-10 Kazu Hirata <kazu@hxi.com>
7787 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
7788 constant definition from h8300.md.
7789 (FRAME_POINTER_REGNUM): Likewise.
7790 * config/h8300/h8300.md (define_constants): Add FP_REG.
7792 2002-02-10 Kazu Hirata <kazu@hxi.com>
7794 * config/h8300/h8300.c (print_operand): Remove redundant code.
7796 2002-02-10 Kazu Hirata <kazu@hxi.com>
7798 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
7799 * config/h8300/h8300.c (byte_reg): Make it static.
7801 2002-02-10 Richard Henderson <rth@redhat.com>
7804 * c-typeck.c (incomplete_type_error): Handle flexible array members.
7806 2002-02-10 Richard Henderson <rth@redhat.com>
7809 * tree.c (append_random_chars): Don't abort if main_input_filename
7812 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
7814 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
7816 2002-02-10 Kazu Hirata <kazu@hxi.com>
7818 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
7819 (pushhi1): Likewise.
7821 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
7823 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
7824 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
7826 2002-02-09 David O'Brien <obrien@FreeBSD.org>
7828 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
7830 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
7832 2002-02-09 Kazu Hirata <kazu@hxi.com>
7834 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
7835 a half of an SImode register on H8/300.
7837 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
7839 * i386.md (movdi_2): Add missing '!'.
7841 2002-02-09 Kazu Hirata <kazu@hxi.com>
7843 * config/h8300/h8300.h: Fix formatting. Remove commented-out
7846 2002-02-09 Kazu Hirata <kazu@hxi.com>
7848 * config/h8300/h8300.md (length): Correct the distance valid
7849 for the short branch.
7851 2002-02-09 Kazu Hirata <kazu@hxi.com>
7853 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
7855 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
7857 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
7858 registers in SImode.
7859 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
7862 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
7865 Contribute sh64-elf.
7866 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
7867 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
7868 (sh_cannot_modify_jumps_p): New function.
7869 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
7870 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
7871 (sh_ms_bitfield_layout_p): New function.
7872 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
7873 Zack Weinberg <zack@codesourcery.com>
7874 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
7875 expand_simple_binop instead of expand_binop.
7876 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
7877 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
7878 use of .quad and .uaquad.
7879 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
7880 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
7881 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7882 * config/sh/sh.md (movdi_const, movdi_const_32bit,
7883 movdi_const_16bit): Make sure all CONSTs have modes.
7884 (sym2PIC): Ditto, but by adjusting all callers.
7885 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
7886 if the prologue calls the SHmedia argument decoder or register
7888 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7889 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
7890 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
7891 (sh_expand_epilogue): Don't emit USE of return target register.
7892 (prepare_move_operands): Legitimize DImode PIC addresses.
7893 (sh_media_register_for_return): Skip tr0, used to initialize the
7895 (sh_expand_prologue): Remove explicit USE of return register.
7896 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
7897 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
7898 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
7899 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
7900 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
7902 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
7903 (MOVI_SHORI_BASE_OPERAND_P): New.
7904 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
7905 (EXTRA_CONSTRAINT_T): Define in terms of them.
7906 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
7907 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
7908 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
7909 alternatives supporting TARGET_REGS.
7910 (UNSPEC_GOTPLT): New constant.
7911 (movdi split): Move incrementing of LABEL_NUSES...
7912 (movdi_const, movdi_const_32bit): Here. Use
7913 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
7914 (movdi_const_16bit): New.
7915 (call, call_value) [flag_pic]: Use GOTPLT.
7916 (call_pop, call_value_pop): New expands.
7917 (call_pop_compact, call_pop_rettramp): New insns.
7918 (call_value_pop_compact, call_value_pop_rettramp): New insns.
7919 (sibcall) [flag_pic]: Use GOT.
7920 (builtint_setjmp_receiver): Remove bogus, unused expand.
7921 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
7922 (*pt, *ptb, ptrel): New insns.
7923 (sym2GOT): Handle DImode GOT.
7924 (sym2GOTPLT, symGOTPLT2reg): New expands.
7925 (sym2PIC): New expand.
7926 (shcompact_return_tramp): Use GOTPLT to return trampoline.
7927 (shcompact_return_tramp_i): Use return register explicitly.
7928 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
7929 disable flag_reorder_blocks.
7930 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
7931 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
7932 clobbers, for clarity.
7933 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
7934 restoring of r0 in macl as MAYBE_DEAD.
7935 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
7936 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
7937 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
7938 alter_subreg all over.
7939 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
7940 reload, instead of emitting instructions that would require
7942 (casesi_load_media): Add missing modes.
7943 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
7944 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
7945 as used if the argument decoder is called.
7946 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
7947 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
7948 Pmode, then extend it to DImode if necessary.
7949 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
7950 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
7951 constants in FPU-enabled SHmedia, let them be loaded from memory.
7952 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
7953 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
7954 Adjust whitespace in assembly output templates.
7955 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
7956 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
7957 mode of if_then_else.
7958 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
7959 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
7961 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
7962 Joern Rennecke <amylaar@redhat.com>
7963 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
7964 (SUBTARGET_CPP_PTR_SPEC): New.
7965 (SUBTARGET_CPP_SPEC): Remove.
7966 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
7967 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
7968 Fix typo in previous checkin.
7969 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
7970 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
7971 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
7972 Alexandre Oliva <aoliva@redhat.com>
7973 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
7974 what single FP register can hold for SHmedia target.
7975 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
7976 Alexandre Oliva <aoliva@redhat.com>
7977 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
7978 Do not split into SUBREG.
7979 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
7980 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
7981 and added new functions as specified in SH5 ABI r9.
7982 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
7983 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
7985 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
7986 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
7987 gen_consttable_4 and gen_consttable_8. Emit multiple labels
7988 and consttable_window_ends.
7989 2001-06-03 Graham Stott <grahams@redhat,com>
7990 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
7991 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
7992 * config/sh/sh.c (print_operand): Handle floating-point pair,
7993 vector and matrix registers.
7994 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
7995 vector modes into account.
7996 * config/sh/sh.md (movv2sf): Split move between registers into
7998 (movv4sf, movv16sf): Introduce insns that get split only after
8000 * config/sh/shmedia.h: Fix Copyright dates.
8001 * config/sh/ushmedia.h: Likewise. Move loop counter
8002 declarations into conditionals that uses them.
8003 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
8005 * config/sh/sshmedia.h: Fix Copyright dates.
8006 (sh_media_PUTCFG): Fix constraints.
8007 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
8008 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
8009 ptrmemfunc_vbit_in_delta for SH5.
8010 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
8011 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
8012 * invoke.texi: Likewise.
8013 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
8014 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
8015 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
8016 GCC_pop_shmedia_regs_nofpu): New global symbols.
8017 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
8018 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
8019 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
8020 compact function with nonlocal labels.
8021 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
8022 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
8023 (initial_elimination_offset): Account for their stack space.
8024 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
8025 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
8026 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
8027 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
8028 least one of the operands to be a register.
8029 (movv2sf): Likewise. Renamed to movv2sf_i.
8030 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
8031 prepare_move_operands() before emitting SHmedia insns.
8032 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
8033 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
8034 Don't save nor initialize r12. Don't mis-align the stack.
8035 Pad the code with a nop.
8036 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
8038 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
8039 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
8040 [__SHMEDIA__]: Implement.
8041 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
8042 * config/sh/sh.md: Set latency of `pt' closer to reality.
8043 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
8044 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
8045 Set move, load and store type attributes.
8046 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
8047 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
8049 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
8050 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
8051 * config/sh/sh.c (sh_media_register_for_return): New function.
8052 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
8053 branch-target register.
8054 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
8055 * config/sh/sh.md (return_media_i): Use any call-clobbered
8056 branch-target register.
8057 (return_media): If r18 wasn't copied in the prologue, copy it
8059 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
8060 Clear class FP0_REGS.
8061 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
8063 2001-03-08 DJ Delorie <dj@redhat.com>
8064 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
8065 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
8066 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
8067 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
8068 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
8069 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
8070 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
8071 return value correctly for call_cookie.
8072 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
8073 * config/sh/crt1.asm (start): Modified so as to call
8074 ___setup_argv_and_call_main.
8075 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
8076 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
8078 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
8079 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
8080 (STRIP_NAME_ENCODING): Use it.
8081 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
8082 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
8083 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
8084 prepare_scc_operands().
8085 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
8086 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
8087 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
8088 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
8089 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
8090 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
8091 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
8092 used in shcompact_incoming_args.
8093 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
8095 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
8097 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
8099 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
8100 Simplify. Adjust. Add sanity check.
8101 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
8103 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
8105 (udivsi3, divsi3): Use them.
8106 (force_mode_for_call): New insn.
8107 (call, call_value, sibcall_value): Emit it before SHcompact
8109 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
8110 * config/sh/sh.md (call, call_value, sibcall): Make sure the
8111 call cookie is non-NULL before taking its value.
8112 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
8113 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
8114 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
8115 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
8117 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
8118 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
8119 temporary for stack adjusts. Use MACL and MACH to pass
8120 arguments to shcompact_incoming_args.
8121 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
8123 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
8124 (nested_trampoline): Load static chain address into r1.
8125 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
8126 2001-01-07 Alexandre Oliva <aoliva@redhat.com
8127 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
8128 fp_arith_reg_operand().
8129 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
8130 * config/sh/sh.md (casesi): Sign-extend the first two operands,
8131 and use signed compares for them.
8132 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
8133 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
8134 ones properly aligned.
8135 (find_barrier): Account for extra alignment needed for 8-byte wide
8137 (machine_dependent_reorg): Require a label for the second 4-byte
8138 constant after an 8-byte one.
8139 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
8141 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
8142 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
8143 last_float when switching float modes.
8144 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
8145 auto-increment for general-purpose registers.
8146 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
8148 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
8150 * config/sh/sh.c (sh_builtin_saveregs): Support using all
8151 registers for varargs.
8152 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
8153 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
8154 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
8155 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
8156 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
8157 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
8158 call_cookie accordingly.
8159 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
8160 (SHCOMPACT_BYREF): Likewise.
8161 (SHCOMPACT_FORCE_ON_STACK): New macro.
8162 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
8163 (sh_builtin_saveregs): Likewise.
8164 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8165 shcompact_incoming_args): Use new shift values. Support
8166 sequences of consecutive and non-consecutive pushes/pops.
8167 * config/sh/sh.md (return): Don't explicitly use PR_REG.
8168 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
8169 * config/sh/sh.h (TEXT_SECTION): Define.
8170 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
8171 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
8172 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
8173 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
8174 return values on FPU-enabled SHmedia.
8175 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
8176 FPU-enabled SHmedia.
8177 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
8178 value is returned in a non-FP reg and is not returned by
8180 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
8182 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
8183 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
8184 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
8185 quad-aligned to be passed by callee-copy reference.
8186 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
8187 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
8188 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
8189 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
8190 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
8191 copying low-numbered FP regs to r7 and r8.
8192 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
8193 FP regs to general-purpose regs only if the copy was passed on the
8195 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
8196 copying FP reg to r9.
8197 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
8198 copy FP regs to general-purpose regs only in outgoing calls.
8199 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
8200 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
8202 * config/sh/sh.h (struct sh_args): Document all fields.
8203 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
8204 passed partially on the stack should not consider making
8206 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
8207 stack_regs only for incoming calls. When passing FP args,
8208 make sure there are FP regs available before modifying
8210 (SHCOMPACT_BYREF): Pass double args in general-purpose
8211 registers by reference.
8212 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
8213 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
8214 attempt to generate sibcalls if the caller got any arguments
8216 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
8217 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
8218 to 8-byte boundaries.
8219 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
8220 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
8221 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
8222 stored in the stack.
8223 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
8224 for the offsets to have the ISA bit set.
8225 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
8226 invocation. Use beq instead of bgt to mark end of sequence of
8228 (shcompact_incoming_args): Fix store of r2. Use beq instead of
8229 bgt to mark end of sequence of stores.
8230 * config/sh/sh.c (arith_operand): Don't check whether
8231 CONST_OK_FOR_J for now.
8232 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
8233 instead of long for conversion.
8234 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
8235 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
8236 before passing it to fprintf.
8237 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
8238 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
8239 Call set_fpscr before reading/writing SR.
8240 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
8242 * config/sh/lib1funcs.asm: Add `.align 2' directives before
8244 (FMOVD_WORKS): Define on SH5 with FPU.
8245 (set_fpscr): Define on SH5. Remove separate _fpscr_values
8247 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
8249 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
8250 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
8252 (ia_main_table): Ditto.
8253 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
8254 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8255 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
8256 the definitions from sh.h.
8257 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
8259 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
8260 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
8261 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
8262 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
8263 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
8264 Increment LABEL_NUSES.
8266 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
8268 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
8270 * config/sh/elf.h (SIZE_TYPE): Likewise.
8271 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
8272 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8273 shcompact_incoming_args): Load switch table addresses using
8275 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
8276 (NO_BUILTIN_SIZE_TYPE): Define.
8277 (SIZE_TYPE): Don't define.
8278 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
8279 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
8280 definition of __SH5__=32 for -m5-compact-nofpu.
8281 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
8283 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
8284 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
8285 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
8286 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
8287 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
8288 (INSN_LENGTH_ALIGNMENT): Likewise.
8289 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
8290 * config/sh/sh.md (call, call_value, sibcall): Simplify
8291 copying of non-branch-target register.
8292 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
8293 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
8294 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
8295 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
8296 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
8297 floating-point values as structs.
8298 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
8299 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
8300 general-purpose register.
8301 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
8302 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
8303 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
8304 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
8305 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
8306 (ENCODE_SECTION_INFO): Enclose variables and constants in
8308 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
8309 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
8310 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
8311 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
8312 only for LABEL_REFs. For SYMBOL_REFs, prepend
8313 SH_DATALABEL_ENCODING to the symbol name.
8314 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
8316 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
8317 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
8319 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
8320 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
8321 (DATALABEL_REF_P): Don't require CONST.
8322 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
8324 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
8325 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
8327 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
8328 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
8329 Use shallow_copy_rtx and PUT_MODE to change the mode of
8330 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
8331 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
8332 on SHmedia using GENERAL_REGs.
8333 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
8334 bltu_media_i): Fix reversion of conditions.
8335 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
8336 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
8337 * config/sh/sh.c (output_far_jump): Save r13 in macl.
8338 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
8339 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
8340 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
8341 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
8342 (GCC_nested_trampoline): Likewise.
8343 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
8344 * config/sh/sh.c (gen_datalabel_ref): Define.
8345 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
8346 (INITIALIZE_TRAMPOLINE): Likewise.
8347 (TRAMPOLINE_ADJUST_ADDRESS): Define.
8348 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
8349 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
8350 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
8351 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
8352 (ic_invalidate): Adjust for SH5.
8353 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
8354 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
8356 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
8357 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
8358 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
8359 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
8360 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
8361 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
8362 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
8363 * config/sh/sh.c (target_reg_operand): Match only target-branch
8364 registers and pseudos that aren't virtual registers.
8365 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
8366 Copy operands that don't match target_reg_operand to pseudos.
8367 (call_media, call_value_media, sibcall_media): Use
8368 target_reg_operand instead of target_operand.
8369 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
8370 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
8371 * config/sh/sh.c (target_reg_operand): Match hardware registers
8372 other than branch-target registers.
8373 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
8374 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
8375 (fpscr_values) [SH5 == 32]: Define.
8376 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
8377 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
8378 Handle function addresses coming in SUBREGs.
8379 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
8380 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
8381 shcompact_return_trampoline): Use datalabel where appropriate.
8382 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
8383 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
8384 general-purpose register to copy one branch-target register to
8386 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
8387 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
8388 SYMBOL_REFs with VOIDmode.
8389 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
8390 bltu_media_i): New insns.
8391 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
8392 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
8393 (INIT_CUMULATIVE_ARGS): Likewise.
8394 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
8395 * machmode.def (V16SFmode): New mode.
8396 * c-common.c (type_for_mode): Support V2SF and V16SF.
8397 * tree.c (build_common_tree_nodes_2): Likewise.
8398 * tree.h (tree_index): Likewise.
8399 * calls.c (emit_call_1): Take args_so_far. Adjust all
8400 callers. Introduce CALL_POPS_ARGS.
8401 * tm.texi (CALL_POPS_ARGS): Document.
8402 * config/sh/crt1.asm: Implement in SHmedia mode.
8403 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
8404 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
8405 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
8406 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
8407 Implement divsi and udivsi in SHmedia mode. Introduce
8408 SHcompact trampolines.
8409 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
8411 (regno_reg_class): Rewrite.
8412 (fp_reg_names): Remove.
8413 (sh_register_names, sh_additional_register_names): New.
8414 (print_operand): Added `u'. Support SUBREGs in addresses.
8415 Add parentheses around shifted CONSTs.
8416 (output_file_start): Output .mode and .abi directives.
8417 (shiftcosts, addsubcosts, multcosts): Adjust.
8418 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
8419 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
8420 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
8421 bytes, not registers. Take into account the need for the
8422 SHcompact incoming args trampoline. Adjust all callers.
8423 (sh_expand_prologue): Take stack_regs into account. Call
8424 incoming args trampoline. Keep stack aligned as per SH5 ABI.
8425 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
8426 stack aligned as per SH5 ABI.
8427 (sh_builtin_saveregs): Support SH5 ABI.
8428 (sh_build_va_list, sh_va_start): Likewise.
8429 (initial_elimination_offset): Take alignment into account.
8430 Compute location of PR according to the SH5 stack frame.
8431 (arith_reg_operand): Reject branch-target registers.
8432 (shmedia_6bit_operand): New.
8433 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
8434 (target_reg_operand): Match DImode only. Accept SUBREGs.
8435 (target_operand): New.
8436 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
8437 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
8438 SIBCALL_REGS for SHmedia.
8439 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
8440 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
8441 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
8442 (TARGET_SWITCHES): New SH5 flags.
8443 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
8444 VALID_REGISTER_P to disable unsupported registers.
8445 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
8446 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
8447 (FUNCTION_ARG_PADDING): Define.
8448 (FASTEST_ALIGNMENT): Adjust.
8449 (SH_REGISTER_NAMES_INITIALIZER): New.
8450 (sh_register_names): Declare.
8451 (DEBUG_REGISTER_NAMES): Define.
8452 (REGISTER_NAMES): Define based on sh_register_names.
8453 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
8454 (sh_additional_register_names): Declare.
8455 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
8456 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
8457 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
8458 (REGISTER_NATURAL_MODE): Define.
8459 (FIRST_PSEUDO_REGISTER): Adjust.
8460 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
8461 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
8462 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
8463 (VECTOR_MODE_SUPPORTED_P): Define.
8464 (REG_CLASS_CONTENTS): Adjust.
8465 (SMALL_REGISTER_CLASSES): Adjust.
8466 (REG_ALLOC_ORDER): Adjust.
8467 (INDEX_REG_CLASS): Adjust.
8468 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
8469 (CONST_OK_FOR_LETTER_P): Adjust.
8470 (PREFERRED_RELOAD_CLASS): Adjust.
8471 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
8472 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
8473 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
8474 (FIRST_FP_PARM_REG): Adjust.
8475 (CALL_POPS_ARGS): Define.
8476 (FUNCTION_ARG_REGNO_P): Adjust.
8477 (struct sh_args): New fields.
8478 (GET_SH_ARG_CLASS): Adjust.
8479 (INIT_CUMULATIVE_ARGS): Adjust.
8480 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
8481 (FUNCTION_ARG_ADVANCE): Adjust.
8482 (FUNCTION_ARG): Adjust.
8483 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
8484 (FUNCTION_ARG_CALLEE_COPIES): Define.
8485 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
8486 (STRICT_ARGUMENT_NAMING): Define.
8487 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
8488 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
8489 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
8490 (SETUP_INCOMING_VARARGS): Adjust.
8491 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
8492 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
8493 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
8494 (SUBREG_OK_FOR_INDEX_P): Adjust.
8495 (EXTRA_CONSTRAINT_S): Update.
8496 (EXTRA_CONSTRAINT_T): New.
8497 (EXTRA_CONSTRAINT): Adjust.
8498 (GO_IF_LEGITIMATE_INDEX): Adjust.
8499 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
8500 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
8502 (MAX_MOVE_MAX): Define.
8504 (CONST_COSTS): Adjust.
8505 (REGISTER_MOVE_COST): Adjust.
8506 (BRANCH_COST): Adjust.
8507 (TEXT_SECTION_ASM_OP): Adjust.
8508 (DBX_REGISTER_NUMBER): Adjust.
8509 (ASM_OUTPUT_DOUBLE_INT): New.
8510 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
8511 (PREDICATE_CODES): Adjust.
8512 (PROMOTE_MODE): Adjust.
8513 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
8514 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
8515 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
8516 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
8517 (DR0_REG, DR2_REG, DR4_REG): Renumber.
8518 (TR0_REG, TR1_REG, TR2_REG): New.
8519 (XD0_REG): Renumber.
8520 (UNSPEC_COMPACT_ARGS): New.
8521 (type): Added pt and ptabs.
8522 (length): Default to 4 on SHmedia. Default pt length to 12
8523 and 20 on SHmedia32 and SHmedia64, respectively.
8524 (pt): New function unit.
8525 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
8526 Add whitespace between operands of SHmedia instructions.
8528 (adddi3_media, addsi3_media): Adjust constraints.
8529 (subsi3) [SHmedia]: Force operand 1 into a register.
8530 (udivsi3_i1_media, udivsi3_i4_media): New.
8531 (udivsi3): Support SHmedia.
8532 (divsi3_i1_media, divsi3_i4_media): New.
8533 (divsi3): Support SHmedia.
8534 (anddi3, iordi3, xordi3): Adjust constraints.
8535 (zero_extendhidi2, zero_extendqidi2): New.
8536 (extendsidi2, extendhidi2, extendqidi2): New.
8537 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
8538 (pop_e, pop_fpul, pop_4): Likewise.
8539 (movsi_media): Support FP and BT registers.
8540 (movsi_media_nofpu): New. Adjust splits to DImode.
8541 (lduw, ldub): Renamed to zero_extend* above.
8542 (movqi_media): Fix typo.
8543 (movdi_media): Support FP and BT registers.
8544 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
8545 (movdi_const_32bit): New.
8546 (shori_media): Require immediate operand. Use `u' for output.
8547 (movdf_media, movsf_media): Simplified.
8548 (movdf_media_nofpu, movsf_media_nofpu): New.
8549 (movdf, movsf): Adjust
8550 (movv2sf, movv2sf, movv16sf): New.
8551 (beq_media, beq_media_i): Adjust constraints. Don't use
8552 scratch BT register.
8553 (bne_media, bne_media_i): Likewise.
8554 (bgt_media, bgt_media_i): Likewise.
8555 (bge_media, bge_media_i): Likewise.
8556 (bgtu_media, bgtu_media_i): Likewise.
8557 (bgeu_media, bgeu_media_i): Likewise.
8558 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
8559 bunordered): Emit jump insn. Force operands to registers when
8561 (jump_media, jump): Simplify.
8562 (call_compact, call_compact_rettramp): New.
8563 (call_value_compact, call_value_compact_rettramp): New.
8564 (call_media, call_value_media): Simplify.
8565 (sibcall_compact, sibcall_media): New.
8566 (call, call_value): Adjust for SHmedia and SHcompact.
8567 (sibcall, sibcall_value, untyped_call): Likewise.
8568 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
8569 (indirect_jump): Adjust for SHmedia.
8570 (casesi_jump_media): New.
8571 (nop): Re-enable for SHmedia.
8572 (call_site): Restrict to SH1.
8573 (casesi): Adjust for SHmedia.
8574 (casesi_shift_media, casesi_load_media): New.
8575 (return): Explicitly use PR register. Call return trampoline
8577 (return_i): Explicitly use PR register.
8578 (shcompact_return_tramp, shcompact_return_tramp_i): New.
8579 (return_media): Adjust.
8580 (shcompact_incoming_args): New.
8582 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
8583 (movstrsi): Disable on SH5.
8584 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
8585 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
8586 (subsf3, subsf3_media): Likewise.
8587 (mulsf3, mulsf3_media, mac_media): Likewise.
8588 (divsf3, divsf3_media): Likewise.
8589 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
8590 (floatsisf2, fux_truncsfsi2): Likewise.
8591 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
8593 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
8594 (cmpunsf_media, cmpsf): Likewise.
8595 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
8596 (abssf2, abssf2_media): Likewise.
8597 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
8598 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
8599 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
8600 (floatsidf2, fix_truncdfsi2): Likewise.
8601 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
8603 (cmpeqdf_media, cmpgtdf_media): Likewise.
8604 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
8605 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
8606 (absdf2, absdf2_media): Likewise.
8607 (extendsfdf2, extendsfdf2_media): Likewise.
8608 (truncsfdf2, truncsfdf2_media): Likewise.
8609 * config/sh/sh64.h: New file.
8610 * config/sh/t-sh64: New file.
8611 * config/sh/shmedia.h: New file.
8612 * config/sh/ushmedia.h: New file.
8613 * config/sh/sshmedia.h: New file.
8614 * configure.in: Added sh64-*-elf.
8615 * configure: Rebuilt.
8616 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
8617 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
8618 (reg_class_from_letter): Use `b' for TARGET_REGS.
8619 (print_operand): Support `%M', `%m', `AND' and
8620 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
8621 (andcosts): Adjust for SHmedia.
8622 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
8624 (target_reg_operand): New function.
8625 * config/sh/sh-protos.h (target_reg_operand): Declare.
8626 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
8627 FP registers on SH5.
8628 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
8630 (TARGET_REGISTER_P): New macro.
8631 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
8632 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
8633 (EXTRA_CONSTRAINT_S): New macro.
8634 (EXTRA_CONSTRAINT): Adjust.
8635 (FLOAT_TYPE_SIZE): Define to 32.
8636 (Pmode): DImode on SHmedia.
8637 (CONST_COSTS): Adjust for SHmedia literals.
8638 (PREDICATE_CODES): Added target_reg_operand.
8639 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
8640 * config/sh/sh.md: Remove all attrs from SHmedia insns.
8641 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
8642 (cmpdi): Accept SHmedia.
8643 (movdicc_false, movdicc_true): New insns.
8644 (movdicc): New expand.
8645 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
8647 (addsi3_media): Match `S' constraint.
8648 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
8649 (negdi2): Expand for SHmedia.
8650 (one_cmpldi2): New expand.
8651 (zero_extendsidi2): Change from expand to insn.
8652 (extendsidi2): Add constraints.
8653 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
8654 LD/ST address. Fix SI immediate loading split.
8655 (movhi_media, movqi_media, lduw, ldub): New insns.
8656 (movhi, movqi): Accept SHmedia.
8657 (shori_media, movdi_media): Relax input constraints. Split
8659 (movdf_media, movsf_media): New insn. New split to movdi.
8660 (movdf, movsf): Match on SHmedia.
8661 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
8662 bgeu_media): New insns and splits. New insns with `_i' suffix.
8663 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
8664 (bunordered): New expand.
8665 (jump_compact): Renamed from `jump'.
8666 (jump_media): New insn.
8668 (call_media, call_value_media): New insns.
8669 (call, call_value): Adjust.
8670 (indirect_jump_compact): Renamed from `indirect_jump'.
8671 (indirect_jump_media): New insn.
8672 (indirect_jump): New expand.
8673 (untyped_call, return): Accept SHmedia.
8674 (return_media): New insn.
8675 (prologue, epilogue, blockage): Accept SHmedia.
8676 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
8677 (sunordered): New expand.
8678 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
8679 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
8680 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
8681 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
8682 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
8683 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
8684 abssf2_media): New insns.
8685 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
8686 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
8687 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
8688 floatdidf2, floatsidf2_media, fix_truncdfdi2,
8689 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
8690 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
8691 absdf2_media): New insns.
8692 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
8693 (extendsfdf2_media, truncdfsf2_media): New insns.
8694 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
8695 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
8696 * config/sh/sh.h (CONST_OK_FOR_J): Document.
8697 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
8698 * config/sh/sh.md (adddi3): New expand.
8699 (adddi3_media, adddi3z_media): New insns.
8700 (adddi3_compact): Renamed from adddi3.
8701 (addsi3_media): Use add.l r63 to add constant zero.
8702 (subdi3): New expand.
8703 (subdi3_media): New insn.
8704 (subdi3_compact): Renamed from subdi3.
8705 (mulsidi3): New expand.
8706 (mulsidi3_media): New insn.
8707 (mulsidi3_compact): Renamed from mulsidi3.
8708 (umulsidi3): New expand.
8709 (umulsidi3_media): New insn.
8710 (umulsidi3_compact): Renamed from umulsidi3.
8711 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
8712 (ashlsi3, ashrsi3, lshrsi3): Use them.
8713 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
8714 (ashldi3, ashrdi3, lshrdi3): Use them.
8715 (zero_extendsidi2): New expand.
8716 (extendsidi2): New insn.
8717 (movsi_media): New insn. Split to movdi to load constants.
8718 (movsi): Enable for shmedia.
8719 (movdi_media): New insn. Use shori_media to load wide constants.
8720 (short_media): New insn.
8721 (movdi): Enable for shmedia.
8722 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
8723 * config/sh/sh.h (CPP_SPEC): Added `m5'.
8724 (SUBTARGET_CPP_SPEC): Added `!m5'.
8725 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
8726 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
8727 to all other SH variants.
8728 (TARGET_DEFAULT): Set to SH1_BIT.
8729 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
8730 (BITS_PER_WORD): Raise to 64 on shmedia.
8731 (MAX_BITS_PER_WORD): Change to 64.
8732 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
8733 (INT_TYPE_SIZE): Keep as 32.
8734 (UNITS_PER_WORD): Raise to 8 on shmedia.
8735 (MIN_UNITS_PER_WORD): Keep as 4.
8736 (POINTER_SIZE): Raise to 64 on shmedia.
8737 (CONST_OK_FOR_J): New macro.
8738 (CONST_OK_FOR_LETTER_P): Use it.
8739 (processor_type): Add PROCESSOR_SH5.
8740 * config/sh/sh.md: Conditionalize all expands, insns and
8741 splits to TARGET_SH1.
8743 (addsi3_compact): Renamed from...
8744 (addsi3): Now an expand.
8745 (addsi3_media, subsi3_media): New insns.
8746 (subsi3): Don't negate constants with SHmedia.
8748 * hooks.c: New file.
8749 * hooks.h: New file.
8750 * Makefile.in (HOOKS_H): New.
8751 (TARGET_DEF_H): Added $(HOOKS_H).
8752 (OBJS): Added hooks.o.
8753 (cfgcleanup.o, bb-reorder.o): Added target.h.
8754 (hooks.o): Added dependencies.
8755 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
8756 (TARGET_INITIALIZER): this.
8757 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
8758 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
8759 * bb-reorder.c: Include target.h.
8760 (reorder_basic_blocks): Skip if cannot modify jumps.
8761 * cfgcleanup.c: Include target.h.
8762 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
8764 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8766 * config/mips/mips.md (casesi_internal, casesi_internal_di):
8767 Protect jump delay slot instructions with .set noreorder and
8770 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8772 * config/mips/mips.md (casesi_internal_di): Calculate
8773 the index into the target offset table correctly.
8775 2002-02-08 Richard Henderson <rth@redhat.com>
8777 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
8778 * final.c (output_addr_const): Accept and discard SUBREG.
8779 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
8780 mark them unknown instead.
8781 (simplify_subtraction): Handle RTX_UNKNOWN.
8782 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
8784 2002-02-08 David Edelsohn <edelsohn@gnu.org>
8786 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
8788 2002-02-08 Richard Henderson <rth@redhat.com>
8790 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
8792 2002-02-08 Andreas Jaeger <aj@suse.de>
8794 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
8795 * config/i386/t-linux64: New file.
8797 2002-02-08 Jakub Jelinek <jakub@redhat.com>
8799 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
8800 * c-parse.in (compstmt): Clear last_expr_type.
8802 2002-02-07 Richard Henderson <rth@redhat.com>
8804 * loop.c (strength_reduce): Sink final_value when not
8807 2002-02-07 David O'Brien <obrien@FreeBSD.org>
8809 * config/sparc/freebsd.h: Fix mismatched spec {.
8811 2002-02-07 Richard Henderson <rth@redhat.com>
8813 * cfgrtl.c: Include recog.h and insn-config.h.
8814 (keep_with_call_p): Fix general_operand invocation.
8815 * Makefile.in (cfgrtl.o): Update dependencies.
8817 2002-02-07 Kazu Hirata <kazu@hxi.com>
8819 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
8820 comment. Accept HImode only if TARGET_H8300.
8822 2002-02-07 Eric Christopher <echristo@redhat.com>
8824 * config/mips/crtn.asm: Cleanup #ifdefs.
8826 2002-02-07 Eric Christopher <echristo@redhat.com>
8828 * config/mips/crti.asm: Add changes for mips16. mips16 uses
8829 register 7 as RA instead of $31.
8830 * config/mips/crtn.asm: Ditto.
8831 * config/mips/mips.c (mips_move_2words): Add case for
8832 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
8833 (compute_frame_size): Fix typo.
8834 (save_restore_insns): Ditto. Make documentation about using
8835 register $7 as return register more precise.
8836 (mips_expand_epilogue): Fix comment. Add code to work around not
8837 being able to add to the stack pointer directly.
8838 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
8839 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
8842 2002-02-07 Tom Rix <trix@redhat.com>
8844 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
8845 immediates in ldu and stdu DS opcode field.
8846 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
8847 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
8848 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
8850 2002-02-07 Jeff Sturm <jsturm@one-point.com>
8852 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
8853 offset for stack bias.
8855 2002-02-07 H.J. Lu <hjl@gnu.org>
8857 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
8859 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
8861 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
8863 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
8865 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
8866 * i386.c (x86_order_regs_for_local_alloc): New global function.
8867 * i386.h (REG_ALLOC_ORDER): CLeanup.
8868 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
8870 2002-02-07 Richard Henderson <rth@redhat.com>
8872 PR optimization/2463
8873 * alias.c (find_base_value): Recall base values for fixed hard regs.
8874 * loop.c (loop_regs_update): Don't use single_set on non-insns.
8876 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
8878 * config/mips/mips.md (define_delay) [mips16]: Adjust required
8881 2002-02-06 Richard Henderson <rth@redhat.com>
8884 * stmt.c (resolve_operand_name_1): Take more care with mixed
8885 named and unnamed operands.
8887 2002-02-06 Janis Johnson <janis187@us.ibm.com>
8888 Jan Hubicka <jh@suse.cz>
8890 * loop.c (remove_constant_addition): Avoid clobbering a shared
8893 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
8895 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
8896 * config/s390/t-linux64: New file.
8897 * config/s390/libgcc-glibc.ver: New file.
8899 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
8901 * config/s390/linux64.h: Delete file.
8902 * config/s390/s390x.h: New file.
8903 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
8904 as target header file.
8905 * config/s390/linux.h (TARGET_VERSION): Define depending on
8906 DEFAULT_TARGET_64BIT.
8907 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
8908 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
8909 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
8910 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
8911 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
8912 (EXTRA_SPEC): New define.
8913 * config/s390/s390.h (TARGET_VERSION): Define depending on
8914 DEFAULT_TARGET_64BIT.
8915 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
8917 2002-02-06 Jason Merrill <jason@redhat.com>
8919 * c-decl.c (finish_function): Warn about a non-void function with
8920 no return statement and no abnormal exit.
8921 (current_function_returns_abnormally): New variable.
8922 (start_function): Clear it.
8923 (struct c_language_function): Add returns_abnormally.
8924 (push_c_function_context): Save it.
8925 (pop_c_function_context): Restore it.
8926 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
8927 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
8928 an explicit return type.
8929 * c-tree.h: Declare current_function_returns_abnormally.
8930 (C_FUNCTION_IMPLICIT_INT): New macro.
8931 * c-typeck.c (build_function_call): Set it.
8932 (c_expand_return): Set current_function_returns_value even if the
8935 2002-02-06 Jakub Jelinek <jakub@redhat.com>
8938 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
8939 unsafe for reevaluation.
8941 2002-02-06 Jakub Jelinek <jakub@redhat.com>
8944 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
8945 EXPR_STMT, but COMPOUND_STMT, recurse into it.
8947 2002-02-06 Richard Henderson <rth@redhat.com>
8949 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
8950 be a general_operand. Dest for function value must be a pseudo.
8952 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8954 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
8955 as SYMBOL_REFs from the constant pool.
8957 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
8959 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
8960 passed by invisible reference.
8962 2002-02-05 Richard Henderson <rth@redhat.com>
8964 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
8966 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
8968 Implement using "base addresses" in insn operands as default.
8969 * config/mmix/mmix.c (mmix_conditional_register_usage): if
8970 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
8971 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
8972 used to read the rtx value.
8973 (mmix_target_asm_function_epilogue): Fix spacing.
8974 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
8975 (mmix_legitimate_address): Ditto.
8976 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
8977 should be loaded with a GETA insn. Don't allocate needless extra
8978 char for nul termination and fix misleading comment.
8979 (mmix_print_operand_address): Handle constants if
8980 TARGET_BASE_ADDRESSES.
8981 (mmix_output_register_setting): Use base addressing if
8982 TARGET_BASE_ADDRESSES and the number of insns is 3.
8983 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
8984 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
8985 to use R as constraint, add LDA to match s.
8986 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
8987 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
8988 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
8989 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
8990 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
8991 order with other fixed registers.
8992 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
8993 other parameter/call-clobbered registers.
8994 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
8995 -mbase-addresses, -mno-base-addresses.
8996 (MMIX Options): Ditto.
8998 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
9000 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
9002 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
9004 * config/rs6000/altivec.h: Change elem to _S_elem.
9006 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
9008 * config/netbsd.h (WCHAR_TYPE): Define.
9009 (WCHAR_TYPE_SIZE): Ditto.
9011 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
9012 (WCHAR_UNSIGNED): Ditto.
9013 (WCHAR_TYPE_SIZE): Ditto.
9015 * config/arm/netbsd.h: Likewise.
9016 * config/i386/netbsd-elf.h: Likewise.
9017 * config/i386/netbsd.h: Likewise.
9018 * config/m68k/netbsd-elf.h: Likewise.
9019 * config/m68k/netbsd.h: Likewise.
9020 * config/ns32k/netbsd.h: Likewise.
9021 * config/sparc/netbsd.h: Likewise.
9022 * config/vax/netbsd.: Likewise.
9024 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
9026 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
9027 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
9028 (TARGET_INITIALIZER): this.
9029 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
9030 (BITFIELD_NBYTES_LIMITED): Markup fix.
9031 * tree.h (default_ms_bitfield_layout_p): Declare.
9032 (record_layout_info): Added prev_field.
9033 * tree.c (default_ms_bitfield_layout_p): New fn.
9034 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
9035 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
9036 * stor-layout.c: Include target.h.
9037 (start_record_layout): Initialize prev_field.
9038 (place_field): Handle MS bit-field layout, and disregard
9039 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
9040 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
9041 * Makefile.in (stor-layout.o): Adjust dependencies.
9043 2002-02-05 Jason Merrill <jason@redhat.com>
9045 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
9047 2002-02-05 Andreas Jaeger <aj@suse.de>
9049 * crtstuff.c: Fix comments.
9051 2002-02-05 Richard Henderson <rth@redhat.com>
9054 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
9055 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
9058 * config/mips/mips.c (function_arg): Handle TImode.
9059 (function_arg_advance): Likewise.
9061 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
9063 * config/rs6000/altivec.h (vec_step_help): Rename to
9066 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
9068 * config/rs6000/altivec.h: Fix typos.
9070 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
9072 * config/arm/netbsd.h: Correct a comment.
9074 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
9076 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
9077 building void typed builtins.
9079 * config/rs6000/altivec.h (vec_ld*): Fix typos.
9080 (vec_step): Implement for C++.
9082 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9084 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
9086 2002-02-04 Richard Henderson <rth@redhat.com>
9088 * combine.c (nonzero_bits): Re-introduce special case for
9089 sp/fp/ap wrt REGNO_POINTER_ALIGN.
9091 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
9093 * doc/extend.texi: Warn about unsupported usage of altivec
9096 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
9097 (altivec_predicate_*): New.
9099 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
9100 Add C++ version of vec_*() functions.
9102 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
9103 (bdesc_2arg): Remove altivec predicates.
9104 (altivec_expand_builtin): Handle predicates.
9105 (altivec_init_builtins): Handle predicates.
9106 (altivec_expand_predicate_builtin): New.
9108 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9110 * pa.c (DO_FRAME_NOTES): Move forward.
9111 (store_reg): Revise handling of frame notes.
9112 (load_reg): Likewise.
9113 (set_reg_plus_d): Likewise.
9114 (hppa_expand_prologue): Likewise.
9115 (hppa_expand_epilogue): Likewise.
9117 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9119 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
9121 2002-02-04 Jakub Jelinek <jakub@redhat.com>
9123 PR c/4475, c++/3780:
9124 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
9125 * c-common.h (SWITCH_TYPE): Define.
9126 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
9127 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
9128 Rename spareness variable to sparseness.
9129 (expand_end_case_type): Renamed from expand_end_case, use orig_type
9130 if non-NULL instead of TREE_TYPE (orig_index).
9131 * tree.h (expand_end_case_type): Renamed from expand_end_case.
9132 (expand_end_case): Define using expand_end_case_type.
9133 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
9134 to expand_end_case_type.
9135 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
9137 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9139 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
9140 (BIGGEST_ALIGNMENT): Change to 128.
9142 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9144 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
9146 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
9148 * pa.md (call_internal_reg_64bit): Remove unused variable.
9150 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
9152 * config/arm/arm.h (machine_function): Add uses_anonymous_args
9154 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
9155 * config/arm/arm.c (current_function_anonymous_args): Delete,
9156 replace uses with cfun->machine->uses_anonymous_args.
9157 (arm_reorg): Do not reset uses_anonymous_args.
9159 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
9160 any geenral register.
9162 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
9164 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
9167 2002-02-04 Richard Henderson <rth@redhat.com>
9169 * combine.c (force_to_mode): Remove STACK_BIAS code.
9170 (nonzero_bits): Likewise. Replace sp/fp special case with
9171 REGNO_POINTER_ALIGN.
9173 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
9174 (HARD_FRAME_POINTER_REGNUM): New.
9175 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
9176 (FIXED_REGS, CALL_USED_REGS): Update.
9177 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
9178 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
9179 (HARD_REGNO_NREGS): Update for SFP.
9180 (STACK_POINTER_OFFSET): Include bias here ...
9181 (FIRST_PARM_OFFSET): ... not here.
9182 (STACK_BIAS): Remove.
9183 (INIT_EXPANDERS): New.
9184 (STARTING_FRAME_OFFSET): Do not include bias.
9185 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
9186 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
9187 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
9188 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
9189 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
9190 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
9191 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
9192 (MUST_SAVE_REGISTER): Likewise.
9193 (sparc_flat_function_prologue): Likewise.
9194 (sparc_flat_function_epilogue): Likewise.
9195 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
9196 (sparc_init_modes): SFP is GENERAL_REGS.
9197 (sparc_builtin_saveregs): SFP does not have bias applied.
9199 2002-02-04 Richard Henderson <rth@redhat.com>
9201 * config/alpha/alpha.c (current_function_is_thunk): Don't check
9202 current_function_is_thunk.
9203 (alpha_sa_mask): Distinguish between current_function_is_thunk
9204 called from ASM_OUTPUT_MI_THUNK and not.
9205 (alpha_does_function_need_gp): Thunks always need gp.
9206 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9207 (alpha_output_mi_thunk_osf): New.
9208 * config/alpha/alpha-protos.h: Update.
9209 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
9211 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
9213 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
9214 function types, not when they're taken away.
9216 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
9218 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
9219 CODE_LABEL and jump table when replacing a table jump with a
9222 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9224 * config/s390/s390-protos.h (legitimize_la_operand,
9225 s390_secondary_input_reload_class, s390_plus_operand,
9226 s390_expand_plus_operand): Add prototypes.
9228 config/s390/s390.c (s390_secondary_input_reload_class,
9229 s390_plus_operand, s390_expand_plus_operand): New functions.
9231 (struct s390_address): New member 'pointer'.
9232 (s390_decompose_address): Compute it.
9233 (legitimate_la_operand_p): Use it.
9234 (legitimize_la_operand): New function.
9235 (movti, movdi, movdf splitters): Call it.
9237 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
9238 (PREDICATE_CODES): Add s390_plus_operand.
9240 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
9241 (la_ccclobber): Allow GENERAL_REGS as output operand.
9243 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
9244 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
9245 (*la_64, *la_31, reload_indi, reload_insi): ... these.
9247 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9249 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
9250 register names for regular asm () construct.
9252 2002-02-04 Jakub Jelinek <jakub@redhat.com>
9254 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
9257 2002-02-04 Jakub Jelinek <jakub@redhat.com>
9259 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
9262 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
9264 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
9265 constant pool to be identical by string address and index.
9267 2002-02-04 Anthony Green <green@redhat.com>
9269 * output.h (SECTION_OVERRIDE): Define.
9270 * varasm.c (named_section): Obey SECTION_OVERRIDE.
9272 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
9274 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
9275 by existing arm*-*-netbsd* (a.out) target.
9276 (ns32k-*-netbsdelf*): Likewise.
9277 (sparc-*-netbsdelf*): Likewise.
9278 (vax-*-netbsdelf*): Likewise.
9280 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
9282 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
9283 headers and libobjc headers.
9285 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
9287 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
9288 (_mingw.h): Remove duplicate include.
9290 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
9292 * config.gcc: Set cpu_type to m68k for 68010, as well.
9293 (m68010-*-netbsdelf*): New...
9294 (m68k*-*-netbsdelf*): ...targets.
9295 * config/m68k/netbsd-elf.h: New file.
9297 2002-02-02 Kazu Hirata <kazu@hxi.com>
9299 * config/h8300/h8300.c (hand_list): Move inside function_arg.
9301 2002-02-02 Kazu Hirata <kazu@hxi.com>
9303 * config/h8300/h8300.c (h8_push_ops): Move inside
9305 (h8_pop_ops): Likewise.
9306 (h8_move_ops): Likewise.
9308 2002-02-02 Kazu Hirata <kazu@hxi.com>
9310 * config/h8300/h8300.c (os_task): Make it static.
9311 (monitor): Likewise.
9312 (pragma_saveall): Likewise.
9314 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
9316 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
9317 constant is a valid sign-extension for Pmode.
9319 2002-02-02 Kazu Hirata <kazu@hxi.com>
9321 * config/h8300/h8300.c: Fix formatting.
9323 2002-02-02 Kazu Hirata <kazu@hxi.com>
9325 * config/h8300/h8300.md: Fix formatting.
9327 2002-02-02 Kazu Hirata <kazu@hxi.com>
9329 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
9330 predicates of operands[1]. Split the patterns for each
9333 2002-02-02 Kazu Hirata <kazu@hxi.com>
9335 * config/h8300/h8300.md (xor patterns): Tighten the predicates
9336 of operands[1] to register_operand.
9338 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
9340 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
9341 * cpphash.c (_cpp_init_hashtable): Similarly.
9342 * cppinit.c (cpp_create_reader): Default the signed_char flag.
9343 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
9344 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
9345 (cpp_handle_option): Handle the new options.
9346 * cpplex.c (cpp_interpret_charconst): Use new flag.
9347 * cpplib.h (struct cpp_options): New member signed_char.
9348 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
9349 (cpp_options): Handle -fsigned-char and -funsigned-char.
9350 (static_specs): Remove signed_char_spec.
9351 (do_spec1): Don't handle %c.
9352 * system.h: Poison SIGNED_CHAR_SPEC.
9353 * tradcif.y (yylex): Use flag_signed_char.
9354 * tradcpp.h (flag_signed_char): New.
9355 * tradcpp.c (flag_signed_char): New.
9356 (main): Handle new command-line options.
9357 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
9359 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
9360 * avr/avr.h: Remove old comments.
9361 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
9362 (CC1_SPEC): Pass -fsigned-char if -mic*.
9363 (SIGNED_CHAR_SPEC): Remove.
9365 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
9367 2002-02-01 Eric Christopher <echristo@redhat.com>
9369 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
9370 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
9371 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
9372 (ASM_OUTPUT_REG_POP): Ditto.
9374 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
9376 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
9379 2002-02-02 Jakub Jelinek <jakub@redhat.com>
9381 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
9383 2002-02-02 Jakub Jelinek <jakub@redhat.com>
9386 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
9389 2002-02-01 Janis Johnson <janis187@us.ibm.com>
9391 * cfganal.c: Include tm_p.h.
9392 (keep_with_call_p): Fix the test that determines if a register holds
9393 the return value of a call.
9395 2002-02-01 DJ Delorie <dj@redhat.com>
9397 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
9398 we are given conflicting registers, switch to the other one we
9399 had allocated for us.
9400 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
9401 as TImode so we know when the "other" register is available.
9403 2002-02-01 David O'Brien <obrien@FreeBSD.org>
9405 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
9408 2002-02-01 Janis Johnson <janis187@us.ibm.com>
9410 * cfganal.c (keep_with_call_p): New function.
9411 (flow_call_edges_add): Prevent splitting a block between a call and
9412 a single-set instruction that should be kept in the same block.
9414 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
9416 * doc/install.texi (avr): Update outdated URL.
9418 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
9420 * config/stormy16/stormy16.md (pushqi): New.
9424 (movhi): Remove stack operands.
9426 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
9427 nonimmediate_nonstack_operand.
9428 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
9430 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
9433 2002-01-31 Jason Merrill <jason@redhat.com>
9435 * Makefile.in (c-parse.c): Handle .output file.
9436 * objc/Make-lang.in (objc-parse.c): Likewise.
9438 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
9440 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
9441 the -me[lb] option is given. Don't output the default flag
9444 2002-01-31 Zack Weinberg <zack@codesourcery.com>
9446 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
9447 the primary source file; this has not been done yet.
9448 * c-decl.c (c_expand_body): Reset input_filename from
9449 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
9451 2002-01-31 Kazu Hirata <kazu@hxi.com>
9453 * rtlanal.c (subreg_regno_offset): Do not use
9454 SUBREG_REGNO_OFFSET.
9455 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
9456 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
9458 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
9460 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
9461 version rather than GNATS version in --version output.
9463 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
9465 * ifcvt.c (noce_process_if_block): Make a copy of the destination
9466 when copying back from a temporary.
9468 2002-01-30 Richard Henderson <rth@redhat.com>
9470 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
9471 and new_dest are the same.
9473 2002-01-30 Richard Henderson <rth@redhat.com>
9476 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
9477 * rtl.c (note_insn_name): Update.
9478 * emit-rtl.c (remove_unnecessary_notes): Kill it.
9479 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
9480 to perform loop rotation.
9481 (expand_exit_loop_top_cond): New.
9482 * tree.h (expand_exit_loop_top_cond): Declare it.
9483 * c-semantics.c (genrtl_while_stmt): Use it.
9484 (genrtl_for_stmt): Likewise.
9486 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
9488 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
9489 arguments to 64-bit boundaries on 64-bit ABIs.
9491 2002-01-30 Steve Ellcey <sje@cup.hp.com>
9493 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
9495 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
9497 * c-decl.c (grokdeclarator): Handle type being a typedef for an
9500 2002-01-30 David O'Brien <obrien@FreeBSD.org>
9502 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
9503 * config/sparc/sparc_bi.h: Remove file.
9504 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
9506 2002-01-30 Richard Henderson <rth@redhat.com>
9508 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
9510 2002-01-30 Zack Weinberg <zack@codesourcery.com>
9512 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
9514 2002-01-30 Jason Merrill <jason@redhat.com>
9516 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
9517 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
9518 (reg_save): Use DW_CFA_offset_extended_sf instead.
9520 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
9522 2002-01-29 Jakub Jelinek <jakub@redhat.com>
9524 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
9527 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
9529 * rs6000.md ("*call_value_local32"): Remove constraints.
9530 ("*call_value_local64"): Same.
9531 ("*call_value_indirect_nonlocal_aix32"): Same.
9532 ("*call_value_nonlocal_aix32"): Same.
9533 ("*call_value_indirect_nonlocal_aix64"): Same.
9534 ("*call_value_nonlocal_aix64"): Same.
9535 ("*call_value_nonlocal_sysv"): Same.
9537 2002-01-29 Richard Henderson <rth@redhat.com>
9539 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
9541 2002-01-29 Richard Henderson <rth@redhat.com>
9543 * expr.c (force_operand): Ignore flag_pic for detecting pic
9545 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
9546 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
9547 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
9548 instead of open-coded loop.
9549 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
9550 be fixed when in use.
9552 2002-01-29 Richard Henderson <rth@redhat.com>
9554 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
9555 * sched-rgn.c (propagate_deps): Update them.
9556 * sched-deps.c (sched_analyze_insn): Update them. Flush the
9557 clobbers list when either gets too long.
9559 2002-01-29 Jakub Jelinek <jakub@redhat.com>
9561 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
9562 and INDEX_REGS the same as GENERAL_REGS.
9563 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
9565 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
9567 * tree.c (build_nonstandard_integer_type): Correct prototype.
9569 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
9571 * config/s390/s390.md (movstrsico, movstrdix_64,
9572 movstrsix_31): Remove, replace by ...
9573 (movstrdi_short, movstrsi_short, movstrdi_long,
9574 movstrsi_long): ... these. New.
9575 (movstrdi, movstrsi): Adapt.
9577 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
9578 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
9579 Remove unnecessary CC clobber.
9580 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
9581 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
9583 (divmoddi4): Don't partially initialize TImode register.
9585 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
9587 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
9589 2002-01-29 Richard Henderson <rth@redhat.com>
9591 * flow.c (print_rtl_and_abort): Remove.
9592 (print_rtl_and_abort_fcn): Remove.
9593 (verify_local_live_at_start): Use dump_bb instead.
9594 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
9595 (verify_wide_reg_1): Return 2 on mode test failure.
9597 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
9599 PR c/3325, c/3326, c/2511, c/3347
9600 * c-decl.c (enum_decl_context): Remove BITFIELD.
9601 (grokdeclarator): Take bitfield width as an input.
9602 Ensure bitfields are given the correct type. Perform
9603 bitfield width validation with build_bitfield_integer_type
9604 rather than waiting for finish_struct.
9605 (grok_typename, grok_typename_in_parm_context, start_decl,
9606 push_parmdecl, grokfield, start_function): Update calls to
9608 (build_bitfield_integer_type): New function.
9609 (finish_struct): Move bitfield validation to grokdeclarator
9610 and build_bitfield_integer_type.
9611 * tree.c (build_nonstandard_integer_type): New function.
9612 * tree.h (build_nonstandard_integer_type): New prototype.
9614 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
9616 2002-01-29 Jakub Jelinek <jakub@redhat.com>
9619 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
9620 don't ignore unrecognized -W* options.
9621 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
9622 * cpplib.h (cpp_handle_option): Adjust prototype.
9623 * c-decl.c (c_decode_options): Pass 0 as last argument to
9627 * gcc.c (cpp_unique_options): Split from cpp_options.
9628 (cpp_options): Source cpp_unique_options.
9629 (default_compilers): Use cpp_unique_options instead of cpp_options
9630 when used together with cc1_options.
9631 (static_specs): Add cpp_unique_options.
9632 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
9633 when used together with cc1_options.
9635 2002-01-29 Kazu Hirata <kazu@hxi.com>
9637 * config/h8300/h8300-protos.h: Update the prototype of
9639 * config/h8300/h8300.c (output_a_shift): Remove an unused
9640 argument 'insn'. Remove redundant code.
9641 * config/h8300/h8300.md: Adust to the new prototype of
9644 2002-01-29 Kazu Hirata <kazu@hxi.com>
9646 * config/h8300/h8300-protos.h: Update the prototypes of
9647 emit_a_rotate and expand_a_rotate.
9648 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
9649 first argument to 'enum rtx_code'.
9650 (expand_a_rotate): Likewise.
9652 2002-01-28 Kazu Hirata <kazu@hxi.com>
9654 * config/h8300/h8300-protos.h: Update the prototype of
9656 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
9658 * config/h8300/h8300.md: Adjust to the new prototype.
9660 2002-01-28 Kazu Hirata <kazu@hxi.com>
9662 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
9665 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
9667 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
9668 is a fixed register before returning pic_offset_table_rtx.
9669 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
9670 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
9672 2002-01-28 Jason Merrill <jason@redhat.com>
9674 * dwarf2.h: Sync with src version.
9676 2002-01-28 Paul Koning <pkoning@equallogic.com>
9678 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
9680 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
9681 * doc/extend.texi (__builtin_prefetch): Update documentation:
9682 first argument is now const void ptr.
9684 2002-01-28 Kazu Hirata <kazu@hxi.com>
9686 * config/h8300/h8300-protos.h: Remove an unused prototype.
9688 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
9690 * toplev.c (lang_independent_init): Round up identifier size.
9692 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
9694 * config.gcc: Revert previous change.
9696 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
9698 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
9700 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
9702 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
9703 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
9704 other non-elf netbsd config frags.
9705 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
9706 collect2 will does that.
9707 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
9708 shared-lib frobbing will work.
9710 2002-01-28 Kazu Hirata <kazu@hxi.com>
9712 * config/h8300/h8300.h: Fix formatting.
9713 * config/h8300/h8300.md: Likewise.
9715 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
9717 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
9718 the old, removed AAA_standards fix.
9719 * fixinc/fixincl.x: Rebuilt.
9721 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
9723 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
9724 atexit call in crtbegin, hooked in after call to frame_dummy;
9725 register EH before registering __fini__start.
9727 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
9729 * config/rs6000/altivec.h: Remove spurious semicolons.
9731 2002-01-27 Kazu Hirata <kazu@hxi.com>
9733 * config/h8300/h8300.md: Replace dead bit extraction patterns
9734 with ones that work.
9736 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9738 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
9739 if not STRICT_ALIGNMENT.
9740 * rtl.h (MEM_ALIGN): Likewise.
9742 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
9744 * doc/invoke.texi (-fdump-translation-unit): Revert this
9745 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
9747 2002-01-27 Kazu Hirata <kazu@hxi.com>
9749 * config/h8300/h8300.md (define_constants): New.
9750 (anonymous patterns) Use defined constants appropriately.
9752 2002-01-27 Kazu Hirata <kazu@hxi.com>
9754 * config/h8300/h8300.c (function_arg): Remove redundant code.
9756 2002-01-26 Richard Henderson <rth@redhat.com>
9758 * sched-deps.c (reg_pending_uses_head): New.
9759 (reg_pending_barrier): Rename from reg_pending_sets_all.
9760 (find_insn_list): Don't mark inline.
9761 (find_insn_mem_list): Remove.
9762 (add_dependence_list, add_dependence_list_and_free): New.
9763 (flush_pending_lists): Replace only_write param with separate
9764 for_read and for_write parameters. Update all callers. Use
9765 add_dependence_list_and_free.
9766 (sched_analyze_1): Do not add reg dependencies here; just set
9767 the pending bits. Use add_dependence_list.
9768 (sched_analyze_2): Likewise.
9769 (sched_analyze_insn): Replace schedule_barrier_found with
9770 reg_pending_barrier. Add all dependencies for pending reg
9771 uses, sets, and clobbers.
9772 (sched_analyze): Don't add reg dependencies for calls, just
9773 set pending bits. Use regs_invalidated_by_call. Treat
9774 sched_before_next_call as a normal list, not a fake insn.
9775 (init_deps): No funny init for sched_before_next_call.
9776 (free_deps): Free pending mems lists. Don't zero reg_last.
9777 (init_deps_global): Init reg_pending_uses.
9778 (finish_deps_global): Free it.
9779 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
9780 (find_insn_mem_list): Remove.
9781 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
9782 (propagate_deps): Use them. Zero temp mem lists.
9784 2002-01-26 Richard Henderson <rth@redhat.com>
9786 * Makefile.in (CRTSTUFF_CFLAGS): New.
9787 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
9788 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
9789 crtstuff.c instead of alpha assembly version.
9790 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
9791 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
9792 not FORCE_{INIT,FINI}_SECTION_ALIGN.
9793 (__do_global_dtors_aux): Mark used.
9794 (frame_dummy, __do_global_ctors_aux): Mark used.
9795 (fini_dummy, init_dummy): Remove.
9797 * config/alpha/crtbegin.asm: Remove file.
9798 * config/alpha/crtend.asm: Remove file.
9799 * config/alpha/t-crtbe: Remove file.
9800 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
9801 (LINK_EH_SPEC): New.
9803 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
9804 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
9805 calling constructors.
9806 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
9808 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
9809 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
9810 CRT_END_INIT_DUMMY hack.
9811 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
9812 FORCE_{INIT,FINI}_SECTION_ALIGN.
9814 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
9815 FORCE_{INIT,FINI}_SECTION_ALIGN.
9817 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
9818 invocation sequence.
9819 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
9821 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
9822 (FORCE_CODE_SECTION_ALIGN): New.
9824 2002-01-26 Richard Henderson <rth@redhat.com>
9826 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
9828 2002-01-26 Richard Henderson <rth@redhat.com>
9830 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
9831 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
9833 2002-01-26 Kazu Hirata <kazu@hxi.com>
9835 * config/h8300/h8300.md: Remove bit extraction patterns that
9836 cannot be triggered.
9837 Restrict each bit extraction pattern to a variant on which the
9840 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
9842 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
9844 2002-01-26 Kazu Hirata <kazu@hxi.com>
9846 * config/h8300/h8300.md: Remove bit test patterns that cannot
9848 Restrict each bit test pattern to a variant on which the
9851 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9853 * builtins.c (expand_builtin_strncat): Remove redundant check for
9856 2002-01-25 David O'Brien <obrien@FreeBSD.org>
9858 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
9860 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
9863 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
9865 * dbxout.c (dbxout_init): Use assemble_name rather than just
9866 stripping off the first character.
9867 (dbxout_source_file): Likewise.
9869 2002-01-25 DJ Delorie <dj@redhat.com>
9871 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
9872 using rtx_equal_p, not by comparing pointers.
9874 2002-01-25 Steve Ellcey <sje@cup.hp.com>
9876 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
9877 for PIC_OFFSET_TABLE_REGNUM.
9878 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
9880 2002-01-25 David O'Brien <obrien@FreeBSD.org>
9882 * config.gcc (x86_64-*-freebsd*): New target.
9883 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
9885 (i[34567]86-*-freebsd*): Don't include svr4.h.
9886 * config/i386/freebsd64.h: New file.
9888 2002-01-25 Douglas B Rupp <rupp@gnat.com>
9890 * config/alpha/x-vms (version): Make static.
9892 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
9893 in previous checkin.
9895 * Makefile.in (install-headers-cp): New target.
9896 * config.gcc (alpha-dec-*vms*): Install headers with
9899 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
9901 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
9904 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9906 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
9907 of compare_tree_int.
9908 (expand_builtin_strncat): Likewise.
9909 * c-decl.c (finish_struct): Use tree_low_cst.
9910 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
9911 * tree.c (compare_tree_int): Likewise.
9913 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
9915 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
9916 adjustments even if they are implemented by more than two insns.
9918 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
9920 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
9921 * df.h (struct ref): Kill B.
9922 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
9924 * basic-block.h (PROP_EQUAL_NOTES): New flag.
9925 * flow.c (propagate_one_insn): Use it.
9926 (mark_used_regs): Handle NIL.
9928 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
9930 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
9933 2002-01-25 David Edelsohn <edelsohn@gnu.org>
9935 * rs6000.md (prefetch): Make address V4SI mode so that the address
9936 is restricted to legitimate form for instruction.
9938 2002-01-25 Bob Wilson <bob.wilson@acm.org>
9940 * doc/install.texi (xtensa-*-elf): New target.
9941 (xtensa-*-linux*): New target.
9942 * doc/contrib.texi: Add myself.
9944 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
9946 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
9947 purpose register to hold an SImode (or smaller) value.
9949 2002-01-25 Jakub Jelinek <jakub@redhat.com>
9951 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
9953 * crtstuff.c: Likewise.
9955 2002-01-25 Kazu Hirata <kazu@hxi.com>
9957 * config/h8300/h8300.md (negation patterns): Tighten
9958 predicates to register_operand.
9960 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
9962 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
9965 * builtins.c (expand_builtin_prefetch): Same.
9967 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9969 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
9972 2002-01-24 Kazu Hirata <kazu@hxi.com>
9974 * config/h8300/h8300.c (print_operand): Remove support for
9975 operand character 'A'.
9976 * config/h8300/h8300.md (three anonymous patterns): Replace
9977 operand character 'A' with either 'T' or 'S'.
9979 2002-01-24 Kazu Hirata <kazu@hxi.com>
9981 * config/h8300/h8300.c (print_operand): Remove support for
9982 operand character 'U'.
9984 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
9986 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
9988 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
9990 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
9991 values to be assigned to the stack pointer.
9993 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
9995 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
9996 to const_double needs to be done right for big-endian systems.
9998 2002-01-24 Jason Merrill <jason@redhat.com>
10001 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
10002 to can_throw_internal.
10004 2002-01-23 Richard Henderson <rth@redhat.com>
10006 * fold-const.c (fold): Change UINT_MAX test to check vs precision
10007 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
10009 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10011 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
10012 (symGOT2reg): Use them, then set as GOT value as unchanging.
10013 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
10014 as a temporary, if possible.
10015 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
10016 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
10018 2002-01-23 Kazu Hirata <kazu@hxi.com>
10020 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
10021 accept to accept 0x80 as operands[2].
10023 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10025 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
10027 2002-01-23 Richard Henderson <rth@redhat.com>
10029 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
10031 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
10033 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
10034 (parmlist_or_identifiers_1): Verify that only a parmlist follows
10037 2002-01-23 Richard Henderson <rth@redhat.com>
10039 * expr.c (move_by_pieces_1): Extend size before negation.
10041 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
10042 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
10043 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
10044 * config/m68k/t-m68kelf: Likewise.
10046 2002-01-23 Bob Wilson <bob.wilson@acm.org>
10048 * config/xtensa/elf.h: New file.
10049 * config/xtensa/lib1funcs.asm: New file.
10050 * config/xtensa/lib2funcs.S: New file.
10051 * config/xtensa/linux.h: New file.
10052 * config/xtensa/t-xtensa: New file.
10053 * config/xtensa/xtensa-config.h: New file.
10054 * config/xtensa/xtensa-protos.h: New file.
10055 * config/xtensa/xtensa.c: New file.
10056 * config/xtensa/xtensa.h: New file.
10057 * config/xtensa/xtensa.md: New file.
10058 * config.gcc (xtensa-*-elf*): New target.
10059 (xtensa-*-linux*): New target.
10060 * cse.c (canon_hash): Compare rtx pointers instead of register
10061 numbers. This is required for the Xtensa port.
10062 * integrate.c (copy_insn_list): Handle case where the static
10063 chain is in memory and the memory address has to be copied to
10065 * doc/invoke.texi (Option Summary): Add Xtensa options.
10066 (Xtensa Options): New node.
10067 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
10069 2002-01-23 Zack Weinberg <zack@codesourcery.com>
10071 * diagnostic.c (internal_error): Do ICE suppression only
10072 when ENABLE_CHECKING is not defined.
10074 * c-typeck.c (require_complete_type): Return error_mark_node
10075 if type is error_mark_node.
10077 2002-01-23 Janis Johnson <janis187@us.ibm.com>
10079 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
10080 -Os and issue a warning.
10082 2002-01-23 Zack Weinberg <zack@codesourcery.com>
10084 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
10085 current (lack of) need for host configuration by hand.
10087 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
10088 references. Documentation of some target macros moved from
10089 hostconfig.texi to tm.texi.
10091 2002-01-23 Will Cohen <wcohen@redhat.com>
10093 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
10096 2002-01-23 Kazu Hirata <kazu@hxi.com>
10098 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
10101 2002-01-23 Jason Merrill <jason@redhat.com>
10103 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
10105 * function.c (assign_parms): Don't put args of inline functions
10106 into registers when not optimizing.
10108 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
10110 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
10111 (prologue_use): New pattern.
10112 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
10113 preference to gen_rtx_USE.
10114 (thumb_expand_prologue): Use gen_prologue_use in preference to
10116 (thumb_expand_epilogue): Use gen_prologue_use in preference to
10119 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
10121 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
10123 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
10126 * doc/extend.texi: Correct documentation of __alignof__.
10128 2002-01-22 Zack Weinberg <zack@codesourcery.com>
10130 * params.h: Rename arguments of DEFPARAM so that it will be
10131 recognized as a translation keyword.
10133 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
10135 * extend.texi: Document altivec functions.
10136 Fix N-bit adjectives in X86 builtin documentation.
10138 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
10140 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
10141 auto_inc_dec values.
10143 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
10145 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
10147 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
10149 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
10151 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
10153 2002-01-22 Richard Henderson <rth@redhat.com>
10155 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
10156 copy_insn not copy_rtx.
10158 2002-01-23 Alan Modra <amodra@bigpond.net.au>
10160 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
10161 "nonzero" as that might add "1" bits. Ensure "constop" is
10162 properly sign extened.
10163 (force_to_mode): Tweak for sign extended constop.
10165 2002-01-22 Richard Henderson <rth@redhat.com>
10167 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
10168 for_each_rtx instead of assuming we're already looking at the MEM.
10169 (split_small_symbolic_mem_operand): Likewise.
10170 * config/alpha/alpha.h (PREDICATE_CODES): Update.
10171 * config/alpha/alpha.md (small symbolic memory splitters): Update.
10173 2002-01-22 Richard Henderson <rth@redhat.com>
10175 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
10176 sequence number for the literal.
10177 (divmoddi_internal_er): Likewise.
10179 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
10182 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
10183 in LIBICONV variable.
10184 * configure: Regenerated.
10186 2002-01-22 Krister Walfridsson <cato@df.lth.se>
10188 * dependence.c (build_def_use): Remove array_idx.
10190 * dwarfout.c (last_filename): Remove.
10191 (output_compile_unit_die): Remove last_filename.
10193 2002-01-22 Roger Sayle <roger@eyesopen.com>
10194 Richard Henderson <rth@redhat.com>
10197 * fold-const.c (fold): Optimize unsigned comparisons against
10198 UINT_MAX (and similar unsigned constants).
10200 2002-01-22 Janis Johnson <janis187@us.ibm.com>
10202 * Makefile.in (loop.o): Depend on OPTABS_H.
10203 * loop.c (emit_prefetch_instructions): Check the prefetch operand
10204 against the predicate.
10207 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
10208 for the address operand.
10210 2002-01-22 Richard Henderson <rth@redhat.com>
10212 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
10214 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
10217 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
10218 preprocessor flags.
10220 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
10222 * config.gcc (x86_64-*-netbsd*): New target.
10223 * config/i386/netbsd64.h: New file.
10225 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
10227 * regrename.c (kill_value): Fix typo.
10229 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
10231 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
10233 * config/rs6000/rs6000.h: Same.
10235 * function.c (instantiate_virtual_regs): Remove
10236 STARTING_FRAME_PHASE.
10237 (assign_stack_local_1): Same.
10238 Calculate frame phase.
10240 2002-01-22 Nick Clifton <nickc@redhat.com>
10242 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
10243 variable declaration to outer scope in order to simplify
10245 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
10246 arm_hard_regno_mode_ok.
10247 * config/arm/arm-protos.h: Add a prototype for
10248 arm_hard_regno_mode_ok.
10249 * config/arm/arm.c (soft_df_operand): Remove now redundant
10250 check for DImode values using IP_REGNUM.
10251 (nonimmediate_soft_df_operand): Remove now redundant check for
10252 DImode values using IP_REGNUM.
10253 (arm_hard_regno_mode_ok): New function. New check: make sure
10254 that DImode values are not stored in IP_REGNUM.
10256 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
10258 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
10260 2002-01-22 Jason Merrill <jason@redhat.com>
10262 * c-semantics.c (genrtl_compound_stmt): Only check nesting
10263 consistency if this COMPOUND_STMT is scoped.
10265 2002-01-22 Kazu Hirata <kazu@hxi.com>
10267 * predict.c: Fix formatting.
10268 * print-tree.c: Likewise.
10269 * protoize.c: Likewise.
10270 * real.h: Likewise.
10272 * sbitmap.h: Likewise.
10273 * scan.c: Likewise.
10274 * sched-deps.c: Likewise.
10275 * sched-vis.c: Likewise.
10276 * sdbout.c: Likewise.
10277 * sibcall.c: Likewise.
10279 * ssa-ccp.c: Likewise.
10280 * ssa-dce.c: Likewise.
10281 * stmt.c: Likewise.
10282 * stor-layout.c: Likewise.
10283 * system.h: Likewise.
10285 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10287 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
10288 if fits in bounds of base type.
10290 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
10291 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
10292 (add_bound_info, default): If can't find a context, make a
10294 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
10296 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
10298 * c-typeck.c (parser_build_binary_op): If result from
10299 build_binary_op is ERROR_MARK just return error_mark_node without
10300 further processing.
10302 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
10304 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
10305 Split a.out-specific bits into...
10306 * config/netbsd-aout.h: ...this.
10307 * config/netbsd-elf.h: New file.
10308 * config/alpha/netbsd-elf.h: Remove.
10309 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
10310 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
10311 (STARTFILE_SPEC): Remove redundant definition.
10312 (ENDFILE_SPEC): Likewise.
10313 (LINK_SPEC): Likewise.
10314 (CPP_SPEC): Likewise.
10315 (ASM_SPEC): Likewise.
10316 (LIB_SPEC): Likewise.
10317 (SWITCH_TAKES_ARG): Likewise.
10318 (TARGET_MEM_FUNCTIONS): Likewise.
10319 (CPP_PREDEFINES): Redefine.
10320 (ASM_FINAL_SPEC): Remove redefinition.
10321 (ASM_COMMENT_START): Redefine.
10322 (FUNCTION_PROFILER): Define.
10323 (TARGET_VERSION): Redefine.
10324 Comment and formatting cleanup.
10325 * config/i386/netbsd.h: Include <netbsd-aout.h>.
10326 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
10327 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
10328 big- or little-endian.
10329 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
10330 * config.gcc (*-*-netbsd*): Add definitions common to all
10332 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
10333 gnu_ld definitions. Add netbsd-elf.h to and remove
10334 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
10335 tmake_file, and don't lose previous tmake_file contents.
10336 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
10337 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
10338 gnu_ld definitions. Add netbsd-elf.h to tm_file.
10339 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
10340 (mipsel-*-netbsd*): Rename this to...
10341 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
10342 mips/little.h to tm_file for mips*el-*.
10343 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
10344 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
10345 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
10347 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
10349 * pa-protos.h (reg_before_reload_operand): New function prototype.
10350 * pa.c (reg_before_reload_operand): New function implementation.
10351 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
10352 contraints to "*m".
10354 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10356 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
10358 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
10360 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
10361 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
10362 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
10363 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
10364 (ENDFILE_SPEC): Undefine.
10365 (STARTFILE_SPEC): Redefine for PA.
10367 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10369 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
10371 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
10373 * config.gcc: Add entries to supported PowerPC --with-cpu
10376 2002-01-21 Jakub Jelinek <jakub@redhat.com>
10378 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
10379 true for 64-bit mode only SSE registers in 32-bit mode.
10381 2002-01-21 Kazu Hirata <kazu@hxi.com>
10383 * unwind-dw2.c: Fix formatting.
10384 * unwind-dw2-fde.c: Likewise.
10385 * unwind-dw2-fde.h: Likewise.
10386 * unwind-pe.h: Likewise.
10387 * varasm.c: Likewise.
10388 * varray.h: Likewise.
10390 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
10392 Remove workaround for register stack overwrite bug in mmix.
10393 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
10394 support for TARGET_REG_STACK_FILL_BUG.
10395 * config/mmix/mmix.h: Remove member has_call_without_parameters.
10396 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
10398 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
10399 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
10400 -mno-reg-stack-fill-bug-workaround.
10401 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
10402 machine member has_call_without_parameters.
10403 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
10404 -mreg-stack-fill-bug-workaround and
10405 -mno-reg-stack-fill-bug-workaround.
10406 (MMIX Options): Ditto.
10408 2002-01-21 Kazu Hirata <kazu@hxi.com>
10410 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
10412 Remove redundant code.
10414 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
10416 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
10417 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10418 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10419 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
10420 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
10421 out target macro definitions and non-target-specific comments
10422 mostly taken from old versions of the manual.
10424 2002-01-20 Kazu Hirata <kazu@hxi.com>
10426 * config/h8300/h8300.h: Fix comment formatting.
10427 * config/ia64/aix.h: Likewise.
10428 * config/ia64/ia64-protos.h: Likewise.
10429 * config/ia64/ia64.c: Likewise.
10430 * config/ia64/ia64.h: Likewise.
10431 * config/ia64/ia64intrin.h: Likewise.
10432 * config/ia64/linux.h: Likewise.
10433 * config/ia64/unwind-aix.c: Likewise.
10434 * config/ia64/unwind-ia64.c: Likewise.
10436 2002-01-20 Kazu Hirata <kazu@hxi.com>
10438 * config/h8300/h8300.c: Revise comments about shift code.
10440 2002-01-20 Kazu Hirata <kazu@hxi.com>
10442 * config/h8300/h8300.c (function_arg): Update a comment.
10444 2002-01-20 Kazu Hirata <kazu@hxi.com>
10446 * config/h8300/h8300.md: Update the comments at the beginning
10449 2002-01-20 Kazu Hirata <kazu@hxi.com>
10451 * config/i370/i370.c: Fix comment formatting.
10452 * config/i370/i370.h: Likewise.
10453 * config/i370/i370.md: Likewise.
10454 * config/i370/linux.h: Likewise.
10456 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10458 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
10460 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
10461 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
10462 in incomplete case.
10464 2002-01-20 Graham Stott <grahams@redhat.com>
10466 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
10468 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
10470 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
10472 2002-01-19 Tom Rix <trix@redhat.com>
10474 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
10476 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
10478 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
10480 * function.c (assign_stack_local_1): Adjust x_frame_offset with
10481 STARTING_FRAME_PHASE.
10482 (STARTING_FRAME_PHASE): New.
10483 (instantiate_virtual_regs): Check saneness of
10484 STARTING_FRAME_PHASE.
10486 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
10488 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
10490 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
10492 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
10494 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
10495 be used for bootstrapping GCC 3.0.
10497 2002-01-18 Kazu Hirata <kazu@hxi.com>
10499 * config/h8300/h8300.md: Fix an insn length.
10501 2002-01-18 Kazu Hirata <kazu@hxi.com>
10503 * bitmap.h: Fix comment formatting.
10504 * combine.c: Likewise.
10505 * cppfiles.c: Likewise.
10506 * c-pragma.h: Likewise.
10507 * c-typeck.c: Likewise.
10509 * dwarf2out.c: Likewise.
10510 * function.c: Likewise.
10512 * genattrtab.c: Likewise.
10513 * gthr-win32.h: Likewise.
10514 * haifa-sched.c: Likewise.
10515 * predict.c: Likewise.
10516 * rtlanal.c: Likewise.
10518 * unwind-dw2-fde.h: Likewise.
10519 * unwind-pe.h: Likewise.
10520 * vmsdbgout.c: Likewise.
10522 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10524 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
10525 if type_required and passed decl.
10527 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
10529 * config.gcc (cpu_type): Include altivec.h in powerpc
10533 * config/rs6000/altivec.h: New.
10535 2002-01-17 David Edelsohn <edelsohn@gnu.org>
10537 * doc/install.texi (*-ibm-aix*): Update assembler and exception
10538 handling information.
10539 * doc/trouble.texi (Interoperation): Add libstdc++ information
10541 (Misunderstandings): Add template instantiation and static template
10542 member information for AIX.
10544 2002-01-17 Jason Merrill <jason@redhat.com>
10546 * dbxout.c (dbxout_type): Support const and volatile.
10548 * except.c (add_partial_entry): Remove backwards compatibility code.
10549 (end_protect_partials): Likewise.
10551 2002-01-17 Jakub Jelinek <jakub@redhat.com>
10553 * config/ia64/ia64.md (prologue_use): New.
10554 * config/ia64/ia64.c (ia64_expand_prologue): Use
10555 gen_prologue_use instead of gen_rtx_USE.
10556 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
10557 as CODE_FOR_pred_rel_mutex.
10558 (ia64_sched_reorder2): Likewise.
10560 2002-01-16 Eric Christopher <echristo@redhat.com>
10562 * config/mips/r3900.h: Reformat.
10563 (SUBTARGET_CPP_SIZE_SPEC): Remove.
10564 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
10565 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
10566 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
10567 * config/mips/t-elf: Remove mips3 multilib.
10569 2002-01-16 H.J. Lu <hjl@gnu.org>
10571 * config/mips/linux.h: Include "mips/abi64.h".
10573 2002-01-16 H.J. Lu <hjl@gnu.org>
10575 * config/mips/t-linux: New.
10577 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
10579 * config/mips/linux.h: Don't include "gofast.h".
10580 (INIT_SUBTARGET_OPTABS): Removed.
10582 2002-01-16 Kazu Hirata <kazu@hxi.com>
10584 * config/h8300/h8300-protos.h: Replace emit_a_shift with
10586 * config/h8300/h8300.c: Likewise.
10587 * config/h8300/h8300.md: Likewise.
10589 2002-01-16 Kazu Hirata <kazu@hxi.com>
10591 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
10592 spaces after an opcode name.
10593 (pushqi1_h8300hs): Likewise.
10594 (pushhi1_h8300hs): Likewise.
10596 2002-01-16 Kazu Hirata <kazu@hxi.com>
10598 * doc/extend.texi: Replace "option" with "attribute"
10601 2002-01-16 Jakub Jelinek <jakub@redhat.com>
10603 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
10604 (and:DI () (const_int -8)).
10605 (split_small_symbolic_mem_operand): Split
10606 (mem (and:DI () (const_int -8)).
10608 2002-01-16 Jakub Jelinek <jakub@redhat.com>
10611 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
10612 same way as TYPE_IMUL.
10613 (ultrasparc_sched_reorder): Likewise.
10614 * config/sparc/sparc.md (type): Add comment to update
10615 ultrasparc_sched_reorder when making changes.
10617 2002-01-16 Kazu Hirata <kazu@hxi.com>
10619 * doc/invoke.texi: Change the dump file name of block
10620 reordering pass from 28.bbro to 29.bbro.
10621 Mention -dk option.
10623 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
10625 * i386.md (minsf splitter): Fix pasto.
10627 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
10629 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
10630 to frame pointer initialisation instruction.
10631 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
10632 initialisation instruction.
10633 (soft_df_operand): Do not accept the IP register.
10634 (nonimmediate_soft_df_operand): Do not accept the IP register.
10636 2002-01-16 Jakub Jelinek <jakub@redhat.com>
10639 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
10640 MASK_V8 being both set.
10642 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
10644 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
10645 insn for GOT register; add REG_MAYBE_DEAD notes instead.
10646 config/s390/s390.md (call, call_value): Add GOT register to
10647 CALL_INSN_FUNCTION_USAGE where needed.
10648 (call_exp, call_value_exp): New.
10650 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
10652 * config/arm/arm.c: General formatting tidy up.
10654 2002-01-16 Graham Stott <grahams@redhat.com>
10656 * calls.c (try_to_integrate): Use "(size_t)" intermediate
10657 cast and when casting an integer literal to "rtx" pointer.
10658 (expand_call): Likewise.
10659 * flow.c (try_pre_increment): Likewise.
10660 (find_use_as_address): Likewise.
10661 * integrate.c (expand_iline_function): Likewise.
10662 * regmove.c (try_auto_increment): Likewise.
10664 2002-01-16 Graham Stott <grahams@redhat.com>
10666 * sched-rgn.c (passed): Use sbitmap_free.
10667 (header): Likewise.
10669 (in_queue): Likewise.
10670 (in_stack): Likewise.
10672 2002-01-15 Eric Christopher <echristo@redhat.com>
10674 * flow.c (propagate_one_insn): Change to use fatal_insn.
10676 2002-01-15 Kazu Hirata <kazu@hxi.com>
10678 * expmed.c (extract_fixed_bit_field): Remove unused code.
10679 * system.h: Poison SLOW_ZERO_EXTEND.
10680 * doc/tm.texi: Remove.
10681 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
10682 * config/arm/arm.h: Likewise.
10683 * config/avr/avr.h: Likewise.
10684 * config/clipper/clipper.h: Likewise.
10685 * config/convex/convex.h: Likewise.
10686 * config/d30v/d30v.h: Likewise.
10687 * config/dsp16xx/dsp16xx.h: Likewise.
10688 * config/elxsi/elxsi.h: Likewise.
10689 * config/fr30/fr30.h: Likewise.
10690 * config/h8300/h8300.h: Likewise.
10691 * config/i370/i370.h: Likewise.
10692 * config/i386/i386.h: Likewise.
10693 * config/m68k/m68k.h: Likewise.
10694 * config/mips/mips.h: Likewise.
10695 * config/ns32k/ns32k.h: Likewise.
10696 * config/pdp11/pdp11.h: Likewise.
10697 * config/pj/pj.h: Likewise.
10698 * config/s390/s390.h: Likewise.
10699 * config/sh/sh.h: Likewise.
10700 * config/stormy16/stormy16.h: Likewise.
10701 * config/v850/v850.h: Likewise.
10702 * config/vax/vax.h: Likewise.
10703 * config/we32k/we32k.h: Likewise.
10705 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
10707 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
10708 (altivec_lvsl): Change constraint to b.
10709 (altivec_lvsr): Same.
10710 (altivec_lvebx): Same.
10711 (altivec_lvehx): Same.
10712 (altivec_lvewx): Same.
10713 (altivec_lvxl): Same.
10714 (altivec_lvx): Same.
10715 (altivec_stvx): Add parallel.
10716 (altivec_stvxl): Same.
10717 (altivec_stvehx): Same.
10718 (altivec_stvebx): Same.
10719 (altivec_stvebx): Same.
10721 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
10723 * config.gcc: Change altivec.h to altivec-defs.h.
10725 * config/rs6000/altivec.h: Delete.
10727 * config/rs6000/altivec-defs.h: Add.
10729 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
10731 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
10734 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
10735 less than or equal to eight bytes.
10737 * vax.md (andsi3): Remove constraints and change SET destination
10738 operand type to nonimmediate_operand.
10739 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
10740 when it is a CONST_INT.
10742 2002-01-15 Jason Merrill <jason@redhat.com>
10744 * c-common.def (FILE_STMT): New code.
10745 * c-common.c (statement_code_p): It's a statement.
10746 * c-common.h (stmt_tree_s): Add x_last_filename.
10747 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
10748 (last_expr_filename): New macro.
10749 * c-semantics.c (begin_stmt_tree): Initialize it.
10750 (add_stmt): If the filename changed, also insert a
10752 (expand_stmt): Handle seeing one.
10754 2002-01-15 Eric Christopher <echristo@redhat.com>
10756 * flow.c (propagate_one_insn): Add error message and print out
10757 insn for debugging.
10759 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
10761 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
10762 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
10763 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
10764 TRAMPOLINE_ALIGNMENT.
10765 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
10767 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
10768 PCC_BITFIELD_TYPE_MATTERS.
10769 * config/interix.h (STDC_VALUE): Remove. Use
10770 STDC_0_IN_SYSTEM_HEADERS.
10771 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
10772 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
10773 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
10775 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
10777 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
10778 not work on this platform currently.
10780 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
10782 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
10783 readonly_warning in _().
10785 2002-01-15 Douglas B Rupp <rupp@gnat.com>
10787 * gcc.c (delete_if_ordinary): Backout previous change.
10789 2002-01-15 Kazu Hirata <kazu@hxi.com>
10791 * config/h8300/h8300.c (print_operand): Remove support for
10792 unused operand characters.
10794 * read-rtl.c: Fix formatting.
10795 * real.c: Likewise.
10796 * recog.c: Likewise.
10797 * regclass.c: Likewise.
10798 * regmove.c: Likewise.
10799 * reg-stack.c: Likewise.
10800 * reload1.c: Likewise.
10801 * rtlanal.c: Likewise.
10803 2002-01-15 Kazu Hirata <kazu@hxi.com>
10805 * config/i386/i386.c: Fix formatting.
10807 2002-01-15 Jakub Jelinek <jakub@redhat.com>
10809 * c-typeck.c (process_init_element): Don't save_expr
10810 COMPOUND_LITERAL_EXPR if just its initializer will be used.
10812 2002-01-15 David Edelsohn <edelsohn@gnu.org>
10814 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
10815 emit optional traceback table if optimize_size or TARGET_ELF.
10816 * config/rs6000/rs6000.md (prefetch): New.
10818 2002-01-15 Andreas Jaeger <aj@suse.de>
10820 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
10822 2002-01-15 Kazu Hirata <kazu@hxi.com>
10824 * mips-tfile.c: Fix formatting.
10826 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
10828 * unroll.c (final_reg_note_copy): Fix previous commit.
10830 2002-01-14 Kazu Hirata <kazu@hxi.com>
10832 * config/h8300/h8300-protos.h: Remove the prototype for
10834 * config/h8300/h8300.c (eq_operator): Remove.
10836 2002-01-14 Richard Henderson <rth@redhat.com>
10838 * config/i386/i386.md (prefetch): Tidy.
10839 (prefetch_3dnow): Fix locality operand.
10841 2002-01-14 Richard Henderson <rth@redhat.com>
10843 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
10844 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
10846 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
10848 * reload1.c (reload_combine): Pass reg_sum replacement through
10849 copy_rtx in loop performing multiple changes.
10851 2002-01-14 Jakub Jelinek <jakub@redhat.com>
10853 * except.c (remove_unreachable_regions): New.
10854 (free_eh_status): Clear exception_handler_labels.
10855 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
10856 (find_exception_handler_labels): Don't add the same label more than
10858 (remove_exception_handler_label): Don't die if
10859 find_exception_handler_labels hasn't been called for the current
10862 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
10864 * toplev.c (rest_of_compilation): Rebuild jump labels after
10867 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
10869 * doc/extend.texi: Move documentation of X86 built-in functions
10871 * doc/invoke.texi: From here.
10872 * doc/sourcebuild.texi: Document location of documentation for
10873 machine built-in functions.
10875 2002-01-13 Christopher Faylor <cgf@redhat.com>
10877 * cppfiles.c (TEST_THRESHOLD): New macro.
10878 (SHOULD_MMAP): Ditto.
10879 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
10882 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
10884 * unroll.c (final_reg_note_copy): Properly handle
10886 (unroll_loops): Fix LOOP_CONDITION heuristics.
10888 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
10890 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
10891 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
10893 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
10895 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
10898 2002-01-14 Tom Rix <trix@redhat.com>
10900 * config/rs6000/rs6000.md: Fix typo with sradi.
10902 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
10904 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
10905 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
10906 (clrstrdi, clrstrsi): Adapt callers.
10908 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
10910 (movti splitter): Never use register 0 as base register.
10912 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
10914 * combine.c (simplify_shift_const): Always generate new rtx
10915 for shift expression instead of reusing given expression.
10917 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10919 * config/alpha/alpha.c (alpha_expand_mov): Don't call
10920 alpha_legitimize_address unless mode is Pmode.
10922 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
10924 * doc/md.texi (Modifiers): Document the '*' constraint for the
10927 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
10928 * doc/extend.texi (Function Attributes): 'interrupt' is valid
10931 2002-01-13 Richard Henderson <rth@redhat.com>
10933 * reload.c (find_reloads): Use a hard reg destination as reload reg
10934 for an input reload of the source.
10936 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10938 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
10941 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
10943 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
10944 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
10946 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
10948 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10950 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
10952 2002-01-12 Tom Rix <trix@redhat.com>
10954 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
10957 2002-01-12 Richard Henderson <rth@redhat.com>
10959 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
10961 * doc/invoke.texi: Update Alpha options.
10963 * doc/invoke.texi: Update i386 built-in function lists.
10965 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
10967 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
10968 referencing outside.
10970 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10972 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
10973 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
10974 offsets, and change line folding.
10975 * optabs.c (expand_binop): Remove warnings.
10976 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
10978 2002-01-12 Graham Stott <grahams@redhat.com>
10980 * attribs.c (handle_deprecated_attribute): constify WHAT.
10981 * diagnostic.c (warn_deprecated_use): Add braces, fixes
10982 dangling else warning and constify WHAT.
10983 * except.h (struct function, struct inline_remap): Move
10984 struct tag forward defs before all prototypes.
10985 (duplicate_eh_regions): Whitespace.
10987 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
10989 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
10990 MODE_BASE_REG_CLASS.
10991 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
10993 2002-01-12 Richard Henderson <rth@redhat.com>
10995 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
10996 (ix86_expand_vector_move): New.
10997 (bdesc_2arg): Remove andps, andnps, orps, xorps.
10998 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
10999 Remove old prefetch builtins. Special case the logicals removed above.
11000 (ix86_expand_builtin): Likewise.
11001 (safe_vector_operand): Use V4SFmode, not TImode.
11002 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
11003 (ix86_expand_timode_binop_builtin): New.
11004 * config/i386/i386-protos.h: Update.
11005 * config/i386/i386.h (enum ix86_builtins): Update.
11006 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
11007 Use ix86_expand_vector_move in vector move expanders.
11008 (movti_internal, movti_rex64): Add xorps alternative.
11009 (sse_clrv4sf): Rename and adjust from sse_clrti.
11010 (prefetch): Don't work so hard.
11011 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
11012 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
11013 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
11015 2002-01-11 Richard Henderson <rth@redhat.com>
11017 * config/i386/mmintrin.h: New file.
11018 * config/i386/xmmintrin.h: New file.
11019 * config.gcc (i?86-*-*): Add extra_headers.
11020 * simplify-rtx.c (simplify_unary_operation): Handle saturating
11022 (simplify_binary_operation): Handle saturating arithmetic codes.
11023 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
11024 not the lowpart subreg.
11025 (ix86_expand_builtin): Return a TImode dummy register instead of 0
11027 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
11029 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11031 * conflict.c (conflict_graph_compute): Free regsets when finished.
11032 * ssa.c (compute_coalesced_reg_partition): Likewise.
11034 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11036 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
11037 every where we allocate a register.
11039 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11041 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
11042 * lcm.c (compute_earliest, compute_farthest): Likewise.
11044 2002-01-11 Janis Johnson <janis187@us.ibm.com>
11046 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
11048 2002-01-11 Janis Johnson <janis187@us.ibm.com>
11050 * doc/rtl.texi (Insns): Fix 2 typos.
11052 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
11054 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
11055 options. Use @table @gcctabopt for MMIX options. Add index
11056 entries for MMIX options. Start new paragraph with first
11057 heading of the machine-dependent options.
11059 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
11062 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
11063 * combine.c (force_to_mode): Same.
11064 * reload1.c (clear_reload_reg_in_use): Same.
11066 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
11068 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
11071 2002-01-11 Andreas Jaeger <aj@suse.de>,
11072 Brad Lucier <lucier@math.purdue.edu>
11074 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
11077 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
11079 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
11080 Protect with IN_LIBGCC.
11081 (LINK_EH_SPEC): Add required trailing space.
11083 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
11085 * c-tree.h: Move function declarations so that they are listed
11086 under the filename which contains them.
11087 (check_identifier, finish_decl_top_level,
11088 lookup_name_current_level_global, shadow_record_fields): Remove.
11090 2002-01-11 Andreas Jaeger <aj@suse.de>
11092 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
11095 2002-01-10 Richard Henderson <rth@redhat.com>
11097 * config/alpha/alpha.c (print_operand): Add 'J'.
11098 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
11099 new operand with the sequence number for the lituse. When splitting
11100 the insns, use gen_movdi_er_high_g and generate a sequence number.
11101 (gen_movdi_er_high_g): Print the sequence number if non-zero.
11103 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
11105 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
11106 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
11108 (altivec_expand_builtin): Same.
11109 (altivec_expand_stv_builtin): New.
11111 * config/rs6000/rs6000.h (rs6000_builtins): Same.
11113 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
11114 ("altivec_lvehx"): New.
11115 ("altivec_lvewx"): New.
11116 ("altivec_lvxl"): New.
11117 ("altivec_lvx"): New.
11118 ("altivec_stvx"): New.
11119 ("altivec_stvebx"): New.
11120 ("altivec_stvehx"): New.
11121 ("altivec_stvewx"): New.
11122 ("altivec_stvxl"): New.
11124 2002-01-10 Richard Henderson <rth@redhat.com>
11126 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
11127 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
11128 care not to delete instructions twice.
11130 2002-01-10 Zack Weinberg <zack@codesourcery.com>
11132 * toplev.c: Don't declare environ (it's not used anywhere).
11133 * configure.in: Don't check for declaration of environ.
11134 * config/i386/xm-mingw32.h: Don't #define environ.
11135 * config.in, configure: Regenerate.
11137 2002-01-10 Zack Weinberg <zack@codesourcery.com>
11139 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
11140 * configure: Regenerate.
11142 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
11143 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
11144 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
11146 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
11147 LIMITS_H_TEST here, not in m68k/x-next.
11148 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
11149 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
11151 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
11152 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
11153 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
11155 * config/i386/x-djgpp: Renamed i386/t-djgpp.
11156 * config/m88k/x-dolph: Renamed m88k/t-dolph.
11157 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
11158 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
11159 replacement of quadlib.asm with quadlib.c.
11161 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
11162 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
11163 config/rs6000/xm-beos.h: Delete file.
11165 * config.gcc: Update to match above changes.
11167 2002-01-10 Kazu Hirata <kazu@hxi.com>
11169 * config/h8300/h8300.h: Fix comment typos.
11170 * config/h8300/h8300.md: Likewise.
11171 * config/h8300/lib1funcs.asm: Likewise.
11173 2002-01-10 Dale Johannesen <dalej@apple.com>
11175 PR optimization/5269
11176 * unroll.c (precondition_loop_p): Make *increment be the correct
11177 sign when n_iterations known, to avoid confusing caller.
11179 2002-01-10 Kazu Hirata <kazu@hxi.com>
11181 * doc/extend.texi (deprecated): Fix a typo.
11183 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
11185 * basic-block.h (update_br_prob_note): Declare.
11186 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
11187 (try_forward_edges): Care negative frequencies and update note.
11188 (outgoing_edges_match): Tweek conditional merging heuristics.
11189 (try_crossjump_to_edge): use update_br_prob_note.
11190 * cfglayout.c (fixup_reorder_chain): Likewise.
11191 * cfrtl.c (update_br_prob_note): New.
11192 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
11194 * i386.c (ix86_decompose_address): Return -1 if address contains
11196 (legitimate_address_p): Require ix86_decompose_address to return 1.
11198 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
11199 (cprop_insn): Likewise.
11201 2002-01-10 Kazu Hirata <kazu@hxi.com>
11203 * toplev.c: Fix formatting.
11204 * tree.c: Likewise.
11205 * tree-dump.c: Likewise.
11206 * unroll.c: Likewise.
11207 * unwind-dw2.c: Likewise.
11208 * unwind-dw2-fde.c: Likewise.
11209 * unwind-dw2-fde-glibc.c: Likewise.
11210 * unwind-sjlj.c: Likewise.
11212 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
11214 * doc/invoke.texi: Document PDP-11 options.
11216 2002-01-10 Kazu Hirata <kazu@hxi.com>
11218 * config/h8300/h8300.h: Fix formatting.
11220 2002-01-10 Ira Ruben <ira@apple.com>
11222 Add __attribute__ ((deprecated)).
11223 * extend.texi: Document __attribute__ ((deprecated)).
11224 * invoke.texi: Document -Wno-deprecated-declarations.
11225 * testsuite/g++.dg/other/deprecated.C: New C++ test.
11226 * testsuite/gcc.dg/deprecated.c: New C test.
11227 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
11228 (c_common_attribute_table): Add "deprecated" entry.
11229 (handle_deprecated_attribute): New function.
11230 * c-decl.c (deprecated_states): New enum.
11231 deprecated_state: State of "deprecated" handling.
11232 (start_decl): Set deprecated_state based on attributes.
11233 (grokdeclarator): Test for deprecated uses, propagate attribute.
11234 * c-typeck.c (build_component_ref): Test for deprecated fields.
11235 (build_external_ref): Test for deprecated primaries.
11236 * diagnostic.c (warn_deprecated_use) New function to issue
11237 warnings about __attribute__ ((depricated)) references.
11238 * flags.h (warn_deprecated_decl): Extern declared for
11239 -W[no-]deprecated-declarations option.
11240 * print-tree.c (print_node): Show deprecated flag status.
11241 * toplev.c (warn_deprecated_decl): Defined.
11242 (W_options): Added "deprecated-declaration".
11243 * toplev.h (warn_deprecated_use): Extern declared.
11244 * tree.h (struct tree_common): Define deprecated_flag.
11245 (TREE_DEPRECATED): New macro to access flag.
11246 * cp/call.c (build_call): Test for deprecated calls.
11247 * cp/class.c (add_implicitly_declared_members): Set global
11248 flag to tell grokdeclarator to not issue deprecated warnings.
11249 * cp/cp-tree.h: Add extern for adding_implicit_members.
11250 * cp/decl.c (deprecated_states): New enum.
11251 (start_decl): Set deprecated_state based on attributes.
11252 (grokdeclarator): Test for deprecated uses, propagate attribute.
11253 * cp/lex.c (do_identifier): Test for deprecated primaries.
11254 * cp/typeck.c (build_component_ref): Test for deprecated fields.
11256 2002-01-10 Ira Ruben <ira@apple.com>
11258 Fix to assign attributes to inline member functions.
11259 * cp/decl.c (start_method): Handle attrlist.
11261 2002-01-10 Kazu Hirata <kazu@hxi.com>
11263 * combine.c (expand_field_assignment): Use subreg_lsb().
11265 2002-01-10 David Edelsohn <edelsohn@gnu.org>
11267 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
11268 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
11269 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
11270 Recurse for any operand of AND as long as constant is non-zero.
11272 2002-01-10 Kazu Hirata <kazu@hxi.com>
11274 * config/h8300/h8300.md: Remove constraints from expanders.
11276 2002-01-10 Kazu Hirata <kazu@hxi.com>
11278 * varasm.c: Fix formatting.
11279 * varray.c: Likewise.
11280 * vmsdbgout.c: Likewise.
11281 * xcoffout.c: Likewise.
11283 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
11285 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
11286 update edge probabilities to match.
11288 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
11290 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
11292 * doc/languages.texi, doc/sourcebuild.texi: New files.
11293 * doc/configfiles.texi: Make a subsubsection. Update.
11294 * doc/configterms.texi: Add @node. Remove warning that this isn't
11295 instructions for building GCC.
11296 * doc/makefile.texi: Make a subsection.
11297 * doc/gccint.texi: Update.
11299 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
11301 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
11303 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
11305 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
11307 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
11309 * optabs.c (expand_fix): Look for wider integer modes first.
11311 * i386.md (mov?f): Avoid the fake const double trick for medium
11313 (min?f*/max?f*): Prohibit memory operands for i387 variant.
11314 (fop_df_4): Disable for SSE compilation.
11316 2002-01-10 Graham Stott <grahams@redhat.com>
11318 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
11319 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
11321 2002-01-10 Richard Henderson <rth@redhat.com>
11323 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
11325 2002-01-10 Richard Henderson <rth@redhat.com>
11327 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
11328 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
11330 2002-01-10 Kazu Hirata <kazu@hxi.com>
11332 * combine.c (can_combine_p): Fix a comment typo.
11334 2002-01-09 Zack Weinberg <zack@codesourcery.com>
11336 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
11337 empty list correctly. Change loop index $t to $f for
11338 consistency with rest of Makefile.
11340 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
11342 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
11343 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
11345 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
11346 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
11347 (altivec_init_builtins): Same.
11348 (altivec_expand_unop_builtin): Return NULL_RTX on error.
11349 (altivec_expand_binop_builtin): Same.
11350 (altivec_expand_ternop_builtin): Same.
11353 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
11354 ("altivec_vctuxs"): Fix typo.
11355 ("altivec_vnmsubfp"): Same.
11356 ("altivec_dssall"): New.
11357 ("altivec_mfvscr"): New.
11358 ("altivec_dss"): New.
11359 ("altivec_lvsl"): New.
11360 ("altivec_lvsr"): New.
11361 ("altivec_dstt"): New.
11362 ("altivec_dstst"): New.
11363 ("altivec_dststt"): New.
11364 ("altivec_dst"): New.
11366 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
11367 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
11369 2002-01-09 Richard Henderson <rth@redhat.com>
11371 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
11373 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
11375 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
11377 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
11379 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
11381 2002-01-09 Kazu Hirata <kazu@hxi.com>
11383 * read-rtl.c: Fix formatting.
11384 * real.c: Likewise.
11385 * regclass.c: Likewise.
11386 * regrename.c: Likewise.
11387 * reg-stack.c: Likewise.
11388 * reload1.c: Likewise.
11389 * reload.c: Likewise.
11392 2002-01-09 Kazu Hirata <kazu@hxi.com>
11394 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
11395 to extract items in the expr_list chain.
11397 2002-01-09 Richard Henderson <rth@redhat.com>
11399 * config/vax/vax.c (vax_rtx_cost): Never abort.
11401 * config/vax/vax.h (REAL_ARITHMETIC): Define.
11403 2002-01-09 Jan Hubicka <jh@suse.cz>
11405 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
11407 2002-01-09 Richard Henderson <rth@redhat.com>
11409 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
11410 Unify code from various alternatives.
11412 2002-01-09 Richard Henderson <rth@redhat.com>
11414 * regrename.c (copy_value): Ignore the copy if the source register
11415 is present in the value chain with a narrower mode.
11417 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11419 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
11420 for the c4x target. Also improve layout.
11422 2002-01-09 Richard Henderson <rth@redhat.com>
11424 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
11425 * config/m32r/m32r.md (and ior xor splitters): Swap operands
11426 to match insn patterns.
11428 2002-01-09 Richard Henderson <rth@redhat.com>
11430 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
11431 (copyprop_hardreg_forward_1): Likewise.
11433 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
11435 * pa.md (decrement_and_branch_until_zero): Change predicate for
11436 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
11438 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
11440 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
11441 gets undefined. For Darwin.
11443 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11445 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
11447 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11449 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
11451 2002-01-08 Richard Henderson <rth@redhat.com>
11453 * regrename.c (copy_value): Ignore overlapping copies.
11455 2002-01-08 Richard Henderson <rth@redhat.com>
11457 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
11458 as needed to avoid shared structure.
11460 2002-01-08 Kazu Hirata <kazu@hxi.com>
11462 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
11465 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
11467 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
11468 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
11469 documentation of obsolete macros.
11470 * system.h: Poison these macros.
11471 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
11472 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
11473 config/c4x/c4x.h, config/clipper/clipper.h,
11474 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
11475 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
11476 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
11477 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
11478 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
11479 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
11480 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
11481 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
11482 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
11483 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
11484 config/sparc/sparc.h, config/stormy16/stormy16.h,
11485 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
11486 definitions and commented out definitions of obsolete macros.
11487 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
11488 of MAX_INT_TYPE_SIZE.
11490 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
11492 * config/s390/s390.c (s390_preferred_reload_class): Never
11493 return ADDR_REGS if it isn't a subset of the given class.
11494 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
11495 FP_REGS, but all superclasses as well.
11497 * config/s390/s390.c (s390_function_profiler): Fix thinko.
11499 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
11500 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
11501 must not be a const_int.
11503 2002-01-08 Richard Henderson <rth@redhat.com>
11505 * Makefile.in (toplev.o): Depend on options.h.
11506 (gcc.o): Depend on specs.h.
11508 2002-01-08 Jakub Jelinek <jakub@redhat.com>
11510 * expr.c (store_expr): Convert VOIDmode constants back to target's
11513 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11515 * doc/invoke.texi: Markup gcc as @command. Refer to
11516 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
11517 of http://gcc.gnu.org/thanks.html.
11519 2002-01-08 Dale Johannesen <dalej@apple.com>
11521 * config/rs6000/rs6000.md: Add missing int register
11522 target case to movdf_low.
11524 2002-01-08 Zack Weinberg <zack@codesourcery.com>
11526 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
11527 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
11528 (cppinit.o): Depend on except.h.
11529 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
11530 s-specs): New rules.
11532 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
11533 Don't create specs.h/options.h/gencheck.h here. Remove
11534 unnecessary variable settings from last argument of AC_OUTPUT.
11535 * config.in, configure: Regenerate.
11536 * intl.c: Hardcode package name as "gcc".
11538 * cppinit.c: Include except.h.
11539 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
11541 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
11542 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
11543 (!)USING_SJLJ_EXCEPTIONS.
11544 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
11546 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
11548 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
11549 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
11550 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
11551 documentation of obsolete macros.
11552 * system.h: Poison these macros.
11553 * config/d30v/d30v.h, config/ns32k/encore.h,
11554 config/stormy16/stormy16.h: Remove definitions and commented out
11555 definitions of obsolete macros.
11557 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
11559 * objc/objc-act.c (handle_class_ref): Mark the declaration of
11560 %sobjc_class_ref_%s as used - to prevent unwanted compiler
11563 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
11565 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
11566 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
11567 to insn adjusting stack/frame pointer.
11568 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
11569 accept operands that cause the insn to be non-splittable.
11571 2002-01-08 Graham Stott <grahams@redhat.com>
11573 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
11574 (C_TYPE_FIELDS_VOLATILE): Likewise.
11575 (C_TYPE_BEING_DEFINED): Likewise.
11576 (C_IS_RESERVED_WORD): Likewise.
11577 (C_TYPE_VARIABLE_SIZE): Likewise.
11578 (C_DECL_VARIABLE_SIZE): Likewise.
11579 (C_MISSING_PROTOTYPE_WARNED): Likewise.
11580 (C_SET_EXP_ORIGINAL_CODE): Likewise.
11581 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
11583 (C_DECL_ANTICIPATED): Likewise.
11584 (c_build_type_variant): Add parenthesis.
11586 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
11588 * gcc.c (option_map): Remove --version.
11589 (process_command): Handle -fversion following the GNU Coding
11590 Standards. Partially addresses PR other/704.
11592 2002-01-08 Graham Stott <grahams@redhat.com>
11594 * combine.c (combine_instructions): Fix typo.
11596 2002-01-08 Graham Stott <grahams@redhat.com>
11598 * debug.h: Use "tree" and "rtx" throughout.
11600 * debug.c: Likewise.
11602 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
11604 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
11605 constant pool, use the pool's version of the symbol instead.
11607 2002-01-07 Richard Henderson <rth@redhat.com>
11609 * regrename.c (find_oldest_value_reg): Ignore the value chain if
11610 the original register was copied in a mode with a fewer number of
11611 hard registers than the desired mode.
11612 (copyprop_hardreg_forward_1): Likewise.
11613 (debug_value_data): Fix loop test.
11614 * toplev.c (parse_options_and_default_flags): Reenable
11615 -fcprop-registers at -O1.
11617 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
11619 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
11620 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
11622 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
11625 * config/rs6000/rs6000.md: Add altivec predicate patterns.
11627 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
11629 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
11630 (pa_output_function_prologue): Output local label at the beginning of
11631 the prologue when profiling.
11632 (hppa_profile_hook): Use the local label rather than the function label.
11633 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
11635 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
11637 * config/rs6000/rs6000.c (print_operand): Remove extra space.
11638 (altivec_expand_unop_builtin): Fix thinko.
11639 (altivec_expand_binop_builtin): Same.
11640 (altivec_expand_ternop_builtin): Same.
11641 (altivec_expand_builtin): Same.
11643 2002-01-07 Richard Henderson <rth@redhat.com>
11645 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
11647 2002-01-07 Jason Merrill <jason@redhat.com>
11649 * unwind-dw2.c (execute_cfa_program): Use < again.
11651 2002-01-07 Jakub Jelinek <jakub@redhat.com>
11653 * predict.c (combine_predictions_for_insn): Avoid division by zero.
11655 2002-01-07 Jakub Jelinek <jakub@redhat.com>
11657 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
11658 Don't allow -1 - x -> ~x simplifications in the first pass.
11660 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
11662 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
11664 (altivec_expand_binop_builtin): Same.
11665 (altivec_expand_unop_builtin): Same.
11666 (print_operand): Fix typo.
11667 (bdesc_1arg): Add vupk* variants.
11669 * rs6000.h (rs6000_builtins): Add vupk* enums.
11671 * rs6000.md: Add altivec_vupk* variants.
11673 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
11675 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
11676 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
11677 and last update dates.
11679 2002-01-07 Janis Johnson <janis187@us.ibm.com>
11681 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
11683 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
11685 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
11686 * config/avr/avr.h (CPP_SPEC): Likewise.
11687 (LINK_SPEC): Likewise.
11688 (CRT_BINUTILS_SPECS): Likewise.
11689 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11690 * doc/invoke.texi (AVR Options): Document them.
11692 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
11694 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
11697 2002-01-07 Graham Stott <grahams@redhat.com>
11699 * config/i386/i386.h: Update copyright date.
11700 (HALF_PIC_PTR): Add parenthesis.
11701 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
11702 (CONSTANT_ALIGNMENT): Add parenthesis.
11703 (DATA_ALIGNMENT): Likewise.
11704 (LOCAL_ALIGNMENT): Likewise.
11705 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
11706 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
11707 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
11708 (HARD_REGNO_NREGS): Add paranethesis.
11709 (VALID_SSE_REG_MODE): Whitespace.
11710 (VALID_MMX_REG_MODE): Whitespace.
11711 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
11712 (ix86_hard_regno_mode_ok): Add parenthesis.
11713 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
11714 (RETURN_IN_MEMORY): Whitespace.
11715 (N_REG_CLASSES): Add parenthesis.
11716 (INTEGER_CLASS_P): Add parenthesis and wrap.
11717 (FLOAT_CLASS_P): Likewise.
11718 (SSE_CLASS_P): Likewise.
11719 (MMX_CLASS_P): Likewise.
11720 (MAYBE_INTEGER_CLASS_P): Likewise.
11721 (MAYBE_FLOAT_CLASS_P): Likewise.
11722 (MAYBE_SSE_CLASS_P): Likewise.
11723 (MAYBE_MMX_CLASS_P): Likewise.
11724 (Q_CLASS_P): Likewise.
11725 (GENERAL_REGNO_P): Uppercase macro parameter.
11726 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
11727 (FP_REGNO_P): Likewise.
11728 (ANY_FP_REGNO_P): Uppercase macro parameter.
11729 (SSE_REGNO_P): Likewise.
11730 (SSE_REGNO): Likewise.
11731 (SSE_REG_P): Likewise.
11732 (SSE_FLOAT_MODE_P): Likewise.
11733 (MMX_REGNO_P): Likewise.
11734 (MMX_REG_P):Likewise.
11735 (STACK_REG_P): Likewise.
11736 (NON_STACK_REG_P): Likewise.
11737 (STACK_TOP_P): Likewise.
11738 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
11739 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
11740 (SECONDARY_MEMORY_NEEDED): Likewise.
11741 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
11742 (MD_ASM_CLOBBERS): Whitespace and wrap.
11743 (MUST_PASS_IN_STACK): Whitespace and wrap.
11744 (RETURN_POPS_ARGS): Add parenthesis.
11745 (INIT_CUMULATIVE_ARGS): Likewise.
11746 (FUNCTION_ARG): Likewise.
11747 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
11748 (SETUP_INCOMING_VARARGS): Likewise.
11749 (BUILD_VA_LIST_TYPE): Add parenthesis.
11750 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
11752 (EXPAND_BUILTIN_VA_ARG): Likewise.
11753 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
11754 (INITIALIZE_TRAMPOLINE): Add parenthesis.
11755 (INITIAL_ELIMINATION_OFFSET): Likewise.
11756 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
11757 (REGNO_OK_FOR_BASE_P): Likewise.
11758 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
11759 (REGNO_OK_FOR_DIREG_P): Likewise.
11760 (REG_OK_FOR_INDEX_P): Whitespace.
11761 (REG_OK_FOR_BASE_P): Whitespace.
11762 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
11764 (FIND_BASE_TERM): Fix typo.
11765 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
11766 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
11767 (SYMBOLIC_CONST; Whitespace.
11768 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
11769 (ENCODE_SECTION_INFO): Whitespace.
11770 (FINALIZE_PIC): Remove do { ... } while (0).
11771 (PROMOTE_MODE): Wrap in do { ... } while (0).
11772 (CONST_COSTS): Whitespace.
11773 (RTX_COSTS): Add paramethesis, whitespace and wrap.
11774 (REGISTER_MOVE_COST): Add parenthesis.
11775 (MEMORY_MOVE_COST): Likewise.
11776 (EXTRA_CC_MODES): Whitespace.
11777 (SELECT_CC_MODE): Add parenthesis and whitespace.
11778 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
11779 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
11780 (ASM_OUTPUT_LABEL): Add paramethesis.
11781 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
11782 (ASM_OUTPUT_REG_POP): Likewise.
11783 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
11784 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11786 * config/i386/i386.c: Update copyright.
11787 (CHECK_STACK_LIMIT): Add parenthesis.
11788 (AT_BP): Uppercase macro parameter.
11789 (x86_64_int_parameter_registers): Constify.
11790 (x86_64_int_return_registers): Likewise.
11791 (ix86_compare_op0): Use rtx.
11792 (construct_container): Constify INTREG parameter.
11793 (function_arg): Use rtx.
11795 * diagnostic.h: Update copyright date.
11796 (output_buffer_state): Add parenthesis.
11797 (output_buffer_format_args): Likewise.
11799 * combine.c (combine_instructions): Replace XEXP (links, 0)
11802 2002-01-06 H.J. Lu <hjl@gnu.org>
11804 * cfgcleanup.c (thread_jump): Fix 2 typos.
11806 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
11808 * config.gcc: Add support for --enable-altivec.
11810 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
11812 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
11814 2002-01-06 Jakub Jelinek <jakub@redhat.com>
11816 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
11817 __objc_class_name_*.
11819 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
11821 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
11823 2002-01-06 Richard Henderson <rth@redhat.com>
11825 * reorg.c (emit_delay_sequence): Remove death notes, not merely
11826 nop them out. Increment label reference count for REG_LABEL.
11827 (fill_slots_from_thread): Frob label reference count around
11828 delete_related_insns.
11830 2002-01-05 Richard Henderson <rth@redhat.com>
11832 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
11835 2002-01-05 Richard Henderson <rth@redhat.com>
11837 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
11838 * integrate.c (output_inline_function): Likewise.
11839 * toplev.c (rest_of_compilation): Do it here instead. Move call
11840 to remove_unnecessary_notes after emitting abstract instance.
11841 Force an emitted nested function to have its parent emited as well.
11842 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
11844 (rtl_for_decl_location): Do not look at reload data structures
11845 before reload has run.
11847 2002-01-05 Kazu Hirata <kazu@hxi.com>
11849 * cse.c: Fix formatting.
11850 * dwarf2asm.c: Likewise.
11851 * dwarf2out.c: Likewise.
11852 * explow.c: Likewise.
11853 * expmed.c: Likewise.
11854 * function.c: Likewise.
11855 * gcov.c: Likewise.
11856 * gencheck.c: Likewise.
11857 * genrecog.c: Likewise.
11858 * ggc-common.c: Likewise.
11859 * ggc-page.c: Likewise.
11860 * global.c: Likewise.
11862 2002-01-05 Kazu Hirata <kazu@hxi.com>
11864 * combine.c: Fix formatting.
11866 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
11869 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
11871 2002-01-05 David Edelsohn <edelsohn@gnu.org>
11873 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
11874 as 1 for __powerpc64__ as well.
11876 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
11878 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
11881 2002-01-05 Daniel Berlin <dan@dberlin.org>
11883 * lcm.c: Revert change, due to performance regression it causes on
11884 SPEC because it's slightly more conservative (sigh, I hate
11887 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
11889 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
11891 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
11893 * doc/cppinternals.texi: Update.
11895 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
11897 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
11898 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
11900 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
11901 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
11902 kludge for pre-october-14th mmix versions to handle new-found bug
11903 with PUSHJ/PUSHGO and the register stack.
11904 * config/mmix/mmix.h (struct machine_function): Rename member
11905 has_call_value_without_parameters to has_call_without_parameters.
11906 All referers changed.
11907 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
11908 TARGET_MASK_BRANCH_PREDICT): New macros.
11909 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
11910 -mno-reg-stack-fill-bug-workaround.
11911 * config/mmix/mmix.md ("call"): Set struct machine member
11912 has_call_without_parameters.
11914 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
11916 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
11918 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
11920 * cfgcleanup.c: Include tm_p.h
11921 (mark_effect): Fix handling of hard register; fix handling of SET
11923 2002-01-04 Kazu Hirata <kazu@hxi.com>
11925 * config/h8300/h8300.md (anonymous patterns): Check that
11926 operands are registers before using REGNO on them.
11928 2002-01-03 Roland McGrath <roland@frob.com>
11930 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
11932 2002-01-04 Jakub Jelinek <jakub@redhat.com>
11934 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
11935 * c-common.h (genrtl_expr_stmt_value): Likewise.
11936 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
11937 (expand_expr_stmt_value): Add maybe_last argument.
11938 Don't warn about statement with no effect if it is the last statement
11939 in expression statement.
11940 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
11941 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
11942 expand_expr_stmt_value.
11943 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
11944 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
11945 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
11946 as maybe_last to expand_expr_stmt_value.
11948 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
11950 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
11951 be passed in, do not build it.
11952 (c_begin_if_stmt): New function.
11953 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
11954 * c-common.h (c_expand_start_cond): Update prototype.
11955 (c_begin_if_stmt): Prototype new function.
11956 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
11957 * c-parse.in (if_prefix): Use c_begin_if_stmt,
11958 c_begin_while_stmt and c_finish_while_stmt_cond.
11960 2002-01-04 William Cohen <wcohen@redhat.com>
11962 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
11963 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
11964 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
11965 * config/pa/som.h (ASM_FILE_START): Likewise.
11967 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
11969 * lcm.c: Include df.h.
11970 Add available_transfer_function prototype.
11971 (compute_available): Rework to use iterative dataflow framework.
11972 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
11973 with bb_info in df.h
11974 (available_transfer_function): New function.
11976 * Makefile.in (lcm.o): add df.h to dependencies.
11978 2002-01-04 Richard Henderson <rth@redhat.com>
11980 * config/alpha/alpha.c (some_operand): Accept HIGH.
11981 (input_operand): Likewise; accept simple references to globals.
11982 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
11983 (alpha_const_double_ok_for_letter_p): Likewise.
11984 (alpha_extra_constraint): Likewise.
11985 (alpha_preferred_reload_class): Likewise. Do not force
11986 symbolic constants to memory.
11987 (alpha_legitimate_address_p): Accept simple references
11988 to small_symbolic_operand.
11989 (alpha_legitimize_address): New arg scratch. Be prepared to be
11990 called when no_new_pseudos. Emit simple symbolic references.
11991 Split integers into low, high, and rest.
11992 (alpha_expand_mov): Use alpha_legitimize_address.
11993 (some_small_symbolic_mem_operand): New.
11994 (split_small_symbolic_mem_operand): New.
11995 * config/alpha/alpha-protos.h: Update.
11996 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
11997 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
11998 (EXTRA_CONSTRAINT): Likewise.
11999 (PREFERRED_RELOAD_CLASS): Likewise.
12000 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
12001 (PREDICATE_CODES): Update.
12002 * config/alpha/alpha.md: New post-reload splitters to convert
12003 simplfied symbolic operands to the form that references $29.
12004 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
12005 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
12007 2002-01-03 Richard Henderson <rth@redhat.com>
12009 * local-alloc.c (function_invariant_p): Update commentary.
12011 2002-01-04 H.J. Lu <hjl@gnu.org>
12013 * toplev.c (rest_of_compilation): Fix a typo when calling
12016 2002-01-03 Kazu Hirata <kazu@hxi.com>
12018 * c-common.c: Fix formatting.
12019 * diagnostic.c: Likewise.
12020 * doloop.c: Likewise.
12021 * dwarf2out.c: Likewise.
12023 2002-01-03 Kazu Hirata <kazu@hxi.com>
12025 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
12026 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
12028 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
12030 * cpperror.c: Update comments and copyright.
12031 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
12032 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
12034 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
12036 * collect2.c (main): Use strcmp when testing for "-shared".
12038 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
12040 * cppmacro.c: Don't include intl.h. Update comments.
12041 (new_number_token): Allocate enough buffer for 64-bit unsigned
12042 integers; update prototype.
12043 * cppmain.c: Update comments.
12045 2002-01-03 William Cohen <wcohen@redhat.com>
12047 * function.h (struct function): Add profile.
12048 (current_function_profile): New.
12049 doc/extend.texi: Update documentation.
12050 * final.c (final_start_function): Use current_function_profile
12051 instead of profile_flag.
12052 (profile_after_prologue): Likewise.
12053 * function.c (expand_function_start): Likewise.
12054 (expand_function_start): Likewise.
12055 * config/alpha/alpha.c (direct_call_operand):
12056 (alpha_does_function_need_gp): Likewise.
12057 (alpha_expand_prologue): Likewise.
12058 * config/arm/arm.c (arm_expand_prologue): Likewise.
12059 thumb_expand_prologue: Likewise.
12060 * config/d30v/d30v.c (d30v_stack_info): Likewise.
12061 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
12062 (fr30_expand_prologue): Likewise.
12063 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
12064 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
12065 * config/i386/i386.h (FINALIZE_PIC): Likewise.
12066 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
12067 * config/i960/i960.c (i960_output_function_prologue): Likewise.
12068 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
12069 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
12070 (m32r_expand_prologue): Likewise.
12071 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
12072 (m88k_expand_prologue): Likewise.
12073 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
12074 * config/mips/mips.c (compute_frame_size): Likewise.
12075 (mips_expand_prologue): Likewise.
12076 (mips_can_use_return_insn): Likewise.
12077 * config/pa/elf.h (ASM_FILE_START): Likewise.
12078 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
12079 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
12080 * config/pa/som.h (ASM_FILE_START): Likewise.
12081 * config/romp/romp.c (romp_using_r14): Likewise.
12082 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
12083 (rs6000_stack_info): Likewise.
12084 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
12085 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
12086 * config/v850/v850.c (compute_register_save_size): Likewise.
12088 2002-01-03 Jakub Jelinek <jakub@redhat.com>
12090 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
12091 gen_lowpart_common fails, use gen_lowpart_SUBREG.
12093 2002-01-03 Turly O'Connor <turly@apple.com>
12095 * darwin.c (machopic_output_possible_stub_label): Don't generate
12096 stub routines for pseudo-stubs which we've just defined.
12098 2002-01-03 Kazu Hirata <kazu@hxi.com>
12100 * builtins.c: Fix formatting.
12101 * c-typeck.c: Likewise.
12102 * combine.c: Likewise.
12103 * expr.c: Likewise.
12104 * loop.c: Likewise.
12106 2002-01-03 Andreas Schwab <schwab@suse.de>
12108 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
12109 and return true if _cpp_push_next_buffer pushed a new include
12111 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
12112 _cpp_pop_file_buffer did not push a new file.
12113 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
12115 2002-01-02 Eric Christopher <echristo@redhat.com>
12117 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
12118 FIND_REG_INC_NOTE call. Update copyright.
12119 * loop.c (canonicalize_condition): Ditto.
12120 * reorg.c (delete_scheduled_jump): Ditto.
12122 2002-01-03 Kazu Hirata <kazu@hxi.com>
12124 * gcse.c: Fix formatting.
12126 2002-01-03 Graham Stott <grahams@redhat.com>
12128 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
12129 forward defs for struct tags rtx_def, union_tree, rtvec_def
12130 also output corresponding typedefs for rtx, tree, and rtvec.
12132 * system.h: Move forward defs for struct tags rtx_def, union_tree,
12133 rtvec_def along with corresponding typedefs for rtx, tree, and
12134 rtvec to config.h, hconfig.h, tconfig.h.
12136 2002-01-03 Graham Stott <grahams@redhat.com>
12138 * tree.h: Update copyright date.
12139 (IS_EXPR_CODE_CLASS): Add parenthesis.
12140 (TREE_SET_CODE): Add whitespace.
12141 (TREE_CHECK): Add parenthesis.
12142 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
12143 (CST_OR_CONSTRUCTOR_CHECK):
12144 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
12145 (TREE_SYMBOL_REFERENCED): Whitespace.
12146 (INT_CST_LT): Likewise.
12147 (INT_CST_LT_UNSIGNED): Likewise.
12148 (tree_real_cst): Unwrap comment.
12149 (tree_string): Likewise.
12150 (tree_complex): Likewise.
12151 (IDENTIFIER_POINTER): correct cast.
12152 (SAVE_EXPR_CONTEXT): Whitespace.
12153 (EXPR_WFL_FILENAME_NODE): Likewise.
12154 (EXPR_WFL_FILENAME): Remove parenthesis.
12155 (DECL_ORIGIN): Add parenthesis.
12156 (DECL_FROM_INLINE): Use NULL_TREE.
12157 (build_int_2): Whitespace.
12158 (build_type_variant): Add parenthesis.
12160 * gcc/jcf-parse.c: Update copyright date.
12161 (yyparse): Constify resource_filename.
12163 2002-01-03 Graham Stott <grahams@redhat.com>
12165 * rtl.h: Update copyright date.
12166 (RTL_CHECK1): Wrap long line.
12167 (RTL_CHECK2): Likewise.
12168 (RTL_CHECKC1): Wrap long line and whitespace.
12169 (RTL_CHECKC2): Likewise.
12170 (XWINT): Whitespace.
12176 (XBITMAP): Likewise.
12178 (XBBDEF): Likewise.
12180 (X0WINT): Likewise.
12182 (X0UINT): Likewise.
12186 (X0MODE): Likewise.
12187 (X0BITMAP): Likewise.
12188 (X0TREE): Likewise.
12189 (X0BBDEF): Likewise.
12190 (X0ADVFLAGS): Likewise.
12191 (X0CSELIB): Likewise.
12192 (X0MEMATTR): Likewise.
12193 (XCWINT): Likewise.
12195 (XCUINT): Likewise.
12199 (XCMODE): Likewise.
12200 (XCBITMAP): Likewise.
12201 (XCTREE): Likewise.
12202 (XCBBDEF): Likewise.
12203 (XCADVFLAGS): Likewise.
12204 (XCCSELIB): Likewise.
12205 (XC2EXP): Likewise.
12206 (INSN_UID): Likewise.
12207 (PREV_INSN): Likewise.
12208 (PATTERN): Likewise.
12209 (INSN_CODE): Likewise.
12210 (PUT_REG_NOTE_KIND): Likewise.
12211 (CODE_LABEL_NUMBER): Likewise.
12212 (NOTE_SOURCE_FILE): Likewise.
12213 (NOTE_BLOCK): Likewise.
12214 (NOTE_EH_HANDLER): Likewise.
12215 (NOTE_RANGE_INFO): Likewise.
12216 (NOTE_LIVE_INFO): Likewise.
12217 (NOTE_BASIC_BLOCK): Likewise.
12218 (NOTE_EXPECTED_VALUE): Likewise.
12219 (NOTE_LINE_NUMBER): Likewise.
12220 (LABEL_NAME): Likewise.
12221 (LABEL_NUSES): Likewise.
12222 (LABEL_ALTERNATE_NAME): Likewise.
12223 (ADDRESSOF_DECL): Likewise.
12224 (JUMP_LABEL): Likewise.
12225 (LABEL_NEXTREF): Likewise.
12227 (ORIGINAL_REGNO: Likewise.
12228 (HARD_REGISTER_NUM_P): Add parenthesis.
12229 (SUBREG_REG): Whitespace.
12230 (SUBREG_BYTE): Likewise.
12231 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
12232 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
12233 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
12234 (ASM_OPERANDS_INPUT_VEC): Likewise.
12235 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
12236 (ASM_OPERANDS_INPUT): Likewise.
12237 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
12238 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
12239 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
12240 (ASM_OPERANDS_INPUT_MODE): Likewise.
12241 (ASM_OPERANDS_SOURCE_FILE): Likewise.
12242 (ASM_OPERANDS_SOURCE_LINE): Likewise.
12243 (MEM_SET_IN_STRUCT_P): Minor reformat.
12244 (TRAP_CONDITION): Whitespace.
12245 (TRAP_CODE): Likewise.
12246 (COND_EXEC_TEST): Likewise.
12247 (COND_EXEC_CODE): Likewise.
12248 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
12249 (PHI_NODE_P): Add parenthesis.
12250 (plus_constant): Whitespace and add parenthesis.
12252 2002-01-03 Kazu Hirata <kazu@hxi.com>
12254 * config/avr/avr.c: Fix comment typos.
12255 * config/c4x/c4x.md: Likewise.
12256 * config/dsp16xx/dsp16xx.h: Likewise.
12257 * config/dsp16xx/dsp16xx.md: Likewise.
12258 * config/i386/i386.md: Likewise.
12259 * config/ia64/ia64.c: Likewise.
12260 * config/m32r/m32r.h: Likewise.
12261 * config/m68hc11/m68hc11.md: Likewise.
12262 * config/mmix/mmix.c: Likewise.
12263 * config/mn10200/mn10200.c: Likewise.
12264 * config/romp/romp.c: Likewise.
12265 * config/sh/sh.c: Likewise.
12266 * config/stormy16/stormy16.c: Likewise.
12267 * config/stormy16/stormy16.h: Likewise.
12268 * config/stormy16/stormy16.md: Likewise.
12270 2002-01-03 Graham Stott <grahams@redhat.com>
12272 * loop.h: Update copyright date.
12273 (LOOP_MOVABLES): Fix typo.
12274 (LOOP_REGS): Likewise.
12275 (LOOP_IVS): Likewise.
12277 2002-01-03 Graham Stott <grahams@redhat.com>
12279 * cppinit.c: Update copyright date.
12280 Don't include output.h
12281 * Makefile.in: Update copyright date.
12284 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
12287 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
12288 (-pthread) Add to RS/6000 options.
12290 2002-01-02 Kazu Hirata <kazu@hxi.com>
12292 * except.c: Fix comment typos.
12293 * loop.c: Likewise.
12294 * varasm.c: Likewise.
12295 * doc/tm.texi: Fix a typo.
12297 2002-01-02 Jakub Jelinek <jakub@redhat.com>
12299 * c-typeck.c (output_init_element): Allow initializing static storage
12300 duration objects with compound literals.
12302 2002-01-02 Richard Henderson <rth@redhat.com>
12304 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
12307 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12309 * gcc.c (default_compilers): Const-ify.
12310 * mips-tdump.c (stab_names): Likewise.
12311 * mips-tfile.c (map_coff_types, map_coff_storage,
12312 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
12313 pseudo_ops_t, pseudo_ops): Likewise.
12314 * protoize.c (default_include): Likewise
12316 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
12317 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
12318 Add array size in declaration.
12319 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
12320 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
12321 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
12322 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
12323 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
12324 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
12325 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
12326 emtens, make_nan): Const-ify.
12327 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
12328 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
12330 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
12332 * config.gcc (ia64-*-*): Set extra_headers.
12333 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
12334 * config/alpha/t-osf: Remove.
12335 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
12337 2002-01-02 David Edelsohn <edelsohn@gnu.org>
12339 * config/rs6000/t-aix43: Revert previous change.
12341 2002-01-02 Jason Merrill <jason@redhat.com>
12343 * c-decl.c (c_expand_body): Call outlining_inline_function when
12344 emitting an inline function out of line.
12346 2002-01-02 Richard Henderson <rth@redhat.com>
12348 * dwarf2out.c (limbo_die_node): Add created_for member.
12349 (new_die): New argument created_for. Update all callers.
12350 (mark_limbo_die_list): New.
12351 (dwarf2out_init): Register limbo_die_list as a root.
12352 (dwarf2out_finish): Force insert limbo dies into their function
12355 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
12358 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
12360 2002-01-02 Kazu Hirata <kazu@hxi.com>
12362 * config/h8300/fixunssfsi.c: Update copyright.
12365 * config/h8300/h8300.c: Update copyright.
12366 Eliminate warnings.
12368 2002-01-02 Kazu Hirata <kazu@hxi.com>
12370 * config/romp/romp.c: Fix comment formatting.
12371 * config/romp/romp.h: Likewise.
12372 * config/romp/romp.md: Likewise.
12373 * config/s390/s390.c: Likewise.
12374 * config/stormy16/stormy16.c: Likewise.
12375 * config/stormy16/stormy16.h: Likewise.
12377 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
12379 * c-common.h (genrtl_expr_stmt_value): Declare.
12380 * c-semantics.c (genrtl_goto_stmt): Redirect to...
12381 (genrtl_goto_stmt_value): ... this new function. Pass new
12382 argument down to expand_expr_stmt_value, taking
12383 TREE_ADDRESSABLE into account.
12384 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
12385 STMT_EXPR as addressable, i.e., one whose result we want.
12386 * expr.c (expand_expr): Don't save expression statement value
12387 of labeled_blocks or loop_exprs.
12388 * stmt.c (expand_expr_stmt): Redirect to...
12389 (expand_expr_stmt_value): ... this new function. Use new
12390 argument to tell whether to save expression value.
12391 (expand_end_stmt_expr): Reset last_expr_type and
12392 last_expr_value if we don't have either.
12393 * tree-inline.c (declare_return_variable): Mark its use
12394 statement as addressable.
12395 * tree.h: Document new use of TREE_ADDRESSABLE.
12396 (expand_expr_stmt_value): Declare.
12398 2002-01-01 Tom Rix <trix@redhat.com>
12400 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
12401 rs6000_emit_allocate_stack.
12403 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
12405 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
12406 ${srcdir}/ginclude/ to every entry in extra_headers.
12407 * configure: Regenerate.
12408 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
12409 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
12410 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
12411 * ginclude/proto.h: Rename to config/convex/proto.h.
12413 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12415 * attribs.c (handle_vector_size_attribute): Use host_integerp
12416 and tree_int_cst; remove warnings.
12417 * caller-save.c (insert_restore): Add cast to get rid of warning.
12418 (insert_save): Likewise.
12419 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
12420 * regmove.c (find_matches): Add temporary var to kill a warning.
12422 2002-01-01 Douglas B Rupp <rupp@gnat.com>
12424 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
12425 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
12426 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
12427 (vms-dwarf2eh.o): Add Makefile rule.
12428 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
12429 * config/alpha/vms-dwarf2eh.asm: New file.
12431 * gcc.c (delete_if_ordinary): Delete all versions.
12433 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
12435 * config/mmix/mmix.md: Update FIXME to not mention
12437 (MMIX_rJ_REGNUM): New define_constants constant.
12438 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
12439 "*movdicc_real"): Adjust contraints formatting.
12440 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
12441 for branch prediction.
12442 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
12444 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
12445 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
12446 number. Delete related FIXMEs.
12447 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
12448 from number to MMIX_rJ_REGNUM.
12449 (TARGET_MASK_BRANCH_PREDICT): New.
12450 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
12451 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
12452 value. Add -mbranch-predict and -mno-branch-predict.
12453 (TARGET_VERSION): Drop date.
12454 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
12455 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
12456 for finding out global symbols.
12457 (mmix_asm_output_labelref): Revert condition for global symbol.
12458 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
12459 (mmix_print_operand_punct_valid_p): A '+' is valid.
12461 See ChangeLog.6 for earlier changes.